create-addfox-app 0.1.1-beta.12 → 0.1.1-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/cli.js +16 -20
  2. package/package.json +1 -1
  3. package/templates/template-preact-js/app/popup/App.jsx +8 -0
  4. package/templates/template-preact-js/package.json +1 -2
  5. package/templates/template-preact-js/public/welcome.html +1 -0
  6. package/templates/template-preact-ts/app/popup/App.tsx +8 -0
  7. package/templates/template-preact-ts/package.json +1 -2
  8. package/templates/template-preact-ts/public/welcome.html +1 -0
  9. package/templates/template-react-js/app/popup/App.jsx +8 -0
  10. package/templates/template-react-js/package.json +1 -2
  11. package/templates/template-react-js/public/welcome.html +1 -0
  12. package/templates/template-react-ts/app/popup/App.tsx +8 -0
  13. package/templates/template-react-ts/package.json +1 -2
  14. package/templates/template-react-ts/public/welcome.html +1 -0
  15. package/templates/template-solid-js/app/popup/App.jsx +8 -0
  16. package/templates/template-solid-js/package.json +1 -2
  17. package/templates/template-solid-js/public/welcome.html +1 -0
  18. package/templates/template-solid-ts/app/popup/App.tsx +8 -0
  19. package/templates/template-solid-ts/package.json +1 -2
  20. package/templates/template-solid-ts/public/welcome.html +1 -0
  21. package/templates/template-svelte-js/app/popup/App.svelte +6 -0
  22. package/templates/template-svelte-js/package.json +1 -2
  23. package/templates/template-svelte-js/public/welcome.html +1 -0
  24. package/templates/template-svelte-ts/app/popup/App.svelte +6 -0
  25. package/templates/template-svelte-ts/package.json +1 -2
  26. package/templates/template-svelte-ts/public/welcome.html +1 -0
  27. package/templates/template-vanilla-js/app/popup/index.js +12 -1
  28. package/templates/template-vanilla-js/package.json +3 -5
  29. package/templates/template-vanilla-js/public/welcome.html +1 -0
  30. package/templates/template-vanilla-ts/app/popup/index.ts +12 -1
  31. package/templates/template-vanilla-ts/package.json +1 -4
  32. package/templates/template-vanilla-ts/public/welcome.html +1 -0
  33. package/templates/template-vue-js/addfox.config.js +2 -2
  34. package/templates/template-vue-js/app/popup/App.vue +6 -0
  35. package/templates/template-vue-js/package.json +1 -3
  36. package/templates/template-vue-js/public/welcome.html +1 -0
  37. package/templates/template-vue-ts/addfox.config.ts +2 -2
  38. package/templates/template-vue-ts/app/popup/App.vue +6 -0
  39. package/templates/template-vue-ts/package.json +1 -4
  40. package/templates/template-vue-ts/public/welcome.html +1 -0
package/dist/cli.js CHANGED
@@ -496,16 +496,6 @@ function applyTestAndReportSetup(root, language, selection) {
496
496
  }
497
497
  }
498
498
  const RESET = "\x1b[0m";
