Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 08 2021 09:59
    zw963 commented #49
  • Nov 08 2021 09:16
    jugcoding commented #49
  • Nov 08 2021 04:04
    zw963 commented #49
  • Nov 08 2021 03:41
    zw963 commented #49
  • Nov 07 2021 19:30
    jugcoding commented #49
  • Aug 11 2021 13:22
    zw963 opened #49
  • Oct 14 2020 18:36
    Travis inesita-rb/inesita (master) still failing (246)
  • Oct 14 2020 18:35
    fazibear commented #47
  • Oct 14 2020 18:32

    fazibear on master

    Bump version (compare)

  • Oct 14 2020 18:32
    Travis inesita-rb/inesita@2568843 (revert-47-master) failed (245)
  • Oct 14 2020 18:31
    Travis inesita-rb/inesita (master) still failing (244)
  • Oct 14 2020 18:28

    fazibear on revert-47-master

    Revert "Bump version of opal-sp… (compare)

  • Oct 14 2020 18:27

    fazibear on master

    Bump version of opal-sprockets … (compare)

  • Oct 14 2020 18:27
    fazibear closed #47
  • Oct 14 2020 12:34
  • Oct 14 2020 12:32
    georgi26 synchronize #47
  • Oct 14 2020 12:17
    fazibear commented #47
  • Oct 14 2020 12:16
    fazibear commented #47
  • Oct 14 2020 12:11
    fazibear commented #47
  • Oct 14 2020 12:11
    fazibear commented #47
Elia Schito
@elia
:wave:
codem4ster
@codem4ster
I think the most clean implementation of react like paradigm for ruby
I copied virtual-dom, component and router parts of your code and embed into a gem which works with rails only
now I'm writing the server-side-rendering part :)
I will share when I finished
may be someone can use that
Elia Schito
@elia
@codem4ster I'm eager to see (and use) it!
codem4ster
@codem4ster
hi @elia I did some work for server side rendering and more
this is like a proof of concept
so for now no tests
codem4ster
@codem4ster
I added some instructions how to use it
can you try and give me some feedback :)
Michał Kalbarczyk
@fazibear
Wow! Thats great!
codem4ster
@codem4ster
All thanks to you @fazibear
you have done a great job on inesita side ;)
I opened 2 issues on opal-virtual-dom gem, if you can look them, I will be very glad :)
Michał Kalbarczyk
@fazibear
@codem4ster I saw them, but I'm on the vacation right now, I take care of them when I come back.
codem4ster
@codem4ster
Oh ok, have a nice vacation then :) Let me know when you are back.
Billy.Zheng
@zw963
Hi @/all, very happy to join in this.
Ask a question, after some quick overview, it's seem like inesita just a more lightweight and more consistent version hyperloop, anyone could told about what is the difference? thanks.
codem4ster
@codem4ster
inesita uses only virtual-dom to render and the rest is ruby code
but hyperloop works like a reactjs wrapper
inesita only focus on frontend and its a seperate server, but hyperloop is a rails engine and take care of backend tasks also
Billy.Zheng
@zw963
@codem4ster , Thanks, I think I undertood the difference now.
Elia Schito
@elia
@codem4ster great stuff! will let you know any feedback when I try it… is it already in use on any real project (I mean like for a client or similar)?
codem4ster
@codem4ster
I'm trying it on moleculeblog repo
but it's experimental
It's also far away from a blog for now
Ryan Prior
@ryanprior
Hi there, just wanted to let y'all know that we just went live with a web app using Inesita. It's a web interface for a library that generates Conjur security policies. https://cyberark.github.io/conjur-policy-generator/
The library was already established in Ruby, and then it took me ~4 days to learn Inesita and work through multiple iterations and rounds of feedback to arrive at version one. I'm plenty impressed.
Inesita would benefit from more documentation and deployment features. I'm looking forward to contributing on that front. Thanks @fazibear for your work getting Inesita to this point.
The web app and library are themselves open source (Apache v2) - you can see the web app source code here https://github.com/cyberark/conjur-policy-generator/tree/master/web
Elia Schito
@elia
:rocket:
José Rocha
@joserochadocarmo
Hi there, can i ask you guys something? Inesita is not ruby right? I am confusing. I want a substitute for (react,vue.js,angular), and i wish a simplicity, less code, beautiful syntax, then, you just think in ruby ecossytem, but ruby dont run in a browser, annd.. you think again, oh lets write like ruby and transpile for javascript...i see opal, inesita... but god, what is for just write a web app? I mean, this things have a compatibilaty with the real gems(ruby)? why i need the real Ruby? can use a js lib(like:sweetalert) in inesita?
José Rocha
@joserochadocarmo
Sorry....i just get it..Inesita is a web frontend framework for fast building browser application using Ruby. It uses Virtual DOM for page render.
Michał Kalbarczyk
@fazibear
That is true, ruby is compiled to javascript using Opal compiler, and run in the browser
Ryan Prior
@ryanprior
@joserochadocarmo you can use js libraries from Ruby using Opal. Some have wrappers so that you can keep your code pure ruby, and for ones that don't, Opal provides js interop capabilities.
You can also use gems in theory, but in practice many gems are incompatible because Opal is incomplete. Perhaps in the future with wasm we can make broader gem support practical, but that is a ways off.
José Rocha
@joserochadocarmo
Ok, thanks, inesita is very very good, and god, thanks @fazibear for dont put nothing about rails or some like that(model, controller..),
José Rocha
@joserochadocarmo
How can i add a 3rd lib(lodash,sweetAlert,maps) to inesita(and call in ruby)? sorry i dont now how it might be
Ryan Prior
@ryanprior
There might be an actual way to do this with Sprockets or something, but I don't know how to do that.
Two strategies that will work regardless:
1) put script tags to load those libraries from a CDN. this is the strategy I used with my app.
2) use webpack to package the libs you want into an asset bundle and include this in your static folder, then modify your index.html.slim to include that bundle. this would be more sophisticated but I haven't really felt the need yet :)
If there's an actual "right" way to do this with Sprockets or opal-something, somebody please chime in and let me know, I would really be interested to learn.
José Rocha
@joserochadocarmo
Yep, strategy number one run ok, i put
José Rocha
@joserochadocarmo
@ryanprior i try this and work, just run npm init in root path, this will create a package.json, then add lib normaly, like npm install sweetalert2, now go to .sprockets.rb and add sprockets.append_path("node_modules"), got to application.rb and add require 'sweetalert2/dist/sweetalert2.min', go to stylesheet.css.sass, add @import 'sweetalert2/dist/sweetalert2.min.css'... ok run!
this example was made in TodoMVC - Inesita
Ryan Prior
@ryanprior
@joserochadocarmo thank you for the pointer! I looked at the TodoMVC example, but clearly not closely enough :)
Ryan Prior
@ryanprior
I would like to try and get webpacker also into the mix so we can use its asset bundling features.
José Rocha
@joserochadocarmo
@ryanprior sorry, i mean that i made this in my TodoMVC, i do not made commit this, sorry...yeh webpack wil be nice to