-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f18464d
commit d59b7a7
Showing
200 changed files
with
14,598 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# title | ||
VITE_GLOB_APP_TITLE = 'susu-system' | ||
|
||
# port | ||
VITE_PORT = 3301 | ||
|
||
# open 运行 npm run dev 时自动打开浏览器 | ||
VITE_OPEN = true | ||
|
||
# 是否生成包分析文件 | ||
VITE_REPORT = false | ||
|
||
# 是否开启gzip压缩 | ||
VITE_BUILD_GZIP = false | ||
|
||
# 是否删除生产环境 console | ||
VITE_DROP_CONSOLE = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 本地环境 | ||
NODE_ENV = 'development' | ||
|
||
# 本地环境接口地址 | ||
VITE_API_URL = '/api' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 线上环境 | ||
NODE_ENV = "production" | ||
|
||
# 线上环境接口地址(easymock) | ||
VITE_API_URL = "https://mock.mengxuegu.com/mock/629d727e6163854a32e8307e" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 测试环境 | ||
NODE_ENV = "test" | ||
|
||
# 测试环境接口地址(easymock) | ||
VITE_API_URL = "https://mock.mengxuegu.com/mock/629d727e6163854a32e8307e" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": [ | ||
"development" | ||
], | ||
"hints": { | ||
"typescript-config/consistent-casing": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Vue 3 + TypeScript + Vite | ||
|
||
yarn dev | ||
|
||
# dependencies 安装的依赖 | ||
|
||
axios echarts element-plus nprogress pinia pinia-plugin-persistedstate vue-i18n vue-router | ||
|
||
# devDependencies 安装的依赖 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Generated by 'unplugin-auto-import' | ||
export {} | ||
declare global { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// generated by unplugin-vue-components | ||
// We suggest you to commit this file into source control | ||
// Read more: https://github.com/vuejs/core/pull/3399 | ||
import '@vue/runtime-core' | ||
|
||
export {} | ||
|
||
declare module '@vue/runtime-core' { | ||
export interface GlobalComponents { | ||
403: typeof import('./src/components/ErrorMessage/403.vue')['default'] | ||
404: typeof import('./src/components/ErrorMessage/404.vue')['default'] | ||
500: typeof import('./src/components/ErrorMessage/500.vue')['default'] | ||
ColSetting: typeof import('./src/components/ProTable/components/ColSetting.vue')['default'] | ||
ElAside: typeof import('element-plus/es')['ElAside'] | ||
ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete'] | ||
ElBadge: typeof import('element-plus/es')['ElBadge'] | ||
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb'] | ||
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] | ||
ElButton: typeof import('element-plus/es')['ElButton'] | ||
ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] | ||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] | ||
ElContainer: typeof import('element-plus/es')['ElContainer'] | ||
ElDialog: typeof import('element-plus/es')['ElDialog'] | ||
ElDivider: typeof import('element-plus/es')['ElDivider'] | ||
ElDrawer: typeof import('element-plus/es')['ElDrawer'] | ||
ElDropdown: typeof import('element-plus/es')['ElDropdown'] | ||
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] | ||
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] | ||
ElFooter: typeof import('element-plus/es')['ElFooter'] | ||
ElForm: typeof import('element-plus/es')['ElForm'] | ||
ElFormItem: typeof import('element-plus/es')['ElFormItem'] | ||
ElHeader: typeof import('element-plus/es')['ElHeader'] | ||
ElIcon: typeof import('element-plus/es')['ElIcon'] | ||
ElImageViewer: typeof import('element-plus/es')['ElImageViewer'] | ||
ElInput: typeof import('element-plus/es')['ElInput'] | ||
ElMain: typeof import('element-plus/es')['ElMain'] | ||
ElMenu: typeof import('element-plus/es')['ElMenu'] | ||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] | ||
ElOption: typeof import('element-plus/es')['ElOption'] | ||
ElPagination: typeof import('element-plus/es')['ElPagination'] | ||
ElPopover: typeof import('element-plus/es')['ElPopover'] | ||
ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] | ||
ElSelect: typeof import('element-plus/es')['ElSelect'] | ||
ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] | ||
ElSwitch: typeof import('element-plus/es')['ElSwitch'] | ||
ElTable: typeof import('element-plus/es')['ElTable'] | ||
ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] | ||
ElTabPane: typeof import('element-plus/es')['ElTabPane'] | ||
ElTabs: typeof import('element-plus/es')['ElTabs'] | ||
ElTooltip: typeof import('element-plus/es')['ElTooltip'] | ||
ElUpload: typeof import('element-plus/es')['ElUpload'] | ||
Grid: typeof import('./src/components/Grid/index.vue')['default'] | ||
GridItem: typeof import('./src/components/Grid/components/GridItem.vue')['default'] | ||
Img: typeof import('./src/components/Upload/Img.vue')['default'] | ||
Imgs: typeof import('./src/components/Upload/Imgs.vue')['default'] | ||
ImportExcel: typeof import('./src/components/ImportExcel/index.vue')['default'] | ||
Loading: typeof import('./src/components/Loading/index.vue')['default'] | ||
Pagination: typeof import('./src/components/ProTable/components/Pagination.vue')['default'] | ||
ProTable: typeof import('./src/components/ProTable/index.vue')['default'] | ||
RouterLink: typeof import('vue-router')['RouterLink'] | ||
RouterView: typeof import('vue-router')['RouterView'] | ||
SearchForm: typeof import('./src/components/SearchForm/index.vue')['default'] | ||
SearchFormItem: typeof import('./src/components/SearchForm/components/SearchFormItem.vue')['default'] | ||
SelectFilter: typeof import('./src/components/SelectFilter/index.vue')['default'] | ||
SelectIcon: typeof import('./src/components/SelectIcon/index.vue')['default'] | ||
SvgIcon: typeof import('./src/components/SvgIcon/index.vue')['default'] | ||
SwitchDark: typeof import('./src/components/SwitchDark/index.vue')['default'] | ||
TableColumn: typeof import('./src/components/ProTable/components/TableColumn.vue')['default'] | ||
TreeFilter: typeof import('./src/components/TreeFilter/index.vue')['default'] | ||
WangEditor: typeof import('./src/components/WangEditor/index.vue')['default'] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite + Vue + TS</title> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<style> | ||
html, | ||
body, | ||
#app { | ||
width: 100%; | ||
height: 100%; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
.loading-box { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
.loading-box .loading-wrap { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 98px; | ||
} | ||
.dot { | ||
position: relative; | ||
box-sizing: border-box; | ||
display: inline-block; | ||
width: 32px; | ||
height: 32px; | ||
font-size: 32px; | ||
transform: rotate(45deg); | ||
animation: ant-rotate 1.2s infinite linear; | ||
} | ||
.dot i { | ||
position: absolute; | ||
display: block; | ||
width: 14px; | ||
height: 14px; | ||
background-color: #409eff; | ||
border-radius: 100%; | ||
opacity: 0.3; | ||
transform: scale(0.75); | ||
transform-origin: 50% 50%; | ||
animation: ant-spin-move 1s infinite linear alternate; | ||
} | ||
.dot i:nth-child(1) { | ||
top: 0; | ||
left: 0; | ||
} | ||
.dot i:nth-child(2) { | ||
top: 0; | ||
right: 0; | ||
animation-delay: 0.4s; | ||
} | ||
.dot i:nth-child(3) { | ||
right: 0; | ||
bottom: 0; | ||
animation-delay: 0.8s; | ||
} | ||
.dot i:nth-child(4) { | ||
bottom: 0; | ||
left: 0; | ||
animation-delay: 1.2s; | ||
} | ||
@keyframes ant-rotate { | ||
to { | ||
transform: rotate(405deg); | ||
} | ||
} | ||
@keyframes ant-spin-move { | ||
to { | ||
opacity: 1; | ||
} | ||
} | ||
</style> | ||
<div class="loading-box"> | ||
<div class="loading-wrap"> | ||
<span class="dot dot-spin"><i></i><i></i><i></i><i></i></span> | ||
</div> | ||
</div> | ||
</div> | ||
<script> | ||
const color = JSON.parse(window.localStorage.getItem("GlobalState")).themeConfig.primary; | ||
const isDark = JSON.parse(window.localStorage.getItem("GlobalState")).themeConfig.isDark; | ||
const dot = document.querySelectorAll(".dot i"); | ||
const html = document.querySelector("html"); | ||
dot.forEach(item => (item.style.background = color)); | ||
if (isDark) html.style.background = "#141414"; | ||
</script> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"name": "vue3ts-template", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vue-tsc && vite build", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"@element-plus/icons-vue": "^2.0.10", | ||
"@vueuse/core": "^8.0.1", | ||
"@wangeditor/editor": "^5.1.12", | ||
"@wangeditor/editor-for-vue": "^5.1.12", | ||
"axios": "^1.2.1", | ||
"echarts": "^5.3.0", | ||
"echarts-liquidfill": "^3.1.0", | ||
"element-plus": "^2.2.27", | ||
"js-md5": "^0.7.3", | ||
"mitt": "^3.0.0", | ||
"nprogress": "^0.2.0", | ||
"pinia": "^2.0.28", | ||
"pinia-plugin-persistedstate": "^3.0.1", | ||
"print-js": "^1.6.0", | ||
"qs": "^6.11.0", | ||
"sortablejs": "^1.15.0", | ||
"vue": "^3.2.45", | ||
"vue-i18n": "^9.1.9", | ||
"vue-router": "^4.1.6", | ||
"vue3-seamless-scroll": "^1.2.0", | ||
"vuedraggable": "^4.1.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^17.0.31", | ||
"@types/sortablejs": "^1.15.0", | ||
"@vitejs/plugin-vue": "^4.0.0", | ||
"@vitejs/plugin-vue-jsx": "^1.3.10", | ||
"autoprefixer": "^10.4.7", | ||
"postcss": "^8.4.14", | ||
"postcss-html": "^1.4.1", | ||
"rollup-plugin-visualizer": "^5.5.4", | ||
"sass": "^1.49.7", | ||
"typescript": "^4.5.4", | ||
"unplugin-auto-import": "^0.12.1", | ||
"unplugin-vue-components": "^0.22.12", | ||
"vite": "^4.0.4", | ||
"vite-plugin-cdn-import": "^0.3.5", | ||
"vite-plugin-compression": "^0.5.1", | ||
"vite-plugin-html": "^3.2.0", | ||
"vite-plugin-svg-icons": "^2.0.1", | ||
"vite-plugin-vue-setup-extend": "^0.4.0", | ||
"vue-tsc": "^1.0.22" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<el-config-provider :locale="i18nLocale" :button="config" :size="assemblySize"> | ||
<router-view></router-view> | ||
</el-config-provider> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { reactive, computed } from "vue"; | ||
import { GlobalStore } from "@/stores"; | ||
import { useTheme } from "@/hooks/useTheme"; | ||
import { getBrowserLang } from "@/utils/util"; | ||
import zhCn from "element-plus/es/locale/lang/zh-cn"; | ||
import en from "element-plus/es/locale/lang/en"; | ||
// 使用主题 | ||
useTheme(); | ||
const globalStore = GlobalStore(); | ||
// 配置element按钮文字中间是否有空格 | ||
const config = reactive({ | ||
autoInsertSpace: false | ||
}); | ||
// element 语言配置 | ||
const i18nLocale = computed(() => { | ||
if (globalStore.language && globalStore.language == "zh") return zhCn; | ||
if (globalStore.language == "en") return en; | ||
return getBrowserLang() == "zh" ? zhCn : en; | ||
}); | ||
// 配置全局组件大小 (small/default(medium)/large) | ||
const assemblySize = computed((): string => globalStore.assemblySize); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// * 后端微服务端口名 | ||
export const PORT1 = "/geeker"; | ||
export const PORT2 = "/hooks"; |
Oops, something went wrong.