mirror of
https://github.com/colbymchenry/codegraph.git
synced 2026-10-17 05:07:37 +08:00
Use existing project links in marketplace preview
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<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/feature/extensions-marketplace/docs" target="_blank" rel="noopener">Extension documentation ↗</a><span class="preview-tag">Preview</span></footer>
|
||||
<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>
|
||||
<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>
|
||||
</body></html>
|
||||
|
||||
@@ -44,7 +44,7 @@ export function createMarketplaceStore(database: string) {
|
||||
if (db.prepare('SELECT 1 FROM releases WHERE id=? AND version=?').get(pkg.codegraph.id, pkg.version)) return;
|
||||
publish(bytes, { publisherId: 'codegraph', publisher: 'CodeGraph', official: true, name: 'Drupal',
|
||||
description: 'Follow Drupal routes, services, hooks, plugins and events through your codebase.',
|
||||
source: 'https://github.com/colbymchenry/codegraph/tree/feature/extensions-marketplace/extensions/drupal',
|
||||
source: 'https://github.com/colbymchenry/codegraph',
|
||||
readme: 'Understand the framework connections that ordinary function calls cannot show.\n\nRoutes and forms connect to their handlers. Service definitions connect to implementations and explicit injected services. Documented procedural hooks and Hook attributes connect to literal invocations. Plugin annotations and attributes identify implementations. Literal event dispatch connects to declared subscribers.\n\nInstall replaces the built-in Drupal resolver for this project. Requires CodeGraph 1.6.0 with extension support (preview build).\n\nComputed identifiers, external dependencies outside your index, ambiguous classes and unknown entity handlers remain unresolved. New programming languages and PHP branch-condition analysis are outside this extension API.' });
|
||||
},
|
||||
list(): Listing[] {
|
||||
|
||||
Reference in New Issue
Block a user