diff --git a/.playwright-mcp/page-2026-01-04T23-02-02-966Z.png b/.playwright-mcp/page-2026-01-04T23-02-02-966Z.png new file mode 100644 index 0000000..1df51df Binary files /dev/null and b/.playwright-mcp/page-2026-01-04T23-02-02-966Z.png differ diff --git a/.playwright-mcp/page-2026-01-04T23-28-43-211Z.png b/.playwright-mcp/page-2026-01-04T23-28-43-211Z.png new file mode 100644 index 0000000..5aee885 Binary files /dev/null and b/.playwright-mcp/page-2026-01-04T23-28-43-211Z.png differ diff --git a/.playwright-mcp/page-2026-01-04T23-29-06-868Z.png b/.playwright-mcp/page-2026-01-04T23-29-06-868Z.png new file mode 100644 index 0000000..6aa67f9 Binary files /dev/null and b/.playwright-mcp/page-2026-01-04T23-29-06-868Z.png differ diff --git a/.playwright-mcp/page-2026-01-04T23-29-24-899Z.png b/.playwright-mcp/page-2026-01-04T23-29-24-899Z.png new file mode 100644 index 0000000..dfdd1fa Binary files /dev/null and b/.playwright-mcp/page-2026-01-04T23-29-24-899Z.png differ diff --git a/.playwright-mcp/page-2026-01-04T23-29-40-477Z.png b/.playwright-mcp/page-2026-01-04T23-29-40-477Z.png new file mode 100644 index 0000000..63af28c Binary files /dev/null and b/.playwright-mcp/page-2026-01-04T23-29-40-477Z.png differ diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..43896ce --- /dev/null +++ b/changelog.md @@ -0,0 +1,28 @@ +# Changelog + +## 2026-01-10 - 1.0.4 - fix(ui) +serve SPA bundle from root, add cache-busting query, expose files API and include default CSS manager styles + +- Changed HTML script src to use absolute path /bundle.js so the SPA loads correctly when served from various routes. +- Added cache-busting by appending ?v=${project.version} to /bundle.js in served index.html to avoid stale client bundles. +- Made the /api/files/:org/:package endpoint available (removed dev-only gating) so package file listing is accessible in non-dev modes, with permission check retained. +- Added cssManager.defaultStyles to the opencdn-mainpage element to ensure default design system styles are included. + +## 2026-01-04 - 1.0.3 - maintenance +Consolidated maintenance updates. + +- Minor maintenance and housekeeping ("update" commits). +- Duplicate update commits merged; no further detail provided in commit messages. +- No explicit functional changes described. + +## 2022-01-06 - 1.0.1–1.0.3 - core fixes & release tags +Summary of early releases: core fixes and several non-descriptive release/tag commits. + +- fix(core): update — core fixes applied (appears in 1.0.1 and 1.0.2). +- Non-descriptive release/tag commits for 1.0.2 and 1.0.3 (messages: "1.0.2", "1.0.3")—no details provided. +- These commits appear to be small fixes and housekeeping around the initial 1.0.x releases. + +## 2022-01-05 - unknown - initial +Initial project commit. + +- Project initialized ("Initial commit"). \ No newline at end of file diff --git a/html/index.html b/html/index.html index a4d9f3a..08d7328 100644 --- a/html/index.html +++ b/html/index.html @@ -14,7 +14,7 @@
- + `; html = html.replace('', `${configScript}\n`); + // Add version query parameter to bundle.js for cache busting + html = html.replace('/bundle.js', `/bundle.js?v=${this.projectinfo.version}`); + res.setHeader('content-type', embeddedFile.contentType); res.setHeader('cache-control', 'no-cache'); res.status(200).send(html); diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts new file mode 100644 index 0000000..6f3ccc3 --- /dev/null +++ b/ts_web/00_commitinfo_data.ts @@ -0,0 +1,8 @@ +/** + * autocreated commitinfo by @push.rocks/commitinfo + */ +export const commitinfo = { + name: '@serve.zone/opencdn', + version: '1.0.4', + description: 'A CDN that serves files directly from npm packages' +} diff --git a/ts_web/elements/opencdn-mainpage.ts b/ts_web/elements/opencdn-mainpage.ts index 1ed03b2..dae2706 100644 --- a/ts_web/elements/opencdn-mainpage.ts +++ b/ts_web/elements/opencdn-mainpage.ts @@ -4,6 +4,7 @@ import { html, customElement, type TemplateResult, + cssManager, css, state, } from '@design.estate/dees-element'; @@ -31,6 +32,7 @@ export class OpencdnMainpage extends DeesElement { // Shadcn-like color palette public static styles = [ + cssManager.defaultStyles, css` :host { --background: #09090b;