diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2024-03-31 10:56:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 10:56:36 +0100 |
commit | f45179f9124fb002e910afb618911c79a4a1549f (patch) | |
tree | 64aa1190458124a5556481c4d4b0bcb8db7c1c6b /priv/templates | |
parent | b6aea6702d762986a69f5660df78459ef81a2e9b (diff) | |
download | lustre-f45179f9124fb002e910afb618911c79a4a1549f.tar.gz lustre-f45179f9124fb002e910afb618911c79a4a1549f.zip |
🔀 Refactor vdom and add support for keyed vnodes. (#83)
* :truck: Keep around old vdom implementation for reference.
* :sparkles: Add a keyed vdom node.
* :alembic: Experiment with a different approach for handling component children.
* :construction: Here be scary works in progress.
* :sparkles: Implement keyed node diffing.
* :recycle: Don't use deprecated 'isOk' checks.
* :recycle: Remove separate Keyed node and add 'key' field to Element node.
* :sparkles: Add support for server components into new vdom.
* :bug: Fix broken build script.
* :recycle: Don't emit data-lustre-key attributes for server component patches.
* :package: Generate server component runtime.
* :bug: Fixed a bug where server component keys were ambiguous when double digit.
* :package: Generate server component runtime.
* :recycle: Refactor 'keyed' element to force all children of a node to be keyed.
* :memo: Consistently format '**Note**:'.
* :bug: Fixed bug with falsey className/style/innerHTML attributes.
* :bug: Fixed a bug not handling undefined 'prev' nodes correctly.
* :package: Generate server component runtime.
Diffstat (limited to 'priv/templates')
-rw-r--r-- | priv/templates/component-entry.mjs | 4 | ||||
-rw-r--r-- | priv/templates/entry-with-main.mjs | 3 | ||||
-rw-r--r-- | priv/templates/entry-with-start.mjs | 4 | ||||
-rw-r--r-- | priv/templates/entry.css | 3 | ||||
-rw-r--r-- | priv/templates/index-with-lustre-ui.html | 19 | ||||
-rw-r--r-- | priv/templates/index.html | 15 |
6 files changed, 0 insertions, 48 deletions
diff --git a/priv/templates/component-entry.mjs b/priv/templates/component-entry.mjs deleted file mode 100644 index c9e2823..0000000 --- a/priv/templates/component-entry.mjs +++ /dev/null @@ -1,4 +0,0 @@ -import { register } from '../dev/javascript/lustre/client-component.ffi.mjs'; -import { name, {component_name} as component } from '../dev/javascript/{app_name}/{module_path}.mjs'; - -register(component(), name);
\ No newline at end of file diff --git a/priv/templates/entry-with-main.mjs b/priv/templates/entry-with-main.mjs deleted file mode 100644 index c0c151c..0000000 --- a/priv/templates/entry-with-main.mjs +++ /dev/null @@ -1,3 +0,0 @@ -import { main } from "../dev/javascript/{app_name}/{app_name}.mjs"; - -main(); diff --git a/priv/templates/entry-with-start.mjs b/priv/templates/entry-with-start.mjs deleted file mode 100644 index 785cf0f..0000000 --- a/priv/templates/entry-with-start.mjs +++ /dev/null @@ -1,4 +0,0 @@ -import { start } from "../dev/javascript/lustre/lustre.mjs"; -import { main } from "../dev/javascript/{app_name}/{app_name}.mjs"; - -start(main(), "#app", undefined); diff --git a/priv/templates/entry.css b/priv/templates/entry.css deleted file mode 100644 index bd6213e..0000000 --- a/priv/templates/entry.css +++ /dev/null @@ -1,3 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities;
\ No newline at end of file diff --git a/priv/templates/index-with-lustre-ui.html b/priv/templates/index-with-lustre-ui.html deleted file mode 100644 index f7a51f0..0000000 --- a/priv/templates/index-with-lustre-ui.html +++ /dev/null @@ -1,19 +0,0 @@ -<!doctype html> -<html lang="en"> - <head> - <meta charset="UTF-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - - <title>🚧 {app_name}</title> - - <link - rel="stylesheet" - href="https://cdn.jsdelivr.net/gh/lustre-labs/ui/priv/styles.css" - /> - <script type="module" src="./index.mjs"></script> - </head> - - <body> - <div id="app"></div> - </body> -</html> diff --git a/priv/templates/index.html b/priv/templates/index.html deleted file mode 100644 index 42bd2bf..0000000 --- a/priv/templates/index.html +++ /dev/null @@ -1,15 +0,0 @@ -<!doctype html> -<html lang="en"> - <head> - <meta charset="UTF-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - - <title>🚧 {app_name}</title> - - <script type="module" src="./index.mjs"></script> - </head> - - <body> - <div id="app"></div> - </body> -</html> |