Compare commits
1 Commits
chore/migr
...
274478532e
| Author | SHA1 | Date | |
|---|---|---|---|
| 274478532e |
@@ -1 +0,0 @@
|
|||||||
v22.22.0
|
|
||||||
74
Jenkinsfile
vendored
@@ -1,74 +0,0 @@
|
|||||||
pipeline {
|
|
||||||
agent any
|
|
||||||
|
|
||||||
options {
|
|
||||||
timestamps()
|
|
||||||
}
|
|
||||||
|
|
||||||
parameters {
|
|
||||||
choice(
|
|
||||||
name: 'XSH_DEPLOY_TARGET',
|
|
||||||
choices: ['main'],
|
|
||||||
description: 'main:眩生花线上版本'
|
|
||||||
)
|
|
||||||
booleanParam(
|
|
||||||
name: 'XSH_DEPLOY_TO_PRODUCTION',
|
|
||||||
defaultValue: true,
|
|
||||||
description: '是否自动部署到线上环境(否则只构建产物)\n* 仅在 main 分支生效'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
tools {
|
|
||||||
nodejs 'NodeJS 22.22'
|
|
||||||
}
|
|
||||||
|
|
||||||
libraries {
|
|
||||||
lib('xsh-common@main')
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
|
||||||
stage('Checkout') {
|
|
||||||
steps {
|
|
||||||
checkout scm
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Lint') {
|
|
||||||
steps {
|
|
||||||
sh '''
|
|
||||||
corepack enable
|
|
||||||
pnpm install --registry=https://registry.npmmirror.com
|
|
||||||
pnpm run lint
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Build') {
|
|
||||||
when {
|
|
||||||
allOf {
|
|
||||||
expression { currentBuild.currentResult == 'SUCCESS' }
|
|
||||||
expression { env.TAG_NAME != null }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh '''
|
|
||||||
corepack enable
|
|
||||||
pnpm install --registry=https://registry.npmmirror.com
|
|
||||||
pnpm run generate
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
echo "Build finished: ${currentBuild.currentResult}"
|
|
||||||
}
|
|
||||||
success {
|
|
||||||
archiveArtifacts allowEmptyArchive: true, artifacts: 'dist/**', followSymlinks: true, onlyIfSuccessful: true
|
|
||||||
}
|
|
||||||
failure {
|
|
||||||
echo "Build failed"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
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: piniaPluginPersistedstate.localStorage(),
|
storage: persistedState.localStorage,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -72,7 +72,7 @@ export const useLoginState = defineStore(
|
|||||||
{
|
{
|
||||||
persist: {
|
persist: {
|
||||||
key: 'xsh_assistant_persisted_state',
|
key: 'xsh_assistant_persisted_state',
|
||||||
storage: piniaPluginPersistedstate.localStorage(),
|
storage: persistedState.localStorage,
|
||||||
paths: ['is_logged_in', 'token', 'user'],
|
paths: ['is_logged_in', 'token', 'user'],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ export const useTourState = defineStore(
|
|||||||
{
|
{
|
||||||
persist: {
|
persist: {
|
||||||
key: 'xsh_assistant_tour_state',
|
key: 'xsh_assistant_tour_state',
|
||||||
storage: piniaPluginPersistedstate.localStorage(),
|
storage: persistedState.localStorage,
|
||||||
paths: ['tourState'],
|
paths: ['tourState'],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
18
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xsh-assistant-next",
|
"name": "xsh-assistant",
|
||||||
"version": "2.0.0",
|
"version": "0.1.6",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
"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": "^4.3.1",
|
"nuxt": "^3.21.1",
|
||||||
"nuxt-driver.js": "^0.0.11",
|
"nuxt-driver.js": "^0.0.11",
|
||||||
"pinia-plugin-persistedstate": "^4.7.1",
|
"pinia-plugin-persistedstate": "^4.7.1",
|
||||||
"radix-vue": "^1.9.2",
|
"radix-vue": "^1.9.2",
|
||||||
@@ -43,21 +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/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": "^1.1.1",
|
"@vite-pwa/nuxt": "^0.5.0",
|
||||||
"@vueuse/core": "^14.2.0",
|
"@vueuse/core": "^10.11.1",
|
||||||
"@vueuse/nuxt": "^14.2.0",
|
"@vueuse/nuxt": "^10.11.1",
|
||||||
"dayjs-nuxt": "^2.1.11",
|
"dayjs-nuxt": "^2.1.9",
|
||||||
"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.19",
|
"dayjs": "^1.11.12",
|
||||||
"tailwindcss": "^3.4.7"
|
"tailwindcss": "^3.4.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||