Polish approved 1.0 scope and verify portable previews
This commit is contained in:
1 parent
1819f35f91
commit
2b45df2816
181 files changed
+996
-139
No files matched your search
@@ -93,6 +93,7 @@ export async function exportSystem(
|
||||
};
|
||||
const files = {};
|
||||
const paths = [
|
||||
"index.html",
|
||||
"icons/icons.js",
|
||||
"icons/index.html",
|
||||
"icons/catalog.css",
|
||||
@@ -199,6 +200,8 @@ export async function exportSystem(
|
||||
);
|
||||
files[`tokens/${theme}.json`] = JSON.stringify(tokens, null, 2);
|
||||
files[`tokens/${theme}.css`] = `:root {\n${cssVars(tokens)}\n}\n`;
|
||||
files[`tokens/dock/${theme}.css`] = files[`tokens/${theme}.css`];
|
||||
files[`tokens/dock/${theme}.json`] = files[`tokens/${theme}.json`];
|
||||
}
|
||||
files["selection.json"] = JSON.stringify(
|
||||
{
|
||||
@@ -223,10 +226,12 @@ export async function exportSystem(
|
||||
locale: state.locale,
|
||||
});
|
||||
if (state.accents[c.id]) exportParams.set("accent", state.accents[c.id]);
|
||||
files["index.html"] =
|
||||
`<!doctype html><meta charset="utf-8"><title>Anidev ${c.name}</title><script>location.replace('playground/frame.html?${exportParams}')<\/script>`;
|
||||
files["index.html"] = files["index.html"].replace(
|
||||
"</head>",
|
||||
`<script>const url=new URL(location.href);const defaults=new URLSearchParams(${JSON.stringify(exportParams.toString())});for(const [key,value] of defaults)if(!url.searchParams.has(key))url.searchParams.set(key,value);history.replaceState(null,"",url);<\/script></head>`,
|
||||
);
|
||||
files["README.md"] =
|
||||
`# Anidev / ${c.name}\nApproved Dock design — gallery snapshot, version 0.2.0.\nServe this folder over HTTP (for example python -m http.server 8080).\nOpen index.html.\nUse tokens/light.css or tokens/dark.css and components/system.css in any framework.\nFor the separate integration package and installable Skill, run npm run build:package in the source repository; this snapshot does not contain its build tools.\nThird-party terminal licenses are in vendor/xterm.\n`;
|
||||
`# Anidev / ${c.name}\nApproved Dock design — gallery snapshot, version 0.2.0. Scope 1.0 approved; release pending manual review.\nServe this folder over HTTP (for example python -m http.server 8080).\nOpen index.html.\nUse tokens/light.css or tokens/dark.css and components/system.css in any framework.\nFor the separate integration package and installable Skill, run npm run build:package in the source repository; this snapshot does not contain its build tools.\nThird-party licenses are in vendor/xterm and vendor/text. Server metrics, documents and Identity data are demonstrations; no real API or SSH transport is connected.\n`;
|
||||
const url = URL.createObjectURL(zip(files)),
|
||||
a = document.createElement("a");
|
||||
a.href = url;
|
||||
|
||||
Reference in new issue
Block a user