499
- const ORANGE = [
500
- 255,
501
- 118,
502
- 38
503
- ];
504
- const PINK = [
505
- 255,
506
- 92,
507
- 186
508
- ];
509
499
  const LOGO_LINES = [
510
500
  " █████╗ ██████╗ ██████╗ ███████╗ ██████╗ ██╗ ██╗",
511
501
  "██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔═══██╗╚██╗██╔╝",
@@ -514,13 +504,15 @@ const LOGO_LINES = [
514
504
  "██║ ██║██████╔╝██████╔╝██║ ╚██████╔╝██╔╝ ██╗",
515
505
  "╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝"
516
506
  ];
517
- function lerpChannel(a, b, t) {
518
- return Math.round(a + (b - a) * t);
507
+ const GRADIENT_START_256 = 208;
508
+ const GRADIENT_END_256 = 213;
509
+ function shouldEmitAnsiColor() {
510
+ return !process.env.NO_COLOR;
519
511
  }
520
- function rgbFg(r, g, b) {
521
- return `\x1b[38;2;${r};${g};${b}m`;
512
+ function ansi256Fg(code) {
513
+ return `\x1b[38;5;${code}m`;
522
514
  }
523
- function colorizeLine(line) {
515
+ function colorizeLineAnsi256(line) {
524
516
  const len = line.length;
525
517
  if (0 === len) return "";
526
518
  let out = "";
@@ -531,16 +523,20 @@ function colorizeLine(line) {
531
523
  continue;
532
524
  }
533
525
  const t = len <= 1 ? 0 : i / (len - 1);
534
- const r = lerpChannel(ORANGE[0], PINK[0], t);
535
- const g = lerpChannel(ORANGE[1], PINK[1], t);
536
- const b = lerpChannel(ORANGE[2], PINK[2], t);
537
- out += rgbFg(r, g, b) + ch;
526
+ const code = Math.round(GRADIENT_START_256 + t * (GRADIENT_END_256 - GRADIENT_START_256));
527
+ out += ansi256Fg(code) + ch;
538
528
  }
539
529
  return out + RESET;
540
530
  }
531
+ function printPlainLogo() {
532
+ console.log("");
533
+ for (const line of LOGO_LINES)console.log(line);
534
+ console.log("");
535
+ }
541
536
  function printAddfoxLogo() {
537
+ if (!shouldEmitAnsiColor()) return void printPlainLogo();
542
538
  console.log("");
543
- for (const line of LOGO_LINES)console.log(colorizeLine(line));
539
+ for (const line of LOGO_LINES)console.log(colorizeLineAnsi256(line));
544
540
  console.log("");
545
541
  }
546
542
  const SKIP_STYLE_ENTRIES = new Set([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-addfox-app",
3
- "version": "0.1.1-beta.12",
3
+ "version": "0.1.1-beta.14",
4
4
  "description": "Interactive scaffolder for addfox extension projects",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,6 +18,14 @@ export default function App() {
18
18
  <div style={popupStyle}>
19
19
  <img src="/icons/icon_128.png" alt="" width={64} height={64} />
20
20
  <div style={{ fontSize: 18, fontWeight: 600 }}>AddFox Preact</div>
21
+ <a
22
+ href="https://addfox.dev/"
23
+ target="_blank"
24
+ rel="noopener noreferrer"
25
+ style={{ fontSize: 13, color: "#2563eb" }}
26
+ >
27
+ addfox.dev
28
+ </a>
21
29
  </div>
22
30
  );
23
31
  }
@@ -8,12 +8,11 @@
8
8
  "build": "addfox build"
9
9
  },
10
10
  "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3",
13
11
  "@addfox/utils": "^0.1.1-beta.5",
14
12
  "preact": "^10.29.0"
15
13
  },
16
14
  "devDependencies": {
15
+ "addfox": "^0.1.1-beta.7",
17
16
  "@rsbuild/plugin-preact": "^1.7.2"
18
17
  }
19
18
  }
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + Preact</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -18,6 +18,14 @@ export default function App() {
18
18
  <div style={popupStyle}>
19
19
  <img src="/icons/icon_128.png" alt="" width={64} height={64} />
20
20
  <div style={{ fontSize: 18, fontWeight: 600 }}>AddFox Preact</div>
21
+ <a
22
+ href="https://addfox.dev/"
23
+ target="_blank"
24
+ rel="noopener noreferrer"
25
+ style={{ fontSize: 13, color: "#2563eb" }}
26
+ >
27
+ addfox.dev
28
+ </a>
21
29
  </div>
22
30
  );
23
31
  }
@@ -8,12 +8,11 @@
8
8
  "build": "addfox build"
9
9
  },
10
10
  "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3",
13
11
  "@addfox/utils": "^0.1.1-beta.5",
14
12
  "preact": "^10.29.0"
15
13
  },
16
14
  "devDependencies": {
15
+ "addfox": "^0.1.1-beta.7",
17
16
  "@rsbuild/plugin-preact": "^1.7.2",
18
17
  "typescript": "^5.9.3",
19
18
  "@types/chrome": "^0.1.38"
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + Preact</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -16,6 +16,14 @@ export default function App() {
16
16
  <div style={popupStyle}>
17
17
  <img src="/icons/icon_128.png" alt="" width={64} height={64} />
18
18
  <div style={{ fontSize: 18, fontWeight: 600 }}>AddFox React</div>
19
+ <a
20
+ href="https://addfox.dev/"
21
+ target="_blank"
22
+ rel="noopener noreferrer"
23
+ style={{ fontSize: 13, color: "#2563eb" }}
24
+ >
25
+ addfox.dev
26
+ </a>
19
27
  </div>
20
28
  );
21
29
  }
