mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-12 06:10:58 +00:00
chore: bump frontend and Go dependencies
Updates multiple frontend packages (antd, react-hook-form, storybook, vite, swagger-ui-react, playwright, typescript-eslint, etc.) and Go dependencies (gopsutil, gorm postgres driver, pion/transport, ugorji/codec, genproto, and others). Also replaces `__dirname` with `import.meta.dirname` in vite.config.js for ESM compatibility.
This commit is contained in:
Generated
+605
-539
File diff suppressed because it is too large
Load Diff
+17
-17
@@ -30,11 +30,11 @@
|
||||
"@ant-design/icons": "^6.3.2",
|
||||
"@codemirror/lang-json": "^6.0.2",
|
||||
"@codemirror/theme-one-dark": "^6.1.3",
|
||||
"@hookform/resolvers": "^5.5.7",
|
||||
"@hookform/resolvers": "^5.7.1",
|
||||
"@noble/hashes": "^2.2.0",
|
||||
"@tanstack/react-query": "^5.101.4",
|
||||
"@tanstack/react-query-devtools": "^5.101.4",
|
||||
"antd": "^6.5.2",
|
||||
"antd": "^6.5.3",
|
||||
"codemirror": "^6.0.2",
|
||||
"dayjs": "^1.11.21",
|
||||
"i18next": "^26.3.6",
|
||||
@@ -42,40 +42,40 @@
|
||||
"persian-calendar-suite": "^1.5.5",
|
||||
"react": "^19.2.8",
|
||||
"react-dom": "^19.2.8",
|
||||
"react-hook-form": "^7.83.0",
|
||||
"react-hook-form": "^7.84.0",
|
||||
"react-i18next": "^17.0.11",
|
||||
"react-router": "^8.3.0",
|
||||
"swagger-ui-react": "^5.32.11",
|
||||
"swagger-ui-react": "^5.32.12",
|
||||
"uplot": "^1.6.32",
|
||||
"zod": "^4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@storybook/addon-a11y": "^10.5.5",
|
||||
"@storybook/addon-docs": "^10.5.5",
|
||||
"@storybook/addon-vitest": "^10.5.5",
|
||||
"@storybook/react-vite": "^10.5.5",
|
||||
"@storybook/addon-a11y": "^10.5.6",
|
||||
"@storybook/addon-docs": "^10.5.6",
|
||||
"@storybook/addon-vitest": "^10.5.6",
|
||||
"@storybook/react-vite": "^10.5.6",
|
||||
"@testing-library/dom": "^10.4.1",
|
||||
"@testing-library/react": "^16.3.2",
|
||||
"@types/react": "^19.2.17",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@types/react": "^19.2.18",
|
||||
"@types/react-dom": "^19.2.4",
|
||||
"@types/swagger-ui-react": "^5.18.0",
|
||||
"@vitejs/plugin-react": "^6.0.4",
|
||||
"@vitejs/plugin-react": "^6.0.5",
|
||||
"@vitest/browser-playwright": "4.1.10",
|
||||
"@vitest/coverage-v8": "^4.1.10",
|
||||
"eslint": "^10.8.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
"eslint-plugin-react-hooks": "^7.1.1",
|
||||
"globals": "^17.8.0",
|
||||
"globals": "^17.9.0",
|
||||
"husky": "^9.1.7",
|
||||
"jsdom": "^30.0.1",
|
||||
"lint-staged": "^17.2.0",
|
||||
"lint-staged": "^17.3.0",
|
||||
"msw": "^2.15.0",
|
||||
"playwright": "^1.62.0",
|
||||
"storybook": "^10.5.5",
|
||||
"playwright": "^1.62.1",
|
||||
"storybook": "^10.5.6",
|
||||
"typescript": "6.0.3",
|
||||
"typescript-eslint": "^8.65.0",
|
||||
"vite": "8.1.5",
|
||||
"typescript-eslint": "^8.66.0",
|
||||
"vite": "8.2.0",
|
||||
"vitest": "^4.1.10"
|
||||
},
|
||||
"overrides": {
|
||||
|
||||
@@ -4,7 +4,7 @@ import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { DatabaseSync } from 'node:sqlite';
|
||||
|
||||
const outDir = path.resolve(__dirname, '../internal/web/dist');
|
||||
const outDir = path.resolve(import.meta.dirname, '../internal/web/dist');
|
||||
const BACKEND_TARGET = 'http://localhost:2053';
|
||||
|
||||
function resolveDBPath() {
|
||||
@@ -12,12 +12,12 @@ function resolveDBPath() {
|
||||
if (envFolder) {
|
||||
const abs = path.isAbsolute(envFolder)
|
||||
? envFolder
|
||||
: path.resolve(__dirname, '..', envFolder);
|
||||
: path.resolve(import.meta.dirname, '..', envFolder);
|
||||
return path.join(abs, 'x-ui.db');
|
||||
}
|
||||
const repoSubDB = path.resolve(__dirname, '..', 'x-ui', 'x-ui.db');
|
||||
const repoSubDB = path.resolve(import.meta.dirname, '..', 'x-ui', 'x-ui.db');
|
||||
if (fs.existsSync(repoSubDB)) return repoSubDB;
|
||||
const repoDB = path.resolve(__dirname, '..', 'x-ui.db');
|
||||
const repoDB = path.resolve(import.meta.dirname, '..', 'x-ui.db');
|
||||
if (fs.existsSync(repoDB)) return repoDB;
|
||||
return '/etc/x-ui/x-ui.db';
|
||||
}
|
||||
@@ -54,7 +54,7 @@ function refreshBasePath() {
|
||||
|
||||
function readPanelVersion() {
|
||||
try {
|
||||
const versionFile = path.resolve(__dirname, '..', 'config', 'version');
|
||||
const versionFile = path.resolve(import.meta.dirname, '..', 'config', 'version');
|
||||
return fs.readFileSync(versionFile, 'utf8').trim();
|
||||
} catch (_e) {
|
||||
return '';
|
||||
@@ -155,7 +155,7 @@ export default defineConfig({
|
||||
plugins: [react(), injectBasePathPlugin(), rocketLoaderOptOutPlugin()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, 'src'),
|
||||
'@': path.resolve(import.meta.dirname, 'src'),
|
||||
},
|
||||
},
|
||||
experimental: {
|
||||
@@ -182,9 +182,9 @@ export default defineConfig({
|
||||
chunkSizeWarningLimit: 1500,
|
||||
rollupOptions: {
|
||||
input: {
|
||||
index: path.resolve(__dirname, 'index.html'),
|
||||
login: path.resolve(__dirname, 'login.html'),
|
||||
subpage: path.resolve(__dirname, 'subpage.html'),
|
||||
index: path.resolve(import.meta.dirname, 'index.html'),
|
||||
login: path.resolve(import.meta.dirname, 'login.html'),
|
||||
subpage: path.resolve(import.meta.dirname, 'subpage.html'),
|
||||
},
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
|
||||
Reference in New Issue
Block a user