fix: 修复错误的依赖

This commit is contained in:
贺海国
2025-10-24 14:12:59 +08:00
parent 9452d748aa
commit b70922e4d7
5 changed files with 92 additions and 102 deletions

View File

@@ -8,6 +8,18 @@ const nextConfig = {
}, },
transpilePackages: ['lucide-react'], transpilePackages: ['lucide-react'],
output: 'standalone', output: 'standalone',
// 修复CSS构建问题
experimental: {
// forceSwcTransforms: true,
turbo: {
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
as: '*.js',
},
},
},
},
}; };
export default nextConfig; export default nextConfig;

View File

@@ -14,7 +14,8 @@
"type-check": "tsc --noEmit", "type-check": "tsc --noEmit",
"scripts:setup": "node scripts/setup-dev-tools.js", "scripts:setup": "node scripts/setup-dev-tools.js",
"scripts:enable": "node scripts/setup-dev-tools.js --enable", "scripts:enable": "node scripts/setup-dev-tools.js --enable",
"scripts:disable": "node scripts/setup-dev-tools.js --disable" "scripts:disable": "node scripts/setup-dev-tools.js --disable",
"deploy": "node scripts/deploy.js"
}, },
"dependencies": { "dependencies": {
"@hookform/resolvers": "^5.2.2", "@hookform/resolvers": "^5.2.2",
@@ -71,6 +72,7 @@
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/vite": "^4.1.14", "@tailwindcss/vite": "^4.1.14",
"@tailwindcss/postcss": "^4",
"@types/node": "^20.10.0", "@types/node": "^20.10.0",
"@types/react": "^18.3.11", "@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1", "@types/react-dom": "^18.3.1",

View File

@@ -3,4 +3,4 @@ export default {
'@tailwindcss/postcss': {}, '@tailwindcss/postcss': {},
autoprefixer: {}, autoprefixer: {},
}, },
} }

View File

@@ -35,7 +35,9 @@ var config = {
axios(config) axios(config)
.then(function (response) { .then(function (response) {
console.log(JSON.stringify(response.data));
let url = `https://gitea-admin-argo-workflow-api-app.dev.maimaiag.com/api/v1/workflows/${response.data.name}/log`
console.log(`打开 ${url} 查看日志`);
}) })
.catch(function (error) { .catch(function (error) {
console.log(error); console.log(error);

View File

@@ -1,111 +1,85 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
import animatePlugin from 'tailwindcss-animate'; // Use ES Module import
export default { export default {
darkMode: ["class"],
content: [ content: [
'./pages/**/*.{ts,tsx}', './pages/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}', './components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}', './app/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}', './src/**/*.{ts,tsx}',
], ],
prefix: "",
theme: { theme: {
container: { extend: {
center: true, colors: {
padding: '2rem', border: 'hsl(var(--border))',
screens: { input: 'hsl(var(--input))',
'2xl': '1400px' ring: 'hsl(var(--ring))',
} background: 'hsl(var(--background))',
}, foreground: 'hsl(var(--foreground))',
extend: { primary: {
colors: { DEFAULT: 'hsl(var(--primary))',
border: 'hsl(var(--border))', foreground: 'hsl(var(--primary-foreground))'
input: 'hsl(var(--input))', },
ring: 'hsl(var(--ring))', secondary: {
background: 'hsl(var(--background))', DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--foreground))', foreground: 'hsl(var(--secondary-foreground))'
primary: { },
DEFAULT: 'hsl(var(--primary))', destructive: {
foreground: 'hsl(var(--primary-foreground))' DEFAULT: 'hsl(var(--destructive))',
}, foreground: 'hsl(var(--destructive-foreground))'
secondary: { },
DEFAULT: 'hsl(var(--secondary))', muted: {
foreground: 'hsl(var(--secondary-foreground))' DEFAULT: 'hsl(var(--muted))',
}, foreground: 'hsl(var(--muted-foreground))'
destructive: { },
DEFAULT: 'hsl(var(--destructive))', accent: {
foreground: 'hsl(var(--destructive-foreground))' DEFAULT: 'hsl(var(--accent))',
}, foreground: 'hsl(var(--accent-foreground))'
muted: { },
DEFAULT: 'hsl(var(--muted))', popover: {
foreground: 'hsl(var(--muted-foreground))' DEFAULT: 'hsl(var(--popover))',
}, foreground: 'hsl(var(--popover-foreground))'
accent: { },
DEFAULT: 'hsl(var(--accent))', card: {
foreground: 'hsl(var(--accent-foreground))' DEFAULT: 'hsl(var(--card))',
}, foreground: 'hsl(var(--card-foreground))'
popover: { },
DEFAULT: 'hsl(var(--popover))', chart: {
foreground: 'hsl(var(--popover-foreground))' '1': 'hsl(var(--chart-1))',
}, '2': 'hsl(var(--chart-2))',
card: { '3': 'hsl(var(--chart-3))',
DEFAULT: 'hsl(var(--card))', '4': 'hsl(var(--chart-4))',
foreground: 'hsl(var(--card-foreground))' '5': 'hsl(var(--chart-5))'
}, }
chart: { },
'1': 'hsl(var(--chart-1))', borderRadius: {
'2': 'hsl(var(--chart-2))', lg: 'var(--radius)',
'3': 'hsl(var(--chart-3))', md: 'calc(var(--radius) - 2px)',
'4': 'hsl(var(--chart-4))', sm: 'calc(var(--radius) - 4px)'
'5': 'hsl(var(--chart-5))' },
} keyframes: {
}, 'accordion-down': {
borderRadius: { from: {
lg: 'var(--radius)', height: '0'
md: 'calc(var(--radius) - 2px)', },
sm: 'calc(var(--radius) - 4px)' to: {
}, height: 'var(--radix-accordion-content-height)'
keyframes: { }
'accordion-down': { },
from: { 'accordion-up': {
height: '0' from: {
}, height: 'var(--radix-accordion-content-height)'
to: { },
height: 'var(--radix-accordion-content-height)' to: {
} height: '0'
}, }
'accordion-up': { }
from: { },
height: 'var(--radix-accordion-content-height)' animation: {
}, 'accordion-down': 'accordion-down 0.2s ease-out',
to: { 'accordion-up': 'accordion-up 0.2s ease-out'
height: '0' }
} }
},
'accordion-down': {
from: {
height: '0'
},
to: {
height: 'var(--radix-accordion-content-height)'
}
},
'accordion-up': {
from: {
height: 'var(--radix-accordion-content-height)'
},
to: {
height: '0'
}
}
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out'
}
}
}, },
plugins: [import("tailwindcss-animate")], plugins: [animatePlugin],
} }