@@ -8,13 +8,12 @@
8
8
  "build": "addfox build"
9
9
  },
10
10
  "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3",
13
11
  "@addfox/utils": "^0.1.1-beta.5",
14
12
  "react": "^19.2.4",
15
13
  "react-dom": "^19.2.4"
16
14
  },
17
15
  "devDependencies": {
16
+ "addfox": "^0.1.1-beta.7",
18
17
  "@rsbuild/plugin-react": "^1.4.6"
19
18
  }
20
19
  }
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + React</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -16,6 +16,14 @@ export default function App() {
16
16
  <div style={popupStyle}>
17
17
  <img src="/icons/icon_128.png" alt="" width={64} height={64} />
18
18
  <div style={{ fontSize: 18, fontWeight: 600 }}>AddFox React</div>
19
+ <a
20
+ href="https://addfox.dev/"
21
+ target="_blank"
22
+ rel="noopener noreferrer"
23
+ style={{ fontSize: 13, color: "#2563eb" }}
24
+ >
25
+ addfox.dev
26
+ </a>
19
27
  </div>
20
28
  );
21
29
  }
@@ -8,13 +8,12 @@
8
8
  "build": "addfox build"
9
9
  },
10
10
  "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3",
13
11
  "@addfox/utils": "^0.1.1-beta.5",
14
12
  "react": "^19.2.4",
15
13
  "react-dom": "^19.2.4"
16
14
  },
17
15
  "devDependencies": {
16
+ "addfox": "^0.1.1-beta.7",
18
17
  "@rsbuild/plugin-react": "^1.4.6",
19
18
  "typescript": "^5.9.3",
20
19
  "@types/chrome": "^0.1.38",
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + React</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -21,6 +21,14 @@ export default function App() {
21
21
  <div style={popupStyle}>
22
22
  <img src="/icons/icon_128.png" alt="" width={64} height={64} />
23
23
  <div style={titleStyle}>AddFox Solid</div>
24
+ <a
25
+ href="https://addfox.dev/"
26
+ target="_blank"
27
+ rel="noopener noreferrer"
28
+ style={{ "font-size": "13px", color: "#2563eb" }}
29
+ >
30
+ addfox.dev
31
+ </a>
24
32
  </div>
25
33
  );
26
34
  }
@@ -8,12 +8,11 @@
8
8
  "build": "addfox build"
9
9
  },
10
10
  "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3",
13
11
  "@addfox/utils": "^0.1.1-beta.5",
14
12
  "solid-js": "^1.9.11"
15
13
  },
16
14
  "devDependencies": {
15
+ "addfox": "^0.1.1-beta.7",
17
16
  "@rsbuild/plugin-babel": "^1.1.2",
18
17
  "@rsbuild/plugin-solid": "^1.1.1"
19
18
  }
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + Solid</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -21,6 +21,14 @@ export default function App() {
21
21
  <div style={popupStyle}>
22
22
  <img src="/icons/icon_128.png" alt="" width={64} height={64} />
23
23
  <div style={titleStyle}>AddFox Solid</div>
24
+ <a
25
+ href="https://addfox.dev/"
26
+ target="_blank"
27
+ rel="noopener noreferrer"
28
+ style={{ "font-size": "13px", color: "#2563eb" }}
29
+ >
30
+ addfox.dev
31
+ </a>
24
32
  </div>
25
33
  );
26
34
  }
@@ -8,12 +8,11 @@
8
8
  "build": "addfox build"
9
9
  },
10
10
  "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3",
13
11
  "@addfox/utils": "^0.1.1-beta.5",
14
12
  "solid-js": "^1.9.11"
15
13
  },
16
14
  "devDependencies": {
15
+ "addfox": "^0.1.1-beta.7",
17
16
  "@rsbuild/plugin-babel": "^1.1.2",
18
17
  "@rsbuild/plugin-solid": "^1.1.1",
19
18
  "typescript": "^5.9.3",
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + Solid</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -1,6 +1,7 @@
1
1
  <div class="popup">
2
2
  <img src="/icons/icon_128.png" alt="" width="64" height="64" />
3
3
  <div class="title">AddFox Svelte</div>
4
+ <a class="site-link" href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a>
4
5
  </div>
5
6
 
6
7
  <style>
@@ -21,4 +22,9 @@
21
22
  font-size: 18px;
22
23
  font-weight: 600;
23
24
  }
