Skip to content

Commit 616d7e5

Browse files
authored
Merge pull request #82 from whale4113/feat/lujunji/options
feat(chrome-extension): options page
2 parents 08065de + b0444e9 commit 616d7e5

File tree

150 files changed

+7025
-1837
lines changed

Some content is hidden

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

150 files changed

+7025
-1837
lines changed

.changeset/witty-lemons-float.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@dolphin/chrome-extension': minor
3+
---
4+
5+
feat: support options page

.github/workflows/create-github-releases.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- name: Install dependencies
2828
run: pnpm install
2929

30+
- name: Build dependencies
31+
run: pnpm exec turbo run build --filter=\!@dolphin/chrome-extension
32+
3033
- name: Build chrome extension
3134
working-directory: apps/chrome-extension
3235
run: pnpm run build --release

.vscode/settings.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
"[json]": {
66
"editor.defaultFormatter": "esbenp.prettier-vscode"
77
},
8-
"biome.enabled": false
8+
"biome.enabled": false,
9+
"files.associations": {
10+
"*.css": "tailwindcss"
11+
},
12+
"editor.quickSuggestions": {
13+
"strings": "on"
14+
}
915
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://shadcn-vue.com/schema.json",
3+
"style": "new-york",
4+
"typescript": true,
5+
"tailwind": {
6+
"config": "",
7+
"css": "src/pages/shared/shared.css",
8+
"baseColor": "neutral",
9+
"cssVariables": true,
10+
"prefix": ""
11+
},
12+
"aliases": {
13+
"components": "@/components",
14+
"composables": "@/composables",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib"
18+
},
19+
"iconLibrary": "lucide"
20+
}

apps/chrome-extension/manifest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@
99
"128": "images/icon-128.png"
1010
},
1111
"action": {
12-
"default_popup": "popup.html",
12+
"default_popup": "pages/popup.html",
1313
"default_icon": {
1414
"16": "images/icon-16.png",
1515
"32": "images/icon-32.png",
1616
"48": "images/icon-48.png",
1717
"128": "images/icon-128.png"
1818
}
1919
},
20-
"permissions": ["contextMenus", "scripting"],
20+
"options_page": "pages/options.html",
21+
"permissions": ["contextMenus", "scripting", "storage"],
2122
"host_permissions": [
2223
"https://*.feishu.cn/*",
2324
"https://*.feishu.net/*",

apps/chrome-extension/options.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Cloud Document Converter Options</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/pages/options/main.ts"></script>
12+
</body>
13+
</html>

apps/chrome-extension/package.json

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,53 @@
33
"version": "1.9.9",
44
"type": "module",
55
"scripts": {
6-
"type-check": "tsc --noEmit",
7-
"build": "node --experimental-strip-types ./scripts/cli.ts build"
6+
"type-check": "vue-tsc -b",
7+
"build": "node --experimental-strip-types ./scripts/cli.ts build",
8+
"dev:pages": "vite"
89
},
910
"devDependencies": {
1011
"@babel/core": "catalog:dev",
1112
"@babel/plugin-transform-runtime": "catalog:dev",
1213
"@babel/preset-env": "catalog:dev",
1314
"@babel/preset-typescript": "catalog:dev",
15+
"@internationalized/date": "catalog:dev",
1416
"@rollup/plugin-babel": "catalog:build",
17+
"@tailwindcss/vite": "catalog:dev",
18+
"@vitejs/plugin-vue": "catalog:dev",
19+
"@vue/tsconfig": "catalog:dev",
20+
"cac": "catalog:dev",
1521
"chrome-types": "catalog:dev",
22+
"clsx": "catalog:dev",
1623
"execa": "catalog:node",
17-
"glob": "catalog:node"
24+
"glob": "catalog:node",
25+
"tailwind-merge": "catalog:dev",
26+
"tailwind-variants": "catalog:dev",
27+
"tailwindcss": "catalog:dev",
28+
"tw-animate-css": "catalog:dev",
29+
"vue-tsc": "catalog:tools"
1830
},
1931
"dependencies": {
2032
"@babel/runtime": "catalog:prod",
2133
"@dolphin/common": "workspace:^",
2234
"@dolphin/lark": "workspace:^",
35+
"@tanstack/vue-query": "catalog:prod",
36+
"@vee-validate/zod": "catalog:prod",
37+
"@vueuse/core": "catalog:prod",
2338
"@zip.js/zip.js": "catalog:prod",
2439
"browser-fs-access": "catalog:network",
40+
"class-variance-authority": "catalog:prod",
2541
"es-toolkit": "catalog:prod",
2642
"filenamify": "catalog:prod",
2743
"i18next": "catalog:i18n",
44+
"lucide-vue-next": "catalog:prod",
2845
"radash": "catalog:prod",
29-
"serialize-error": "catalog:prod"
46+
"reka-ui": "catalog:prod",
47+
"serialize-error": "catalog:prod",
48+
"vee-validate": "catalog:prod",
49+
"vue": "catalog:prod",
50+
"vue-i18n": "catalog:prod",
51+
"vue-router": "catalog:prod",
52+
"zod": "catalog:prod"
3053
},
3154
"browserslist": [
3255
"defaults and fully supports es6-module"

apps/chrome-extension/popup.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Cloud Document Converter Popup</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/pages/popup/main.ts"></script>
12+
</body>
13+
</html>
Lines changed: 30 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)