@wizzlethorpe/vaults 0.2.0 → 0.5.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/dist/build.js +241 -44
- package/dist/build.js.map +1 -1
- package/dist/favicon.js +8 -31
- package/dist/favicon.js.map +1 -1
- package/dist/render/bases.js +324 -29
- package/dist/render/bases.js.map +1 -1
- package/dist/render/callouts.js +4 -1
- package/dist/render/callouts.js.map +1 -1
- package/dist/render/cover.js +41 -0
- package/dist/render/cover.js.map +1 -0
- package/dist/render/embed.js +10 -0
- package/dist/render/embed.js.map +1 -1
- package/dist/render/layout.js +207 -30
- package/dist/render/layout.js.map +1 -1
- package/dist/render/pipeline.js +11 -5
- package/dist/render/pipeline.js.map +1 -1
- package/dist/render/styles.js +354 -23
- package/dist/render/styles.js.map +1 -1
- package/dist/settings.js +13 -3
- package/dist/settings.js.map +1 -1
- package/package.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/render/layout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/render/layout.ts"],"names":[],"mappings":"AA2BA;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,KAAyE;IACjG,MAAM,IAAI,GAAG;4CAC6B,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IAChF,OAAO,YAAY,CAAC;QAClB,GAAG,KAAK;QACR,KAAK,EAAE,gBAAgB;QACvB,sEAAsE;QACtE,QAAQ,EAAE,YAAY;QACtB,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,EAAE;KACd,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAkB;IAC7C,MAAM,WAAW,GAAG,iBAAiB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACvE,MAAM,OAAO,GAAG,aAAa,C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CjB,CAAC"}
|
package/dist/render/pipeline.js
CHANGED
|
@@ -14,21 +14,27 @@ import { basesPlugin } from "./bases.js";
|
|
|
14
14
|
const sanitizeSchema = {
|
|
15
15
|
...defaultSchema,
|
|
16
16
|
clobberPrefix: "",
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
|
|
17
|
+
// Bases emit interactive HTML beyond what the default schema allows:
|
|
18
|
+
// <input> (filter), <button> (tab buttons + dialog actions). Add them
|
|
19
|
+
// and the attributes they need to function.
|
|
20
|
+
tagNames: [...(defaultSchema.tagNames ?? []), "input", "button"],
|
|
20
21
|
attributes: {
|
|
21
22
|
...defaultSchema.attributes,
|
|
22
|
-
|
|
23
|
+
// role + aria-selected/haspopup/label ride on tabs, dialogs, etc.
|
|
24
|
+
// `hidden` is essential — Bases tab panels and card-filter rows toggle
|
|
25
|
+
// it from JS to show/hide elements. Without it on the allowlist the
|
|
26
|
+
// initial render shows everything because the sanitizer strips it.
|
|
27
|
+
"*": [...(defaultSchema.attributes?.["*"] ?? []), "className", "role", "ariaSelected", "ariaLabel", "ariaHaspopup", "tabindex", "hidden"],
|
|
23
28
|
img: ["src", "alt", "width", "height", "loading"],
|
|
24
29
|
a: ["href", "title", "className", "id"],
|
|
25
|
-
div: ["className", "data*"],
|
|
30
|
+
div: ["className", "data*", "role"],
|
|
26
31
|
span: ["className", "data*"],
|
|
27
32
|
table: ["className"],
|
|
28
33
|
th: ["className", "data*", "tabindex"],
|
|
29
34
|
td: ["className", "data*"],
|
|
30
35
|
tr: ["className", "data*"],
|
|
31
36
|
input: ["type", "placeholder", "className", "ariaLabel"],
|
|
37
|
+
button: ["type", "className", "data*", "role", "ariaSelected", "ariaLabel", "ariaHaspopup", "tabindex", "title"],
|
|
32
38
|
},
|
|
33
39
|
// The default schema forces <input> to type=checkbox and disabled=true
|
|
34
40
|
// to safely render GFM task lists. We don't render task lists here, and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../src/render/pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,cAAc,EAAE,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,cAAc,GAAG;IACrB,GAAG,aAAa;IAChB,aAAa,EAAE,EAAE;IACjB,sEAAsE;IACtE,
|
|
1
|
+
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../src/render/pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,cAAc,EAAE,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,C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SACpD,GAAG,CAAC,YAAY,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC;SAC/C,GAAG,CAAC,SAAS,CAAC;SACd,GAAG,CAAC,UAAU,CAAC;SACf,GAAG,CAAC,cAAc,EAAE,cAAc,CAAC;SACnC,GAAG,CAAC,eAAe,CAAC;SACpB,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpB,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,KAAK,KAAK,QAAQ,IAAI,EAAE,CAAC,KAAK,CAAC;WACnD,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;WACzB,aAAa,CAAC;IAEnB,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;AAC5E,CAAC;AAED,SAAS,SAAS,CAAC,QAAgB;IACjC,MAAM,CAAC,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACjC,CAAC"}
|
package/dist/render/styles.js
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
// Theme + layout styles for the rendered wiki. Self-contained, no build step.
|
|
2
|
-
//
|
|
2
|
+
// Single light theme: parchment + scarlet.
|
|
3
3
|
/**
|
|
4
|
-
* Per-vault
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* so they stay coherent with whatever
|
|
4
|
+
* Per-vault theme overrides. When `accent_color` or `bg_color` are set in
|
|
5
|
+
* settings.md, append this block after DEFAULT_CSS so it wins. The derived
|
|
6
|
+
* shades (--accent-soft, --wikilink-bg, --rule, etc) are recomputed via
|
|
7
|
+
* color-mix so they stay coherent with whatever colors the user picked.
|
|
8
8
|
*/
|
|
9
9
|
export function renderThemeOverride(opts) {
|
|
10
10
|
const blocks = [];
|
|
11
11
|
if (opts.lightAccent)
|
|
12
12
|
blocks.push(accentBlock(":root", opts.lightAccent));
|
|
13
|
-
if (opts.
|
|
14
|
-
blocks.push(
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
if (opts.lightBg)
|
|
14
|
+
blocks.push(bgBlock(":root", opts.lightBg));
|
|
15
|
+
if (!blocks.length)
|
|
16
|
+
return "";
|
|
17
|
+
return "\n\n/* User theme overrides (settings.md) */\n" + blocks.join("\n");
|
|
18
|
+
}
|
|
19
|
+
function bgBlock(selector, color) {
|
|
20
|
+
return `${selector} {
|
|
21
|
+
--bg: ${color};
|
|
22
|
+
--rule: color-mix(in srgb, ${color} 85%, #000);
|
|
23
|
+
}`;
|
|
17
24
|
}
|
|
18
25
|
function accentBlock(selector, color) {
|
|
19
26
|
return `${selector} {
|
|
@@ -31,14 +38,6 @@ export const DEFAULT_CSS = `:root {
|
|
|
31
38
|
--max-width: 56rem;
|
|
32
39
|
font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
|
|
33
40
|
}
|
|
34
|
-
@media (prefers-color-scheme: dark) {
|
|
35
|
-
:root {
|
|
36
|
-
--bg: #181a1a; --fg: #e6e3dc; --muted: #8a908c;
|
|
37
|
-
--accent: #2ecc71; --accent-soft: #58e08c; --accent-fg: #0d1411;
|
|
38
|
-
--rule: #2a2e2c;
|
|
39
|
-
--wikilink-bg: rgba(46,204,113,0.12); --wikilink-bg-hover: rgba(46,204,113,0.22);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
41
|
* { box-sizing: border-box; }
|
|
43
42
|
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.6; }
|
|
44
43
|
a { color: var(--accent); text-decoration: none; }
|
|
@@ -56,7 +55,7 @@ article a.internal.new, article a.internal.is-unresolved { opacity: 0.7; font-st
|
|
|
56
55
|
The sidebar's flex gap handles spacing; no extra margin or rule needed. */
|
|
57
56
|
.sidebar > .brand {
|
|
58
57
|
display: block; padding: 0 0.5rem;
|
|
59
|
-
font-weight: 700; font-size: 1.
|
|
58
|
+
font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em;
|
|
60
59
|
color: var(--fg); text-decoration: none;
|
|
61
60
|
}
|
|
62
61
|
.sidebar > .brand:hover { color: var(--accent); text-decoration: none; }
|
|
@@ -76,10 +75,32 @@ main { padding: 2rem 0 4rem; min-width: 0; }
|
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
@media (max-width: 1100px) {
|
|
79
|
-
.app-grid { grid-template-columns: 1fr; gap: 0; }
|
|
80
|
-
.sidebar { border: none; padding: 0.
|
|
81
|
-
.rightbar {
|
|
82
|
-
main { padding: 0.
|
|
78
|
+
.app-grid { grid-template-columns: 1fr; gap: 0; padding: 0.75rem; max-width: 100%; }
|
|
79
|
+
.sidebar { border: none; padding: 0.5rem 0 0; }
|
|
80
|
+
.rightbar { display: none; }
|
|
81
|
+
main { padding: 0.5rem 0 2.5rem; }
|
|
82
|
+
article h1 { font-size: 2rem; }
|
|
83
|
+
article h2 { font-size: 1.4rem; }
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Explorer: collapsible <details> wrapper. On desktop the toggle is hidden
|
|
87
|
+
(the Explorer is always shown). On mobile it acts as a real disclosure
|
|
88
|
+
widget so the long sitemap doesn't push the article off-screen. The
|
|
89
|
+
default state is closed; an inline script in the layout opens it on
|
|
90
|
+
desktop after first paint. The summary reuses the TOC styling so both
|
|
91
|
+
sidebars present the same dropdown affordance. */
|
|
92
|
+
.sidebar > nav > details.explorer { margin: 0; }
|
|
93
|
+
.sidebar > nav > details.explorer > .toc-summary {
|
|
94
|
+
margin-bottom: 0.5rem;
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
}
|
|
97
|
+
.sidebar > nav > details.explorer[open] > .toc-summary::before { transform: rotate(45deg); }
|
|
98
|
+
@media (min-width: 1101px) {
|
|
99
|
+
/* On desktop, force the Explorer to behave as if always open: hide the
|
|
100
|
+
toggle affordance, and reveal the sitemap regardless of [open] state. */
|
|
101
|
+
.sidebar > nav > details.explorer > .toc-summary { cursor: default; pointer-events: none; }
|
|
102
|
+
.sidebar > nav > details.explorer > .toc-summary::before { display: none; }
|
|
103
|
+
.sidebar > nav > details.explorer > .sitemap-list { display: block; }
|
|
83
104
|
}
|
|
84
105
|
|
|
85
106
|
.search-box { position: relative; }
|
|
@@ -112,6 +133,67 @@ main { padding: 2rem 0 4rem; min-width: 0; }
|
|
|
112
133
|
.auth-box .auth-status strong { color: var(--accent); font-weight: 600; }
|
|
113
134
|
.auth-box .auth-action { color: var(--accent); text-decoration: none; font-weight: 500; }
|
|
114
135
|
.auth-box .auth-action:hover { text-decoration: underline; }
|
|
136
|
+
|
|
137
|
+
/* Signed-out auth UI: present Sign in as a full-width button rather than
|
|
138
|
+
a lightweight text link. */
|
|
139
|
+
.auth-box.auth-signed-out {
|
|
140
|
+
padding: 0;
|
|
141
|
+
border: none;
|
|
142
|
+
border-radius: 0;
|
|
143
|
+
}
|
|
144
|
+
.auth-box .auth-action-primary {
|
|
145
|
+
width: 100%;
|
|
146
|
+
display: block;
|
|
147
|
+
text-align: center;
|
|
148
|
+
padding: 0.52rem 0.75rem;
|
|
149
|
+
border-radius: 4px;
|
|
150
|
+
border: 1px solid var(--accent);
|
|
151
|
+
background: transparent;
|
|
152
|
+
color: var(--accent);
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
letter-spacing: 0.01em;
|
|
155
|
+
transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.06s ease;
|
|
156
|
+
}
|
|
157
|
+
.auth-box .auth-action-primary:hover {
|
|
158
|
+
text-decoration: none;
|
|
159
|
+
background: var(--wikilink-bg);
|
|
160
|
+
border-color: var(--accent-soft);
|
|
161
|
+
color: var(--accent);
|
|
162
|
+
}
|
|
163
|
+
.auth-box .auth-action-primary:active { transform: translateY(1px); }
|
|
164
|
+
|
|
165
|
+
/* Signed-in auth UI: keep status on the left and present Sign out as a
|
|
166
|
+
right-side action split by a divider. */
|
|
167
|
+
.auth-box.auth-signed-in {
|
|
168
|
+
padding: 0.3rem 0.35rem 0.3rem 0.65rem;
|
|
169
|
+
flex-wrap: nowrap;
|
|
170
|
+
gap: 0;
|
|
171
|
+
}
|
|
172
|
+
.auth-box.auth-signed-in .auth-status {
|
|
173
|
+
flex: 1;
|
|
174
|
+
min-width: 0;
|
|
175
|
+
padding-right: 0.55rem;
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
text-overflow: ellipsis;
|
|
179
|
+
}
|
|
180
|
+
.auth-box.auth-signed-in .auth-action {
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
justify-content: center;
|
|
184
|
+
margin-left: auto;
|
|
185
|
+
padding: 0.32rem 0.6rem;
|
|
186
|
+
border-left: 1px solid var(--rule);
|
|
187
|
+
border-radius: 0;
|
|
188
|
+
text-decoration: none;
|
|
189
|
+
font-weight: 600;
|
|
190
|
+
line-height: 1.2;
|
|
191
|
+
white-space: nowrap;
|
|
192
|
+
}
|
|
193
|
+
.auth-box.auth-signed-in .auth-action:hover {
|
|
194
|
+
text-decoration: none;
|
|
195
|
+
background: var(--wikilink-bg);
|
|
196
|
+
}
|
|
115
197
|
.search-result-summary {
|
|
116
198
|
font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.4;
|
|
117
199
|
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
|
@@ -167,14 +249,130 @@ main { padding: 2rem 0 4rem; min-width: 0; }
|
|
|
167
249
|
}
|
|
168
250
|
.rightbar .backlinks a:hover { color: var(--accent); border-left-color: var(--accent); }
|
|
169
251
|
|
|
252
|
+
/* Top-of-article header strip: breadcrumbs left, meta + frontmatter affordance right.
|
|
253
|
+
Wraps onto a second line on narrow viewports rather than overflowing. */
|
|
254
|
+
.page-header {
|
|
255
|
+
display: flex;
|
|
256
|
+
flex-wrap: wrap;
|
|
257
|
+
align-items: center;
|
|
258
|
+
gap: 0.4rem 1rem;
|
|
259
|
+
margin: 0 0 1rem;
|
|
260
|
+
}
|
|
261
|
+
.page-header .crumbs { margin: 0; flex: 1 1 auto; min-width: 0; }
|
|
262
|
+
.page-header-right {
|
|
263
|
+
display: flex;
|
|
264
|
+
align-items: center;
|
|
265
|
+
gap: 0.5rem;
|
|
266
|
+
margin-left: auto;
|
|
267
|
+
flex-shrink: 0;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* Lives at the bottom of the article; muted, separated by a thin rule so
|
|
271
|
+
it reads as page-footer info rather than article content. */
|
|
170
272
|
.page-meta {
|
|
171
273
|
color: var(--muted); font-size: 0.78rem;
|
|
172
|
-
margin:
|
|
274
|
+
margin: 2.5rem 0 0;
|
|
275
|
+
padding-top: 0.6rem;
|
|
276
|
+
border-top: 1px solid var(--rule);
|
|
173
277
|
display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap;
|
|
174
278
|
}
|
|
175
279
|
.page-meta time { font-variant-numeric: tabular-nums; }
|
|
176
280
|
.page-meta .meta-sep { opacity: 0.5; }
|
|
177
281
|
|
|
282
|
+
.frontmatter-toggle {
|
|
283
|
+
display: inline-flex; align-items: center; gap: 0.35rem;
|
|
284
|
+
padding: 0.15rem 0.5rem;
|
|
285
|
+
font-size: 0.78rem;
|
|
286
|
+
color: var(--muted);
|
|
287
|
+
background: transparent;
|
|
288
|
+
border: 1px solid var(--rule);
|
|
289
|
+
border-radius: 4px;
|
|
290
|
+
cursor: pointer;
|
|
291
|
+
font-family: inherit;
|
|
292
|
+
transition: color 0.15s, border-color 0.15s, background 0.15s;
|
|
293
|
+
}
|
|
294
|
+
.frontmatter-toggle:hover {
|
|
295
|
+
color: var(--accent);
|
|
296
|
+
border-color: var(--accent);
|
|
297
|
+
}
|
|
298
|
+
.frontmatter-toggle-glyph {
|
|
299
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
300
|
+
font-weight: 700;
|
|
301
|
+
letter-spacing: -0.05em;
|
|
302
|
+
}
|
|
303
|
+
/* Mobile: drop the "frontmatter" label so the button is just a {} chip. */
|
|
304
|
+
@media (max-width: 600px) {
|
|
305
|
+
.frontmatter-toggle-label { display: none; }
|
|
306
|
+
.frontmatter-toggle { padding: 0.15rem 0.4rem; }
|
|
307
|
+
}
|
|
308
|
+
.frontmatter-dialog {
|
|
309
|
+
border: 1px solid var(--rule);
|
|
310
|
+
border-radius: 6px;
|
|
311
|
+
padding: 0;
|
|
312
|
+
background: var(--bg);
|
|
313
|
+
color: inherit;
|
|
314
|
+
max-width: min(720px, 90vw);
|
|
315
|
+
width: min(720px, 90vw);
|
|
316
|
+
}
|
|
317
|
+
.frontmatter-dialog::backdrop {
|
|
318
|
+
background: rgba(0, 0, 0, 0.35);
|
|
319
|
+
}
|
|
320
|
+
.frontmatter-header {
|
|
321
|
+
display: flex; align-items: center; gap: 0.5rem;
|
|
322
|
+
padding: 0.6rem 0.8rem;
|
|
323
|
+
border-bottom: 1px solid var(--rule);
|
|
324
|
+
}
|
|
325
|
+
.frontmatter-title {
|
|
326
|
+
font-weight: 600;
|
|
327
|
+
font-size: 0.85rem;
|
|
328
|
+
color: var(--muted);
|
|
329
|
+
flex: 1;
|
|
330
|
+
}
|
|
331
|
+
/* Pin a fixed min-height on both buttons and centre contents — different
|
|
332
|
+
font-sizes (× at 1rem vs "Copy" at 0.8rem) would otherwise produce
|
|
333
|
+
different line-box heights. */
|
|
334
|
+
.frontmatter-copy,
|
|
335
|
+
.frontmatter-close {
|
|
336
|
+
font-family: inherit;
|
|
337
|
+
background: transparent;
|
|
338
|
+
border: 1px solid var(--rule);
|
|
339
|
+
border-radius: 4px;
|
|
340
|
+
cursor: pointer;
|
|
341
|
+
color: inherit;
|
|
342
|
+
font-size: 0.8rem;
|
|
343
|
+
line-height: 1;
|
|
344
|
+
display: inline-flex;
|
|
345
|
+
align-items: center;
|
|
346
|
+
justify-content: center;
|
|
347
|
+
min-height: 1.75rem;
|
|
348
|
+
padding: 0 0.6rem;
|
|
349
|
+
transition: color 0.15s, border-color 0.15s;
|
|
350
|
+
}
|
|
351
|
+
.frontmatter-copy:hover,
|
|
352
|
+
.frontmatter-close:hover {
|
|
353
|
+
color: var(--accent);
|
|
354
|
+
border-color: var(--accent);
|
|
355
|
+
}
|
|
356
|
+
.frontmatter-close {
|
|
357
|
+
font-size: 1.1rem;
|
|
358
|
+
min-width: 1.75rem;
|
|
359
|
+
padding: 0;
|
|
360
|
+
}
|
|
361
|
+
.frontmatter-dialog pre {
|
|
362
|
+
margin: 0;
|
|
363
|
+
padding: 0.8rem 1rem;
|
|
364
|
+
max-height: 60vh;
|
|
365
|
+
overflow: auto;
|
|
366
|
+
background: color-mix(in srgb, var(--muted) 8%, transparent);
|
|
367
|
+
}
|
|
368
|
+
.frontmatter-dialog code.frontmatter-yaml {
|
|
369
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
370
|
+
font-size: 0.85rem;
|
|
371
|
+
line-height: 1.45;
|
|
372
|
+
white-space: pre;
|
|
373
|
+
display: block;
|
|
374
|
+
}
|
|
375
|
+
|
|
178
376
|
.crumbs { color: var(--muted); font-size: 0.875rem; margin-bottom: 1rem; }
|
|
179
377
|
.crumbs a { color: var(--muted); text-decoration: none; }
|
|
180
378
|
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
|
|
@@ -335,6 +533,54 @@ article blockquote { margin: 1rem 0; padding: 0.5rem 1rem; border-left: 3px soli
|
|
|
335
533
|
border-radius: 6px;
|
|
336
534
|
background: color-mix(in srgb, var(--muted) 4%, transparent);
|
|
337
535
|
}
|
|
536
|
+
|
|
537
|
+
/* Multi-view tabbed container: tab strip on top, blocks below as panels.
|
|
538
|
+
The block inside loses its outer rounding/border on top so it merges
|
|
539
|
+
visually with the active tab without doubled rules. */
|
|
540
|
+
.bases-tabbed {
|
|
541
|
+
margin: 1rem 0;
|
|
542
|
+
border: 1px solid var(--rule);
|
|
543
|
+
border-radius: 6px;
|
|
544
|
+
background: color-mix(in srgb, var(--muted) 4%, transparent);
|
|
545
|
+
}
|
|
546
|
+
.bases-tabbed .bases-block {
|
|
547
|
+
margin: 0;
|
|
548
|
+
border: none;
|
|
549
|
+
border-radius: 0;
|
|
550
|
+
background: transparent;
|
|
551
|
+
}
|
|
552
|
+
.bases-tabbed .bases-block .bases-caption { display: none; }
|
|
553
|
+
.bases-tab-strip {
|
|
554
|
+
display: flex;
|
|
555
|
+
flex-wrap: wrap;
|
|
556
|
+
gap: 0.25rem;
|
|
557
|
+
padding: 0.4rem 0.5rem 0;
|
|
558
|
+
border-bottom: 1px solid var(--rule);
|
|
559
|
+
}
|
|
560
|
+
.bases-tab {
|
|
561
|
+
font-family: inherit;
|
|
562
|
+
font-size: 0.85rem;
|
|
563
|
+
font-weight: 600;
|
|
564
|
+
background: transparent;
|
|
565
|
+
border: 1px solid transparent;
|
|
566
|
+
border-bottom: none;
|
|
567
|
+
border-radius: 5px 5px 0 0;
|
|
568
|
+
color: var(--muted);
|
|
569
|
+
cursor: pointer;
|
|
570
|
+
padding: 0.4rem 0.85rem;
|
|
571
|
+
margin-bottom: -1px;
|
|
572
|
+
transition: color 0.15s, background 0.15s, border-color 0.15s;
|
|
573
|
+
}
|
|
574
|
+
.bases-tab:hover {
|
|
575
|
+
color: var(--accent);
|
|
576
|
+
}
|
|
577
|
+
.bases-tab-active {
|
|
578
|
+
color: inherit;
|
|
579
|
+
background: var(--bg);
|
|
580
|
+
border-color: var(--rule);
|
|
581
|
+
border-bottom-color: var(--bg);
|
|
582
|
+
}
|
|
583
|
+
.bases-tab-panel[hidden] { display: none !important; }
|
|
338
584
|
.bases-caption {
|
|
339
585
|
padding: 0.55rem 0.85rem;
|
|
340
586
|
font-weight: 700;
|
|
@@ -397,6 +643,91 @@ article blockquote { margin: 1rem 0; padding: 0.5rem 1rem; border-left: 3px soli
|
|
|
397
643
|
font-size: 0.9rem;
|
|
398
644
|
}
|
|
399
645
|
|
|
646
|
+
/* Cards view */
|
|
647
|
+
.bases-cards {
|
|
648
|
+
display: grid;
|
|
649
|
+
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
650
|
+
gap: 1rem;
|
|
651
|
+
padding: 0.75rem;
|
|
652
|
+
}
|
|
653
|
+
.bases-card {
|
|
654
|
+
display: flex;
|
|
655
|
+
flex-direction: column;
|
|
656
|
+
border: 1px solid var(--rule);
|
|
657
|
+
border-radius: 6px;
|
|
658
|
+
background: var(--bg);
|
|
659
|
+
text-decoration: none;
|
|
660
|
+
color: inherit;
|
|
661
|
+
overflow: hidden;
|
|
662
|
+
transition: border-color 0.15s, transform 0.15s;
|
|
663
|
+
}
|
|
664
|
+
/* Author rules with display:flex/grid/... override the UA [hidden]
|
|
665
|
+
default, so the runtime filter has nothing to cling to. Force the hide
|
|
666
|
+
here for every Bases item type. */
|
|
667
|
+
.bases-card[hidden],
|
|
668
|
+
.bases-list li[hidden],
|
|
669
|
+
.bases-table tr[hidden] {
|
|
670
|
+
display: none !important;
|
|
671
|
+
}
|
|
672
|
+
.bases-card:hover {
|
|
673
|
+
border-color: var(--accent);
|
|
674
|
+
transform: translateY(-2px);
|
|
675
|
+
}
|
|
676
|
+
.bases-card-cover {
|
|
677
|
+
width: 100%;
|
|
678
|
+
aspect-ratio: 1 / 1;
|
|
679
|
+
background-color: color-mix(in srgb, var(--muted) 8%, transparent);
|
|
680
|
+
overflow: hidden;
|
|
681
|
+
}
|
|
682
|
+
.bases-card-cover img {
|
|
683
|
+
width: 100%;
|
|
684
|
+
height: 100%;
|
|
685
|
+
display: block;
|
|
686
|
+
}
|
|
687
|
+
.bases-card-cover-cover img { object-fit: cover; object-position: center; }
|
|
688
|
+
.bases-card-cover-contain img { object-fit: contain; object-position: center; }
|
|
689
|
+
.bases-card-cover-1x1 { aspect-ratio: 1 / 1; }
|
|
690
|
+
.bases-card-cover-3x2 { aspect-ratio: 3 / 2; }
|
|
691
|
+
.bases-card-cover-4x3 { aspect-ratio: 4 / 3; }
|
|
692
|
+
.bases-card-cover-16x9 { aspect-ratio: 16 / 9; }
|
|
693
|
+
.bases-card-cover-3x4 { aspect-ratio: 3 / 4; }
|
|
694
|
+
.bases-card-cover-2x3 { aspect-ratio: 2 / 3; }
|
|
695
|
+
.bases-card-body {
|
|
696
|
+
padding: 0.6rem 0.75rem;
|
|
697
|
+
display: flex;
|
|
698
|
+
flex-direction: column;
|
|
699
|
+
gap: 0.2rem;
|
|
700
|
+
}
|
|
701
|
+
.bases-card-title {
|
|
702
|
+
font-weight: 600;
|
|
703
|
+
font-size: 0.95rem;
|
|
704
|
+
line-height: 1.3;
|
|
705
|
+
}
|
|
706
|
+
.bases-card-meta {
|
|
707
|
+
font-size: 0.8rem;
|
|
708
|
+
color: var(--muted);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/* List view */
|
|
712
|
+
.bases-list {
|
|
713
|
+
list-style: none;
|
|
714
|
+
padding: 0.25rem 0;
|
|
715
|
+
margin: 0;
|
|
716
|
+
}
|
|
717
|
+
.bases-list > li {
|
|
718
|
+
padding: 0.4rem 0.85rem;
|
|
719
|
+
border-bottom: 1px solid var(--rule);
|
|
720
|
+
display: flex;
|
|
721
|
+
align-items: baseline;
|
|
722
|
+
gap: 0.6rem;
|
|
723
|
+
}
|
|
724
|
+
.bases-list > li:last-child { border-bottom: none; }
|
|
725
|
+
.bases-list-meta {
|
|
726
|
+
font-size: 0.85rem;
|
|
727
|
+
color: var(--muted);
|
|
728
|
+
}
|
|
729
|
+
.bases-list-sep { opacity: 0.5; }
|
|
730
|
+
|
|
400
731
|
/* Auto-generated folder index pages */
|
|
401
732
|
.folder-count { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
|
|
402
733
|
.folder-listing { list-style: none; padding: 0; margin: 0; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/render/styles.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6uB1B,CAAC"}
|
package/dist/settings.js
CHANGED
|
@@ -45,18 +45,28 @@ const SCHEMA = {
|
|
|
45
45
|
accent_color: {
|
|
46
46
|
default: "",
|
|
47
47
|
type: "string",
|
|
48
|
-
description: "Override the
|
|
48
|
+
description: "Override the accent color (links, headings, highlights). Any CSS color works: '#a8201a', 'crimson', 'rgb(168 32 26)'. Empty = use the built-in scarlet.",
|
|
49
49
|
},
|
|
50
|
-
|
|
50
|
+
bg_color: {
|
|
51
51
|
default: "",
|
|
52
52
|
type: "string",
|
|
53
|
-
description: "Override the
|
|
53
|
+
description: "Override the background color. Any CSS color works: '#f4ecd8', 'wheat', 'rgb(244 236 216)'. Empty = use the built-in parchment.",
|
|
54
54
|
},
|
|
55
55
|
favicon: {
|
|
56
56
|
default: "",
|
|
57
57
|
type: "string",
|
|
58
58
|
description: "Vault-relative path to an image used as the site favicon (png/jpg/svg/webp). Empty = generated default with the vault's accent color.",
|
|
59
59
|
},
|
|
60
|
+
auto_image: {
|
|
61
|
+
default: true,
|
|
62
|
+
type: "boolean",
|
|
63
|
+
description: "When a page has no 'image:' frontmatter, fall back to the first embedded image in the body. Used for OG/Twitter social cards, Bases card covers, and Foundry actor/item reskins. Set false to opt out.",
|
|
64
|
+
},
|
|
65
|
+
include_unknown_files: {
|
|
66
|
+
default: false,
|
|
67
|
+
type: "boolean",
|
|
68
|
+
description: "Ship files with unrecognized extensions to every deploy variant. Default false skips them (with a warning) so a stray file in your vault can't accidentally bypass role gating. Recognized media types (audio/video/pdf/epub) are reference-gated like images regardless of this setting.",
|
|
69
|
+
},
|
|
60
70
|
};
|
|
61
71
|
export const SETTINGS_FILE = "settings.md";
|
|
62
72
|
/**
|
package/dist/settings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,MAAM,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,MAAM,MAAM,aAAa,CAAC;AAiCjC,MAAM,MAAM,GAA6C;IACvD,UAAU,EAAE;QACV,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,8DAA8D;KAC5E;IACD,aAAa,EAAE;QACb,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6DAA6D;KAC3E;IACD,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI;QACzB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,iEAAiE;KAC/E;IACD,MAAM,EAAE;QACN,OAAO,EAAE,EAAE;QACX,IAAI,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,CAAC,CAAC;AACnB,CAAC;AAED,SAAS,YAAY,CAAC,CAAS;IAC7B,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wizzlethorpe/vaults",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Sync an Obsidian vault to a Cloudflare-hosted wiki with role-based access. Renders locally, deploys to Cloudflare Pages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"obsidian",
|
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsc",
|
|
36
36
|
"start": "node dist/index.js",
|
|
37
|
+
"test": "node --import tsx --test test/*.test.ts",
|
|
38
|
+
"typecheck:test": "tsc -p tsconfig.test.json --noEmit",
|
|
37
39
|
"prepublishOnly": "npm run build"
|
|
38
40
|
},
|
|
39
41
|
"dependencies": {
|
|
@@ -61,6 +63,7 @@
|
|
|
61
63
|
"@types/node": "^22.10.0",
|
|
62
64
|
"@types/picomatch": "^3.0.1",
|
|
63
65
|
"@types/unist": "^3.0.3",
|
|
66
|
+
"tsx": "^4.21.0",
|
|
64
67
|
"typescript": "^5.9.3"
|
|
65
68
|
}
|
|
66
69
|
}
|