Skip to content

Commit

Permalink
🎉 version(architecture): v0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ting-Code committed Aug 27, 2024
1 parent a64d46b commit 63a6b8d
Show file tree
Hide file tree
Showing 18 changed files with 142 additions and 153 deletions.
5 changes: 0 additions & 5 deletions .stylelintignore

This file was deleted.

1 change: 0 additions & 1 deletion .stylelintrc.js

This file was deleted.

6 changes: 0 additions & 6 deletions configs/lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@
"postcss-less": "^6.0.0",
"prettier": "^3.2.5",
"pretty-quick": "^4.0.0",
"stylelint": "^16.2.1",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-recommended": "^14.0.0",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-order": "^6.0.4",
"vue-eslint-parser": "^9.4.2"
}
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"preinstall": "npx only-allow pnpm",
"lint:eslint": "turbo lint:eslint",
"lint:prettier": "turbo lint:prettier",
"lint:stylelint": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\"",
"lint:lint-staged": "turbo lint:eslint lint:prettier & pnpm run lint:prettier",
"prepare": "husky install"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix --ignore-path=../../../.eslintignore",
"lint:prettier": "prettier --write --cache --ignore-unknown --ignore-path=../../../.prettierignore ."
},
"dependencies": {
Expand Down
7 changes: 3 additions & 4 deletions packages/apps/admin/src/store/modules/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export const useTabsStore = defineStore({
this.tabsList = tabsList
},
addTab(route: RouteItem): boolean {
const { path, fullPath, params, query, meta } = route
if (whiteList.includes(route.name)) return false
const { path, fullPath, query, meta } = route
if (whiteList.includes(route.name || '')) return false
let updateIndex = -1
// 如果该选项卡已经存在,则执行更新操作
const tabHasExits = this.tabsList.some((tab, index) => {
Expand All @@ -46,7 +46,6 @@ export const useTabsStore = defineStore({
if (!curTab) {
return false
}
curTab.params = params || curTab.params
curTab.query = query || curTab.query
curTab.fullPath = fullPath || curTab.fullPath
this.tabsList.splice(updateIndex, 1, curTab)
Expand All @@ -64,7 +63,7 @@ export const useTabsStore = defineStore({
this.tabsList.filter((e) => e.meta?.realPath ?? '' === realPath).length >= dynamicLevel
) {
// 关闭第一个
const index = this.tabsList.findIndex((item) => item.meta.realPath === realPath)
const index = this.tabsList.findIndex((item) => item?.meta?.realPath === realPath)
index !== -1 && this.tabsList.splice(index, 1)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
if (menu.children && menu.children.length > 0) {
menuItem = menu.children[0]
}
setUrl({ path: menuItem.path, name: menuItem?.module })
setUrl({ path: menuItem.path, name: menuItem?.meta?.module })
}
</script>

Expand Down
2 changes: 1 addition & 1 deletion packages/apps/micro-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "vite --port 8681",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix --ignore-path=../../../.eslintignore",
"lint:prettier": "prettier --write --cache --ignore-unknown --ignore-path=../../../.prettierignore ."
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/micro-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "rspack serve",
"build": "rspack build",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix --ignore-path=../../../.eslintignore",
"lint:prettier": "prettier --write --cache --ignore-unknown --ignore-path=../../../.prettierignore ."
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"start": "node ./bin/index.mjs",
"build": "unbuild",
"test": "vitest",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix --ignore-path=../../../.eslintignore",
"lint:prettier": "prettier --write --cache --ignore-unknown --ignore-path=../../../.prettierignore ."
},
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@tingcli/template",
"version": "0.0.2",
"scripts": {
"lint:eslint": "eslint . --cache --max-warnings 0 --fix",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix --ignore-path=../../../.eslintignore",
"lint:prettier": "prettier --write --cache --ignore-unknown --ignore-path=../../../.prettierignore ."
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"build": "unbuild",
"up": "npm publish",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix --ignore-path=../../../.eslintignore",
"lint:prettier": "prettier --write --cache --ignore-unknown --ignore-path=../../../.prettierignore ."
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix --ignore-path=../../../.eslintignore",
"lint:prettier": "prettier --write --cache --ignore-unknown --ignore-path=../../../.prettierignore ."
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"build": "unbuild",
"dev": "unbuild",
"up": "npm publish",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix --ignore-path=../../../.eslintignore",
"lint:prettier": "prettier --write --cache --ignore-unknown --ignore-path=../../../.prettierignore ."
},
"keywords": [],
Expand Down
2 changes: 2 additions & 0 deletions packages/lib/system/src/api/apiSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export interface IMeta {
affix?: boolean
icon?: string
module?: string
dynamicLevel?: number
realPath?: string
}

export interface IMenu {
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "unbuild",
"dev": "unbuild",
"up": "npm publish",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix",
"lint:eslint": "eslint . --cache --max-warnings 0 --fix --ignore-path=../../../.eslintignore",
"lint:prettier": "prettier --write --cache --ignore-unknown --ignore-path=../../../.prettierignore ."
},
"keywords": [],
Expand Down
Loading

0 comments on commit 63a6b8d

Please sign in to comment.