Skip to content

Commit ca5f01d

Browse files
committed
Merge PR #1905: Vue frameworks update
2 parents 7f1af04 + c9caf74 commit ca5f01d

File tree

29 files changed

+5879
-4177
lines changed

29 files changed

+5879
-4177
lines changed

frameworks/keyed/crank/src/main.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ function Button({id, title}) {
3434
);
3535
}
3636

37-
3837
function Jumbotron() {
3938
this.addEventListener("click", (ev) => {
4039
if (ev.target.tagName === "BUTTON") {
@@ -175,15 +174,15 @@ function *Main() {
175174
this.refresh();
176175
});
177176

178-
while (true) {
177+
for ({} of this) {
179178
yield (
180179
<div class="container">
181180
<Jumbotron />
182181
<table class="table table-hover table-striped test-data">
183182
<tbody>
184183
{data.map((item) => (
185184
<Row
186-
crank-key={item.id}
185+
key={item.id}
187186
item={item}
188187
selected={item.id === selected}
189188
/>

frameworks/keyed/endr/package-lock.json

Lines changed: 250 additions & 231 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/keyed/endr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dev": "esbuild src/index.js --loader:.js=jsx --jsx=automatic --jsx-import-source=endr --outfile=dist/index.js --bundle --minify --watch"
1313
},
1414
"dependencies": {
15-
"endr": "0.1.28",
15+
"endr": "0.2.0",
1616
"esbuild": "0",
1717
"eslint-config-coderiety": "2",
1818
"eslint": "9"

frameworks/keyed/endr/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @import {Children, SetState} from 'endr' */
22

3-
import { createRoot, memo, useState } from 'endr';
3+
import { createRender, memo, useState } from 'endr';
44

55
const { document } = globalThis;
66

@@ -178,4 +178,4 @@ const Main = () => {
178178
);
179179
};
180180

181-
createRoot(/** @type {Element} */ (document.querySelector('#main'))).render(<Main />);
181+
createRender(/** @type {Element} */ (document.getElementById('main')))(<Main />);

frameworks/keyed/hydro-js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/keyed/hydro-js/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>hydro-js</title><script src="app.js" type="module"></script><link href="/css/currentStyle.css" rel="stylesheet"></head><body><div id="main"><div class="container"><div class="jumbotron"><div class="row"><div class="col-md-6"><h1>hydro.js</h1></div><div class="col-md-6"><div class="row"><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="run" onclick="run">Create 1,000 rows</button></div><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="runlots" onclick="runLots">Create 10,000 rows</button></div><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="add" onclick="add">Append 1,000 rows</button></div><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="update" onclick="update">Update every 10th row</button></div><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="clear" onclick="clear">Clear</button></div><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="swaprows" onclick="swapRows">Swap Rows</button></div></div></div></div></div><table class="table table-hover table-striped test-data"><tbody></tbody></table><span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span></div></div></body></html>
1+
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>hydro-js</title><script src="app.js" type="module"></script><link href="/css/currentStyle.css" rel="stylesheet"></head><body><div id="main"><div class="container"><div class="jumbotron"><div class="row"><div class="col-md-6"><h1>hydro-js</h1></div><div class="col-md-6"><div class="row"><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="run" onclick="run">Create 1,000 rows</button></div><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="runlots" onclick="runLots">Create 10,000 rows</button></div><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="add" onclick="add">Append 1,000 rows</button></div><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="update" onclick="update">Update every 10th row</button></div><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="clear" onclick="clear">Clear</button></div><div class="col-sm-6 smallpad"><button type="button" class="btn btn-primary btn-block" id="swaprows" onclick="swapRows">Swap Rows</button></div></div></div></div></div><table class="table table-hover table-striped test-data"><tbody></tbody></table><span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span></div></div></body></html>

0 commit comments

Comments
 (0)