lastobelus
sfc.gen.live - a translation of the phx.gen.live generator to Surface
I’ve been working with Surface and missing the phx.gen.live generator, so I translated it to surface. Github repo
Currently it is just a straightforward translation with the same pieces as phx.gen.live but in Surface form, but later I may pull out more components, e.g.: a generic resource listing component, edit/save/delete buttons etc.
It also contains a simple generator for new Surface components, allowing you to specify props and their types and defaults similarly to generating a schema with columns.
Most Liked
lastobelus
sfc.gen.live now also has a sfc.gen.init generator that sets up a project to use Surface.
paulstatezny
@lastobelus You should reach out to @msaraiva on Elixir Slack. I haven’t tried these out, but it would make sense to me to have this merged into Surface proper. Or at least house it in the surface-ui GitHub organization as an official Surface tool like SurfaceFormatter.
Popular in Announcing
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









