website-xp-phone 2.5.3 → 2.7.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/package.json +6 -6
- package/public/blog/7.md +1 -1
- package/public/blog/archive/seventh-post-lie-theory-na2000.json +2 -2
- package/public/blog/random/google.md +2 -2
- package/public/blog/releases/dotfiles_1_0_0.md +45 -0
- package/public/blog/releases/hlwm_and_herbstutil.md +33 -0
- package/public/blog/releases/try_it_out.md +48 -0
- package/public/checksums.txt +83 -81
- package/public/documents/drift-report.json +1 -1
- package/src/content/addons.json +2 -2
- package/src/content/blog.json +12 -1
- package/src/content/configs.json +2 -2
- package/src/content/contacts.json +2 -0
- package/src/content/index.ts +7 -1
- package/src/content/projects/{webuser.json → _shelve/webuser.json} +6 -5
- package/src/content/projects/development.json +8 -8
- package/src/content/projects/doftiles.json +101 -29
- package/src/content/projects/frontend.json +6 -5
- package/src/content/projects/graphbrowser.json +34 -6
- package/src/content/projects/herbctl.json +78 -46
- package/src/content/projects/herbstutil.json +85 -68
- package/src/content/projects/lightdni-jssas-toggle.json +51 -6
- package/src/content/projects/on-deploy.json +85 -24
- package/src/content/projects/opencode-screencast.json +64 -11
- package/src/content/projects/pagerts.json +58 -22
- package/src/content/projects/polyframes.json +54 -31
- package/src/content/projects/rarebert.json +37 -8
- package/src/content/schema.ts +3 -0
- package/src/content/sections.json +2 -0
- package/src/content/soundcloud.json +26 -14
- package/src/styles/window.css +55 -19
- package/src/themes/pageSlide/index.ts +211 -83
- package/src/themes/pageSlide/pageSlide.css +89 -29
- package/src/window/OkButton.tsx +6 -1
- package/src/window/Window.tsx +78 -0
- package/src/window/themes.ts +6 -7
- package/test/content.test.js +17 -0
- package/tsconfig.node.tsbuildinfo +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/xp.css/dist/98.css +2 -0
- package/xp.css/dist/98.css.map +1 -0
- package/xp.css/dist/GUI.css +2 -0
- package/xp.css/dist/GUI.css.map +1 -0
- package/xp.css/dist/XP.css +2 -0
- package/xp.css/dist/XP.css.map +1 -0
- package/xp.css/dist/fonts/converted/PerfectDOSVGA437Win.woff +0 -0
- package/xp.css/dist/fonts/converted/PerfectDOSVGA437Win.woff2 +0 -0
- package/xp.css/dist/fonts/converted/ms_sans_serif.woff +0 -0
- package/xp.css/dist/fonts/converted/ms_sans_serif.woff2 +0 -0
- package/xp.css/dist/fonts/converted/ms_sans_serif_bold.woff +0 -0
- package/xp.css/dist/fonts/converted/ms_sans_serif_bold.woff2 +0 -0
- package/Makefile +0 -39
- package/public/blog/hlwm_and_herbstutil.md +0 -74
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* Inert until lightdni-jssas-toggle adds `theme-page-slide` to <html> and
|
|
3
3
|
* sets --ps-* variables and data-page-slide on it.
|
|
4
4
|
*
|
|
5
|
-
* Exit choreography:
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* Exit choreography: the page drops straight out of the bottom while the
|
|
6
|
+
* windows fold - the top-level windows squash down onto the taskbar line
|
|
7
|
+
* (XP-style outline squash, linear over --ps-minimize) IN STEP with the
|
|
8
|
+
* whole-page drop over --ps-drop-dur: squeeze while moving down, fully
|
|
9
|
+
* off screen, no stationary beat first.
|
|
9
10
|
*/
|
|
10
11
|
html.theme-page-slide {
|
|
11
12
|
overflow-x: clip;
|
|
@@ -23,13 +24,15 @@ html.theme-page-slide .page-slide-ghost {
|
|
|
23
24
|
margin: 0;
|
|
24
25
|
overflow: hidden;
|
|
25
26
|
pointer-events: none;
|
|
26
|
-
/*
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
/* Two beats: the rapid fold snaps first (--ps-drop-delay == the fold
|
|
28
|
+
beat), THEN the collapsed page glides off gently - ease in and out,
|
|
29
|
+
not a slam. */
|
|
30
|
+
animation: page-slide-drop var(--ps-drop-dur) ease-in-out
|
|
31
|
+
var(--ps-drop-delay) forwards;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
/* The live <main> has an indefinite height, so its page sizes to content
|
|
32
|
-
(a nested .page in the ghost's fixed-height main, or main itself
|
|
35
|
+
(a nested .page in the ghost's fixed-height main, or main itself - the
|
|
33
36
|
normalized shell makes main the page); the ghost must not stretch the
|
|
34
37
|
page to fill its box. */
|
|
35
38
|
html.theme-page-slide .page-slide-ghost > .page,
|
|
@@ -43,7 +46,8 @@ html.theme-page-slide .page-slide-ghost.page {
|
|
|
43
46
|
visibly rides out instead of blinking away at the route commit. */
|
|
44
47
|
html.theme-page-slide .page-slide-bar {
|
|
45
48
|
pointer-events: none;
|
|
46
|
-
animation: page-slide-bar-exit 280ms ease-in
|
|
49
|
+
animation: page-slide-bar-exit var(--ps-drop-dur, 280ms) ease-in-out
|
|
50
|
+
var(--ps-drop-delay, 0ms) forwards;
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
@keyframes page-slide-bar-exit {
|
|
@@ -53,7 +57,7 @@ html.theme-page-slide .page-slide-bar {
|
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
|
|
56
|
-
/* The live bar yields to its ride-out clone for the exit (visibility
|
|
60
|
+
/* The live bar yields to its ride-out clone for the exit (visibility -
|
|
57
61
|
display would collapse the reserved body padding row). */
|
|
58
62
|
html.theme-page-slide .page-slide-bar-hide {
|
|
59
63
|
visibility: hidden;
|
|
@@ -67,26 +71,67 @@ html.theme-page-slide[data-page-slide] main:not(.page-slide-ghost) > .page {
|
|
|
67
71
|
animation: page-slide-pad var(--ps-duration) ease-in-out backwards;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
|
-
/* XP minimise:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
/* XP minimise: EVERY window in the ghost squashes IN PLACE - top-level
|
|
75
|
+
or not. The old selectors matched only direct children of the page,
|
|
76
|
+
and any window wrapped one node deeper (or nested inside another
|
|
77
|
+
window) escaped the fold entirely: it rode the page drop at full
|
|
78
|
+
height beside fully-squashing siblings - the child read as falling
|
|
79
|
+
slower than the main window, the whole exit as the window
|
|
80
|
+
disassembling. One rule, every window. No translation: the window
|
|
81
|
+
slides out FROM ITS CURRENT POSITION, carried by the whole-page drop
|
|
82
|
+
(the old fold translated each window down to the taskbar line, which
|
|
83
|
+
read as a teleport below the arriving page's windows). Contents ride
|
|
84
|
+
the squash, as in XP itself.
|
|
85
|
+
|
|
86
|
+
Timing split: the BASE fold is LINEAR - nested children ride flat, so
|
|
87
|
+
the parent's acceleration does not compound through them - while the
|
|
88
|
+
MAIN windows (the top-level rule below) carry the gravity: their
|
|
89
|
+
squash is the one EASE-IN beat, accelerating shut. The stagger comes
|
|
90
|
+
from --ps-fold-delay, set per main window in JS and INHERITED: a
|
|
91
|
+
nested window folds in its parent's stage, not against it.
|
|
92
|
+
!important holds the base fold against the window stylesheets inside
|
|
93
|
+
the inert ghost - the exit stays exactly one motion. */
|
|
94
|
+
html.theme-page-slide .page-slide-ghost .window {
|
|
95
|
+
transform-origin: bottom center;
|
|
96
|
+
animation: page-slide-fold var(--ps-minimize, 98ms) linear forwards !important;
|
|
97
|
+
animation-delay: var(--ps-fold-delay, 0ms);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* MULTI-window pages exit FLAT: the ghost runs NO window animations -
|
|
101
|
+
not even the base fold. Every differential beat the cascade family
|
|
102
|
+
tried (staggered, simultaneous, raised-over) tore at the exit -
|
|
103
|
+
revealed sections collapsed at their own pace against the page's
|
|
104
|
+
slide-out. The whole page slides out as one piece instead: no
|
|
105
|
+
per-window motion whatsoever, only the page's drop. Single-window
|
|
106
|
+
pages keep the shrink (the base + gravity rules above). */
|
|
107
|
+
html.theme-page-slide .page-slide-ghost.page-slide-ghost-flat .window,
|
|
108
|
+
html.theme-page-slide
|
|
109
|
+
.page-slide-ghost.page-slide-ghost-flat
|
|
110
|
+
.window
|
|
111
|
+
.window {
|
|
112
|
+
animation: none !important;
|
|
113
|
+
transform: none !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* MAIN windows: the top-level folds are the gravity beat (ease-in).
|
|
117
|
+
The same maximized-shell/backdrop pair as the JS cascade: the
|
|
118
|
+
maximized wrapper swaps its class to .maximized-backdrop while the
|
|
119
|
+
window is lifted, and missing it there keeps maximized windows on
|
|
120
|
+
the flat base beat while everything else falls with gravity. */
|
|
121
|
+
html.theme-page-slide .page-slide-ghost > .window,
|
|
122
|
+
html.theme-page-slide .page-slide-ghost > .maximized-shell > .window,
|
|
123
|
+
html.theme-page-slide .page-slide-ghost > .maximized-backdrop > .window,
|
|
75
124
|
html.theme-page-slide .page-slide-ghost .page > .window,
|
|
76
125
|
html.theme-page-slide .page-slide-ghost .page > .maximized-shell > .window,
|
|
77
|
-
html.theme-page-slide .page-slide-ghost > .window
|
|
78
|
-
|
|
79
|
-
transform-origin: bottom center;
|
|
80
|
-
/* Linear, per preference: the top edge falls towards the taskbar line
|
|
81
|
-
at a constant rate for the entire fold. */
|
|
82
|
-
animation: page-slide-fold var(--ps-minimize, 98ms) linear forwards;
|
|
126
|
+
html.theme-page-slide .page-slide-ghost .page > .maximized-backdrop > .window {
|
|
127
|
+
animation-timing-function: ease-in !important;
|
|
83
128
|
}
|
|
84
129
|
|
|
85
|
-
/* Fallback look for the swapped-out iframes (music embeds etc.)
|
|
130
|
+
/* Fallback look for the swapped-out iframes (music embeds etc.) - the
|
|
86
131
|
PAGE's background colour: the placeholder is what shows through while
|
|
87
132
|
the page fades/slides, and a white flash reads as visual pollution
|
|
88
133
|
against the themed background. Document frames that carry their own
|
|
89
|
-
opaque background (the white resume preview) adopt it in JS instead
|
|
134
|
+
opaque background (the white resume preview) adopt it in JS instead -
|
|
90
135
|
a dark placeholder there reads as the PDF unloading mid-exit. */
|
|
91
136
|
html.theme-page-slide .page-slide-ghost .page-slide-placeholder-frame {
|
|
92
137
|
background: var(--background-color);
|
|
@@ -94,20 +139,35 @@ html.theme-page-slide .page-slide-ghost .page-slide-placeholder-frame {
|
|
|
94
139
|
|
|
95
140
|
@keyframes page-slide-fold {
|
|
96
141
|
to {
|
|
97
|
-
|
|
142
|
+
/* The fold is a squash AND A FALL: the window's bottom edge travels
|
|
143
|
+
its measured distance to the taskbar line (--page-fold-dy, set per
|
|
144
|
+
main window in JS) while the outline collapses - gravity, ease-in,
|
|
145
|
+
oneXP minimize. */
|
|
146
|
+
transform: translateY(var(--page-fold-dy, 0px)) scaleY(0.06);
|
|
98
147
|
}
|
|
99
148
|
}
|
|
100
149
|
|
|
150
|
+
/* The fall distance belongs to the top-level window alone: nested
|
|
151
|
+
windows reset it, so they squash in the parent's stage and RIDE the
|
|
152
|
+
parent's fall instead of compounding it. */
|
|
153
|
+
html.theme-page-slide .page-slide-ghost .window .window {
|
|
154
|
+
--page-fold-dy: 0px;
|
|
155
|
+
}
|
|
156
|
+
|
|
101
157
|
@keyframes page-slide-drop {
|
|
102
158
|
to {
|
|
103
|
-
|
|
159
|
+
/* Measured in JS (leaveGhost): the ghost's top edge must pass the
|
|
160
|
+
viewport bottom - 100vh MINUS the old page's scroll offset (a
|
|
161
|
+
fixed 110vh left the tail on screen for scrolled pages) - plus
|
|
162
|
+
margin to clear the folded sliver. */
|
|
163
|
+
translate: 0 var(--ps-drop-distance, 110vh);
|
|
104
164
|
}
|
|
105
165
|
}
|
|
106
166
|
|
|
107
167
|
/* Departing dimmed overlays: the dark level fades in step with the
|
|
108
168
|
departing windows (slide-off on dismissal, page fold on navigation);
|
|
109
169
|
ride clones keep the fade going even when the portals unmount
|
|
110
|
-
mid-animation. The ride carries its OWN full backdrop look
|
|
170
|
+
mid-animation. The ride carries its OWN full backdrop look - it must
|
|
111
171
|
drop the .maximized-backdrop class, or body:has() would keep the page
|
|
112
172
|
raised over the menu bar for the ride's whole lifetime. */
|
|
113
173
|
.maximized-backdrop.page-slide-backdrop-close,
|
|
@@ -146,7 +206,7 @@ html.theme-page-slide .page-slide-ghost .page-slide-placeholder-frame {
|
|
|
146
206
|
html.theme-page-slide .window.window-minimize {
|
|
147
207
|
z-index: 4001;
|
|
148
208
|
transform-origin: bottom center;
|
|
149
|
-
animation: window-minimize-exit var(--ps-minimize, 98ms)
|
|
209
|
+
animation: window-minimize-exit var(--ps-minimize, 98ms) ease-in forwards !important;
|
|
150
210
|
}
|
|
151
211
|
|
|
152
212
|
@keyframes window-minimize-exit {
|
|
@@ -160,7 +220,7 @@ html.theme-page-slide .window.window-minimize {
|
|
|
160
220
|
}
|
|
161
221
|
|
|
162
222
|
/* Parked (a hyperlink/maximized seed load): play NOTHING. Aiming the
|
|
163
|
-
entrance at zero distance would still emit translate(0,0)
|
|
223
|
+
entrance at zero distance would still emit translate(0,0) - a live
|
|
164
224
|
transform on <main> makes it the containing block for the in-tree
|
|
165
225
|
position:fixed maximized backdrop, which then centers against main's
|
|
166
226
|
box instead of the viewport. No animation = no transform = the
|
|
@@ -173,7 +233,7 @@ html.theme-page-slide[data-page-slide="parked"] main:not(.page-slide-ghost) {
|
|
|
173
233
|
/* The parked "none" must also hold for the normalized shell (main.page),
|
|
174
234
|
whose combined entrance animation above declares at higher specificity
|
|
175
235
|
than the un-classed main rule: this later, equal-specificity rule wins
|
|
176
|
-
and keeps main transform-free
|
|
236
|
+
and keeps main transform-free - the maximized backdrop stays
|
|
177
237
|
viewport-anchored. */
|
|
178
238
|
html.theme-page-slide[data-page-slide="parked"]
|
|
179
239
|
main:not(.page-slide-ghost).page,
|
package/src/window/OkButton.tsx
CHANGED
|
@@ -53,7 +53,12 @@ export function OkButton({ node }: { node: WindowNode }) {
|
|
|
53
53
|
window.location.assign(link);
|
|
54
54
|
} else {
|
|
55
55
|
// Internal navigation is a signal: the shell's handler performs
|
|
56
|
-
// the route change, so the window system stays router-free.
|
|
56
|
+
// the route change, so the window system stays router-free. The
|
|
57
|
+
// bookmark rides FIRST — the router's push below makes the
|
|
58
|
+
// DESTINATION entry current, and only the leaving entry can take
|
|
59
|
+
// the section's bookmark (the same contract the external branch
|
|
60
|
+
// and the capture-phase link listener run on).
|
|
61
|
+
remember(node.id);
|
|
57
62
|
dispatch("app:navigate", { to: link });
|
|
58
63
|
}
|
|
59
64
|
};
|
package/src/window/Window.tsx
CHANGED
|
@@ -153,6 +153,62 @@ export function Window({ node }: { node: WindowNode }) {
|
|
|
153
153
|
const flags = flagsOf(node.id);
|
|
154
154
|
const maximized = Boolean(flags.maximized);
|
|
155
155
|
const windowRef = useRef<HTMLDivElement | null>(null);
|
|
156
|
+
// The experimental wobble plays ONCE per visit. Three attributes on
|
|
157
|
+
// the root drive it (see the Experimental block in window.css):
|
|
158
|
+
// data-wobble-playing the run has STARTED (first body contact);
|
|
159
|
+
// the trigger rule keys off MARKER, not
|
|
160
|
+
// :hover, so losing the hover mid-flight
|
|
161
|
+
// never unmatches the rule - the animation
|
|
162
|
+
// ALWAYS finishes, an accidental swipe does
|
|
163
|
+
// not snip it, and it never restarts
|
|
164
|
+
// data-wobbled the run FINISHED (armed on animationend)
|
|
165
|
+
// Minimizing re-arms both (a fresh visit may identify again).
|
|
166
|
+
// Rearm on outside contact lives in the effect below: pointer
|
|
167
|
+
// touching anything outside the window sets data-wobbled, unless a
|
|
168
|
+
// wobble is still running (arming would saturate the trigger and
|
|
169
|
+
// cancel it mid-flight) - then the animationend arms instead.
|
|
170
|
+
const experimental = hasTheme(node, "experimental");
|
|
171
|
+
useEffect(() => {
|
|
172
|
+
if (flags.minimized) {
|
|
173
|
+
windowRef.current?.removeAttribute("data-wobbled");
|
|
174
|
+
windowRef.current?.removeAttribute("data-wobble-playing");
|
|
175
|
+
}
|
|
176
|
+
}, [flags.minimized]);
|
|
177
|
+
useEffect(() => {
|
|
178
|
+
if (!experimental) return;
|
|
179
|
+
const el = windowRef.current;
|
|
180
|
+
if (!el) return;
|
|
181
|
+
const finish = (animationEvent: AnimationEvent) => {
|
|
182
|
+
// only the ROOT's own wobble arms the flag: a nested experimental
|
|
183
|
+
// child's animationend must not saturate its ancestor early
|
|
184
|
+
if (animationEvent.target !== el) return;
|
|
185
|
+
el.removeAttribute("data-wobble-playing");
|
|
186
|
+
el.setAttribute("data-wobbled", "");
|
|
187
|
+
};
|
|
188
|
+
const cancelRun = (animationEvent: AnimationEvent) => {
|
|
189
|
+
if (animationEvent.target !== el) return;
|
|
190
|
+
el.removeAttribute("data-wobble-playing");
|
|
191
|
+
};
|
|
192
|
+
const outside = (event: PointerEvent) => {
|
|
193
|
+
if (event.composedPath().includes(el)) return;
|
|
194
|
+
if (el.hasAttribute("data-wobble-playing")) {
|
|
195
|
+
// still running: finish first (the animationend arms)
|
|
196
|
+
if (el.getAnimations().length) return;
|
|
197
|
+
// stale suppression (an ancestor held still by a nested
|
|
198
|
+
// playing child never animates, so it never ends itself)
|
|
199
|
+
el.removeAttribute("data-wobble-playing");
|
|
200
|
+
}
|
|
201
|
+
el.setAttribute("data-wobbled", "");
|
|
202
|
+
};
|
|
203
|
+
el.addEventListener("animationend", finish);
|
|
204
|
+
el.addEventListener("animationcancel", cancelRun);
|
|
205
|
+
document.addEventListener("pointerenter", outside, true);
|
|
206
|
+
return () => {
|
|
207
|
+
el.removeEventListener("animationend", finish);
|
|
208
|
+
el.removeEventListener("animationcancel", cancelRun);
|
|
209
|
+
document.removeEventListener("pointerenter", outside, true);
|
|
210
|
+
};
|
|
211
|
+
}, [experimental]);
|
|
156
212
|
const maximizedCtl = useMaximizedController(
|
|
157
213
|
node.id,
|
|
158
214
|
patch,
|
|
@@ -323,6 +379,28 @@ export function Window({ node }: { node: WindowNode }) {
|
|
|
323
379
|
.filter(Boolean)
|
|
324
380
|
.join(" ")}
|
|
325
381
|
data-theme={dataTheme(node)}
|
|
382
|
+
onPointerEnter={
|
|
383
|
+
hasTheme(node, "experimental")
|
|
384
|
+
? () => {
|
|
385
|
+
const el = windowRef.current;
|
|
386
|
+
if (!el) return;
|
|
387
|
+
// TOUCHING THE WINDOW - anywhere (title bar, controls,
|
|
388
|
+
// frame, body) - starts the run: a marker, not a
|
|
389
|
+
// hover-keyed rule - see the css note. Losing the hover
|
|
390
|
+
// mid-run never unmatches the trigger, so the cursor
|
|
391
|
+
// roaming across the window never restarts the wobble
|
|
392
|
+
// before it finishes. LEAVING the window and entering
|
|
393
|
+
// again is a fresh visit: data-wobbled (the finished
|
|
394
|
+
// marker, set on animationend or on outside contact) is
|
|
395
|
+
// cleared on every re-entry, so the next touch replays.
|
|
396
|
+
if (el.hasAttribute("data-wobble-playing")) {
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
el.removeAttribute("data-wobbled");
|
|
400
|
+
el.setAttribute("data-wobble-playing", "");
|
|
401
|
+
}
|
|
402
|
+
: undefined
|
|
403
|
+
}
|
|
326
404
|
>
|
|
327
405
|
<TitleBar
|
|
328
406
|
node={node}
|
package/src/window/themes.ts
CHANGED
|
@@ -2,14 +2,13 @@ import type { WindowNode } from "./model";
|
|
|
2
2
|
import { hasTheme } from "./model";
|
|
3
3
|
import type { SignalManifest } from "@/lib/signals";
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* filter. */
|
|
5
|
+
/** The themes a WindowNode carries, rendered onto its data-theme
|
|
6
|
+
* attribute. The temporary experimental filter is GONE (2026-11): the
|
|
7
|
+
* wobble css is now scoped to the window BODY (the title bar never
|
|
8
|
+
* moves) and guarded against the maximized portal DOM - see the
|
|
9
|
+
* Experimental block in window.css. */
|
|
11
10
|
export const dataTheme = (node: WindowNode): string | undefined => {
|
|
12
|
-
const themes = node.themes
|
|
11
|
+
const themes = node.themes;
|
|
13
12
|
return themes.length ? themes.join(" ") : undefined;
|
|
14
13
|
};
|
|
15
14
|
|
package/test/content.test.js
CHANGED
|
@@ -104,3 +104,20 @@ test("every project document is complete and routable", async () => {
|
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
+
|
|
108
|
+
test("every project carries a lastModified stamp (the listing sorts on it)", async () => {
|
|
109
|
+
const { readdirSync } = await import("node:fs");
|
|
110
|
+
const files = readdirSync("src/content/projects").filter((f) =>
|
|
111
|
+
f.endsWith(".json"),
|
|
112
|
+
);
|
|
113
|
+
for (const file of files) {
|
|
114
|
+
const project = JSON.parse(
|
|
115
|
+
readFileSync(`src/content/projects/${file}`, "utf8"),
|
|
116
|
+
);
|
|
117
|
+
assert.match(
|
|
118
|
+
project.lastModified ?? "",
|
|
119
|
+
/^\d{4}-\d{2}-\d{2}$/,
|
|
120
|
+
`${file}: lastModified is an ISO date (YYYY-MM-DD)`,
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
});
|