create-packer 1.41.5 → 1.41.7
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.
- package/package.json +2 -1
- package/template/web-app/react-rsbuild/package.json +2 -2
- package/template/web-app/react-rsbuild/pages/home/view.tsx +11 -11
- package/template/web-app/react-vite/package.json +79 -79
- package/template/web-app/svelte/.svelte-kit/generated/client/nodes/0.js +1 -1
- package/template/web-app/svelte/.svelte-kit/generated/client/nodes/1.js +1 -1
- package/template/web-app/svelte/.svelte-kit/generated/server/internal.js +49 -49
- package/template/web-app/svelte/.svelte-kit/tsconfig.json +6 -0
- package/template/web-app/svelte/eslint.config.js +88 -95
- package/template/web-app/svelte/package.json +1 -0
- package/template/web-app/svelte/svelte.config.js +8 -2
- package/template/web-app/svelte/tsconfig.json +21 -21
- package/template/web-extension/package.json +85 -85
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-packer",
|
|
3
|
-
"version": "1.41.
|
|
3
|
+
"version": "1.41.7",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": "https://github.com/kevily/create-packer",
|
|
6
6
|
"author": "1k <bug_zero@163.com>",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@types/node": "16.4.7",
|
|
34
34
|
"commitizen": "4.3.0",
|
|
35
35
|
"eslint": "9.17.0",
|
|
36
|
+
"globals": "15.12.0",
|
|
36
37
|
"prettier": "3.2.5",
|
|
37
38
|
"rimraf": "3.0.2",
|
|
38
39
|
"typescript": "5.7.2",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"axios": "1.7.9",
|
|
23
23
|
"cross-env": "7.0.3",
|
|
24
|
-
"define-zustand": "3.
|
|
24
|
+
"define-zustand": "3.2.0",
|
|
25
25
|
"immer": "10.0.1",
|
|
26
26
|
"lodash-es": "4.17.21",
|
|
27
27
|
"qs": "6.11.2",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-use": "17.5.0",
|
|
32
32
|
"styled-components": "6.1.11",
|
|
33
33
|
"type-fest": "4.33.0",
|
|
34
|
-
"zustand": "
|
|
34
|
+
"zustand": "5.0.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@commitlint/cli": "17.6.1",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useAsync } from 'react-use'
|
|
2
|
-
import { fetchHomeData } from '@/shared/service'
|
|
3
|
-
import { StyledRoot } from './view.styled'
|
|
4
|
-
|
|
5
|
-
export default function Home() {
|
|
6
|
-
const homeData = useAsync(fetchHomeData)
|
|
7
|
-
|
|
8
|
-
console.log('data', homeData.value)
|
|
9
|
-
|
|
10
|
-
return <StyledRoot>sdfs</StyledRoot>
|
|
11
|
-
}
|
|
1
|
+
import { useAsync } from 'react-use'
|
|
2
|
+
import { fetchHomeData } from '@/shared/service'
|
|
3
|
+
import { StyledRoot } from './view.styled'
|
|
4
|
+
|
|
5
|
+
export default function Home() {
|
|
6
|
+
const homeData = useAsync(fetchHomeData)
|
|
7
|
+
|
|
8
|
+
console.log('data', homeData.value)
|
|
9
|
+
|
|
10
|
+
return <StyledRoot>sdfs</StyledRoot>
|
|
11
|
+
}
|
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-vite",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"prepare": "husky install",
|
|
8
|
-
"dev": "vite",
|
|
9
|
-
"build": "tsc --noEmit && vite build",
|
|
10
|
-
"build:analyse": "tsc --noEmit && vite build --mode analyse",
|
|
11
|
-
"preview": "vite preview",
|
|
12
|
-
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
13
|
-
"format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
14
|
-
"lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
|
|
15
|
-
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
|
|
16
|
-
"cz": "cz",
|
|
17
|
-
"push": "npm run commit && git push",
|
|
18
|
-
"commit": "git add . && npm run cz"
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"axios": "1.7.9",
|
|
22
|
-
"define-zustand": "3.
|
|
23
|
-
"immer": "10.0.1",
|
|
24
|
-
"lodash-es": "4.17.21",
|
|
25
|
-
"qs": "6.11.2",
|
|
26
|
-
"react": "18.3.1",
|
|
27
|
-
"react-dom": "18.3.1",
|
|
28
|
-
"react-router-dom": "6.14.0",
|
|
29
|
-
"react-use": "17.5.0",
|
|
30
|
-
"styled-components": "6.1.11",
|
|
31
|
-
"type-fest": "4.33.0",
|
|
32
|
-
"zustand": "
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@commitlint/cli": "17.6.1",
|
|
36
|
-
"@commitlint/config-conventional": "17.6.1",
|
|
37
|
-
"@commitlint/cz-commitlint": "17.5.0",
|
|
38
|
-
"@eslint/js": "9.15.0",
|
|
39
|
-
"@faker-js/faker": "8.4.1",
|
|
40
|
-
"@types/lodash-es": "4.17.12",
|
|
41
|
-
"@types/node": "18.16.0",
|
|
42
|
-
"@types/qs": "6.9.7",
|
|
43
|
-
"@types/react": "18.3.3",
|
|
44
|
-
"@types/react-dom": "18.3.0",
|
|
45
|
-
"@vitejs/plugin-react": "4.3.4",
|
|
46
|
-
"autoprefixer": "10.4.14",
|
|
47
|
-
"babel-plugin-styled-components": "2.1.4",
|
|
48
|
-
"commitizen": "4.3.0",
|
|
49
|
-
"cssnano": "6.0.0",
|
|
50
|
-
"eslint": "9.17.0",
|
|
51
|
-
"eslint-import-resolver-typescript": "3.7.0",
|
|
52
|
-
"eslint-plugin-import": "2.31.0",
|
|
53
|
-
"eslint-plugin-react": "7.37.2",
|
|
54
|
-
"eslint-plugin-react-hooks": "5.1.0",
|
|
55
|
-
"globals": "15.12.0",
|
|
56
|
-
"husky": "9.1.6",
|
|
57
|
-
"inquirer": "^8.1.2",
|
|
58
|
-
"postcss": "8.4.35",
|
|
59
|
-
"postcss-import": "16.0.1",
|
|
60
|
-
"postcss-nesting": "12.0.3",
|
|
61
|
-
"postcss-styled-syntax": "0.6.4",
|
|
62
|
-
"prettier": "3.2.5",
|
|
63
|
-
"rollup-plugin-visualizer": "5.12.0",
|
|
64
|
-
"stylelint": "16.10.0",
|
|
65
|
-
"stylelint-config-standard": "36.0.1",
|
|
66
|
-
"typescript": "5.7.2",
|
|
67
|
-
"typescript-eslint": "8.15.0",
|
|
68
|
-
"vite": "6.0.7",
|
|
69
|
-
"vite-plugin-checker": "0.8.0",
|
|
70
|
-
"vite-plugin-mock-dev-server": "1.8.3",
|
|
71
|
-
"vite-plugin-stylelint": "6.0.0",
|
|
72
|
-
"vite-plugin-svgr": "4.3.0"
|
|
73
|
-
},
|
|
74
|
-
"config": {
|
|
75
|
-
"commitizen": {
|
|
76
|
-
"path": "@commitlint/cz-commitlint"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "react-vite",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepare": "husky install",
|
|
8
|
+
"dev": "vite",
|
|
9
|
+
"build": "tsc --noEmit && vite build",
|
|
10
|
+
"build:analyse": "tsc --noEmit && vite build --mode analyse",
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
13
|
+
"format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
14
|
+
"lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
|
|
15
|
+
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
|
|
16
|
+
"cz": "cz",
|
|
17
|
+
"push": "npm run commit && git push",
|
|
18
|
+
"commit": "git add . && npm run cz"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"axios": "1.7.9",
|
|
22
|
+
"define-zustand": "3.2.0",
|
|
23
|
+
"immer": "10.0.1",
|
|
24
|
+
"lodash-es": "4.17.21",
|
|
25
|
+
"qs": "6.11.2",
|
|
26
|
+
"react": "18.3.1",
|
|
27
|
+
"react-dom": "18.3.1",
|
|
28
|
+
"react-router-dom": "6.14.0",
|
|
29
|
+
"react-use": "17.5.0",
|
|
30
|
+
"styled-components": "6.1.11",
|
|
31
|
+
"type-fest": "4.33.0",
|
|
32
|
+
"zustand": "5.0.3"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@commitlint/cli": "17.6.1",
|
|
36
|
+
"@commitlint/config-conventional": "17.6.1",
|
|
37
|
+
"@commitlint/cz-commitlint": "17.5.0",
|
|
38
|
+
"@eslint/js": "9.15.0",
|
|
39
|
+
"@faker-js/faker": "8.4.1",
|
|
40
|
+
"@types/lodash-es": "4.17.12",
|
|
41
|
+
"@types/node": "18.16.0",
|
|
42
|
+
"@types/qs": "6.9.7",
|
|
43
|
+
"@types/react": "18.3.3",
|
|
44
|
+
"@types/react-dom": "18.3.0",
|
|
45
|
+
"@vitejs/plugin-react": "4.3.4",
|
|
46
|
+
"autoprefixer": "10.4.14",
|
|
47
|
+
"babel-plugin-styled-components": "2.1.4",
|
|
48
|
+
"commitizen": "4.3.0",
|
|
49
|
+
"cssnano": "6.0.0",
|
|
50
|
+
"eslint": "9.17.0",
|
|
51
|
+
"eslint-import-resolver-typescript": "3.7.0",
|
|
52
|
+
"eslint-plugin-import": "2.31.0",
|
|
53
|
+
"eslint-plugin-react": "7.37.2",
|
|
54
|
+
"eslint-plugin-react-hooks": "5.1.0",
|
|
55
|
+
"globals": "15.12.0",
|
|
56
|
+
"husky": "9.1.6",
|
|
57
|
+
"inquirer": "^8.1.2",
|
|
58
|
+
"postcss": "8.4.35",
|
|
59
|
+
"postcss-import": "16.0.1",
|
|
60
|
+
"postcss-nesting": "12.0.3",
|
|
61
|
+
"postcss-styled-syntax": "0.6.4",
|
|
62
|
+
"prettier": "3.2.5",
|
|
63
|
+
"rollup-plugin-visualizer": "5.12.0",
|
|
64
|
+
"stylelint": "16.10.0",
|
|
65
|
+
"stylelint-config-standard": "36.0.1",
|
|
66
|
+
"typescript": "5.7.2",
|
|
67
|
+
"typescript-eslint": "8.15.0",
|
|
68
|
+
"vite": "6.0.7",
|
|
69
|
+
"vite-plugin-checker": "0.8.0",
|
|
70
|
+
"vite-plugin-mock-dev-server": "1.8.3",
|
|
71
|
+
"vite-plugin-stylelint": "6.0.0",
|
|
72
|
+
"vite-plugin-svgr": "4.3.0"
|
|
73
|
+
},
|
|
74
|
+
"config": {
|
|
75
|
+
"commitizen": {
|
|
76
|
+
"path": "@commitlint/cz-commitlint"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as component } from "../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@
|
|
1
|
+
export { default as component } from "../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_xdczk5zhuqhlile6flpchfvz6e/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/layout.svelte";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as component } from "../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@
|
|
1
|
+
export { default as component } from "../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_xdczk5zhuqhlile6flpchfvz6e/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte";
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
import root from '../root.js';
|
|
3
|
-
import { set_building, set_prerendering } from '__sveltekit/environment';
|
|
4
|
-
import { set_assets } from '__sveltekit/paths';
|
|
5
|
-
import { set_manifest, set_read_implementation } from '__sveltekit/server';
|
|
6
|
-
import { set_private_env, set_public_env, set_safe_public_env } from '../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@
|
|
7
|
-
|
|
8
|
-
export const options = {
|
|
9
|
-
app_dir: "_app",
|
|
10
|
-
app_template_contains_nonce: false,
|
|
11
|
-
csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
|
|
12
|
-
csrf_check_origin: true,
|
|
13
|
-
embedded: false,
|
|
14
|
-
env_public_prefix: 'PUBLIC_',
|
|
15
|
-
env_private_prefix: '',
|
|
16
|
-
hash_routing: false,
|
|
17
|
-
hooks: null, // added lazily, via `get_hooks`
|
|
18
|
-
preload_strategy: "modulepreload",
|
|
19
|
-
root,
|
|
20
|
-
service_worker: false,
|
|
21
|
-
templates: {
|
|
22
|
-
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\r\n<html lang=\"en\">\r\n\t<head>\r\n\t\t<meta charset=\"utf-8\" />\r\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\r\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\r\n\t\t" + head + "\r\n\t</head>\r\n\t<body data-sveltekit-preload-data=\"hover\">\r\n\t\t<div style=\"display: contents\">" + body + "</div>\r\n\t</body>\r\n</html>\r\n",
|
|
23
|
-
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
|
24
|
-
},
|
|
25
|
-
version_hash: "
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export async function get_hooks() {
|
|
29
|
-
let handle;
|
|
30
|
-
let handleFetch;
|
|
31
|
-
let handleError;
|
|
32
|
-
let init;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
let reroute;
|
|
36
|
-
let transport;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return {
|
|
40
|
-
handle,
|
|
41
|
-
handleFetch,
|
|
42
|
-
handleError,
|
|
43
|
-
init,
|
|
44
|
-
reroute,
|
|
45
|
-
transport
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { set_assets, set_building, set_manifest, set_prerendering, set_private_env, set_public_env, set_read_implementation, set_safe_public_env };
|
|
1
|
+
|
|
2
|
+
import root from '../root.js';
|
|
3
|
+
import { set_building, set_prerendering } from '__sveltekit/environment';
|
|
4
|
+
import { set_assets } from '__sveltekit/paths';
|
|
5
|
+
import { set_manifest, set_read_implementation } from '__sveltekit/server';
|
|
6
|
+
import { set_private_env, set_public_env, set_safe_public_env } from '../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_xdczk5zhuqhlile6flpchfvz6e/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
|
|
7
|
+
|
|
8
|
+
export const options = {
|
|
9
|
+
app_dir: "_app",
|
|
10
|
+
app_template_contains_nonce: false,
|
|
11
|
+
csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
|
|
12
|
+
csrf_check_origin: true,
|
|
13
|
+
embedded: false,
|
|
14
|
+
env_public_prefix: 'PUBLIC_',
|
|
15
|
+
env_private_prefix: '',
|
|
16
|
+
hash_routing: false,
|
|
17
|
+
hooks: null, // added lazily, via `get_hooks`
|
|
18
|
+
preload_strategy: "modulepreload",
|
|
19
|
+
root,
|
|
20
|
+
service_worker: false,
|
|
21
|
+
templates: {
|
|
22
|
+
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\r\n<html lang=\"en\">\r\n\t<head>\r\n\t\t<meta charset=\"utf-8\" />\r\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\r\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\r\n\t\t" + head + "\r\n\t</head>\r\n\t<body data-sveltekit-preload-data=\"hover\">\r\n\t\t<div style=\"display: contents\">" + body + "</div>\r\n\t</body>\r\n</html>\r\n",
|
|
23
|
+
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
|
24
|
+
},
|
|
25
|
+
version_hash: "65cfhv"
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export async function get_hooks() {
|
|
29
|
+
let handle;
|
|
30
|
+
let handleFetch;
|
|
31
|
+
let handleError;
|
|
32
|
+
let init;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
let reroute;
|
|
36
|
+
let transport;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
handle,
|
|
41
|
+
handleFetch,
|
|
42
|
+
handleError,
|
|
43
|
+
init,
|
|
44
|
+
reroute,
|
|
45
|
+
transport
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { set_assets, set_building, set_manifest, set_prerendering, set_private_env, set_public_env, set_read_implementation, set_safe_public_env };
|
|
@@ -1,95 +1,88 @@
|
|
|
1
|
-
import eslint from '@eslint/js'
|
|
2
|
-
import globals from 'globals'
|
|
3
|
-
import tseslint from 'typescript-eslint'
|
|
4
|
-
import importPlugin from 'eslint-plugin-import'
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
'import/
|
|
40
|
-
'import/
|
|
41
|
-
'import/
|
|
42
|
-
'import/no-named-as-default': 'off',
|
|
43
|
-
'import/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
'
|
|
62
|
-
'@typescript-eslint/no-
|
|
63
|
-
'@typescript-eslint/no-
|
|
64
|
-
'@typescript-eslint/
|
|
65
|
-
'@typescript-eslint/
|
|
66
|
-
'@typescript-eslint/no-
|
|
67
|
-
'@typescript-eslint/no-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
'@typescript-eslint/
|
|
81
|
-
'@typescript-eslint/
|
|
82
|
-
'@typescript-eslint/
|
|
83
|
-
'@typescript-eslint/
|
|
84
|
-
'no-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
languageOptions: {
|
|
90
|
-
parserOptions: {
|
|
91
|
-
parser: ts.parser
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
])
|
|
1
|
+
import eslint from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import tseslint from 'typescript-eslint'
|
|
4
|
+
import importPlugin from 'eslint-plugin-import'
|
|
5
|
+
import svelte from 'eslint-plugin-svelte'
|
|
6
|
+
|
|
7
|
+
const scriptExtensions = ['js', 'jsx', 'mjs', 'cjs', 'ts', 'tsx']
|
|
8
|
+
const files = [...scriptExtensions.map(ext => `**/*.${ext}`), '**/*.svelte']
|
|
9
|
+
|
|
10
|
+
export default tseslint.config([
|
|
11
|
+
{
|
|
12
|
+
ignores: ['**/node_modules/', '**/dist/', '**/.history/', '**/.vscode/', 'vite.config.ts.*']
|
|
13
|
+
},
|
|
14
|
+
eslint.configs.recommended,
|
|
15
|
+
importPlugin.flatConfigs.recommended,
|
|
16
|
+
tseslint.configs.recommended,
|
|
17
|
+
...svelte.configs['flat/recommended'],
|
|
18
|
+
...svelte.configs['flat/prettier'],
|
|
19
|
+
{
|
|
20
|
+
files,
|
|
21
|
+
languageOptions: {
|
|
22
|
+
ecmaVersion: 2018,
|
|
23
|
+
sourceType: 'module',
|
|
24
|
+
globals: {
|
|
25
|
+
...globals.browser,
|
|
26
|
+
...globals.node
|
|
27
|
+
},
|
|
28
|
+
parserOptions: {
|
|
29
|
+
parser: tseslint.parser
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
settings: {
|
|
33
|
+
'import/resolver': {
|
|
34
|
+
typescript: true,
|
|
35
|
+
node: true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
rules: {
|
|
39
|
+
'import/export': 'off',
|
|
40
|
+
'import/namespace': 'off',
|
|
41
|
+
'import/default': 'off',
|
|
42
|
+
'import/no-named-as-default-member': 'off',
|
|
43
|
+
'import/no-named-as-default': 'off',
|
|
44
|
+
'import/order': [
|
|
45
|
+
'error',
|
|
46
|
+
{
|
|
47
|
+
groups: [
|
|
48
|
+
'builtin',
|
|
49
|
+
'external',
|
|
50
|
+
'internal',
|
|
51
|
+
'parent',
|
|
52
|
+
'sibling',
|
|
53
|
+
'index',
|
|
54
|
+
'object',
|
|
55
|
+
'type'
|
|
56
|
+
],
|
|
57
|
+
pathGroups: [{ pattern: 'svelte', group: 'external', position: 'before' }],
|
|
58
|
+
pathGroupsExcludedImportTypes: ['svelte']
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
'no-case-declarations': 'off',
|
|
62
|
+
'@typescript-eslint/no-unused-expressions': 'off',
|
|
63
|
+
'@typescript-eslint/no-empty-object-type': 'off',
|
|
64
|
+
'@typescript-eslint/no-var-requires': 'off',
|
|
65
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
66
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
67
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
68
|
+
'@typescript-eslint/no-inferrable-types': [
|
|
69
|
+
'warn',
|
|
70
|
+
{
|
|
71
|
+
ignoreParameters: true
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
'@typescript-eslint/no-unused-vars': [
|
|
75
|
+
'warn',
|
|
76
|
+
{
|
|
77
|
+
argsIgnorePattern: '^_'
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
'@typescript-eslint/member-delimiter-style': 'off',
|
|
81
|
+
'@typescript-eslint/class-name-casing': 'off',
|
|
82
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
83
|
+
'@typescript-eslint/ban-ts-comment': 'off',
|
|
84
|
+
'@typescript-eslint/no-empty-interface': 'off',
|
|
85
|
+
'no-constant-condition': 'off'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
])
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import adapter from '@sveltejs/adapter-auto'
|
|
2
2
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
|
|
3
|
+
import path from 'path'
|
|
4
|
+
import { fileURLToPath } from 'url'
|
|
3
5
|
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
7
|
+
const __dirname = path.dirname(__filename)
|
|
4
8
|
// This config is ignored and replaced with one of the configs in the shared folder when a project is created.
|
|
5
9
|
|
|
6
10
|
/** @type {import('@sveltejs/kit').Config} */
|
|
@@ -8,9 +12,11 @@ const config = {
|
|
|
8
12
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
9
13
|
// for more information about preprocessors
|
|
10
14
|
preprocess: vitePreprocess(),
|
|
11
|
-
|
|
12
15
|
kit: {
|
|
13
|
-
adapter: adapter()
|
|
16
|
+
adapter: adapter(),
|
|
17
|
+
alias: {
|
|
18
|
+
'@': path.join(__dirname, 'src')
|
|
19
|
+
}
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
22
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./.svelte-kit/tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"strictNullChecks": true,
|
|
6
|
-
"checkJs": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"resolveJsonModule": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"strict": true,
|
|
13
|
-
"paths": {
|
|
14
|
-
"@/*": ["./*"]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
|
|
18
|
-
//
|
|
19
|
-
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
|
|
20
|
-
// from the referenced tsconfig.json - TypeScript does not merge them in
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./.svelte-kit/tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowJs": true,
|
|
5
|
+
"strictNullChecks": true,
|
|
6
|
+
"checkJs": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"paths": {
|
|
14
|
+
"@/*": ["./*"]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
|
|
18
|
+
//
|
|
19
|
+
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
|
|
20
|
+
// from the referenced tsconfig.json - TypeScript does not merge them in
|
|
21
|
+
}
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "web-extension",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"prepare": "husky install",
|
|
8
|
-
"dev": "wxt",
|
|
9
|
-
"dev:firefox": "wxt -b firefox",
|
|
10
|
-
"build": "wxt build",
|
|
11
|
-
"build_dev": "wxt build --mode dev",
|
|
12
|
-
"build:firefox": "wxt build -b firefox",
|
|
13
|
-
"build_dev:firefox": "wxt build -b firefox --mode dev",
|
|
14
|
-
"zip": "wxt zip",
|
|
15
|
-
"zip_dev": "wxt zip --mode dev",
|
|
16
|
-
"zip:firefox": "wxt zip -b firefox",
|
|
17
|
-
"zip_dev:firefox": "wxt zip -b firefox --mode dev",
|
|
18
|
-
"postinstall": "wxt prepare",
|
|
19
|
-
"up:vite": "pnpm up vite @vitejs/* -L",
|
|
20
|
-
"format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
21
|
-
"lint": "tsc --noEmit && eslint && stylelint **/*.{css,scss,less}",
|
|
22
|
-
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less} --fix",
|
|
23
|
-
"cz": "cz",
|
|
24
|
-
"push": "npm run commit && git push",
|
|
25
|
-
"commit": "git add . && npm run cz"
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@tanstack/react-query": "5.51.15",
|
|
29
|
-
"axios": "1.7.9",
|
|
30
|
-
"define-zustand": "3.
|
|
31
|
-
"immer": "10.0.1",
|
|
32
|
-
"lodash-es": "4.17.21",
|
|
33
|
-
"qs": "6.11.2",
|
|
34
|
-
"react": "18.3.1",
|
|
35
|
-
"react-dom": "18.3.1",
|
|
36
|
-
"styled-components": "6.1.11",
|
|
37
|
-
"type-fest": "4.33.0",
|
|
38
|
-
"zustand": "
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@commitlint/cli": "17.6.1",
|
|
42
|
-
"@commitlint/config-conventional": "17.6.1",
|
|
43
|
-
"@commitlint/cz-commitlint": "17.5.0",
|
|
44
|
-
"@eslint/js": "9.15.0",
|
|
45
|
-
"@types/chrome": "0.0.254",
|
|
46
|
-
"@types/lodash-es": "4.17.12",
|
|
47
|
-
"@types/node": "18.16.0",
|
|
48
|
-
"@types/qs": "6.9.7",
|
|
49
|
-
"@types/react": "18.3.3",
|
|
50
|
-
"@types/react-dom": "18.3.0",
|
|
51
|
-
"@vitejs/plugin-react": "4.3.4",
|
|
52
|
-
"autoprefixer": "10.4.14",
|
|
53
|
-
"babel-plugin-styled-components": "2.1.4",
|
|
54
|
-
"commitizen": "4.3.0",
|
|
55
|
-
"cssnano": "6.0.0",
|
|
56
|
-
"eslint": "9.17.0",
|
|
57
|
-
"eslint-import-resolver-typescript": "3.7.0",
|
|
58
|
-
"eslint-plugin-import": "2.31.0",
|
|
59
|
-
"eslint-plugin-react": "7.37.2",
|
|
60
|
-
"eslint-plugin-react-hooks": "5.1.0",
|
|
61
|
-
"globals": "15.12.0",
|
|
62
|
-
"husky": "9.1.6",
|
|
63
|
-
"inquirer": "^8.1.2",
|
|
64
|
-
"postcss": "8.4.31",
|
|
65
|
-
"postcss-import": "15.1.0",
|
|
66
|
-
"postcss-nesting": "11.2.2",
|
|
67
|
-
"postcss-scss": "4.0.9",
|
|
68
|
-
"postcss-styled-syntax": "0.6.4",
|
|
69
|
-
"prettier": "3.2.5",
|
|
70
|
-
"rimraf": "5.0.1",
|
|
71
|
-
"sass": "1.63.4",
|
|
72
|
-
"stylelint": "16.10.0",
|
|
73
|
-
"stylelint-config-standard": "36.0.1",
|
|
74
|
-
"typescript": "5.7.2",
|
|
75
|
-
"typescript-eslint": "8.15.0",
|
|
76
|
-
"vite": "6.0.7",
|
|
77
|
-
"vite-plugin-svgr": "4.3.0",
|
|
78
|
-
"wxt": "0.19.25"
|
|
79
|
-
},
|
|
80
|
-
"config": {
|
|
81
|
-
"commitizen": {
|
|
82
|
-
"path": "@commitlint/cz-commitlint"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "web-extension",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepare": "husky install",
|
|
8
|
+
"dev": "wxt",
|
|
9
|
+
"dev:firefox": "wxt -b firefox",
|
|
10
|
+
"build": "wxt build",
|
|
11
|
+
"build_dev": "wxt build --mode dev",
|
|
12
|
+
"build:firefox": "wxt build -b firefox",
|
|
13
|
+
"build_dev:firefox": "wxt build -b firefox --mode dev",
|
|
14
|
+
"zip": "wxt zip",
|
|
15
|
+
"zip_dev": "wxt zip --mode dev",
|
|
16
|
+
"zip:firefox": "wxt zip -b firefox",
|
|
17
|
+
"zip_dev:firefox": "wxt zip -b firefox --mode dev",
|
|
18
|
+
"postinstall": "wxt prepare",
|
|
19
|
+
"up:vite": "pnpm up vite @vitejs/* -L",
|
|
20
|
+
"format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
21
|
+
"lint": "tsc --noEmit && eslint && stylelint **/*.{css,scss,less}",
|
|
22
|
+
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less} --fix",
|
|
23
|
+
"cz": "cz",
|
|
24
|
+
"push": "npm run commit && git push",
|
|
25
|
+
"commit": "git add . && npm run cz"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@tanstack/react-query": "5.51.15",
|
|
29
|
+
"axios": "1.7.9",
|
|
30
|
+
"define-zustand": "3.2.0",
|
|
31
|
+
"immer": "10.0.1",
|
|
32
|
+
"lodash-es": "4.17.21",
|
|
33
|
+
"qs": "6.11.2",
|
|
34
|
+
"react": "18.3.1",
|
|
35
|
+
"react-dom": "18.3.1",
|
|
36
|
+
"styled-components": "6.1.11",
|
|
37
|
+
"type-fest": "4.33.0",
|
|
38
|
+
"zustand": "5.0.3"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@commitlint/cli": "17.6.1",
|
|
42
|
+
"@commitlint/config-conventional": "17.6.1",
|
|
43
|
+
"@commitlint/cz-commitlint": "17.5.0",
|
|
44
|
+
"@eslint/js": "9.15.0",
|
|
45
|
+
"@types/chrome": "0.0.254",
|
|
46
|
+
"@types/lodash-es": "4.17.12",
|
|
47
|
+
"@types/node": "18.16.0",
|
|
48
|
+
"@types/qs": "6.9.7",
|
|
49
|
+
"@types/react": "18.3.3",
|
|
50
|
+
"@types/react-dom": "18.3.0",
|
|
51
|
+
"@vitejs/plugin-react": "4.3.4",
|
|
52
|
+
"autoprefixer": "10.4.14",
|
|
53
|
+
"babel-plugin-styled-components": "2.1.4",
|
|
54
|
+
"commitizen": "4.3.0",
|
|
55
|
+
"cssnano": "6.0.0",
|
|
56
|
+
"eslint": "9.17.0",
|
|
57
|
+
"eslint-import-resolver-typescript": "3.7.0",
|
|
58
|
+
"eslint-plugin-import": "2.31.0",
|
|
59
|
+
"eslint-plugin-react": "7.37.2",
|
|
60
|
+
"eslint-plugin-react-hooks": "5.1.0",
|
|
61
|
+
"globals": "15.12.0",
|
|
62
|
+
"husky": "9.1.6",
|
|
63
|
+
"inquirer": "^8.1.2",
|
|
64
|
+
"postcss": "8.4.31",
|
|
65
|
+
"postcss-import": "15.1.0",
|
|
66
|
+
"postcss-nesting": "11.2.2",
|
|
67
|
+
"postcss-scss": "4.0.9",
|
|
68
|
+
"postcss-styled-syntax": "0.6.4",
|
|
69
|
+
"prettier": "3.2.5",
|
|
70
|
+
"rimraf": "5.0.1",
|
|
71
|
+
"sass": "1.63.4",
|
|
72
|
+
"stylelint": "16.10.0",
|
|
73
|
+
"stylelint-config-standard": "36.0.1",
|
|
74
|
+
"typescript": "5.7.2",
|
|
75
|
+
"typescript-eslint": "8.15.0",
|
|
76
|
+
"vite": "6.0.7",
|
|
77
|
+
"vite-plugin-svgr": "4.3.0",
|
|
78
|
+
"wxt": "0.19.25"
|
|
79
|
+
},
|
|
80
|
+
"config": {
|
|
81
|
+
"commitizen": {
|
|
82
|
+
"path": "@commitlint/cz-commitlint"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|