mirror of
https://github.com/colbymchenry/codegraph.git
synced 2026-10-18 13:53:01 +08:00
feat(marketplace): match CodeGraph theme with local Lucide assets [skip ci]
This commit is contained in:
@@ -23,6 +23,19 @@ function submission(keys: ReturnType<typeof identity>, version = '1.0.0', bytes
|
||||
signature: sign('sha256', Buffer.from(payload), { key: keys.privateKey, dsaEncoding: 'ieee-p1363' }).toString('base64') };
|
||||
}
|
||||
describe('extension publishing and connection contract', () => {
|
||||
it('serves bundled UI assets with correct MIME while rejecting unrelated paths', async () => {
|
||||
const server = await startMarketplaceServer({ database: path.join(root(), 'registry.db'), publicDirectory: path.resolve('marketplace/public') });
|
||||
const url = `http://127.0.0.1:${server.port}`;
|
||||
try {
|
||||
for (const [file, type] of [['icons.js', 'text/javascript'], ['fonts.css', 'text/css'], ['fonts/archivo-latin-wght-normal.woff2', 'font/woff2'], ['brand/codegraph.svg', 'image/svg+xml'], ['licenses/lucide.txt', 'text/plain; charset=utf-8']]) {
|
||||
const response = await fetch(`${url}/${file}`);
|
||||
expect(response.status).toBe(200);
|
||||
expect(response.headers.get('content-type')).toBe(type);
|
||||
expect(Buffer.from(await response.arrayBuffer())).toEqual(fs.readFileSync(path.resolve('marketplace/public', file)));
|
||||
}
|
||||
for (const file of ['_headers', 'package.json', '../package.json', 'fonts/%2e%2e%2fpackage.json', 'fonts/a/b.woff2']) expect((await fetch(`${url}/${file}`)).status).toBe(404);
|
||||
} finally { await server.close(); }
|
||||
});
|
||||
it('persists immutable releases, enforces ownership, and keeps community publication separate from official status', () => {
|
||||
const database = path.join(root(), 'registry.db'), owner = identity();
|
||||
let store = createMarketplaceStore(database);
|
||||
|
||||
@@ -6,8 +6,9 @@ const root=path.dirname(fileURLToPath(import.meta.url));
|
||||
export async function startLocal({state,testing=false,boundary,port=0,publishing=true,publishingUntil,initialize=true,sourceReviews=[],fixtureSourceApproval=false}={}) {
|
||||
const mf=new Miniflare({...convertV4MiniflareOptions({host:'127.0.0.1',port,workers:[{name:'registry',modules:true,scriptPath:path.join(root,'.build',testing?'test-worker.js':'worker.js'),compatibilityDate:'2026-09-21',
|
||||
d1Databases:{DB:'registry'},r2Buckets:{PACKAGES:'packages'},
|
||||
// Mirror deployed asset-first routing; the former three-file mock hid missing UI assets.
|
||||
assets:{directory:path.join(root,'../public'),binding:'ASSETS',run_worker_first:['/api/*'],routerConfig:{has_user_worker:true},assetConfig:{not_found_handling:'single-page-application'}},
|
||||
bindings:{...(testing?{TEST_SOURCE_REVIEWS:JSON.stringify(sourceReviews),TEST_FIXTURE_SOURCE_APPROVAL:String(fixtureSourceApproval)}:{}),PUBLISHING_ENABLED:String(publishing),...(publishingUntil===undefined?{}:{PUBLISHING_UNTIL:publishingUntil})},serviceBindings:{
|
||||
ASSETS:async req=>{const name=path.basename(new URL(req.url).pathname);if(!['index.html','app.js','style.css'].includes(name))return new Response('Not found',{status:404});return new Response(fs.readFileSync(path.join(root,'../public',name)),{headers:{'Content-Type':name.endsWith('.html')?'text/html':name.endsWith('.js')?'text/javascript':'text/css'}});},
|
||||
...(boundary?{TEST_BOUNDARY:boundary}:{})}}]}),resourcePersistencePath:state});
|
||||
await mf.ready;
|
||||
const db=await mf.getD1Database('DB');
|
||||
|
||||
+24
-21
@@ -3,7 +3,7 @@ const app = document.querySelector('#app');
|
||||
const dialog = document.querySelector('#connect-dialog');
|
||||
const state = { catalog: [], tab: 'all', search: '', connection: null, snapshot: null, project: '0', popup: null, pending: new Map(), selections: {}, selectionEpoch: 0, notice: '' };
|
||||
const escape = value => String(value ?? '').replace(/[&<>"']/g, c => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
||||
const icon = '<svg viewBox="0 0 40 48" aria-hidden="true"><path fill="currentColor" d="M21 2C18 12 5 19 5 30a15 15 0 0 0 30 0C35 19 24 13 21 2Z"/><path d="M11 31c4 4 14 4 18-1" stroke="#2367d8" stroke-width="3" fill="none"/></svg>';
|
||||
const icon = '<img class="extension-brand" src="/brand/drupal.svg" width="44" height="48" alt="">';
|
||||
function readConnection(value) {
|
||||
const params = new URLSearchParams(value.replace(/^#/, ''));
|
||||
const bridge = params.get('bridge'), token = params.get('token');
|
||||
@@ -61,16 +61,16 @@ async function refreshSelections() {
|
||||
function button(extension, detail = false) {
|
||||
extension = selected(extension);
|
||||
const current = installed(extension.id);
|
||||
if (state.snapshot?.busy) return '<button class="primary" disabled>Updating graph…</button>';
|
||||
if (state.snapshot?.busy) return '<button class="primary" disabled><i data-ui="loader-circle"></i>Updating graph…</button>';
|
||||
const ready = !state.snapshot || !!state.selections[extension.id]?.release;
|
||||
if (current) {
|
||||
return `<div class="manage-actions">${ready && current.version !== extension.version ? `<button class="primary" data-action="update" data-id="${escape(extension.id)}">Update to ${escape(extension.version)}</button>` : ''}<button data-action="${current.enabled === false ? 'enable' : 'disable'}" data-id="${escape(extension.id)}">${current.enabled === false ? 'Enable' : 'Disable'}</button>${detail ? `<button data-action="remove" data-id="${escape(extension.id)}">Remove</button>` : ''}</div>`;
|
||||
return `<div class="manage-actions">${ready && current.version !== extension.version ? `<button class="primary" data-action="update" data-id="${escape(extension.id)}"><i data-ui="refresh-cw"></i>Update to ${escape(extension.version)}</button>` : ''}<button data-action="${current.enabled === false ? 'enable' : 'disable'}" data-id="${escape(extension.id)}"><i data-ui="power"></i>${current.enabled === false ? 'Enable' : 'Disable'}</button>${detail ? `<button data-action="remove" data-id="${escape(extension.id)}"><i data-ui="trash-2"></i>Remove</button>` : ''}</div>`;
|
||||
}
|
||||
return `<button class="primary" data-action="install" data-id="${escape(extension.id)}" ${ready ? '' : 'disabled'}>Install extension <span>↓</span></button>`;
|
||||
return `<button class="primary" data-action="install" data-id="${escape(extension.id)}" ${ready ? '' : 'disabled'}>Install extension <i data-ui="download"></i></button>`;
|
||||
}
|
||||
function connectionPanel() {
|
||||
const p = project();
|
||||
return `<aside class="connection-panel"><span class="eyebrow">YOUR LOCAL CODEGRAPH</span><h3>${p ? 'Connected and in your control.' : 'One connection. Then one click.'}</h3><p>${p ? escape(p.root) : 'Choose your project once. Install an extension, and CodeGraph takes care of the rest.'}</p>${p ? `<select id="project" aria-label="Installation destination">${state.snapshot.projects.map(item => `<option value="${escape(item.id)}" ${item.id === state.project ? 'selected' : ''}>${escape(item.name)} — ${escape(item.root)}</option>`).join('')}</select>` : '<button data-connect>Connect a project <span>↗</span></button>'}<div class="footnote"><span class="dot"></span>${p ? 'Your source stays local' : 'macOS · Windows · Linux'}</div></aside>`;
|
||||
return `<aside class="connection-panel"><span class="eyebrow">YOUR LOCAL CODEGRAPH</span><h3>${p ? 'Connected and in your control.' : 'One connection. Then one click.'}</h3><p>${p ? escape(p.root) : 'Choose your project once. Install an extension, and CodeGraph takes care of the rest.'}</p>${p ? `<select id="project" aria-label="Installation destination">${state.snapshot.projects.map(item => `<option value="${escape(item.id)}" ${item.id === state.project ? 'selected' : ''}>${escape(item.name)} — ${escape(item.root)}</option>`).join('')}</select>` : '<button data-connect>Connect a project <i data-ui="plug"></i></button>'}<div class="footnote"><i data-ui="monitor"></i>${p ? 'Your source stays local' : 'macOS · Windows · Linux'}</div></aside>`;
|
||||
}
|
||||
function progress() {
|
||||
if (!state.snapshot || (!state.snapshot.busy && !state.notice && !state.snapshot.error)) return '';
|
||||
@@ -79,34 +79,36 @@ function progress() {
|
||||
function card(extension) {
|
||||
extension = selected(extension);
|
||||
const current = installed(extension.id);
|
||||
return `<article class="extension-card"><div class="card-top"><div class="extension-icon">${extension.id === 'drupal' ? icon : escape(extension.name.slice(0, 1))}</div><div><h2><a data-link href="/extensions/${escape(extension.id)}">${escape(extension.name)}</a></h2><div class="byline">${escape(extension.publisher)} ${extension.official ? '<span class="official">✓ OFFICIAL</span>' : '<span>Community</span>'}</div></div><span class="version">${releaseKnown(extension.id) ? `v${escape(extension.version)}` : 'Checking…'}</span></div><p class="card-copy">${escape(extension.description)}</p><div class="tags">${extension.id === 'drupal' ? '<span class="tag">PHP</span><span class="tag">Drupal 8–11</span>' : ''}${extension.capabilities.map(c => `<span class="tag">${c === 'frameworks' ? 'Framework' : 'Semantic analysis'}</span>`).join('')}</div>${extension.id === 'drupal' ? '<div class="graph" aria-label="Example framework flow: route to controller to service"><span class="graph-node">/your-route</span><span class="graph-line"></span><span class="graph-node blue">Controller</span><span class="graph-line"></span><span class="graph-node">Service</span></div>' : ''}<p class="small muted compatibility">${escape(compatibility(extension))}</p><div class="card-bottom"><a data-link class="text-link" href="/extensions/${escape(extension.id)}">${current ? (current.enabled === false ? 'Disabled · Manage →' : 'Installed · Manage →') : 'Explore extension ↗'}</a>${button(extension)}</div></article>`;
|
||||
return `<article class="extension-card"><div class="card-top"><div class="extension-icon">${extension.id === 'drupal' ? icon : escape(extension.name.slice(0, 1))}</div><div><h2><a data-link href="/extensions/${escape(extension.id)}">${escape(extension.name)}</a></h2><div class="byline">${escape(extension.publisher)} ${extension.official ? '<span class="official"><i data-ui="badge-check"></i> OFFICIAL</span>' : '<span>Community</span>'}</div></div><span class="version">${releaseKnown(extension.id) ? `v${escape(extension.version)}` : 'Checking…'}</span></div><p class="card-copy">${escape(extension.description)}</p><div class="tags">${extension.id === 'drupal' ? '<span class="tag">PHP</span><span class="tag">Drupal 8–11</span>' : ''}${extension.capabilities.map(c => `<span class="tag">${c === 'frameworks' ? 'Framework' : 'Semantic analysis'}</span>`).join('')}</div>${extension.id === 'drupal' ? '<div class="graph" aria-label="Example framework flow: route to controller to service"><span class="graph-node">/your-route</span><span class="graph-line"><i data-ui="arrow-right"></i></span><span class="graph-node blue">Controller</span><span class="graph-line"><i data-ui="arrow-right"></i></span><span class="graph-node">Service</span></div>' : ''}<p class="small muted compatibility">${escape(compatibility(extension))}</p><div class="card-bottom"><a data-link class="text-link" href="/extensions/${escape(extension.id)}">${current ? (current.enabled === false ? 'Disabled · Manage <i data-ui="arrow-right"></i>' : 'Installed · Manage <i data-ui="arrow-right"></i>') : 'Explore extension <i data-ui="arrow-up-right"></i>'}</a>${button(extension)}</div></article>`;
|
||||
}
|
||||
function renderCatalog() {
|
||||
app.innerHTML = `<section class="hero"><div><span class="eyebrow">THE CODEGRAPH MARKETPLACE</span><h1>Make your graph<br>speak your framework.</h1><p>Add the connections that matter to your codebase.<br>Discover extensions, install in a click, and keep<br>your intelligence local.</p></div>${connectionPanel()}</section><section class="section"><div class="toolbar"><div class="tabs"><button class="tab ${state.tab === 'all' ? 'active' : ''}" data-tab="all">All extensions<span class="count">${state.catalog.length}</span></button><button class="tab ${state.tab === 'official' ? 'active' : ''}" data-tab="official">Official</button><button class="tab ${state.tab === 'installed' ? 'active' : ''}" data-tab="installed">Installed<span class="count">${project()?.extensions.length || 0}</span></button></div><label class="search">⌕<input id="search" aria-label="Search extensions" placeholder="Search frameworks, capabilities…" value="${escape(state.search)}"></label></div>${progress()}<div class="catalog-label"><span>${state.tab === 'installed' ? 'YOUR EXTENSIONS' : 'EXTEND WHAT YOUR GRAPH UNDERSTANDS'}</span><span>FRAMEWORK + SEMANTIC EXTENSIONS</span></div><div id="catalog-items"></div><div class="note-row"><span>◉ Source code stays on your machine</span><span>↻ Updates you control</span><span>◇ Open extension API</span></div></section>`;
|
||||
app.innerHTML = `<section class="hero"><div><span class="eyebrow">THE CODEGRAPH MARKETPLACE</span><h1>Make your graph<br>speak your framework.</h1><p>Add the connections that matter to your codebase.<br> Discover extensions, install in a click, and keep<br> your intelligence local.</p></div>${connectionPanel()}</section><section class="section"><div class="toolbar"><div class="tabs"><button class="tab ${state.tab === 'all' ? 'active' : ''}" data-tab="all">All extensions<span class="count">${state.catalog.length}</span></button><button class="tab ${state.tab === 'official' ? 'active' : ''}" data-tab="official">Official</button><button class="tab ${state.tab === 'installed' ? 'active' : ''}" data-tab="installed">Installed<span class="count">${project()?.extensions.length || 0}</span></button></div><label class="search"><i data-ui="search"></i><input id="search" aria-label="Search extensions" placeholder="Search frameworks, capabilities…" value="${escape(state.search)}"></label></div>${progress()}<div class="catalog-label"><span>${state.tab === 'installed' ? 'YOUR EXTENSIONS' : 'EXTEND WHAT YOUR GRAPH UNDERSTANDS'}</span><span>FRAMEWORK + SEMANTIC EXTENSIONS</span></div><div id="catalog-items"></div><div class="note-row"><span><i data-ui="shield-check"></i>Source code stays on your machine</span><span><i data-ui="refresh-cw"></i>Updates you control</span><span><i data-ui="code-xml"></i>Open extension API</span></div></section>`;
|
||||
renderCards();
|
||||
}
|
||||
function renderCards() {
|
||||
const filtered = state.catalog.filter(e => (state.tab !== 'official' || e.official) && (state.tab !== 'installed' || installed(e.id)) &&
|
||||
`${e.name} ${e.description} ${e.publisher}`.toLowerCase().includes(state.search.toLowerCase()));
|
||||
document.querySelector('#catalog-items').innerHTML = `<div class="catalog">${filtered.length ? filtered.map(card).join('') : `<div class="empty">${state.tab === 'installed' && !state.snapshot ? 'Connect CodeGraph to see your installed extensions.' : state.search ? 'No extensions match your search.' : 'No extensions installed yet.'}</div>`}${state.tab !== 'installed' ? '<aside class="author-card"><span class="eyebrow">FOR BUILDERS</span><div class="author-art" aria-hidden="true">{↗}</div><h2>Your framework.<br>Your contribution.</h2><p>Turn what you know into an extension everyone can use. Start with the public API and publish your first release.</p><a data-link href="/publish">Build an extension <span>↗</span></a></aside>' : ''}</div>`;
|
||||
document.querySelector('#catalog-items').innerHTML = `<div class="catalog">${filtered.length ? filtered.map(card).join('') : `<div class="empty"><i data-ui="search"></i>${state.tab === 'installed' && !state.snapshot ? 'Connect CodeGraph to see your installed extensions.' : state.search ? 'No extensions match your search.' : 'No extensions installed yet.'}</div>`}${state.tab !== 'installed' ? '<aside class="author-card"><span class="eyebrow">FOR BUILDERS</span><div class="author-art" aria-hidden="true"><i data-ui="code-xml"></i></div><h2>Your framework.<br>Your contribution.</h2><p>Turn what you know into an extension everyone can use. Start with the public API and publish your first release.</p><a data-link href="/publish">Build an extension <i data-ui="arrow-up-right"></i></a></aside>' : ''}</div>`;
|
||||
paintIcons(app);
|
||||
}
|
||||
function safeRepositoryLink(value) { try { const u=new URL(value); if(u.protocol==='https:'&&!u.username&&!u.password)return `<a href="${escape(u.href)}" target="_blank" rel="noopener noreferrer">View repository claim ↗</a>`; } catch {} return 'Unavailable'; }
|
||||
function safeRepositoryLink(value) { try { const u=new URL(value); if(u.protocol==='https:'&&!u.username&&!u.password)return `<a href="${escape(u.href)}" target="_blank" rel="noopener noreferrer">View repository claim <i data-ui="external-link"></i></a>`; } catch {} return 'Unavailable'; }
|
||||
function renderDetail(id) {
|
||||
const item = state.catalog.find(item => item.id === id);
|
||||
const e = item && selected(item);
|
||||
if (!e) { app.innerHTML = '<section class="section detail"><h1>Extension not found</h1><a data-link href="/">Back to marketplace</a></section>'; return; }
|
||||
if (!e) { app.innerHTML = '<section class="section detail"><h1><i data-ui="circle-alert"></i>Extension not found</h1><a data-link href="/">Back to marketplace</a></section>'; return; }
|
||||
const current = installed(id);
|
||||
const known = releaseKnown(id);
|
||||
app.innerHTML = `<section class="section detail"><div class="breadcrumb"><a data-link href="/">Marketplace</a> / ${escape(e.name)}</div><div class="detail-layout"><article><div class="card-top"><div class="extension-icon">${id === 'drupal' ? icon : escape(e.name.slice(0,1))}</div><div><h2>${escape(e.name)}</h2><div class="byline">${escape(e.publisher)} ${e.official ? '<span class="official">✓ OFFICIAL</span>' : 'Community publisher'}</div></div></div><p class="card-copy">${escape(e.description)}</p><div class="tags">${e.capabilities.map(c => `<span class="tag">${c === 'frameworks' ? 'Framework support' : 'Semantic analysis'}</span>`).join('')}</div><div class="readme">${escape(e.readme)}</div>${sourcePanel(e)}</article><aside class="metadata"><span class="eyebrow">${current ? (current.enabled === false ? 'INSTALLED · DISABLED' : 'INSTALLED') : 'READY FOR YOUR PROJECT'}</span>${button(e,true)}<p><a class="text-link" href="#package-source">Inspect this package’s source ↓</a></p><p class="small muted compatibility">${escape(compatibility(e))}</p>${progress()}<p class="small muted">${project() ? `Destination: ${escape(project().name)}` : 'Connect CodeGraph once to install.'}</p><p class="small muted">Extensions run with your local permissions. Review the publisher and source before installing.</p><dl>${current ? `<dt>Installed version</dt><dd data-installed-version>${escape(current.version)}</dd>` : ''}<dt>${state.snapshot ? 'Selected version' : 'Latest catalog version'}</dt><dd data-selected-version>${escape(releaseVersion(e))}</dd>${known ? `<dt>CodeGraph compatibility</dt><dd>${escape(e.engines)}</dd><dt>Publisher repository claim</dt><dd>${safeRepositoryLink(e.source)}</dd><dt>Published</dt><dd>${escape(new Date(e.publishedAt).toLocaleDateString(undefined,{year:'numeric',month:'long',day:'numeric'}))}</dd><dt>Publisher identity</dt><dd class="integrity">${escape(e.publisherId)}</dd><dt>Release fingerprint</dt><dd class="integrity">${escape(e.integrity)}</dd>` : ''}</dl>${known ? `<a class="text-link" href="/api/download/${escape(e.id)}/${escape(e.version)}">Download for CLI install ↓</a>` : ''}</aside></div></section>`;
|
||||
app.innerHTML = `<section class="section detail"><div class="breadcrumb"><a data-link href="/">Marketplace</a> / ${escape(e.name)}</div><div class="detail-layout"><article><div class="card-top"><div class="extension-icon">${id === 'drupal' ? icon : escape(e.name.slice(0,1))}</div><div><h2>${escape(e.name)}</h2><div class="byline">${escape(e.publisher)} ${e.official ? '<span class="official"><i data-ui="badge-check"></i> OFFICIAL</span>' : 'Community publisher'}</div></div></div><p class="card-copy">${escape(e.description)}</p><div class="tags">${e.capabilities.map(c => `<span class="tag">${c === 'frameworks' ? 'Framework support' : 'Semantic analysis'}</span>`).join('')}</div><div class="readme">${escape(e.readme)}</div>${sourcePanel(e)}</article><aside class="metadata"><span class="eyebrow">${current ? (current.enabled === false ? 'INSTALLED · DISABLED' : 'INSTALLED') : 'READY FOR YOUR PROJECT'}</span>${button(e,true)}<p><a class="text-link" href="#package-source">Inspect this package’s source <i data-ui="file-code-2"></i></a></p><p class="small muted compatibility">${escape(compatibility(e))}</p>${progress()}<p class="small muted">${project() ? `Destination: ${escape(project().name)}` : 'Connect CodeGraph once to install.'}</p><p class="small muted">Extensions run with your local permissions. Review the publisher and source before installing.</p><dl>${current ? `<dt>Installed version</dt><dd data-installed-version>${escape(current.version)}</dd>` : ''}<dt>${state.snapshot ? 'Selected version' : 'Latest catalog version'}</dt><dd data-selected-version>${escape(releaseVersion(e))}</dd>${known ? `<dt>CodeGraph compatibility</dt><dd>${escape(e.engines)}</dd><dt>Publisher repository claim</dt><dd>${safeRepositoryLink(e.source)}</dd><dt>Published</dt><dd>${escape(new Date(e.publishedAt).toLocaleDateString(undefined,{year:'numeric',month:'long',day:'numeric'}))}</dd><dt>Publisher identity</dt><dd class="integrity">${escape(e.publisherId)}</dd><dt>Release fingerprint</dt><dd class="integrity">${escape(e.integrity)}</dd>` : ''}</dl>${known ? `<a class="text-link" href="/api/download/${escape(e.id)}/${escape(e.version)}">Download for CLI install <i data-ui="download"></i></a>` : ''}</aside></div></section>`;
|
||||
}
|
||||
function renderPublish() {
|
||||
app.innerHTML = `<section class="section publish"><a data-link class="breadcrumb" href="/">← Marketplace</a><h1>Share what you know.</h1><p class="publish-intro">Give CodeGraph the framework knowledge your team needs. Upload a versioned extension and publish it to the community.</p><div class="publish-layout"><form id="publish-form"><div class="upload"><label for="artifact">Your extension package</label><p class="small muted">Upload the .cgext file from CodeGraph’s extension pack command.</p><input type="file" id="artifact" accept=".cgext,application/json" required><p id="package-summary" class="small"></p></div><div class="form-row"><div><label for="name">Extension name</label><input id="name" maxlength="80" placeholder="Your framework" required></div><div><label for="publisher">Publisher name</label><input id="publisher" maxlength="80" placeholder="Your name or team" required></div></div><label for="description">Short description</label><input id="description" maxlength="240" placeholder="What does this extension help people understand?" required><label for="source">Source repository</label><input id="source" type="url" placeholder="https://github.com/your-team/your-extension" required><label for="source-revision">Public source commit</label><input id="source-revision" pattern="[a-f0-9]{40}" placeholder="Full 40-character commit SHA" required><label for="source-path">Committed package path</label><input id="source-path" placeholder="packages/example-1.0.0.cgext" required><p class="small">Future publication requires an operator-reviewed copy of these exact package bytes in this public commit. Placeholder, private and mismatched sources are rejected. General publication remains disabled on the hosted preview.</p><label for="readme">Documentation</label><textarea id="readme" rows="8" maxlength="30000" placeholder="Supported patterns, configuration, examples, and known limitations." required></textarea><div class="form-actions"><button class="primary" type="submit">Publish release <span>↗</span></button><span class="small muted">Published versions are immutable.<br>Community publication does not confer official status.</span></div><p id="publish-result" role="status"></p></form><aside class="aside-notes"><span class="eyebrow">BEFORE YOU PUBLISH</span><h3>Build. Test. Share.</h3><p>Package framework or semantic contributions, and test deterministic indexing before publishing.</p><h3>Your publisher identity</h3><p>Your browser creates a signing key for your releases. Back it up to publish updates from another browser. Your key never leaves this browser during publication.</p><button id="backup-key">Back up publisher key ↓</button><label for="restore-key">Restore an existing publisher key</label><input type="file" id="restore-key" accept=".json"><p class="small">Keep your backup private. Anyone with it can publish your extensions.</p></aside></div></section>`;
|
||||
app.innerHTML = `<section class="section publish"><a data-link class="breadcrumb" href="/"><i data-ui="arrow-left"></i> Marketplace</a><h1>Share what you know.</h1><p class="publish-intro">Give CodeGraph the framework knowledge your team needs. Upload a versioned extension and publish it to the community.</p><div class="publish-layout"><form id="publish-form"><div class="upload"><label for="artifact">Your extension package</label><p class="small muted">Upload the .cgext file from CodeGraph’s extension pack command.</p><input type="file" id="artifact" accept=".cgext,application/json" required><p id="package-summary" class="small"></p></div><div class="form-row"><div><label for="name">Extension name</label><input id="name" maxlength="80" placeholder="Your framework" required></div><div><label for="publisher">Publisher name</label><input id="publisher" maxlength="80" placeholder="Your name or team" required></div></div><label for="description">Short description</label><input id="description" maxlength="240" placeholder="What does this extension help people understand?" required><label for="source">Source repository</label><input id="source" type="url" placeholder="https://github.com/your-team/your-extension" required><label for="source-revision">Public source commit</label><input id="source-revision" pattern="[a-f0-9]{40}" placeholder="Full 40-character commit SHA" required><label for="source-path">Committed package path</label><input id="source-path" placeholder="packages/example-1.0.0.cgext" required><p class="small">Future publication requires an operator-reviewed copy of these exact package bytes in this public commit. Placeholder, private and mismatched sources are rejected. General publication remains disabled on the hosted preview.</p><label for="readme">Documentation</label><textarea id="readme" rows="8" maxlength="30000" placeholder="Supported patterns, configuration, examples, and known limitations." required></textarea><div class="form-actions"><button class="primary" type="submit">Publish release <i data-ui="upload"></i></button><span class="small muted">Published versions are immutable.<br>Community publication does not confer official status.</span></div><p id="publish-result" role="status"></p></form><aside class="aside-notes"><span class="eyebrow">BEFORE YOU PUBLISH</span><h3>Build. Test. Share.</h3><p>Package framework or semantic contributions, and test deterministic indexing before publishing.</p><h3>Your publisher identity</h3><p>Your browser creates a signing key for your releases. Back it up to publish updates from another browser. Your key never leaves this browser during publication.</p><button id="backup-key"><i data-ui="key-round"></i>Back up publisher key</button><label for="restore-key">Restore an existing publisher key</label><input type="file" id="restore-key" accept=".json"><p class="small">Keep your backup private. Anyone with it can publish your extensions.</p></aside></div></section>`;
|
||||
}
|
||||
function render() {
|
||||
if (location.pathname === '/publish') renderPublish();
|
||||
else if (location.pathname.startsWith('/extensions/')) renderDetail(decodeURIComponent(location.pathname.split('/')[2]));
|
||||
else renderCatalog();
|
||||
paintSource();
|
||||
paintIcons(app);
|
||||
}
|
||||
async function refresh() {
|
||||
state.catalog = await api('/api/extensions');
|
||||
@@ -215,7 +217,7 @@ function keyStore(action,key) {
|
||||
}
|
||||
async function signingKey(){let jwk=await keyStore('get');if(!jwk){const pair=await crypto.subtle.generateKey({name:'ECDSA',namedCurve:'P-256'},true,['sign','verify']);jwk=await crypto.subtle.exportKey('jwk',pair.privateKey);await keyStore('put',jwk);}return jwk;}
|
||||
const base64=bytes=>{let text='';for(const b of bytes)text+=String.fromCharCode(b);return btoa(text);};
|
||||
document.addEventListener('click',async event=>{if(event.target.id!=='backup-key')return;const key=await signingKey();const a=document.createElement('a');a.href=URL.createObjectURL(new Blob([JSON.stringify(key)],{type:'application/json'}));a.download='codegraph-publisher-private-key.json';a.click();setTimeout(()=>URL.revokeObjectURL(a.href),1000);});
|
||||
document.addEventListener('click',async event=>{if(!event.target.closest('#backup-key'))return;const key=await signingKey();const a=document.createElement('a');a.href=URL.createObjectURL(new Blob([JSON.stringify(key)],{type:'application/json'}));a.download='codegraph-publisher-private-key.json';a.click();setTimeout(()=>URL.revokeObjectURL(a.href),1000);});
|
||||
document.addEventListener('submit',async event=>{
|
||||
if(event.target.id!=='publish-form')return;event.preventDefault();const form=event.target;const submit=form.querySelector('[type=submit]');submit.disabled=true;
|
||||
const status=document.querySelector('#publish-result');
|
||||
@@ -256,12 +258,12 @@ async function verifiedSource(response, release) {
|
||||
}
|
||||
function sourcePanel(e) {
|
||||
const active=inspection.active?.release.id===e.id?inspection.active:null;
|
||||
return `<section id="package-source" class="source-inspection" aria-label="Package source"><h3>Inspect packaged source</h3><p class="small">Read every bundled file before installing. Source availability is not a security review. Extensions run with your local permissions.</p><button data-view-source="${escape(e.id)}" ${releaseKnown(e.id)&&!inspection.loading?'':'disabled'}>${inspection.loading?'Checking package…':'View selected version source'}</button><p class="small" role="status" id="source-status">${escape(inspection.error)}</p>${active?`<p class="source-verified">Verified package bytes · ${escape(active.release.id)} ${escape(active.release.version)}</p><p class="integrity small">SHA-256 ${escape(active.release.integrity)}</p><p class="small">All ${Object.keys(active.files).length} packaged files are available below, including bundled dependencies. Runtime code may still access your files or network.</p>${sourceProvenance(active.release)}<label for="source-file">File</label><select id="source-file">${Object.keys(active.files).sort().map(p=>`<option value="${escape(p)}" ${inspection.file===p?'selected':''}>${escape(p)}${p===active.main?' (entry point)':''}</option>`).join('')}</select><p class="small" id="source-range"></p><pre id="source-content" tabindex="0" aria-label="Inert package source"></pre><div class="source-actions"><button id="source-prev">Previous section</button><button id="source-next">Next section</button><button id="source-file-download">Download file as text</button><button id="source-package-download">Download verified package</button></div>`:''}</section>`;
|
||||
return `<section id="package-source" class="source-inspection" aria-label="Package source"><h3><i data-ui="files"></i>Inspect packaged source</h3><p class="small">Read every bundled file before installing. Source availability is not a security review. Extensions run with your local permissions.</p><button data-view-source="${escape(e.id)}" ${releaseKnown(e.id)&&!inspection.loading?'':'disabled'}><i data-ui="file-code-2"></i>${inspection.loading?'Checking package…':'View selected version source'}</button><p class="small" role="status" id="source-status">${escape(inspection.error)}</p>${active?`<p class="source-verified"><i data-ui="circle-check"></i>Verified package bytes · ${escape(active.release.id)} ${escape(active.release.version)}</p><p class="integrity small">SHA-256 ${escape(active.release.integrity)}</p><p class="small">All ${Object.keys(active.files).length} packaged files are available below, including bundled dependencies. Runtime code may still access your files or network.</p>${sourceProvenance(active.release)}<label for="source-file"><i data-ui="file-code-2"></i>File</label><select id="source-file">${Object.keys(active.files).sort().map(p=>`<option value="${escape(p)}" ${inspection.file===p?'selected':''}>${escape(p)}${p===active.main?' (entry point)':''}</option>`).join('')}</select><p class="small" id="source-range"></p><pre id="source-content" tabindex="0" aria-label="Inert package source"></pre><div class="source-actions"><button id="source-prev"><i data-ui="chevron-left"></i>Previous section</button><button id="source-next">Next section<i data-ui="chevron-right"></i></button><button id="source-file-download"><i data-ui="download"></i>Download file as text</button><button id="source-package-download"><i data-ui="package"></i>Download verified package</button></div>`:''}</section>`;
|
||||
}
|
||||
function sourceProvenance(e) {
|
||||
const r=e.sourceReview;
|
||||
const valid=r?.verification==='public-committed-package-bytes'&&r.integrity===e.integrity&&/^https:\/\/github\.com\/[\w-]+\/[\w.-]+$/.test(r.repository)&&/^[a-f0-9]{40}$/.test(r.revision)&&typeof r.path==='string'&&r.path.split('/').every(p=>p&&p!=='.'&&p!=='..');
|
||||
if(valid)return `<p class="small">Operator checked the public committed package on ${escape(r.checkedAt)}. <a href="${escape(r.repository+'/blob/'+r.revision+'/'+r.path.split('/').map(encodeURIComponent).join('/'))}" target="_blank" rel="noopener noreferrer">Repository snapshot ↗</a><br>Commit: ${escape(r.revision)}. This proves packaged-byte correspondence at review time, not a reproducible build or malware safety.</p>`;
|
||||
if(valid)return `<p class="small">Operator checked the public committed package on ${escape(r.checkedAt)}. <a href="${escape(r.repository+'/blob/'+r.revision+'/'+r.path.split('/').map(encodeURIComponent).join('/'))}" target="_blank" rel="noopener noreferrer">Repository snapshot <i data-ui="external-link"></i></a><br>Commit: ${escape(r.revision)}. This proves packaged-byte correspondence at review time, not a reproducible build or malware safety.</p>`;
|
||||
const p=e.provenance;
|
||||
return `<p class="small source-unverified">Repository correspondence unverified under the current source policy.${p?.revision?` Historical publisher provenance: commit ${escape(p.revision)}, path ${escape(p.path)}.`:''} The package fingerprint above verifies the downloaded release only.</p>`;
|
||||
}
|
||||
@@ -293,12 +295,13 @@ function downloadInspected(file) {
|
||||
}
|
||||
document.addEventListener('click',event=>{
|
||||
const view=event.target.closest('[data-view-source]');if(view){void inspectSource(view.dataset.viewSource);return;}
|
||||
if(event.target.id==='source-prev'){inspection.offset=Math.max(0,inspection.offset-sourcePageSize);paintSource();}
|
||||
if(event.target.id==='source-next'){inspection.offset+=sourcePageSize;paintSource();}
|
||||
if(event.target.id==='source-file-download')downloadInspected(true);
|
||||
if(event.target.id==='source-package-download')downloadInspected(false);
|
||||
const control=event.target.closest('button')?.id;
|
||||
if(control==='source-prev'){inspection.offset=Math.max(0,inspection.offset-sourcePageSize);paintSource();}
|
||||
if(control==='source-next'){inspection.offset+=sourcePageSize;paintSource();}
|
||||
if(control==='source-file-download')downloadInspected(true);
|
||||
if(control==='source-package-download')downloadInspected(false);
|
||||
});
|
||||
document.addEventListener('change',event=>{if(event.target.id==='source-file'){inspection.file=event.target.value;inspection.offset=0;paintSource();}});
|
||||
|
||||
app.innerHTML='<div class="loading">Loading extensions…</div>';
|
||||
refresh().catch(e=>{if(document.querySelector('#publish-form')){toast(e.message);return;}app.innerHTML=`<section class="section detail"><h1>Marketplace unavailable</h1><p>${escape(e.message)}</p><button id="retry">Try again</button></section>`;document.querySelector('#retry').onclick=()=>location.reload();});
|
||||
app.innerHTML='<div class="loading"><i data-ui="loader-circle"></i>Loading extensions…</div>';paintIcons(app);
|
||||
refresh().catch(e=>{if(document.querySelector('#publish-form')){toast(e.message);return;}app.innerHTML=`<section class="section detail"><h1><i data-ui="circle-alert"></i>Marketplace unavailable</h1><p>${escape(e.message)}</p><button id="retry"><i data-ui="refresh-cw"></i>Try again</button></section>`;paintIcons(app);document.querySelector('#retry').onclick=()=>location.reload();});
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"packages": {
|
||||
"lucide-static": "0.468.0",
|
||||
"@fontsource-variable/archivo": "5.2.8",
|
||||
"@fontsource/ibm-plex-mono": "5.2.7"
|
||||
},
|
||||
"icons": [
|
||||
"arrow-up-right",
|
||||
"arrow-right",
|
||||
"arrow-left",
|
||||
"search",
|
||||
"download",
|
||||
"upload",
|
||||
"badge-check",
|
||||
"plug",
|
||||
"refresh-cw",
|
||||
"shield-check",
|
||||
"code-xml",
|
||||
"file-code-2",
|
||||
"files",
|
||||
"copy",
|
||||
"x",
|
||||
"chevron-left",
|
||||
"chevron-right",
|
||||
"circle-alert",
|
||||
"loader-circle",
|
||||
"trash-2",
|
||||
"power",
|
||||
"key-round",
|
||||
"external-link",
|
||||
"package",
|
||||
"monitor",
|
||||
"circle-check"
|
||||
],
|
||||
"inputs": {
|
||||
"lucide-static/package.json": "6b4e2b5cf36a1cf9fa0832c6ede322c5bafd93d5667eeac8fa2e3aeea57dceca",
|
||||
"@fontsource-variable/archivo/package.json": "8cfd334ce0a9dc9ba0baaf89b1b678aef986533a48ea7b5c7a6ba21d4540d609",
|
||||
"@fontsource/ibm-plex-mono/package.json": "6226dd2fe4c2c8216a398e7c708efec8f7b1d266512584de234fcfcf559035a5",
|
||||
"lucide-static/icons/arrow-up-right.svg": "7a58fb69deddd385b9bd47b406d3e9f3ccfbe11b319efcd5071cbd5b19c1bd4f",
|
||||
"lucide-static/icons/arrow-right.svg": "12b97a4d2821da556ce7df95f89df46deb94aa711d46b36a848be0de0ac2a7f0",
|
||||
"lucide-static/icons/arrow-left.svg": "e31ed0af85ffbed2b54f78f37af197c3b84b24e776cba1d27613d6a9ad555a16",
|
||||
"lucide-static/icons/search.svg": "e11a04d51c122a8a759211424920efc65fa36b7ab06237c34ef90317d920ddf9",
|
||||
"lucide-static/icons/download.svg": "f68a21e11115edc0aef51ac6f8f4618e14d2b92055f1cb9f5d670efc696bea85",
|
||||
"lucide-static/icons/upload.svg": "ebdb92b0456cbae0a2897676607490897734deda0248aa3369d864e94ad28f28",
|
||||
"lucide-static/icons/badge-check.svg": "5e378751554e5b2a0ffdf395590c8e87fc0d472210693a92ee586aea68ce308c",
|
||||
"lucide-static/icons/plug.svg": "2cb346fd91bbdda3fc21d73625c242c2e96a5f26783fa0c9737cdd57543cc0c5",
|
||||
"lucide-static/icons/refresh-cw.svg": "d63b359b0fe05e03cff8aaa7acf82f9569733e83f7fb4742d583a086972c4bb0",
|
||||
"lucide-static/icons/shield-check.svg": "0e9116845c6053cd3bfa09a3e4c232f5fb28c3abab75792287d2aed31c24ebe7",
|
||||
"lucide-static/icons/code-xml.svg": "7c6551292a71cfff12c70727124f3c76832c903263af142b9e61da826fa4b2a5",
|
||||
"lucide-static/icons/file-code-2.svg": "d4f244a6ba7f5e646cd801ac2ff54fd1a40c4f5190b857b822d44d165326a0bf",
|
||||
"lucide-static/icons/files.svg": "59df6669b61261311a83a807116a61a001dd4b4f29bb8867a5e84f42bc97b150",
|
||||
"lucide-static/icons/copy.svg": "6828c476979a7e4d5ae3ac726f8fadbcab066ec53299b7f8422cda321a60a841",
|
||||
"lucide-static/icons/x.svg": "0f38855d9d5775c10960ae53e46b745f77914b43f78c43bf8abc39f4d5e06de1",
|
||||
"lucide-static/icons/chevron-left.svg": "a185985349089649d06747570c72f47fe1f5eb293a9a0f11278f6442b0b9d25c",
|
||||
"lucide-static/icons/chevron-right.svg": "fea488a3b60fd7738bbbf8ca98826ef5c0381347c5fd1048d45ee70a75a51cfe",
|
||||
"lucide-static/icons/circle-alert.svg": "2c65a5c03a73d3115ce493779f82af98d94f0d72facf1d97c61ea08566bb401c",
|
||||
"lucide-static/icons/loader-circle.svg": "44ad0f822a89b28a3feecf7276686c818a92a4a9c77cc51404c58929e30f0f3a",
|
||||
"lucide-static/icons/trash-2.svg": "9268a35cfb4f9d852c3d13f2c91476dd067c21c20e2bcdb0093fd93fd0bf34b7",
|
||||
"lucide-static/icons/power.svg": "0fe9fe8cc5ffa3bc81da60b80af8c4ceff557aa8b87e913b1a86aa8f4bc01382",
|
||||
"lucide-static/icons/key-round.svg": "a0d77f9b3f399ba0f44a49945b69abe0aad0e37e524fa81f7e3f271bddcc4936",
|
||||
"lucide-static/icons/external-link.svg": "15432d67349662d1427ca5b8cc52d4152a9a893a251a842a817de1974a6b5766",
|
||||
"lucide-static/icons/package.svg": "d2bb2edb3e9acc1d00535af3596837558b761b24d8933070d5565b71eeaac74f",
|
||||
"lucide-static/icons/monitor.svg": "3ef31ab3ab45c174485e0c1dfc3bd3b54ae51cb74df8230a0e136d78ca580efd",
|
||||
"lucide-static/icons/circle-check.svg": "d48c0901de2262e9f7c0566b5ad3893eafeab509715be6ac4e3b449f15d9260b",
|
||||
"lucide-static/LICENSE": "1e7290b35280a048667bbf0ebabac1c7fd52a75300e8b2946ac165715997f2bc",
|
||||
"@fontsource-variable/archivo/LICENSE": "c3c8402eec0e31dc9a76851235b1c02a0bb821488b2db8e35bcc2ab60ca8fc2b",
|
||||
"@fontsource/ibm-plex-mono/LICENSE": "23b0a9d0c6d3f140a0b77e483c5cfa6bba574325ef5cb189ed9f2fec4884533f",
|
||||
"@fontsource-variable/archivo/files/archivo-latin-wght-normal.woff2": "8f704806dbedeaaeca334b11ec348bc3ac3a439d6431544b3afb54f534ee4967",
|
||||
"@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff2": "08949f728dc52d528e69b1667d15c89a5686a4ee9a296ff90983985f99c380f7",
|
||||
"@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-500-normal.woff2": "01d285447409c8a588692162439a038b8cbd7871309ee20267b0d2d91c6e8e22",
|
||||
"@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-600-normal.woff2": "0d1f0b8d0722224e32e9f28261bdc86c79115be73444ae5eceb73976a1bcdf83"
|
||||
},
|
||||
"outputs": {
|
||||
"icons.js": {
|
||||
"sha256": "00cbaf094ebd45cac3fa118db73e90124e0bfa13e2a76f6c5fb44be6ae1be962",
|
||||
"bytes": 4385
|
||||
},
|
||||
"licenses/lucide.txt": {
|
||||
"sha256": "1e7290b35280a048667bbf0ebabac1c7fd52a75300e8b2946ac165715997f2bc",
|
||||
"bytes": 880
|
||||
},
|
||||
"licenses/archivo.txt": {
|
||||
"sha256": "c3c8402eec0e31dc9a76851235b1c02a0bb821488b2db8e35bcc2ab60ca8fc2b",
|
||||
"bytes": 4503
|
||||
},
|
||||
"licenses/ibm-plex-mono.txt": {
|
||||
"sha256": "23b0a9d0c6d3f140a0b77e483c5cfa6bba574325ef5cb189ed9f2fec4884533f",
|
||||
"bytes": 5299
|
||||
},
|
||||
"fonts/archivo-latin-wght-normal.woff2": {
|
||||
"sha256": "8f704806dbedeaaeca334b11ec348bc3ac3a439d6431544b3afb54f534ee4967",
|
||||
"bytes": 34928
|
||||
},
|
||||
"fonts/ibm-plex-mono-latin-400-normal.woff2": {
|
||||
"sha256": "08949f728dc52d528e69b1667d15c89a5686a4ee9a296ff90983985f99c380f7",
|
||||
"bytes": 14708
|
||||
},
|
||||
"fonts/ibm-plex-mono-latin-500-normal.woff2": {
|
||||
"sha256": "01d285447409c8a588692162439a038b8cbd7871309ee20267b0d2d91c6e8e22",
|
||||
"bytes": 14888
|
||||
},
|
||||
"fonts/ibm-plex-mono-latin-600-normal.woff2": {
|
||||
"sha256": "0d1f0b8d0722224e32e9f28261bdc86c79115be73444ae5eceb73976a1bcdf83",
|
||||
"bytes": 15620
|
||||
},
|
||||
"fonts.css": {
|
||||
"sha256": "406d1608eab9daccfeae30aa8c463860be88062453f77084fcf60212cfdc6c1a",
|
||||
"bytes": 743
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none" stroke="#16150f" stroke-width="2" aria-hidden="true"><line x1="16" y1="8" x2="8" y2="23"></line><line x1="16" y1="8" x2="24" y2="23"></line><line x1="8" y1="23" x2="24" y2="23"></line><circle cx="16" cy="8" r="3.4" fill="#7a201a" stroke="#7a201a"></circle><circle cx="8" cy="23" r="3.4" fill="#f7f6f2"></circle><circle cx="24" cy="23" r="3.4" fill="#f7f6f2"></circle></svg>
|
||||
|
After Width: | Height: | Size: 446 B |
@@ -0,0 +1,3 @@
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill="#0678be" d="M15.792 5.064C14.088 3.408 12.504 1.824 12.024 0C11.544 1.824 9.96 3.408 8.256 5.064C5.76 7.56 2.904 10.416 2.904 14.712C2.76 19.728 6.792 23.904 11.808 24C16.824 24.096 21.024 20.112 21.096 15.096C21.096 14.976 21.096 14.832 21.096 14.712C21.144 10.416 18.288 7.56 15.792 5.064ZM7.56 15.528C7.296 15.864 7.032 16.272 6.864 16.656C6.816 16.704 6.768 16.776 6.696 16.776H6.648C6.432 16.776 6.216 16.392 6.216 16.392C6.168 16.296 6.096 16.176 6.048 16.08L6 15.984C5.448 14.784 5.904 13.08 5.904 13.08C6.12 12.264 6.504 11.448 6.984 10.752C7.296 10.32 7.632 9.888 7.968 9.456L8.4 9.888L10.44 11.952C10.536 12.048 10.536 12.168 10.44 12.264L8.328 14.64L7.56 15.528ZM12.12 21.48C10.392 21.48 8.952 20.064 9 18.312C9 17.544 9.312 16.8 9.768 16.248C10.416 15.48 11.232 14.688 12.144 13.656C13.176 14.784 13.872 15.504 14.52 16.392C14.568 16.44 14.616 16.512 14.64 16.608C14.976 17.136 15.192 17.736 15.192 18.384C15.264 20.112 13.848 21.48 12.12 21.48ZM18.024 16.464C17.976 16.584 17.856 16.68 17.712 16.728H17.664C17.544 16.68 17.448 16.608 17.352 16.512C16.8 15.696 16.176 14.904 15.504 14.232L14.688 13.368L11.928 10.512C11.376 9.984 10.8 9.384 10.296 8.832C10.296 8.784 10.248 8.784 10.248 8.784C10.152 8.664 10.08 8.52 10.032 8.352C10.032 8.304 10.032 8.304 10.032 8.256C9.936 7.776 10.128 7.296 10.464 6.96C10.992 6.432 11.544 5.88 12.072 5.328C12.624 5.928 13.248 6.528 13.848 7.152C15.048 8.28 16.128 9.528 17.136 10.872C17.952 12.048 18.384 13.368 18.384 14.808C18.288 15.312 18.216 15.912 18.024 16.464Z" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,5 @@
|
||||
/* Local Latin subsets; other glyphs use system fallbacks. OFL notices in /licenses/. */
|
||||
@font-face{font-family:'Archivo Variable';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/archivo-latin-wght-normal.woff2') format('woff2')}
|
||||
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2')}
|
||||
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2')}
|
||||
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2')}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
// Generated Lucide 0.468.0 subset. See /licenses/lucide.txt and /licenses/feather.txt.
|
||||
'use strict';
|
||||
const lucidePaths=Object.freeze({"arrow-up-right":"<path d=\"M7 7h10v10\" />\n <path d=\"M7 17 17 7\" />","arrow-right":"<path d=\"M5 12h14\" />\n <path d=\"m12 5 7 7-7 7\" />","arrow-left":"<path d=\"m12 19-7-7 7-7\" />\n <path d=\"M19 12H5\" />","search":"<circle cx=\"11\" cy=\"11\" r=\"8\" />\n <path d=\"m21 21-4.3-4.3\" />","download":"<path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" />\n <polyline points=\"7 10 12 15 17 10\" />\n <line x1=\"12\" x2=\"12\" y1=\"15\" y2=\"3\" />","upload":"<path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" />\n <polyline points=\"17 8 12 3 7 8\" />\n <line x1=\"12\" x2=\"12\" y1=\"3\" y2=\"15\" />","badge-check":"<path d=\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\" />\n <path d=\"m9 12 2 2 4-4\" />","plug":"<path d=\"M12 22v-5\" />\n <path d=\"M9 8V2\" />\n <path d=\"M15 8V2\" />\n <path d=\"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z\" />","refresh-cw":"<path d=\"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\" />\n <path d=\"M21 3v5h-5\" />\n <path d=\"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\" />\n <path d=\"M8 16H3v5\" />","shield-check":"<path d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\" />\n <path d=\"m9 12 2 2 4-4\" />","code-xml":"<path d=\"m18 16 4-4-4-4\" />\n <path d=\"m6 8-4 4 4 4\" />\n <path d=\"m14.5 4-5 16\" />","file-code-2":"<path d=\"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4\" />\n <path d=\"M14 2v4a2 2 0 0 0 2 2h4\" />\n <path d=\"m5 12-3 3 3 3\" />\n <path d=\"m9 18 3-3-3-3\" />","files":"<path d=\"M20 7h-3a2 2 0 0 1-2-2V2\" />\n <path d=\"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z\" />\n <path d=\"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8\" />","copy":"<rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />","x":"<path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />","chevron-left":"<path d=\"m15 18-6-6 6-6\" />","chevron-right":"<path d=\"m9 18 6-6-6-6\" />","circle-alert":"<circle cx=\"12\" cy=\"12\" r=\"10\" />\n <line x1=\"12\" x2=\"12\" y1=\"8\" y2=\"12\" />\n <line x1=\"12\" x2=\"12.01\" y1=\"16\" y2=\"16\" />","loader-circle":"<path d=\"M21 12a9 9 0 1 1-6.219-8.56\" />","trash-2":"<path d=\"M3 6h18\" />\n <path d=\"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\" />\n <path d=\"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\" />\n <line x1=\"10\" x2=\"10\" y1=\"11\" y2=\"17\" />\n <line x1=\"14\" x2=\"14\" y1=\"11\" y2=\"17\" />","power":"<path d=\"M12 2v10\" />\n <path d=\"M18.4 6.6a9 9 0 1 1-12.77.04\" />","key-round":"<path d=\"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z\" />\n <circle cx=\"16.5\" cy=\"7.5\" r=\".5\" fill=\"currentColor\" />","external-link":"<path d=\"M15 3h6v6\" />\n <path d=\"M10 14 21 3\" />\n <path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" />","package":"<path d=\"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z\" />\n <path d=\"M12 22V12\" />\n <path d=\"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7\" />\n <path d=\"m7.5 4.27 9 5.15\" />","monitor":"<rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\" />\n <line x1=\"8\" x2=\"16\" y1=\"21\" y2=\"21\" />\n <line x1=\"12\" x2=\"12\" y1=\"17\" y2=\"21\" />","circle-check":"<circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"m9 12 2 2 4-4\" />"});
|
||||
function uiIcon(name){if(!Object.hasOwn(lucidePaths,name))throw Error('Unknown bundled icon');return '<svg class="ui-icon" data-lucide="'+name+'" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">'+lucidePaths[name]+'</svg>';}
|
||||
function paintIcons(root=document){root.querySelectorAll('i[data-ui]').forEach(el=>{el.outerHTML=uiIcon(el.dataset.ui);});}
|
||||
paintIcons();
|
||||
@@ -1,10 +1,11 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="theme-color" content="#f7f6f2"><title>CodeGraph — Extension marketplace</title><meta name="description" content="Framework knowledge for your CodeGraph. Discover, publish and install extensions."><link rel="stylesheet" href="/style.css"><script defer src="/app.js"></script></head>
|
||||
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="theme-color" content="#f7f6f2"><title>CodeGraph — Extension marketplace</title><meta name="description" content="Framework knowledge for your CodeGraph. Discover, publish and install extensions."><link rel="icon" href="/brand/codegraph.svg" type="image/svg+xml"><link rel="preload" href="/fonts/archivo-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin><link rel="stylesheet" href="/fonts.css"><link rel="stylesheet" href="/style.css"><script defer src="/icons.js"></script><script defer src="/app.js"></script></head>
|
||||
<body>
|
||||
<header class="nav"><a href="/" class="wordmark" data-link><span class="mark" aria-hidden="true">▦</span>codegraph<span class="nav-label">/ extensions</span></a><nav><a href="/" data-link>Discover</a><a href="/publish" data-link>Publish an extension</a><a href="https://github.com/colbymchenry/codegraph" target="_blank" rel="noopener">GitHub ↗</a><button class="connect-button" id="connect"><span class="dot"></span><span id="connection-label">Connect CodeGraph</span></button></nav></header>
|
||||
<main id="app"></main>
|
||||
<footer><a class="wordmark" href="/" data-link>codegraph</a><span>Framework knowledge. Local intelligence.</span><a href="https://github.com/colbymchenry/codegraph/tree/main/docs" target="_blank" rel="noopener">Project documentation ↗</a><span class="preview-tag">Preview</span></footer>
|
||||
<a class="skip-link" href="#app">Skip to content</a>
|
||||
<header class="nav"><a href="/" class="wordmark" data-link><img class="brand-mark" src="/brand/codegraph.svg" alt="" width="28" height="28">codegraph<span class="nav-label">/ extensions</span></a><nav><a href="/" data-link>Discover</a><a href="/publish" data-link>Publish an extension</a><a href="https://github.com/colbymchenry/codegraph" target="_blank" rel="noopener">GitHub <i data-ui="arrow-up-right"></i></a><button class="connect-button" id="connect"><i data-ui="plug"></i><span id="connection-label">Connect CodeGraph</span></button></nav></header>
|
||||
<main id="app" tabindex="-1"></main>
|
||||
<footer><a class="wordmark" href="/" data-link><img class="brand-mark" src="/brand/codegraph.svg" alt="" width="24" height="24">codegraph</a><span>Framework knowledge. Local intelligence.</span><a href="https://colbymchenry.github.io/codegraph/" target="_blank" rel="noopener">Project documentation <i data-ui="arrow-up-right"></i></a><span class="preview-tag">Preview</span></footer>
|
||||
<div id="toast" role="status" aria-live="polite" hidden></div>
|
||||
<dialog id="connect-dialog"><button class="close" aria-label="Close connection dialog">×</button><span class="eyebrow">ONE-TIME CONNECTION</span><h2>Bring your project<br>into the picture.</h2><p>Start the CodeGraph companion in your project, then open the connection link it prints.</p><div class="command"><code id="connect-command"></code><button id="copy-command">Copy</button></div><p class="muted small">Requires the extension preview build. Keep the companion running while you use the marketplace. Your source code stays on your computer.</p><label for="connection-link">Already started? Paste your connection link</label><input id="connection-link" type="url" placeholder="https://…/#bridge=…"><button class="primary" id="open-companion">Open connection</button><p id="connect-error" role="alert"></p></dialog>
|
||||
<dialog id="connect-dialog"><button class="close" aria-label="Close connection dialog"><i data-ui="x"></i></button><span class="eyebrow">ONE-TIME CONNECTION</span><h2>Bring your project<br>into the picture.</h2><p>Start the CodeGraph companion in your project, then open the connection link it prints.</p><div class="command"><code id="connect-command"></code><button id="copy-command"><i data-ui="copy"></i>Copy</button></div><p class="muted small">Requires the extension preview build. Keep the companion running while you use the marketplace. Your source code stays on your computer.</p><label for="connection-link">Already started? Paste your connection link</label><input id="connection-link" type="url" placeholder="https://…/#bridge=…"><button class="primary" id="open-companion"><i data-ui="plug"></i>Open connection</button><p id="connect-error" role="alert"></p></dialog>
|
||||
</body></html>
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo) Archivo-Italic[wdth,wght].ttf: Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,339 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
@@ -0,0 +1,9 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013-present Cole Bemis
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ThinItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLight.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Light.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-LightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Regular.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Italic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Medium.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-MediumItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Bold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-BoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,15 @@
|
||||
ISC License
|
||||
|
||||
Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,22 @@
|
||||
# Marketplace assets
|
||||
|
||||
The marketplace uses the light CodeGraph theme from `site/src/styles/theme.css`: Archivo Variable, IBM Plex Mono, paper/ink colors, thin rules and square corners. This keeps the existing light-only behavior; no theme switch or marketing/docs-site changes are introduced.
|
||||
|
||||
Run from the repository root:
|
||||
|
||||
```sh
|
||||
npm ci --prefix marketplace/ui-assets --ignore-scripts
|
||||
npm run build --prefix marketplace/ui-assets
|
||||
npm run check --prefix marketplace/ui-assets
|
||||
```
|
||||
|
||||
The lockfile pins `lucide-static` 0.468.0, `@fontsource-variable/archivo` 5.2.8 and `@fontsource/ibm-plex-mono` 5.2.7. The build copies only 26 used icons and four WOFF2 Latin font subsets, with no runtime CDN or package dependency. `public/asset-manifest.json` records exact package inputs and generated outputs. Other writing systems use system font fallbacks. All SVG interface icons are decorative, `aria-hidden`, unfocusable and `currentColor`; their containing controls retain text or accessible labels. Source files are rendered with `textContent`, never as icon markup.
|
||||
|
||||
Licenses shipped under `public/licenses/`: Lucide ISC and its Feather-derived MIT notice; Archivo and IBM Plex Mono SIL OFL. Brand marks are separate from the Lucide library:
|
||||
|
||||
- `brand/codegraph.svg` uses the actual mark served by https://getcodegraph.com/ on 2026-09-23, with the shared light-theme colors and no Svelte-specific class. CodeGraph branding remains subject to the project's rights.
|
||||
- `brand/drupal.svg` uses the path from Drupal core `core/themes/default_admin/migration/media/icons/general/drupal.svg`, revision `eaba66f418831210acc6bc5b49c61d171853455b`, with Drupal blue fill. Drupal's GPL-2.0 license is included as `licenses/drupal.txt`; the Drupal name and logo are trademarks of Dries Buytaert. These marks identify the products, not a new icon design.
|
||||
|
||||
Cloudflare serves these assets before the Worker; `/api/*` continues through the Worker. The local Miniflare harness now uses the same native asset routing, and the portable Node server permits only the fixed UI asset paths with correct MIME types. Neither change modifies registry publication, graph execution or immutable packages.
|
||||
|
||||
`marketplace-theme-browser.cjs` checks local or real hosted read-only UI, loaded fonts/tokens, CSP, SVG event targets, keyboard navigation, 320/390px layouts and verified legacy Drupal source. The separate source-browser acceptance retains real managed installation, selection races and inert display checks. A live test does not submit releases or connect to local projects.
|
||||
@@ -0,0 +1,23 @@
|
||||
// Reproduce the shipped subset with npm ci --ignore-scripts, then npm run build.
|
||||
// No runtime package/CDN is used. --check compares every generated byte.
|
||||
const fs=require('node:fs'),path=require('node:path'),crypto=require('node:crypto'),assert=require('node:assert/strict');
|
||||
const root=__dirname,out=path.resolve(root,'../public'),check=process.argv.includes('--check');
|
||||
const icons=['arrow-up-right','arrow-right','arrow-left','search','download','upload','badge-check','plug','refresh-cw','shield-check','code-xml','file-code-2','files','copy','x','chevron-left','chevron-right','circle-alert','loader-circle','trash-2','power','key-round','external-link','package','monitor','circle-check'];
|
||||
const artifacts=new Map(),inputs={};
|
||||
const hash=b=>crypto.createHash('sha256').update(b).digest('hex');
|
||||
function input(rel){const b=fs.readFileSync(path.join(root,'node_modules',rel));inputs[rel]=hash(b);return b;}
|
||||
const packages={};for(const name of ['lucide-static','@fontsource-variable/archivo','@fontsource/ibm-plex-mono'])packages[name]=JSON.parse(input(name+'/package.json')).version;
|
||||
assert.equal(packages['lucide-static'],'0.468.0');assert.equal(packages['@fontsource-variable/archivo'],'5.2.8');assert.equal(packages['@fontsource/ibm-plex-mono'],'5.2.7');
|
||||
const svg={};for(const name of icons){const s=input('lucide-static/icons/'+name+'.svg').toString();svg[name]=s.slice(s.indexOf('>\n',s.indexOf('<svg'))+2,s.lastIndexOf('</svg>')).trim();assert.ok(svg[name].startsWith('<'));}
|
||||
artifacts.set('icons.js',Buffer.from(`// Generated Lucide ${packages['lucide-static']} subset. See /licenses/lucide.txt and /licenses/feather.txt.\n'use strict';\nconst lucidePaths=Object.freeze(${JSON.stringify(svg)});\nfunction uiIcon(name){if(!Object.hasOwn(lucidePaths,name))throw Error('Unknown bundled icon');return '<svg class="ui-icon" data-lucide="'+name+'" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">'+lucidePaths[name]+'</svg>';}\nfunction paintIcons(root=document){root.querySelectorAll('i[data-ui]').forEach(el=>{el.outerHTML=uiIcon(el.dataset.ui);});}\npaintIcons();\n`));
|
||||
artifacts.set('licenses/lucide.txt',input('lucide-static/LICENSE'));
|
||||
artifacts.set('licenses/archivo.txt',input('@fontsource-variable/archivo/LICENSE'));
|
||||
artifacts.set('licenses/ibm-plex-mono.txt',input('@fontsource/ibm-plex-mono/LICENSE'));
|
||||
const fonts=[['@fontsource-variable/archivo','archivo-latin-wght-normal.woff2'],['@fontsource/ibm-plex-mono','ibm-plex-mono-latin-400-normal.woff2'],['@fontsource/ibm-plex-mono','ibm-plex-mono-latin-500-normal.woff2'],['@fontsource/ibm-plex-mono','ibm-plex-mono-latin-600-normal.woff2']];
|
||||
for(const [pkg,file] of fonts)artifacts.set('fonts/'+file,input(pkg+'/files/'+file));
|
||||
const css=`/* Local Latin subsets; other glyphs use system fallbacks. OFL notices in /licenses/. */\n@font-face{font-family:'Archivo Variable';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/archivo-latin-wght-normal.woff2') format('woff2')}\n`+[400,500,600].map(w=>`@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:${w};font-display:swap;src:url('/fonts/ibm-plex-mono-latin-${w}-normal.woff2') format('woff2')}`).join('\n')+'\n';
|
||||
artifacts.set('fonts.css',Buffer.from(css));
|
||||
const manifest={packages,icons,inputs,outputs:Object.fromEntries([...artifacts].map(([name,b])=>[name,{sha256:hash(b),bytes:b.length}]))};
|
||||
artifacts.set('asset-manifest.json',Buffer.from(JSON.stringify(manifest,null,2)+'\n'));
|
||||
for(const [name,b] of artifacts){const p=path.join(out,name);if(check)assert.deepEqual(fs.readFileSync(p),b,name);else{fs.mkdirSync(path.dirname(p),{recursive:true});fs.writeFileSync(p,b);}}
|
||||
console.log(JSON.stringify({check,packages,icons:icons.length,files:artifacts.size,bytes:[...artifacts.values()].reduce((n,b)=>n+b.length,0)}));
|
||||
Generated
+44
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "codegraph-marketplace-ui-assets",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "codegraph-marketplace-ui-assets",
|
||||
"version": "0.1.0",
|
||||
"devDependencies": {
|
||||
"@fontsource-variable/archivo": "5.2.8",
|
||||
"@fontsource/ibm-plex-mono": "5.2.7",
|
||||
"lucide-static": "0.468.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource-variable/archivo": {
|
||||
"version": "5.2.8",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource-variable/archivo/-/archivo-5.2.8.tgz",
|
||||
"integrity": "sha512-R8EotpKHEsKv7d7oiUyjyPENRi2gtAlwdTlzDCOs5BfX/LJP7jvUYJ4fF/qyd3rnbgk3r1xp33g1P57bYJfhzQ==",
|
||||
"dev": true,
|
||||
"license": "OFL-1.1",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource/ibm-plex-mono": {
|
||||
"version": "5.2.7",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/ibm-plex-mono/-/ibm-plex-mono-5.2.7.tgz",
|
||||
"integrity": "sha512-MKAb8qV+CaiMQn2B0dIi1OV3565NYzp3WN5b4oT6LTkk+F0jR6j0ZN+5BKJiIhffDC3rtBULsYZE65+0018z9w==",
|
||||
"dev": true,
|
||||
"license": "OFL-1.1",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
}
|
||||
},
|
||||
"node_modules/lucide-static": {
|
||||
"version": "0.468.0",
|
||||
"resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-0.468.0.tgz",
|
||||
"integrity": "sha512-JvpWui2umxRyEVMoETfMzb+qKqibV/sdoqJbKmW1JLdkuhXluJKoO6NqCbvCK/vAbUuH5bTEFD4T6uECsrNcnA==",
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "codegraph-marketplace-ui-assets",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {"build": "node build.cjs", "check": "node build.cjs --check"},
|
||||
"devDependencies": {
|
||||
"@fontsource-variable/archivo": "5.2.8",
|
||||
"@fontsource/ibm-plex-mono": "5.2.7",
|
||||
"lucide-static": "0.468.0"
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ let server,bridge,browser,page;
|
||||
bridge=await startExtensionBridge([root],origin);browser=await chromium.launch({executablePath:process.env.CHROME_PATH||'/opt/google/chrome/chrome',headless:true,args:['--no-sandbox']});page=await browser.newPage({viewport:{width:1440,height:1000},acceptDownloads:true});page.setDefaultTimeout(30000);const errors=[];page.on('pageerror',e=>errors.push(e.message));
|
||||
await page.goto(origin+'/extensions/source-example');await page.locator('[data-view-source]').click();await page.locator('#source-content').waitFor();assert.match(await page.locator('.source-verified').innerText(),/9.0.0/);assert.equal(await page.evaluate(()=>state.snapshot),null);assert.deepEqual(routes(),[]);assert.equal(await page.locator('#source-file option').count(),5);pass('unconnected browser lists every runtime dependency and manifest before any install');
|
||||
await page.locator('#source-file').selectOption('readme.md');assert.equal(await page.locator('#source-content').innerText(),JSON.parse(artifacts[1]).files['readme.md']);assert.equal(await page.locator('#source-content script, #source-content img').count(),0);assert.equal(await page.evaluate(()=>window.__packageExecuted),undefined);pass('HTML and executable extension source render inertly as literal text');
|
||||
await page.locator('#source-file').selectOption('large.txt');assert.equal((await page.locator('#source-content').innerText()).length,64000);await page.locator('#source-next').click();assert.match(await page.locator('#source-range').innerText(),/64001/);pass('large source content is paged without truncating downloadable files');
|
||||
await page.locator('#source-file').selectOption('large.txt');assert.equal((await page.locator('#source-content').innerText()).length,64000);await page.locator('#source-next svg > *').first().dispatchEvent('click');assert.match(await page.locator('#source-range').innerText(),/64001/);await page.locator('#source-prev svg > *').first().dispatchEvent('click');assert.match(await page.locator('#source-range').innerText(),/Characters 1–64000/);pass('large source content is paged by nested SVG clicks without truncating downloadable files');
|
||||
const dl=page.waitForEvent('download');await page.locator('#source-package-download').click();const downloaded=await dl;await downloaded.saveAs(path.join(out,'verified-download.cgext'));assert.equal(hash(fs.readFileSync(path.join(out,'verified-download.cgext'))),hash(artifacts[1]));pass('source download uses the same verified immutable bytes');
|
||||
assert.match(await page.locator('.source-inspection').innerText(),/Operator checked.*public committed package/s);await page.locator('#source-file').selectOption('index.cjs');await page.screenshot({path:path.join(out,'desktop-source.png'),fullPage:true});
|
||||
// Connect after inspecting incompatible catalog 9.0.0. The engine chooses 1.0.0.
|
||||
@@ -37,7 +37,7 @@ let server,bridge,browser,page;
|
||||
await page.locator('[data-view-source]').click();await page.locator('.source-verified').filter({hasText:'2.0.0'}).waitFor();await page.getByRole('button',{name:'Install extension'}).click();await page.getByRole('button',{name:'Disable',exact:true}).waitFor();assert.deepEqual(routes(),['/inspected-2.0.0']);pass('reviewed exact version installs once and produces actual SQLite graph');
|
||||
await page.setViewportSize({width:390,height:844});await page.screenshot({path:path.join(out,'mobile-source.png'),fullPage:true});assert.ok(await page.evaluate(()=>document.documentElement.scrollWidth<=innerWidth));pass('mobile file inspection fits viewport and preserves literal source');
|
||||
await publish(artifacts[3]);await page.evaluate(()=>refresh());await page.locator('.compatibility').filter({hasText:'Selected 3.0.0'}).waitFor();await page.getByRole('button',{name:'Update to 3.0.0'}).click();assert.deepEqual(routes(),['/inspected-2.0.0']);await page.locator('[data-view-source]').click();await page.locator('.source-verified').filter({hasText:'3.0.0'}).waitFor();await page.getByRole('button',{name:'Update to 3.0.0'}).click();await page.waitForFunction(()=>state.snapshot?.error&&!state.snapshot.busy);assert.deepEqual(routes(),['/inspected-2.0.0']);pass('review required for changed update; actual throwing update preserves working graph');
|
||||
await page.getByRole('button',{name:'Disable',exact:true}).click();await page.getByRole('button',{name:'Enable',exact:true}).waitFor();assert.deepEqual(routes(),[]);await page.getByRole('button',{name:'Remove',exact:true}).click();await page.getByText('Extension removed and graph refreshed',{exact:true}).first().waitFor();assert.deepEqual(routes(),[]);pass('disable and removal retain managed lifecycle behavior');
|
||||
await page.getByRole('button',{name:'Disable',exact:true}).locator('svg > *').first().dispatchEvent('click');await page.getByRole('button',{name:'Enable',exact:true}).waitFor();assert.deepEqual(routes(),[]);await page.getByRole('button',{name:'Remove',exact:true}).locator('svg > *').first().dispatchEvent('click');await page.getByText('Extension removed and graph refreshed',{exact:true}).first().waitFor();assert.deepEqual(routes(),[]);pass('disable and removal retain managed lifecycle behavior');
|
||||
// Exercise malformed package identity/path/display bounds using the real browser verifier, no package execution.
|
||||
const negative=await page.evaluate(async()=>{const results=[];for(const kind of ['identity','path','binary','files','size']){const p={format:'codegraph-extension-1',package:{version:'1.0.0',main:'index.cjs',codegraph:{id:'check'}},files:{'index.cjs':'module.exports={}'}};if(kind==='identity')p.package.version='2.0.0';if(kind==='path')p.files['../escape.cjs']='x';if(kind==='binary')p.files['index.cjs']='\0';if(kind==='files')for(let i=0;i<257;i++)p.files[i+'.txt']='x';const bytes=new TextEncoder().encode(JSON.stringify(p)),integrity=[...new Uint8Array(await crypto.subtle.digest('SHA-256',bytes))].map(b=>b.toString(16).padStart(2,'0')).join('');try{await verifiedSource(new Response(bytes,{headers:kind==='size'?{'content-length':String(8*1024*1024+1)}:{}}),{id:'check',version:'1.0.0',integrity});results.push(false);}catch{results.push(true);}}return results;});assert.deepEqual(negative,[true,true,true,true,true]);pass('browser verifier rejects identity traversal NUL excessive files and size violations');
|
||||
assert.deepEqual(errors,[]);fs.writeFileSync(path.join(out,'summary.json'),JSON.stringify({success:true,checks,browser:browser.version(),sourcePolicy:'explicit test records, no public provider verification claim',packageHashes:artifacts.map(hash)},null,2));
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
// Read-only live acceptance, or a disposable Node registry seeded with the immutable Drupal artifact.
|
||||
const fs=require('node:fs'),path=require('node:path'),os=require('node:os'),assert=require('node:assert/strict'),crypto=require('node:crypto');
|
||||
const {chromium}=require(process.env.PLAYWRIGHT_MODULE||'playwright');
|
||||
const out=path.resolve(process.env.THEME_OUTPUT||'.qa/theme/browser');fs.mkdirSync(out,{recursive:true});
|
||||
const hash=b=>crypto.createHash('sha256').update(b).digest('hex'),checks=[],errors=[],requests=[],responses=[];
|
||||
let server,browser,page,temp;const live=process.env.THEME_ORIGIN;
|
||||
const pass=name=>{checks.push(name);fs.writeFileSync(path.join(out,'progress.json'),JSON.stringify({checks},null,2));console.log('PASS',name);};
|
||||
const iconClick=async selector=>{const child=page.locator(selector+' svg').first().locator(':scope > *').first();await child.dispatchEvent('click');};
|
||||
async function shot(name){await page.screenshot({path:path.join(out,name+'.png'),fullPage:true});}
|
||||
async function fit(){assert.ok(await page.evaluate(()=>document.documentElement.scrollWidth<=innerWidth),'horizontal overflow');}
|
||||
(async()=>{try{
|
||||
let origin=live;
|
||||
if(!origin){temp=fs.mkdtempSync(path.join(os.tmpdir(),'cg-theme-'));server=await require('../../dist/plugins/marketplace').startMarketplaceServer({database:path.join(temp,'registry.db'),publicDirectory:path.resolve('marketplace/public'),officialArtifact:path.resolve('dist/extensions/drupal.cgext')});origin='http://127.0.0.1:'+server.port;}
|
||||
browser=await chromium.launch({executablePath:process.env.CHROME_PATH||'/opt/google/chrome/chrome',headless:true,args:['--no-sandbox']});
|
||||
page=await browser.newPage({viewport:{width:1440,height:1000},acceptDownloads:true});page.setDefaultTimeout(20000);page.on('pageerror',e=>errors.push(e.message));page.on('console',m=>{if(m.type()==='error')errors.push(m.text());});page.on('request',r=>requests.push({url:r.url(),method:r.method()}));page.on('response',r=>responses.push({url:r.url(),status:r.status()}));
|
||||
const response=await page.goto(origin);assert.match(response.headers()['content-security-policy'],/script-src 'self'/);await page.locator('[data-tab="official"]').click();await page.locator('.extension-card').waitFor();await page.evaluate(()=>document.fonts.ready);
|
||||
const computed=await page.evaluate(()=>{const cs=e=>getComputedStyle(document.querySelector(e));return {font:cs('body').fontFamily,mono:cs('.eyebrow').fontFamily,paper:cs('html').backgroundColor,ink:cs('body').color,muted:cs('.card-copy').color,weight:cs('h1').fontWeight,radius:cs('.extension-card').borderRadius,loaded:[...document.fonts].filter(f=>f.status==='loaded').map(f=>({family:f.family,weight:f.weight}))};});
|
||||
assert.match(computed.font,/Archivo Variable/);assert.match(computed.mono,/IBM Plex Mono/);assert.equal(computed.paper,'rgb(247, 246, 242)');assert.equal(computed.ink,'rgb(22, 21, 15)');assert.equal(computed.muted,'rgb(86, 84, 74)');assert.equal(computed.weight,'800');assert.equal(computed.radius,'0px');assert.ok(computed.loaded.some(f=>f.family==='Archivo Variable'));assert.ok(computed.loaded.some(f=>f.family==='IBM Plex Mono'));pass('actual local fonts, shared paper/ink tokens, heavy heading and square ruled layout');
|
||||
await fit();await shot('desktop-catalog');
|
||||
const icons=await page.locator('svg.ui-icon').evaluateAll(all=>all.map(e=>({name:e.dataset.lucide,hidden:e.getAttribute('aria-hidden'),focusable:e.getAttribute('focusable'),stroke:e.getAttribute('stroke'),width:e.getBoundingClientRect().width})));assert.ok(icons.length>10);assert.ok(icons.every(i=>i.hidden==='true'&&i.focusable==='false'&&i.stroke==='currentColor'));assert.ok(icons.filter(i=>i.width>0).length>10);assert.equal(await page.locator('i[data-ui]').count(),0);pass('locally bundled decorative Lucide SVGs render with currentColor and named text controls');
|
||||
await page.reload();await page.locator('[data-tab="official"]').waitFor();await page.keyboard.press('Tab');assert.equal(await page.evaluate(()=>document.activeElement.className),'skip-link');const focus=await page.locator('.skip-link').evaluate(e=>({outline:getComputedStyle(e).outlineWidth,top:e.getBoundingClientRect().top}));assert.ok(parseFloat(focus.outline)>=2);assert.ok(focus.top>=0);await page.keyboard.press('Enter');assert.equal(await page.evaluate(()=>document.activeElement.id),'app');pass('visible keyboard focus and working skip-to-content link');
|
||||
await iconClick('#connect');assert.equal(await page.locator('#connect-dialog').evaluate(e=>e.open),true);await shot('desktop-connection');await iconClick('#connect-dialog .close');assert.equal(await page.locator('#connect-dialog').evaluate(e=>e.open),false);pass('nested SVG paths activate connection and close buttons');
|
||||
await page.locator('#search').fill('no such framework');assert.match(await page.locator('.empty').innerText(),/No extensions match/);assert.equal(await page.locator('.empty svg').count(),1);await page.locator('#search').fill('');
|
||||
await page.locator('a[href="/extensions/drupal"]').first().click();await iconClick('[data-view-source]');await page.locator('#source-content').waitFor();assert.match(await page.locator('.source-verified').innerText(),/drupal 0.1.1/);assert.match(await page.locator('.source-unverified').innerText(),/Repository correspondence unverified/);
|
||||
const selected=await page.evaluate(()=>({release:inspection.active.release,file:inspection.file,source:inspection.active.files[inspection.file]}));assert.equal(selected.release.integrity,'e5ed73bee51524585e4f4da1d5017fdee3037a3fa71d8f08edab6c318fedc59a');assert.equal(await page.locator('#source-content').textContent(),selected.source.slice(0,64000));assert.equal(await page.locator('#source-content script,#source-content img').count(),0);pass('nested SVG source action verifies immutable Drupal bytes with truthful legacy provenance and inert text');
|
||||
const textDownload=page.waitForEvent('download');await iconClick('#source-file-download');const file=await textDownload;const filePath=path.join(out,'inspected-source.txt');await file.saveAs(filePath);assert.equal(fs.readFileSync(filePath,'utf8'),selected.source);
|
||||
const packageDownload=page.waitForEvent('download');await iconClick('#source-package-download');const pkg=await packageDownload;const pkgPath=path.join(out,'inspected-drupal.cgext');await pkg.saveAs(pkgPath);assert.equal(hash(fs.readFileSync(pkgPath)),selected.release.integrity);pass('nested SVG download actions preserve full text and exact verified package bytes');
|
||||
await page.locator('#source-content').focus();assert.ok(await page.locator('#source-content').evaluate(e=>parseFloat(getComputedStyle(e).outlineWidth)>=2));await page.locator('#package-source').scrollIntoViewIfNeeded();await shot('desktop-source');await fit();
|
||||
for(const width of [390,320]){await page.setViewportSize({width,height:844});await page.goto(origin+'/extensions/drupal');await iconClick('[data-view-source]');await page.locator('#source-content').waitFor();await fit();await page.locator('#source-content').scrollIntoViewIfNeeded();if(width===390)await shot('mobile-source');await page.goto(origin);await page.locator('[data-tab="official"]').click();await page.locator('.extension-card').waitFor();await fit();if(width===390)await shot('mobile-catalog');await iconClick('#connect');await fit();if(width===390)await shot('mobile-connection');await iconClick('#connect-dialog .close');}
|
||||
pass('catalog, detail, source and connection layouts fit 390px and 320px viewports');
|
||||
await page.goto(origin+'/publish');await page.locator('#publish-form').waitFor();await fit();await shot('mobile-publisher');await page.setViewportSize({width:1440,height:1000});await shot('desktop-publisher');
|
||||
// Key generation is browser-local only. Never save or log the secret download contents.
|
||||
const keyDownload=page.waitForEvent('download');await iconClick('#backup-key');const key=await keyDownload;assert.match(key.suggestedFilename(),/publisher.*json/);await key.delete();pass('publisher form matches theme; nested SVG key-backup action works without publishing or retaining credentials');
|
||||
assert.ok(requests.every(r=>r.method==='GET'&&new URL(r.url).origin===origin),'unexpected request or external asset');assert.deepEqual(errors,[]);assert.ok(responses.every(r=>r.status<400));pass('same-origin assets only, no mutations, no browser/CSP/resource errors');
|
||||
fs.writeFileSync(path.join(out,'summary.json'),JSON.stringify({success:true,mode:live?'actual-live-read-only':'local-Node-real-package',origin,checks,computed,icons,browser:browser.version(),requests,responses},null,2));
|
||||
}catch(error){await shot('failure').catch(()=>{});fs.writeFileSync(path.join(out,'failure.json'),JSON.stringify({checks,errors,requests,responses,error:String(error.stack)},null,2));throw error;}finally{await browser?.close();await server?.close();if(temp)fs.rmSync(temp,{recursive:true,force:true});}})().catch(e=>{console.error(e);process.exitCode=1;});
|
||||
@@ -154,9 +154,13 @@ export async function startMarketplaceServer(options: { database: string; public
|
||||
}
|
||||
if (req.method !== 'GET') { json(405, { error: 'Method not allowed' }); return; }
|
||||
const files: Record<string, string> = { '/': 'index.html', '/app.js': 'app.js', '/style.css': 'style.css' };
|
||||
const file = files[url.pathname] ?? (url.pathname.startsWith('/extensions/') || url.pathname === '/publish' ? 'index.html' : undefined);
|
||||
// Fixed UI asset paths only; never turn publicDirectory into an arbitrary file server.
|
||||
const asset = /^\/(?:icons\.js|fonts\.css|fonts\/[a-z0-9-]+\.woff2|brand\/[a-z0-9-]+\.svg|licenses\/[a-z0-9-]+\.txt)$/.test(url.pathname)
|
||||
? url.pathname.slice(1) : undefined;
|
||||
const file = files[url.pathname] ?? asset ?? (url.pathname.startsWith('/extensions/') || url.pathname === '/publish' ? 'index.html' : undefined);
|
||||
if (!file) { json(404, { error: 'Not found' }); return; }
|
||||
res.writeHead(200, { 'Content-Type': file.endsWith('.html') ? 'text/html; charset=utf-8' : file.endsWith('.js') ? 'text/javascript' : 'text/css' });
|
||||
const type = file.endsWith('.html') ? 'text/html; charset=utf-8' : file.endsWith('.js') ? 'text/javascript' : file.endsWith('.woff2') ? 'font/woff2' : file.endsWith('.svg') ? 'image/svg+xml' : file.endsWith('.txt') ? 'text/plain; charset=utf-8' : 'text/css';
|
||||
res.writeHead(200, { 'Content-Type': type });
|
||||
res.end(fs.readFileSync(path.join(options.publicDirectory, file)));
|
||||
} catch (err) { json(400, { error: err instanceof Error ? err.message : String(err) }); }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user