25
+
26
+ .site-link {
27
+ font-size: 13px;
28
+ color: #2563eb;
29
+ }
24
30
  </style>
@@ -8,12 +8,11 @@
8
8
  "build": "addfox build"
9
9
  },
10
10
  "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3",
13
11
  "@addfox/utils": "^0.1.1-beta.5",
14
12
  "svelte": "^5.54.1"
15
13
  },
16
14
  "devDependencies": {
15
+ "addfox": "^0.1.1-beta.7",
17
16
  "@rsbuild/plugin-svelte": "^1.1.1"
18
17
  }
19
18
  }
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + Svelte</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -1,6 +1,7 @@
1
1
  <div class="popup">
2
2
  <img src="/icons/icon_128.png" alt="" width="64" height="64" />
3
3
  <div class="title">AddFox Svelte</div>
4
+ <a class="site-link" href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a>
4
5
  </div>
5
6
 
6
7
  <style>
@@ -21,4 +22,9 @@
21
22
  font-size: 18px;
22
23
  font-weight: 600;
23
24
  }
25
+
26
+ .site-link {
27
+ font-size: 13px;
28
+ color: #2563eb;
29
+ }
24
30
  </style>
@@ -8,12 +8,11 @@
8
8
  "build": "addfox build"
9
9
  },
10
10
  "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3",
13
11
  "@addfox/utils": "^0.1.1-beta.5",
14
12
  "svelte": "^5.54.1"
15
13
  },
16
14
  "devDependencies": {
15
+ "addfox": "^0.1.1-beta.7",
17
16
  "@rsbuild/plugin-svelte": "^1.1.1",
18
17
  "typescript": "^5.9.3",
19
18
  "@types/chrome": "^0.1.38"
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + Svelte</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -28,9 +28,20 @@ function createTitle() {
28
28
  return title;
29
29
  }
30
30
 
31
+ function createSiteLink() {
32
+ const a = document.createElement("a");
33
+ a.href = "https://addfox.dev/";
34
+ a.target = "_blank";
35
+ a.rel = "noopener noreferrer";
36
+ a.textContent = "addfox.dev";
37
+ a.style.fontSize = "13px";
38
+ a.style.color = "#2563eb";
39
+ return a;
40
+ }
41
+
31
42
  function mountPopup(root) {
32
43
  applyPopupLayout(root);
33
- root.append(createIcon(), createTitle());
44
+ root.append(createIcon(), createTitle(), createSiteLink());
34
45
  }
35
46
 
36
47
  const root = document.getElementById("root");
@@ -7,9 +7,7 @@
7
7
  "dev": "addfox dev",
8
8
  "build": "addfox build"
9
9
  },
10
- "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3"
13
- },
14
- "devDependencies": {}
10
+ "devDependencies": {
11
+ "addfox": "^0.1.1-beta.7"
12
+ }
15
13
  }
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + Vanilla</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -28,9 +28,20 @@ function createTitle(): HTMLDivElement {
28
28
  return title;
29
29
  }
30
30
 
31
+ function createSiteLink(): HTMLAnchorElement {
32
+ const a = document.createElement("a");
33
+ a.href = "https://addfox.dev/";
34
+ a.target = "_blank";
35
+ a.rel = "noopener noreferrer";
36
+ a.textContent = "addfox.dev";
37
+ a.style.fontSize = "13px";
38
+ a.style.color = "#2563eb";
39
+ return a;
40
+ }
41
+
31
42
  function mountPopup(root: HTMLElement): void {
32
43
  applyPopupLayout(root);
33
- root.append(createIcon(), createTitle());
44
+ root.append(createIcon(), createTitle(), createSiteLink());
34
45
  }
35
46
 
36
47
  const root = document.getElementById("root");
@@ -7,11 +7,8 @@
7
7
  "dev": "addfox dev",
8
8
  "build": "addfox build"
9
9
  },
10
- "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3"
13
- },
14
10
  "devDependencies": {
11
+ "addfox": "^0.1.1-beta.7",
15
12
  "typescript": "^5.9.3"
16
13
  }
