@blueshed/joined 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/joined/SKILL.md +9 -1
- package/.claude/skills/joined/reference.md +270 -55
- package/.claude/skills/joined-door/SKILL.md +57 -0
- package/README.md +19 -50
- package/docs/design.md +76 -10
- package/docs/introduction.md +18 -18
- package/docs/light-and-shadow.svg +1 -1
- package/examples/README.md +20 -0
- package/examples/account/account.json +1 -0
- package/examples/account/derive.ts +41 -0
- package/examples/account/generated/elements.ts +52 -0
- package/examples/account/generated/rows.ts +22 -0
- package/examples/account/generated/rules.ts +32 -0
- package/examples/account/routes.ts +5 -0
- package/examples/app.css +2 -1
- package/examples/cafe/books.html +2 -2
- package/examples/cafe/cafe.css +9 -16
- package/examples/cafe/generated/books.rows.ts +22 -0
- package/examples/cafe/generated/books.rules.ts +3 -2
- package/examples/cafe/generated/kitchen.rows.ts +27 -0
- package/examples/cafe/generated/kitchen.rules.ts +11 -1
- package/examples/cafe/generated/menu.rows.ts +22 -0
- package/examples/cafe/generated/menu.rules.ts +3 -2
- package/examples/cafe/generated/order.rows.ts +27 -0
- package/examples/cafe/generated/order.rules.ts +11 -1
- package/examples/cafe/generated/staff.rows.ts +22 -0
- package/examples/cafe/generated/staff.rules.ts +6 -1
- package/examples/cafe/generated/supplies.queries.ts +4 -2
- package/examples/cafe/generated/supplies.rows.ts +22 -0
- package/examples/cafe/generated/supplies.rules.ts +12 -1
- package/examples/cafe/generated/till.queries.ts +2 -0
- package/examples/cafe/generated/till.rows.ts +27 -0
- package/examples/cafe/generated/till.rules.ts +11 -1
- package/examples/cafe/index.html +14 -15
- package/examples/cafe/kitchen.ts +1 -1
- package/examples/cafe/look.ts +30 -0
- package/examples/cafe/menu.html +10 -26
- package/examples/cafe/menu.ts +8 -80
- package/examples/cafe/order.html +6 -6
- package/examples/cafe/order.ts +5 -1
- package/examples/cafe/routes.ts +0 -1
- package/examples/cafe/stories.jsonl +3 -1
- package/examples/cafe/supplies.html +34 -34
- package/examples/cafe/supplies.ts +14 -11
- package/examples/cafe/till.ts +5 -1
- package/examples/chart/arches.ts +148 -0
- package/examples/chart/chart.css +6 -0
- package/examples/chart/chart.json +87 -0
- package/examples/chart/generated/elements.ts +105 -0
- package/examples/chart/generated/queries.ts +36 -0
- package/examples/chart/generated/rows.ts +27 -0
- package/examples/chart/generated/rules.ts +111 -0
- package/examples/chart/grid.ts +118 -0
- package/examples/chart/index.html +78 -0
- package/examples/chart/migrations/001-chart.ts +6 -0
- package/examples/chart/migrations/002-create-conditions.ts +6 -0
- package/examples/chart/page.ts +20 -0
- package/examples/chart/routes.ts +7 -0
- package/examples/chart/stories.jsonl +14 -0
- package/examples/chart/teeth.ts +57 -0
- package/examples/desk/generated/rows.ts +22 -0
- package/examples/desk/generated/rules.ts +34 -1
- package/examples/desk/index.html +9 -2
- package/examples/desk/routes.ts +0 -2
- package/examples/desk/stories.jsonl +3 -2
- package/examples/desk/thumbs.ts +2 -2
- package/examples/hello/generated/elements.ts +2 -2
- package/examples/hello/generated/rules.ts +3 -2
- package/examples/hello/hello.css +2 -4
- package/examples/hello/index.html +10 -3
- package/examples/hello/page.ts +4 -4
- package/examples/index.html +4 -5
- package/examples/notes/generated/elements.ts +112 -0
- package/examples/notes/generated/queries.ts +36 -0
- package/examples/notes/generated/rows.ts +27 -0
- package/examples/notes/generated/rules.ts +133 -0
- package/examples/notes/index.html +32 -0
- package/examples/notes/look.ts +41 -0
- package/examples/notes/migrations/001-notes.ts +7 -0
- package/examples/notes/notes.json +78 -0
- package/examples/notes/page.ts +21 -0
- package/examples/notes/routes.ts +6 -0
- package/examples/notes/stories.jsonl +21 -0
- package/examples/people/generated/rows.ts +22 -0
- package/examples/people/generated/rules.ts +11 -1
- package/examples/people/links.ts +2 -1
- package/examples/people/routes.ts +1 -3
- package/examples/people/stories.jsonl +1 -0
- package/examples/people/view.ts +5 -2
- package/examples/trip/generated/elements.ts +4 -2
- package/examples/trip/generated/queries.ts +12 -1
- package/examples/trip/generated/rows.ts +27 -0
- package/examples/trip/generated/rules.ts +56 -2
- package/examples/trip/index.html +58 -12
- package/examples/trip/line.css +186 -0
- package/examples/trip/line.ts +51 -40
- package/examples/trip/page.ts +65 -71
- package/examples/trip/routes.ts +9 -5
- package/examples/trip/stays.css +12 -12
- package/examples/trip/stays.ts +15 -10
- package/examples/trip/stories.jsonl +2 -0
- package/examples/trip/told.ts +3 -26
- package/examples/trip/trip.css +16 -0
- package/examples/trips/generated/rows.ts +22 -0
- package/examples/trips/generated/rules.ts +9 -1
- package/examples/trips/index.html +10 -10
- package/examples/trips/map.ts +3 -14
- package/examples/trips/new-trip.ts +14 -16
- package/examples/weeks/generated/elements.ts +1 -1
- package/examples/weeks/generated/queries.ts +11 -0
- package/examples/weeks/generated/rows.ts +22 -0
- package/examples/weeks/generated/rules.ts +11 -5
- package/examples/weeks/routes.ts +3 -2
- package/examples/weeks/stories.jsonl +1 -0
- package/examples/welcome.css +7 -5
- package/package.json +8 -2
- package/src/awesome.ts +103 -0
- package/src/board.css +75 -0
- package/src/board.ts +173 -0
- package/src/cli.ts +15 -2
- package/src/compile.ts +569 -35
- package/src/definitions.ts +53 -15
- package/src/draft.ts +38 -23
- package/src/drawer.ts +222 -0
- package/src/engine.ts +240 -166
- package/src/fields.ts +268 -0
- package/src/files.ts +6 -4
- package/src/ground.ts +110 -0
- package/src/icon-names.ts +15 -2
- package/src/kit.ts +51 -0
- package/src/link.ts +3 -3
- package/src/map.css +133 -0
- package/src/map.ts +200 -0
- package/src/mcp.ts +176 -38
- package/src/members/demo.ts +13 -12
- package/src/members/generated/rows.ts +22 -0
- package/src/members/generated/rules.ts +3 -2
- package/src/members/group.ts +65 -39
- package/src/members/keys.ts +93 -77
- package/src/members/panel.css +23 -17
- package/src/members/panel.ts +49 -35
- package/src/migrate.ts +120 -104
- package/src/month.css +125 -0
- package/src/month.ts +179 -0
- package/src/page.css +8 -0
- package/src/page.ts +11 -7
- package/src/parts.css +462 -170
- package/src/parts.ts +209 -26
- package/src/plane.css +56 -0
- package/src/plane.ts +151 -0
- package/src/postgres-server.ts +60 -0
- package/src/reading.css +77 -0
- package/src/reading.ts +238 -0
- package/src/rows.css +308 -0
- package/src/rows.ts +780 -0
- package/src/search.css +80 -0
- package/src/search.ts +130 -0
- package/src/server.ts +211 -114
- package/src/settings.ts +9 -4
- package/src/sheet.ts +114 -0
- package/src/skill.ts +40 -0
- package/src/slots.css +94 -0
- package/src/slots.ts +213 -0
- package/src/specs.ts +38 -0
- package/src/starter.ts +5 -2
- package/src/store.ts +184 -143
- package/src/stories.ts +43 -11
- package/src/surface.ts +159 -0
- package/src/timeline.css +111 -0
- package/src/timeline.ts +226 -0
- package/src/toast.ts +21 -48
- package/src/together.ts +0 -7
- package/src/tokens.css +78 -1
- package/src/tokens.json +249 -0
- package/src/tool.ts +211 -0
- package/src/upkeep.ts +18 -20
- package/src/views.css +44 -0
- package/src/views.ts +94 -0
- package/src/week.css +151 -0
- package/src/week.ts +250 -0
- package/src/write.ts +219 -73
- package/starter/CLAUDE.md +3 -3
- package/starter/bunfig +4 -0
- package/starter/prettierignore +4 -0
- package/starter/tests/hello.test.ts +2 -0
- package/docs/learning.md +0 -76
- package/examples/cafe/trust.ts +0 -20
- package/examples/desk/trust.ts +0 -24
- package/examples/people/trust.ts +0 -14
- package/examples/trip/answer-rows.ts +0 -70
- package/examples/trip/bar.ts +0 -89
- package/examples/trip/calendar-map.css +0 -711
- package/examples/trip/calendar-map.ts +0 -249
- package/examples/trip/drags.ts +0 -143
- package/examples/trip/drawer.ts +0 -250
- package/examples/trip/event-form.ts +0 -200
- package/examples/trip/holding.ts +0 -61
- package/examples/trip/map.ts +0 -234
- package/examples/trip/month.ts +0 -87
- package/examples/trip/other-weeks.ts +0 -67
- package/examples/trip/peek.ts +0 -71
- package/examples/trip/people-chips.ts +0 -74
- package/examples/trip/shell.ts +0 -39
- package/examples/trip/trust.ts +0 -51
- package/examples/trip/week.ts +0 -237
- package/examples/trip/writes.ts +0 -91
- package/examples/trip/zones.ts +0 -16
- package/examples/weeks/derive.ts +0 -23
- package/src/scrim.ts +0 -81
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type Op = { op: "add" | "replace" | "remove"; path: string; value?: any };
|
|
4
4
|
|
|
5
5
|
/** The document, and each collection: its element, the element its items are, their fields, those an add needs, and
|
|
6
|
-
* what each link is to. */
|
|
6
|
+
* what each link is to and what each field pops (a value with a form, its view; a reference, what it points at). */
|
|
7
7
|
export const doc = "desk";
|
|
8
8
|
export const collections = {
|
|
9
9
|
"tasks": {
|
|
@@ -29,6 +29,20 @@ export const collections = {
|
|
|
29
29
|
"downs": "members",
|
|
30
30
|
"by": "members"
|
|
31
31
|
},
|
|
32
|
+
"pops": {
|
|
33
|
+
"ups": {
|
|
34
|
+
"to": "members"
|
|
35
|
+
},
|
|
36
|
+
"downs": {
|
|
37
|
+
"to": "members"
|
|
38
|
+
},
|
|
39
|
+
"by": {
|
|
40
|
+
"to": "members"
|
|
41
|
+
},
|
|
42
|
+
"added": {
|
|
43
|
+
"form": "instant"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
32
46
|
"order": "rank",
|
|
33
47
|
"fills": {
|
|
34
48
|
"status": "queued",
|
|
@@ -49,6 +63,25 @@ export const moves = {"tasks":"status"};
|
|
|
49
63
|
/** The document as one statement over its tables (generated/queries.ts). */
|
|
50
64
|
export { query, postgres, items, triggers } from "./queries.ts";
|
|
51
65
|
|
|
66
|
+
/** Why the document, as a write leaves it, breaks what its definitions hold (unique, noOverlap): each item the
|
|
67
|
+
* write touched, against the rest of its collection. Null if it holds. */
|
|
68
|
+
export function holds(d: Record<string, unknown>, touched: Record<string, number[]>): string | null {
|
|
69
|
+
for (const id of touched["tasks"] ?? []) {
|
|
70
|
+
const all = (d["tasks"] ?? []) as any[];
|
|
71
|
+
const a = all.find((i) => i.id === id);
|
|
72
|
+
if (!a) continue;
|
|
73
|
+
{
|
|
74
|
+
const lists = ["ups","downs"].map((f) => (a[f] ?? []) as number[]);
|
|
75
|
+
if (lists.some((l, n) => l.some((m) => lists.slice(n + 1).some((o) => o.includes(m)))))
|
|
76
|
+
return "tasks " + a.id + " has someone in two of ups and downs: take one back first";
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** The lists that are each member's own (its definitions' mine), or links to one: a member gives and takes only their own id. */
|
|
83
|
+
export const mine: Record<string, string[]> = {"tasks":["ups","downs"]};
|
|
84
|
+
|
|
52
85
|
/** desk is one document. */
|
|
53
86
|
export const kind = null;
|
|
54
87
|
|
package/examples/desk/index.html
CHANGED
|
@@ -23,8 +23,15 @@
|
|
|
23
23
|
<section class="card tally" aria-label="How it's going"><desk-tally></desk-tally></section>
|
|
24
24
|
<desk-lanes><j-tasks></j-tasks></desk-lanes>
|
|
25
25
|
<form class="add">
|
|
26
|
-
<input
|
|
27
|
-
|
|
26
|
+
<wa-input
|
|
27
|
+
class="j-bare"
|
|
28
|
+
name="title"
|
|
29
|
+
placeholder="A task"
|
|
30
|
+
label="A task"
|
|
31
|
+
required
|
|
32
|
+
autocomplete="off"
|
|
33
|
+
></wa-input>
|
|
34
|
+
<wa-number-input class="j-bare" name="points" min="0" value="1" label="Its points"></wa-number-input>
|
|
28
35
|
<button class="act ink" data-icon="add">Put it on the desk</button>
|
|
29
36
|
<p class="said" role="status"></p>
|
|
30
37
|
</form>
|
package/examples/desk/routes.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
{"order":{"tasks":"rank"}}
|
|
4
4
|
{"fills":{"tasks":{"status":"queued","by":"me","added":"now"}}}
|
|
5
5
|
{"moves":{"tasks":"status"}}
|
|
6
|
+
{"mine":{"tasks":[["ups","downs"]]}}
|
|
6
7
|
{"story":"Peter puts a task on the desk: it's queued, his, and dated","as":"peter","does":{"doc":"desk","ops":[{"op":"add","path":"/tasks/-","value":{"title":"Print the badges","points":1,"rank":5}}]},"seen":["peter","phone","agent"],"then":{"/tasks/5/status":"queued","/tasks/5/by":1}}
|
|
7
8
|
{"story":"Peter can't say whose a task is: the desk fills it","as":"peter","cannot":{"doc":"desk","ops":[{"op":"add","path":"/tasks/-","value":{"title":"Print the badges","by":2}}]},"refused":"by is the server's to fill"}
|
|
8
9
|
{"story":"The agent starts the welcome","as":"agent","does":{"doc":"desk","ops":[{"op":"replace","path":"/tasks/1/status","value":"working"}]},"seen":["peter","agent"]}
|
|
@@ -14,5 +15,5 @@
|
|
|
14
15
|
{"story":"Nora thumbs the welcome up","as":"nora","does":{"doc":"desk","ops":[{"op":"add","path":"/tasks/1/ups/-","value":3}]},"seen":["nora","peter"],"then":{"/tasks/1/ups":[3]}}
|
|
15
16
|
{"story":"Nora changes her mind: up becomes down, in one write","as":"nora","premise":{"nora":[{"doc":"desk","ops":[{"op":"add","path":"/tasks/1/ups/-","value":3}]}]},"does":{"doc":"desk","ops":[{"op":"remove","path":"/tasks/1/ups/3"},{"op":"add","path":"/tasks/1/downs/-","value":3}]},"seen":["nora","peter"],"then":{"/tasks/1/downs":[3]}}
|
|
16
17
|
{"story":"Nora takes her thumb back","as":"nora","premise":{"nora":[{"doc":"desk","ops":[{"op":"add","path":"/tasks/1/downs/-","value":3}]}]},"does":{"doc":"desk","ops":[{"op":"remove","path":"/tasks/1/downs/3"}]},"seen":["nora","peter"]}
|
|
17
|
-
{"story":"Nora can't thumb for Nick","as":"nora","cannot":{"doc":"desk","ops":[{"op":"add","path":"/tasks/1/ups/-","value":2}]},"refused":"
|
|
18
|
-
{"story":"Nora can't thumb the hall both ways","as":"nora","premise":{"nora":[{"doc":"desk","ops":[{"op":"add","path":"/tasks/3/ups/-","value":3}]}]},"cannot":{"doc":"desk","ops":[{"op":"add","path":"/tasks/3/downs/-","value":3}]},"refused":"
|
|
18
|
+
{"story":"Nora can't thumb for Nick","as":"nora","cannot":{"doc":"desk","ops":[{"op":"add","path":"/tasks/1/ups/-","value":2}]},"refused":"ups is each member's own to give"}
|
|
19
|
+
{"story":"Nora can't thumb the hall both ways","as":"nora","premise":{"nora":[{"doc":"desk","ops":[{"op":"add","path":"/tasks/3/ups/-","value":3}]}]},"cannot":{"doc":"desk","ops":[{"op":"add","path":"/tasks/3/downs/-","value":3}]},"refused":"tasks 3 has someone in two of ups and downs: take one back first"}
|
package/examples/desk/thumbs.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Recipe: a thumb up or down, each person's own, as two lists of ids on the item (`ups` and `downs`, links to
|
|
2
2
|
// members): the buttons say how many, yours pressed; pressed, your thumb is given, the other taken back in the same
|
|
3
|
-
// write; pressed again, taken back. Offered where `may` offers adding to the list; the
|
|
4
|
-
// to its giver and one an item (
|
|
3
|
+
// write; pressed again, taken back. Offered where `may` offers adding to the list; the desk's definitions hold a
|
|
4
|
+
// thumb to its giver and one an item (`mine`, in its stories' header lines). idea-cards' thumbs and cardlet's votes are this.
|
|
5
5
|
|
|
6
6
|
import { icon } from "joined/icons";
|
|
7
7
|
import { said } from "joined/parts";
|
|
@@ -15,7 +15,7 @@ const docOf = (el: Element) => el.closest("[doc]")?.getAttribute("doc") ?? "hell
|
|
|
15
15
|
const send = (from: Element, ops: object[], why?: string) => new Promise<Answer>((answer) => from.dispatchEvent(new CustomEvent("ops", { bubbles: true, composed: true, detail: { doc: docOf(from), ops, why, answer } })));
|
|
16
16
|
|
|
17
17
|
/** hello's own fields, as the stories give them. */
|
|
18
|
-
export type JHelloData = { "greeting"
|
|
18
|
+
export type JHelloData = { "greeting": string };
|
|
19
19
|
|
|
20
20
|
/** <j-hello>: hello itself, holding it, its own fields each an attribute. */
|
|
21
21
|
export class JHello extends HTMLElement {
|
|
@@ -23,7 +23,7 @@ export class JHello extends HTMLElement {
|
|
|
23
23
|
#data?: JHelloData;
|
|
24
24
|
/** Its fields, read from its attributes once and again when one changes: frozen, since they're shared. */
|
|
25
25
|
get data(): JHelloData {
|
|
26
|
-
return (this.#data ??= Object.freeze({ "greeting": this.getAttribute("greeting") ??
|
|
26
|
+
return (this.#data ??= Object.freeze({ "greeting": this.getAttribute("greeting") ?? "" }));
|
|
27
27
|
}
|
|
28
28
|
/** How a view shows it, drawn again whenever an attribute changes (what its person may do, its may, too). */
|
|
29
29
|
draw?(): void;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export type Op = { op: "add" | "replace" | "remove"; path: string; value?: any };
|
|
4
4
|
|
|
5
5
|
/** The document, and each collection: its element, the element its items are, their fields, those an add needs, and
|
|
6
|
-
* what each link is to. */
|
|
6
|
+
* what each link is to and what each field pops (a value with a form, its view; a reference, what it points at). */
|
|
7
7
|
export const doc = "hello";
|
|
8
8
|
export const collections = {
|
|
9
9
|
"hello": {
|
|
@@ -14,7 +14,8 @@ export const collections = {
|
|
|
14
14
|
"greeting": "string"
|
|
15
15
|
},
|
|
16
16
|
"needs": [],
|
|
17
|
-
"links": {}
|
|
17
|
+
"links": {},
|
|
18
|
+
"pops": {}
|
|
18
19
|
}
|
|
19
20
|
} as const;
|
|
20
21
|
/** Whether every story is anonymous, none told as a member: where every app's is, the project has no members. */
|
package/examples/hello/hello.css
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/* hello's look: its one greeting, large, in a card with the box to change it at its foot. */
|
|
2
2
|
|
|
3
|
+
/* its card is joined's (wa-card), edge to edge inside */
|
|
3
4
|
.card {
|
|
4
5
|
max-width: 40rem;
|
|
5
|
-
|
|
6
|
-
border-radius: 4px;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
background: var(--card);
|
|
6
|
+
--spacing: 0;
|
|
9
7
|
}
|
|
10
8
|
j-hello {
|
|
11
9
|
display: block;
|
|
@@ -17,15 +17,22 @@
|
|
|
17
17
|
it change there.
|
|
18
18
|
</p>
|
|
19
19
|
<main>
|
|
20
|
-
<
|
|
20
|
+
<wa-card class="card" aria-label="The greeting">
|
|
21
21
|
<j-hello></j-hello>
|
|
22
22
|
<form class="add say">
|
|
23
|
-
<input
|
|
23
|
+
<wa-input
|
|
24
|
+
class="j-bare"
|
|
25
|
+
name="greeting"
|
|
26
|
+
placeholder="Say hello"
|
|
27
|
+
label="The greeting"
|
|
28
|
+
required
|
|
29
|
+
autocomplete="off"
|
|
30
|
+
></wa-input>
|
|
24
31
|
<button type="button" class="act" name="never">Never mind</button>
|
|
25
32
|
<button class="act ink" name="go" data-icon="check">Save</button>
|
|
26
33
|
<p class="said" role="status"></p>
|
|
27
34
|
</form>
|
|
28
|
-
</
|
|
35
|
+
</wa-card>
|
|
29
36
|
</main>
|
|
30
37
|
<script type="module" src="./page.ts"></script>
|
|
31
38
|
</body>
|
package/examples/hello/page.ts
CHANGED
|
@@ -21,13 +21,13 @@ class Hello extends JHello {
|
|
|
21
21
|
connectedCallback() {
|
|
22
22
|
super.connectedCallback();
|
|
23
23
|
if (!this.childElementCount) this.append(this.#shown);
|
|
24
|
-
draft.fill({ greeting: this.data.greeting
|
|
24
|
+
draft.fill({ greeting: this.data.greeting }, true);
|
|
25
25
|
this.draw();
|
|
26
26
|
}
|
|
27
27
|
/** The greeting, as its attribute has it; and the box, unless it's being changed. */
|
|
28
28
|
draw() {
|
|
29
|
-
this.#shown.textContent = this.data.greeting
|
|
30
|
-
draft.fill({ greeting: this.data.greeting
|
|
29
|
+
this.#shown.textContent = this.data.greeting;
|
|
30
|
+
draft.fill({ greeting: this.data.greeting });
|
|
31
31
|
shown();
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -41,7 +41,7 @@ form.addEventListener("submit", async (e) => {
|
|
|
41
41
|
(form.elements.namedItem("never") as HTMLButtonElement).addEventListener("click", () => {
|
|
42
42
|
const hello = document.querySelector<Hello>(collections.hello.tag)!;
|
|
43
43
|
draft.refuse("");
|
|
44
|
-
draft.fill({ greeting: hello.data.greeting
|
|
44
|
+
draft.fill({ greeting: hello.data.greeting }, true);
|
|
45
45
|
shown();
|
|
46
46
|
});
|
|
47
47
|
iconify();
|
package/examples/index.html
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<span class="open">Open the trips →</span>
|
|
72
72
|
</a>
|
|
73
73
|
<a href="/cafe">
|
|
74
|
-
<div class="picture
|
|
74
|
+
<div class="picture tickets">
|
|
75
75
|
<div class="mini ticket">
|
|
76
76
|
<b>#1 Ann · £6.40</b><span>1 × Latte</span><span>1 × Pot of tea</span><span class="pill">being made</span>
|
|
77
77
|
</div>
|
|
@@ -135,10 +135,9 @@
|
|
|
135
135
|
<!-- its src is set by page.ts: the bundler would serve the film whole, and Safari plays a video only in ranges -->
|
|
136
136
|
<video controls preload="none" playsinline poster="./film.jpg" width="1280" height="720"></video>
|
|
137
137
|
<figcaption class="note">
|
|
138
|
-
One change, from Peter's finger to Nick's screen (1:50)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
young: no ecosystem, one person and an AI.
|
|
138
|
+
One change, from Peter's finger to Nick's screen (1:50), filmed before the trip's calendar and map were the
|
|
139
|
+
kit's. What it isn't, yet: used by many, its largest test a trip of 100,000 events (a change there costs at most
|
|
140
|
+
twice what it does at 1,000); and it's young: no ecosystem, one person and an AI.
|
|
142
141
|
</figcaption>
|
|
143
142
|
</figure>
|
|
144
143
|
<script type="module" src="./page.ts"></script>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// Written by src/compile.ts from examples/notes/stories.jsonl: change the stories, not this.
|
|
2
|
+
|
|
3
|
+
// Each collection is an element, defined here: on a page, it holds the document, and its items
|
|
4
|
+
// are put inside it. Each item is an element, defined by the page: as it is, or by a view that
|
|
5
|
+
// extends it. A field is an attribute (a list of ids as IDREFS: "1 3"), and an item's key the
|
|
6
|
+
// document's id for it. How an item looks is the app's: its view, or a display holding the
|
|
7
|
+
// collection draws it. Ops go up as an "ops" event, for the page to send to notes, with why they
|
|
8
|
+
// were made if it's said; only the ops the stories allow can be sent. Each returns its write's answer.
|
|
9
|
+
|
|
10
|
+
import { hold, letGo, type Answer } from "joined/page";
|
|
11
|
+
|
|
12
|
+
// the document an element is of: its collection's doc attribute (an instance of a kind, shelf:1), or notes
|
|
13
|
+
const docOf = (el: Element) => el.closest("[doc]")?.getAttribute("doc") ?? "notes";
|
|
14
|
+
// an element's ops go up as an "ops" event; what it returns is the write's answer, done or refused
|
|
15
|
+
const send = (from: Element, ops: object[], why?: string) => new Promise<Answer>((answer) => from.dispatchEvent(new CustomEvent("ops", { bubbles: true, composed: true, detail: { doc: docOf(from), ops, why, answer } })));
|
|
16
|
+
|
|
17
|
+
/** A note's fields, as the stories give them. */
|
|
18
|
+
export type JNoteData = { "text": string; "more"?: string; "done"?: boolean; "when"?: string };
|
|
19
|
+
/** An add of a note, as it's sent: its fields as the stories write them. */
|
|
20
|
+
export type JNoteValue = { "text": string; "more"?: string; "done"?: boolean; "when"?: string };
|
|
21
|
+
|
|
22
|
+
/** <j-note key>: text (string), more (string), done (boolean), when (date-time), each an attribute. */
|
|
23
|
+
export class JNote extends HTMLElement {
|
|
24
|
+
static observedAttributes = ["text","more","done","when","may"];
|
|
25
|
+
#data?: JNoteData & Required<Pick<JNoteData, "done">>;
|
|
26
|
+
/** Its id in the document. */
|
|
27
|
+
get key() { return Number(this.getAttribute("key")); }
|
|
28
|
+
get path() { return `/notes/${this.key}`; }
|
|
29
|
+
/** Its fields, read from its attributes once and again when one changes: frozen, since they're shared. */
|
|
30
|
+
get data(): JNoteData & Required<Pick<JNoteData, "done">> {
|
|
31
|
+
return (this.#data ??= Object.freeze({ "text": this.getAttribute("text") ?? "", "more": this.getAttribute("more") ?? undefined, "done": this.hasAttribute("done"), "when": this.getAttribute("when") ?? undefined }) as JNoteData & Required<Pick<JNoteData, "done">>);
|
|
32
|
+
}
|
|
33
|
+
/** How a view shows it, drawn again whenever an attribute changes (what its person may do, its may, too). */
|
|
34
|
+
draw?(): void;
|
|
35
|
+
attributeChangedCallback() { this.#data = undefined; this.draw?.(); }
|
|
36
|
+
/** Replace some of its fields (text, more, done, when): one write for all of them. */
|
|
37
|
+
replace(fields: Partial<Pick<JNoteData, "text" | "more" | "done" | "when">>, why?: string) {
|
|
38
|
+
return send(this, Object.entries(fields).filter(([, value]) => value !== undefined).map(([field, value]) => ({ op: "replace", path: `${this.path}/${field.replace(".", "/")}`, value })), why);
|
|
39
|
+
}
|
|
40
|
+
/** Remove some of its fields (more, done, when), so that it has none. */
|
|
41
|
+
removeField(...fields: ("more" | "done" | "when")[]) { return send(this, fields.map((field) => ({ op: "remove", path: `${this.path}/${field}` }))); }
|
|
42
|
+
/** Remove it from the document. */
|
|
43
|
+
removeItem(why?: string) { return send(this, [{ op: "remove", path: this.path }], why); }
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** <j-notes>: the document's notes, each a <j-note> inside it. */
|
|
47
|
+
export class JNotes extends HTMLElement {
|
|
48
|
+
connectedCallback() { hold(this, docOf(this), "notes", "j-note", {"text":"string","more":"string","done":"boolean","when":"date-time"}); }
|
|
49
|
+
disconnectedCallback() { letGo(this); }
|
|
50
|
+
/** Its notes, as the document has them. */
|
|
51
|
+
get items() { return [...this.children].filter((el): el is JNote => el.localName === "j-note"); }
|
|
52
|
+
/** Add notes: one write for all of them. */
|
|
53
|
+
add(...values: JNoteValue[]) { return send(this, values.map((value) => ({ op: "add", path: "/notes/-", value }))); }
|
|
54
|
+
}
|
|
55
|
+
customElements.define("j-notes", JNotes);
|
|
56
|
+
|
|
57
|
+
/** A rank's fields, as the stories give them. */
|
|
58
|
+
export type JRankData = { "note": number; "rank": number; "by"?: number };
|
|
59
|
+
/** An add of a rank, as it's sent: its fields as the stories write them. */
|
|
60
|
+
export type JRankValue = { "note": number | `$${number}`; "rank": number; "by"?: number | `$${number}` };
|
|
61
|
+
|
|
62
|
+
/** <j-rank key>: note (an id in notes), rank (decimal), by (an id in members), each an attribute. */
|
|
63
|
+
export class JRank extends HTMLElement {
|
|
64
|
+
static observedAttributes = ["note","rank","by","may"];
|
|
65
|
+
#data?: JRankData;
|
|
66
|
+
/** Its id in the document. */
|
|
67
|
+
get key() { return Number(this.getAttribute("key")); }
|
|
68
|
+
get path() { return `/ranks/${this.key}`; }
|
|
69
|
+
/** Its fields, read from its attributes once and again when one changes: frozen, since they're shared. */
|
|
70
|
+
get data(): JRankData {
|
|
71
|
+
return (this.#data ??= Object.freeze({ "note": Number(this.getAttribute("note")), "rank": Number(this.getAttribute("rank")), "by": this.hasAttribute("by") ? Number(this.getAttribute("by")) : undefined }) as JRankData);
|
|
72
|
+
}
|
|
73
|
+
/** How a view shows it, drawn again whenever an attribute changes (what its person may do, its may, too). */
|
|
74
|
+
draw?(): void;
|
|
75
|
+
attributeChangedCallback() { this.#data = undefined; this.draw?.(); }
|
|
76
|
+
/** Replace some of its fields (rank): one write for all of them. */
|
|
77
|
+
replace(fields: Partial<Pick<JRankData, "rank">>, why?: string) {
|
|
78
|
+
return send(this, Object.entries(fields).filter(([, value]) => value !== undefined).map(([field, value]) => ({ op: "replace", path: `${this.path}/${field.replace(".", "/")}`, value })), why);
|
|
79
|
+
}
|
|
80
|
+
/** Remove it from the document. */
|
|
81
|
+
removeItem(why?: string) { return send(this, [{ op: "remove", path: this.path }], why); }
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** <j-ranks>: the document's ranks, each a <j-rank> inside it. */
|
|
85
|
+
export class JRanks extends HTMLElement {
|
|
86
|
+
connectedCallback() { hold(this, docOf(this), "ranks", "j-rank", {"note":"integer","rank":"decimal","by":"integer"}); }
|
|
87
|
+
disconnectedCallback() { letGo(this); }
|
|
88
|
+
/** Its ranks, as the document has them. */
|
|
89
|
+
get items() { return [...this.children].filter((el): el is JRank => el.localName === "j-rank"); }
|
|
90
|
+
/** Add ranks: one write for all of them. */
|
|
91
|
+
add(...values: JRankValue[]) { return send(this, values.map((value) => ({ op: "add", path: "/ranks/-", value }))); }
|
|
92
|
+
}
|
|
93
|
+
customElements.define("j-ranks", JRanks);
|
|
94
|
+
|
|
95
|
+
/** An op on notes the stories allow, in any of its collections. */
|
|
96
|
+
export type NotesOp =
|
|
97
|
+
| { op: "add"; path: "/notes/-"; value: JNoteValue }
|
|
98
|
+
| { op: "replace"; path: `/notes/${number}/text`; value: string }
|
|
99
|
+
| { op: "replace"; path: `/notes/${number}/more`; value: string }
|
|
100
|
+
| { op: "replace"; path: `/notes/${number}/done`; value: boolean }
|
|
101
|
+
| { op: "replace"; path: `/notes/${number}/when`; value: string }
|
|
102
|
+
| { op: "remove"; path: `/notes/${number}/more` }
|
|
103
|
+
| { op: "remove"; path: `/notes/${number}/done` }
|
|
104
|
+
| { op: "remove"; path: `/notes/${number}/when` }
|
|
105
|
+
| { op: "remove"; path: `/notes/${number}` }
|
|
106
|
+
| { op: "add"; path: "/ranks/-"; value: JRankValue }
|
|
107
|
+
| { op: "replace"; path: `/ranks/${number}/rank`; value: number }
|
|
108
|
+
| { op: "remove"; path: `/ranks/${number}` };
|
|
109
|
+
|
|
110
|
+
/** One write to notes across its collections (a move with its legs): sent from an element of it, checked
|
|
111
|
+
* whole by its rules, and made whole or not at all. */
|
|
112
|
+
export function write(from: Element, ops: NotesOp[], why?: string) { return send(from, ops, why); }
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Written by src/compile.ts from examples/notes/stories.jsonl: change the stories, not this.
|
|
2
|
+
|
|
3
|
+
/** Each collection's item, as one row of its table (`t`) is it: what the query gathers, and what the store keeps of a
|
|
4
|
+
* row a write changes, before and after, to tell each document holding it. */
|
|
5
|
+
export const items: Record<string, string> = {
|
|
6
|
+
"notes": "json_patch('{}', json_object('id', t.id,\n 'text', t.\"text\",\n 'more', t.\"more\",\n 'done', json(CASE t.\"done\" WHEN 1 THEN 'true' WHEN 0 THEN 'false' END),\n 'when', t.\"when\"))",
|
|
7
|
+
"ranks": "json_patch('{}', json_object('id', t.id,\n 'note', t.\"note\",\n 'rank', t.\"rank\",\n 'by', t.\"by\"))"
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
/** notes, whole, as one statement over its tables (SQLite): its parameters $doc. */
|
|
11
|
+
export const query = `SELECT json_object('version', COALESCE((SELECT version FROM documents WHERE name = $doc), 0),
|
|
12
|
+
'notes', json((SELECT json_group_array(json_patch('{}', json_object('id', t.id,
|
|
13
|
+
'text', t."text",
|
|
14
|
+
'more', t."more",
|
|
15
|
+
'done', json(CASE t."done" WHEN 1 THEN 'true' WHEN 0 THEN 'false' END),
|
|
16
|
+
'when', t."when")) ORDER BY t.id)
|
|
17
|
+
FROM "notes" t)),
|
|
18
|
+
'ranks', json((SELECT json_group_array(json_patch('{}', json_object('id', t.id,
|
|
19
|
+
'note', t."note",
|
|
20
|
+
'rank', t."rank",
|
|
21
|
+
'by', t."by")) ORDER BY t.id)
|
|
22
|
+
FROM "ranks" t))) AS doc`;
|
|
23
|
+
|
|
24
|
+
/** Its rules over values (definitions' takes, gives and totals), as triggers the store makes in its database: run in
|
|
25
|
+
* each write's transaction, and told as any change is. */
|
|
26
|
+
export const triggers: string[] = [];
|
|
27
|
+
|
|
28
|
+
/** Its items, its query and its triggers, as Postgres says them. */
|
|
29
|
+
export const postgres = {
|
|
30
|
+
"items": {
|
|
31
|
+
"notes": "json_strip_nulls(json_build_object('id', t.id,\n 'text', t.\"text\",\n 'more', t.\"more\",\n 'done', (CASE t.\"done\" WHEN 1 THEN true WHEN 0 THEN false END),\n 'when', t.\"when\"))",
|
|
32
|
+
"ranks": "json_strip_nulls(json_build_object('id', t.id,\n 'note', t.\"note\",\n 'rank', t.\"rank\",\n 'by', t.\"by\"))"
|
|
33
|
+
},
|
|
34
|
+
"query": "SELECT json_build_object('version', COALESCE((SELECT version FROM documents WHERE name = $doc), 0),\n 'notes', (SELECT COALESCE(json_agg(json_strip_nulls(json_build_object('id', t.id,\n 'text', t.\"text\",\n 'more', t.\"more\",\n 'done', (CASE t.\"done\" WHEN 1 THEN true WHEN 0 THEN false END),\n 'when', t.\"when\")) ORDER BY t.id), '[]')\n FROM \"notes\" t),\n 'ranks', (SELECT COALESCE(json_agg(json_strip_nulls(json_build_object('id', t.id,\n 'note', t.\"note\",\n 'rank', t.\"rank\",\n 'by', t.\"by\")) ORDER BY t.id), '[]')\n FROM \"ranks\" t)) AS doc",
|
|
35
|
+
"triggers": []
|
|
36
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Written by src/compile.ts from examples/notes/stories.jsonl: change the stories, not this.
|
|
2
|
+
|
|
3
|
+
// Each collection of notes as rows (joined/rows, the skill's §3): a page defines the ones it shows, as they are or
|
|
4
|
+
// extended, by define() from joined/rows, and holds each collection's element in its rows:
|
|
5
|
+
// <j-notes-rows><j-notes></j-notes><j-ranks></j-ranks></j-notes-rows>
|
|
6
|
+
// <j-ranks-rows><j-ranks></j-ranks></j-ranks-rows>
|
|
7
|
+
// A collection whose items are each of one of another's is drawn under it there, where its element is put in too.
|
|
8
|
+
// To change what one says or does, extend its class and override a part (label, named, says, facts, deeds, row,
|
|
9
|
+
// step, asks); to change how it looks, style its parts (::part(row), title, state, facts, deeds, mine, step, add,
|
|
10
|
+
// under, drawer). Its sheet, a search of it and how a field reads are joined/kit's, given these collections by
|
|
11
|
+
// use(specs) (define() gives a display's own). To draw something else altogether, don't define it: a display of the app's own holds the same
|
|
12
|
+
// elements. Never change this file: change the stories.
|
|
13
|
+
|
|
14
|
+
import { rows, type Spec } from "joined/rows";
|
|
15
|
+
import { JNote, JRank } from "./elements.ts";
|
|
16
|
+
|
|
17
|
+
const notes: Spec = {"doc":"notes","name":"notes","place":"j-notes","tag":"j-note","one":"note","title":"text","fields":[{"name":"text","type":"string","needed":true},{"name":"more","type":"string"},{"name":"done","type":"boolean"},{"name":"when","type":"date-time"}]};
|
|
18
|
+
const ranks: Spec = {"doc":"notes","name":"ranks","place":"j-ranks","tag":"j-rank","one":"rank","under":{"field":"note","in":"notes"},"mine":{"of":"note","by":"by"},"fields":[{"name":"note","type":"integer","needed":true,"how":"one","to":{"tag":"j-note","title":"text"}},{"name":"rank","type":"decimal","needed":true},{"name":"by","type":"integer","how":"filled","to":{"tag":"j-member","people":true},"ref":true}]};
|
|
19
|
+
|
|
20
|
+
/** Each collection as joined's kit (joined/kit) is given it, by name: use(specs). */
|
|
21
|
+
export const specs = { "notes": notes, "ranks": ranks };
|
|
22
|
+
|
|
23
|
+
/** <j-notes-rows>: notes's notes as rows, each named by its text, its ranks under it. */
|
|
24
|
+
export class JNotesRows extends rows(notes, { "j-note": JNote, "j-rank": JRank }, ranks) {}
|
|
25
|
+
|
|
26
|
+
/** <j-ranks-rows>: notes's ranks as rows. */
|
|
27
|
+
export class JRanksRows extends rows(ranks, { "j-rank": JRank }) {}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// Written by src/compile.ts from examples/notes/stories.jsonl: change the stories, not this.
|
|
2
|
+
|
|
3
|
+
export type Op = { op: "add" | "replace" | "remove"; path: string; value?: any };
|
|
4
|
+
|
|
5
|
+
/** The document, and each collection: its element, the element its items are, their fields, those an add needs, and
|
|
6
|
+
* what each link is to and what each field pops (a value with a form, its view; a reference, what it points at). */
|
|
7
|
+
export const doc = "notes";
|
|
8
|
+
export const collections = {
|
|
9
|
+
"notes": {
|
|
10
|
+
"place": "j-notes",
|
|
11
|
+
"tag": "j-note",
|
|
12
|
+
"fields": {
|
|
13
|
+
"text": "string",
|
|
14
|
+
"more": "string",
|
|
15
|
+
"done": "boolean",
|
|
16
|
+
"when": "date-time"
|
|
17
|
+
},
|
|
18
|
+
"needs": [
|
|
19
|
+
"text"
|
|
20
|
+
],
|
|
21
|
+
"links": {},
|
|
22
|
+
"pops": {
|
|
23
|
+
"when": {
|
|
24
|
+
"form": "date-time"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"ranks": {
|
|
29
|
+
"place": "j-ranks",
|
|
30
|
+
"tag": "j-rank",
|
|
31
|
+
"fields": {
|
|
32
|
+
"note": "integer",
|
|
33
|
+
"rank": "decimal",
|
|
34
|
+
"by": "integer"
|
|
35
|
+
},
|
|
36
|
+
"needs": [
|
|
37
|
+
"note",
|
|
38
|
+
"rank"
|
|
39
|
+
],
|
|
40
|
+
"links": {
|
|
41
|
+
"note": "notes",
|
|
42
|
+
"by": "members"
|
|
43
|
+
},
|
|
44
|
+
"pops": {
|
|
45
|
+
"by": {
|
|
46
|
+
"to": "members"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"goes": [
|
|
50
|
+
"note"
|
|
51
|
+
],
|
|
52
|
+
"fills": {
|
|
53
|
+
"by": "me"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
} as const;
|
|
57
|
+
/** Whether every story is anonymous, none told as a member: where every app's is, the project has no members. */
|
|
58
|
+
export const anonymous = false;
|
|
59
|
+
/** What kind of document notes is, by the flows it uses: static, changed only with a release (a page reads it, and
|
|
60
|
+
* never subscribes); read-only, live, but no page writes it (derived); or shared, its members' to write. */
|
|
61
|
+
export const type = "shared";
|
|
62
|
+
/** The parts of notes a page may hold alone, by its query's parameters (its definitions' window): null, none. */
|
|
63
|
+
export const window = null;
|
|
64
|
+
/** The document as one statement over its tables (generated/queries.ts). */
|
|
65
|
+
export { query, postgres, items, triggers } from "./queries.ts";
|
|
66
|
+
|
|
67
|
+
/** Why the document, as a write leaves it, breaks what its definitions hold (unique, noOverlap): each item the
|
|
68
|
+
* write touched, against the rest of its collection. Null if it holds. */
|
|
69
|
+
export function holds(d: Record<string, unknown>, touched: Record<string, number[]>): string | null {
|
|
70
|
+
for (const id of touched["ranks"] ?? []) {
|
|
71
|
+
const all = (d["ranks"] ?? []) as any[];
|
|
72
|
+
const a = all.find((i) => i.id === id);
|
|
73
|
+
if (!a) continue;
|
|
74
|
+
{
|
|
75
|
+
const b = all.find((i) => i.id !== a.id && a["note"] !== undefined && i["note"] === a["note"] && a["by"] !== undefined && i["by"] === a["by"]);
|
|
76
|
+
if (b) return "ranks " + b.id + " has that note and by already";
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** The collections of values that are each member's own (its definitions' mine): the link to the item each is of, and to its member, who alone changes or removes it. */
|
|
83
|
+
export const own: Record<string, { of: string; by: string }> = {"ranks":{"of":"note","by":"by"}};
|
|
84
|
+
|
|
85
|
+
/** notes is one document. */
|
|
86
|
+
export const kind = null;
|
|
87
|
+
|
|
88
|
+
/** Each grant, read off the stories: the roles whose stories do it (a member: anyone). An op no story
|
|
89
|
+
* does isn't one. */
|
|
90
|
+
export const grants: Record<string, string[]> = {
|
|
91
|
+
"add notes": [
|
|
92
|
+
"member"
|
|
93
|
+
],
|
|
94
|
+
"add ranks": [
|
|
95
|
+
"member"
|
|
96
|
+
],
|
|
97
|
+
"remove notes": [
|
|
98
|
+
"member"
|
|
99
|
+
],
|
|
100
|
+
"remove notes.done": [
|
|
101
|
+
"member"
|
|
102
|
+
],
|
|
103
|
+
"remove notes.more": [
|
|
104
|
+
"member"
|
|
105
|
+
],
|
|
106
|
+
"remove notes.when": [
|
|
107
|
+
"member"
|
|
108
|
+
],
|
|
109
|
+
"remove ranks": [
|
|
110
|
+
"member"
|
|
111
|
+
],
|
|
112
|
+
"replace notes.done": [
|
|
113
|
+
"member"
|
|
114
|
+
],
|
|
115
|
+
"replace notes.more": [
|
|
116
|
+
"member"
|
|
117
|
+
],
|
|
118
|
+
"replace notes.text": [
|
|
119
|
+
"member"
|
|
120
|
+
],
|
|
121
|
+
"replace notes.when": [
|
|
122
|
+
"member"
|
|
123
|
+
],
|
|
124
|
+
"replace ranks.rank": [
|
|
125
|
+
"member"
|
|
126
|
+
]
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/** Who someone is to notes: a member, as it names no roles. */
|
|
130
|
+
export const rolesOf = (_m: number, _read: (doc: string) => any, _doc: string, _at?: any): string[] => [];
|
|
131
|
+
|
|
132
|
+
/** What someone sees: all of notes, as it has no owns. */
|
|
133
|
+
export const sees = null;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>joined: notes</title>
|
|
7
|
+
<link rel="stylesheet" href="joined/tokens.css" />
|
|
8
|
+
<link rel="stylesheet" href="joined/page.css" />
|
|
9
|
+
<link rel="stylesheet" href="../app.css" />
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<a class="brand" href="/"><img src="joined/icon.png" alt="" width="28" height="28" />joined</a>
|
|
13
|
+
<h1>Notes</h1>
|
|
14
|
+
<nav class="bar"><members-panel></members-panel></nav>
|
|
15
|
+
<p class="lead">
|
|
16
|
+
The notes are everyone's; the order you'd take them in is your own. This page is its stories, joined's kit and a
|
|
17
|
+
few lines.
|
|
18
|
+
</p>
|
|
19
|
+
<main>
|
|
20
|
+
<j-search for="notes"></j-search>
|
|
21
|
+
<j-views>
|
|
22
|
+
<j-notes-rows label="List"><j-notes></j-notes><j-ranks></j-ranks></j-notes-rows>
|
|
23
|
+
<j-week for="notes"></j-week>
|
|
24
|
+
<j-month for="notes"></j-month>
|
|
25
|
+
<j-timeline for="notes"></j-timeline>
|
|
26
|
+
<j-board for="notes" by="done"></j-board>
|
|
27
|
+
</j-views>
|
|
28
|
+
</main>
|
|
29
|
+
<j-sheet for="notes"></j-sheet>
|
|
30
|
+
<script type="module" src="./page.ts"></script>
|
|
31
|
+
</body>
|
|
32
|
+
</html>
|