Skip to content

Rewrite the entire framework#76

Open
aalin wants to merge 320 commits intomainfrom
rewrite
Open

Rewrite the entire framework#76
aalin wants to merge 320 commits intomainfrom
rewrite

Conversation

@aalin
Copy link
Contributor

@aalin aalin commented Mar 23, 2024

This is the code from the rewrite that I started writing in August 2024.

Todo

  • Implement a better VDOM
  • Make the root layout work
  • Fix string callbacks (onclick="event.preventDefault()")
  • Generate image versions and static assets
  • Reload routes when pages are added/removed
  • mayu build to build apps
  • mayu start to run built apps
  • Prometheus endpoint
    • Remove irrelevant metrics
  • Rewrite stack traces in Mayu::Modules::System by resolving modules
  • Custom elements? #5
  • Use https://github.com/socketry/async-container

Issues that should have been fixed already in this branch

aalin added 29 commits May 1, 2024 12:12
It only marshal dumps Modules::System for now
Otherwise <p> tags would have <div> inside of them which breaks HTML.
Ported from React
And add assets_path and use that when generating assets
So when doing Console.logger.info(self, "hello") it would print:

    (mod)components

instead of

    Mayu::Modules::Registry::Mod_Components_Layout_Foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle url() in CSS files Transform @foo to self.state[:foo] Validate nesting of DOM nodes Transform CSS

1 participant