Questions tagged [hyperstack]

Hyperstack is a Ruby-based DSL and modern web toolkit for building interactive web applications. Use this tag in questions related with development of web apps using this DSL, installation and configuration, compiling into JavaScript (by Opal) and also getting source maps with Webpack and Yarn

Hyperstack is a Ruby isomorphic framework integrated with Rails and React for building interactive web applications. Use this tag in questions related to the development of web apps using Hyperstack, installation and configuration, compiling into JavaScript (by Opal) and also getting source maps with Webpack and Yarn.

41 questions
1
vote
1 answer

How can I upload a file in hyperstack?

Basically the title. The documentation says to use Operations in place of traditional APIs, but I can't seem to find a way to handle file uploads. Is this even possible in hyperstack?
Cereal
  • 3,699
  • 2
  • 23
  • 36
1
vote
2 answers

Can I make a functional component in Hyperstack?

All of the documentation refers to creating components using classes. Can I make a functional component in order to leverage react hooks, and if so, how? To clarify, I can only find documentation for creation a class based component like class…
Cereal
  • 3,699
  • 2
  • 23
  • 36
1
vote
1 answer

Setting active state on a Nav item depending on the Route using ReactBootstrap

What is the best way of ensuring the correct Nav Item is selected using React Bootstrap and Hyperstack Router? I know I can the Link method, but I want to use the specific Bootstrap Nav item instead. Is there a good example of this anyone can share?
BarrieH
  • 373
  • 3
  • 11
1
vote
1 answer

How would I use React-Bootstrap in a Hyperstack component?

I have a basic Hyperstack application and would like to style it. Can I integrate with React-Bootstrap and is that a recommended approach, or should I rather look at other frameworks (e.g. Material UI?) Any pointers to docs or sample code would be…
rzr
  • 48
  • 3
1
vote
1 answer

Token based authentication in Hyperstack?

My understanding of the authentication for hyperstack is that it leans on the session for persisting the user's id, which is used to fetch the acting_user. If I wanted to decouple from the rails session, and use token based authentication, how can I…
Cereal
  • 3,699
  • 2
  • 23
  • 36
1
vote
1 answer

How do you use FontAwsome Icons in Hyperstack?

What is the best way to use FontAwsome Icons in a Hyperstack project with Rails and ReactJS, using Yarn to include just the icons you need?
BarrieH
  • 373
  • 3
  • 11
1
vote
1 answer

Using Google's text to speech API with Hyperstack

I would like to use the Google text-speech API to let my user type text into a text control, and then click a button which would send the text to my Rails server, where it would use the Google TextToSpeach API to create an mp3 file of that…
BarrieH
  • 373
  • 3
  • 11
1
vote
1 answer

How do I only set a state variable in a Store if it has not already been set?

I am using Hyperstack Stores and in the before_mount of my component I want to do: before_mount do BridgeStore.show_card_sample ||= true end And in the store: class BridgeStore < HyperStore class << self state_accessor :show_card_sample …
BarrieH
  • 373
  • 3
  • 11
1
vote
1 answer

Material UI Themes and Hyperstack

Material UI (React) uses a theaming solution where the theme object is created in JS then passed into the top level component. Creating the theme object in Opal can be complicated as the Material component expects a JS function to be passed in which…
BarrieH
  • 373
  • 3
  • 11
1
vote
1 answer

Hyperstack and MaterialUI Drawer Toggling State is causing the drawer to open and close repeatedly

I am implementing a title bar and menu drawer using MaterialUI in a Hyperstack project. I have two components, a Header component, and a Menu component. The Menu component is the expandable Drawer. I am storing the state in the Header component and…
mwhobrey
  • 65
  • 1
  • 10
1
vote
1 answer

Is there a way to disconnect console messaging from Hyperstack message queue?

In Hyperstack every state change enters a message queue through a websocket mechanism to inform every application client for model/app state changes. So if you update a model from my browser sessions, everyone else connected at the time can see it…
Michail
  • 147
  • 8
1
vote
2 answers

Passing models to components

Using the hyperstack.org framework, how can I reduce the rendering cycles when mutating models that are being rendered? When passing a Model which is being rendered to a Component which mutates that Model, all Components rendering that Model get…
BarrieH
  • 373
  • 3
  • 11
0
votes
1 answer

Is there a way to use React-Native with Hyperstack and Ruby?

I would like to use React-native with Ruby. My choice would be Hyperstack, but it is not clear if I can use it only with react and not react-native. Any help?
Paolo Di Pietro
  • 517
  • 3
  • 17
0
votes
2 answers

show pdf in browser from HTTP.get('/my_pdf')

Ηι! I use HTTP.get('/ehde_pdf') that through routes.rb calls a controller method that executes this code: send_data( "#{Rails.root}/tmp/ehde_pdf.pdf", filename: "your_custom_file_name.pdf", type: "application/pdf" …
0
votes
0 answers

On hyperstack, deletion of "has_many :through" association fails only the first time

On hyperstack, Assignment#destroy method fails with "Bad request" only on the first trial, where the Assignment is a model through which "has_many" relationship is made. The #destroy succeeds on the second trial. I have installed the…
KoyaChan
  • 3
  • 3