Compare commits
11 Commits
v2.0.0-bet
...
8d6e2efb53
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d6e2efb53 | |||
| 377c36f846 | |||
| 11581ffad6 | |||
| 9cc21a0107 | |||
| 5fe7b7f788 | |||
| 880b85f75d | |||
| f1b9cea060 | |||
| 6a4685f588 | |||
| 133c5c661b | |||
| 6a54ecd003 | |||
| 8dea27d14a |
1
.node-version
Normal file
@@ -0,0 +1 @@
|
|||||||
|
v22.22.0
|
||||||
5
.vscode/settings.json
vendored
@@ -5,5 +5,8 @@
|
|||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.oxc": "always"
|
"source.fixAll.oxc": "always"
|
||||||
},
|
},
|
||||||
"typescript.tsdk": "node_modules\\typescript\\lib"
|
"typescript.tsdk": "node_modules\\typescript\\lib",
|
||||||
|
"[typescript]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
16
Jenkinsfile
vendored
@@ -5,6 +5,19 @@ pipeline {
|
|||||||
timestamps()
|
timestamps()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parameters {
|
||||||
|
choice(
|
||||||
|
name: 'XSH_DEPLOY_TARGET',
|
||||||
|
choices: ['main'],
|
||||||
|
description: 'main:眩生花线上版本'
|
||||||
|
)
|
||||||
|
booleanParam(
|
||||||
|
name: 'XSH_DEPLOY_TO_PRODUCTION',
|
||||||
|
defaultValue: true,
|
||||||
|
description: '是否自动部署到线上环境(否则只构建产物)\n* 仅在 main 分支生效'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
tools {
|
tools {
|
||||||
nodejs 'NodeJS 22.22'
|
nodejs 'NodeJS 22.22'
|
||||||
}
|
}
|
||||||
@@ -32,7 +45,10 @@ pipeline {
|
|||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
when {
|
when {
|
||||||
|
allOf {
|
||||||
expression { currentBuild.currentResult == 'SUCCESS' }
|
expression { currentBuild.currentResult == 'SUCCESS' }
|
||||||
|
expression { env.TAG_NAME != null }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 336 KiB After Width: | Height: | Size: 336 KiB |
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 411 KiB After Width: | Height: | Size: 411 KiB |
@@ -26,7 +26,7 @@ export const useHistory = defineStore(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
persist: {
|
persist: {
|
||||||
storage: persistedState.localStorage,
|
storage: piniaPluginPersistedstate.localStorage(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -72,8 +72,8 @@ export const useLoginState = defineStore(
|
|||||||
{
|
{
|
||||||
persist: {
|
persist: {
|
||||||
key: 'xsh_assistant_persisted_state',
|
key: 'xsh_assistant_persisted_state',
|
||||||
storage: persistedState.localStorage,
|
storage: piniaPluginPersistedstate.localStorage(),
|
||||||
paths: ['is_logged_in', 'token', 'user'],
|
pick: ['is_logged_in', 'token', 'user'],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -32,8 +32,8 @@ export const useTourState = defineStore(
|
|||||||
{
|
{
|
||||||
persist: {
|
persist: {
|
||||||
key: 'xsh_assistant_tour_state',
|
key: 'xsh_assistant_tour_state',
|
||||||
storage: persistedState.localStorage,
|
storage: piniaPluginPersistedstate.localStorage(),
|
||||||
paths: ['tourState'],
|
pick: ['tourState'],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -15,7 +15,7 @@ export default defineNuxtConfig({
|
|||||||
'radix-vue/nuxt',
|
'radix-vue/nuxt',
|
||||||
'dayjs-nuxt',
|
'dayjs-nuxt',
|
||||||
'@pinia/nuxt',
|
'@pinia/nuxt',
|
||||||
'@pinia-plugin-persistedstate/nuxt',
|
'pinia-plugin-persistedstate',
|
||||||
'@vite-pwa/nuxt',
|
'@vite-pwa/nuxt',
|
||||||
'@nuxtjs/google-fonts',
|
'@nuxtjs/google-fonts',
|
||||||
'@nuxt/image',
|
'@nuxt/image',
|
||||||
|
|||||||
20
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xsh-assistant",
|
"name": "xsh-assistant-next",
|
||||||
"version": "0.1.6",
|
"version": "2.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -31,8 +31,9 @@
|
|||||||
"highlight.js": "^11.10.0",
|
"highlight.js": "^11.10.0",
|
||||||
"idb-keyval": "^6.2.1",
|
"idb-keyval": "^6.2.1",
|
||||||
"markdown-it": "^14.1.0",
|
"markdown-it": "^14.1.0",
|
||||||
"nuxt": "^3.12.4",
|
"nuxt": "^4.3.1",
|
||||||
"nuxt-driver.js": "^0.0.11",
|
"nuxt-driver.js": "^0.0.11",
|
||||||
|
"pinia-plugin-persistedstate": "^4.7.1",
|
||||||
"radix-vue": "^1.9.2",
|
"radix-vue": "^1.9.2",
|
||||||
"v-calendar": "^3.1.2",
|
"v-calendar": "^3.1.2",
|
||||||
"vue": "^3.4.34",
|
"vue": "^3.4.34",
|
||||||
@@ -42,22 +43,21 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt/ui": "^2.20.0",
|
"@nuxt/ui": "^2.20.0",
|
||||||
"@nuxtjs/google-fonts": "^3.2.0",
|
"@nuxtjs/google-fonts": "^3.2.0",
|
||||||
"@pinia-plugin-persistedstate/nuxt": "^1.2.1",
|
"@pinia/nuxt": "^0.11.3",
|
||||||
"@pinia/nuxt": "^0.5.2",
|
|
||||||
"@tailwindcss/typography": "^0.5.13",
|
"@tailwindcss/typography": "^0.5.13",
|
||||||
"@types/markdown-it": "^13.0.9",
|
"@types/markdown-it": "^13.0.9",
|
||||||
"@types/node": "^25.2.2",
|
"@types/node": "^25.2.2",
|
||||||
"@vite-pwa/nuxt": "^0.5.0",
|
"@vite-pwa/nuxt": "^1.1.1",
|
||||||
"@vueuse/core": "^10.11.1",
|
"@vueuse/core": "^14.2.0",
|
||||||
"@vueuse/nuxt": "^10.11.1",
|
"@vueuse/nuxt": "^14.2.0",
|
||||||
"dayjs-nuxt": "^2.1.9",
|
"dayjs-nuxt": "^2.1.11",
|
||||||
"oxfmt": "^0.28.0",
|
"oxfmt": "^0.28.0",
|
||||||
"oxlint": "^1.43.0",
|
"oxlint": "^1.43.0",
|
||||||
"sass": "^1.77.8",
|
"sass": "^1.77.8",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"dayjs": "^1.11.12",
|
"dayjs": "^1.11.19",
|
||||||
"tailwindcss": "^3.4.7"
|
"tailwindcss": "^3.4.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
9913
pnpm-lock.yaml
generated
@@ -1,13 +1,18 @@
|
|||||||
{
|
{
|
||||||
// https://nuxt.com/docs/guide/concepts/typescript
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
"extends": "./.nuxt/tsconfig.json",
|
"files": [],
|
||||||
"compilerOptions": {
|
|
||||||
"allowSyntheticDefaultImports": true,
|
|
||||||
"esModuleInterop": true
|
|
||||||
},
|
|
||||||
"references": [
|
"references": [
|
||||||
{
|
{
|
||||||
"path": "./tsconfig.node.json"
|
"path": "./.nuxt/tsconfig.app.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.server.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.shared.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./.nuxt/tsconfig.node.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||