@powerhousedao/connect 6.2.3-dev.61 → 6.2.3-dev.62
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/README.md +101 -0
- package/dist/{AddDriveModal-C5odBO8y.js → AddDriveModal-D_3jDwjp.js} +6 -6
- package/dist/AddDriveModal-D_3jDwjp.js.map +1 -0
- package/dist/{ClearStorageModal-nzpz8MeW.js → ClearStorageModal-CXWhHez-.js} +9 -11
- package/dist/ClearStorageModal-CXWhHez-.js.map +1 -0
- package/dist/{ConfirmDocumentUpgradeModal-k79v2wM6.js → ConfirmDocumentUpgradeModal-CrU2Z1CL.js} +5 -5
- package/dist/{ConfirmDocumentUpgradeModal-k79v2wM6.js.map → ConfirmDocumentUpgradeModal-CrU2Z1CL.js.map} +1 -1
- package/dist/{CookiesPolicyModal-BLw4pnhn.js → CookiesPolicyModal-DQwsgDI9.js} +5 -5
- package/dist/{CookiesPolicyModal-BLw4pnhn.js.map → CookiesPolicyModal-DQwsgDI9.js.map} +1 -1
- package/dist/{CreateDocumentModal-Bmv0V-kY.js → CreateDocumentModal-Cf1APibL.js} +4 -4
- package/dist/{CreateDocumentModal-Bmv0V-kY.js.map → CreateDocumentModal-Cf1APibL.js.map} +1 -1
- package/dist/{DebugSettingsModal-BW0HWI1D.js → DebugSettingsModal-C0j4mtkx.js} +8 -8
- package/dist/{DebugSettingsModal-BW0HWI1D.js.map → DebugSettingsModal-C0j4mtkx.js.map} +1 -1
- package/dist/{DeleteDriveModal-CjGnG0ht.js → DeleteDriveModal-lE9eCBua.js} +5 -5
- package/dist/{DeleteDriveModal-CjGnG0ht.js.map → DeleteDriveModal-lE9eCBua.js.map} +1 -1
- package/dist/{DeleteItemModal-BbY_4_xT.js → DeleteItemModal-BFgcGsm3.js} +6 -6
- package/dist/{DeleteItemModal-BbY_4_xT.js.map → DeleteItemModal-BFgcGsm3.js.map} +1 -1
- package/dist/{DisclaimerModal-DuglmEwL.js → DisclaimerModal-CF6JkIIu.js} +6 -6
- package/dist/{DisclaimerModal-DuglmEwL.js.map → DisclaimerModal-CF6JkIIu.js.map} +1 -1
- package/dist/{DocumentVersionUnsupportedModal-C4fy7fZ6.js → DocumentVersionUnsupportedModal-Cm9Jb9W7.js} +5 -5
- package/dist/DocumentVersionUnsupportedModal-Cm9Jb9W7.js.map +1 -0
- package/dist/{DownloadDocumentWithErrorsModal-BsPQ5qgy.js → DownloadDocumentWithErrorsModal-CShKhfEQ.js} +5 -5
- package/dist/{DownloadDocumentWithErrorsModal-BsPQ5qgy.js.map → DownloadDocumentWithErrorsModal-CShKhfEQ.js.map} +1 -1
- package/dist/{DriveAuthRequiredModal-CtsB0kwH.js → DriveAuthRequiredModal-CMwPUyZf.js} +5 -5
- package/dist/{DriveAuthRequiredModal-CtsB0kwH.js.map → DriveAuthRequiredModal-CMwPUyZf.js.map} +1 -1
- package/dist/{DriveSettingsModal-d1L0eYof.js → DriveSettingsModal-BSImj4BH.js} +5 -5
- package/dist/{DriveSettingsModal-d1L0eYof.js.map → DriveSettingsModal-BSImj4BH.js.map} +1 -1
- package/dist/FloatingTanStackRouterDevtools-CqogiFob-dxj8lrTP.js +2565 -0
- package/dist/FloatingTanStackRouterDevtools-CqogiFob-dxj8lrTP.js.map +1 -0
- package/dist/{InspectorModal-Dpf-3LVT.js → InspectorModal-CKuKR5g7.js} +9 -9
- package/dist/{InspectorModal-Dpf-3LVT.js.map → InspectorModal-CKuKR5g7.js.map} +1 -1
- package/dist/{LoginModal-CI0ogC2-.js → LoginModal-DT_05uva.js} +6 -6
- package/dist/{LoginModal-CI0ogC2-.js.map → LoginModal-DT_05uva.js.map} +1 -1
- package/dist/{MissingPackageModal-DS3dgJ1K.js → MissingPackageModal-DtISKgub.js} +6 -6
- package/dist/{MissingPackageModal-DS3dgJ1K.js.map → MissingPackageModal-DtISKgub.js.map} +1 -1
- package/dist/{OpenFileDocumentsModal-BOmFtxS1.js → OpenFileDocumentsModal-X9GnX2Bk.js} +13 -12
- package/dist/OpenFileDocumentsModal-X9GnX2Bk.js.map +1 -0
- package/dist/{UpgradeDriveModal-CXX6D5Au.js → UpgradeDriveModal-DvM-PNWe.js} +6 -6
- package/dist/{UpgradeDriveModal-CXX6D5Au.js.map → UpgradeDriveModal-DvM-PNWe.js.map} +1 -1
- package/dist/app-layout-BIq-ZW-6.js +394 -0
- package/dist/app-layout-BIq-ZW-6.js.map +1 -0
- package/dist/app-loader-DqNf3gc0.js +1291 -0
- package/dist/app-loader-DqNf3gc0.js.map +1 -0
- package/dist/app-loader-gMCokq-Y.js +4 -0
- package/dist/{app-skeleton-CBN4tenZ.js → app-skeleton-DYLZ7npI.js} +3 -3
- package/dist/{app-skeleton--Me5zlSz.js → app-skeleton-gzg8cRzm.js} +7 -7
- package/dist/app-skeleton-gzg8cRzm.js.map +1 -0
- package/dist/{boot-CNW7ypcB.js → boot-CC_DgQKX.js} +32 -9
- package/dist/boot-CC_DgQKX.js.map +1 -0
- package/dist/{build-info-DNKZUbvY.js → build-info-BL03di3M.js} +5 -5
- package/dist/{build-info-DNKZUbvY.js.map → build-info-BL03di3M.js.map} +1 -1
- package/dist/components-D4yHqff7.js +120 -0
- package/dist/components-D4yHqff7.js.map +1 -0
- package/dist/connect-router-KmNBGS0G.js +434 -0
- package/dist/connect-router-KmNBGS0G.js.map +1 -0
- package/dist/{connect.config-CB78ZsFz.js → connect.config-uZF-gnvV.js} +7 -7
- package/dist/{connect.config-CB78ZsFz.js.map → connect.config-uZF-gnvV.js.map} +1 -1
- package/dist/{connection-state-BDikOGKo.js → connection-state-C_477Kr_.js} +6 -6
- package/dist/{connection-state-BDikOGKo.js.map → connection-state-C_477Kr_.js.map} +1 -1
- package/dist/context-De2EB1AA-Ni0d829Q.js +1759 -0
- package/dist/context-De2EB1AA-Ni0d829Q.js.map +1 -0
- package/dist/{cookie-banner-D05DZRqY.js → cookie-banner-HPgyuHM5.js} +6 -6
- package/dist/{cookie-banner-D05DZRqY.js.map → cookie-banner-HPgyuHM5.js.map} +1 -1
- package/dist/drive-icon-BiVP8yJc.js +38 -0
- package/dist/drive-icon-BiVP8yJc.js.map +1 -0
- package/dist/esm-BDACZntJ.js +148 -0
- package/dist/esm-BDACZntJ.js.map +1 -0
- package/dist/index-UrZFqSgm.d.ts +166 -0
- package/dist/index-UrZFqSgm.d.ts.map +1 -0
- package/dist/layout.d.ts +29 -0
- package/dist/layout.d.ts.map +1 -0
- package/dist/layout.js +6 -0
- package/dist/{load-BxQ82Cxc.js → load-CEuzCNRz.js} +48 -48
- package/dist/load-CEuzCNRz.js.map +1 -0
- package/dist/main.js +2 -2
- package/dist/{multi-reactor-BG-DqUcm.js → multi-reactor-fSKpLBjT.js} +10 -7
- package/dist/multi-reactor-fSKpLBjT.js.map +1 -0
- package/dist/open-file-uploads-BcyWmUZn.js +183 -0
- package/dist/open-file-uploads-BcyWmUZn.js.map +1 -0
- package/dist/{package-manager-BPVMRBoV.js → package-manager-BkFRzovd.js} +52 -45
- package/dist/package-manager-BkFRzovd.js.map +1 -0
- package/dist/{pglite-migrate-core-BcXcImng.js → pglite-migrate-core-DBlU6HIc.js} +4 -4
- package/dist/pglite-migrate-core-DBlU6HIc.js.map +1 -0
- package/dist/{pglite-seed-CQJ97bEt.js → pglite-seed-BsEPByVM.js} +4 -4
- package/dist/{pglite-seed-CQJ97bEt.js.map → pglite-seed-BsEPByVM.js.map} +1 -1
- package/dist/{preferences-store-Cm0BoiHA.js → preferences-store-DANUajdg.js} +4 -4
- package/dist/{preferences-store-Cm0BoiHA.js.map → preferences-store-DANUajdg.js.map} +1 -1
- package/dist/prerendered-shell-DxCUDEXL.js +45 -0
- package/dist/prerendered-shell-DxCUDEXL.js.map +1 -0
- package/dist/{reactor-DHJyk5ow.js → reactor-DmBtssmg.js} +50 -46
- package/dist/reactor-DmBtssmg.js.map +1 -0
- package/dist/reactor-chat-LAB-9G3G.js +50 -0
- package/dist/reactor-chat-LAB-9G3G.js.map +1 -0
- package/dist/reactor.worker.js +85 -27
- package/dist/reactor.worker.js.map +1 -1
- package/dist/{registerServiceWorker-DT6t8wjg.js → registerServiceWorker-CkVxA2KC.js} +4 -4
- package/dist/{registerServiceWorker-DT6t8wjg.js.map → registerServiceWorker-CkVxA2KC.js.map} +1 -1
- package/dist/route-components-BkztQruF.js +148 -0
- package/dist/route-components-BkztQruF.js.map +1 -0
- package/dist/route-tree.d.ts +2229 -0
- package/dist/route-tree.d.ts.map +1 -0
- package/dist/route-tree.js +211 -0
- package/dist/route-tree.js.map +1 -0
- package/dist/router-B4Z1LV9b.js +4 -0
- package/dist/router-BlxJIE3W.js +604 -0
- package/dist/router-BlxJIE3W.js.map +1 -0
- package/dist/router.d.ts +4 -0
- package/dist/router.js +7 -0
- package/dist/{runtime-config-DI5OfIC6.js → runtime-config-DdN1Frg7.js} +6 -9
- package/dist/runtime-config-DdN1Frg7.js.map +1 -0
- package/dist/{sentry-jfDyrxdX.js → sentry-CJb7--mu.js} +7 -4
- package/dist/{sentry-jfDyrxdX.js.map → sentry-CJb7--mu.js.map} +1 -1
- package/dist/{SettingsModal-BJVPEHbo.js → settings-2Id1UgNY.js} +126 -83
- package/dist/settings-2Id1UgNY.js.map +1 -0
- package/dist/settings-CjvK8OKA.js +91 -0
- package/dist/settings-CjvK8OKA.js.map +1 -0
- package/dist/shell-head.html +1 -0
- package/dist/shell.html +1 -0
- package/dist/sidebar-BXf8OEwm.d.ts +34 -0
- package/dist/sidebar-BXf8OEwm.d.ts.map +1 -0
- package/dist/sidebar-lAVFRsni.js +31 -0
- package/dist/sidebar-lAVFRsni.js.map +1 -0
- package/dist/start-connect.d.ts +4 -1
- package/dist/start-connect.d.ts.map +1 -1
- package/dist/start-connect.js +9 -5
- package/dist/start-connect.js.map +1 -1
- package/dist/style.css +36 -18
- package/dist/{useRegistryPackages-3EcR3GOh.js → useRegistryPackages-BqIWwXV-.js} +5 -5
- package/dist/{useRegistryPackages-3EcR3GOh.js.map → useRegistryPackages-BqIWwXV-.js.map} +1 -1
- package/fonts.css +177 -0
- package/package.json +51 -22
- package/scripts/critical-css.ts +243 -0
- package/scripts/prerender-shell.ts +100 -0
- package/src/routeTree.gen.ts +293 -0
- package/src/router/connect-router.ts +170 -0
- package/src/router/drive-route-loader.ts +116 -0
- package/src/router/index.ts +51 -0
- package/src/router/navigation.ts +230 -0
- package/src/router/perf-marks.test.tsx +98 -0
- package/src/router/perf-marks.ts +97 -0
- package/src/router/register.ts +9 -0
- package/src/router/route-components.tsx +98 -0
- package/src/router/route-tree.ts +88 -0
- package/src/router/scroll.ts +69 -0
- package/src/router/search.ts +66 -0
- package/src/router/settings.ts +120 -0
- package/src/router/sidebar.ts +55 -0
- package/src/router/titles.test.ts +24 -0
- package/src/router/titles.ts +33 -0
- package/src/routes/__root.tsx +28 -0
- package/src/routes/core/_app/$.tsx +13 -0
- package/src/routes/core/_app/_content/d/$driveSlug/{-$nodeSlug}.tsx +52 -0
- package/src/routes/core/_app/_content/index.tsx +3 -0
- package/src/routes/core/_app/_content.tsx +9 -0
- package/src/routes/core/_app/settings/about.tsx +20 -0
- package/src/routes/core/_app/settings/ai-assistant.tsx +20 -0
- package/src/routes/core/_app/settings/danger-zone.tsx +21 -0
- package/src/routes/core/_app/settings/default-editors.tsx +20 -0
- package/src/routes/core/_app/settings/package-manager.tsx +20 -0
- package/src/routes/core/_app/settings.tsx +35 -0
- package/src/routes/core/_app.tsx +10 -0
- package/dist/AddDriveModal-C5odBO8y.js.map +0 -1
- package/dist/ClearStorageModal-nzpz8MeW.js.map +0 -1
- package/dist/DocumentVersionUnsupportedModal-C4fy7fZ6.js.map +0 -1
- package/dist/OpenFileDocumentsModal-BOmFtxS1.js.map +0 -1
- package/dist/SettingsModal-BJVPEHbo.js.map +0 -1
- package/dist/app-loader-CNCzLxgV.js +0 -2379
- package/dist/app-loader-CNCzLxgV.js.map +0 -1
- package/dist/app-loader-DvnGgSyC.js +0 -4
- package/dist/app-skeleton--Me5zlSz.js.map +0 -1
- package/dist/boot-CNW7ypcB.js.map +0 -1
- package/dist/components-BKUI79po.js +0 -5
- package/dist/load-BxQ82Cxc.js.map +0 -1
- package/dist/multi-reactor-BG-DqUcm.js.map +0 -1
- package/dist/package-manager-BPVMRBoV.js.map +0 -1
- package/dist/pglite-migrate-core-BcXcImng.js.map +0 -1
- package/dist/reactor-DHJyk5ow.js.map +0 -1
- package/dist/runtime-config-DI5OfIC6.js.map +0 -1
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
// Prunes Tailwind's minified output down to what the prerendered shell uses.
|
|
2
|
+
|
|
3
|
+
type Node =
|
|
4
|
+
| { kind: "statement"; text: string }
|
|
5
|
+
| { kind: "rule"; prelude: string; body: string }
|
|
6
|
+
| { kind: "block"; prelude: string; children: Node[] };
|
|
7
|
+
|
|
8
|
+
/** Parses minified CSS into statements, leaf rules and nested blocks. */
|
|
9
|
+
function parse(css: string): Node[] {
|
|
10
|
+
const nodes: Node[] = [];
|
|
11
|
+
let i = 0;
|
|
12
|
+
while (i < css.length) {
|
|
13
|
+
if (css.startsWith("/*", i)) {
|
|
14
|
+
const end = css.indexOf("*/", i + 2);
|
|
15
|
+
i = end < 0 ? css.length : end + 2;
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
const open = scan(css, i, "{;");
|
|
19
|
+
if (open < 0) break;
|
|
20
|
+
const prelude = css.slice(i, open).trim();
|
|
21
|
+
if (css[open] === ";") {
|
|
22
|
+
if (prelude) nodes.push({ kind: "statement", text: `${prelude};` });
|
|
23
|
+
i = open + 1;
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
const close = matching(css, open);
|
|
27
|
+
const inner = css.slice(open + 1, close);
|
|
28
|
+
nodes.push(
|
|
29
|
+
scan(inner, 0, "{") < 0
|
|
30
|
+
? { kind: "rule", prelude, body: inner }
|
|
31
|
+
: { kind: "block", prelude, children: parse(inner) },
|
|
32
|
+
);
|
|
33
|
+
i = close + 1;
|
|
34
|
+
}
|
|
35
|
+
return nodes;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// The first of `chars` outside quotes and parentheses, or -1.
|
|
39
|
+
function scan(css: string, from: number, chars: string) {
|
|
40
|
+
let quote = "";
|
|
41
|
+
let depth = 0;
|
|
42
|
+
for (let i = from; i < css.length; i++) {
|
|
43
|
+
const c = css[i];
|
|
44
|
+
if (quote) {
|
|
45
|
+
if (c === "\\") i++;
|
|
46
|
+
else if (c === quote) quote = "";
|
|
47
|
+
} else if (c === '"' || c === "'") quote = c;
|
|
48
|
+
else if (c === "(") depth++;
|
|
49
|
+
else if (c === ")") depth--;
|
|
50
|
+
else if (depth === 0 && chars.includes(c)) return i;
|
|
51
|
+
}
|
|
52
|
+
return -1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function matching(css: string, open: number) {
|
|
56
|
+
let depth = 0;
|
|
57
|
+
let quote = "";
|
|
58
|
+
for (let i = open; i < css.length; i++) {
|
|
59
|
+
const c = css[i];
|
|
60
|
+
if (quote) {
|
|
61
|
+
if (c === "\\") i++;
|
|
62
|
+
else if (c === quote) quote = "";
|
|
63
|
+
} else if (c === '"' || c === "'") quote = c;
|
|
64
|
+
else if (c === "{") depth++;
|
|
65
|
+
else if (c === "}" && --depth === 0) return i;
|
|
66
|
+
}
|
|
67
|
+
return css.length;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function print(nodes: Node[]): string {
|
|
71
|
+
return nodes
|
|
72
|
+
.map((node) =>
|
|
73
|
+
node.kind === "statement"
|
|
74
|
+
? node.text
|
|
75
|
+
: node.kind === "rule"
|
|
76
|
+
? `${node.prelude}{${node.body}}`
|
|
77
|
+
: `${node.prelude}{${print(node.children)}}`,
|
|
78
|
+
)
|
|
79
|
+
.join("");
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function splitTopLevel(text: string, separator: string) {
|
|
83
|
+
const parts: string[] = [];
|
|
84
|
+
let start = 0;
|
|
85
|
+
for (;;) {
|
|
86
|
+
const at = scan(text, start, separator);
|
|
87
|
+
if (at < 0) break;
|
|
88
|
+
parts.push(text.slice(start, at));
|
|
89
|
+
start = at + 1;
|
|
90
|
+
}
|
|
91
|
+
parts.push(text.slice(start));
|
|
92
|
+
return parts;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Form-control pseudo-elements only apply to these.
|
|
96
|
+
const FORM_PSEUDO = /::(placeholder|file-selector-button|-webkit-[\w-]+)/;
|
|
97
|
+
const FORM_TAGS = ["input", "textarea", "select"];
|
|
98
|
+
|
|
99
|
+
/** Whether a preflight selector can match an element of `tags`/`attributes`. */
|
|
100
|
+
function selectorApplies(
|
|
101
|
+
selector: string,
|
|
102
|
+
tags: Set<string>,
|
|
103
|
+
attributes: Set<string>,
|
|
104
|
+
) {
|
|
105
|
+
// Element names: not after `:`, `.`, `#`, `-` or inside an attribute selector.
|
|
106
|
+
const bare = selector.replace(/\[[^\]]*\]/g, (attr) => {
|
|
107
|
+
const name = /^\[([\w-]+)/.exec(attr)?.[1];
|
|
108
|
+
return name && !attributes.has(name) ? "[missing]" : "";
|
|
109
|
+
});
|
|
110
|
+
if (bare.includes("[missing]")) return false;
|
|
111
|
+
const types = [...bare.matchAll(/(?:^|[\s>+~(,])([a-z][a-z0-9-]*)/g)].map(
|
|
112
|
+
(match) => match[1],
|
|
113
|
+
);
|
|
114
|
+
if (types.some((type) => !tags.has(type))) return false;
|
|
115
|
+
if (FORM_PSEUDO.test(selector)) return FORM_TAGS.some((tag) => tags.has(tag));
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function prunePreflight(
|
|
120
|
+
nodes: Node[],
|
|
121
|
+
tags: Set<string>,
|
|
122
|
+
attributes: Set<string>,
|
|
123
|
+
): Node[] {
|
|
124
|
+
return nodes.flatMap((node): Node[] => {
|
|
125
|
+
if (node.kind === "statement") return [node];
|
|
126
|
+
if (node.kind === "block") {
|
|
127
|
+
const children = prunePreflight(node.children, tags, attributes);
|
|
128
|
+
return children.length ? [{ ...node, children }] : [];
|
|
129
|
+
}
|
|
130
|
+
const kept = splitTopLevel(node.prelude, ",").filter((selector) =>
|
|
131
|
+
selectorApplies(selector.trim(), tags, attributes),
|
|
132
|
+
);
|
|
133
|
+
return kept.length ? [{ ...node, prelude: kept.join(",") }] : [];
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const VAR_REFERENCE = /var\((--[\w-]+)/g;
|
|
138
|
+
const references = (text: string) =>
|
|
139
|
+
[...text.matchAll(VAR_REFERENCE)].map((match) => match[1]);
|
|
140
|
+
|
|
141
|
+
/** Rules that only declare custom properties: theme tokens and resets. */
|
|
142
|
+
function isVariableRule(node: Extract<Node, { kind: "rule" }>) {
|
|
143
|
+
return splitTopLevel(node.body, ";").every(
|
|
144
|
+
(declaration) => !declaration.trim() || declaration.trim().startsWith("--"),
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function declarationsOf(body: string) {
|
|
149
|
+
return splitTopLevel(body, ";").filter((declaration) => declaration.trim());
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function walk(nodes: Node[], visit: (node: Node) => void) {
|
|
153
|
+
for (const node of nodes) {
|
|
154
|
+
visit(node);
|
|
155
|
+
if (node.kind === "block") walk(node.children, visit);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function filterTree(nodes: Node[], keep: (node: Node) => Node | null): Node[] {
|
|
160
|
+
return nodes.flatMap((node): Node[] => {
|
|
161
|
+
const kept = keep(node);
|
|
162
|
+
if (!kept) return [];
|
|
163
|
+
if (kept.kind !== "block" || kept.prelude.startsWith("@keyframes")) {
|
|
164
|
+
return [kept];
|
|
165
|
+
}
|
|
166
|
+
const children = filterTree(kept.children, keep);
|
|
167
|
+
return children.length ? [{ ...kept, children }] : [];
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** `css` without the preflight, tokens, `@property` rules and keyframes that
|
|
172
|
+
* `markup` and `extraCss` never reach. */
|
|
173
|
+
export function pruneCriticalCss(css: string, markup: string, extraCss = "") {
|
|
174
|
+
const tags = new Set(
|
|
175
|
+
["html", "body"].concat(
|
|
176
|
+
[...markup.matchAll(/<([a-zA-Z][\w-]*)/g)].map((m) => m[1].toLowerCase()),
|
|
177
|
+
),
|
|
178
|
+
);
|
|
179
|
+
const attributes = new Set(
|
|
180
|
+
[...markup.matchAll(/\s([a-zA-Z][\w-:]*)(?==|[\s>])/g)].map((m) => m[1]),
|
|
181
|
+
);
|
|
182
|
+
let nodes = parse(css).map((node) =>
|
|
183
|
+
node.kind === "block" && node.prelude === "@layer base"
|
|
184
|
+
? { ...node, children: prunePreflight(node.children, tags, attributes) }
|
|
185
|
+
: node,
|
|
186
|
+
);
|
|
187
|
+
|
|
188
|
+
// Custom properties: reached from real declarations, the markup or extraCss.
|
|
189
|
+
const definitions = new Map<string, string[]>();
|
|
190
|
+
const seeds: string[] = [markup, extraCss];
|
|
191
|
+
walk(nodes, (node) => {
|
|
192
|
+
if (node.kind === "rule" && isVariableRule(node)) {
|
|
193
|
+
for (const declaration of declarationsOf(node.body)) {
|
|
194
|
+
const colon = declaration.indexOf(":");
|
|
195
|
+
const name = declaration.slice(0, colon).trim();
|
|
196
|
+
const refs = definitions.get(name) ?? [];
|
|
197
|
+
refs.push(...references(declaration.slice(colon + 1)));
|
|
198
|
+
definitions.set(name, refs);
|
|
199
|
+
}
|
|
200
|
+
} else if (node.kind === "rule") {
|
|
201
|
+
seeds.push(node.body);
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
const used = new Set(seeds.flatMap(references));
|
|
205
|
+
for (const name of used) {
|
|
206
|
+
for (const ref of definitions.get(name) ?? []) used.add(ref);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
nodes = filterTree(nodes, (node) => {
|
|
210
|
+
if (node.kind === "rule" && isVariableRule(node)) {
|
|
211
|
+
const kept = declarationsOf(node.body).filter((declaration) =>
|
|
212
|
+
used.has(declaration.slice(0, declaration.indexOf(":")).trim()),
|
|
213
|
+
);
|
|
214
|
+
return kept.length ? { ...node, body: kept.join(";") } : null;
|
|
215
|
+
}
|
|
216
|
+
if (node.kind === "rule" && node.prelude.startsWith("@property ")) {
|
|
217
|
+
return used.has(node.prelude.slice(10).trim()) ? node : null;
|
|
218
|
+
}
|
|
219
|
+
return node;
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
// Keyframes: kept when a remaining declaration names them.
|
|
223
|
+
const remaining = print(
|
|
224
|
+
filterTree(nodes, (node) =>
|
|
225
|
+
node.kind === "block" && node.prelude.startsWith("@keyframes")
|
|
226
|
+
? null
|
|
227
|
+
: node,
|
|
228
|
+
),
|
|
229
|
+
).concat(extraCss, markup);
|
|
230
|
+
return print(
|
|
231
|
+
filterTree(nodes, (node) => {
|
|
232
|
+
if (node.kind !== "block" || !node.prelude.startsWith("@keyframes")) {
|
|
233
|
+
return node;
|
|
234
|
+
}
|
|
235
|
+
const name = node.prelude.slice(10).trim();
|
|
236
|
+
return new RegExp(
|
|
237
|
+
`(animation[\\w-]*:|--animate-[\\w-]+:)[^;}]*\\b${name}\\b`,
|
|
238
|
+
).test(remaining)
|
|
239
|
+
? node
|
|
240
|
+
: null;
|
|
241
|
+
}),
|
|
242
|
+
);
|
|
243
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// Writes dist/shell.html (#root's markup) and dist/shell-head.html (critical CSS + guard).
|
|
2
|
+
import { execFileSync } from "node:child_process";
|
|
3
|
+
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
|
+
import { dirname, join } from "node:path";
|
|
5
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
6
|
+
import { pruneCriticalCss } from "./critical-css.ts";
|
|
7
|
+
|
|
8
|
+
process.env.NODE_ENV = "production";
|
|
9
|
+
|
|
10
|
+
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
11
|
+
const prerenderDir = join(root, ".prerender");
|
|
12
|
+
const distDir = join(root, "dist");
|
|
13
|
+
|
|
14
|
+
// The marker boot.tsx and the project build look for; keep in sync with src/prerender/shell.tsx.
|
|
15
|
+
const SHELL_MARKER = "data-ph-shell";
|
|
16
|
+
|
|
17
|
+
// Before first paint: no sidebar in an embed, and the home view hidden off the home path.
|
|
18
|
+
const GUARD_SCRIPT =
|
|
19
|
+
`(function(){try{var h=document.documentElement;` +
|
|
20
|
+
`var e=new URLSearchParams(location.search).get('embed');` +
|
|
21
|
+
`if(e!==null&&e!=='0'&&e!=='false')h.classList.add('ph-shell-embed');` +
|
|
22
|
+
`var p=location.pathname;` +
|
|
23
|
+
`if(!/\\/$/.test(p)||/\\/d\\//.test(p))h.classList.add('ph-shell-route')` +
|
|
24
|
+
`}catch(x){}})();`;
|
|
25
|
+
|
|
26
|
+
// The loader fades in late so fast loads never show it; --ph-shell-t (set when
|
|
27
|
+
// React re-renders the shell) keeps both animations on the navigation's clock.
|
|
28
|
+
const GUARD_CSS =
|
|
29
|
+
`.ph-shell-embed [${SHELL_MARKER}] #sidebar{display:none}` +
|
|
30
|
+
`.ph-shell-route [${SHELL_MARKER}] #content-view{visibility:hidden}` +
|
|
31
|
+
`@keyframes ph-shell-loader-in{from{opacity:0}to{opacity:1}}` +
|
|
32
|
+
`.ph-shell-loader{animation:ph-shell-loader-in .2s ease-in both;animation-delay:calc(.25s + var(--ph-shell-t,0ms))}` +
|
|
33
|
+
`.ph-shell-loader .animate-pulse{animation-delay:var(--ph-shell-t,0ms)}`;
|
|
34
|
+
|
|
35
|
+
// Data-URI images (the login button's PNGs) weigh more than the rest of the
|
|
36
|
+
// shell; a box of their size keeps the layout.
|
|
37
|
+
function replaceInlineImages(html: string) {
|
|
38
|
+
return html.replace(/<img\b[^>]*\bsrc="data:[^"]*"[^>]*>/g, (img) => {
|
|
39
|
+
const attr = (name: string) =>
|
|
40
|
+
new RegExp(`\\b${name}="([^"]*)"`).exec(img)?.[1];
|
|
41
|
+
// A hidden variant (e.g. the hover image) needs no box.
|
|
42
|
+
if (/(^| )hidden( |$)/.test(attr("class") ?? "")) return "";
|
|
43
|
+
const width = attr("width");
|
|
44
|
+
const height = attr("height");
|
|
45
|
+
const size = `${width ? `width:${width}px;` : ""}${height ? `height:${height}px;` : ""}`;
|
|
46
|
+
return `<span style="display:inline-block;${size}"></span>`;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const { renderShell } = (await import(
|
|
51
|
+
pathToFileURL(join(prerenderDir, "shell.js")).href
|
|
52
|
+
)) as { renderShell: () => Promise<string> };
|
|
53
|
+
|
|
54
|
+
// The router's scroll restoration script is for hydration, and the page keeps
|
|
55
|
+
// its own title until the app's routes set one.
|
|
56
|
+
const markup = replaceInlineImages(
|
|
57
|
+
(await renderShell())
|
|
58
|
+
.replace(/<script\b[^>]*>[\s\S]*?<\/script>/g, "")
|
|
59
|
+
.replace(/<title\b[^>]*>[\s\S]*?<\/title>/g, ""),
|
|
60
|
+
);
|
|
61
|
+
writeFileSync(join(prerenderDir, "shell.html"), markup);
|
|
62
|
+
|
|
63
|
+
execFileSync(
|
|
64
|
+
"pnpm",
|
|
65
|
+
[
|
|
66
|
+
"exec",
|
|
67
|
+
"tailwindcss",
|
|
68
|
+
"-i",
|
|
69
|
+
"src/prerender/shell.css",
|
|
70
|
+
"-o",
|
|
71
|
+
".prerender/shell.css",
|
|
72
|
+
"--minify",
|
|
73
|
+
],
|
|
74
|
+
// Windows runs pnpm as pnpm.cmd, which only a shell resolves.
|
|
75
|
+
{
|
|
76
|
+
cwd: root,
|
|
77
|
+
stdio: ["ignore", "ignore", "inherit"],
|
|
78
|
+
shell: process.platform === "win32",
|
|
79
|
+
},
|
|
80
|
+
);
|
|
81
|
+
const css = pruneCriticalCss(
|
|
82
|
+
readFileSync(join(prerenderDir, "shell.css"), "utf8"),
|
|
83
|
+
markup,
|
|
84
|
+
GUARD_CSS,
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
mkdirSync(distDir, { recursive: true });
|
|
88
|
+
writeFileSync(
|
|
89
|
+
join(distDir, "shell.html"),
|
|
90
|
+
// Inert: clicks and focus wait for the app; a static shell does nothing with them.
|
|
91
|
+
`<div ${SHELL_MARKER} inert style="display:contents">${markup}</div>`,
|
|
92
|
+
);
|
|
93
|
+
writeFileSync(
|
|
94
|
+
join(distDir, "shell-head.html"),
|
|
95
|
+
`<style ${SHELL_MARKER}>${css}${GUARD_CSS}</style>` +
|
|
96
|
+
`<script ${SHELL_MARKER}>${GUARD_SCRIPT}</script>`,
|
|
97
|
+
);
|
|
98
|
+
console.log(
|
|
99
|
+
`[connect] prerendered the app shell: ${markup.length} B markup, ${css.length} B critical CSS`,
|
|
100
|
+
);
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// noinspection JSUnusedGlobalSymbols
|
|
6
|
+
|
|
7
|
+
// This file was automatically generated by TanStack Router.
|
|
8
|
+
// You should NOT make any changes in this file as it will be overwritten.
|
|
9
|
+
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
10
|
+
|
|
11
|
+
import { Route as rootRouteImport } from "./routes/__root.js";
|
|
12
|
+
import { Route as coreAppRouteImport } from "./routes/core/_app.js";
|
|
13
|
+
import { Route as SplatRouteImport } from "./routes/core/_app/$.js";
|
|
14
|
+
import { Route as ContentRouteImport } from "./routes/core/_app/_content.js";
|
|
15
|
+
import { Route as SettingsRouteImport } from "./routes/core/_app/settings.js";
|
|
16
|
+
import { Route as ContentIndexRouteImport } from "./routes/core/_app/_content/index.js";
|
|
17
|
+
import { Route as SettingsAboutRouteImport } from "./routes/core/_app/settings/about.js";
|
|
18
|
+
import { Route as SettingsAiAssistantRouteImport } from "./routes/core/_app/settings/ai-assistant.js";
|
|
19
|
+
import { Route as SettingsDangerZoneRouteImport } from "./routes/core/_app/settings/danger-zone.js";
|
|
20
|
+
import { Route as SettingsDefaultEditorsRouteImport } from "./routes/core/_app/settings/default-editors.js";
|
|
21
|
+
import { Route as SettingsPackageManagerRouteImport } from "./routes/core/_app/settings/package-manager.js";
|
|
22
|
+
import { Route as ContentDDriveSlugChar123NodeSlugChar125RouteImport } from "./routes/core/_app/_content/d/$driveSlug/{-$nodeSlug}.js";
|
|
23
|
+
|
|
24
|
+
const coreAppRoute = coreAppRouteImport.update({
|
|
25
|
+
id: "/_app",
|
|
26
|
+
getParentRoute: () => rootRouteImport,
|
|
27
|
+
} as any);
|
|
28
|
+
const SplatRoute = SplatRouteImport.update({
|
|
29
|
+
id: "/$",
|
|
30
|
+
path: "/$",
|
|
31
|
+
getParentRoute: () => coreAppRoute,
|
|
32
|
+
} as any);
|
|
33
|
+
const ContentRoute = ContentRouteImport.update({
|
|
34
|
+
id: "/_content",
|
|
35
|
+
getParentRoute: () => coreAppRoute,
|
|
36
|
+
} as any);
|
|
37
|
+
const SettingsRoute = SettingsRouteImport.update({
|
|
38
|
+
id: "/settings",
|
|
39
|
+
path: "/settings",
|
|
40
|
+
getParentRoute: () => coreAppRoute,
|
|
41
|
+
} as any);
|
|
42
|
+
const ContentIndexRoute = ContentIndexRouteImport.update({
|
|
43
|
+
id: "/",
|
|
44
|
+
path: "/",
|
|
45
|
+
getParentRoute: () => ContentRoute,
|
|
46
|
+
} as any);
|
|
47
|
+
const SettingsAboutRoute = SettingsAboutRouteImport.update({
|
|
48
|
+
id: "/about",
|
|
49
|
+
path: "/about",
|
|
50
|
+
getParentRoute: () => SettingsRoute,
|
|
51
|
+
} as any);
|
|
52
|
+
const SettingsAiAssistantRoute = SettingsAiAssistantRouteImport.update({
|
|
53
|
+
id: "/ai-assistant",
|
|
54
|
+
path: "/ai-assistant",
|
|
55
|
+
getParentRoute: () => SettingsRoute,
|
|
56
|
+
} as any);
|
|
57
|
+
const SettingsDangerZoneRoute = SettingsDangerZoneRouteImport.update({
|
|
58
|
+
id: "/danger-zone",
|
|
59
|
+
path: "/danger-zone",
|
|
60
|
+
getParentRoute: () => SettingsRoute,
|
|
61
|
+
} as any);
|
|
62
|
+
const SettingsDefaultEditorsRoute = SettingsDefaultEditorsRouteImport.update({
|
|
63
|
+
id: "/default-editors",
|
|
64
|
+
path: "/default-editors",
|
|
65
|
+
getParentRoute: () => SettingsRoute,
|
|
66
|
+
} as any);
|
|
67
|
+
const SettingsPackageManagerRoute = SettingsPackageManagerRouteImport.update({
|
|
68
|
+
id: "/package-manager",
|
|
69
|
+
path: "/package-manager",
|
|
70
|
+
getParentRoute: () => SettingsRoute,
|
|
71
|
+
} as any);
|
|
72
|
+
const ContentDDriveSlugChar123NodeSlugChar125Route =
|
|
73
|
+
ContentDDriveSlugChar123NodeSlugChar125RouteImport.update({
|
|
74
|
+
id: "/d/$driveSlug/{-$nodeSlug}",
|
|
75
|
+
path: "/d/$driveSlug/{-$nodeSlug}",
|
|
76
|
+
getParentRoute: () => ContentRoute,
|
|
77
|
+
} as any);
|
|
78
|
+
|
|
79
|
+
export interface FileRoutesByFullPath {
|
|
80
|
+
"/": typeof ContentIndexRoute;
|
|
81
|
+
"/$": typeof SplatRoute;
|
|
82
|
+
"/settings": typeof SettingsRouteWithChildren;
|
|
83
|
+
"/settings/about": typeof SettingsAboutRoute;
|
|
84
|
+
"/settings/ai-assistant": typeof SettingsAiAssistantRoute;
|
|
85
|
+
"/settings/danger-zone": typeof SettingsDangerZoneRoute;
|
|
86
|
+
"/settings/default-editors": typeof SettingsDefaultEditorsRoute;
|
|
87
|
+
"/settings/package-manager": typeof SettingsPackageManagerRoute;
|
|
88
|
+
"/d/$driveSlug/{-$nodeSlug}": typeof ContentDDriveSlugChar123NodeSlugChar125Route;
|
|
89
|
+
}
|
|
90
|
+
export interface FileRoutesByTo {
|
|
91
|
+
"/": typeof ContentIndexRoute;
|
|
92
|
+
"/$": typeof SplatRoute;
|
|
93
|
+
"/settings": typeof SettingsRouteWithChildren;
|
|
94
|
+
"/settings/about": typeof SettingsAboutRoute;
|
|
95
|
+
"/settings/ai-assistant": typeof SettingsAiAssistantRoute;
|
|
96
|
+
"/settings/danger-zone": typeof SettingsDangerZoneRoute;
|
|
97
|
+
"/settings/default-editors": typeof SettingsDefaultEditorsRoute;
|
|
98
|
+
"/settings/package-manager": typeof SettingsPackageManagerRoute;
|
|
99
|
+
"/d/$driveSlug/{-$nodeSlug}": typeof ContentDDriveSlugChar123NodeSlugChar125Route;
|
|
100
|
+
}
|
|
101
|
+
export interface FileRoutesById {
|
|
102
|
+
__root__: typeof rootRouteImport;
|
|
103
|
+
"/_app": typeof coreAppRouteWithChildren;
|
|
104
|
+
"/_app/$": typeof SplatRoute;
|
|
105
|
+
"/_app/_content": typeof ContentRouteWithChildren;
|
|
106
|
+
"/_app/settings": typeof SettingsRouteWithChildren;
|
|
107
|
+
"/_app/settings/about": typeof SettingsAboutRoute;
|
|
108
|
+
"/_app/settings/ai-assistant": typeof SettingsAiAssistantRoute;
|
|
109
|
+
"/_app/settings/danger-zone": typeof SettingsDangerZoneRoute;
|
|
110
|
+
"/_app/settings/default-editors": typeof SettingsDefaultEditorsRoute;
|
|
111
|
+
"/_app/settings/package-manager": typeof SettingsPackageManagerRoute;
|
|
112
|
+
"/_app/_content/": typeof ContentIndexRoute;
|
|
113
|
+
"/_app/_content/d/$driveSlug/{-$nodeSlug}": typeof ContentDDriveSlugChar123NodeSlugChar125Route;
|
|
114
|
+
}
|
|
115
|
+
export interface FileRouteTypes {
|
|
116
|
+
fileRoutesByFullPath: FileRoutesByFullPath;
|
|
117
|
+
fullPaths:
|
|
118
|
+
| "/"
|
|
119
|
+
| "/$"
|
|
120
|
+
| "/settings"
|
|
121
|
+
| "/settings/about"
|
|
122
|
+
| "/settings/ai-assistant"
|
|
123
|
+
| "/settings/danger-zone"
|
|
124
|
+
| "/settings/default-editors"
|
|
125
|
+
| "/settings/package-manager"
|
|
126
|
+
| "/d/$driveSlug/{-$nodeSlug}";
|
|
127
|
+
fileRoutesByTo: FileRoutesByTo;
|
|
128
|
+
to:
|
|
129
|
+
| "/"
|
|
130
|
+
| "/$"
|
|
131
|
+
| "/settings"
|
|
132
|
+
| "/settings/about"
|
|
133
|
+
| "/settings/ai-assistant"
|
|
134
|
+
| "/settings/danger-zone"
|
|
135
|
+
| "/settings/default-editors"
|
|
136
|
+
| "/settings/package-manager"
|
|
137
|
+
| "/d/$driveSlug/{-$nodeSlug}";
|
|
138
|
+
id:
|
|
139
|
+
| "__root__"
|
|
140
|
+
| "/_app"
|
|
141
|
+
| "/_app/$"
|
|
142
|
+
| "/_app/_content"
|
|
143
|
+
| "/_app/settings"
|
|
144
|
+
| "/_app/settings/about"
|
|
145
|
+
| "/_app/settings/ai-assistant"
|
|
146
|
+
| "/_app/settings/danger-zone"
|
|
147
|
+
| "/_app/settings/default-editors"
|
|
148
|
+
| "/_app/settings/package-manager"
|
|
149
|
+
| "/_app/_content/"
|
|
150
|
+
| "/_app/_content/d/$driveSlug/{-$nodeSlug}";
|
|
151
|
+
fileRoutesById: FileRoutesById;
|
|
152
|
+
}
|
|
153
|
+
export interface RootRouteChildren {
|
|
154
|
+
coreAppRoute: typeof coreAppRouteWithChildren;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
declare module "@tanstack/react-router" {
|
|
158
|
+
interface FileRoutesByPath {
|
|
159
|
+
"/_app": {
|
|
160
|
+
id: "/_app";
|
|
161
|
+
path: "";
|
|
162
|
+
fullPath: "/";
|
|
163
|
+
preLoaderRoute: typeof coreAppRouteImport;
|
|
164
|
+
parentRoute: typeof rootRouteImport;
|
|
165
|
+
};
|
|
166
|
+
"/_app/$": {
|
|
167
|
+
id: "/_app/$";
|
|
168
|
+
path: "/$";
|
|
169
|
+
fullPath: "/$";
|
|
170
|
+
preLoaderRoute: typeof SplatRouteImport;
|
|
171
|
+
parentRoute: typeof coreAppRoute;
|
|
172
|
+
};
|
|
173
|
+
"/_app/_content": {
|
|
174
|
+
id: "/_app/_content";
|
|
175
|
+
path: "";
|
|
176
|
+
fullPath: "/";
|
|
177
|
+
preLoaderRoute: typeof ContentRouteImport;
|
|
178
|
+
parentRoute: typeof coreAppRoute;
|
|
179
|
+
};
|
|
180
|
+
"/_app/settings": {
|
|
181
|
+
id: "/_app/settings";
|
|
182
|
+
path: "/settings";
|
|
183
|
+
fullPath: "/settings";
|
|
184
|
+
preLoaderRoute: typeof SettingsRouteImport;
|
|
185
|
+
parentRoute: typeof coreAppRoute;
|
|
186
|
+
};
|
|
187
|
+
"/_app/_content/": {
|
|
188
|
+
id: "/_app/_content/";
|
|
189
|
+
path: "/";
|
|
190
|
+
fullPath: "/";
|
|
191
|
+
preLoaderRoute: typeof ContentIndexRouteImport;
|
|
192
|
+
parentRoute: typeof ContentRoute;
|
|
193
|
+
};
|
|
194
|
+
"/_app/settings/about": {
|
|
195
|
+
id: "/_app/settings/about";
|
|
196
|
+
path: "/about";
|
|
197
|
+
fullPath: "/settings/about";
|
|
198
|
+
preLoaderRoute: typeof SettingsAboutRouteImport;
|
|
199
|
+
parentRoute: typeof SettingsRoute;
|
|
200
|
+
};
|
|
201
|
+
"/_app/settings/ai-assistant": {
|
|
202
|
+
id: "/_app/settings/ai-assistant";
|
|
203
|
+
path: "/ai-assistant";
|
|
204
|
+
fullPath: "/settings/ai-assistant";
|
|
205
|
+
preLoaderRoute: typeof SettingsAiAssistantRouteImport;
|
|
206
|
+
parentRoute: typeof SettingsRoute;
|
|
207
|
+
};
|
|
208
|
+
"/_app/settings/danger-zone": {
|
|
209
|
+
id: "/_app/settings/danger-zone";
|
|
210
|
+
path: "/danger-zone";
|
|
211
|
+
fullPath: "/settings/danger-zone";
|
|
212
|
+
preLoaderRoute: typeof SettingsDangerZoneRouteImport;
|
|
213
|
+
parentRoute: typeof SettingsRoute;
|
|
214
|
+
};
|
|
215
|
+
"/_app/settings/default-editors": {
|
|
216
|
+
id: "/_app/settings/default-editors";
|
|
217
|
+
path: "/default-editors";
|
|
218
|
+
fullPath: "/settings/default-editors";
|
|
219
|
+
preLoaderRoute: typeof SettingsDefaultEditorsRouteImport;
|
|
220
|
+
parentRoute: typeof SettingsRoute;
|
|
221
|
+
};
|
|
222
|
+
"/_app/settings/package-manager": {
|
|
223
|
+
id: "/_app/settings/package-manager";
|
|
224
|
+
path: "/package-manager";
|
|
225
|
+
fullPath: "/settings/package-manager";
|
|
226
|
+
preLoaderRoute: typeof SettingsPackageManagerRouteImport;
|
|
227
|
+
parentRoute: typeof SettingsRoute;
|
|
228
|
+
};
|
|
229
|
+
"/_app/_content/d/$driveSlug/{-$nodeSlug}": {
|
|
230
|
+
id: "/_app/_content/d/$driveSlug/{-$nodeSlug}";
|
|
231
|
+
path: "/d/$driveSlug/{-$nodeSlug}";
|
|
232
|
+
fullPath: "/d/$driveSlug/{-$nodeSlug}";
|
|
233
|
+
preLoaderRoute: typeof ContentDDriveSlugChar123NodeSlugChar125RouteImport;
|
|
234
|
+
parentRoute: typeof ContentRoute;
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
interface ContentRouteChildren {
|
|
240
|
+
ContentIndexRoute: typeof ContentIndexRoute;
|
|
241
|
+
ContentDDriveSlugChar123NodeSlugChar125Route: typeof ContentDDriveSlugChar123NodeSlugChar125Route;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const ContentRouteChildren: ContentRouteChildren = {
|
|
245
|
+
ContentIndexRoute: ContentIndexRoute,
|
|
246
|
+
ContentDDriveSlugChar123NodeSlugChar125Route:
|
|
247
|
+
ContentDDriveSlugChar123NodeSlugChar125Route,
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const ContentRouteWithChildren =
|
|
251
|
+
ContentRoute._addFileChildren(ContentRouteChildren);
|
|
252
|
+
|
|
253
|
+
interface SettingsRouteChildren {
|
|
254
|
+
SettingsAboutRoute: typeof SettingsAboutRoute;
|
|
255
|
+
SettingsAiAssistantRoute: typeof SettingsAiAssistantRoute;
|
|
256
|
+
SettingsDangerZoneRoute: typeof SettingsDangerZoneRoute;
|
|
257
|
+
SettingsDefaultEditorsRoute: typeof SettingsDefaultEditorsRoute;
|
|
258
|
+
SettingsPackageManagerRoute: typeof SettingsPackageManagerRoute;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const SettingsRouteChildren: SettingsRouteChildren = {
|
|
262
|
+
SettingsAboutRoute: SettingsAboutRoute,
|
|
263
|
+
SettingsAiAssistantRoute: SettingsAiAssistantRoute,
|
|
264
|
+
SettingsDangerZoneRoute: SettingsDangerZoneRoute,
|
|
265
|
+
SettingsDefaultEditorsRoute: SettingsDefaultEditorsRoute,
|
|
266
|
+
SettingsPackageManagerRoute: SettingsPackageManagerRoute,
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
const SettingsRouteWithChildren = SettingsRoute._addFileChildren(
|
|
270
|
+
SettingsRouteChildren,
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
interface coreAppRouteChildren {
|
|
274
|
+
SplatRoute: typeof SplatRoute;
|
|
275
|
+
ContentRoute: typeof ContentRouteWithChildren;
|
|
276
|
+
SettingsRoute: typeof SettingsRouteWithChildren;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
const coreAppRouteChildren: coreAppRouteChildren = {
|
|
280
|
+
SplatRoute: SplatRoute,
|
|
281
|
+
ContentRoute: ContentRouteWithChildren,
|
|
282
|
+
SettingsRoute: SettingsRouteWithChildren,
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
const coreAppRouteWithChildren =
|
|
286
|
+
coreAppRoute._addFileChildren(coreAppRouteChildren);
|
|
287
|
+
|
|
288
|
+
const rootRouteChildren: RootRouteChildren = {
|
|
289
|
+
coreAppRoute: coreAppRouteWithChildren,
|
|
290
|
+
};
|
|
291
|
+
export const routeTree = rootRouteImport
|
|
292
|
+
._addFileChildren(rootRouteChildren)
|
|
293
|
+
._addFileTypes<FileRouteTypes>();
|