Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
390abc6
chore: init
antfu Jul 23, 2021
687c854
chore: mvp
antfu Jul 23, 2021
310373a
wip: dev stub
antfu Jul 23, 2021
c4ef854
feat: use vite server with HMR on dev
antfu Jul 23, 2021
315ed2c
docs: add readme
antfu Jul 23, 2021
b72200f
chore: fix links
antfu Jul 23, 2021
885efe9
chore: update deps
antfu Jul 23, 2021
73811a0
chore: update config
antfu Jul 23, 2021
bd87c0e
chore: clean up
antfu Jul 23, 2021
405347f
feat: storage demo
antfu Jul 23, 2021
1691e7f
feat: setup crx-bridge
antfu Jul 23, 2021
a86656c
fix: swtich to webext-bridge
antfu Jul 23, 2021
ef2898f
chore: update deps
antfu Jul 23, 2021
71562b1
chore: update readme
antfu Jul 23, 2021
9d12434
fix(command): vitess -> vitesse (#1)
Jul 24, 2021
d9de584
chore: update readme
antfu Jul 24, 2021
d5c74f3
Update README.md
antfu Jul 24, 2021
0359d25
chore: update readme
antfu Jul 24, 2021
66bbbd2
chore: align images
antfu Jul 24, 2021
fa287dd
chore: format manifest.json
antfu Jul 24, 2021
6893e37
feat: upgrade webext-bridg
antfu Jul 24, 2021
cf97c09
feat: dynamic manifest.json
antfu Jul 24, 2021
3cc3255
fix: add message when vite does not start
antfu Jul 24, 2021
c2fd6bb
fix: build
antfu Jul 24, 2021
d9e7109
docs: add credits
antfu Jul 26, 2021
d86aa20
docs: update
antfu Jul 26, 2021
2a7591a
feat: minify for production (#7)
ntnyq Aug 6, 2021
e964526
Revert "feat: minify for production" (#9)
antfu Aug 7, 2021
95ee614
fix: write manifest with latest config (#11)
tmkx Aug 16, 2021
c8fedca
refactor: migrate to webextension-polyfill (#15)
tmkx Aug 18, 2021
7dd74dc
fix: capture example error (#13)
tmkx Aug 18, 2021
d2fa578
feat: enable sourcemap in dev mode, minify code in production (#12)
tmkx Aug 18, 2021
674d7fd
chore: update deps
antfu Aug 18, 2021
b6328d6
feat: background HMR on dev (#16)
tshemeng Aug 20, 2021
03331ea
refactor: restructure folders
antfu Aug 20, 2021
a7cc5c5
fix: reload manifest.ts module on watch (#21)
Andarist Aug 24, 2021
ba093a4
feat: content scripts vue support (#20)
wensonsmith Aug 24, 2021
2926c31
chore: update deps
antfu Aug 24, 2021
a3f4a78
fix: use shadow dom to attach context vue, thanks to @tshemeng
antfu Aug 24, 2021
25d3bc5
fix: manifest updates
antfu Aug 24, 2021
b2991d4
fix: use unplugin-auto-import instead of vue-global-api
antfu Aug 24, 2021
eb782ca
fix: downgrade vite temporary
antfu Aug 24, 2021
3ad1f2d
fix: context script dev watch
antfu Aug 24, 2021
98d258a
fix: change back to non-shadow mount
antfu Aug 24, 2021
4949e5d
fix: avoid windicss preflight population
antfu Aug 24, 2021
01b544b
fix: disable preflight for context script
antfu Aug 24, 2021
50f96ca
fix: improve hmr for content script
antfu Aug 24, 2021
70da7f7
chore: update content vue style
antfu Aug 24, 2021
084c686
feat: add build:crx, pack extension to extension.crx (#23)
tshemeng Aug 25, 2021
2b516ce
chore: update .gitignore (#22)
tshemeng Aug 25, 2021
d4507b2
fix: @vite/env transform, close #19
antfu Aug 25, 2021
01de819
chore: update lock
antfu Aug 25, 2021
021fba5
fix: remove delete cache statement (#24)
tmkx Aug 25, 2021
8f102b7
fix: readme layout error (#25)
tmkx Aug 25, 2021
db9793d
feat: use shadow dom to attach context vue (#26)
tshemeng Aug 30, 2021
7be0109
feat: migrate to unplugins
antfu Aug 30, 2021
2d3dc39
feat: auto-import browser instance
antfu Aug 30, 2021
33bb403
chore: update vite (#29)
tmkx Sep 1, 2021
2599f0a
feat: add `web-ext` for development and pack (#28)
tshemeng Sep 2, 2021
e0b1ea4
fix: move define to shared config (#30)
tmkx Sep 2, 2021
73be4a4
fix: contentscript inject ignores the browser's built-in urls
tshemeng Sep 4, 2021
5131973
feat: add `isForbiddenUrl` to filter the url injected by contentscrip…
tshemeng Sep 4, 2021
f665a94
chore: update deps
antfu Sep 7, 2021
e81a459
chore: cleanup
antfu Sep 7, 2021
a8b7ec3
chore: update deps
antfu Sep 8, 2021
2157c28
docs: update development guide
antfu Sep 12, 2021
6abae01
fix: relative to assets dir (#36)
tmkx Sep 22, 2021
af4f35b
chore: update deps, close #37
antfu Sep 29, 2021
8d98f92
fix: vite config base (#38)
tmkx Oct 2, 2021
6c844b9
fix: change lib output mode (#40)
tmkx Oct 4, 2021
8696f8e
feat: base _blank to open links in new window (#44)
privatenumber Oct 21, 2021
75cbd67
fix: ts not assignable (#47)
tmkx Oct 30, 2021
98414df
fix: remove a redundant strictNullChecks of tsconfig.json (#48)
teppeis Nov 13, 2021
76e5ae5
fix: unspecify includes in contentscript watch (#50)
privatenumber Nov 24, 2021
dda10b3
fix: use `storage.local` instead of `Window.localstorage` (#58)
hankolsen Jan 4, 2022
9b140a6
chore: update `@types/webextension-polyfill` version (#60)
yingpengsha Jan 10, 2022
e63b9c3
fix: auto import webextension-polyfill (#64)
tmkx Feb 5, 2022
00fac5b
fix: pack the correct .zip file (#68)
zgayjjf Mar 1, 2022
7b06a11
fix: typo (#69)
dongido001 Mar 6, 2022
474109f
chore: update deps (#73)
tmkx Apr 15, 2022
fc8da5a
chore: update lint script (#74)
tmkx Apr 16, 2022
229ce98
feat: add assets folder in src (#75)
Elliot67 Apr 17, 2022
b676ddf
feat: integrate vitest (#76)
tmkx Apr 20, 2022
0226bbb
chore: update volar id (#77)
ziloen May 8, 2022
dd4bae7
fix: volar needs "jsx": "preserve" in tsconfig (#78)
ziloen May 8, 2022
59660aa
chore: update deps, close #87
antfu Aug 24, 2022
0d379ff
chore: update deps
antfu Oct 10, 2022
56829bf
feat: use UnoCSS
antfu Oct 10, 2022
16a182d
docs: update Volta logo (#93)
atinux Oct 12, 2022
513efc9
chore: deleted redundant lines (#100)
AbdullahAleiti Nov 8, 2022
93f94f4
docs: fix UnoCSS in readme (#103)
ManUtopiK Nov 17, 2022
67431ea
fix vite@3+ library mode not working (#105)
jsiwa Nov 22, 2022
1f9532e
chore: use "development" NODE_ENV in dev (#107)
tmkx Nov 23, 2022
6ced6dc
fix: @vueuse/core not export StorageAsyncOptions type, the correct is…
jsiwa Nov 27, 2022
7a53ddf
chore: remove `listenToStorageChanges: true`. It's true by default. (…
ManUtopiK Dec 13, 2022
f26b7e1
feat: shared component with context (#109)
ManUtopiK Dec 20, 2022
1a28a25
clean repo
iphilgood Jan 8, 2023
e2adbd7
add from remote
iphilgood Jan 8, 2023
14f4fbe
Merge remote-tracking branch 'template/main' into chores/update-from-…
iphilgood Jan 8, 2023
8c06b61
update package.json and README.md
iphilgood Jan 8, 2023
c8dbf9d
install clipboard polyfill
iphilgood Jan 8, 2023
2499f99
sync with old changes
iphilgood Jan 8, 2023
a5b41c9
update manifest
iphilgood Jan 8, 2023
1562e04
add custom colors
iphilgood Jan 8, 2023
c1b537b
fix logo icon
iphilgood Jan 8, 2023
e27ab95
fix extension icon
iphilgood Jan 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"extends": [
"@antfu",
"plugin:prettier/recommended"
]
"extends": "@antfu"
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
shamefully-hoist=true
auto-install-peers=true
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"recommendations": [
"johnsoncodehk.volar",
"vue.volar",
"antfu.iconify",
"dbaeumer.vscode-eslint",
"voorjaar.windicss-intellisense",
Expand Down
9 changes: 4 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"cSpell.words": ["Vitesse"],
"typescript.tsdk": "node_modules/typescript/lib",
"volar.tsPlugin": true,
"volar.tsPluginStatus": false,
"vite.autoStart": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.eslint": true
},
"files.associations": {
"*.css": "postcss",
},
"*.css": "postcss"
}
}
10 changes: 10 additions & 0 deletions modules.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$app: {
context: string
}
}
}

// https://stackoverflow.com/a/64189046/479957
export {}
64 changes: 33 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "0.1.1",
"description": "Copies links of an Axosoft item to easily share",
"private": true,
"packageManager": "[email protected]",
"scripts": {
"dev": "npm run clear && cross-env NODE_ENV=development run-p dev:*",
"dev:prepare": "esno scripts/prepare.ts",
Expand All @@ -14,50 +15,51 @@
"build:web": "vite build",
"build:js": "vite build --config vite.config.content.ts",
"pack": "cross-env NODE_ENV=production run-p pack:*",
"pack:zip": "rimraf extension.zip && jszip-cli add extension -o ./extension.zip",
"pack:zip": "rimraf extension.zip && jszip-cli add extension/* -o ./extension.zip",
"pack:crx": "crx pack extension -o ./extension.crx",
"pack:xpi": "cross-env WEB_EXT_ARTIFACTS_DIR=./ web-ext build --source-dir ./extension --filename extension.xpi --overwrite-dest",
"start:chromium": "web-ext run --source-dir ./extension --target=chromium",
"start:firefox": "web-ext run --source-dir ./extension --target=firefox-desktop",
"clear": "rimraf extension/dist extension/manifest.json extension.*",
"lint": "eslint 'src/**/*.{json,ts,js,vue}'",
"lint:fix": "eslint 'src/**/*.{json,ts,js,vue}' --fix"
"lint": "eslint .",
"test": "vitest test"
},
"devDependencies": {
"@antfu/eslint-config": "^0.9.0",
"@ffflorian/jszip-cli": "^3.1.5",
"@iconify/json": "^1.1.408",
"@antfu/eslint-config": "^0.31.0",
"@ffflorian/jszip-cli": "^3.1.6",
"@iconify/json": "^2.1.142",
"@types/fs-extra": "^9.0.13",
"@types/node": "^16.10.2",
"@types/webextension-polyfill": "^0.8.2",
"@typescript-eslint/eslint-plugin": "^4.32.0",
"@vitejs/plugin-vue": "^1.9.2",
"@vue/compiler-sfc": "^3.2.19",
"@vueuse/core": "^7.5.1",
"chokidar": "^3.5.2",
"@types/node": "^18.11.9",
"@types/webextension-polyfill": "^0.9.1",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@unocss/reset": "^0.46.5",
"@vitejs/plugin-vue": "^3.2.0",
"@vue/compiler-sfc": "^3.2.45",
"@vue/test-utils": "^2.2.4",
"@vueuse/core": "^9.6.0",
"chokidar": "^3.5.3",
"clipboard-polyfill": "^3.0.3",
"cross-env": "^7.0.3",
"crx": "^5.0.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"esno": "^0.10.0",
"fs-extra": "^10.0.0",
"kolorist": "^1.5.0",
"eslint": "^8.28.0",
"esno": "^0.16.3",
"fs-extra": "^10.1.0",
"jsdom": "^20.0.3",
"kolorist": "^1.6.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"tinykeys": "^1.3.0",
"typescript": "^4.4.3",
"unplugin-auto-import": "^0.5.11",
"unplugin-icons": "^0.11.4",
"unplugin-vue-components": "^0.15.4",
"vite": "^2.6.2",
"vite-plugin-windicss": "^1.4.8",
"vue": "^3.2.19",
"vue-demi": "^0.11.4",
"web-ext": "^6.4.0",
"webext-bridge": "^5.0.0",
"webextension-polyfill": "^0.8.0"
"typescript": "^4.9.3",
"unocss": "^0.46.5",
"unplugin-auto-import": "^0.11.5",
"unplugin-icons": "^0.14.14",
"unplugin-vue-components": "^0.22.11",
"vite": "^3.2.4",
"vitest": "^0.25.3",
"vue": "^3.2.45",
"vue-demi": "^0.13.11",
"web-ext": "^7.3.1",
"webext-bridge": "^5.0.5",
"webextension-polyfill": "^0.10.0"
}
}
Loading