17
14
  }
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + Vanilla</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -1,5 +1,5 @@
1
1
  import { defineConfig } from "addfox";
2
- import vue from "@addfox/rsbuild-plugin-vue";
2
+ import { pluginVue } from "@rsbuild/plugin-vue";
3
3
 
4
4
  const manifest = {
5
5
  name: "My Extension",
@@ -23,5 +23,5 @@ const manifest = {
23
23
 
24
24
  export default defineConfig({
25
25
  manifest: { chromium: manifest, firefox: { ...manifest } },
26
- plugins: [vue()],
26
+ plugins: [pluginVue()],
27
27
  });
@@ -2,6 +2,7 @@
2
2
  <div class="popup">
3
3
  <img src="/icons/icon_128.png" alt="" width="64" height="64" />
4
4
  <div class="title">AddFox Vue</div>
5
+ <a class="site-link" href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a>
5
6
  </div>
6
7
  </template>
7
8
 
@@ -25,4 +26,9 @@
25
26
  font-size: 18px;
26
27
  font-weight: 600;
27
28
  }
29
+
30
+ .site-link {
31
+ font-size: 13px;
32
+ color: #2563eb;
33
+ }
28
34
  </style>
@@ -8,13 +8,11 @@
8
8
  "build": "addfox build"
9
9
  },
10
10
  "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3",
13
11
  "@addfox/utils": "^0.1.1-beta.5",
14
12
  "vue": "^3.5.30"
15
13
  },
16
14
  "devDependencies": {
17
- "@addfox/rsbuild-plugin-vue": "^0.1.1-beta.5",
15
+ "addfox": "^0.1.1-beta.7",
18
16
  "@rsbuild/plugin-vue": "^1.2.7"
19
17
  }
20
18
  }
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + Vue</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>
@@ -1,5 +1,5 @@
1
1
  import { defineConfig } from "addfox";
2
- import vue from "@addfox/rsbuild-plugin-vue";
2
+ import { pluginVue } from "@rsbuild/plugin-vue";
3
3
 
4
4
  const manifest = {
5
5
  name: "My Extension",
@@ -23,5 +23,5 @@ const manifest = {
23
23
 
24
24
  export default defineConfig({
25
25
  manifest: { chromium: manifest, firefox: { ...manifest } },
26
- plugins: [vue()],
26
+ plugins: [pluginVue()],
27
27
  });
@@ -2,6 +2,7 @@
2
2
  <div class="popup">
3
3
  <img src="/icons/icon_128.png" alt="" width="64" height="64" />
4
4
  <div class="title">AddFox Vue</div>
5
+ <a class="site-link" href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a>
5
6
  </div>
6
7
  </template>
7
8
 
@@ -23,4 +24,9 @@
23
24
  font-size: 18px;
24
25
  font-weight: 600;
25
26
  }
27
+
28
+ .site-link {
29
+ font-size: 13px;
30
+ color: #2563eb;
31
+ }
26
32
  </style>
@@ -8,15 +8,12 @@
8
8
  "build": "addfox build"
9
9
  },
10
10
  "dependencies": {
11
- "addfox": "^0.1.1-beta.7",
12
- "@rsbuild/core": "^1.7.3",
13
11
  "@addfox/utils": "^0.1.1-beta.5",
14
12
  "vue": "^3.5.30"
15
13
  },
16
14
  "devDependencies": {
17
- "@addfox/rsbuild-plugin-vue": "^0.1.1-beta.5",
15
+ "addfox": "^0.1.1-beta.7",
18
16
  "@rsbuild/plugin-vue": "^1.2.7",
19
- "@rsbuild/plugin-vue-jsx": "^1.1.2",
20
17
  "typescript": "^5.9.3",
21
18
  "@types/chrome": "^0.1.38"
22
19
  }
@@ -15,5 +15,6 @@
15
15
  <img class="welcome-icon" src="/icons/icon_128.png" alt="" width="96" height="96" />
16
16
  <h1>Addfox + Vue</h1>
17
17
  <p>Your extension is ready. Happy building!</p>
18
+ <p style="margin-top: 1rem;"><a href="https://addfox.dev/" target="_blank" rel="noopener noreferrer">addfox.dev</a></p>
18
19
  </body>
19
20
  </html>