xiaoxian521
7 months ago
59 changed files with 1296 additions and 1045 deletions
-
11.eslintignore
-
120.eslintrc.js
-
2.nvmrc
-
3build/plugins.ts
-
9eslint.config.js
-
53locales/en.yaml
-
54locales/zh-CN.yaml
-
5mock/login.ts
-
55package.json
-
1174pnpm-lock.yaml
-
2public/platform-config.json
-
4src/App.vue
-
8src/api/user.ts
-
46src/components/ReDialog/index.vue
-
39src/components/ReDialog/type.ts
-
2src/components/ReIcon/index.ts
-
22src/components/RePureTableBar/src/bar.tsx
-
28src/components/ReSegmented/src/index.tsx
-
4src/components/ReText/src/index.vue
-
2src/config/index.ts
-
4src/layout/components/appMain.vue
-
4src/layout/components/navbar.vue
-
4src/layout/components/notice/index.vue
-
5src/layout/components/notice/noticeList.vue
-
12src/layout/components/panel/index.vue
-
10src/layout/components/search/components/SearchFooter.vue
-
10src/layout/components/search/components/SearchHistory.vue
-
6src/layout/components/search/components/SearchModal.vue
-
127src/layout/components/setting/index.vue
-
6src/layout/components/sidebar/centerCollapse.vue
-
4src/layout/components/sidebar/horizontal.vue
-
6src/layout/components/sidebar/leftCollapse.vue
-
4src/layout/components/sidebar/mixNav.vue
-
19src/layout/components/sidebar/sidebarItem.vue
-
9src/layout/components/sidebar/topCollapse.vue
-
4src/layout/components/tag/index.scss
-
67src/layout/components/tag/index.vue
-
20src/layout/hooks/useNav.ts
-
4src/layout/index.vue
-
4src/plugins/i18n.ts
-
28src/router/utils.ts
-
14src/store/modules/app.ts
-
11src/store/modules/epTheme.ts
-
36src/store/modules/multiTags.ts
-
23src/store/modules/permission.ts
-
5src/store/modules/settings.ts
-
43src/store/modules/user.ts
-
2src/store/types.ts
-
29src/store/utils.ts
-
2src/style/dark.scss
-
5src/style/sidebar.scss
-
36src/utils/auth.ts
-
26src/utils/http/index.ts
-
5src/utils/print.ts
-
4src/utils/responsive.ts
-
1types/global.d.ts
-
4types/router.d.ts
-
3types/shims-vue.d.ts
@ -1,11 +0,0 @@ |
|||||
public |
|
||||
dist |
|
||||
*.d.ts |
|
||||
/src/assets |
|
||||
package.json |
|
||||
eslint.config.js |
|
||||
.prettierrc.js |
|
||||
commitlint.config.js |
|
||||
postcss.config.js |
|
||||
tailwind.config.ts |
|
||||
stylelint.config.js |
|
@ -1,120 +0,0 @@ |
|||||
module.exports = { |
|
||||
root: true, |
|
||||
env: { |
|
||||
node: true |
|
||||
}, |
|
||||
globals: { |
|
||||
// Ref sugar (take 2)
|
|
||||
$: "readonly", |
|
||||
$$: "readonly", |
|
||||
$ref: "readonly", |
|
||||
$shallowRef: "readonly", |
|
||||
$computed: "readonly", |
|
||||
|
|
||||
// index.d.ts
|
|
||||
// global.d.ts
|
|
||||
Fn: "readonly", |
|
||||
PromiseFn: "readonly", |
|
||||
RefType: "readonly", |
|
||||
LabelValueOptions: "readonly", |
|
||||
EmitType: "readonly", |
|
||||
TargetContext: "readonly", |
|
||||
ComponentElRef: "readonly", |
|
||||
ComponentRef: "readonly", |
|
||||
ElRef: "readonly", |
|
||||
global: "readonly", |
|
||||
ForDataType: "readonly", |
|
||||
ComponentRoutes: "readonly", |
|
||||
|
|
||||
// script setup
|
|
||||
defineProps: "readonly", |
|
||||
defineEmits: "readonly", |
|
||||
defineExpose: "readonly", |
|
||||
withDefaults: "readonly" |
|
||||
}, |
|
||||
extends: [ |
|
||||
"plugin:vue/vue3-essential", |
|
||||
"eslint:recommended", |
|
||||
"@vue/typescript/recommended", |
|
||||
"@vue/prettier", |
|
||||
"@vue/eslint-config-typescript" |
|
||||
], |
|
||||
parser: "vue-eslint-parser", |
|
||||
parserOptions: { |
|
||||
parser: "@typescript-eslint/parser", |
|
||||
ecmaVersion: 2020, |
|
||||
sourceType: "module", |
|
||||
jsxPragma: "React", |
|
||||
ecmaFeatures: { |
|
||||
jsx: true |
|
||||
} |
|
||||
}, |
|
||||
overrides: [ |
|
||||
{ |
|
||||
files: ["*.ts", "*.vue"], |
|
||||
rules: { |
|
||||
"no-undef": "off" |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
files: ["*.vue"], |
|
||||
parser: "vue-eslint-parser", |
|
||||
parserOptions: { |
|
||||
parser: "@typescript-eslint/parser", |
|
||||
extraFileExtensions: [".vue"], |
|
||||
ecmaVersion: "latest", |
|
||||
ecmaFeatures: { |
|
||||
jsx: true |
|
||||
} |
|
||||
}, |
|
||||
rules: { |
|
||||
"no-undef": "off" |
|
||||
} |
|
||||
} |
|
||||
], |
|
||||
rules: { |
|
||||
"vue/no-v-html": "off", |
|
||||
"vue/require-default-prop": "off", |
|
||||
"vue/require-explicit-emits": "off", |
|
||||
"vue/multi-word-component-names": "off", |
|
||||
"@typescript-eslint/no-explicit-any": "off", // any
|
|
||||
"no-debugger": "off", |
|
||||
"@typescript-eslint/explicit-module-boundary-types": "off", // setup()
|
|
||||
"@typescript-eslint/ban-types": "off", |
|
||||
"@typescript-eslint/ban-ts-comment": "off", |
|
||||
"@typescript-eslint/no-empty-function": "off", |
|
||||
"@typescript-eslint/no-non-null-assertion": "off", |
|
||||
"vue/html-self-closing": [ |
|
||||
"error", |
|
||||
{ |
|
||||
html: { |
|
||||
void: "always", |
|
||||
normal: "always", |
|
||||
component: "always" |
|
||||
}, |
|
||||
svg: "always", |
|
||||
math: "always" |
|
||||
} |
|
||||
], |
|
||||
"@typescript-eslint/no-unused-vars": [ |
|
||||
"error", |
|
||||
{ |
|
||||
argsIgnorePattern: "^_", |
|
||||
varsIgnorePattern: "^_" |
|
||||
} |
|
||||
], |
|
||||
"no-unused-vars": [ |
|
||||
"error", |
|
||||
{ |
|
||||
argsIgnorePattern: "^_", |
|
||||
varsIgnorePattern: "^_" |
|
||||
} |
|
||||
], |
|
||||
"prettier/prettier": [ |
|
||||
"error", |
|
||||
{ |
|
||||
endOfLine: "auto" |
|
||||
} |
|
||||
] |
|
||||
} |
|
||||
}; |
|
@ -1 +1 @@ |
|||||
v20.11.1 |
|
||||
|
v20.12.2 |
1174
pnpm-lock.yaml
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,29 @@ |
|||||
|
export { store } from "@/store"; |
||||
|
export { defineStore } from "pinia"; |
||||
|
export { routerArrays } from "@/layout/types"; |
||||
|
export { router, resetRouter, constantMenus } from "@/router"; |
||||
|
export { getConfig, responsiveStorageNameSpace } from "@/config"; |
||||
|
export { |
||||
|
ascending, |
||||
|
filterTree, |
||||
|
filterNoPermissionTree, |
||||
|
formatFlatteningRoutes |
||||
|
} from "@/router/utils"; |
||||
|
export { |
||||
|
isUrl, |
||||
|
isEqual, |
||||
|
isNumber, |
||||
|
debounce, |
||||
|
isBoolean, |
||||
|
getKeyList, |
||||
|
storageLocal, |
||||
|
deviceDetection |
||||
|
} from "@pureadmin/utils"; |
||||
|
export type { |
||||
|
setType, |
||||
|
appType, |
||||
|
userType, |
||||
|
multiType, |
||||
|
cacheType, |
||||
|
positionType |
||||
|
} from "./types"; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue