mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
chore: prepare to change to tailwindcss
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
- [x] 实现应用搜索
|
- [x] 实现应用搜索
|
||||||
- [ ] 切换分类时默认不应用搜索,需按下回车键才应用搜索
|
- [ ] 切换分类时默认不应用搜索,需按下回车键才应用搜索
|
||||||
- [ ] 修改UI,使其更美观(考虑换成如shadcn等组件库)
|
- [ ] 修改UI,使其更美观(考虑换成如shadcn等组件库)
|
||||||
|
- [ ] 实现URL Shceme协议支持
|
||||||
|
|
||||||
|
|
||||||
## 📦 关于 APM
|
## 📦 关于 APM
|
||||||
|
|||||||
@@ -12,16 +12,8 @@ if [[ "$1" != "apm" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 检查 apm 命令是否存在
|
|
||||||
if ! command -v apm &>/dev/null; then
|
|
||||||
echo "apm 命令未找到,请确保已安装 APM 环境"
|
|
||||||
exit 127
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 执行 apm 命令(跳过第一个参数 "apm")
|
# 执行 apm 命令(跳过第一个参数 "apm")
|
||||||
output=$(/usr/bin/apm "${@:2}" 2>&1)
|
/usr/bin/apm "${@:2}" 2>&1
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
|
|
||||||
echo "$output"
|
|
||||||
|
|
||||||
exit $exit_code
|
exit $exit_code
|
||||||
@@ -42,7 +42,9 @@
|
|||||||
"vue-tsc": "^3.2.4"
|
"vue-tsc": "^3.2.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@tailwindcss/vite": "^4.1.18",
|
||||||
"axios": "^1.13.2",
|
"axios": "^1.13.2",
|
||||||
"pino": "^10.3.0"
|
"pino": "^10.3.0",
|
||||||
|
"tailwindcss": "^4.1.18"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"allowSyntheticDefaultImports": true
|
"allowSyntheticDefaultImports": true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import fs from 'node:fs'
|
import fs from 'node:fs'
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
|
import tailwindcss from '@tailwindcss/vite'
|
||||||
import electron from 'vite-plugin-electron/simple'
|
import electron from 'vite-plugin-electron/simple'
|
||||||
import pkg from './package.json'
|
import pkg from './package.json'
|
||||||
|
|
||||||
@@ -61,6 +62,7 @@ export default defineConfig(({ command }) => {
|
|||||||
// See 👉 https://github.com/electron-vite/vite-plugin-electron-renderer
|
// See 👉 https://github.com/electron-vite/vite-plugin-electron-renderer
|
||||||
renderer: {},
|
renderer: {},
|
||||||
}),
|
}),
|
||||||
|
tailwindcss(),
|
||||||
],
|
],
|
||||||
server: (() => {
|
server: (() => {
|
||||||
if (process.env.VSCODE_DEBUG) {
|
if (process.env.VSCODE_DEBUG) {
|
||||||
|
|||||||
Reference in New Issue
Block a user