Skip to content

Commit 59f5fff

Browse files
committed
chore: organize extension source tree
1 parent f905613 commit 59f5fff

205 files changed

Lines changed: 184 additions & 177 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,7 @@ jobs:
4949
cp manifest.json README.md CHANGELOG.md repolens-release/
5050
cp batch.html library.html options.html output-tab.html share.html stack-tab.html whats-new.html repolens-release/
5151
cp ./*.css repolens-release/
52-
for file in ./*.js; do
53-
case "$(basename "$file")" in
54-
eslint.config.js|vitest.config.js) continue ;;
55-
esac
56-
cp "$file" repolens-release/
57-
done
58-
cp -R icons assets store migrate vendor repolens-release/
52+
cp -R src icons assets vendor repolens-release/
5953
(cd repolens-release && zip -r "../${ZIP}" . -x '*.DS_Store')
6054
6155
unzip -Z1 "$ZIP" | sort > /tmp/repolens-zip-files.txt
@@ -65,7 +59,7 @@ jobs:
6559
echo "Release zip contains forbidden dev/test files" >&2
6660
exit 1
6761
fi
68-
for required in manifest.json background.js output-tab.html library.html whats-new.html store/idb.js icons/icon128.png; do
62+
for required in manifest.json src/background.js output-tab.html library.html whats-new.html src/store/idb.js icons/icon128.png; do
6963
if ! grep -Fxq "$required" /tmp/repolens-zip-files.txt; then
7064
echo "Release zip missing required file: $required" >&2
7165
exit 1

README.md

Lines changed: 17 additions & 14 deletions

batch.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,6 @@
373373
</div>
374374
</div>
375375

376-
<script src="batch.js" type="module"></script>
376+
<script src="src/batch.js" type="module"></script>
377377
</body>
378378
</html>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Canvas demo — RepoLens Blueprint</title>
6-
<link rel="stylesheet" href="./themes.css" />
6+
<link rel="stylesheet" href="../themes.css" />
77
<style>
88
/* Case File fallbacks so the demo renders standalone (themes.css canvas rules use these tokens). */
99
:root {
@@ -79,10 +79,10 @@ <h1>🔭 RepoLens — Blueprint canvas (live demo)</h1>
7979
</div>
8080

8181
<script type="module">
82-
import { buildBlueprintScene } from './blueprint-adapter.js';
83-
import { mountCanvas } from './canvas-engine.js';
84-
import { buildTour } from './tour.js';
85-
import { startTour } from './tour-runner.js';
82+
import { buildBlueprintScene } from '../src/blueprint-adapter.js';
83+
import { mountCanvas } from '../src/canvas-engine.js';
84+
import { buildTour } from '../src/tour.js';
85+
import { startTour } from '../src/tour-runner.js';
8686

8787
const deepDive = {
8888
atoms: [
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Corkboard demo — RepoLens</title>
6-
<link rel="stylesheet" href="./themes.css" />
6+
<link rel="stylesheet" href="../themes.css" />
77
<style>
88
:root {
99
--bg: #fbf6ea;
@@ -74,9 +74,9 @@ <h1>🧭 RepoLens — Corkboard (live demo)</h1>
7474
</div>
7575

7676
<script type="module">
77-
import { buildLibraryScene } from './library-scene.js';
78-
import { layoutCorkboard } from './canvas-layout.js';
79-
import { mountCanvas } from './canvas-engine.js';
77+
import { buildLibraryScene } from '../src/library-scene.js';
78+
import { layoutCorkboard } from '../src/canvas-layout.js';
79+
import { mountCanvas } from '../src/canvas-engine.js';
8080

8181
// shape mirrors store.getLibraryGraph(): nodes carry the hashed nodeId + payload; edges use nodeIds.
8282
const graph = {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>RepoLens — "Vee" mascot preview</title>
7-
<link rel="stylesheet" href="themes.css" />
7+
<link rel="stylesheet" href="../themes.css" />
88
<style>
99
/* This is a standalone PREVIEW. It is not wired into the extension.
1010
It links the real themes.css, so Vee re-skins across every theme and
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Onboarding demo — RepoLens Vee coachmark</title>
6-
<link rel="stylesheet" href="./themes.css" />
6+
<link rel="stylesheet" href="../themes.css" />
77
<style>
88
/* Case File fallbacks so the demo renders standalone. */
99
:root {
@@ -178,9 +178,9 @@ <h1>RepoLens — Vee onboarding coachmark (demo)</h1>
178178
</div>
179179

180180
<script type="module">
181-
import { startCoachmark } from './coachmark.js';
182-
import { introStageA, milestoneSteps } from './onboarding.js';
183-
import { COPY } from './onboarding-copy.js';
181+
import { startCoachmark } from '../src/coachmark.js';
182+
import { introStageA, milestoneSteps } from '../src/onboarding.js';
183+
import { COPY } from '../src/onboarding-copy.js';
184184

185185
// Strip any `before` hooks from introStageA steps — those reference extension-only
186186
// DOM/storage APIs that don't exist in this standalone harness.

stack-demo.html renamed to demos/stack-demo.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Stack Studio demo — RepoLens</title>
6-
<link rel="stylesheet" href="./themes.css" />
6+
<link rel="stylesheet" href="../themes.css" />
77
<style>
88
:root {
99
--bg: #fbf6ea;
@@ -72,9 +72,9 @@ <h1>⚙ RepoLens — Stack Studio (live demo)</h1>
7272
</div>
7373

7474
<script type="module">
75-
import { buildStackScene } from './stack-scene.js';
76-
import { layoutStack } from './canvas-layout.js';
77-
import { mountCanvas } from './canvas-engine.js';
75+
import { buildStackScene } from '../src/stack-scene.js';
76+
import { layoutStack } from '../src/canvas-layout.js';
77+
import { mountCanvas } from '../src/canvas-engine.js';
7878

7979
const result = {
8080
title: 'Edge API stack',

library.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2582,6 +2582,6 @@ <h1>Library</h1>
25822582
</div>
25832583
</div>
25842584
<div id="lc-hover-card" hidden aria-hidden="true"></div>
2585-
<script src="library.js" type="module"></script>
2585+
<script src="src/library.js" type="module"></script>
25862586
</body>
25872587
</html>

0 commit comments

Comments
 (0)