Skip to content

Commit f932fdb

Browse files
committed
fix: fix v2fly config builder
1 parent 7389b8a commit f932fdb

File tree

12 files changed

+6399
-8315
lines changed

12 files changed

+6399
-8315
lines changed

.eslintignore

-5
This file was deleted.

.eslintrc.js

-24
This file was deleted.

.github/workflows/main.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,26 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
11-
with:
12-
persist-credentials: false
13-
- uses: actions/setup-node@v2
10+
- uses: actions/checkout@v4
11+
12+
- uses: pnpm/action-setup@v4
13+
name: Install pnpm
1414
with:
15-
node-version: "16"
16-
- uses: pnpm/[email protected]
15+
version: 9
16+
run_install: false
17+
18+
- name: Install Node.js
19+
uses: actions/setup-node@v4
1720
with:
18-
version: 8
21+
node-version: 22
22+
cache: 'pnpm'
23+
registry-url: 'https://registry.npmjs.org'
24+
1925
- name: Build
2026
run: pnpm i && pnpm generate
2127
env:
2228
BASE: /transformers/
29+
2330
- name: Deploy to GitHub Pages
2431
uses: JamesIves/github-pages-deploy-action@releases/v3
2532
with:

.husky/pre-push

-4
This file was deleted.

.npmrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
engine-strict=true
2-
shamefully-hoist=true

components/v2ray/client.js

-146
This file was deleted.

components/v2ray/server.js

-74
This file was deleted.

jest.config.js

-9
This file was deleted.

nuxt.config.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,31 @@
22

33
export default defineNuxtConfig({
44
ssr: false,
5+
56
app: {
67
baseURL: process.env.BASE || '/',
78
head: {
89
title: 'Transformers',
910
},
1011
},
12+
1113
css: [
1214
'~/assets/css/default.css',
1315
],
16+
1417
postcss: {
1518
plugins: {
1619
'tailwindcss/nesting': {},
1720
tailwindcss: {},
1821
},
1922
},
23+
2024
vite: {
2125
define: {
2226
// patch for @iarna/toml
2327
'global.Date': 'window.Date',
2428
},
25-
}
26-
});
29+
},
30+
31+
compatibilityDate: '2024-10-30'
32+
});

package.json

+15-21
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,34 @@
66
"author": "Gerald <[email protected]>",
77
"license": "ISC",
88
"scripts": {
9-
"prepare": "husky install",
9+
"prepare": "husky",
1010
"dev": "nuxt dev",
1111
"build": "nuxt build",
1212
"generate": "nuxt generate",
1313
"preview": "nuxt preview",
14-
"postinstall": "nuxt prepare",
15-
"lint": "eslint --ext .js,.vue .",
16-
"test": "jest tests"
14+
"postinstall": "nuxt prepare"
1715
},
1816
"devDependencies": {
19-
"@gera2ld/plaid": "~2.5.9",
20-
"@gera2ld/plaid-common-ts": "~2.5.9",
21-
"@gera2ld/plaid-common-vue": "~2.5.9",
22-
"@gera2ld/plaid-test": "~2.5.9",
23-
"@nuxtjs/tailwindcss": "^6.7.0",
24-
"@types/js-yaml": "^4.0.5",
25-
"husky": "^8.0.3",
26-
"nuxt": "^3.5.1",
27-
"postcss": "^8.4.23",
28-
"postcss-nested": "^6.0.1"
29-
},
30-
"dependencies": {
3117
"@gera2ld/format-json": "^0.3.0",
3218
"@iarna/toml": "^2.2.5",
3319
"@nuxtjs/pwa": "^3.3.5",
34-
"@violentmonkey/shortcut": "^1.2.7",
35-
"codemirror": "^5.63.1",
20+
"@nuxtjs/tailwindcss": "^6.12.2",
21+
"@types/js-yaml": "^4.0.9",
22+
"@violentmonkey/shortcut": "^1.4.4",
23+
"codemirror": "^5.65.18",
24+
"common-lib": "gitlab:gera2ld/common-lib",
25+
"husky": "^9.1.6",
3626
"js-yaml": "^4.1.0",
3727
"json5": "^2.2.3",
3828
"lodash": "^4.17.21",
3929
"lodash-es": "^4.17.21",
40-
"otpauth": "^9.1.2",
41-
"plist": "^3.0.6",
30+
"nuxt": "^3.13.2",
31+
"otpauth": "^9.3.4",
32+
"plist": "^3.1.0",
33+
"postcss": "^8.4.47",
34+
"postcss-nested": "^6.2.0",
4235
"qrcanvas-vue": "^3.0.0",
43-
"vueleton": "^2.0.2"
36+
"vueleton": "^2.0.2",
37+
"yaml": "^2.6.0"
4438
}
4539
}

0 commit comments

Comments
 (0)