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'],
output: 'standalone',
// 修复CSS构建问题
experimental: {
// forceSwcTransforms: true,
turbo: {
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
as: '*.js',
},
},
},
},
};
export default nextConfig;

View File

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

View File

@@ -35,7 +35,9 @@ var config = {
axios(config)
.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) {
console.log(error);

View File

@@ -1,22 +1,14 @@
/** @type {import('tailwindcss').Config} */
import animatePlugin from 'tailwindcss-animate'; // Use ES Module import
export default {
darkMode: ["class"],
content: [
'./pages/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}',
],
prefix: "",
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px'
}
},
extend: {
colors: {
border: 'hsl(var(--border))',
@@ -66,22 +58,6 @@ export default {
sm: 'calc(var(--radius) - 4px)'
},
keyframes: {
'accordion-down': {
from: {
height: '0'
},
to: {
height: 'var(--radix-accordion-content-height)'
}
},
'accordion-up': {
from: {
height: 'var(--radix-accordion-content-height)'
},
to: {
height: '0'
}
},
'accordion-down': {
from: {
height: '0'
@@ -100,12 +76,10 @@ export default {
}
},
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],
}