first commiit
|
|
@ -0,0 +1,15 @@
|
||||||
|
# http://editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# 表示所有文件适用
|
||||||
|
[*]
|
||||||
|
charset = utf-8 # 设置文件字符集为 utf-8
|
||||||
|
end_of_line = lf # 控制换行类型(lf | cr | crlf)
|
||||||
|
indent_style = space # 缩进风格(tab | space)
|
||||||
|
indent_size = 2 # 缩进大小
|
||||||
|
insert_final_newline = true # 始终在文件末尾插入一个新行
|
||||||
|
|
||||||
|
# 表示仅 md 文件适用以下规则
|
||||||
|
[*.md]
|
||||||
|
max_line_length = off # 关闭最大行长度限制
|
||||||
|
trim_trailing_whitespace = false # 关闭末尾空格修剪
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
# 应用端口
|
||||||
|
VITE_APP_PORT=3000
|
||||||
|
|
||||||
|
# 代理前缀
|
||||||
|
VITE_APP_BASE_API=/dev-api
|
||||||
|
|
||||||
|
# 接口地址
|
||||||
|
|
||||||
|
VITE_APP_API_URL=https://admintestpapi.sxczgkj.cn/ # 线上
|
||||||
|
# VITE_APP_API_URL=https://api.youlai.tech # 线上
|
||||||
|
# VITE_APP_API_URL=http://localhost:8989 # 本地
|
||||||
|
|
||||||
|
# WebSocket 端点(不配置则关闭),线上 ws://api.youlai.tech/ws ,本地 ws://localhost:8989/ws
|
||||||
|
VITE_APP_WS_ENDPOINT=
|
||||||
|
|
||||||
|
# 启用 Mock 服务
|
||||||
|
VITE_MOCK_DEV_SERVER=false
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
# 代理前缀
|
||||||
|
VITE_APP_BASE_API = '/prod-api'
|
||||||
|
|
||||||
|
|
||||||
|
# WebSocket端点(可选)
|
||||||
|
#VITE_APP_WS_ENDPOINT=wss://api.youlai.tech/ws
|
||||||
|
|
@ -0,0 +1,316 @@
|
||||||
|
{
|
||||||
|
"globals": {
|
||||||
|
"Component": true,
|
||||||
|
"ComponentPublicInstance": true,
|
||||||
|
"ComputedRef": true,
|
||||||
|
"EffectScope": true,
|
||||||
|
"ElMessage": true,
|
||||||
|
"ElMessageBox": true,
|
||||||
|
"ElNotification": true,
|
||||||
|
"InjectionKey": true,
|
||||||
|
"PropType": true,
|
||||||
|
"Ref": true,
|
||||||
|
"VNode": true,
|
||||||
|
"asyncComputed": true,
|
||||||
|
"autoResetRef": true,
|
||||||
|
"computed": true,
|
||||||
|
"computedAsync": true,
|
||||||
|
"computedEager": true,
|
||||||
|
"computedInject": true,
|
||||||
|
"computedWithControl": true,
|
||||||
|
"controlledComputed": true,
|
||||||
|
"controlledRef": true,
|
||||||
|
"createApp": true,
|
||||||
|
"createEventHook": true,
|
||||||
|
"createGlobalState": true,
|
||||||
|
"createInjectionState": true,
|
||||||
|
"createReactiveFn": true,
|
||||||
|
"createReusableTemplate": true,
|
||||||
|
"createSharedComposable": true,
|
||||||
|
"createTemplatePromise": true,
|
||||||
|
"createUnrefFn": true,
|
||||||
|
"customRef": true,
|
||||||
|
"debouncedRef": true,
|
||||||
|
"debouncedWatch": true,
|
||||||
|
"defineAsyncComponent": true,
|
||||||
|
"defineComponent": true,
|
||||||
|
"eagerComputed": true,
|
||||||
|
"effectScope": true,
|
||||||
|
"extendRef": true,
|
||||||
|
"getCurrentInstance": true,
|
||||||
|
"getCurrentScope": true,
|
||||||
|
"h": true,
|
||||||
|
"ignorableWatch": true,
|
||||||
|
"inject": true,
|
||||||
|
"isDefined": true,
|
||||||
|
"isProxy": true,
|
||||||
|
"isReactive": true,
|
||||||
|
"isReadonly": true,
|
||||||
|
"isRef": true,
|
||||||
|
"makeDestructurable": true,
|
||||||
|
"markRaw": true,
|
||||||
|
"nextTick": true,
|
||||||
|
"onActivated": true,
|
||||||
|
"onBeforeMount": true,
|
||||||
|
"onBeforeUnmount": true,
|
||||||
|
"onBeforeUpdate": true,
|
||||||
|
"onClickOutside": true,
|
||||||
|
"onDeactivated": true,
|
||||||
|
"onErrorCaptured": true,
|
||||||
|
"onKeyStroke": true,
|
||||||
|
"onLongPress": true,
|
||||||
|
"onMounted": true,
|
||||||
|
"onRenderTracked": true,
|
||||||
|
"onRenderTriggered": true,
|
||||||
|
"onScopeDispose": true,
|
||||||
|
"onServerPrefetch": true,
|
||||||
|
"onStartTyping": true,
|
||||||
|
"onUnmounted": true,
|
||||||
|
"onUpdated": true,
|
||||||
|
"pausableWatch": true,
|
||||||
|
"provide": true,
|
||||||
|
"reactify": true,
|
||||||
|
"reactifyObject": true,
|
||||||
|
"reactive": true,
|
||||||
|
"reactiveComputed": true,
|
||||||
|
"reactiveOmit": true,
|
||||||
|
"reactivePick": true,
|
||||||
|
"readonly": true,
|
||||||
|
"ref": true,
|
||||||
|
"refAutoReset": true,
|
||||||
|
"refDebounced": true,
|
||||||
|
"refDefault": true,
|
||||||
|
"refThrottled": true,
|
||||||
|
"refWithControl": true,
|
||||||
|
"resolveComponent": true,
|
||||||
|
"resolveRef": true,
|
||||||
|
"resolveUnref": true,
|
||||||
|
"shallowReactive": true,
|
||||||
|
"shallowReadonly": true,
|
||||||
|
"shallowRef": true,
|
||||||
|
"syncRef": true,
|
||||||
|
"syncRefs": true,
|
||||||
|
"templateRef": true,
|
||||||
|
"throttledRef": true,
|
||||||
|
"throttledWatch": true,
|
||||||
|
"toRaw": true,
|
||||||
|
"toReactive": true,
|
||||||
|
"toRef": true,
|
||||||
|
"toRefs": true,
|
||||||
|
"toValue": true,
|
||||||
|
"triggerRef": true,
|
||||||
|
"tryOnBeforeMount": true,
|
||||||
|
"tryOnBeforeUnmount": true,
|
||||||
|
"tryOnMounted": true,
|
||||||
|
"tryOnScopeDispose": true,
|
||||||
|
"tryOnUnmounted": true,
|
||||||
|
"unref": true,
|
||||||
|
"unrefElement": true,
|
||||||
|
"until": true,
|
||||||
|
"useActiveElement": true,
|
||||||
|
"useAnimate": true,
|
||||||
|
"useArrayDifference": true,
|
||||||
|
"useArrayEvery": true,
|
||||||
|
"useArrayFilter": true,
|
||||||
|
"useArrayFind": true,
|
||||||
|
"useArrayFindIndex": true,
|
||||||
|
"useArrayFindLast": true,
|
||||||
|
"useArrayIncludes": true,
|
||||||
|
"useArrayJoin": true,
|
||||||
|
"useArrayMap": true,
|
||||||
|
"useArrayReduce": true,
|
||||||
|
"useArraySome": true,
|
||||||
|
"useArrayUnique": true,
|
||||||
|
"useAsyncQueue": true,
|
||||||
|
"useAsyncState": true,
|
||||||
|
"useAttrs": true,
|
||||||
|
"useBase64": true,
|
||||||
|
"useBattery": true,
|
||||||
|
"useBluetooth": true,
|
||||||
|
"useBreakpoints": true,
|
||||||
|
"useBroadcastChannel": true,
|
||||||
|
"useBrowserLocation": true,
|
||||||
|
"useCached": true,
|
||||||
|
"useClipboard": true,
|
||||||
|
"useCloned": true,
|
||||||
|
"useColorMode": true,
|
||||||
|
"useConfirmDialog": true,
|
||||||
|
"useCounter": true,
|
||||||
|
"useCssModule": true,
|
||||||
|
"useCssVar": true,
|
||||||
|
"useCssVars": true,
|
||||||
|
"useCurrentElement": true,
|
||||||
|
"useCycleList": true,
|
||||||
|
"useDark": true,
|
||||||
|
"useDateFormat": true,
|
||||||
|
"useDebounce": true,
|
||||||
|
"useDebounceFn": true,
|
||||||
|
"useDebouncedRefHistory": true,
|
||||||
|
"useDeviceMotion": true,
|
||||||
|
"useDeviceOrientation": true,
|
||||||
|
"useDevicePixelRatio": true,
|
||||||
|
"useDevicesList": true,
|
||||||
|
"useDisplayMedia": true,
|
||||||
|
"useDocumentVisibility": true,
|
||||||
|
"useDraggable": true,
|
||||||
|
"useDropZone": true,
|
||||||
|
"useElementBounding": true,
|
||||||
|
"useElementByPoint": true,
|
||||||
|
"useElementHover": true,
|
||||||
|
"useElementSize": true,
|
||||||
|
"useElementVisibility": true,
|
||||||
|
"useEventBus": true,
|
||||||
|
"useEventListener": true,
|
||||||
|
"useEventSource": true,
|
||||||
|
"useEyeDropper": true,
|
||||||
|
"useFavicon": true,
|
||||||
|
"useFetch": true,
|
||||||
|
"useFileDialog": true,
|
||||||
|
"useFileSystemAccess": true,
|
||||||
|
"useFocus": true,
|
||||||
|
"useFocusWithin": true,
|
||||||
|
"useFps": true,
|
||||||
|
"useFullscreen": true,
|
||||||
|
"useGamepad": true,
|
||||||
|
"useGeolocation": true,
|
||||||
|
"useIdle": true,
|
||||||
|
"useImage": true,
|
||||||
|
"useInfiniteScroll": true,
|
||||||
|
"useIntersectionObserver": true,
|
||||||
|
"useInterval": true,
|
||||||
|
"useIntervalFn": true,
|
||||||
|
"useKeyModifier": true,
|
||||||
|
"useLastChanged": true,
|
||||||
|
"useLocalStorage": true,
|
||||||
|
"useMagicKeys": true,
|
||||||
|
"useManualRefHistory": true,
|
||||||
|
"useMediaControls": true,
|
||||||
|
"useMediaQuery": true,
|
||||||
|
"useMemoize": true,
|
||||||
|
"useMemory": true,
|
||||||
|
"useMounted": true,
|
||||||
|
"useMouse": true,
|
||||||
|
"useMouseInElement": true,
|
||||||
|
"useMousePressed": true,
|
||||||
|
"useMutationObserver": true,
|
||||||
|
"useNavigatorLanguage": true,
|
||||||
|
"useNetwork": true,
|
||||||
|
"useNow": true,
|
||||||
|
"useObjectUrl": true,
|
||||||
|
"useOffsetPagination": true,
|
||||||
|
"useOnline": true,
|
||||||
|
"usePageLeave": true,
|
||||||
|
"useParallax": true,
|
||||||
|
"useParentElement": true,
|
||||||
|
"usePerformanceObserver": true,
|
||||||
|
"usePermission": true,
|
||||||
|
"usePointer": true,
|
||||||
|
"usePointerLock": true,
|
||||||
|
"usePointerSwipe": true,
|
||||||
|
"usePreferredColorScheme": true,
|
||||||
|
"usePreferredContrast": true,
|
||||||
|
"usePreferredDark": true,
|
||||||
|
"usePreferredLanguages": true,
|
||||||
|
"usePreferredReducedMotion": true,
|
||||||
|
"usePrevious": true,
|
||||||
|
"useRafFn": true,
|
||||||
|
"useRefHistory": true,
|
||||||
|
"useResizeObserver": true,
|
||||||
|
"useScreenOrientation": true,
|
||||||
|
"useScreenSafeArea": true,
|
||||||
|
"useScriptTag": true,
|
||||||
|
"useScroll": true,
|
||||||
|
"useScrollLock": true,
|
||||||
|
"useSessionStorage": true,
|
||||||
|
"useShare": true,
|
||||||
|
"useSlots": true,
|
||||||
|
"useSorted": true,
|
||||||
|
"useSpeechRecognition": true,
|
||||||
|
"useSpeechSynthesis": true,
|
||||||
|
"useStepper": true,
|
||||||
|
"useStorage": true,
|
||||||
|
"useStorageAsync": true,
|
||||||
|
"useStyleTag": true,
|
||||||
|
"useSupported": true,
|
||||||
|
"useSwipe": true,
|
||||||
|
"useTemplateRefsList": true,
|
||||||
|
"useTextDirection": true,
|
||||||
|
"useTextSelection": true,
|
||||||
|
"useTextareaAutosize": true,
|
||||||
|
"useThrottle": true,
|
||||||
|
"useThrottleFn": true,
|
||||||
|
"useThrottledRefHistory": true,
|
||||||
|
"useTimeAgo": true,
|
||||||
|
"useTimeout": true,
|
||||||
|
"useTimeoutFn": true,
|
||||||
|
"useTimeoutPoll": true,
|
||||||
|
"useTimestamp": true,
|
||||||
|
"useTitle": true,
|
||||||
|
"useToNumber": true,
|
||||||
|
"useToString": true,
|
||||||
|
"useToggle": true,
|
||||||
|
"useTransition": true,
|
||||||
|
"useUrlSearchParams": true,
|
||||||
|
"useUserMedia": true,
|
||||||
|
"useVModel": true,
|
||||||
|
"useVModels": true,
|
||||||
|
"useVibrate": true,
|
||||||
|
"useVirtualList": true,
|
||||||
|
"useWakeLock": true,
|
||||||
|
"useWebNotification": true,
|
||||||
|
"useWebSocket": true,
|
||||||
|
"useWebWorker": true,
|
||||||
|
"useWebWorkerFn": true,
|
||||||
|
"useWindowFocus": true,
|
||||||
|
"useWindowScroll": true,
|
||||||
|
"useWindowSize": true,
|
||||||
|
"watch": true,
|
||||||
|
"watchArray": true,
|
||||||
|
"watchAtMost": true,
|
||||||
|
"watchDebounced": true,
|
||||||
|
"watchDeep": true,
|
||||||
|
"watchEffect": true,
|
||||||
|
"watchIgnorable": true,
|
||||||
|
"watchImmediate": true,
|
||||||
|
"watchOnce": true,
|
||||||
|
"watchPausable": true,
|
||||||
|
"watchPostEffect": true,
|
||||||
|
"watchSyncEffect": true,
|
||||||
|
"watchThrottled": true,
|
||||||
|
"watchTriggerable": true,
|
||||||
|
"watchWithFilter": true,
|
||||||
|
"useRoute": true,
|
||||||
|
"useRouter": true,
|
||||||
|
"storeToRefs": true,
|
||||||
|
"whenever": true,
|
||||||
|
"DirectiveBinding": true,
|
||||||
|
"ExtractDefaultPropTypes": true,
|
||||||
|
"ExtractPropTypes": true,
|
||||||
|
"ExtractPublicPropTypes": true,
|
||||||
|
"MaybeRef": true,
|
||||||
|
"MaybeRefOrGetter": true,
|
||||||
|
"WritableComputedRef": true,
|
||||||
|
"acceptHMRUpdate": true,
|
||||||
|
"createPinia": true,
|
||||||
|
"defineStore": true,
|
||||||
|
"getActivePinia": true,
|
||||||
|
"injectLocal": true,
|
||||||
|
"mapActions": true,
|
||||||
|
"mapGetters": true,
|
||||||
|
"mapState": true,
|
||||||
|
"mapStores": true,
|
||||||
|
"mapWritableState": true,
|
||||||
|
"onBeforeRouteLeave": true,
|
||||||
|
"onBeforeRouteUpdate": true,
|
||||||
|
"onWatcherCleanup": true,
|
||||||
|
"provideLocal": true,
|
||||||
|
"setActivePinia": true,
|
||||||
|
"setMapStoreSuffix": true,
|
||||||
|
"useClipboardItems": true,
|
||||||
|
"useI18n": true,
|
||||||
|
"useId": true,
|
||||||
|
"useLink": true,
|
||||||
|
"useModel": true,
|
||||||
|
"useTemplateRef": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
node_modules
|
||||||
|
.DS_Store
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
.history
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.idea
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.local
|
||||||
|
|
||||||
|
stats.html
|
||||||
|
pnpm-lock.yaml
|
||||||
|
package-lock.json
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
npx --no-install commitlint --edit $1
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
npm run lint:lint-staged
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
dist
|
||||||
|
node_modules
|
||||||
|
public
|
||||||
|
.husky
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
*.sh
|
||||||
|
*.md
|
||||||
|
|
||||||
|
src/assets
|
||||||
|
stats.html
|
||||||
|
pnpm-lock.yaml
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
# 在单参数箭头函数中始终添加括号
|
||||||
|
arrowParens: "always"
|
||||||
|
# JSX 多行元素的闭合标签另起一行
|
||||||
|
bracketSameLine: false
|
||||||
|
# 对象字面量中的括号之间添加空格
|
||||||
|
bracketSpacing: true
|
||||||
|
# 自动格式化嵌入的代码(如 Markdown 和 HTML 内的代码)
|
||||||
|
embeddedLanguageFormatting: "auto"
|
||||||
|
# 忽略 HTML 空白敏感度,将空白视为非重要内容
|
||||||
|
htmlWhitespaceSensitivity: "ignore"
|
||||||
|
# 不插入 @prettier 的 pragma 注释
|
||||||
|
insertPragma: false
|
||||||
|
# 在 JSX 中使用双引号
|
||||||
|
jsxSingleQuote: false
|
||||||
|
# 每行代码的最大长度限制为 100 字符
|
||||||
|
printWidth: 100
|
||||||
|
# 在 Markdown 中保留原有的换行格式
|
||||||
|
proseWrap: "preserve"
|
||||||
|
# 仅在必要时添加对象属性的引号
|
||||||
|
quoteProps: "as-needed"
|
||||||
|
# 不要求文件开头插入 @prettier 的 pragma 注释
|
||||||
|
requirePragma: false
|
||||||
|
# 在语句末尾添加分号
|
||||||
|
semi: true
|
||||||
|
# 使用双引号而不是单引号
|
||||||
|
singleQuote: false
|
||||||
|
# 缩进使用 2 个空格
|
||||||
|
tabWidth: 2
|
||||||
|
# 在多行元素的末尾添加逗号(ES5 支持的对象、数组等)
|
||||||
|
trailingComma: "es5"
|
||||||
|
# 使用空格而不是制表符缩进
|
||||||
|
useTabs: false
|
||||||
|
# Vue 文件中的 <script> 和 <style> 不增加额外的缩进
|
||||||
|
vueIndentScriptAndStyle: false
|
||||||
|
# 根据系统自动检测换行符
|
||||||
|
endOfLine: "auto"
|
||||||
|
# 对 HTML 文件应用特定格式化规则
|
||||||
|
overrides:
|
||||||
|
- files: "*.html"
|
||||||
|
options:
|
||||||
|
parser: "html"
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
dist
|
||||||
|
node_modules
|
||||||
|
public
|
||||||
|
.husky
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
*.sh
|
||||||
|
*.md
|
||||||
|
|
||||||
|
src/assets
|
||||||
|
stats.html
|
||||||
|
|
@ -0,0 +1,52 @@
|
||||||
|
module.exports = {
|
||||||
|
// 继承推荐规范配置
|
||||||
|
extends: [
|
||||||
|
"stylelint-config-standard",
|
||||||
|
"stylelint-config-recommended-scss",
|
||||||
|
"stylelint-config-recommended-vue/scss",
|
||||||
|
"stylelint-config-html/vue",
|
||||||
|
"stylelint-config-recess-order",
|
||||||
|
],
|
||||||
|
// 指定不同文件对应的解析器
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ["**/*.{vue,html}"],
|
||||||
|
customSyntax: "postcss-html",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ["**/*.{css,scss}"],
|
||||||
|
customSyntax: "postcss-scss",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
// 自定义规则
|
||||||
|
rules: {
|
||||||
|
"import-notation": "string", // 指定导入CSS文件的方式("string"|"url")
|
||||||
|
"selector-class-pattern": null, // 选择器类名命名规则
|
||||||
|
"custom-property-pattern": null, // 自定义属性命名规则
|
||||||
|
"keyframes-name-pattern": null, // 动画帧节点样式命名规则
|
||||||
|
"no-descending-specificity": null, // 允许无降序特异性
|
||||||
|
"no-empty-source": null, // 允许空样式
|
||||||
|
"declaration-property-value-no-unknown": null, // 允许未知属性值
|
||||||
|
// 允许 global 、export 、deep伪类
|
||||||
|
"selector-pseudo-class-no-unknown": [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
ignorePseudoClasses: ["global", "export", "deep"],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
// 允许未知属性
|
||||||
|
"property-no-unknown": [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
ignoreProperties: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
// 允许未知规则
|
||||||
|
"at-rule-no-unknown": [
|
||||||
|
true,
|
||||||
|
{
|
||||||
|
ignoreAtRules: ["apply", "use", "forward"],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"vue.volar",
|
||||||
|
"antfu.unocss",
|
||||||
|
"lokalise.i18n-ally",
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"stylelint.vscode-stylelint",
|
||||||
|
"editorconfig.editorconfig"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,81 @@
|
||||||
|
{
|
||||||
|
"typescript.tsdk": "./node_modules/typescript/lib",
|
||||||
|
"npm.packageManager": "pnpm",
|
||||||
|
"editor.tabSize": 2,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
|
"editor.quickSuggestions": {
|
||||||
|
"other": true,
|
||||||
|
"comments": true,
|
||||||
|
"strings": true
|
||||||
|
},
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll": "explicit",
|
||||||
|
"source.fixAll.eslint": "explicit",
|
||||||
|
"source.fixAll.stylelint": "explicit"
|
||||||
|
},
|
||||||
|
"files.eol": "\n",
|
||||||
|
"search.exclude": {
|
||||||
|
"**/node_modules": true,
|
||||||
|
"**/*.log": true,
|
||||||
|
"**/*.log*": true,
|
||||||
|
"**/bower_components": true,
|
||||||
|
"**/dist": true,
|
||||||
|
"**/elehukouben": true,
|
||||||
|
"**/.git": true,
|
||||||
|
"**/.gitignore": true,
|
||||||
|
"**/.svn": true,
|
||||||
|
"**/.DS_Store": true,
|
||||||
|
"**/.idea": true,
|
||||||
|
"**/.vscode": false,
|
||||||
|
"**/yarn.lock": true,
|
||||||
|
"**/tmp": true,
|
||||||
|
"out": true,
|
||||||
|
"dist": true,
|
||||||
|
"node_modules": true,
|
||||||
|
"CHANGELOG.md": true,
|
||||||
|
"examples": true,
|
||||||
|
"res": true,
|
||||||
|
"screenshots": true,
|
||||||
|
"yarn-error.log": true,
|
||||||
|
"**/.yarn": true
|
||||||
|
},
|
||||||
|
"files.exclude": {
|
||||||
|
"**/.cache": true,
|
||||||
|
"**/.editorconfig": true,
|
||||||
|
"**/.eslintcache": true,
|
||||||
|
"**/bower_components": true,
|
||||||
|
"**/.idea": true,
|
||||||
|
"**/tmp": true,
|
||||||
|
"**/.git": true,
|
||||||
|
"**/.svn": true,
|
||||||
|
"**/.hg": true,
|
||||||
|
"**/CVS": true,
|
||||||
|
"**/.DS_Store": true
|
||||||
|
},
|
||||||
|
"files.watcherExclude": {
|
||||||
|
"**/.git/objects/**": true,
|
||||||
|
"**/.git/subtree-cache/**": true,
|
||||||
|
"**/.vscode/**": true,
|
||||||
|
"**/node_modules/**": true,
|
||||||
|
"**/tmp/**": true,
|
||||||
|
"**/bower_components/**": true,
|
||||||
|
"**/dist/**": true,
|
||||||
|
"**/yarn.lock": true
|
||||||
|
},
|
||||||
|
"i18n-ally.keystyle": "nested",
|
||||||
|
"i18n-ally.sortKeys": true,
|
||||||
|
"i18n-ally.namespace": false,
|
||||||
|
"i18n-ally.pathMatcher": "{namespaces}/{locale}.{ext}",
|
||||||
|
"i18n-ally.enabledParsers": ["ts"],
|
||||||
|
"i18n-ally.sourceLanguage": "en",
|
||||||
|
"i18n-ally.displayLanguage": "zh-CN",
|
||||||
|
"i18n-ally.enabledFrameworks": [
|
||||||
|
"vue",
|
||||||
|
"react"
|
||||||
|
],
|
||||||
|
"i18n-ally.localesPaths": [
|
||||||
|
"src/lang"
|
||||||
|
],
|
||||||
|
"scss.lint.unknownAtRules": "ignore"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"Vue3.0快速生成模板": {
|
||||||
|
"scope": "vue",
|
||||||
|
"prefix": "Vue3.0",
|
||||||
|
"body": [
|
||||||
|
"<template>",
|
||||||
|
" <div>${1:test}</div>",
|
||||||
|
"</template>",
|
||||||
|
"",
|
||||||
|
"<script lang=\"ts\">",
|
||||||
|
"export default {",
|
||||||
|
" setup() {",
|
||||||
|
" return {};",
|
||||||
|
" },",
|
||||||
|
"};",
|
||||||
|
"</script>",
|
||||||
|
"",
|
||||||
|
"<style lang=\"scss\" scoped></style>",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"description": "Vue3.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"Vue3.2+快速生成模板": {
|
||||||
|
"scope": "vue",
|
||||||
|
"prefix": "Vue3.2+",
|
||||||
|
"body": [
|
||||||
|
"<script setup lang=\"ts\"></script>",
|
||||||
|
"",
|
||||||
|
"<template>",
|
||||||
|
" <div>${1:test}</div>",
|
||||||
|
"</template>",
|
||||||
|
"",
|
||||||
|
"<style lang=\"scss\" scoped></style>",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"description": "Vue3.2+"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"Vue3.3+defineOptions快速生成模板": {
|
||||||
|
"scope": "vue",
|
||||||
|
"prefix": "Vue3.3+",
|
||||||
|
"body": [
|
||||||
|
"<script setup lang=\"ts\">",
|
||||||
|
"defineOptions({",
|
||||||
|
" name: \"\",",
|
||||||
|
"});",
|
||||||
|
"</script>",
|
||||||
|
"",
|
||||||
|
"<template>",
|
||||||
|
" <div>${1:test}</div>",
|
||||||
|
"</template>",
|
||||||
|
"",
|
||||||
|
"<style lang=\"scss\" scoped></style>",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"description": "Vue3.3+defineOptions快速生成模板"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,386 @@
|
||||||
|
|
||||||
|
# 2.11.5 (2024/6/18)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
|
||||||
|
- 支持后端文件导入([#142](https://github.com/youlaitech/vue3-element-admin/pull/142)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- vue-dev-tools 插件导致菜单路由切换卡死,暂时关闭 ([28349e](https://github.com/youlaitech/vue3-element-admin/commit/28349efe147afab36531ba148eaac3a448fe6c71)) [@haoxianrui](https://github.com/haoxianrui)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# 2.11.4 (2024/6/16)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
|
||||||
|
- 操作栏增加render配置参数([#138](https://github.com/youlaitech/vue3-element-admin/pull/140)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 左侧工具栏增加type配置参数([#141](https://github.com/youlaitech/vue3-element-admin/pull/141)) [@diamont1001](https://github.com/diamont1001)
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 更换权限分配弹窗类型为 drawer 并添加父子联动开关([2d9193](https://github.com/youlaitech/vue3-element-admin/commit/2d9193c47fd224f01f82b9c0b2bbeb5e7cb33584)) [@haoxianrui](https://github.com/haoxianrui)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# 2.11.3 (2024/6/11)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
|
||||||
|
- 支持默认工具栏的导入([#138](https://github.com/youlaitech/vue3-element-admin/pull/138)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 添加CURD导入示例([19e7bb](https://github.com/youlaitech/vue3-element-admin/commit/eab91effd6a01d5a3d9257249c8d06aa252b3bf8)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 修改导出全量数据选项文本([904fec](https://github.com/youlaitech/vue3-element-admin/commit/904fecad65217650482fcdbb10ffb7f3d27eb9ea)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 菜单列表未适配el-icon导致图标不显示问题修复([e72b68](https://github.com/youlaitech/vue3-element-admin/commit/e72b68337562b5a7ea24ad55bbe00023e1266b40)) [@haoxianrui](https://github.com/haoxianrui)
|
||||||
|
|
||||||
|
# 2.11.2 (2024/6/8)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
|
||||||
|
- 支持表格远程筛选([#131](https://github.com/youlaitech/vue3-element-admin/pull/131)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 支持标签输入框([#132](https://github.com/youlaitech/vue3-element-admin/pull/132)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 表单项支持tips配置([#133](https://github.com/youlaitech/vue3-element-admin/pull/133)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 前端导出支持全量数据([#134](https://github.com/youlaitech/vue3-element-admin/pull/134)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 支持选中数据导出([#135](https://github.com/youlaitech/vue3-element-admin/pull/135)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 表格默认工具栏的导出、搜索按钮增加权限点控制([883128](https://github.com/youlaitech/vue3-element-admin/commit/8831289b655f2cc086ecdababaa89f8d8a087c42)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 页签title支持动态设置([23876a](https://github.com/youlaitech/vue3-element-admin/commit/23876aa396143bf77cb5c86af8d6023d9ff6555a)) [@haoxianrui](https://github.com/haoxianrui)
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 默认工具栏支持自定义([#136](https://github.com/youlaitech/vue3-element-admin/pull/136)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 未配置全量导出接口时选项隐藏([eab91ef](https://github.com/youlaitech/vue3-element-admin/commit/eab91effd6a01d5a3d9257249c8d06aa252b3bf8)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 修复注销登出后redirect跳转路由参数丢失([5626017](https://github.com/youlaitech/vue3-element-admin/commit/562601736731afd20bb1a5140d856f6515720159)) [@haoxianrui](https://github.com/haoxianrui)
|
||||||
|
|
||||||
|
# 2.11.1 (2024/6/6)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
|
||||||
|
- 增加pagination、request、parseData配置参数([#119](https://github.com/youlaitech/vue3-element-admin/pull/119)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 增加返回顶部功能([#120](https://github.com/youlaitech/vue3-element-admin/pull/120)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 支持前端导出([#126](https://github.com/youlaitech/vue3-element-admin/pull/126)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 重构布局样式(解决页面抖动问题)([#116](https://github.com/youlaitech/vue3-element-admin/pull/116)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 修改CURD示例编辑弹窗尺寸([#121](https://github.com/youlaitech/vue3-element-admin/pull/121)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 统一注册vue插件([#122](https://github.com/youlaitech/vue3-element-admin/pull/122)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 默认主题跟随系统([#128](https://github.com/youlaitech/vue3-element-admin/pull/128)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 增加"scss.lint.unknownAtRules": "ignore"代码,解决style中使用@apply提示unknow at rules@apply提示问题([Gitee#22](https://gitee.com/youlaiorg/vue3-element-admin/pulls/22)) [@zjsy521](https://gitee.com/zjsy521)
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 修复左侧布局移动端菜单弹出样式 ([#117](https://github.com/youlaitech/vue3-element-admin/pull/117)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
|
||||||
|
- 修复编辑后未清空id再新增菜单覆盖的问题([0e78eeb](https://github.com/youlaitech/vue3-element-admin/commit/0e78eeb75008fa8e9732b1b4e7d7a1ea345c7a1b)) [@haoxianrui](https://github.com/haoxianrui)
|
||||||
|
- 修复水印层级问题([#123](https://github.com/youlaitech/vue3-element-admin/pull/123)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 修复混合布局样式问题([#124](https://github.com/youlaitech/vue3-element-admin/pull/124)) [@cshaptx4869](https://github.com/cshaptx4869)
|
||||||
|
- 修复关闭弹窗时没有clearValidate问题([#125](https://github.com/youlaitech/vue3-element-admin/pull/125)) [@andm31](https://github.com/andm31)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# 2.11.0 (2024/5/27)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
- 菜单添加路由参数设置(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 增加列表选择组件(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 增加列表选择组件使用示例(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 增加defaultToolbar配置参数(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 表单弹窗支持drawer模式(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 表单项增加computed和watchEffect配置(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 支持switch属性修改(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 表单项增加文本类型支持(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 列表列增加show配置项(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 支持搜索表单显隐控制(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 支持input属性修改(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- search配置新增函数能力拓展(author by [xiudaozhe](https://github.com/xiudaozhe))
|
||||||
|
- 表格新增列设置控制(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 搜索添加展开和收缩(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- watch函数增加配置项参数返回(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 重构图标选择组件(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 重构列表选择组件默认样式 (author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 加强对话框表单组件和列表选择组件(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- routeMeta增加alwaysShow字段声明(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 分页组件增加溢出滚动效果(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 修正登录表单的Ref类型(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 点击表格刷新按钮不重置页码(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 筛选列超出一定高度滚动(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 优化加强initFn函数,表单项增加initFn函数(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 重构watch、computed、watchEffect调用(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 修改操作成功提示(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- PageSearch 改用card作为容器,样式改用unocss写法(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 优化首页 loading 动画效果author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 路由是否始终显示不限制只有顶级目录才有的配置,开放至菜单 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- sockjs-client 报错 global is not defined 导致开发环境无法打开 WebSocket 页面问题修复 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 发送用户重启密码功能,最少为6位字符(小于6位登陆时不允许的问题) (author by [dreamnyj](https://gitee.com/dreamnyj))
|
||||||
|
- 修复系统设置面板滚动条问题(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 修复表单插槽失效问题(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 修改tagsview刷新丢失query问题(author by [xiudaozhe](https://github.com/xiudaozhe))
|
||||||
|
|
||||||
|
## 📦️ build
|
||||||
|
- 升级 NPM 包版本至最新 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
## ⚙️ ci
|
||||||
|
- 规整脚本执行命令(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
|
||||||
|
|
||||||
|
# 2.10.1 (2024/5/4)
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 抽离CURD的使用部分代码为Hooks实现(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 修改CURD导入权限点标识名(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- cURD表单字段支持watch监听(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- cURD表单input支持number修饰(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- cURD表单组件支持checkbox多选框(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 优化axios响应数据TS类型提示(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 修改CURD表单组件自定义类型的attrs传值(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 同步重置密码按钮权限标识重命名(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 重构API为静态方法实现模块化管理,并将types.ts重命名为model.ts用于存放接口模型定义(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- sockjs-client 报错 global is not defined 导致开发环境无法打开 WebSocket 页面问题修复 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 主题颜色设置覆盖暗黑模式下el-table行激活的背景色问题修复 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 修复因API接口调整而影响的调用页面的问题 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
## 📦️ build
|
||||||
|
- 升级 NPM 包版本至最新 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
|
||||||
|
# 2.10.0 (2024/4/26)
|
||||||
|
## ✨ feat
|
||||||
|
- 封装增删改查组件(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 集成 vite-plugin-vue-devtools 插件(author by [Tricker39](https://github.com/Tricker39))
|
||||||
|
- 增加CURD配置化实现(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
|
||||||
|
|
||||||
|
# 2.9.3 (2024/04/14)
|
||||||
|
## ✨ feat
|
||||||
|
- 增加vue文件代码片段(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 菜单 hover 背景色添加值全局SCSS变量进行控制(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 加强基础国际化(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 增加语言和布局大小枚举类型(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 增加侧边栏状态枚举类型(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 使用布局枚举替换字面量(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 控制台使用静态数据循环渲染(author by [april](mailto:april@zen-game.cn))
|
||||||
|
- 本地缓存的 token 变量重命名(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 完善 Vite 环境变量类型声明(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 修复构建时提示iconComponent.name可能为undefined的报错 (author by [wangji1042](https://github.com/wangji1042))
|
||||||
|
- 修复浏览器密码自动填充时可能存在的报错 (author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 修复eslint报错(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 移动端下点击左侧菜单节点后关闭侧边栏(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 添加 size 类型断言修复类型报错(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
## 📦️ build
|
||||||
|
- husky9.x版本适配 (author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 升级 npm 包版本至最新(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
# 2.9.2 (2024/03/05)
|
||||||
|
## ✨ feat
|
||||||
|
- vscode开发扩展推荐(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 完善基础增删改查Mock接口(author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 修改login密码框功能实现(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 弱化页面进入动画效果(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 取消推荐TypeScript Vue Plugin (author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 网站加载动画替换 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 优化主题和主题色监听,避免多个页面重复初始化 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- AppMain 高度在非固定头部不正确导致出现滚动条问题修复 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 修复混合模式开启固定Head时的样式问题 (author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 设置面板统一字体大小 (author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
|
||||||
|
## 📦️build
|
||||||
|
- 通过env配置控制mock服务 (author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 升级依赖包至最新版本 (author by [haoxianrui](https://github.com/haoxianrui))
|
||||||
|
- 定义vite全局常量替换项目标题和版本 (author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
|
||||||
|
# 2.9.1 (2024/02/28)
|
||||||
|
## ♻️ refactor
|
||||||
|
- 项目配置按钮移入navbar(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 优化user数据定义(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 统一设置栏的 SVG 图标风格
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 规整一些开发依赖(author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
- 修复登录页主题切换问题 (author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
|
||||||
|
## 🚀 pref
|
||||||
|
|
||||||
|
- 压缩图片资源 (author by [cshaptx4869](https://github.com/cshaptx4869))
|
||||||
|
|
||||||
|
|
||||||
|
# 2.9.0 (2024/02/25)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
- 引入 animate.css 动画库
|
||||||
|
- 新增水印和配置
|
||||||
|
- 动态路由菜单支持 element plus 的图标
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- Layout 布局重构和相关问题修复
|
||||||
|
- sass 使用 @use 替代 @import 引入外部文件指令
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 修复管理页面部分弹窗无法打开问题
|
||||||
|
- 主题颜色设置按钮 hover 等未变化问题修复
|
||||||
|
|
||||||
|
|
||||||
|
# 2.8.1 (2024/01/10)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
- 替换 Mock 解决方案 vite-plugin-mock 为 vite-plugin-mock-dev-server 适配 Vite5
|
||||||
|
|
||||||
|
# 2.8.0 (2023/12/27)
|
||||||
|
|
||||||
|
## ⬆️ chore
|
||||||
|
- 升级 Vite4 至 Vite5
|
||||||
|
|
||||||
|
# 2.7.1 (2023/12/12)
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 将打包后的文件进行分类 (author by [ityangzhiwen](https://gitee.com/ityangzhiwen))
|
||||||
|
|
||||||
|
# 2.7.0 (2023/11/19)
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 代码重构优化
|
||||||
|
- 修改自动导入组件类型声明文件路径
|
||||||
|
- 完善 typescript 类型
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 修复管理页面部分弹窗无法打开问题
|
||||||
|
|
||||||
|
|
||||||
|
# 2.7.0 (2023/11/19)
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 代码重构
|
||||||
|
- 修改自动导入组件类型声明文件路径
|
||||||
|
- 完善 typescript 类型
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 修复管理页面部分弹窗无法打开问题
|
||||||
|
|
||||||
|
|
||||||
|
# 2.6.3 (2023/10/22)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
- 菜单管理新增目录只有一级子路由是否始终显示(alwaysShow)和路由页面是否缓存(keepAlive)的配置
|
||||||
|
- 接口文档新增 swagger、knife4j
|
||||||
|
- 引入和支持 tsx
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 代码瘦身,整理并删除未使用的 svg
|
||||||
|
- 控制台样式优化
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 菜单栏折叠和展开的图标暗黑模式显示问题修复
|
||||||
|
|
||||||
|
|
||||||
|
# 2.6.2 (2023/10/11)
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 主题设置未持久化问题
|
||||||
|
- UnoCSS 插件无智能提示
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- WebSocket 演示样式和代码优化
|
||||||
|
- 用户管理代码重构
|
||||||
|
|
||||||
|
# 2.6.1 (2023/9/4)
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 导航顶部模式、混合模式样式在固定 Header 出现的样式问题修复
|
||||||
|
- 固定 Header 没有持久化问题修复
|
||||||
|
- 字典回显兼容 String 和 Number 类型
|
||||||
|
|
||||||
|
# 2.6.0 (2023/8/24)💥💥💥
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
- 导航顶部模式、混合模式支持(author by [april-tong](https://april-tong.com/))
|
||||||
|
- 平台文档(内嵌)(author by [april-tong](https://april-tong.com/))
|
||||||
|
|
||||||
|
# 2.5.0 (2023/8/8)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
- 新增 Mock(author by [ygcaicn](https://github.com/ygcaicn))
|
||||||
|
- 图标 DEMO(author by [ygcaicn](https://github.com/ygcaicn))
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 字典支持 Number 类型
|
||||||
|
|
||||||
|
# 2.4.1 (2023/7/20)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
- 整合 vite-plugin-compression 插件打包优化(3.66MB → 1.58MB) (author by [april-tong](https://april-tong.com/))
|
||||||
|
- 字典组件封装(author by [haoxr](https://juejin.cn/user/4187394044331261/posts))
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 分页组件hidden无效
|
||||||
|
- 签名无法保存至后端
|
||||||
|
- Git 提交 stylelint 校验部分机器报错
|
||||||
|
|
||||||
|
# 2.4.0 (2023/6/17)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
- 新增组件标签输入框(author by [april-tong](https://april-tong.com/))
|
||||||
|
- 新增组件签名(author by [april-tong](https://april-tong.com/))
|
||||||
|
- 新增组件表格(author by [april-tong](https://april-tong.com/))
|
||||||
|
- Echarts 图表添加下载功能 author by [april-tong](https://april-tong.com/))
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 限制包管理器为 pnpm 和 node 版本16+
|
||||||
|
- 自定义组件自动导入配置
|
||||||
|
- 搜索框样式写法优化
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 用户导入的部门回显成数字问题修复
|
||||||
|
|
||||||
|
## ⬆️ chore
|
||||||
|
- element-plus 版本升级 2.3.5 → 2.3.6
|
||||||
|
|
||||||
|
# 2.3.1 (2023/5/21)
|
||||||
|
|
||||||
|
## 🔄 refactor
|
||||||
|
- 组件示例文件名称优化
|
||||||
|
|
||||||
|
# 2.2.2 (2023/5/11)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
- 组件封装示例添加源码地址
|
||||||
|
- 角色、菜单、部门、字段按钮添加权限控制
|
||||||
|
|
||||||
|
|
||||||
|
# 2.3.0 (2023/5/12)
|
||||||
|
|
||||||
|
## ⬆️ chore
|
||||||
|
- vue 版本升级 3.2.45 → 3.3.1 ([CHANGELOG](https://github.com/vuejs/core/blob/main/CHANGELOG.md))
|
||||||
|
- vite 版本升级 4.3.1 → 4.3.5
|
||||||
|
|
||||||
|
## ♻️ refactor
|
||||||
|
- 使用 vue 3.3 版本新特性 `defineOptions` 在 `setup` 定义组件名称,移除重复的 `script` 标签
|
||||||
|
|
||||||
|
# 2.2.2 (2023/5/11)
|
||||||
|
|
||||||
|
## ✨ feat
|
||||||
|
- 用户新增提交添加 `vueUse` 的 `useDebounceFn` 函数实现按钮防抖节流
|
||||||
|
|
||||||
|
|
||||||
|
# 2.2.1 (2023/4/25)
|
||||||
|
|
||||||
|
## 🐛 fix
|
||||||
|
- 图标选择器组件使用 `onClickOutside` 未排除下拉弹出框元素导致无法输入搜索。
|
||||||
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2021-present 有来开源组织
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
@ -0,0 +1,176 @@
|
||||||
|
<div align="center">
|
||||||
|
<img alt="vue3-element-admin" width="80" height="80" src="./src/assets/logo.png">
|
||||||
|
<h1>vue3-element-admin</h1>
|
||||||
|
|
||||||
|
<img src="https://img.shields.io/badge/Vue-3.5.13-brightgreen.svg"/>
|
||||||
|
<img src="https://img.shields.io/badge/Vite-6.0.5-green.svg"/>
|
||||||
|
<img src="https://img.shields.io/badge/Element Plus-2.9.1-blue.svg"/>
|
||||||
|
<img src="https://img.shields.io/badge/license-MIT-green.svg"/>
|
||||||
|
<a href="https://gitee.com/youlaiorg" target="_blank">
|
||||||
|
<img src="https://img.shields.io/badge/Author-有来开源组织-orange.svg"/>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="https://gitee.com/youlaiorg/youlai-boot" target="_blank">
|
||||||
|
<img alt="有来技术" src="https://gitee.com/youlaiorg/vue3-element-admin/badge/star.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/youlaitech/vue3-element-admin" target="_blank">
|
||||||
|
<img alt="有来技术" src="https://img.shields.io/github/stars/youlaitech/vue3-element-admin.svg?style=social&label=Stars"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://gitcode.com/youlai/vue3-element-admin" target="_blank">
|
||||||
|
<img alt="有来技术" src="https://gitcode.com/youlai/vue3-element-admin/star/badge.svg"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<a target="_blank" href="http://vue3.youlai.tech">👀 Live Preview</a> | <a target="_blank" href="https://juejin.cn/post/7228990409909108793">📖 Read Documentation</a> | 🌐 <a href="./README.md">中文
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
|
[vue3-element-admin](https://gitee.com/youlaiorg/vue3-element-admin) is a free and open-source admin template for backend management frontend, built with popular technologies such as Vue3, Vite5, TypeScript, Element-Plus, and Pinia (with accompanying [backend source code](https://gitee.com/youlaiorg/youlai-boot)).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Project Features
|
||||||
|
|
||||||
|
- **Simple and Easy-to-use**: Upgraded version of [vue-element-admin](https://gitee.com/panjiachen/vue-element-admin) for Vue3, with minimal encapsulation and easy to get started.
|
||||||
|
|
||||||
|
- **Data Interaction**: Support both local `Mock` data and remote API. Comes with [Java backend source code](https://gitee.com/youlaiorg/youlai-boot) and online API documentation.
|
||||||
|
|
||||||
|
- **Permission Management**: Complete permission system for users, roles, menus, dictionaries, and departments.
|
||||||
|
|
||||||
|
- **Essential Infrastructure**: Dynamic routing, button permissions, internationalization, code style, Git commit conventions, and common component encapsulation.
|
||||||
|
|
||||||
|
- **Continuous Updates**: Since 2021, the project has maintained an open-source status with continuous updates, integrating new tools and dependencies in real time, and has accumulated a broad user base.
|
||||||
|
|
||||||
|
## Project Preview
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Project Links
|
||||||
|
|
||||||
|
| Project | Gitee | Github | GitCode |
|
||||||
|
|----------| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
||||||
|
| Frontend | [vue3-element-admin](https://gitee.com/youlaiorg/vue3-element-admin) | [vue3-element-admin](https://github.com/youlaitech/vue3-element-admin) | [vue3-element-admin](https://gitcode.net/youlai/vue3-element-admin) |
|
||||||
|
| Lite | [vue3-element-template](https://gitee.com/youlaiorg/vue3-element-template) | [vue3-element-template](https://github.com/youlaitech/vue3-element-template) |-|
|
||||||
|
| Backend | [youlai-boot](https://gitee.com/youlaiorg/youlai-boot) | [youlai-boot](https://github.com/haoxianrui/youlai-boot.git) | [youlai-boot](https://gitcode.net/youlai/youlai-boot) |
|
||||||
|
|
||||||
|
## Environment Setup
|
||||||
|
|
||||||
|
| Environment | Name and Version | Download Link |
|
||||||
|
| -------------------- | :----------------------------------------------------------- | ------------------------------------------------------------ |
|
||||||
|
| **Development Tool** | VSCode | [Download](https://code.visualstudio.com/Download) |
|
||||||
|
| **Runtime Environment** | Node ≥18 | [Download](http://nodejs.cn/download) |
|
||||||
|
|
||||||
|
|
||||||
|
## Project Setup
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Clone the repository
|
||||||
|
git clone https://gitee.com/youlaiorg/vue3-element-admin.git
|
||||||
|
|
||||||
|
# Change directory
|
||||||
|
cd vue3-element-admin
|
||||||
|
|
||||||
|
# Install pnpm
|
||||||
|
npm install pnpm -g
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
pnpm install
|
||||||
|
|
||||||
|
# Start the project
|
||||||
|
pnpm run dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Project Deployment
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Build the project
|
||||||
|
pnpm run build
|
||||||
|
|
||||||
|
# Upload files to the remote server
|
||||||
|
Copy the files generated in the `dist` directory to the `/usr/share/nginx/html` directory.
|
||||||
|
|
||||||
|
# nginx.cofig configuration
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
# Reverse proxy configuration
|
||||||
|
location /prod-api/ {
|
||||||
|
proxy_pass http://vapi.youlai.tech/; # Replace vapi.youlai.tech with your backend API address
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Local Mock
|
||||||
|
|
||||||
|
The project supports both online API and local mock API. By default, it uses the online API. If you want to switch to the mock API, modify the value of `VITE_MOCK_DEV_SERVER` in the `.env.development` file to `true`.
|
||||||
|
|
||||||
|
## Backend API
|
||||||
|
|
||||||
|
> If you have a basic understanding of Java development, follow these steps to convert online API to local backend API and set up a full-stack development environment.
|
||||||
|
|
||||||
|
1. Get the backend source code based on `Java` and `SpringBoot` from [youlai-boot](https://gitee.com/youlaiorg/youlai-boot.git).
|
||||||
|
2. Follow the instructions in the backend project's README.md to set up the local environment.
|
||||||
|
3. Modify the value of `VITE_APP_API_URL` in the `.env.development` file to `http://localhost:8989`, replacing it with the backend API URL.
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- **Auto import plugin is disabled by default**
|
||||||
|
|
||||||
|
Component type declarations have been automatically generated for the template project. If you add and use new components, follow the instructions in the screenshot to enable automatic generation. After automatic generation is complete, remember to set it back to `false` to avoid conflicts.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **Blank page when accessing the project**
|
||||||
|
|
||||||
|
Try upgrading your browser, as older browser engines may not support certain new JavaScript syntax, such as optional chaining operator `?.`.
|
||||||
|
|
||||||
|
- **Red highlight on project components, functions, and imports**
|
||||||
|
|
||||||
|
Restart VSCode to try again.
|
||||||
|
|
||||||
|
- **Other issues**
|
||||||
|
|
||||||
|
If you have any other issues or suggestions, please open an [issue](https://gitee.com/youlaiorg/vue3-element-admin/issues/new).
|
||||||
|
|
||||||
|
## Project Documentation
|
||||||
|
|
||||||
|
- [Building a Backend Management System from Scratch with Vue3, Vite, TypeScript, and Element-Plus](https://blog.csdn.net/u013737132/article/details/130191394)
|
||||||
|
|
||||||
|
- [ESLint+Prettier+Stylelint+EditorConfig for Standardized and Unified Frontend Code Style](https://blog.csdn.net/u013737132/article/details/130190788)
|
||||||
|
- [Git Commit Conventions with Husky, Lint-staged, Commitlint, Commitizen, and cz-git](https://blog.csdn.net/u013737132/article/details/130191363)
|
||||||
|
|
||||||
|
## Commit Conventions
|
||||||
|
|
||||||
|
Execute `pnpm run commit` to invoke interactive git commit and complete the information input and selection according to the prompts.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Community 🚀
|
||||||
|
|
||||||
|
> **Follow "Youlai Tech" WeChat Official Account to get the QR code for the community.**
|
||||||
|
>
|
||||||
|
> If the QR code for the community has expired, please add my WeChat (haoxianrui) and indicate whether you are interested in "Frontend", "Backend", or "Full Stack" to get the latest QR code.
|
||||||
|
>
|
||||||
|
> This measure is taken to ensure the quality of the community and prevent marketing advertising from infiltrating. Thank you for your understanding!
|
||||||
|
|
||||||
|
| Official Account | Community |
|
||||||
|
|:----:|:----:|
|
||||||
|
|  |  |
|
||||||
|
|
||||||
205
README.md
|
|
@ -1 +1,204 @@
|
||||||
#management-web
|
<div align="center">
|
||||||
|
<img alt="vue3-element-admin" width="80" height="80" src="./src/assets/logo.png">
|
||||||
|
<h1>vue3-element-admin</h1>
|
||||||
|
|
||||||
|
<img src="https://img.shields.io/badge/Vue-3.5.13-brightgreen.svg"/>
|
||||||
|
<img src="https://img.shields.io/badge/Vite-6.0.5-green.svg"/>
|
||||||
|
<img src="https://img.shields.io/badge/Element Plus-2.9.1-blue.svg"/>
|
||||||
|
<img src="https://img.shields.io/badge/license-MIT-green.svg"/>
|
||||||
|
<a href="https://gitee.com/youlaiorg" target="_blank">
|
||||||
|
<img src="https://img.shields.io/badge/Author-有来开源组织-orange.svg"/>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="https://gitee.com/youlaiorg/youlai-boot" target="_blank">
|
||||||
|
<img alt="有来技术" src="https://gitee.com/youlaiorg/vue3-element-admin/badge/star.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/youlaitech/vue3-element-admin" target="_blank">
|
||||||
|
<img alt="有来技术" src="https://img.shields.io/github/stars/youlaitech/vue3-element-admin.svg?style=social&label=Stars"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://gitcode.com/youlai/vue3-element-admin" target="_blank">
|
||||||
|
<img alt="有来技术" src="https://gitcode.com/youlai/vue3-element-admin/star/badge.svg"/>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<a target="_blank" href="http://vue3.youlai.tech">🔍 在线预览</a> | <a target="_blank" href="https://juejin.cn/post/7228990409909108793">📖 阅读文档</a> | <a href="./README.en-US.md">🌐English
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 项目简介
|
||||||
|
|
||||||
|
[vue3-element-admin](https://gitcode.com/youlai/vue3-element-admin) 是基于 Vue3 + Vite5+ TypeScript5 + Element-Plus + Pinia 等主流技术栈构建的免费开源的中后台管理的前端模板(配套[Java 后端源码](https://gitee.com/youlaiorg/youlai-boot))。
|
||||||
|
|
||||||
|
|
||||||
|
## 项目特色
|
||||||
|
|
||||||
|
- **简洁易用**:基于 [vue-element-admin](https://gitee.com/panjiachen/vue-element-admin) 升级的 Vue3 版本,无过渡封装 ,易上手。
|
||||||
|
|
||||||
|
- **数据交互**:同时支持本地 `Mock` 和线上接口,配套 [Java 后端源码](https://gitee.com/youlaiorg/youlai-boot)和[在线接口文档](https://www.apifox.cn/apidoc/shared-195e783f-4d85-4235-a038-eec696de4ea5)。
|
||||||
|
|
||||||
|
- **权限管理**:用户、角色、菜单、字典、部门等完善的权限系统功能。
|
||||||
|
|
||||||
|
- **基础设施**:动态路由、按钮权限、国际化、代码规范、Git 提交规范、常用组件封装。
|
||||||
|
|
||||||
|
- **持续更新**:项目持续开源更新,实时更新工具和依赖。
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 项目预览
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 项目源码
|
||||||
|
|
||||||
|
| 项目 | Gitee | Github | GitCode|
|
||||||
|
| ---- | ----| ---- | ---- |
|
||||||
|
| 前端 | [vue3-element-admin](https://gitee.com/youlaiorg/vue3-element-admin) | [vue3-element-admin](https://github.com/youlaitech/vue3-element-admin) | [vue3-element-admin](https://gitcode.com/youlai/vue3-element-admin) |
|
||||||
|
| 精简版 | [vue3-element-template](https://gitee.com/youlaiorg/vue3-element-template) | [vue3-element-template](https://github.com/youlaitech/vue3-element-template) |-|
|
||||||
|
| 后端 | [youlai-boot](https://gitee.com/youlaiorg/youlai-boot) | [youlai-boot](https://github.com/haoxianrui/youlai-boot.git) |[youlai-boot](https://gitcode.com/youlai/youlai-boot.git)|
|
||||||
|
|
||||||
|
## 环境准备
|
||||||
|
|
||||||
|
| 环境 | 名称版本 | 下载地址 |
|
||||||
|
| -------------------- | :----------------------------------------------------------- | ------------------------------------------------------------ |
|
||||||
|
| **开发工具** | VSCode | [下载](https://code.visualstudio.com/Download) |
|
||||||
|
| **运行环境** | Node ≥18 (其中 20.6.0 版本不可用) | [下载](http://nodejs.cn/download) |
|
||||||
|
|
||||||
|
|
||||||
|
## 项目启动
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 克隆代码
|
||||||
|
git clone https://gitee.com/youlaiorg/vue3-element-admin.git
|
||||||
|
|
||||||
|
# 切换目录
|
||||||
|
cd vue3-element-admin
|
||||||
|
|
||||||
|
# 安装 pnpm
|
||||||
|
npm install pnpm -g
|
||||||
|
|
||||||
|
# 设置镜像源(可忽略)
|
||||||
|
pnpm config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
|
# 安装依赖
|
||||||
|
pnpm install
|
||||||
|
|
||||||
|
# 启动运行
|
||||||
|
pnpm run dev
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 项目部署
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 项目打包
|
||||||
|
pnpm run build
|
||||||
|
|
||||||
|
# 上传文件至远程服务器
|
||||||
|
将本地打包生成的 dist 目录下的所有文件拷贝至服务器的 /usr/share/nginx/html 目录。
|
||||||
|
|
||||||
|
# nginx.cofig 配置
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
# 反向代理配置
|
||||||
|
location /prod-api/ {
|
||||||
|
# api.youlai.tech 替换后端API地址,注意保留后面的斜杠 /
|
||||||
|
proxy_pass http://api.youlai.tech/;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## 本地Mock
|
||||||
|
|
||||||
|
项目同时支持在线和本地 Mock 接口,默认使用线上接口,如需替换为 Mock 接口,修改文件 `.env.development` 的 `VITE_MOCK_DEV_SERVER` 为 `true` **即可**。
|
||||||
|
|
||||||
|
## 后端接口
|
||||||
|
|
||||||
|
> 如果您具备Java开发基础,按照以下步骤将在线接口转为本地后端接口,创建企业级前后端分离开发环境,助您走向全栈之路。
|
||||||
|
|
||||||
|
1. 获取基于 `Java` 和 `SpringBoot` 开发的后端 [youlai-boot](https://gitee.com/youlaiorg/youlai-boot.git) 源码。
|
||||||
|
2. 根据后端工程的说明文档 [README.md](https://gitee.com/youlaiorg/youlai-boot#%E9%A1%B9%E7%9B%AE%E8%BF%90%E8%A1%8C) 完成本地启动。
|
||||||
|
3. 修改 `.env.development` 文件中的 `VITE_APP_API_URL` 的值,将其从 https://api.youlai.tech 更改为 http://localhost:8989 即可。
|
||||||
|
|
||||||
|
|
||||||
|
## 注意事项
|
||||||
|
|
||||||
|
- **自动导入插件自动生成默认关闭**
|
||||||
|
|
||||||
|
模板项目的组件类型声明已自动生成。如果添加和使用新的组件,请按照图示方法开启自动生成。在自动生成完成后,记得将其设置为 `false`,避免重复执行引发冲突。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **项目启动浏览器访问空白**
|
||||||
|
|
||||||
|
请升级浏览器尝试,低版本浏览器内核可能不支持某些新的 JavaScript 语法,比如可选链操作符 `?.`。
|
||||||
|
|
||||||
|
- **项目同步仓库更新升级**
|
||||||
|
|
||||||
|
项目同步仓库更新升级之后,建议 `pnpm install` 安装更新依赖之后启动 。
|
||||||
|
|
||||||
|
- **项目组件、函数和引用爆红**
|
||||||
|
|
||||||
|
重启 VSCode 尝试
|
||||||
|
|
||||||
|
- **其他问题**
|
||||||
|
|
||||||
|
如果有其他问题或者建议,建议 [ISSUE](https://gitee.com/youlaiorg/vue3-element-admin/issues/new)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 项目文档
|
||||||
|
|
||||||
|
- [基于 Vue3 + Vite + TypeScript + Element-Plus 从0到1搭建后台管理系统](https://blog.csdn.net/u013737132/article/details/130191394)
|
||||||
|
|
||||||
|
- [ESLint+Prettier+Stylelint+EditorConfig 约束和统一前端代码规范](https://blog.csdn.net/u013737132/article/details/130190788)
|
||||||
|
- [Husky + Lint-staged + Commitlint + Commitizen + cz-git 配置 Git 提交规范](https://blog.csdn.net/u013737132/article/details/130191363)
|
||||||
|
|
||||||
|
|
||||||
|
## 提交规范
|
||||||
|
|
||||||
|
执行 `pnpm run commit` 唤起 git commit 交互,根据提示完成信息的输入和选择。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
## 项目统计
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
Thanks to all the contributors!
|
||||||
|
|
||||||
|
[](https://github.com/youlaitech/vue3-element-admin/graphs/contributors)
|
||||||
|
|
||||||
|
## G-Star
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 交流群🚀
|
||||||
|
|
||||||
|
> **关注「有来技术」公众号,获取交流群二维码。**
|
||||||
|
>
|
||||||
|
> 如果交流群的二维码过期,请加微信(haoxianrui)并备注「前端」、「后端」或「全栈」以获取最新二维码。
|
||||||
|
>
|
||||||
|
> 为确保交流群质量,防止营销广告人群混入,我们采取了此措施。望各位理解!
|
||||||
|
|
||||||
|
| 公众号 | 交流群 |
|
||||||
|
|:----:|:----:|
|
||||||
|
|  |  |
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,95 @@
|
||||||
|
module.exports = {
|
||||||
|
// 继承的规则
|
||||||
|
extends: ["@commitlint/config-conventional"],
|
||||||
|
// 自定义规则
|
||||||
|
rules: {
|
||||||
|
// @see https://commitlint.js.org/#/reference-rules
|
||||||
|
|
||||||
|
// 提交类型枚举,git提交type必须是以下类型
|
||||||
|
"type-enum": [
|
||||||
|
2,
|
||||||
|
"always",
|
||||||
|
[
|
||||||
|
"feat", // 新增功能
|
||||||
|
"fix", // 修复缺陷
|
||||||
|
"docs", // 文档变更
|
||||||
|
"style", // 代码格式(不影响功能,例如空格、分号等格式修正)
|
||||||
|
"refactor", // 代码重构(不包括 bug 修复、功能新增)
|
||||||
|
"perf", // 性能优化
|
||||||
|
"test", // 添加疏漏测试或已有测试改动
|
||||||
|
"build", // 构建流程、外部依赖变更(如升级 npm 包、修改 webpack 配置等)
|
||||||
|
"ci", // 修改 CI 配置、脚本
|
||||||
|
"revert", // 回滚 commit
|
||||||
|
"chore", // 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)
|
||||||
|
"wip", // 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)
|
||||||
|
],
|
||||||
|
],
|
||||||
|
"subject-case": [0], // subject大小写不做校验
|
||||||
|
},
|
||||||
|
|
||||||
|
prompt: {
|
||||||
|
messages: {
|
||||||
|
type: "选择你要提交的类型 :",
|
||||||
|
scope: "选择一个提交范围(可选):",
|
||||||
|
customScope: "请输入自定义的提交范围 :",
|
||||||
|
subject: "填写简短精炼的变更描述 :\n",
|
||||||
|
body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n',
|
||||||
|
breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n',
|
||||||
|
footerPrefixesSelect: "选择关联issue前缀(可选):",
|
||||||
|
customFooterPrefix: "输入自定义issue前缀 :",
|
||||||
|
footer: "列举关联issue (可选) 例如: #31, #I3244 :\n",
|
||||||
|
generatingByAI: "正在通过 AI 生成你的提交简短描述...",
|
||||||
|
generatedSelectByAI: "选择一个 AI 生成的简短描述:",
|
||||||
|
confirmCommit: "是否提交或修改commit ?",
|
||||||
|
},
|
||||||
|
// prettier-ignore
|
||||||
|
types: [
|
||||||
|
{ value: "feat", name: "特性: ✨ 新增功能", emoji: ":sparkles:" },
|
||||||
|
{ value: "fix", name: "修复: 🐛 修复缺陷", emoji: ":bug:" },
|
||||||
|
{ value: "docs", name: "文档: 📝 文档变更(更新README文件,或者注释)", emoji: ":memo:" },
|
||||||
|
{ value: "style", name: "格式: 🌈 代码格式(空格、格式化、缺失的分号等)", emoji: ":lipstick:" },
|
||||||
|
{ value: "refactor", name: "重构: 🔄 代码重构(不修复错误也不添加特性的代码更改)", emoji: ":recycle:" },
|
||||||
|
{ value: "perf", name: "性能: 🚀 性能优化", emoji: ":zap:" },
|
||||||
|
{ value: "test", name: "测试: 🧪 添加疏漏测试或已有测试改动", emoji: ":white_check_mark:"},
|
||||||
|
{ value: "build", name: "构建: 📦️ 构建流程、外部依赖变更(如升级 npm 包、修改 vite 配置等)", emoji: ":package:"},
|
||||||
|
{ value: "ci", name: "集成: ⚙️ 修改 CI 配置、脚本", emoji: ":ferris_wheel:"},
|
||||||
|
{ value: "revert", name: "回退: ↩️ 回滚 commit",emoji: ":rewind:"},
|
||||||
|
{ value: "chore", name: "其他: 🛠️ 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)", emoji: ":hammer:"},
|
||||||
|
{ value: "wip", name: "开发中: 🚧 开发阶段临时提交", emoji: ":construction:"},
|
||||||
|
],
|
||||||
|
useEmoji: true,
|
||||||
|
emojiAlign: "center",
|
||||||
|
useAI: false,
|
||||||
|
aiNumber: 1,
|
||||||
|
themeColorCode: "",
|
||||||
|
scopes: [],
|
||||||
|
allowCustomScopes: true,
|
||||||
|
allowEmptyScopes: true,
|
||||||
|
customScopesAlign: "bottom",
|
||||||
|
customScopesAlias: "custom",
|
||||||
|
emptyScopesAlias: "empty",
|
||||||
|
upperCaseSubject: false,
|
||||||
|
markBreakingChangeMode: false,
|
||||||
|
allowBreakingChanges: ["feat", "fix"],
|
||||||
|
breaklineNumber: 100,
|
||||||
|
breaklineChar: "|",
|
||||||
|
skipQuestions: [],
|
||||||
|
issuePrefixes: [
|
||||||
|
{ value: "closed", name: "closed: ISSUES has been processed" },
|
||||||
|
],
|
||||||
|
customIssuePrefixAlign: "top",
|
||||||
|
emptyIssuePrefixAlias: "skip",
|
||||||
|
customIssuePrefixAlias: "custom",
|
||||||
|
allowCustomIssuePrefix: true,
|
||||||
|
allowEmptyIssuePrefix: true,
|
||||||
|
confirmColorize: true,
|
||||||
|
maxHeaderLength: Infinity,
|
||||||
|
maxSubjectLength: Infinity,
|
||||||
|
minSubjectLength: 0,
|
||||||
|
scopeOverrides: undefined,
|
||||||
|
defaultBody: "",
|
||||||
|
defaultIssues: "",
|
||||||
|
defaultScope: "",
|
||||||
|
defaultSubject: "",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,115 @@
|
||||||
|
import globals from "globals";
|
||||||
|
import js from "@eslint/js";
|
||||||
|
|
||||||
|
// ESLint 核心插件
|
||||||
|
import pluginVue from "eslint-plugin-vue";
|
||||||
|
import pluginTypeScript from "@typescript-eslint/eslint-plugin";
|
||||||
|
|
||||||
|
// Prettier 插件及配置
|
||||||
|
import configPrettier from "eslint-config-prettier";
|
||||||
|
import pluginPrettier from "eslint-plugin-prettier";
|
||||||
|
|
||||||
|
// 解析器
|
||||||
|
import * as parserVue from "vue-eslint-parser";
|
||||||
|
import * as parserTypeScript from "@typescript-eslint/parser";
|
||||||
|
|
||||||
|
// 定义 ESLint 配置
|
||||||
|
export default [
|
||||||
|
// 通用 JavaScript 配置
|
||||||
|
{
|
||||||
|
...js.configs.recommended,
|
||||||
|
ignores: ["**/.*", "dist/*", "*.d.ts", "public/*", "src/assets/**"],
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.browser, // 浏览器变量 (window, document 等)
|
||||||
|
...globals.node, // Node.js 变量 (process, require 等)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: {
|
||||||
|
prettier: pluginPrettier,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
...configPrettier.rules,
|
||||||
|
...pluginPrettier.configs.recommended.rules,
|
||||||
|
"no-debug": "off", // 禁止 debugger
|
||||||
|
"prettier/prettier": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
endOfLine: "auto", // 自动识别换行符
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// TypeScript 配置
|
||||||
|
{
|
||||||
|
files: ["**/*.?([cm])ts"],
|
||||||
|
languageOptions: {
|
||||||
|
parser: parserTypeScript,
|
||||||
|
parserOptions: {
|
||||||
|
sourceType: "module",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: {
|
||||||
|
"@typescript-eslint": pluginTypeScript,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
...pluginTypeScript.configs.strict.rules,
|
||||||
|
"@typescript-eslint/no-explicit-any": "off", // 允许使用 any
|
||||||
|
"@typescript-eslint/no-empty-function": "off", // 允许空函数
|
||||||
|
"@typescript-eslint/no-empty-object-type": "off", // 允许空对象类型
|
||||||
|
"@typescript-eslint/consistent-type-imports": [
|
||||||
|
"error",
|
||||||
|
{ disallowTypeAnnotations: false, fixStyle: "inline-type-imports" },
|
||||||
|
], // 统一类型导入风格
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// TypeScript 声明文件的特殊配置
|
||||||
|
{
|
||||||
|
files: ["**/*.d.ts"],
|
||||||
|
rules: {
|
||||||
|
"eslint-comments/no-unlimited-disable": "off",
|
||||||
|
"unused-imports/no-unused-vars": "off",
|
||||||
|
"@typescript-eslint/ban-ts-comment": "off", // 允许使用 @ts-nocheck 注释
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// JavaScript (commonjs) 配置
|
||||||
|
{
|
||||||
|
files: ["**/*.?([cm])js"],
|
||||||
|
rules: {
|
||||||
|
"@typescript-eslint/no-var-requires": "off", // 允许 require
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// Vue 文件配置
|
||||||
|
{
|
||||||
|
files: ["**/*.vue"],
|
||||||
|
languageOptions: {
|
||||||
|
parser: parserVue,
|
||||||
|
parserOptions: {
|
||||||
|
parser: "@typescript-eslint/parser",
|
||||||
|
sourceType: "module",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: {
|
||||||
|
vue: pluginVue,
|
||||||
|
},
|
||||||
|
processor: pluginVue.processors[".vue"],
|
||||||
|
rules: {
|
||||||
|
...pluginVue.configs["vue3-recommended"].rules,
|
||||||
|
"vue/no-v-html": "off", // 允许 v-html
|
||||||
|
"vue/require-default-prop": "off", // 允许没有默认值的 prop
|
||||||
|
"vue/multi-word-component-names": "off", // 关闭组件名称多词要求
|
||||||
|
"vue/html-self-closing": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
html: { void: "always", normal: "always", component: "always" },
|
||||||
|
svg: "always",
|
||||||
|
math: "always",
|
||||||
|
},
|
||||||
|
], // 自闭合标签
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="icon" href="/favicon.ico" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Vue3 + Vite5 + TypeScript5 + Element-Plus 的后台管理模板,配套接口文档和后端源码,vue-element-admin 的 Vue3 版本"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="keywords"
|
||||||
|
content="vue,element-plus,typescript,vue-element-admin,vue3-element-admin"
|
||||||
|
/>
|
||||||
|
<title>vue3-element-admin</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="app">
|
||||||
|
<div class="loader"></div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<script type="module" src="/src/main.ts"></script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
#app {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
--d: 22px;
|
||||||
|
|
||||||
|
width: 4px;
|
||||||
|
height: 4px;
|
||||||
|
color: #25b09b;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow:
|
||||||
|
calc(1 * var(--d)) calc(0 * var(--d)) 0 0,
|
||||||
|
calc(0.707 * var(--d)) calc(0.707 * var(--d)) 0 1px,
|
||||||
|
calc(0 * var(--d)) calc(1 * var(--d)) 0 2px,
|
||||||
|
calc(-0.707 * var(--d)) calc(0.707 * var(--d)) 0 3px,
|
||||||
|
calc(-1 * var(--d)) calc(0 * var(--d)) 0 4px,
|
||||||
|
calc(-0.707 * var(--d)) calc(-0.707 * var(--d)) 0 5px,
|
||||||
|
calc(0 * var(--d)) calc(-1 * var(--d)) 0 6px;
|
||||||
|
animation: l27 1s infinite steps(8);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes l27 {
|
||||||
|
100% {
|
||||||
|
transform: rotate(1turn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2017-present PanJiaChen
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2021-present 有来开源组织
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
@ -0,0 +1,43 @@
|
||||||
|
import { defineMock } from "./base";
|
||||||
|
|
||||||
|
export default defineMock([
|
||||||
|
{
|
||||||
|
url: "auth/captcha",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
captchaKey: "534b8ef2b0a24121bec76391ddd159f9",
|
||||||
|
captchaBase64:
|
||||||
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAkCAIAAADNSmkJAAAFKUlEQVR4Xu2ZXUwcVRiGV70wMWo08V5NvPXCrDbFaGpMaZW2hqQxaoiJTRsaMBCNSYtpa2JTKiFSelFa+Q/QZcMWqEhBlh+htbEpZhMrBQrlJ0hBywLLyrJ0WZbje3bqOvPNLHPWrDvdOE9ONmfe78zkzMs335wzWJhJQrBQweS/wTQ6QWgYHdoIOcecOe05O+t2WkutO+p2ZF3Ksg/YV9ZW6FATYajR3nveg60H9327r3O8c35lHgp+r05dPdJzBL73TPSQ8SaCKIxGLsPlop+K0JHrEkPuoT31e5qGmmjARACF0agYyGVNlyVm/pzZXrN9fHGcBkz0UBid+31u93i3XFFT80vN8cvHqWqih8Lo1NpUqS5vwh3vnd223VQ10UNh9NbyrcFQUK6oCawHUipSqGqiB83oBf+CXFGDMp1mS6OqiR4Ko7FexkpOrqhpHGw82nOUqiZ6KIzGrkRuorW0dJMmOy+hOCfYGzb2RBFv6HRO0gEJw/U7y+pgL1bwmTxexN6sZ31TdEwEhdG+gA+7EqyXpUO1uZH20cWL8hMTRt1N9tBXzCJrOIRoCPJpSO2RAp4HmtCdIfZ+2JWgEBN9LbR28seTGU0Zue1tMLp+YIAMSADzfvbkKX4/eb28j4YODiGin3heqmIlLja5hAUCu+nmGY3JWKvpMAlqNGgebsauBOvlqSX+JEx7p7EbTLen53XlzfmWUioqXikrc68Y8N2juJ/fyVsNChGHEE//rBANYWaZz+TRQqpLaBgNsPfDrgSpbS21YtV87IdjrlkX9JZbt5DOma2t9ITo5F+5glN22WwL/n+yDv00mw06orKxOqQ5+J04hhViwzAXETIcJDVm8uxZqktoGx2Nj9t43Wgaul/ERQiGQvtbWnDWgZYW9CXlQFjZ/7ciyHNn+Z2MexTimIeLz59TiIln0M1e+IbPpOAaDUnEYPTi6iqKxpbycs/qKo1tCslfKcffPn9enuMiPPY1vxO/ckeFQ4h46cdGqUWoidE/y54q5tPY5WDrGzQqIXot4BgchEE57e00IMCw2/1qZSVO/7SjA78o9INzcxsbrL+fnTnDDh9mmZn8F30oG1Hm+nABv5mQMopDS/h1HxtqTzWbABMe9sxpPoe9zezeOo1GELqWhPS8t46M0IAYHbdvR1aHbaOjbjfLz2eFhez6dba4yAfgF30o0BFVE8+Mjh/wFxPI+I5mAEHU6Ls+38vhTFwOBGhMDF8gkFpbC5ffsdv/uBs6dIj19dExEtARVXv9YNbop8NFY3aZ6gRRo+tu3IBHnzmdNCBMXldXJKPfL74WzWUJRE+coDUknqsOdZXQbAJYwluVTbOZI3Qt8GFzMwxyjo3RgBiN4fr+elXVpZGRLWXl6PdOTtJBSlBDUK/lnIrjOlrtqWYTQDJaF6FrTXu9sOa1ysrVoM5HVE1GFxZQcyJ/p+xzv6K/rbr6N6+XDpUBl0tKFIrbz78qWB6YnWFMCBld4XLBms+7df75ook/GNzb0GCV7U1Qfz9p64TyQWNjYD3qe9rj4SMJtQP3MyjSDPzWIRHPjH7X4YAvfXoPuyZf9Pbi3PcuXIh4mp3NllYC6XY79C+jl2o8PBipxjnBttn4MgMNnWgfcRJGPI2OL8hTj3LloIlmRicvBhiNykvecpqoa3RSY4DRcLAwyicuOepVR1JjgNFYHWONHL04czTX0UmNAUYD7Pr+xc4wqTHGaBb2OtZvHUmNYUazcA2J6etdUmOk0f8rTKMTxF91RG0D1SwYGwAAAABJRU5ErkJggg==",
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
url: "auth/login",
|
||||||
|
method: ["POST"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
accessToken:
|
||||||
|
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImRlcHRJZCI6MSwiZGF0YVNjb3BlIjoxLCJ1c2VySWQiOjIsImlhdCI6MTcyODE5MzA1MiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9BRE1JTiJdLCJqdGkiOiJhZDg3NzlhZDZlYWY0OWY3OTE4M2ZmYmI5OWM4MjExMSJ9.58YHwL3sNNC22jyAmOZeSm-7MITzfHb_epBIz7LvWeA",
|
||||||
|
tokenType: "Bearer",
|
||||||
|
refreshToken: null,
|
||||||
|
expires: null,
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
url: "auth/logout",
|
||||||
|
method: ["DELETE"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {},
|
||||||
|
msg: "string",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
import path from "path";
|
||||||
|
import { createDefineMock } from "vite-plugin-mock-dev-server";
|
||||||
|
|
||||||
|
export const defineMock = createDefineMock((mock) => {
|
||||||
|
// 拼接url
|
||||||
|
mock.url = path.join(import.meta.env.VITE_APP_BASE_API + "/api/v1/", mock.url);
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,153 @@
|
||||||
|
import { defineMock } from "./base";
|
||||||
|
|
||||||
|
export default defineMock([
|
||||||
|
{
|
||||||
|
url: "dept/options",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
value: 1,
|
||||||
|
label: "有来技术",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
value: 2,
|
||||||
|
label: "研发部门",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 3,
|
||||||
|
label: "测试部门",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
url: "dept",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
parentId: 0,
|
||||||
|
name: "有来技术",
|
||||||
|
code: "YOULAI",
|
||||||
|
sort: 1,
|
||||||
|
status: 1,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
parentId: 1,
|
||||||
|
name: "研发部门",
|
||||||
|
code: "RD001",
|
||||||
|
sort: 1,
|
||||||
|
status: 1,
|
||||||
|
children: [],
|
||||||
|
createTime: null,
|
||||||
|
updateTime: "2022-04-19 12:46",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
parentId: 1,
|
||||||
|
name: "测试部门",
|
||||||
|
code: "QA001",
|
||||||
|
sort: 1,
|
||||||
|
status: 1,
|
||||||
|
children: [],
|
||||||
|
createTime: null,
|
||||||
|
updateTime: "2022-04-19 12:46",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
createTime: null,
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增部门
|
||||||
|
{
|
||||||
|
url: "dept",
|
||||||
|
method: ["POST"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "新增部门" + body.name + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获取部门表单数据
|
||||||
|
{
|
||||||
|
url: "dept/:id/form",
|
||||||
|
method: ["GET"],
|
||||||
|
body: ({ params }) => {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: deptMap[params.id],
|
||||||
|
msg: "一切ok",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改部门
|
||||||
|
{
|
||||||
|
url: "dept/:id",
|
||||||
|
method: ["PUT"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "修改部门" + body.name + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除部门
|
||||||
|
{
|
||||||
|
url: "dept/:id",
|
||||||
|
method: ["DELETE"],
|
||||||
|
body({ params }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "删除部门" + params.id + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
// 部门映射表数据
|
||||||
|
const deptMap: Record<string, any> = {
|
||||||
|
1: {
|
||||||
|
id: 1,
|
||||||
|
name: "有来技术",
|
||||||
|
code: "YOULAI",
|
||||||
|
parentId: 0,
|
||||||
|
status: 1,
|
||||||
|
sort: 1,
|
||||||
|
},
|
||||||
|
2: {
|
||||||
|
id: 2,
|
||||||
|
name: "研发部门",
|
||||||
|
code: "RD001",
|
||||||
|
parentId: 1,
|
||||||
|
status: 1,
|
||||||
|
sort: 1,
|
||||||
|
},
|
||||||
|
3: {
|
||||||
|
id: 3,
|
||||||
|
name: "测试部门",
|
||||||
|
code: "QA001",
|
||||||
|
parentId: 1,
|
||||||
|
status: 1,
|
||||||
|
sort: 1,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,216 @@
|
||||||
|
import { defineMock } from "./base";
|
||||||
|
|
||||||
|
export default defineMock([
|
||||||
|
{
|
||||||
|
url: "dict-data/page",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
dictCode: "gender",
|
||||||
|
label: "男",
|
||||||
|
value: "1",
|
||||||
|
sort: 1,
|
||||||
|
status: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
dictCode: "gender",
|
||||||
|
label: "女",
|
||||||
|
value: "2",
|
||||||
|
sort: 2,
|
||||||
|
status: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
dictCode: "gender",
|
||||||
|
label: "保密",
|
||||||
|
value: "0",
|
||||||
|
sort: 3,
|
||||||
|
status: 1,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
total: 3,
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
url: "dict-data/:dictCode/options",
|
||||||
|
method: ["GET"],
|
||||||
|
body: ({ params }) => {
|
||||||
|
const dictCode = params.dictCode;
|
||||||
|
|
||||||
|
let list = null;
|
||||||
|
|
||||||
|
if (dictCode == "gender") {
|
||||||
|
list = [
|
||||||
|
{
|
||||||
|
value: "1",
|
||||||
|
label: "男",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "2",
|
||||||
|
label: "女",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "0",
|
||||||
|
label: "保密",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
} else if (dictCode == "notice_level") {
|
||||||
|
list = [
|
||||||
|
{
|
||||||
|
value: "L",
|
||||||
|
label: "低",
|
||||||
|
tag: "info",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "M",
|
||||||
|
label: "中",
|
||||||
|
tag: "warning",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "H",
|
||||||
|
label: "高",
|
||||||
|
tag: "danger",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
} else if (dictCode == "notice_type") {
|
||||||
|
list = [
|
||||||
|
{
|
||||||
|
value: "1",
|
||||||
|
label: "系统升级",
|
||||||
|
tag: "success",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "2",
|
||||||
|
label: "系统维护",
|
||||||
|
tag: "primary",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "3",
|
||||||
|
label: "安全警告",
|
||||||
|
tag: "danger",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "4",
|
||||||
|
label: "假期通知",
|
||||||
|
tag: "success",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "5",
|
||||||
|
label: "公司新闻",
|
||||||
|
tag: "primary",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "99",
|
||||||
|
label: "其他",
|
||||||
|
tag: "info",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: list,
|
||||||
|
msg: "一切ok",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// 新增字典数据
|
||||||
|
{
|
||||||
|
url: "dict-data",
|
||||||
|
method: ["POST"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "新增字典" + body.name + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获取字典数据表单
|
||||||
|
{
|
||||||
|
url: "dict-data/:id/form",
|
||||||
|
method: ["GET"],
|
||||||
|
body: ({ params }) => {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: dictMap[params.id],
|
||||||
|
msg: "一切ok",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改字典数据
|
||||||
|
{
|
||||||
|
url: "dict-data/:id",
|
||||||
|
method: ["PUT"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "修改字典数据" + body.name + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除字典
|
||||||
|
{
|
||||||
|
url: "dict-data/:id",
|
||||||
|
method: ["DELETE"],
|
||||||
|
body({ params }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "删除字典" + params.id + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
// 字典数据映射表数据
|
||||||
|
const dictMap: Record<string, any> = {
|
||||||
|
1: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
id: 1,
|
||||||
|
value: "1",
|
||||||
|
label: "男",
|
||||||
|
sort: 1,
|
||||||
|
status: 1,
|
||||||
|
tagType: "primary",
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
2: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
id: 2,
|
||||||
|
value: "2",
|
||||||
|
label: "女",
|
||||||
|
sort: 2,
|
||||||
|
status: 1,
|
||||||
|
tagType: "danger",
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
3: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
id: 3,
|
||||||
|
value: "0",
|
||||||
|
label: "保密",
|
||||||
|
sort: 3,
|
||||||
|
status: 1,
|
||||||
|
tagType: "info",
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,181 @@
|
||||||
|
import { defineMock } from "./base";
|
||||||
|
|
||||||
|
export default defineMock([
|
||||||
|
{
|
||||||
|
url: "dict/page",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: "性别",
|
||||||
|
dictCode: "gender",
|
||||||
|
status: 1,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
total: 1,
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增字典
|
||||||
|
{
|
||||||
|
url: "dict",
|
||||||
|
method: ["POST"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "新增字典" + body.name + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获取字典表单数据
|
||||||
|
{
|
||||||
|
url: "dict/:id/form",
|
||||||
|
method: ["GET"],
|
||||||
|
body: ({ params }) => {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: dictMap[params.id],
|
||||||
|
msg: "一切ok",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 修改字典
|
||||||
|
{
|
||||||
|
url: "dict/:id",
|
||||||
|
method: ["PUT"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "修改字典" + body.name + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除字典
|
||||||
|
{
|
||||||
|
url: "dict/:id",
|
||||||
|
method: ["DELETE"],
|
||||||
|
body({ params }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "删除字典" + params.id + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 所有字典列表
|
||||||
|
{
|
||||||
|
url: "dict/list",
|
||||||
|
method: ["GET"],
|
||||||
|
body() {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
name: "通知级别",
|
||||||
|
dictCode: "notice_level",
|
||||||
|
dictDataList: [
|
||||||
|
{
|
||||||
|
value: "L",
|
||||||
|
label: "低",
|
||||||
|
tagType: "info",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "M",
|
||||||
|
label: "中",
|
||||||
|
tagType: "warning",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "H",
|
||||||
|
label: "高",
|
||||||
|
tagType: "danger",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "通知类型",
|
||||||
|
dictCode: "notice_type",
|
||||||
|
dictDataList: [
|
||||||
|
{
|
||||||
|
value: "1",
|
||||||
|
label: "系统升级",
|
||||||
|
tagType: "success",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "2",
|
||||||
|
label: "系统维护",
|
||||||
|
tagType: "primary",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "3",
|
||||||
|
label: "安全警告",
|
||||||
|
tagType: "danger",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "4",
|
||||||
|
label: "假期通知",
|
||||||
|
tagType: "success",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "5",
|
||||||
|
label: "公司新闻",
|
||||||
|
tagType: "primary",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "99",
|
||||||
|
label: "其他",
|
||||||
|
tagType: "info",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "性别",
|
||||||
|
dictCode: "gender",
|
||||||
|
dictDataList: [
|
||||||
|
{
|
||||||
|
value: "1",
|
||||||
|
label: "男",
|
||||||
|
tagType: "primary",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "2",
|
||||||
|
label: "女",
|
||||||
|
tagType: "danger",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "0",
|
||||||
|
label: "保密",
|
||||||
|
tagType: "info",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
msg: "一切ok",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
// 字典映射表数据
|
||||||
|
const dictMap: Record<string, any> = {
|
||||||
|
1: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
id: 1,
|
||||||
|
name: "性别",
|
||||||
|
dictCode: "gender",
|
||||||
|
status: 1,
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,207 @@
|
||||||
|
import { defineMock } from "./base";
|
||||||
|
|
||||||
|
export default defineMock([
|
||||||
|
{
|
||||||
|
url: "logs/page",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
id: 36192,
|
||||||
|
module: "菜单",
|
||||||
|
content: "菜单列表",
|
||||||
|
requestUri: "/api/v1/menus",
|
||||||
|
method: null,
|
||||||
|
ip: "183.156.148.241",
|
||||||
|
region: "浙江省 杭州市",
|
||||||
|
browser: "Chrome 109.0.0.0",
|
||||||
|
os: "OSX",
|
||||||
|
executionTime: 5,
|
||||||
|
createBy: null,
|
||||||
|
createTime: "2024-07-07 20:38:47",
|
||||||
|
operator: "系统管理员",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 36190,
|
||||||
|
module: "字典",
|
||||||
|
content: "字典分页列表",
|
||||||
|
requestUri: "/api/v1/dict/page",
|
||||||
|
method: null,
|
||||||
|
ip: "183.156.148.241",
|
||||||
|
region: "浙江省 杭州市",
|
||||||
|
browser: "Chrome 109.0.0.0",
|
||||||
|
os: "OSX",
|
||||||
|
executionTime: 9,
|
||||||
|
createBy: null,
|
||||||
|
createTime: "2024-07-07 20:38:45",
|
||||||
|
operator: "系统管理员",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 36193,
|
||||||
|
module: "部门",
|
||||||
|
content: "部门列表",
|
||||||
|
requestUri: "/api/v1/dept",
|
||||||
|
method: null,
|
||||||
|
ip: "192.168.31.134",
|
||||||
|
region: "0 内网IP",
|
||||||
|
browser: "Chrome 125.0.0.0",
|
||||||
|
os: "Windows 10 or Windows Server 2016",
|
||||||
|
executionTime: 27,
|
||||||
|
createBy: null,
|
||||||
|
createTime: "2024-07-07 20:38:45",
|
||||||
|
operator: "系统管理员",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 36191,
|
||||||
|
module: "菜单",
|
||||||
|
content: "菜单列表",
|
||||||
|
requestUri: "/api/v1/menus",
|
||||||
|
method: null,
|
||||||
|
ip: "192.168.31.134",
|
||||||
|
region: "0 内网IP",
|
||||||
|
browser: "Chrome 125.0.0.0",
|
||||||
|
os: "Windows 10 or Windows Server 2016",
|
||||||
|
executionTime: 39,
|
||||||
|
createBy: null,
|
||||||
|
createTime: "2024-07-07 20:38:44",
|
||||||
|
operator: "系统管理员",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 36189,
|
||||||
|
module: "角色",
|
||||||
|
content: "角色分页列表",
|
||||||
|
requestUri: "/api/v1/roles/page",
|
||||||
|
method: null,
|
||||||
|
ip: "192.168.31.134",
|
||||||
|
region: "0 内网IP",
|
||||||
|
browser: "Chrome 125.0.0.0",
|
||||||
|
os: "Windows 10 or Windows Server 2016",
|
||||||
|
executionTime: 55,
|
||||||
|
createBy: null,
|
||||||
|
createTime: "2024-07-07 20:38:43",
|
||||||
|
operator: "系统管理员",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 36188,
|
||||||
|
module: "用户",
|
||||||
|
content: "用户分页列表",
|
||||||
|
requestUri: "/api/v1/users/page",
|
||||||
|
method: null,
|
||||||
|
ip: "192.168.31.134",
|
||||||
|
region: "0 内网IP",
|
||||||
|
browser: "Chrome 125.0.0.0",
|
||||||
|
os: "Windows 10 or Windows Server 2016",
|
||||||
|
executionTime: 92,
|
||||||
|
createBy: null,
|
||||||
|
createTime: "2024-07-07 20:38:42",
|
||||||
|
operator: "系统管理员",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 36187,
|
||||||
|
module: "登录",
|
||||||
|
content: "登录",
|
||||||
|
requestUri: "/api/v1/auth/login",
|
||||||
|
method: null,
|
||||||
|
ip: "192.168.31.134",
|
||||||
|
region: "0 内网IP",
|
||||||
|
browser: "Chrome 125.0.0.0",
|
||||||
|
os: "Windows 10 or Windows Server 2016",
|
||||||
|
executionTime: 19340,
|
||||||
|
createBy: null,
|
||||||
|
createTime: "2024-07-07 20:38:09",
|
||||||
|
operator: "系统管理员",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 36186,
|
||||||
|
module: "登录",
|
||||||
|
content: "登录",
|
||||||
|
requestUri: "/api/v1/auth/login",
|
||||||
|
method: null,
|
||||||
|
ip: "192.168.31.134",
|
||||||
|
region: "0 内网IP",
|
||||||
|
browser: "Chrome 125.0.0.0",
|
||||||
|
os: "Windows 10 or Windows Server 2016",
|
||||||
|
executionTime: 19869,
|
||||||
|
createBy: null,
|
||||||
|
createTime: "2024-07-07 20:37:59",
|
||||||
|
operator: "系统管理员",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 36185,
|
||||||
|
module: "登录",
|
||||||
|
content: "登录",
|
||||||
|
requestUri: "/api/v1/auth/login",
|
||||||
|
method: null,
|
||||||
|
ip: "112.103.111.59",
|
||||||
|
region: "黑龙江省 哈尔滨市",
|
||||||
|
browser: "Chrome 97.0.4692.98",
|
||||||
|
os: "Android",
|
||||||
|
executionTime: 96,
|
||||||
|
createBy: null,
|
||||||
|
createTime: "2024-07-07 20:37:21",
|
||||||
|
operator: "系统管理员",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 36184,
|
||||||
|
module: "登录",
|
||||||
|
content: "登录",
|
||||||
|
requestUri: "/api/v1/auth/login",
|
||||||
|
method: null,
|
||||||
|
ip: "114.86.204.190",
|
||||||
|
region: "上海 上海市",
|
||||||
|
browser: "Chrome 125.0.0.0",
|
||||||
|
os: "Windows 10 or Windows Server 2016",
|
||||||
|
executionTime: 89,
|
||||||
|
createBy: null,
|
||||||
|
createTime: "2024-07-07 20:29:37",
|
||||||
|
operator: "系统管理员",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
total: 36188,
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: "logs/visit-trend",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
dates: [
|
||||||
|
"2024-06-30",
|
||||||
|
"2024-07-01",
|
||||||
|
"2024-07-02",
|
||||||
|
"2024-07-03",
|
||||||
|
"2024-07-04",
|
||||||
|
"2024-07-05",
|
||||||
|
"2024-07-06",
|
||||||
|
"2024-07-07",
|
||||||
|
],
|
||||||
|
pvList: [1751, 5168, 4882, 5301, 4721, 4885, 1901, 1003],
|
||||||
|
uvList: null,
|
||||||
|
ipList: [207, 566, 565, 631, 579, 496, 222, 152],
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
url: "logs/visit-stats",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
todayPvCount: 1629,
|
||||||
|
totalPvCount: 286086,
|
||||||
|
pvGrowthRate: -0.65,
|
||||||
|
todayIpCount: 169,
|
||||||
|
totalIpCount: 19985,
|
||||||
|
ipGrowthRate: -0.57,
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
@ -0,0 +1,416 @@
|
||||||
|
import { defineMock } from "./base";
|
||||||
|
|
||||||
|
export default defineMock([
|
||||||
|
{
|
||||||
|
url: "notices/page",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
title: "v2.12.0 新增系统日志,访问趋势统计功能。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
publishTime: "2024-09-30 17:21",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
title: "v2.13.0 新增菜单搜索。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
publishTime: "2024-09-30 17:22",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
title: "\r\nv2.14.0 新增个人中心。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
publishTime: "2024-09-30 17:23",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
title: "v2.15.0 登录页面改造。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
publishTime: "2024-09-30 17:24",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 5,
|
||||||
|
title: "v2.16.0 通知公告、字典翻译组件。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
publishTime: "2024-09-30 17:25",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 6,
|
||||||
|
title: "系统将于本周六凌晨 2 点进行维护,预计维护时间为 2 小时。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 2,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
publishTime: "2024-09-30 17:26",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 7,
|
||||||
|
title: "最近发现一些钓鱼邮件,请大家提高警惕,不要点击陌生链接。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 3,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
publishTime: "2024-09-30 17:27",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 8,
|
||||||
|
title: "国庆假期从 10 月 1 日至 10 月 7 日放假,共 7 天。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 4,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
publishTime: "2024-09-30 17:28",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 9,
|
||||||
|
title: "公司将在 10 月 15 日举办新产品发布会,敬请期待。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 5,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
publishTime: "2024-09-30 17:29",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 10,
|
||||||
|
title: "v2.16.1 版本修复了 WebSocket 重复连接导致的后台线程阻塞问题,优化了通知公告。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
publishTime: "2024-09-30 17:30",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
total: 10,
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增通知
|
||||||
|
{
|
||||||
|
url: "notices",
|
||||||
|
method: ["POST"],
|
||||||
|
body() {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "新增成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获取通知表单数据
|
||||||
|
{
|
||||||
|
url: "notices/:id/form",
|
||||||
|
method: ["GET"],
|
||||||
|
body: ({ params }) => {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: noticeMap[params.id],
|
||||||
|
msg: "一切ok",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获取通知详情
|
||||||
|
{
|
||||||
|
url: "notices/:id/detail",
|
||||||
|
method: ["GET"],
|
||||||
|
body: ({ params }) => {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: noticeMap[params.id],
|
||||||
|
msg: "一切ok",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// 修改通知
|
||||||
|
{
|
||||||
|
url: "roles/:id",
|
||||||
|
method: ["PUT"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "修改通知" + body.name + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除通知
|
||||||
|
{
|
||||||
|
url: "roles/:id",
|
||||||
|
method: ["DELETE"],
|
||||||
|
body({ params }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "删除通知" + params.id + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 我的通知分页列表
|
||||||
|
{
|
||||||
|
url: "notices/my-page",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
id: 10,
|
||||||
|
title: "v2.16.1 版本修复了 WebSocket 重复连接导致的后台线程阻塞问题,优化了通知公告。",
|
||||||
|
type: 1,
|
||||||
|
level: "L",
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
publishTime: "2024-09-30 17:30",
|
||||||
|
isRead: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 9,
|
||||||
|
title: "公司将在 10 月 15 日举办新产品发布会,敬请期待。",
|
||||||
|
type: 5,
|
||||||
|
level: "L",
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
publishTime: "2024-09-30 17:29",
|
||||||
|
isRead: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 8,
|
||||||
|
title: "国庆假期从 10 月 1 日至 10 月 7 日放假,共 7 天。",
|
||||||
|
type: 4,
|
||||||
|
level: "L",
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
publishTime: "2024-09-30 17:28",
|
||||||
|
isRead: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 7,
|
||||||
|
title: "最近发现一些钓鱼邮件,请大家提高警惕,不要点击陌生链接。",
|
||||||
|
type: 3,
|
||||||
|
level: "L",
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
publishTime: "2024-09-30 17:27",
|
||||||
|
isRead: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 6,
|
||||||
|
title: "系统将于本周六凌晨 2 点进行维护,预计维护时间为 2 小时。",
|
||||||
|
type: 2,
|
||||||
|
level: "L",
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
publishTime: "2024-09-30 17:26",
|
||||||
|
isRead: 0,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
total: 10,
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
// 通知映射表数据
|
||||||
|
const noticeMap: Record<string, any> = {
|
||||||
|
1: {
|
||||||
|
id: 1,
|
||||||
|
title: "v2.12.0 新增系统日志,访问趋势统计功能。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
levelLabel: null,
|
||||||
|
publishTime: "2024-09-30 17:21",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
2: {
|
||||||
|
id: 2,
|
||||||
|
title: "v2.13.0 新增菜单搜索。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
levelLabel: null,
|
||||||
|
publishTime: "2024-09-30 17:22",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
3: {
|
||||||
|
id: 3,
|
||||||
|
title: "\r\nv2.14.0 新增个人中心。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
levelLabel: null,
|
||||||
|
publishTime: "2024-09-30 17:23",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
4: {
|
||||||
|
id: 4,
|
||||||
|
title: "v2.15.0 登录页面改造。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
levelLabel: null,
|
||||||
|
publishTime: "2024-09-30 17:24",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
|
||||||
|
5: {
|
||||||
|
id: 5,
|
||||||
|
title: "v2.16.0 通知公告、字典翻译组件。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
levelLabel: null,
|
||||||
|
publishTime: "2024-09-30 17:25",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
6: {
|
||||||
|
id: 6,
|
||||||
|
title: "系统将于本周六凌晨 2 点进行维护,预计维护时间为 2 小时。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 2,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
levelLabel: null,
|
||||||
|
publishTime: "2024-09-30 17:26",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
7: {
|
||||||
|
id: 7,
|
||||||
|
title: "最近发现一些钓鱼邮件,请大家提高警惕,不要点击陌生链接。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 3,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
levelLabel: null,
|
||||||
|
publishTime: "2024-09-30 17:27",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
8: {
|
||||||
|
id: 8,
|
||||||
|
title: "国庆假期从 10 月 1 日至 10 月 7 日放假,共 7 天。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 4,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
levelLabel: null,
|
||||||
|
publishTime: "2024-09-30 17:28",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
9: {
|
||||||
|
id: 9,
|
||||||
|
title: "公司将在 10 月 15 日举办新产品发布会,敬请期待。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 5,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
levelLabel: null,
|
||||||
|
publishTime: "2024-09-30 17:29",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
10: {
|
||||||
|
id: 10,
|
||||||
|
title: "v2.16.1 版本修复了 WebSocket 重复连接导致的后台线程阻塞问题,优化了通知公告。",
|
||||||
|
publishStatus: 1,
|
||||||
|
type: 1,
|
||||||
|
publisherName: "系统管理员",
|
||||||
|
level: "L",
|
||||||
|
levelLabel: null,
|
||||||
|
publishTime: "2024-09-30 17:30",
|
||||||
|
isRead: null,
|
||||||
|
targetType: 1,
|
||||||
|
createTime: "2024-09-28 11:21",
|
||||||
|
revokeTime: "2024-09-30 17:21",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,334 @@
|
||||||
|
import { defineMock } from "./base";
|
||||||
|
|
||||||
|
export default defineMock([
|
||||||
|
{
|
||||||
|
url: "roles/options",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
value: 2,
|
||||||
|
label: "系统管理员",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 4,
|
||||||
|
label: "系统管理员1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 5,
|
||||||
|
label: "系统管理员2",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 6,
|
||||||
|
label: "系统管理员3",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 7,
|
||||||
|
label: "系统管理员4",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 8,
|
||||||
|
label: "系统管理员5",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 9,
|
||||||
|
label: "系统管理员6",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 10,
|
||||||
|
label: "系统管理员7",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 11,
|
||||||
|
label: "系统管理员8",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 12,
|
||||||
|
label: "系统管理员9",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 3,
|
||||||
|
label: "访问游客",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
url: "roles/page",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: "系统管理员",
|
||||||
|
code: "ADMIN",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
name: "访问游客",
|
||||||
|
code: "GUEST",
|
||||||
|
status: 1,
|
||||||
|
sort: 3,
|
||||||
|
createTime: "2021-05-26 15:49:05",
|
||||||
|
updateTime: "2019-05-05 16:00:00",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
name: "系统管理员1",
|
||||||
|
code: "ADMIN1",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 5,
|
||||||
|
name: "系统管理员2",
|
||||||
|
code: "ADMIN2",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 6,
|
||||||
|
name: "系统管理员3",
|
||||||
|
code: "ADMIN3",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 7,
|
||||||
|
name: "系统管理员4",
|
||||||
|
code: "ADMIN4",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 8,
|
||||||
|
name: "系统管理员5",
|
||||||
|
code: "ADMIN5",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 9,
|
||||||
|
name: "系统管理员6",
|
||||||
|
code: "ADMIN6",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: "2023-12-04 11:43:15",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 10,
|
||||||
|
name: "系统管理员7",
|
||||||
|
code: "ADMIN7",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 11,
|
||||||
|
name: "系统管理员8",
|
||||||
|
code: "ADMIN8",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
total: 10,
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增角色
|
||||||
|
{
|
||||||
|
url: "roles",
|
||||||
|
method: ["POST"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "新增角色" + body.name + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获取角色表单数据
|
||||||
|
{
|
||||||
|
url: "roles/:id/form",
|
||||||
|
method: ["GET"],
|
||||||
|
body: ({ params }) => {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: roleMap[params.id],
|
||||||
|
msg: "一切ok",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// 修改角色
|
||||||
|
{
|
||||||
|
url: "roles/:id",
|
||||||
|
method: ["PUT"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "修改角色" + body.name + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除角色
|
||||||
|
{
|
||||||
|
url: "roles/:id",
|
||||||
|
method: ["DELETE"],
|
||||||
|
body({ params }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "删除角色" + params.id + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// 获取角色拥有的菜单ID
|
||||||
|
{
|
||||||
|
url: "roles/:id/menuIds",
|
||||||
|
method: ["GET"],
|
||||||
|
body: ({}) => {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: [
|
||||||
|
1, 2, 31, 32, 33, 88, 3, 70, 71, 72, 4, 73, 75, 74, 5, 76, 77, 78, 6, 79, 81, 84, 85, 86,
|
||||||
|
87, 40, 41, 26, 30, 20, 21, 22, 23, 24, 89, 90, 91, 36, 37, 38, 39, 93, 94, 95, 97, 102,
|
||||||
|
89, 90, 91, 93, 94, 95, 97, 102, 103, 104,
|
||||||
|
],
|
||||||
|
msg: "一切ok",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// 保存角色菜单
|
||||||
|
{
|
||||||
|
url: "roles/:id/menus",
|
||||||
|
method: ["PUT"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
// 角色映射表数据
|
||||||
|
const roleMap: Record<string, any> = {
|
||||||
|
2: {
|
||||||
|
id: 2,
|
||||||
|
name: "系统管理员",
|
||||||
|
code: "ADMIN",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
3: {
|
||||||
|
id: 3,
|
||||||
|
name: "访问游客",
|
||||||
|
code: "GUEST",
|
||||||
|
status: 1,
|
||||||
|
sort: 3,
|
||||||
|
createTime: "2021-05-26 15:49:05",
|
||||||
|
updateTime: "2019-05-05 16:00:00",
|
||||||
|
},
|
||||||
|
4: {
|
||||||
|
id: 4,
|
||||||
|
name: "系统管理员1",
|
||||||
|
code: "ADMIN1",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
5: {
|
||||||
|
id: 5,
|
||||||
|
name: "系统管理员2",
|
||||||
|
code: "ADMIN2",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
|
||||||
|
6: {
|
||||||
|
id: 6,
|
||||||
|
name: "系统管理员3",
|
||||||
|
code: "ADMIN3",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
7: {
|
||||||
|
id: 7,
|
||||||
|
name: "系统管理员4",
|
||||||
|
code: "ADMIN4",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
8: {
|
||||||
|
id: 8,
|
||||||
|
name: "系统管理员5",
|
||||||
|
code: "ADMIN5",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
9: {
|
||||||
|
id: 9,
|
||||||
|
name: "系统管理员6",
|
||||||
|
code: "ADMIN6",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: "2023-12-04 11:43:15",
|
||||||
|
},
|
||||||
|
10: {
|
||||||
|
id: 10,
|
||||||
|
name: "系统管理员7",
|
||||||
|
code: "ADMIN7",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
11: {
|
||||||
|
id: 11,
|
||||||
|
name: "系统管理员8",
|
||||||
|
code: "ADMIN8",
|
||||||
|
status: 1,
|
||||||
|
sort: 2,
|
||||||
|
createTime: "2021-03-25 12:39:54",
|
||||||
|
updateTime: null,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,237 @@
|
||||||
|
import { defineMock } from "./base";
|
||||||
|
|
||||||
|
export default defineMock([
|
||||||
|
{
|
||||||
|
url: "users/me",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
userId: 2,
|
||||||
|
username: "admin",
|
||||||
|
nickname: "系统管理员",
|
||||||
|
avatar: "https://foruda.gitee.com/images/1723603502796844527/03cdca2a_716974.gif",
|
||||||
|
roles: ["ADMIN"],
|
||||||
|
perms: [
|
||||||
|
"sys:notice:edit",
|
||||||
|
"sys:menu:delete",
|
||||||
|
"sys:dict:edit",
|
||||||
|
"sys:notice:query",
|
||||||
|
"sys:dict:delete",
|
||||||
|
"sys:config:add",
|
||||||
|
"sys:config:refresh",
|
||||||
|
"sys:menu:add",
|
||||||
|
"sys:user:add",
|
||||||
|
"sys:user:export",
|
||||||
|
"sys:role:edit",
|
||||||
|
"sys:dept:delete",
|
||||||
|
"sys:config:update",
|
||||||
|
"sys:user:password:reset",
|
||||||
|
"sys:notice:revoke",
|
||||||
|
"sys:user:import",
|
||||||
|
"sys:user:delete",
|
||||||
|
"sys:dict_type:delete",
|
||||||
|
"sys:dict:add",
|
||||||
|
"sys:role:add",
|
||||||
|
"sys:notice:publish",
|
||||||
|
"sys:notice:delete",
|
||||||
|
"sys:dept:edit",
|
||||||
|
"sys:dict_type:edit",
|
||||||
|
"sys:user:query",
|
||||||
|
"sys:user:edit",
|
||||||
|
"sys:config:delete",
|
||||||
|
"sys:dept:add",
|
||||||
|
"sys:notice:add",
|
||||||
|
"sys:role:delete",
|
||||||
|
"sys:menu:edit",
|
||||||
|
"sys:config:query",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
url: "users/page",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
username: "admin",
|
||||||
|
nickname: "系统管理员",
|
||||||
|
mobile: "17621210366",
|
||||||
|
gender: 1,
|
||||||
|
avatar: "https://foruda.gitee.com/images/1723603502796844527/03cdca2a_716974.gif",
|
||||||
|
email: "",
|
||||||
|
status: 1,
|
||||||
|
deptId: 1,
|
||||||
|
roleIds: [2],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
username: "test",
|
||||||
|
nickname: "测试小用户",
|
||||||
|
mobile: "17621210366",
|
||||||
|
gender: 1,
|
||||||
|
avatar: "https://foruda.gitee.com/images/1723603502796844527/03cdca2a_716974.gif",
|
||||||
|
email: "youlaitech@163.com",
|
||||||
|
status: 1,
|
||||||
|
deptId: 3,
|
||||||
|
roleIds: [3],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
total: 2,
|
||||||
|
},
|
||||||
|
msg: "一切ok",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 新增用户
|
||||||
|
{
|
||||||
|
url: "users",
|
||||||
|
method: ["POST"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "新增用户" + body.nickname + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获取用户表单数据
|
||||||
|
{
|
||||||
|
url: "users/:userId/form",
|
||||||
|
method: ["GET"],
|
||||||
|
body: ({ params }) => {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: userMap[params.userId],
|
||||||
|
msg: "一切ok",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// 修改用户
|
||||||
|
{
|
||||||
|
url: "users/:userId",
|
||||||
|
method: ["PUT"],
|
||||||
|
body({ body }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "修改用户" + body.nickname + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 删除用户
|
||||||
|
{
|
||||||
|
url: "users/:userId",
|
||||||
|
method: ["DELETE"],
|
||||||
|
body({ params }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "删除用户" + params.id + "成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 重置密码
|
||||||
|
{
|
||||||
|
url: "users/:userId/password/reset",
|
||||||
|
method: ["PUT"],
|
||||||
|
body({ query }) {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "重置密码成功,新密码为:" + query.password,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导出Excel
|
||||||
|
{
|
||||||
|
url: "users/_export",
|
||||||
|
method: ["GET"],
|
||||||
|
headers: {
|
||||||
|
"Content-Disposition": "attachment; filename=%E7%94%A8%E6%88%B7%E5%88%97%E8%A1%A8.xlsx",
|
||||||
|
"Content-Type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
url: "users/profile",
|
||||||
|
method: ["GET"],
|
||||||
|
body: {
|
||||||
|
code: "00000",
|
||||||
|
data: {
|
||||||
|
id: 2,
|
||||||
|
username: "admin",
|
||||||
|
nickname: "系统管理员",
|
||||||
|
avatar: "https://foruda.gitee.com/images/1723603502796844527/03cdca2a_716974.gif",
|
||||||
|
gender: 1,
|
||||||
|
mobile: "17621210366",
|
||||||
|
email: null,
|
||||||
|
deptName: "有来技术",
|
||||||
|
roleNames: "系统管理员",
|
||||||
|
createTime: "2019-10-10",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
url: "users/profile",
|
||||||
|
method: ["PUT"],
|
||||||
|
body() {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "修改个人信息成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
url: "users/password",
|
||||||
|
method: ["PUT"],
|
||||||
|
body() {
|
||||||
|
return {
|
||||||
|
code: "00000",
|
||||||
|
data: null,
|
||||||
|
msg: "修改密码成功",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
// 用户映射表数据
|
||||||
|
const userMap: Record<string, any> = {
|
||||||
|
2: {
|
||||||
|
id: 2,
|
||||||
|
username: "admin",
|
||||||
|
nickname: "系统管理员",
|
||||||
|
mobile: "17621210366",
|
||||||
|
gender: 1,
|
||||||
|
avatar: "https://foruda.gitee.com/images/1723603502796844527/03cdca2a_716974.gif",
|
||||||
|
email: "",
|
||||||
|
status: 1,
|
||||||
|
deptId: 1,
|
||||||
|
roleIds: [2],
|
||||||
|
},
|
||||||
|
3: {
|
||||||
|
id: 3,
|
||||||
|
username: "test",
|
||||||
|
nickname: "测试小用户",
|
||||||
|
mobile: "17621210366",
|
||||||
|
gender: 1,
|
||||||
|
avatar: "https://foruda.gitee.com/images/1723603502796844527/03cdca2a_716974.gif",
|
||||||
|
email: "youlaitech@163.com",
|
||||||
|
status: 1,
|
||||||
|
deptId: 3,
|
||||||
|
roleIds: [3],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,125 @@
|
||||||
|
{
|
||||||
|
"name": "vue3-element-admin",
|
||||||
|
"version": "2.21.1",
|
||||||
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vue-tsc --noEmit & vite build",
|
||||||
|
"preview": "vite preview",
|
||||||
|
"build-only": "vite build",
|
||||||
|
"type-check": "vue-tsc --noEmit",
|
||||||
|
"lint:eslint": "eslint --fix ./src",
|
||||||
|
"lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,tsx,css,less,scss,vue,html,md}\"",
|
||||||
|
"lint:stylelint": "stylelint \"**/*.{css,scss,vue}\" --fix",
|
||||||
|
"lint:lint-staged": "lint-staged",
|
||||||
|
"preinstall": "npx only-allow pnpm",
|
||||||
|
"prepare": "husky",
|
||||||
|
"commit": "git-cz"
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"commitizen": {
|
||||||
|
"path": "node_modules/cz-git"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.{js,ts}": [
|
||||||
|
"eslint --fix",
|
||||||
|
"prettier --write"
|
||||||
|
],
|
||||||
|
"*.{cjs,json}": [
|
||||||
|
"prettier --write"
|
||||||
|
],
|
||||||
|
"*.{vue,html}": [
|
||||||
|
"eslint --fix",
|
||||||
|
"prettier --write",
|
||||||
|
"stylelint --fix"
|
||||||
|
],
|
||||||
|
"*.{scss,css}": [
|
||||||
|
"stylelint --fix",
|
||||||
|
"prettier --write"
|
||||||
|
],
|
||||||
|
"*.md": [
|
||||||
|
"prettier --write"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@element-plus/icons-vue": "^2.3.1",
|
||||||
|
"@stomp/stompjs": "^7.0.0",
|
||||||
|
"@vueuse/core": "^12.5.0",
|
||||||
|
"@wangeditor-next/editor": "^5.6.31",
|
||||||
|
"@wangeditor-next/editor-for-vue": "^5.1.14",
|
||||||
|
"axios": "^1.7.9",
|
||||||
|
"codemirror": "^5.65.18",
|
||||||
|
"codemirror-editor-vue3": "^2.8.0",
|
||||||
|
"default-passive-events": "^2.0.0",
|
||||||
|
"echarts": "^5.6.0",
|
||||||
|
"element-plus": "^2.9.3",
|
||||||
|
"exceljs": "^4.4.0",
|
||||||
|
"js-cookie": "^3.0.5",
|
||||||
|
"jsencrypt": "^3.3.2",
|
||||||
|
"lodash-es": "^4.17.21",
|
||||||
|
"nprogress": "^0.2.0",
|
||||||
|
"path-browserify": "^1.0.1",
|
||||||
|
"path-to-regexp": "^8.2.0",
|
||||||
|
"pinia": "^2.3.1",
|
||||||
|
"qs": "^6.14.0",
|
||||||
|
"sortablejs": "^1.15.6",
|
||||||
|
"vue": "^3.5.13",
|
||||||
|
"vue-i18n": "^11.1.0",
|
||||||
|
"vue-router": "^4.5.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@commitlint/cli": "^19.7.1",
|
||||||
|
"@commitlint/config-conventional": "^19.7.1",
|
||||||
|
"@eslint/js": "^9.19.0",
|
||||||
|
"@types/codemirror": "^5.60.15",
|
||||||
|
"@types/lodash": "^4.17.15",
|
||||||
|
"@types/node": "^22.13.1",
|
||||||
|
"@types/nprogress": "^0.2.3",
|
||||||
|
"@types/path-browserify": "^1.0.3",
|
||||||
|
"@types/qs": "^6.9.18",
|
||||||
|
"@types/sortablejs": "^1.15.8",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^8.23.0",
|
||||||
|
"@typescript-eslint/parser": "^8.23.0",
|
||||||
|
"@vitejs/plugin-vue": "^5.2.1",
|
||||||
|
"autoprefixer": "^10.4.20",
|
||||||
|
"commitizen": "^4.3.1",
|
||||||
|
"cz-git": "^1.11.0",
|
||||||
|
"eslint": "^9.19.0",
|
||||||
|
"eslint-config-prettier": "^10.0.1",
|
||||||
|
"eslint-plugin-prettier": "^5.2.3",
|
||||||
|
"eslint-plugin-vue": "^9.32.0",
|
||||||
|
"globals": "^15.14.0",
|
||||||
|
"husky": "^9.1.7",
|
||||||
|
"lint-staged": "^15.4.3",
|
||||||
|
"postcss": "^8.5.1",
|
||||||
|
"postcss-html": "^1.8.0",
|
||||||
|
"postcss-scss": "^4.0.9",
|
||||||
|
"prettier": "^3.4.2",
|
||||||
|
"sass": "^1.84.0",
|
||||||
|
"stylelint": "^16.14.1",
|
||||||
|
"stylelint-config-html": "^1.1.0",
|
||||||
|
"stylelint-config-recess-order": "^6.0.0",
|
||||||
|
"stylelint-config-recommended-scss": "^14.1.0",
|
||||||
|
"stylelint-config-recommended-vue": "^1.6.0",
|
||||||
|
"stylelint-config-standard": "^37.0.0",
|
||||||
|
"terser": "^5.38.0",
|
||||||
|
"typescript": "^5.7.3",
|
||||||
|
"typescript-eslint": "^8.23.0",
|
||||||
|
"unocss": "65.4.3",
|
||||||
|
"unplugin-auto-import": "^19.0.0",
|
||||||
|
"unplugin-vue-components": "^28.0.0",
|
||||||
|
"vite": "^6.1.0",
|
||||||
|
"vite-plugin-mock-dev-server": "^1.8.3",
|
||||||
|
"vite-plugin-svg-icons": "^2.0.1",
|
||||||
|
"vue-eslint-parser": "^9.4.3",
|
||||||
|
"vue-tsc": "^2.2.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.0.0"
|
||||||
|
},
|
||||||
|
"repository": "https://gitee.com/youlaiorg/vue3-element-admin.git",
|
||||||
|
"author": "有来开源组织",
|
||||||
|
"license": "MIT"
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 4.2 KiB |
|
|
@ -0,0 +1,32 @@
|
||||||
|
<template>
|
||||||
|
<el-config-provider :locale="locale" :size="size">
|
||||||
|
<!-- 开启水印 -->
|
||||||
|
<el-watermark
|
||||||
|
:font="{ color: fontColor }"
|
||||||
|
:content="watermarkEnabled ? defaultSettings.watermarkContent : ''"
|
||||||
|
:z-index="9999"
|
||||||
|
class="wh-full"
|
||||||
|
>
|
||||||
|
<router-view />
|
||||||
|
</el-watermark>
|
||||||
|
</el-config-provider>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { useAppStore, useSettingsStore } from "@/store";
|
||||||
|
import defaultSettings from "@/settings";
|
||||||
|
import { ThemeEnum } from "@/enums/ThemeEnum";
|
||||||
|
import { SizeEnum } from "@/enums/SizeEnum";
|
||||||
|
|
||||||
|
const appStore = useAppStore();
|
||||||
|
const settingsStore = useSettingsStore();
|
||||||
|
|
||||||
|
const locale = computed(() => appStore.locale);
|
||||||
|
const size = computed(() => appStore.size as SizeEnum);
|
||||||
|
const watermarkEnabled = computed(() => settingsStore.watermarkEnabled);
|
||||||
|
|
||||||
|
// 明亮/暗黑主题水印字体颜色适配
|
||||||
|
const fontColor = computed(() => {
|
||||||
|
return settingsStore.theme === ThemeEnum.DARK ? "rgba(255, 255, 255, .15)" : "rgba(0, 0, 0, .15)";
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
@ -0,0 +1,84 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const AUTH_BASE_URL = "/api/v1/auth";
|
||||||
|
|
||||||
|
const AuthAPI = {
|
||||||
|
/** 登录接口*/
|
||||||
|
login(data: LoginFormData) {
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append("username", data.username);
|
||||||
|
formData.append("password", data.password);
|
||||||
|
formData.append("captchaKey", data.captchaKey);
|
||||||
|
formData.append("captchaCode", data.captchaCode);
|
||||||
|
return request<any, LoginResult>({
|
||||||
|
url: `${AUTH_BASE_URL}/login`,
|
||||||
|
method: "post",
|
||||||
|
data: formData,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "multipart/form-data",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 刷新 token 接口*/
|
||||||
|
refreshToken(refreshToken: string) {
|
||||||
|
return request<any, LoginResult>({
|
||||||
|
url: `${AUTH_BASE_URL}/refresh-token`,
|
||||||
|
method: "post",
|
||||||
|
params: { refreshToken: refreshToken },
|
||||||
|
headers: {
|
||||||
|
Authorization: "no-auth",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 注销登录接口 */
|
||||||
|
logout() {
|
||||||
|
return request({
|
||||||
|
url: `${AUTH_BASE_URL}/logout`,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 获取验证码接口*/
|
||||||
|
getCaptcha() {
|
||||||
|
return request<any, CaptchaInfo>({
|
||||||
|
url: `${AUTH_BASE_URL}/captcha`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default AuthAPI;
|
||||||
|
|
||||||
|
/** 登录表单数据 */
|
||||||
|
export interface LoginFormData {
|
||||||
|
/** 用户名 */
|
||||||
|
username: string;
|
||||||
|
/** 密码 */
|
||||||
|
password: string;
|
||||||
|
/** 验证码缓存key */
|
||||||
|
captchaKey: string;
|
||||||
|
/** 验证码 */
|
||||||
|
captchaCode: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 登录响应 */
|
||||||
|
export interface LoginResult {
|
||||||
|
/** 访问令牌 */
|
||||||
|
accessToken: string;
|
||||||
|
/** 刷新令牌 */
|
||||||
|
refreshToken: string;
|
||||||
|
/** 令牌类型 */
|
||||||
|
tokenType: string;
|
||||||
|
/** 过期时间(秒) */
|
||||||
|
expiresIn: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 验证码信息 */
|
||||||
|
export interface CaptchaInfo {
|
||||||
|
/** 验证码缓存key */
|
||||||
|
captchaKey: string;
|
||||||
|
/** 验证码图片Base64字符串 */
|
||||||
|
captchaBase64: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,191 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const GENERATOR_BASE_URL = "/api/v1/codegen";
|
||||||
|
|
||||||
|
const GeneratorAPI = {
|
||||||
|
/** 获取数据表分页列表 */
|
||||||
|
getTablePage(params: TablePageQuery) {
|
||||||
|
return request<any, PageResult<TablePageVO[]>>({
|
||||||
|
url: `${GENERATOR_BASE_URL}/table/page`,
|
||||||
|
method: "get",
|
||||||
|
params: params,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 获取代码生成配置 */
|
||||||
|
getGenConfig(tableName: string) {
|
||||||
|
return request<any, GenConfigForm>({
|
||||||
|
url: `${GENERATOR_BASE_URL}/${tableName}/config`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 获取代码生成配置 */
|
||||||
|
saveGenConfig(tableName: string, data: GenConfigForm) {
|
||||||
|
return request({
|
||||||
|
url: `${GENERATOR_BASE_URL}/${tableName}/config`,
|
||||||
|
method: "post",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 获取代码生成预览数据 */
|
||||||
|
getPreviewData(tableName: string) {
|
||||||
|
return request<any, GeneratorPreviewVO[]>({
|
||||||
|
url: `${GENERATOR_BASE_URL}/${tableName}/preview`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 重置代码生成配置 */
|
||||||
|
resetGenConfig(tableName: string) {
|
||||||
|
return request({
|
||||||
|
url: `${GENERATOR_BASE_URL}/${tableName}/config`,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 下载 ZIP 文件
|
||||||
|
* @param url
|
||||||
|
* @param fileName
|
||||||
|
*/
|
||||||
|
download(tableName: string) {
|
||||||
|
return request({
|
||||||
|
url: `${GENERATOR_BASE_URL}/${tableName}/download`,
|
||||||
|
method: "get",
|
||||||
|
responseType: "blob",
|
||||||
|
}).then((response) => {
|
||||||
|
const fileName = decodeURI(
|
||||||
|
response.headers["content-disposition"].split(";")[1].split("=")[1]
|
||||||
|
);
|
||||||
|
|
||||||
|
const blob = new Blob([response.data], { type: "application/zip" });
|
||||||
|
const a = document.createElement("a");
|
||||||
|
const url = window.URL.createObjectURL(blob);
|
||||||
|
a.href = url;
|
||||||
|
a.download = fileName;
|
||||||
|
a.click();
|
||||||
|
window.URL.revokeObjectURL(url);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default GeneratorAPI;
|
||||||
|
|
||||||
|
/** 代码生成预览对象 */
|
||||||
|
export interface GeneratorPreviewVO {
|
||||||
|
/** 文件生成路径 */
|
||||||
|
path: string;
|
||||||
|
/** 文件名称 */
|
||||||
|
fileName: string;
|
||||||
|
/** 文件内容 */
|
||||||
|
content: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 数据表分页查询参数 */
|
||||||
|
export interface TablePageQuery extends PageQuery {
|
||||||
|
/** 关键字(表名) */
|
||||||
|
keywords?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 数据表分页对象 */
|
||||||
|
export interface TablePageVO {
|
||||||
|
/** 表名称 */
|
||||||
|
tableName: string;
|
||||||
|
|
||||||
|
/** 表描述 */
|
||||||
|
tableComment: string;
|
||||||
|
|
||||||
|
/** 存储引擎 */
|
||||||
|
engine: string;
|
||||||
|
|
||||||
|
/** 字符集排序规则 */
|
||||||
|
tableCollation: string;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
createTime: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 代码生成配置表单 */
|
||||||
|
export interface GenConfigForm {
|
||||||
|
/** 主键 */
|
||||||
|
id?: number;
|
||||||
|
|
||||||
|
/** 表名 */
|
||||||
|
tableName?: string;
|
||||||
|
|
||||||
|
/** 业务名 */
|
||||||
|
businessName?: string;
|
||||||
|
|
||||||
|
/** 模块名 */
|
||||||
|
moduleName?: string;
|
||||||
|
|
||||||
|
/** 包名 */
|
||||||
|
packageName?: string;
|
||||||
|
|
||||||
|
/** 实体名 */
|
||||||
|
entityName?: string;
|
||||||
|
|
||||||
|
/** 作者 */
|
||||||
|
author?: string;
|
||||||
|
|
||||||
|
/** 上级菜单 */
|
||||||
|
parentMenuId?: number;
|
||||||
|
|
||||||
|
/** 后端应用名 */
|
||||||
|
backendAppName?: string;
|
||||||
|
/** 前端应用名 */
|
||||||
|
frontendAppName?: string;
|
||||||
|
|
||||||
|
/** 字段配置列表 */
|
||||||
|
fieldConfigs?: FieldConfig[];
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 字段配置 */
|
||||||
|
export interface FieldConfig {
|
||||||
|
/** 主键 */
|
||||||
|
id?: number;
|
||||||
|
|
||||||
|
/** 列名 */
|
||||||
|
columnName?: string;
|
||||||
|
|
||||||
|
/** 列类型 */
|
||||||
|
columnType?: string;
|
||||||
|
|
||||||
|
/** 字段名 */
|
||||||
|
fieldName?: string;
|
||||||
|
|
||||||
|
/** 字段类型 */
|
||||||
|
fieldType?: string;
|
||||||
|
|
||||||
|
/** 字段描述 */
|
||||||
|
fieldComment?: string;
|
||||||
|
|
||||||
|
/** 是否在列表显示 */
|
||||||
|
isShowInList?: number;
|
||||||
|
|
||||||
|
/** 是否在表单显示 */
|
||||||
|
isShowInForm?: number;
|
||||||
|
|
||||||
|
/** 是否在查询条件显示 */
|
||||||
|
isShowInQuery?: number;
|
||||||
|
|
||||||
|
/** 是否必填 */
|
||||||
|
isRequired?: number;
|
||||||
|
|
||||||
|
/** 表单类型 */
|
||||||
|
formType?: number;
|
||||||
|
|
||||||
|
/** 查询类型 */
|
||||||
|
queryType?: number;
|
||||||
|
|
||||||
|
/** 字段长度 */
|
||||||
|
maxLength?: number;
|
||||||
|
|
||||||
|
/** 字段排序 */
|
||||||
|
fieldSort?: number;
|
||||||
|
|
||||||
|
/** 字典类型 */
|
||||||
|
dictType?: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,205 @@
|
||||||
|
// 代客下单
|
||||||
|
import request from "@/utils/request-php";
|
||||||
|
import { getToken } from '@/utils/auth'
|
||||||
|
function getLoginName() {
|
||||||
|
const obj = localStorage.getItem("userInfo") || '';
|
||||||
|
const { username } = obj ? JSON.parse(obj) : {};
|
||||||
|
return username
|
||||||
|
}
|
||||||
|
// 抖音团购核销准备
|
||||||
|
export function $douyin_fulfilmentcertificateprepare(data) {
|
||||||
|
return request({
|
||||||
|
url: 'douyin/fulfilmentcertificateprepare',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 抖音团购核销
|
||||||
|
export function $douyin_certificateprepare(data) {
|
||||||
|
return request({
|
||||||
|
url: 'douyin/certificateprepare',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 抖音团购核销撤销
|
||||||
|
export function $douyin_fulfilmentcertificatecancel(data) {
|
||||||
|
return request({
|
||||||
|
url: 'douyin/fulfilmentcertificatecancel',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 抖音团购核销记录
|
||||||
|
export function $douyin_orderlist(data) {
|
||||||
|
return request({
|
||||||
|
url: 'douyin/orderlist',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 抖音门店列表
|
||||||
|
export function $douyin_storelist(data) {
|
||||||
|
return request({
|
||||||
|
url: 'douyin/storelist',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 抖音绑定门店
|
||||||
|
export function $douyin_bindstore(data) {
|
||||||
|
return request({
|
||||||
|
url: 'douyin/bindstore',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 抖音订单查询
|
||||||
|
|
||||||
|
export function $douyin_orderquery(data) {
|
||||||
|
return request({
|
||||||
|
url: 'douyin/orderquery',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//会员签入
|
||||||
|
export function $douyin_checkIn(data) {
|
||||||
|
return request({
|
||||||
|
url: 'douyin/checkIn',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
clientType: 'ADMIN',
|
||||||
|
token: getToken(),
|
||||||
|
loginName: getLoginName(),
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
//美团
|
||||||
|
|
||||||
|
// 美团获取uisdk 绑定 链接
|
||||||
|
|
||||||
|
export function $meituan_getuisdkurl(data) {
|
||||||
|
return request({
|
||||||
|
url: 'meituan/getuisdkurl',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 美团获取uisdk 解绑 链接
|
||||||
|
|
||||||
|
export function $meituan_getuisdkuniurl(data) {
|
||||||
|
return request({
|
||||||
|
url: 'meituan/getuisdkuniurl',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 美团团购核销准备
|
||||||
|
|
||||||
|
export function $meituan_fulfilmentcertificateprepare(data) {
|
||||||
|
return request({
|
||||||
|
url: 'meituan/fulfilmentcertificateprepare',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 美团执行核销
|
||||||
|
|
||||||
|
export function $meituan_certificateprepare(data) {
|
||||||
|
return request({
|
||||||
|
url: 'meituan/certificateprepare',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// 美团团购核销记录
|
||||||
|
|
||||||
|
|
||||||
|
export function $meituan_orderlist(data) {
|
||||||
|
return request({
|
||||||
|
url: 'meituan/orderlist',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 美团团购撤销
|
||||||
|
|
||||||
|
|
||||||
|
export function $meituan_fulfilmentcertificatecancel(data) {
|
||||||
|
return request({
|
||||||
|
url: 'meituan/fulfilmentcertificatecancel',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 美团查询绑定状态
|
||||||
|
export function $meituan_searchstorestatus(data) {
|
||||||
|
return request({
|
||||||
|
url: 'meituan/searchstorestatus',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 登出
|
||||||
|
export function $logout(data) {
|
||||||
|
return request({
|
||||||
|
url: 'user/logout',
|
||||||
|
method: "post",
|
||||||
|
data: {
|
||||||
|
|
||||||
|
...data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,81 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const FileAPI = {
|
||||||
|
/**
|
||||||
|
* 上传文件
|
||||||
|
*
|
||||||
|
* @param formData
|
||||||
|
*/
|
||||||
|
upload(formData: FormData) {
|
||||||
|
return request<any, FileInfo>({
|
||||||
|
url: "/api/v1/files",
|
||||||
|
method: "post",
|
||||||
|
data: formData,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "multipart/form-data",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上传文件
|
||||||
|
*/
|
||||||
|
uploadFile(file: File) {
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append("file", file);
|
||||||
|
return request<any, FileInfo>({
|
||||||
|
url: "/api/v1/files",
|
||||||
|
method: "post",
|
||||||
|
data: formData,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "multipart/form-data",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除文件
|
||||||
|
*
|
||||||
|
* @param filePath 文件完整路径
|
||||||
|
*/
|
||||||
|
delete(filePath?: string) {
|
||||||
|
return request({
|
||||||
|
url: "/api/v1/files",
|
||||||
|
method: "delete",
|
||||||
|
params: { filePath: filePath },
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 下载文件
|
||||||
|
* @param url
|
||||||
|
* @param fileName
|
||||||
|
*/
|
||||||
|
download(url: string, fileName?: string) {
|
||||||
|
return request({
|
||||||
|
url: url,
|
||||||
|
method: "get",
|
||||||
|
responseType: "blob",
|
||||||
|
}).then((res) => {
|
||||||
|
const blob = new Blob([res.data]);
|
||||||
|
const a = document.createElement("a");
|
||||||
|
const url = window.URL.createObjectURL(blob);
|
||||||
|
a.href = url;
|
||||||
|
a.download = fileName || "下载文件";
|
||||||
|
a.click();
|
||||||
|
window.URL.revokeObjectURL(url);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default FileAPI;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件API类型声明
|
||||||
|
*/
|
||||||
|
export interface FileInfo {
|
||||||
|
/** 文件名 */
|
||||||
|
name: string;
|
||||||
|
/** 文件路径 */
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
export function login(data) {
|
||||||
|
return request({
|
||||||
|
url: "auth/login",
|
||||||
|
method: "post",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getInfo() {
|
||||||
|
return request({
|
||||||
|
url: "auth/info",
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function changChildShop(data) {
|
||||||
|
return request({
|
||||||
|
url: "/api/tbShopInfo/changChildShop",
|
||||||
|
method: "post",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getCodeImg(header) {
|
||||||
|
return request({
|
||||||
|
url: "auth/code",
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export function getqueryChildShop(params) {
|
||||||
|
return request({
|
||||||
|
url: "api/tbShopInfo/queryChildShop",
|
||||||
|
method: "get",
|
||||||
|
params,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function logout() {
|
||||||
|
return request({
|
||||||
|
url: "auth/logout",
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 个人中心 修改密码
|
||||||
|
* @param {*} data
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export function updatePass(data) {
|
||||||
|
return request({
|
||||||
|
url: "/api/users/updatePass",
|
||||||
|
method: "post",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,104 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const CONFIG_BASE_URL = "/api/v1/config";
|
||||||
|
|
||||||
|
const ConfigAPI = {
|
||||||
|
/** 获取系统配置分页数据 */
|
||||||
|
getPage(queryParams?: ConfigPageQuery) {
|
||||||
|
return request<any, PageResult<ConfigPageVO[]>>({
|
||||||
|
url: `${CONFIG_BASE_URL}/page`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 获取系统配置表单数据
|
||||||
|
*
|
||||||
|
* @param id ConfigID
|
||||||
|
* @returns Config表单数据
|
||||||
|
*/
|
||||||
|
getFormData(id: number) {
|
||||||
|
return request<any, ConfigForm>({
|
||||||
|
url: `${CONFIG_BASE_URL}/${id}/form`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 添加系统配置*/
|
||||||
|
add(data: ConfigForm) {
|
||||||
|
return request({
|
||||||
|
url: `${CONFIG_BASE_URL}`,
|
||||||
|
method: "post",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新系统配置
|
||||||
|
*
|
||||||
|
* @param id ConfigID
|
||||||
|
* @param data Config表单数据
|
||||||
|
*/
|
||||||
|
update(id: number, data: ConfigForm) {
|
||||||
|
return request({
|
||||||
|
url: `${CONFIG_BASE_URL}/${id}`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除系统配置
|
||||||
|
*
|
||||||
|
* @param ids 系统配置ID
|
||||||
|
*/
|
||||||
|
deleteById(id: number) {
|
||||||
|
return request({
|
||||||
|
url: `${CONFIG_BASE_URL}/${id}`,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
refreshCache() {
|
||||||
|
return request({
|
||||||
|
url: `${CONFIG_BASE_URL}/refresh`,
|
||||||
|
method: "PUT",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default ConfigAPI;
|
||||||
|
|
||||||
|
/** $系统配置分页查询参数 */
|
||||||
|
export interface ConfigPageQuery extends PageQuery {
|
||||||
|
/** 搜索关键字 */
|
||||||
|
keywords?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 系统配置表单对象 */
|
||||||
|
export interface ConfigForm {
|
||||||
|
/** 主键 */
|
||||||
|
id?: number;
|
||||||
|
/** 配置名称 */
|
||||||
|
configName?: string;
|
||||||
|
/** 配置键 */
|
||||||
|
configKey?: string;
|
||||||
|
/** 配置值 */
|
||||||
|
configValue?: string;
|
||||||
|
/** 描述、备注 */
|
||||||
|
remark?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 系统配置分页对象 */
|
||||||
|
export interface ConfigPageVO {
|
||||||
|
/** 主键 */
|
||||||
|
id?: number;
|
||||||
|
/** 配置名称 */
|
||||||
|
configName?: string;
|
||||||
|
/** 配置键 */
|
||||||
|
configKey?: string;
|
||||||
|
/** 配置值 */
|
||||||
|
configValue?: string;
|
||||||
|
/** 描述、备注 */
|
||||||
|
remark?: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,130 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const DEPT_BASE_URL = "/api/v1/dept";
|
||||||
|
|
||||||
|
const DeptAPI = {
|
||||||
|
/**
|
||||||
|
* 获取部门列表
|
||||||
|
*
|
||||||
|
* @param queryParams 查询参数(可选)
|
||||||
|
* @returns 部门树形表格数据
|
||||||
|
*/
|
||||||
|
getList(queryParams?: DeptQuery) {
|
||||||
|
return request<any, DeptVO[]>({
|
||||||
|
url: `${DEPT_BASE_URL}`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 获取部门下拉列表 */
|
||||||
|
getOptions() {
|
||||||
|
return request<any, OptionType[]>({
|
||||||
|
url: `${DEPT_BASE_URL}/options`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取部门表单数据
|
||||||
|
*
|
||||||
|
* @param id 部门ID
|
||||||
|
* @returns 部门表单数据
|
||||||
|
*/
|
||||||
|
getFormData(id: number) {
|
||||||
|
return request<any, DeptForm>({
|
||||||
|
url: `${DEPT_BASE_URL}/${id}/form`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增部门
|
||||||
|
*
|
||||||
|
* @param data 部门表单数据
|
||||||
|
* @returns 请求结果
|
||||||
|
*/
|
||||||
|
add(data: DeptForm) {
|
||||||
|
return request({
|
||||||
|
url: `${DEPT_BASE_URL}`,
|
||||||
|
method: "post",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改部门
|
||||||
|
*
|
||||||
|
* @param id 部门ID
|
||||||
|
* @param data 部门表单数据
|
||||||
|
* @returns 请求结果
|
||||||
|
*/
|
||||||
|
update(id: string, data: DeptForm) {
|
||||||
|
return request({
|
||||||
|
url: `${DEPT_BASE_URL}/${id}`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除部门
|
||||||
|
*
|
||||||
|
* @param ids 部门ID,多个以英文逗号(,)分隔
|
||||||
|
* @returns 请求结果
|
||||||
|
*/
|
||||||
|
deleteByIds(ids: string) {
|
||||||
|
return request({
|
||||||
|
url: `${DEPT_BASE_URL}/${ids}`,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default DeptAPI;
|
||||||
|
|
||||||
|
/** 部门查询参数 */
|
||||||
|
export interface DeptQuery {
|
||||||
|
/** 搜索关键字 */
|
||||||
|
keywords?: string;
|
||||||
|
/** 状态 */
|
||||||
|
status?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 部门类型 */
|
||||||
|
export interface DeptVO {
|
||||||
|
/** 子部门 */
|
||||||
|
children?: DeptVO[];
|
||||||
|
/** 创建时间 */
|
||||||
|
createTime?: Date;
|
||||||
|
/** 部门ID */
|
||||||
|
id?: number;
|
||||||
|
/** 部门名称 */
|
||||||
|
name?: string;
|
||||||
|
/** 部门编号 */
|
||||||
|
code?: string;
|
||||||
|
/** 父部门ID */
|
||||||
|
parentId?: number;
|
||||||
|
/** 排序 */
|
||||||
|
sort?: number;
|
||||||
|
/** 状态(1:启用;0:禁用) */
|
||||||
|
status?: number;
|
||||||
|
/** 修改时间 */
|
||||||
|
updateTime?: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 部门表单类型 */
|
||||||
|
export interface DeptForm {
|
||||||
|
/** 部门ID(新增不填) */
|
||||||
|
id?: string;
|
||||||
|
/** 部门名称 */
|
||||||
|
name?: string;
|
||||||
|
/** 部门编号 */
|
||||||
|
code?: string;
|
||||||
|
/** 父部门ID */
|
||||||
|
parentId: string;
|
||||||
|
/** 排序 */
|
||||||
|
sort?: number;
|
||||||
|
/** 状态(1:启用;0:禁用) */
|
||||||
|
status?: number;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,162 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const DICT_DATA_BASE_URL = "/api/v1/dict-data";
|
||||||
|
|
||||||
|
const DictDataAPI = {
|
||||||
|
/**
|
||||||
|
* 获取字典分页列表
|
||||||
|
*
|
||||||
|
* @param queryParams 查询参数
|
||||||
|
* @returns 字典分页结果
|
||||||
|
*/
|
||||||
|
getPage(queryParams: DictDataPageQuery) {
|
||||||
|
return request<any, PageResult<DictDataPageVO[]>>({
|
||||||
|
url: `${DICT_DATA_BASE_URL}/page`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取字典数据表单
|
||||||
|
*
|
||||||
|
* @param id 字典ID
|
||||||
|
* @returns 字典数据表单
|
||||||
|
*/
|
||||||
|
getFormData(id: number) {
|
||||||
|
return request<any, ResponseData<DictDataForm>>({
|
||||||
|
url: `${DICT_DATA_BASE_URL}/${id}/form`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增字典数据
|
||||||
|
*
|
||||||
|
* @param data 字典数据
|
||||||
|
*/
|
||||||
|
add(data: DictDataForm) {
|
||||||
|
return request({
|
||||||
|
url: `${DICT_DATA_BASE_URL}`,
|
||||||
|
method: "post",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改字典数据
|
||||||
|
*
|
||||||
|
* @param id 字典ID
|
||||||
|
* @param data 字典数据
|
||||||
|
*/
|
||||||
|
update(id: number, data: DictDataForm) {
|
||||||
|
return request({
|
||||||
|
url: `${DICT_DATA_BASE_URL}/${id}`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除字典
|
||||||
|
*
|
||||||
|
* @param ids 字典ID,多个以英文逗号(,)分隔
|
||||||
|
*/
|
||||||
|
deleteByIds(ids: string) {
|
||||||
|
return request({
|
||||||
|
url: `${DICT_DATA_BASE_URL}/${ids}`,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取字典的数据项
|
||||||
|
*
|
||||||
|
* @param dictCode 字典编码
|
||||||
|
* @returns 字典数据项
|
||||||
|
*/
|
||||||
|
getOptions(dictCode: string) {
|
||||||
|
return request<any, OptionType[]>({
|
||||||
|
url: `${DICT_DATA_BASE_URL}/${dictCode}/options`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default DictDataAPI;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典查询参数
|
||||||
|
*/
|
||||||
|
export interface DictDataPageQuery extends PageQuery {
|
||||||
|
/** 关键字(字典数据值/标签) */
|
||||||
|
keywords?: string;
|
||||||
|
|
||||||
|
/** 字典编码 */
|
||||||
|
dictCode?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典分页对象
|
||||||
|
*/
|
||||||
|
export interface DictDataPageVO {
|
||||||
|
/**
|
||||||
|
* 字典ID
|
||||||
|
*/
|
||||||
|
id: number;
|
||||||
|
/**
|
||||||
|
* 字典编码
|
||||||
|
*/
|
||||||
|
dictCode: string;
|
||||||
|
/**
|
||||||
|
* 字典数据值
|
||||||
|
*/
|
||||||
|
value: string;
|
||||||
|
/**
|
||||||
|
* 字典数据标签
|
||||||
|
*/
|
||||||
|
label: string;
|
||||||
|
/**
|
||||||
|
* 状态(1:启用,0:禁用)
|
||||||
|
*/
|
||||||
|
status: number;
|
||||||
|
/**
|
||||||
|
* 字典排序
|
||||||
|
*/
|
||||||
|
sort?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典
|
||||||
|
*/
|
||||||
|
export interface DictDataForm {
|
||||||
|
/**
|
||||||
|
* 字典ID
|
||||||
|
*/
|
||||||
|
id?: number;
|
||||||
|
/**
|
||||||
|
* 字典编码
|
||||||
|
*/
|
||||||
|
dictCode?: string;
|
||||||
|
/**
|
||||||
|
* 字典数据值
|
||||||
|
*/
|
||||||
|
value?: string;
|
||||||
|
/**
|
||||||
|
* 字典数据标签
|
||||||
|
*/
|
||||||
|
label?: string;
|
||||||
|
/**
|
||||||
|
* 状态(1:启用,0:禁用)
|
||||||
|
*/
|
||||||
|
status?: number;
|
||||||
|
/**
|
||||||
|
* 字典排序
|
||||||
|
*/
|
||||||
|
sort?: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标签类型
|
||||||
|
*/
|
||||||
|
tagType?: "success" | "warning" | "info" | "primary" | "danger" | undefined;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,180 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const DICT_BASE_URL = "/api/v1/dict";
|
||||||
|
|
||||||
|
const DictAPI = {
|
||||||
|
/**
|
||||||
|
* 获取字典分页列表
|
||||||
|
*
|
||||||
|
* @param queryParams 查询参数
|
||||||
|
* @returns 字典分页结果
|
||||||
|
*/
|
||||||
|
getPage(queryParams: DictPageQuery) {
|
||||||
|
return request<any, PageResult<DictPageVO[]>>({
|
||||||
|
url: `${DICT_BASE_URL}/page`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取字典表单数据
|
||||||
|
*
|
||||||
|
* @param id 字典ID
|
||||||
|
* @returns 字典表单数据
|
||||||
|
*/
|
||||||
|
getFormData(id: number) {
|
||||||
|
return request<any, ResponseData<DictForm>>({
|
||||||
|
url: `${DICT_BASE_URL}/${id}/form`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增字典
|
||||||
|
*
|
||||||
|
* @param data 字典表单数据
|
||||||
|
*/
|
||||||
|
add(data: DictForm) {
|
||||||
|
return request({
|
||||||
|
url: `${DICT_BASE_URL}`,
|
||||||
|
method: "post",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改字典
|
||||||
|
*
|
||||||
|
* @param id 字典ID
|
||||||
|
* @param data 字典表单数据
|
||||||
|
*/
|
||||||
|
update(id: number, data: DictForm) {
|
||||||
|
return request({
|
||||||
|
url: `${DICT_BASE_URL}/${id}`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除字典
|
||||||
|
*
|
||||||
|
* @param ids 字典ID,多个以英文逗号(,)分隔
|
||||||
|
*/
|
||||||
|
deleteByIds(ids: string) {
|
||||||
|
return request({
|
||||||
|
url: `${DICT_BASE_URL}/${ids}`,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取字典列表
|
||||||
|
*
|
||||||
|
* @returns 字典列表
|
||||||
|
*/
|
||||||
|
getList() {
|
||||||
|
return request<any, DictVO[]>({
|
||||||
|
url: `${DICT_BASE_URL}/list`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default DictAPI;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典查询参数
|
||||||
|
*/
|
||||||
|
export interface DictPageQuery extends PageQuery {
|
||||||
|
/**
|
||||||
|
* 关键字(字典名称/编码)
|
||||||
|
*/
|
||||||
|
keywords?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典状态(1:启用,0:禁用)
|
||||||
|
*/
|
||||||
|
status?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典分页对象
|
||||||
|
*/
|
||||||
|
export interface DictPageVO {
|
||||||
|
/**
|
||||||
|
* 字典ID
|
||||||
|
*/
|
||||||
|
id: number;
|
||||||
|
/**
|
||||||
|
* 字典名称
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* 字典编码
|
||||||
|
*/
|
||||||
|
dictCode: string;
|
||||||
|
/**
|
||||||
|
* 字典状态(1:启用,0:禁用)
|
||||||
|
*/
|
||||||
|
status: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典
|
||||||
|
*/
|
||||||
|
export interface DictForm {
|
||||||
|
/**
|
||||||
|
* 字典ID
|
||||||
|
*/
|
||||||
|
id?: number;
|
||||||
|
/**
|
||||||
|
* 字典名称
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* 字典编码
|
||||||
|
*/
|
||||||
|
dictCode?: string;
|
||||||
|
/**
|
||||||
|
* 字典状态(1-启用,0-禁用)
|
||||||
|
*/
|
||||||
|
status?: number;
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
remark?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典数据项分页VO
|
||||||
|
*
|
||||||
|
* @description 字典数据分页对象
|
||||||
|
*/
|
||||||
|
export interface DictVO {
|
||||||
|
/** 字典名称 */
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
/** 字典编码 */
|
||||||
|
dictCode: string;
|
||||||
|
|
||||||
|
/** 字典数据集合 */
|
||||||
|
dictDataList: DictData[];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典数据
|
||||||
|
*
|
||||||
|
* @description 字典数据
|
||||||
|
*/
|
||||||
|
export interface DictData {
|
||||||
|
/** 字典数据值 */
|
||||||
|
value: string;
|
||||||
|
|
||||||
|
/** 字典数据标签 */
|
||||||
|
label: string;
|
||||||
|
|
||||||
|
/** 标签类型 */
|
||||||
|
tagType: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,121 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const LOG_BASE_URL = "/api/v1/logs";
|
||||||
|
|
||||||
|
const LogAPI = {
|
||||||
|
/**
|
||||||
|
* 获取日志分页列表
|
||||||
|
*
|
||||||
|
* @param queryParams 查询参数
|
||||||
|
*/
|
||||||
|
getPage(queryParams: LogPageQuery) {
|
||||||
|
return request<any, PageResult<LogPageVO[]>>({
|
||||||
|
url: `${LOG_BASE_URL}/page`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取访问趋势
|
||||||
|
*
|
||||||
|
* @param queryParams
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getVisitTrend(queryParams: VisitTrendQuery) {
|
||||||
|
return request<any, VisitTrendVO>({
|
||||||
|
url: `${LOG_BASE_URL}/visit-trend`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取访问统计
|
||||||
|
*
|
||||||
|
* @param queryParams
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getVisitStats() {
|
||||||
|
return request<any, VisitStatsVO>({
|
||||||
|
url: `${LOG_BASE_URL}/visit-stats`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default LogAPI;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 日志分页查询对象
|
||||||
|
*/
|
||||||
|
export interface LogPageQuery extends PageQuery {
|
||||||
|
/** 搜索关键字 */
|
||||||
|
keywords?: string;
|
||||||
|
/** 操作时间 */
|
||||||
|
createTime?: [string, string];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统日志分页VO
|
||||||
|
*/
|
||||||
|
export interface LogPageVO {
|
||||||
|
/** 主键 */
|
||||||
|
id: number;
|
||||||
|
/** 日志模块 */
|
||||||
|
module: string;
|
||||||
|
/** 日志内容 */
|
||||||
|
content: string;
|
||||||
|
/** 请求路径 */
|
||||||
|
requestUri: string;
|
||||||
|
/** 请求方法 */
|
||||||
|
method: string;
|
||||||
|
/** IP 地址 */
|
||||||
|
ip: string;
|
||||||
|
/** 地区 */
|
||||||
|
region: string;
|
||||||
|
/** 浏览器 */
|
||||||
|
browser: string;
|
||||||
|
/** 终端系统 */
|
||||||
|
os: string;
|
||||||
|
/** 执行时间(毫秒) */
|
||||||
|
executionTime: number;
|
||||||
|
/** 操作人 */
|
||||||
|
operator: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 访问趋势视图对象 */
|
||||||
|
export interface VisitTrendVO {
|
||||||
|
/** 日期列表 */
|
||||||
|
dates: string[];
|
||||||
|
/** 浏览量(PV) */
|
||||||
|
pvList: number[];
|
||||||
|
/** 访客数(UV) */
|
||||||
|
uvList: number[];
|
||||||
|
/** IP数 */
|
||||||
|
ipList: number[];
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 访问趋势查询参数 */
|
||||||
|
export interface VisitTrendQuery {
|
||||||
|
/** 开始日期 */
|
||||||
|
startDate: string;
|
||||||
|
/** 结束日期 */
|
||||||
|
endDate: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 访问统计 */
|
||||||
|
export interface VisitStatsVO {
|
||||||
|
/** 今日访客数(UV) */
|
||||||
|
todayUvCount: number;
|
||||||
|
/** 总访客数 */
|
||||||
|
totalUvCount: number;
|
||||||
|
/** 访客数同比增长率(相对于昨天同一时间段的增长率) */
|
||||||
|
uvGrowthRate: number;
|
||||||
|
/** 今日浏览量(PV) */
|
||||||
|
todayPvCount: number;
|
||||||
|
/** 总浏览量 */
|
||||||
|
totalPvCount: number;
|
||||||
|
/** 同比增长率(相对于昨天同一时间段的增长率) */
|
||||||
|
pvGrowthRate: number;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,209 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
// 菜单基础URL
|
||||||
|
const MENU_BASE_URL = "/api/v1/menus";
|
||||||
|
|
||||||
|
const MenuAPI = {
|
||||||
|
/**
|
||||||
|
* 获取当前用户的路由列表
|
||||||
|
* <p/>
|
||||||
|
* 无需传入角色,后端解析token获取角色自行判断是否拥有路由的权限
|
||||||
|
*
|
||||||
|
* @returns 路由列表
|
||||||
|
*/
|
||||||
|
getRoutes() {
|
||||||
|
return request<any, RouteVO[]>({
|
||||||
|
url: `${MENU_BASE_URL}/routes`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取菜单树形列表
|
||||||
|
*
|
||||||
|
* @param queryParams 查询参数
|
||||||
|
* @returns 菜单树形列表
|
||||||
|
*/
|
||||||
|
getList(queryParams: MenuQuery) {
|
||||||
|
return request<any, MenuVO[]>({
|
||||||
|
url: `${MENU_BASE_URL}`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取菜单下拉数据源
|
||||||
|
*
|
||||||
|
* @returns 菜单下拉数据源
|
||||||
|
*/
|
||||||
|
getOptions(onlyParent?: boolean) {
|
||||||
|
return request<any, OptionType[]>({
|
||||||
|
url: `${MENU_BASE_URL}/options`,
|
||||||
|
method: "get",
|
||||||
|
params: { onlyParent: onlyParent },
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取菜单表单数据
|
||||||
|
*
|
||||||
|
* @param id 菜单ID
|
||||||
|
*/
|
||||||
|
getFormData(id: string) {
|
||||||
|
return request<any, MenuForm>({
|
||||||
|
url: `${MENU_BASE_URL}/${id}/form`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加菜单
|
||||||
|
*
|
||||||
|
* @param data 菜单表单数据
|
||||||
|
* @returns 请求结果
|
||||||
|
*/
|
||||||
|
add(data: MenuForm) {
|
||||||
|
return request({
|
||||||
|
url: `${MENU_BASE_URL}`,
|
||||||
|
method: "post",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改菜单
|
||||||
|
*
|
||||||
|
* @param id 菜单ID
|
||||||
|
* @param data 菜单表单数据
|
||||||
|
* @returns 请求结果
|
||||||
|
*/
|
||||||
|
update(id: string, data: MenuForm) {
|
||||||
|
return request({
|
||||||
|
url: `${MENU_BASE_URL}/${id}`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除菜单
|
||||||
|
*
|
||||||
|
* @param id 菜单ID
|
||||||
|
* @returns 请求结果
|
||||||
|
*/
|
||||||
|
deleteById(id: number) {
|
||||||
|
return request({
|
||||||
|
url: `${MENU_BASE_URL}/${id}`,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default MenuAPI;
|
||||||
|
|
||||||
|
import type { MenuTypeEnum } from "@/enums/MenuTypeEnum";
|
||||||
|
|
||||||
|
/** 菜单查询参数 */
|
||||||
|
export interface MenuQuery {
|
||||||
|
/** 搜索关键字 */
|
||||||
|
keywords?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 菜单视图对象 */
|
||||||
|
export interface MenuVO {
|
||||||
|
/** 子菜单 */
|
||||||
|
children?: MenuVO[];
|
||||||
|
/** 组件路径 */
|
||||||
|
component?: string;
|
||||||
|
/** ICON */
|
||||||
|
icon?: string;
|
||||||
|
/** 菜单ID */
|
||||||
|
id?: string;
|
||||||
|
/** 菜单名称 */
|
||||||
|
name?: string;
|
||||||
|
/** 父菜单ID */
|
||||||
|
parentId?: string;
|
||||||
|
/** 按钮权限标识 */
|
||||||
|
perm?: string;
|
||||||
|
/** 跳转路径 */
|
||||||
|
redirect?: string;
|
||||||
|
/** 路由名称 */
|
||||||
|
routeName?: string;
|
||||||
|
/** 路由相对路径 */
|
||||||
|
routePath?: string;
|
||||||
|
/** 菜单排序(数字越小排名越靠前) */
|
||||||
|
sort?: number;
|
||||||
|
/** 菜单 */
|
||||||
|
type?: MenuTypeEnum;
|
||||||
|
/** 菜单是否可见(1:显示;0:隐藏) */
|
||||||
|
visible?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 菜单表单对象 */
|
||||||
|
export interface MenuForm {
|
||||||
|
/** 菜单ID */
|
||||||
|
id?: string;
|
||||||
|
/** 父菜单ID */
|
||||||
|
parentId?: string;
|
||||||
|
/** 菜单名称 */
|
||||||
|
name?: string;
|
||||||
|
/** 菜单是否可见(1-是 0-否) */
|
||||||
|
visible: number;
|
||||||
|
/** ICON */
|
||||||
|
icon?: string;
|
||||||
|
/** 排序 */
|
||||||
|
sort?: number;
|
||||||
|
/** 路由名称 */
|
||||||
|
routeName?: string;
|
||||||
|
/** 路由路径 */
|
||||||
|
routePath?: string;
|
||||||
|
/** 组件路径 */
|
||||||
|
component?: string;
|
||||||
|
/** 跳转路由路径 */
|
||||||
|
redirect?: string;
|
||||||
|
/** 菜单 */
|
||||||
|
type?: MenuTypeEnum;
|
||||||
|
/** 权限标识 */
|
||||||
|
perm?: string;
|
||||||
|
/** 【菜单】是否开启页面缓存 */
|
||||||
|
keepAlive?: number;
|
||||||
|
/** 【目录】只有一个子路由是否始终显示 */
|
||||||
|
alwaysShow?: number;
|
||||||
|
/** 参数 */
|
||||||
|
params?: KeyValue[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface KeyValue {
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** RouteVO,路由对象 */
|
||||||
|
export interface RouteVO {
|
||||||
|
/** 子路由列表 */
|
||||||
|
children: RouteVO[];
|
||||||
|
/** 组件路径 */
|
||||||
|
component?: string;
|
||||||
|
/** 路由属性 */
|
||||||
|
meta?: Meta;
|
||||||
|
/** 路由名称 */
|
||||||
|
name?: string;
|
||||||
|
/** 路由路径 */
|
||||||
|
path?: string;
|
||||||
|
/** 跳转链接 */
|
||||||
|
redirect?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Meta,路由属性 */
|
||||||
|
export interface Meta {
|
||||||
|
/** 【目录】只有一个子路由是否始终显示 */
|
||||||
|
alwaysShow?: boolean;
|
||||||
|
/** 是否隐藏(true-是 false-否) */
|
||||||
|
hidden?: boolean;
|
||||||
|
/** ICON */
|
||||||
|
icon?: string;
|
||||||
|
/** 【菜单】是否开启页面缓存 */
|
||||||
|
keepAlive?: boolean;
|
||||||
|
/** 路由title */
|
||||||
|
title?: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,199 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const NOTICE_BASE_URL = "/api/v1/notices";
|
||||||
|
|
||||||
|
const NoticeAPI = {
|
||||||
|
/** 获取通知公告分页数据 */
|
||||||
|
getPage(queryParams?: NoticePageQuery) {
|
||||||
|
return request<any, PageResult<NoticePageVO[]>>({
|
||||||
|
url: `${NOTICE_BASE_URL}/page`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取通知公告表单数据
|
||||||
|
*
|
||||||
|
* @param id NoticeID
|
||||||
|
* @returns Notice表单数据
|
||||||
|
*/
|
||||||
|
getFormData(id: number) {
|
||||||
|
return request<any, NoticeForm>({
|
||||||
|
url: `${NOTICE_BASE_URL}/${id}/form`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加通知公告
|
||||||
|
*
|
||||||
|
* @param data Notice表单数据
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
add(data: NoticeForm) {
|
||||||
|
return request({
|
||||||
|
url: `${NOTICE_BASE_URL}`,
|
||||||
|
method: "post",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新通知公告
|
||||||
|
*
|
||||||
|
* @param id NoticeID
|
||||||
|
* @param data Notice表单数据
|
||||||
|
*/
|
||||||
|
update(id: number, data: NoticeForm) {
|
||||||
|
return request({
|
||||||
|
url: `${NOTICE_BASE_URL}/${id}`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除通知公告,多个以英文逗号(,)分割
|
||||||
|
*
|
||||||
|
* @param ids 通知公告ID字符串,多个以英文逗号(,)分割
|
||||||
|
*/
|
||||||
|
deleteByIds(ids: string) {
|
||||||
|
return request({
|
||||||
|
url: `${NOTICE_BASE_URL}/${ids}`,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发布通知
|
||||||
|
*
|
||||||
|
* @param id 被发布的通知公告id
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
publish(id: number) {
|
||||||
|
return request({
|
||||||
|
url: `${NOTICE_BASE_URL}/${id}/publish`,
|
||||||
|
method: "put",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 撤回通知
|
||||||
|
*
|
||||||
|
* @param id 撤回的通知id
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
revoke(id: number) {
|
||||||
|
return request({
|
||||||
|
url: `${NOTICE_BASE_URL}/${id}/revoke`,
|
||||||
|
method: "put",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 查看通知
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
*/
|
||||||
|
getDetail(id: string) {
|
||||||
|
return request<any, NoticeDetailVO>({
|
||||||
|
url: `${NOTICE_BASE_URL}/${id}/detail`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/* 全部已读 */
|
||||||
|
readAll() {
|
||||||
|
return request({
|
||||||
|
url: `${NOTICE_BASE_URL}/read-all`,
|
||||||
|
method: "put",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 获取我的通知分页列表 */
|
||||||
|
getMyNoticePage(queryParams?: NoticePageQuery) {
|
||||||
|
return request<any, PageResult<NoticePageVO[]>>({
|
||||||
|
url: `${NOTICE_BASE_URL}/my-page`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default NoticeAPI;
|
||||||
|
|
||||||
|
/** 通知公告分页查询参数 */
|
||||||
|
export interface NoticePageQuery extends PageQuery {
|
||||||
|
/** 标题 */
|
||||||
|
title?: string;
|
||||||
|
/** 发布状态(0:未发布,1:已发布,-1:已撤回) */
|
||||||
|
publishStatus?: number;
|
||||||
|
|
||||||
|
isRead?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 通知公告表单对象 */
|
||||||
|
export interface NoticeForm {
|
||||||
|
id?: number;
|
||||||
|
/** 通知标题 */
|
||||||
|
title?: string;
|
||||||
|
/** 通知内容 */
|
||||||
|
content?: string;
|
||||||
|
/** 通知类型 */
|
||||||
|
type?: number;
|
||||||
|
/** 优先级(L:低,M:中,H:高) */
|
||||||
|
level?: string;
|
||||||
|
/** 目标类型(1-全体 2-指定) */
|
||||||
|
targetType?: number;
|
||||||
|
/** 目标ID合集,以,分割 */
|
||||||
|
targetUserIds?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 通知公告分页对象 */
|
||||||
|
export interface NoticePageVO {
|
||||||
|
id: string;
|
||||||
|
/** 通知标题 */
|
||||||
|
title?: string;
|
||||||
|
/** 通知内容 */
|
||||||
|
content?: string;
|
||||||
|
/** 通知类型 */
|
||||||
|
type?: number;
|
||||||
|
/** 发布人 */
|
||||||
|
publisherId?: bigint;
|
||||||
|
/** 优先级(0-低 1-中 2-高) */
|
||||||
|
priority?: number;
|
||||||
|
/** 目标类型(0-全体 1-指定) */
|
||||||
|
targetType?: number;
|
||||||
|
/** 发布状态(0-未发布 1已发布 2已撤回) */
|
||||||
|
publishStatus?: number;
|
||||||
|
/** 发布时间 */
|
||||||
|
publishTime?: Date;
|
||||||
|
/** 撤回时间 */
|
||||||
|
revokeTime?: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface NoticeDetailVO {
|
||||||
|
/** 通知ID */
|
||||||
|
id?: string;
|
||||||
|
|
||||||
|
/** 通知标题 */
|
||||||
|
title?: string;
|
||||||
|
|
||||||
|
/** 通知内容 */
|
||||||
|
content?: string;
|
||||||
|
|
||||||
|
/** 通知类型 */
|
||||||
|
type?: number;
|
||||||
|
|
||||||
|
/** 发布人 */
|
||||||
|
publisherName?: string;
|
||||||
|
|
||||||
|
/** 优先级(L-低 M-中 H-高) */
|
||||||
|
level?: string;
|
||||||
|
|
||||||
|
/** 发布时间 */
|
||||||
|
publishTime?: Date;
|
||||||
|
|
||||||
|
/** 发布状态 */
|
||||||
|
publishStatus?: number;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,138 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const ROLE_BASE_URL = "/api/v1/roles";
|
||||||
|
|
||||||
|
const RoleAPI = {
|
||||||
|
/** 获取角色分页数据 */
|
||||||
|
getPage(queryParams?: RolePageQuery) {
|
||||||
|
return request<any, PageResult<RolePageVO[]>>({
|
||||||
|
url: `${ROLE_BASE_URL}/page`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 获取角色下拉数据源 */
|
||||||
|
getOptions() {
|
||||||
|
return request<any, OptionType[]>({
|
||||||
|
url: `${ROLE_BASE_URL}/options`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 获取角色的菜单ID集合
|
||||||
|
*
|
||||||
|
* @param roleId 角色ID
|
||||||
|
* @returns 角色的菜单ID集合
|
||||||
|
*/
|
||||||
|
getRoleMenuIds(roleId: number) {
|
||||||
|
return request<any, number[]>({
|
||||||
|
url: `${ROLE_BASE_URL}/${roleId}/menuIds`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分配菜单权限
|
||||||
|
*
|
||||||
|
* @param roleId 角色ID
|
||||||
|
* @param data 菜单ID集合
|
||||||
|
*/
|
||||||
|
updateRoleMenus(roleId: number, data: number[]) {
|
||||||
|
return request({
|
||||||
|
url: `${ROLE_BASE_URL}/${roleId}/menus`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取角色表单数据
|
||||||
|
*
|
||||||
|
* @param id 角色ID
|
||||||
|
* @returns 角色表单数据
|
||||||
|
*/
|
||||||
|
getFormData(id: number) {
|
||||||
|
return request<any, RoleForm>({
|
||||||
|
url: `${ROLE_BASE_URL}/${id}/form`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 添加角色 */
|
||||||
|
add(data: RoleForm) {
|
||||||
|
return request({
|
||||||
|
url: `${ROLE_BASE_URL}`,
|
||||||
|
method: "post",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新角色
|
||||||
|
*
|
||||||
|
* @param id 角色ID
|
||||||
|
* @param data 角色表单数据
|
||||||
|
*/
|
||||||
|
update(id: number, data: RoleForm) {
|
||||||
|
return request({
|
||||||
|
url: `${ROLE_BASE_URL}/${id}`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除角色,多个以英文逗号(,)分割
|
||||||
|
*
|
||||||
|
* @param ids 角色ID字符串,多个以英文逗号(,)分割
|
||||||
|
*/
|
||||||
|
deleteByIds(ids: string) {
|
||||||
|
return request({
|
||||||
|
url: `${ROLE_BASE_URL}/${ids}`,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default RoleAPI;
|
||||||
|
|
||||||
|
/** 角色分页查询参数 */
|
||||||
|
export interface RolePageQuery extends PageQuery {
|
||||||
|
/** 搜索关键字 */
|
||||||
|
keywords?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 角色分页对象 */
|
||||||
|
export interface RolePageVO {
|
||||||
|
/** 角色编码 */
|
||||||
|
code?: string;
|
||||||
|
/** 角色ID */
|
||||||
|
id?: number;
|
||||||
|
/** 角色名称 */
|
||||||
|
name?: string;
|
||||||
|
/** 排序 */
|
||||||
|
sort?: number;
|
||||||
|
/** 角色状态 */
|
||||||
|
status?: number;
|
||||||
|
/** 创建时间 */
|
||||||
|
createTime?: Date;
|
||||||
|
/** 修改时间 */
|
||||||
|
updateTime?: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 角色表单对象 */
|
||||||
|
export interface RoleForm {
|
||||||
|
/** 角色ID */
|
||||||
|
id?: number;
|
||||||
|
/** 角色编码 */
|
||||||
|
code?: string;
|
||||||
|
/** 数据权限 */
|
||||||
|
dataScope?: number;
|
||||||
|
/** 角色名称 */
|
||||||
|
name?: string;
|
||||||
|
/** 排序 */
|
||||||
|
sort?: number;
|
||||||
|
/** 角色状态(1-正常;0-停用) */
|
||||||
|
status?: number;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,384 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
const USER_BASE_URL = "/api/v1/users";
|
||||||
|
|
||||||
|
const UserAPI = {
|
||||||
|
/**
|
||||||
|
* 获取当前登录用户信息
|
||||||
|
*
|
||||||
|
* @returns 登录用户昵称、头像信息,包括角色和权限
|
||||||
|
*/
|
||||||
|
getInfo() {
|
||||||
|
return request<any, UserInfo>({
|
||||||
|
url: `${USER_BASE_URL}/me`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取用户分页列表
|
||||||
|
*
|
||||||
|
* @param queryParams 查询参数
|
||||||
|
*/
|
||||||
|
getPage(queryParams: UserPageQuery) {
|
||||||
|
return request<any, PageResult<UserPageVO[]>>({
|
||||||
|
url: `${USER_BASE_URL}/page`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取用户表单详情
|
||||||
|
*
|
||||||
|
* @param userId 用户ID
|
||||||
|
* @returns 用户表单详情
|
||||||
|
*/
|
||||||
|
getFormData(userId: number) {
|
||||||
|
return request<any, UserForm>({
|
||||||
|
url: `${USER_BASE_URL}/${userId}/form`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加用户
|
||||||
|
*
|
||||||
|
* @param data 用户表单数据
|
||||||
|
*/
|
||||||
|
add(data: UserForm) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}`,
|
||||||
|
method: "post",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改用户
|
||||||
|
*
|
||||||
|
* @param id 用户ID
|
||||||
|
* @param data 用户表单数据
|
||||||
|
*/
|
||||||
|
update(id: number, data: UserForm) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/${id}`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改用户密码
|
||||||
|
*
|
||||||
|
* @param id 用户ID
|
||||||
|
* @param password 新密码
|
||||||
|
*/
|
||||||
|
resetPassword(id: number, password: string) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/${id}/password/reset`,
|
||||||
|
method: "put",
|
||||||
|
params: { password: password },
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除用户,多个以英文逗号(,)分割
|
||||||
|
*
|
||||||
|
* @param ids 用户ID字符串,多个以英文逗号(,)分割
|
||||||
|
*/
|
||||||
|
deleteByIds(ids: string) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/${ids}`,
|
||||||
|
method: "delete",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 下载用户导入模板 */
|
||||||
|
downloadTemplate() {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/template`,
|
||||||
|
method: "get",
|
||||||
|
responseType: "blob",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出用户
|
||||||
|
*
|
||||||
|
* @param queryParams 查询参数
|
||||||
|
*/
|
||||||
|
export(queryParams: UserPageQuery) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/export`,
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
responseType: "blob",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导入用户
|
||||||
|
*
|
||||||
|
* @param deptId 部门ID
|
||||||
|
* @param file 导入文件
|
||||||
|
*/
|
||||||
|
import(deptId: number, file: File) {
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append("file", file);
|
||||||
|
return request<any, ExcelResult>({
|
||||||
|
url: `${USER_BASE_URL}/import`,
|
||||||
|
method: "post",
|
||||||
|
params: { deptId: deptId },
|
||||||
|
data: formData,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "multipart/form-data",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 获取个人中心用户信息 */
|
||||||
|
getProfile() {
|
||||||
|
return request<any, UserProfileVO>({
|
||||||
|
url: `${USER_BASE_URL}/profile`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 修改个人中心用户信息 */
|
||||||
|
updateProfile(data: UserProfileForm) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/profile`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 修改个人中心用户密码 */
|
||||||
|
changePassword(data: PasswordChangeForm) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/password`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 发送短信验证码(绑定或更换手机号)*/
|
||||||
|
sendMobileCode(mobile: string) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/mobile/code`,
|
||||||
|
method: "post",
|
||||||
|
params: { mobile: mobile },
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 绑定或更换手机号 */
|
||||||
|
bindOrChangeMobile(data: MobileUpdateForm) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/mobile`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 发送邮箱验证码(绑定或更换邮箱)*/
|
||||||
|
sendEmailCode(email: string) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/email/code`,
|
||||||
|
method: "post",
|
||||||
|
params: { email: email },
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 绑定或更换邮箱 */
|
||||||
|
bindOrChangeEmail(data: EmailUpdateForm) {
|
||||||
|
return request({
|
||||||
|
url: `${USER_BASE_URL}/email`,
|
||||||
|
method: "put",
|
||||||
|
data: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取用户下拉列表
|
||||||
|
*/
|
||||||
|
getOptions() {
|
||||||
|
return request<any, OptionType[]>({
|
||||||
|
url: `${USER_BASE_URL}/options`,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default UserAPI;
|
||||||
|
|
||||||
|
/** 登录用户信息 */
|
||||||
|
export interface UserInfo {
|
||||||
|
/** 用户ID */
|
||||||
|
userId?: number;
|
||||||
|
|
||||||
|
/** 用户名 */
|
||||||
|
username?: string;
|
||||||
|
|
||||||
|
/** 昵称 */
|
||||||
|
nickname?: string;
|
||||||
|
|
||||||
|
/** 头像URL */
|
||||||
|
avatar?: string;
|
||||||
|
|
||||||
|
/** 角色 */
|
||||||
|
roles: string[];
|
||||||
|
|
||||||
|
/** 权限 */
|
||||||
|
perms: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户分页查询对象
|
||||||
|
*/
|
||||||
|
export interface UserPageQuery extends PageQuery {
|
||||||
|
/** 搜索关键字 */
|
||||||
|
keywords?: string;
|
||||||
|
|
||||||
|
/** 用户状态 */
|
||||||
|
status?: number;
|
||||||
|
|
||||||
|
/** 部门ID */
|
||||||
|
deptId?: number;
|
||||||
|
|
||||||
|
/** 开始时间 */
|
||||||
|
createTime?: [string, string];
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 用户分页对象 */
|
||||||
|
export interface UserPageVO {
|
||||||
|
/** 用户ID */
|
||||||
|
id: number;
|
||||||
|
/** 用户头像URL */
|
||||||
|
avatar?: string;
|
||||||
|
/** 创建时间 */
|
||||||
|
createTime?: Date;
|
||||||
|
/** 部门名称 */
|
||||||
|
deptName?: string;
|
||||||
|
/** 用户邮箱 */
|
||||||
|
email?: string;
|
||||||
|
/** 性别 */
|
||||||
|
gender?: number;
|
||||||
|
/** 手机号 */
|
||||||
|
mobile?: string;
|
||||||
|
/** 用户昵称 */
|
||||||
|
nickname?: string;
|
||||||
|
/** 角色名称,多个使用英文逗号(,)分割 */
|
||||||
|
roleNames?: string;
|
||||||
|
/** 用户状态(1:启用;0:禁用) */
|
||||||
|
status?: number;
|
||||||
|
/** 用户名 */
|
||||||
|
username?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 用户表单类型 */
|
||||||
|
export interface UserForm {
|
||||||
|
/** 用户头像 */
|
||||||
|
avatar?: string;
|
||||||
|
/** 部门ID */
|
||||||
|
deptId?: number;
|
||||||
|
/** 邮箱 */
|
||||||
|
email?: string;
|
||||||
|
/** 性别 */
|
||||||
|
gender?: number;
|
||||||
|
/** 用户ID */
|
||||||
|
id?: number;
|
||||||
|
/** 手机号 */
|
||||||
|
mobile?: string;
|
||||||
|
/** 昵称 */
|
||||||
|
nickname?: string;
|
||||||
|
/** 角色ID集合 */
|
||||||
|
roleIds?: number[];
|
||||||
|
/** 用户状态(1:正常;0:禁用) */
|
||||||
|
status?: number;
|
||||||
|
/** 用户名 */
|
||||||
|
username?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 个人中心用户信息 */
|
||||||
|
export interface UserProfileVO {
|
||||||
|
/** 用户ID */
|
||||||
|
id?: number;
|
||||||
|
|
||||||
|
/** 用户名 */
|
||||||
|
username?: string;
|
||||||
|
|
||||||
|
/** 昵称 */
|
||||||
|
nickname?: string;
|
||||||
|
|
||||||
|
/** 头像URL */
|
||||||
|
avatar?: string;
|
||||||
|
|
||||||
|
/** 性别 */
|
||||||
|
gender?: number;
|
||||||
|
|
||||||
|
/** 手机号 */
|
||||||
|
mobile?: string;
|
||||||
|
|
||||||
|
/** 邮箱 */
|
||||||
|
email?: string;
|
||||||
|
|
||||||
|
/** 部门名称 */
|
||||||
|
deptName?: string;
|
||||||
|
|
||||||
|
/** 角色名称,多个使用英文逗号(,)分割 */
|
||||||
|
roleNames?: string;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
createTime?: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 个人中心用户信息表单 */
|
||||||
|
export interface UserProfileForm {
|
||||||
|
/** 用户ID */
|
||||||
|
id?: number;
|
||||||
|
|
||||||
|
/** 用户名 */
|
||||||
|
username?: string;
|
||||||
|
|
||||||
|
/** 昵称 */
|
||||||
|
nickname?: string;
|
||||||
|
|
||||||
|
/** 头像URL */
|
||||||
|
avatar?: string;
|
||||||
|
|
||||||
|
/** 性别 */
|
||||||
|
gender?: number;
|
||||||
|
|
||||||
|
/** 手机号 */
|
||||||
|
mobile?: string;
|
||||||
|
|
||||||
|
/** 邮箱 */
|
||||||
|
email?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 修改密码表单 */
|
||||||
|
export interface PasswordChangeForm {
|
||||||
|
/** 原密码 */
|
||||||
|
oldPassword?: string;
|
||||||
|
/** 新密码 */
|
||||||
|
newPassword?: string;
|
||||||
|
/** 确认新密码 */
|
||||||
|
confirmPassword?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 修改手机表单 */
|
||||||
|
export interface MobileUpdateForm {
|
||||||
|
/** 手机号 */
|
||||||
|
mobile?: string;
|
||||||
|
/** 验证码 */
|
||||||
|
code?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 修改邮箱表单 */
|
||||||
|
export interface EmailUpdateForm {
|
||||||
|
/** 邮箱 */
|
||||||
|
email?: string;
|
||||||
|
/** 验证码 */
|
||||||
|
code?: string;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M499.2 671.232v-261.12h102.4c16.384 0 28.672 1.024 37.888 2.56 13.312 2.048 24.576 6.656 34.816 13.312 9.728 6.656 17.92 16.384 23.552 28.16 6.144 12.288 8.704 25.6 8.192 38.4 0 23.552-7.68 44.032-23.04 59.904-15.36 16.896-40.96 25.088-78.848 25.088h-43.52v93.184l-61.44.512zm281.6 0h-61.952v-261.12H780.8v261.12zm-287.744 0h-69.12L396.8 601.6h-73.728l-25.088 69.632h-66.56l100.352-261.12h54.272l107.008 261.12zM343.552 545.28h32.256l-15.872-42.496c0-.512-.512-1.024-.512-1.536l-15.872 44.032zm217.6-26.112h43.52c20.48 0 28.16-4.608 31.232-7.168 4.608-4.096 7.168-10.752 7.168-18.944 0-6.656-1.536-11.776-4.096-15.36-2.56-3.584-6.144-6.144-10.752-7.68-1.536-.512-6.656-1.536-24.064-1.536h-43.008v50.688z"/><path d="M747.52 842.752H512c-8.704 0-16.384-3.584-22.016-9.728-6.144-6.144-9.216-14.336-8.704-22.528.512-16.896 14.336-30.72 31.232-31.232H747.52c115.712 0 209.408-94.208 209.408-209.408 0-104.96-78.848-194.56-183.296-207.872l-22.528-3.072-4.608-22.016C724.992 231.936 631.808 156.16 524.288 156.16c-124.928 0-226.304 101.376-226.304 226.304v8.704l1.536 36.352-36.352-4.096c-6.144-1.024-12.288-1.024-18.432-1.024-98.304 0-178.176 79.872-178.176 178.176 0 98.304 79.872 178.176 178.176 178.176h63.488c8.704 0 16.384 3.584 22.016 9.728 6.144 6.144 9.216 14.336 8.704 22.528-.512 16.896-14.336 30.72-31.232 31.232h-64c-64 0-123.904-25.088-169.472-70.144C28.16 726.528 3.072 665.6 3.072 601.088c0-129.536 103.936-236.544 232.448-241.152 12.288-157.184 149.504-276.48 307.2-266.24 59.904 3.584 118.784 27.136 165.888 65.536 45.568 37.376 77.824 87.04 94.208 143.872 125.952 26.112 217.088 137.728 217.088 266.752.512 151.04-121.856 272.896-272.384 272.896z"/><path d="M572.416 930.816c-8.192 0-15.872-3.072-21.504-8.704L431.616 812.544l113.152-117.76c6.144-6.144 13.824-9.216 22.528-9.216 8.704 0 16.384 3.072 22.528 9.216 11.776 11.776 12.288 31.232 1.024 44.032l-68.608 70.656 71.68 66.048c6.144 5.632 9.728 13.312 10.24 22.016.512 8.704-2.56 16.384-8.192 23.04-6.656 6.656-14.848 10.24-23.552 10.24z"/></svg>
|
||||||
|
After Width: | Height: | Size: 2.1 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M2.88 18.054a35.9 35.9 0 0 1 8.531-16.32.8.8 0 0 1 1.178 0q.25.27.413.455a35.9 35.9 0 0 1 8.118 15.865c-2.141.451-4.34.747-6.584.874l-2.089 4.178a.5.5 0 0 1-.894 0l-2.089-4.178a44 44 0 0 1-6.584-.874m6.698-1.123 1.157.066L12 19.527l1.265-2.53 1.157-.066a42 42 0 0 0 4.227-.454A33.9 33.9 0 0 0 12 4.09a33.9 33.9 0 0 0-6.649 12.387q2.093.334 4.227.454M12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/></svg>
|
||||||
|
After Width: | Height: | Size: 533 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1733556119022" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="60026" width="128" height="128"><path d="M0 0m184.32 0l655.36 0q184.32 0 184.32 184.32l0 655.36q0 184.32-184.32 184.32l-655.36 0q-184.32 0-184.32-184.32l0-655.36q0-184.32 184.32-184.32Z" fill="#EC5D85" p-id="60027"></path><path d="M512 241.96096h52.224l65.06496-96.31744c49.63328-50.31936 89.64096 0.43008 63.85664 45.71136l-34.31424 51.5072c257.64864 5.02784 257.64864 43.008 257.64864 325.03808 0 325.94944 0 336.46592-404.48 336.46592S107.52 893.8496 107.52 567.90016c0-277.69856 0-318.80192 253.14304-324.95616l-39.43424-58.368c-31.26272-54.90688 37.33504-90.40896 64.68608-42.37312l60.416 99.80928c18.18624-0.0512 41.18528-0.0512 65.66912-0.0512z" fill="#EF85A7" p-id="60028"></path><path d="M512 338.5856c332.8 0 332.8 0 332.8 240.64s0 248.39168-332.8 248.39168-332.8-7.75168-332.8-248.39168 0-240.64 332.8-240.64z" fill="#EC5D85" p-id="60029"></path><path d="M281.6 558.08a30.72 30.72 0 0 1-27.47392-16.97792 30.72 30.72 0 0 1 13.73184-41.216l122.88-61.44a30.72 30.72 0 0 1 41.216 13.74208 30.72 30.72 0 0 1-13.74208 41.216l-122.88 61.44a30.59712 30.59712 0 0 1-13.73184 3.23584zM752.64 558.08a30.60736 30.60736 0 0 1-12.8512-2.83648l-133.12-61.44a30.72 30.72 0 0 1-15.04256-40.7552 30.72 30.72 0 0 1 40.76544-15.02208l133.12 61.44A30.72 30.72 0 0 1 752.64 558.08zM454.656 666.88a15.36 15.36 0 0 1-12.288-6.1952 15.36 15.36 0 0 1 3.072-21.49376l68.5056-50.91328 50.35008 52.62336a15.36 15.36 0 0 1-22.20032 21.23776l-31.5904-33.024-46.71488 34.72384a15.28832 15.28832 0 0 1-9.13408 3.04128z" fill="#EF85A7" p-id="60030"></path><path d="M65.536 369.31584c15.03232 101.90848 32.84992 147.17952 44.544 355.328 14.63296 2.18112 177.70496 10.04544 204.05248-74.62912a16.14848 16.14848 0 0 0 1.64864-10.87488c-30.60736-80.3328-169.216-60.416-169.216-60.416s-10.36288-146.50368-11.49952-238.83776zM362.25024 383.03744l34.816 303.17568h34.64192L405.23776 381.1328zM309.52448 536.28928h45.48608l16.09728 158.6176-31.82592 1.85344zM446.86336 542.98624h45.80352V705.3312h-33.87392zM296.6016 457.97376h21.39136l5.2736 58.99264-18.91328 2.26304zM326.99392 457.97376h21.39136l2.53952 55.808-17.408 1.61792zM470.62016 459.88864h19.456v62.27968h-19.456zM440.23808 459.88864h22.20032v62.27968h-16.62976z" fill="#FFFFFF" p-id="60031"></path><path d="M243.56864 645.51936a275.456 275.456 0 0 1-28.4672 23.74656 242.688 242.688 0 0 1-29.53216 17.52064 2.70336 2.70336 0 0 1-4.4032-1.95584 258.60096 258.60096 0 0 1-5.12-29.57312c-1.41312-12.1856-1.95584-25.68192-2.16064-36.36224 0-0.3072 0-2.5088 3.01056-1.90464a245.92384 245.92384 0 0 1 34.22208 9.5744 257.024 257.024 0 0 1 32.3584 15.17568c0.52224 0.256 2.51904 1.4848 0.09216 3.77856z" fill="#EB5480" p-id="60032"></path><path d="M513.29024 369.31584c15.03232 101.90848 32.84992 147.17952 44.544 355.328 14.63296 2.18112 177.70496 10.04544 204.05248-74.62912a16.14848 16.14848 0 0 0 1.64864-10.87488c-30.60736-80.3328-169.216-60.416-169.216-60.416s-10.36288-146.50368-11.49952-238.83776zM810.00448 383.03744l34.816 303.17568h34.64192L852.992 381.1328zM757.27872 536.28928h45.48608l16.09728 158.6176-31.82592 1.85344zM894.6176 542.98624h45.80352V705.3312H906.5472zM744.35584 457.97376h21.39136l5.2736 58.99264-18.91328 2.26304zM774.74816 457.97376h21.39136l2.53952 55.808-17.408 1.61792zM918.3744 459.88864h19.456v62.27968h-19.456zM887.99232 459.88864h22.20032v62.27968h-16.62976z" fill="#FFFFFF" p-id="60033"></path><path d="M691.32288 645.51936a275.456 275.456 0 0 1-28.4672 23.74656 242.688 242.688 0 0 1-29.53216 17.52064 2.70336 2.70336 0 0 1-4.4032-1.95584 258.60096 258.60096 0 0 1-5.12-29.57312c-1.41312-12.1856-1.95584-25.68192-2.16064-36.36224 0-0.3072 0-2.5088 3.01056-1.90464a245.92384 245.92384 0 0 1 34.22208 9.5744 257.024 257.024 0 0 1 32.3584 15.17568c0.52224 0.256 2.51904 1.4848 0.09216 3.77856z" fill="#EB5480" p-id="60034"></path></svg>
|
||||||
|
After Width: | Height: | Size: 3.8 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1733620744216" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13366" width="128" height="128"><path d="M512.956 741.549c24.671-8.545 73.221-25.811 120.072-46.486 12.131-5.394 24.087-12.036 47.412-25.31a109.078 109.078 0 0 0 37.94-29.11 83.344 83.344 0 0 0 12.227-23.053V219.281c-0.096-24.831-20.211-44.936-45.045-45.043-9.34 1.573-22.76 4.209-38.757 8.543 24.439 62.406 18.146 132.708-17.021 189.792-34.498 55.993-92.88 92.712-158.098 99.992-1.275 0.137-2.499 0.463-3.776 0.585v223.354c0.11 24.835 20.213 44.934 45.046 45.045zM378.672 741.549c24.833-0.108 44.939-20.21 45.046-45.047V472.779a213.556 213.556 0 0 1-158.787-101.461c-34.357-56.592-40.495-125.929-16.655-187.697a423.782 423.782 0 0 0-42.873-9.482c-24.833 0.098-44.938 20.214-45.047 45.047v398.308a82.748 82.748 0 0 0 12.242 23.039c10.5 12.524 23.704 22.495 38.591 29.219 23.801 13.273 35.756 20.011 47.424 25.311 46.84 20.673 95.405 37.942 120.059 46.486z" fill="#FFBA00" opacity=".4" p-id="13367"></path><path d="M744.827 708.729a57 57 0 0 0 32.919-11.275 53.974 53.974 0 0 0 17.343-27.226V271.907c-0.066-23.054-17.548-42.33-40.493-44.667 0.528 2.635 0.815 5.297 0.855 7.974v398.309a82.915 82.915 0 0 1-12.227 23.037 108.602 108.602 0 0 1-37.941 29.126c-22.944 12.799-34.805 19.428-46.568 24.752 12.528 0.003 49.706 0.761 86.112-1.709zM141.202 227.432c-22.861 2.335-40.317 21.49-40.495 44.475V670.23a53.882 53.882 0 0 0 17.362 27.4 56.9 56.9 0 0 0 32.902 11.291c36.421 2.471 73.585 1.984 86.112 1.711-11.764-5.324-23.61-11.958-46.565-24.751a108.597 108.597 0 0 1-37.928-29.128 82.787 82.787 0 0 1-12.242-23.036V235.404c0.041-2.676 0.327-5.338 0.854-7.972z" fill="#FFBA00" opacity=".4" p-id="13368"></path><path d="M629.782 372.569c35.172-57.083 41.463-127.383 17.023-189.792-0.007-0.026-0.016-0.066-0.029-0.096-51.497 13.939-127.844 45.508-165.674 117.207a189.132 189.132 0 0 0-13.288 31.87v141.388c1.307-0.123 2.569-0.447 3.872-0.585 65.218-7.28 123.598-44 158.096-99.992zM248.658 183.62c-23.842 61.769-17.701 131.105 16.639 187.697 34.357 56.608 93.013 94.084 158.8 101.461h0.099v-141.02a190.385 190.385 0 0 0-13.273-31.87c-36.989-70.079-110.861-101.855-162.265-116.268z" fill="#FEC744" opacity=".4" p-id="13369"></path><path d="M593.104 570.52v223.357c0.105 24.83 20.215 44.938 45.05 45.046 24.668-8.544 73.218-25.811 120.071-46.488 12.127-5.392 24.086-12.036 47.409-25.306a109.116 109.116 0 0 0 37.941-29.114 83.408 83.408 0 0 0 12.225-23.051v-398.31c-0.092-24.833-20.21-44.938-45.045-45.047-9.481 1.602-23.134 4.265-39.446 8.723 24.355 62.297 18.091 132.42-16.915 189.423a213.388 213.388 0 0 1-161.29 100.767zM330.601 271.513c-24.833 0.094-44.939 20.214-45.048 45.045v398.31a82.678 82.678 0 0 0 12.24 23.039c10.502 12.524 23.708 22.493 38.595 29.22 23.799 13.271 35.753 20.013 47.422 25.307 46.841 20.677 95.404 37.944 120.062 46.488 24.831-0.109 44.938-20.216 45.045-45.046v-223.72c-65.791-7.377-124.448-44.86-158.79-101.463-34.354-56.591-40.496-125.93-16.655-187.696a423.057 423.057 0 0 0-42.871-9.484z" fill="#FFBA00" p-id="13370"></path><path d="M868.422 753.937a108.626 108.626 0 0 1-37.943 29.126c-22.944 12.796-34.805 19.428-46.567 24.75 12.526 0 49.702 0.765 86.112-1.71a56.988 56.988 0 0 0 32.916-11.274 54.009 54.009 0 0 0 17.346-27.228v-398.32c-0.069-23.053-17.552-42.328-40.496-44.667 0.529 2.635 0.815 5.299 0.855 7.974v398.31a83.035 83.035 0 0 1-12.223 23.039zM266.399 324.804c-22.863 2.338-40.319 21.491-40.496 44.477v398.323a53.886 53.886 0 0 0 17.361 27.4 56.879 56.879 0 0 0 32.901 11.291c36.419 2.471 73.587 1.983 86.111 1.708-11.764-5.323-23.608-11.953-46.566-24.75a108.578 108.578 0 0 1-37.928-29.124 82.698 82.698 0 0 1-12.238-23.039V332.779c0.039-2.675 0.326-5.338 0.855-7.975z" fill="#FFBA00" p-id="13371"></path><path d="M771.97 280.058c-51.497 13.939-127.844 45.508-165.675 117.207a188.947 188.947 0 0 0-13.289 31.871v141.386c66.797-6.206 126.786-43.472 161.969-100.58 35.184-57.11 41.473-127.45 16.995-189.884z" fill="#FFBA00" p-id="13372"></path><path d="M771.97 280.058c-51.497 13.939-127.844 45.508-165.675 117.207a188.947 188.947 0 0 0-13.289 31.871v141.386c66.797-6.206 126.786-43.472 161.969-100.58 35.184-57.11 41.473-127.45 16.995-189.884z" fill="#FEC744" p-id="13373"></path><path d="M549.294 570.155h0.095V429.132a189.948 189.948 0 0 0-13.271-31.871c-36.992-70.081-110.863-101.856-162.266-116.268-23.839 61.769-17.701 131.105 16.642 187.696 34.352 56.608 93.012 94.089 158.8 101.466z" fill="#FFBA00" p-id="13374"></path><path d="M549.294 570.155h0.095V429.132a189.948 189.948 0 0 0-13.271-31.871c-36.992-70.081-110.863-101.856-162.266-116.268-23.839 61.769-17.701 131.105 16.642 187.696 34.352 56.608 93.012 94.089 158.8 101.466z" fill="#FEC744" p-id="13375"></path></svg>
|
||||||
|
After Width: | Height: | Size: 4.6 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M917.6 267.2c-36.1-2.5-72.4-9.3-103.6-19.3-10.1-3-20.2-6.4-30.3-10-21.4-6.3-50.5-18.8-83.6-36.6-.4-.2-.7-.4-1.1-.6-7.8-4.2-15.7-8.7-23.8-13.4-10.9-6.3-21.7-12.9-32.5-19.9-.4-.3-.8-.5-1.2-.8-7.7-5-15.5-10.2-23.1-15.5-5-3.4-10-7.1-15-10.7-3.8-2.8-7.5-5.3-11.3-8.2-27.4-20.5-54.5-43.5-79.9-68.3-25.4 24.8-52.5 47.8-79.9 68.3-3.7 2.8-7.5 5.4-11.3 8.2-5 3.6-10 7.3-15 10.7-7.7 5.4-15.4 10.5-23.1 15.5-.4.3-.8.5-1.2.8-10.8 6.9-21.6 13.6-32.5 19.9-8.1 4.7-16 9.2-23.8 13.4-.3.2-.7.4-1 .6-33 17.8-62.2 30.3-83.6 36.6-10.1 3.6-20.2 7-30.3 10-31.1 10-67.4 16.8-103.6 19.3h.1c1.1 16.2 2.1 37.7 3.4 60.9h.7c6.1 86.8 23.5 210.2 49.7 282.8 1.2 3.2 2.2 6.5 3.3 9.6.6 1.5 1.2 2.8 1.8 4.3 62.8 162.1 171.9 280.1 303 323.4v.4c17.3 5.7 31.9 9.3 43.5 11.5 11.5-2.2 26.1-5.8 43.5-11.5v-.4C687 905 796.1 787 858.9 624.8c.6-1.5 1.2-2.8 1.8-4.3 1.2-3.1 2.2-6.4 3.3-9.6 26.2-72.5 43.6-196 49.7-282.8h.7c1.1-23.3 2.2-44.7 3.2-60.9zm-47.4 41.9-.5 9.5c-.5 2.2-.9 4.4-1 6.6C863 406 847 525.7 821.3 596.7c-.7 1.9-1.4 3.9-2 5.8-.4 1.2-.8 2.5-1.4 4.1-.5 1.2-1 2.5-1.4 3.4C758.1 760.8 657.7 869.3 541 907.8c-1.9.6-3.7 1.4-5.5 2.2-7.9 2.5-15.7 4.6-23.2 6.3-7.5-1.7-15.2-3.8-23.1-6.3-1.8-.9-3.6-1.6-5.5-2.2-116.7-38.5-217.1-147-275.4-297.5-.5-1.2-.9-2.4-1.7-4.1-.4-1.2-.8-2.4-1.3-3.6-.7-2-1.3-3.9-1.9-5.6-25.8-71.2-41.7-191-47.4-271.7-.2-2.3-.5-4.5-1-6.6l-.5-9.3c-.1-1.5-.2-3-.2-4.5 24.6-3.8 48.4-9.3 70-16.2 10.1-3 20.4-6.4 31.4-10.4 25.2-7.6 56.5-21.2 90.5-39.6.6-.3 1.2-.6 1.7-.9 8.2-4.4 16.7-9.2 24.8-14 10.7-6.1 22-13 34.5-21.1.4-.2 1-.6 1.3-.8 8.2-5.3 16.4-10.8 24.1-16.2 4.5-3.1 9.1-6.4 13.7-9.7l2.4-1.8 4-2.9c2.6-1.9 5.2-3.7 7.5-5.5 17.9-13.4 35.3-27.5 52-42.1 16.7 14.7 34 28.7 51.8 42 2.6 1.9 5.1 3.8 7.7 5.6l4.3 3.1 1.5 1.1c4.8 3.5 9.6 6.9 14 9.9 8.1 5.7 16.3 11.2 23.7 16l2.1 1.3c12.4 8 23.7 14.9 34.1 20.8 8.6 5 17 9.8 25 14.1.4.2 1 .5 1.5.8 34.2 18.4 65.6 32.1 90.9 39.7 11 3.9 21.3 7.3 30.6 10.1 22.1 7.1 46.1 12.6 70.8 16.5.1 1.5.1 3 0 4.4z"/><path d="M710.6 411.2 476.1 651.6l-120-123c-8.3-8.5-21.8-8.5-30.1 0s-8.3 22.3 0 30.9L461.1 698c4.2 4.3 9.6 6.4 15.1 6.4 5.4 0 10.9-2.1 15-6.4l249.5-255.7c8.3-8.5 8.3-22.3 0-30.9-8.3-8.7-21.8-8.7-30.1-.2z"/></svg>
|
||||||
|
After Width: | Height: | Size: 2.2 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M832.128 768c33.195 0 60.501 25.173 63.573 57.813L896 832a64 64 0 0 1-63.872 64H533.205a63.787 63.787 0 0 1-63.872-64 64 64 0 0 1 63.872-64h298.923zM213.333 874.667c-23.722 0-42.666-19.072-42.666-42.624V362.667A42.667 42.667 0 0 1 213.333 320l4.992.299C239.66 322.73 256 340.779 256 362.624l-.043 128.043h128.299c21.248 0 39.595 16.469 42.112 37.674l.299 4.992-.299 4.992A42.368 42.368 0 0 1 384.256 576H256l.043 213.333h128.256c22.869 0 42.41 19.115 42.41 42.667l-.298 4.992a42.368 42.368 0 0 1-42.112 37.675zm618.795-405.334c33.195 0 60.501 25.174 63.573 57.814l.299 6.186a64 64 0 0 1-63.872 64H533.205a63.787 63.787 0 0 1-63.872-64 64 64 0 0 1 63.872-64h298.923zM576.171 128c33.194 0 60.458 25.173 63.573 57.813L640 192c0 35.328-29.013 64-63.83 64H191.83A63.744 63.744 0 0 1 128 192c0-35.328 29.013-64 63.83-64h384.34z"/></svg>
|
||||||
|
After Width: | Height: | Size: 941 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M962.184 55.874H61.818C27.732 55.874 0 83.606 0 117.692v621.64c0 34.086 27.732 61.818 61.818 61.818h308.52v44.98c0 41.234-33.547 74.782-74.781 74.782h-67.995c-13.036 0-23.606 10.568-23.606 23.606 0 13.038 10.57 23.606 23.606 23.606h568.874c13.036 0 23.606-10.568 23.606-23.606 0-13.038-10.57-23.606-23.606-23.606h-67.997c-41.234 0-74.782-33.548-74.782-74.782v-44.978h308.52c34.087 0 61.821-27.732 61.821-61.819v-621.64c.004-34.087-27.728-61.819-61.814-61.819zM391.84 920.916c16.092-20.672 25.714-46.616 25.714-74.782v-44.98h188.894v44.98c0 28.166 9.622 54.112 25.714 74.782H391.841zm584.95-181.583c0 8.054-6.552 14.608-14.608 14.608H61.818c-8.054 0-14.608-6.552-14.608-14.608V615.267h929.58v124.066zm0-171.28H47.212v-450.36c0-8.055 6.552-14.609 14.608-14.609h900.362c8.054 0 14.61 6.552 14.61 14.608v450.361z"/><path d="M486.531 684.611a25.476 25.476 0 1 0 50.952 0 25.476 25.476 0 1 0-50.952 0zm65.946-466.103c-9.22-9.218-24.162-9.218-33.386 0L352.263 385.337c-9.218 9.218-9.218 24.166 0 33.386a23.534 23.534 0 0 0 16.694 6.914 23.526 23.526 0 0 0 16.692-6.914l166.828-166.829c9.218-9.218 9.218-24.166 0-33.386zm98.88 96.679c-9.216-9.218-24.158-9.218-33.384-.002l-66.46 66.456c-9.218 9.22-9.218 24.168 0 33.386a23.53 23.53 0 0 0 16.692 6.914c6.04 0 12.082-2.304 16.692-6.914l66.46-66.456c9.218-9.218 9.218-24.166 0-33.384z"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.4 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 36 36"><path d="m19.41 18 8.29-8.29a1 1 0 0 0-1.41-1.41L18 16.59l-8.29-8.3a1 1 0 0 0-1.42 1.42l8.3 8.29-8.3 8.29A1 1 0 1 0 9.7 27.7l8.3-8.29 8.29 8.29a1 1 0 0 0 1.41-1.41z" fill="currentColor"/></svg>
|
||||||
|
After Width: | Height: | Size: 297 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 36 36"><path d="M26 17H10a1 1 0 0 0 0 2h16a1 1 0 0 0 0-2z" fill="currentColor"/></svg>
|
||||||
|
After Width: | Height: | Size: 183 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="m7 12 7 7m-7-7 7-7" stroke-linejoin="round"/><path d="M21 12H7.5"/><path d="M3 3v18" stroke-linejoin="round"/></g></svg>
|
||||||
|
After Width: | Height: | Size: 310 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20"><path d="M3 5h14V3H3v2zm12 8V7H5v6h10zM3 17h14v-2H3v2z" fill="currentColor"/></svg>
|
||||||
|
After Width: | Height: | Size: 187 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="m17 12-7 7m7-7-7-7" stroke-linejoin="round"/><path d="M3 12h13.5"/><path d="M21 3v18" stroke-linejoin="round"/></g></svg>
|
||||||
|
After Width: | Height: | Size: 311 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1733555747788" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10924" width="128" height="128"><path d="M851.404 172.596c-187.462-187.461-491.346-187.461-678.808 0-187.461 187.462-187.461 491.346 0 678.808 187.462 187.461 491.346 187.461 678.808 0 187.461-187.462 187.461-491.346 0-678.808zM387.33 728.087a47.084 47.084 0 1 1-66.633-66.502 47.084 47.084 0 0 1 66.633 66.502z m205.527 1.397a38.75 38.75 0 0 1-76.625-11.52h-0.044a6.545 6.545 0 0 0-0.044 0.305v-0.349c0.306-2.618 2.051-20.727-2.967-44.99a174.24 174.24 0 0 0-48.567-89.28 172.102 172.102 0 0 0-88.8-48.305 156.698 156.698 0 0 0-42.458-2.923 38.662 38.662 0 0 1-35.39-65.324 38.618 38.618 0 0 1 21.12-10.822v-0.218c4.452-0.742 111.142-16.45 200.335 72.742 89.018 89.018 74.182 196.145 73.44 200.727z m175.2 7.592a38.75 38.75 0 0 1-65.673 21.382 39.49 39.49 0 0 1-11.65-33.73c0.087-0.35 5.105-37.484-5.062-88.975-13.31-67.375-45.295-126.895-94.953-176.902-50.007-49.702-109.527-81.644-176.945-94.953-51.491-10.167-88.582-5.193-89.019-5.149h0.219-0.044a39.927 39.927 0 0 1-44.684-32.902 38.836 38.836 0 0 1 32.204-44.378c1.92-0.305 47.869-7.33 111.273 4.364a411.753 411.753 0 0 1 106.254 34.952 425.76 425.76 0 0 1 114.633 82.255l0.916 0.96 0.96 0.873a425.89 425.89 0 0 1 82.255 114.72c16.407 33.6 28.145 69.294 34.996 106.21 11.651 63.404 4.67 109.353 4.32 111.273z" fill="#1296DB" p-id="10925"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.4 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1720831003829" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5159" width="200" height="200"><path d="M438.4 849.1l222.7-646.7c0.2-0.5 0.3-1.1 0.4-1.6L438.4 849.1z" opacity=".224" p-id="5160"></path><path d="M661.2 168.7h-67.5c-3.4 0-6.5 2.2-7.6 5.4L354.7 846c-0.3 0.8-0.4 1.7-0.4 2.6 0 4.4 3.6 8 8 8h67.8c3.4 0 6.5-2.2 7.6-5.4l0.7-2.1 223.1-648.3 7.4-21.4c0.3-0.8 0.4-1.7 0.4-2.6-0.1-4.5-3.6-8.1-8.1-8.1zM954.6 502.1c-0.8-1-1.7-1.9-2.7-2.7l-219-171.3c-3.5-2.7-8.5-2.1-11.2 1.4-1.1 1.4-1.7 3.1-1.7 4.9v81.3c0 2.5 1.1 4.8 3.1 6.3l115 90-115 90c-1.9 1.5-3.1 3.8-3.1 6.3v81.3c0 4.4 3.6 8 8 8 1.8 0 3.5-0.6 4.9-1.7l219-171.3c6.9-5.4 8.2-15.5 2.7-22.5zM291.1 328.1l-219 171.3c-1 0.8-1.9 1.7-2.7 2.7-5.4 7-4.2 17 2.7 22.5l219 171.3c1.4 1.1 3.1 1.7 4.9 1.7 4.4 0 8-3.6 8-8v-81.3c0-2.5-1.1-4.8-3.1-6.3l-115-90 115-90c1.9-1.5 3.1-3.8 3.1-6.3v-81.3c0-1.8-0.6-3.5-1.7-4.9-2.7-3.5-7.7-4.1-11.2-1.4z" p-id="5161"></path></svg>
|
||||||
|
After Width: | Height: | Size: 967 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4h18v2H3V4zm0 15h18v2H3v-2zm8-5h10v2H11v-2zm0-5h10v2H11V9zm-8 3.5L7 9v7l-4-3.5z"/></svg>
|
||||||
|
After Width: | Height: | Size: 180 B |
|
|
@ -0,0 +1,6 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="30px" height="30px" viewBox="0 0 30 30" version="1.1">
|
||||||
|
<title>ic/csdn</title>
|
||||||
|
<g id="ic/csdn" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||||
|
<path d="M24.7385612,21.818791 C24.4728206,21.5662432 24.1090763,21.4267765 23.7575825,21.4343152 C23.3966653,21.4399693 23.0696724,21.5907441 22.8378562,21.8555424 C20.7581061,24.2349574 17.1347988,24.4922169 15.6732254,24.4922169 C12.9611634,24.4922169 10.886125,23.8043069 9.50559315,22.4501605 C8.19385225,21.1638629 7.50594216,19.2678696 7.46070972,16.8168365 C7.35516735,11.1345107 10.5732673,5.25806226 16.139685,5.25806226 C18.7980335,5.25806226 20.8627061,7.14368979 21.6260036,7.95410443 C21.8917442,8.23586486 22.2583155,8.39794779 22.6352525,8.39983247 C23.0131319,8.4092559 23.362741,8.24151892 23.599269,7.96164317 L23.8160078,7.70532598 C24.2607935,7.18232584 24.4605701,6.50572386 24.380471,5.80179394 C24.2984872,5.09126763 23.9422817,4.44293592 23.3778185,3.97459165 C22.0133064,2.84472288 19.6951436,1.5 16.3969445,1.5 C12.9715292,1.5 9.58757695,3.07465447 7.1129853,5.82441016 C4.51306208,8.71269021 3.1240491,12.6441435 3.20320588,16.895051 C3.26634283,20.3063311 4.38490349,23.1729373 6.44015269,25.1886081 C8.64806138,27.3550537 11.8821812,28.5 15.7947876,28.5 C20.3849384,28.5 23.2289283,27.1401996 24.8082945,26.0009074 C25.4198749,25.5608334 25.7845615,24.8644423 25.8128317,24.093606 C25.8392173,23.3190004 25.5225902,22.5604146 24.9430495,22.0119712 L24.7385612,21.818791 Z" id="Fill-1" fill="#FC5533"/>
|
||||||
|
</g>
|
||||||
|
<script xmlns=""/></svg>
|
||||||
|
After Width: | Height: | Size: 1.6 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1738980362334" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4265" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><path d="M543.0784 467.8144l380.3136-0.8704c-17.4592-200.3968-179.0464-360.0384-380.3136-374.528v375.3984zM585.1136 535.8592l241.92 238.3872c55.6032-65.3824 91.0848-148.2752 97.024-239.1552l-338.944 0.768z" fill="#6893DF" p-id="4266"></path><path d="M485.9904 537.2416a32.16384 32.16384 0 0 1-9.5744-22.8352V93.6448c-216.9856 17.5104-388.2496 199.5776-388.2496 420.9664 0 232.96 189.5424 422.5024 422.5024 422.5024 105.5744 0 202.1376-39.0144 276.2752-103.2704l-300.9536-296.6016z" fill="#6893DF" p-id="4267"></path></svg>
|
||||||
|
After Width: | Height: | Size: 846 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M449.6 116.2H303.8c-14.2 0-25.7-11.5-25.7-25.7s11.5-25.7 25.7-25.7h145.8c14.2 0 25.7 11.5 25.7 25.7s-11.5 25.7-25.7 25.7zm0 0"/><path d="M160.1 859.3c-14.2 0-25.7-11.5-25.7-25.7V167.4c0-56.6 46-102.6 102.6-102.6h66.8c14.2 0 25.7 11.5 25.7 25.7s-11.5 25.7-25.7 25.7H237c-28.2 0-51.1 22.9-51.1 51.1v666.2c-.1 14.3-11.6 25.8-25.8 25.8zm373.5-512.6c-6.3 0-12.4-1.3-17.6-3.5-13.5-5.8-21.9-17.9-21.9-31.6v-221c0-14.2 11.5-25.7 25.7-25.7s25.7 11.5 25.7 25.7v189l27.7-26.6c14.1-13.5 36.1-13.5 50.1 0l22.1 21.3V90.5c0-14.2 11.5-25.7 25.7-25.7s25.7 11.5 25.7 25.7v219.6c0 14.5-8.6 27.5-22 33.2-13.3 5.7-28.7 2.9-39.2-7.2l-37.5-36-37.5 36c-7.6 7.6-17.5 10.6-27 10.6zm0 0"/><path d="M846.1 958.9H236.9c-56.6 0-102.6-46-102.6-102.6v-22.8c0-14.2 11.5-25.7 25.7-25.7s25.7 11.5 25.7 25.7v22.8c0 28.2 22.9 51.1 51.1 51.1H846c14.2 0 25.7 11.5 25.7 25.7.1 14.3-11.4 25.8-25.6 25.8zm0 0"/><path d="M160.1 876h-.9c-14.2-.5-25.3-12.4-24.8-26.6 1-28.2 6.3-48.5 16.7-63.6 13.8-20.1 35.4-30.3 64.3-30.3h615c3.2-2.7 6.4-6.1 8.6-8.6V133.1c-1.8-5.1-11.7-15-16.8-16.8H449.6c-14.2 0-25.7-11.5-25.7-25.7s11.5-25.7 25.7-25.7h373.6c19.8 0 36.7 13.9 45 22.2 8.3 8.3 22.2 25.2 22.2 45v621.6c0 10.8-6.2 19.6-12.3 26.7-4.6 5.4-10.3 11-15.6 15.4-1 .9-2.1 1.7-3.2 2.5-5.4 4.1-12.9 8.8-22.3 8.8H215.3c-15 0-28 0-29.5 44.2-.5 13.8-11.9 24.7-25.7 24.7zm0 0"/><path d="M284.4 806.4c-14.2 0-25.7-11.5-25.7-25.7V90.5c0-14.2 11.5-25.7 25.7-25.7s25.7 11.5 25.7 25.7v690.1c0 14.3-11.5 25.8-25.7 25.8zM844.9 959h-1.6c-6.6-.3-30-2.3-52.2-16.9-19.5-12.7-42.6-38-42.6-86.3 0-62.3 35.7-101 93.1-101 14.2 0 25.7 11.5 25.7 25.7s-11.5 25.7-25.7 25.7c-12.5 0-41.7 0-41.7 49.6 0 21 6.6 35.3 20.1 43.8 10.6 6.6 22.1 7.8 25 8 1.4-.1 2.9 0 4.4.2 13.7 1.7 23.6 14 22.5 27.7-.9 9.5-8.8 23.5-27 23.5zm-1.8-51.3c-1.1.1-2.3.3-3.4.6 1.1-.3 2.2-.5 3.4-.6zm0 0"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.9 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M832.1 185.1H609.4l-17.1-62c-9.6-34.6-40.5-58.8-75.3-58.8H196c-43.2 0-78.3 36.4-78.3 81.1V897c0 35.3 28.7 64 64 64H832c35.3 0 64-28.7 64-64V249c.1-35.2-28.6-63.9-63.9-63.9zm-644.4-39.7c0-6.6 4.4-11.1 8.3-11.1h321c3.4 0 6.6 3.1 7.8 7.4l12 43.4H187.7v-39.7zm638.4 745.8H187.7V255.1h638.4v636.1z"/><path d="M311.1 415.1a35 35 0 1 0 70 0 35 35 0 1 0-70 0zm151.2-35h257.8v70H462.3zM311.1 582.3a35 35 0 1 0 70 0 35 35 0 1 0-70 0zm151.2-35h257.8v70H462.3zM311.1 749.5a35 35 0 1 0 70 0 35 35 0 1 0-70 0zm151.2-35h257.8v70H462.3z"/></svg>
|
||||||
|
After Width: | Height: | Size: 640 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg width="15" height="15" aria-label="向下键" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M7.5 3.5v8M10.5 8.5l-3 3-3-3"></path></g></svg>
|
||||||
|
After Width: | Height: | Size: 222 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7c3.2 4.1 9.4 4.1 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"/><path d="M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4 14.9-19.2 32.6-35.9 52.4-49.9 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7-23.4 23.4-54.5 36.3-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"/></svg>
|
||||||
|
After Width: | Height: | Size: 962 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg width="15" height="15" aria-label="回车键" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"></path></g></svg>
|
||||||
|
After Width: | Height: | Size: 241 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg width="15" height="15" aria-label="Esc 键" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"></path></g></svg>
|
||||||
|
After Width: | Height: | Size: 691 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1721541550402" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1592" width="200" height="200"><path d="M979.096493 980.950486H44.904061C19.829898 980.950486 0.000277 960.442811 0.000277 935.839135v-740.047567c0-25.184865 20.410811-45.111351 44.903784-45.111352h934.192432c25.074162 0 44.903784 20.507676 44.903784 45.111352v740.047567c0 25.184865-20.410811 45.111351-44.903784 45.111351z" fill="#FFA000" p-id="1593"></path><path d="M512.000277 344.409946H0.000277V112.902919a45.097514 45.097514 0 0 1 44.903784-45.24973h350.470918c19.829622 0 37.320649 12.924541 43.146379 32.311352L512.000277 344.423784z" fill="#FFA000" p-id="1594"></path><path d="M909.699736 925.599135H114.300817c-25.184865 0-45.111351-20.134054-45.111351-44.281081v-603.32973c0-24.728216 20.493838-44.281081 45.111351-44.281081h795.398919c25.184865 0 45.111351 20.134054 45.111352 44.281081v603.32973c0.567351 24.147027-19.926486 44.281081-45.111352 44.281081z" fill="#FFFFFF" p-id="1595"></path><path d="M979.096493 980.950486H44.904061C19.829898 980.950486 0.000277 960.802595 0.000277 936.627892V361.056865c0-24.755892 20.410811-44.322595 44.903784-44.322595h934.192432c25.074162 0 44.903784 20.147892 44.903784 44.322595v575.571027c0 24.755892-20.410811 44.322595-44.903784 44.322594z" fill="#FFCA28" p-id="1596"></path><path d="M364.46125 485.708108H106.634655C93.917682 485.708108 83.027304 476.021622 83.027304 463.512216c0-11.96973 10.295351-22.223568 23.607351-22.223567h257.21773c12.716973 0 23.607351 9.686486 23.607351 22.223567 0 11.955892-10.295351 22.223568-22.998486 22.223568z m0 149.296433H106.634655c-12.716973 0-23.607351-9.686486-23.607351-22.223568 0-12.537081 10.295351-22.223568 23.607351-22.223568h257.21773c12.716973 0 23.607351 9.686486 23.607351 22.223568 0 12.537081-10.295351 22.223568-22.998486 22.223568z" fill="#FFF8E1" p-id="1597"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.9 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z"/></svg>
|
||||||
|
After Width: | Height: | Size: 175 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 3v2H4v4H2V3h6zM2 21v-6h2v4h4v2H2zm20 0h-6v-2h4v-4h2v6zm0-12h-2V5h-4V3h6v6z"/></svg>
|
||||||
|
After Width: | Height: | Size: 175 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg width="24" height="24" class="icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.4791 4.97677C15.6201 4.89789 15.7691 4.8145 15.93 4.72314C15.9494 4.82848 15.9683 4.92046 15.9854 5.00383C16.0157 5.15091 16.0406 5.2719 16.0525 5.39144C16.1479 6.4296 16.6697 7.1933 17.4092 7.36527C18.4908 7.61639 19.5106 7.20133 20.06 6.28555C20.72 5.18673 20.4334 3.84099 19.3097 3.03098C16.1851 0.777435 12.7523 0.155888 9.05448 1.24127C1.08137 3.59371 -1.64675 13.3884 4.01196 19.3949C6.43291 21.9642 9.50695 23.0727 12.9963 22.9889C17.4663 22.8839 20.6857 20.6563 22.7408 16.7954C24.1978 14.0561 22.6139 11.0619 19.5805 10.4396C17.8481 10.0908 16.0765 9.97756 14.3137 10.103C13.7272 10.1594 13.1579 10.3325 12.6394 10.6124C12.0592 10.9135 11.8915 11.5383 11.9565 12.1575C12.0171 12.7217 12.4498 13.0601 12.965 13.1453C14.0024 13.3077 15.0522 13.402 16.1 13.4881C16.4032 13.5136 16.7093 13.5166 17.0149 13.5197C17.4534 13.5241 17.8912 13.5285 18.3187 13.5991C19.5385 13.8007 19.9574 14.7905 19.33 15.8495C19.1763 16.1041 18.9971 16.3424 18.7951 16.5607C17.9745 17.4632 16.9014 18.0981 15.7152 18.3827C13.55 18.9127 11.3827 18.9425 9.22755 18.2617C6.77347 17.4875 5.31042 15.6849 5.25902 13.2584C5.2398 11.7619 5.61972 10.2874 6.35969 8.9865C6.694 8.38013 6.87751 7.75562 6.82593 7.06851C6.80422 6.77557 6.79219 6.48231 6.77927 6.16716C6.77239 5.99944 6.76526 5.82551 6.75628 5.64214C7.00484 5.69431 7.25032 5.76016 7.49161 5.83943C8.43027 6.21622 9.35415 6.38811 10.3702 6.11155C10.9481 5.97335 11.5455 5.93511 12.1363 5.9985C13.0877 6.07606 14.0387 5.84361 14.847 5.33586C15.0488 5.2176 15.2539 5.10279 15.4791 4.97677Z" fill="currentColor"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1725812178308" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4564" width="200" height="200"><path d="M512 1024C229.234 1024 0 794.766 0 512S229.234 0 512 0s512 229.234 512 512-229.234 512-512 512z m259.157-568.889l-290.759 0.014c-13.966 0-25.287 11.321-25.287 25.273l-0.028 63.218c0 13.966 11.306 25.287 25.273 25.287H657.38c13.966 0 25.287 11.307 25.287 25.273v12.644a75.847 75.847 0 0 1-75.847 75.847H366.606a25.287 25.287 0 0 1-25.287-25.273v-240.2a75.847 75.847 0 0 1 75.847-75.846l353.92-0.015c13.966 0 25.273-11.306 25.287-25.273l0.071-63.189c0-13.966-11.306-25.287-25.272-25.301l-353.992 0.014c-104.718-0.014-189.624 84.892-189.624 189.61v353.963c0 13.967 11.32 25.287 25.287 25.287h372.935c94.265 0 170.666-76.401 170.666-170.666v-145.38c0-13.952-11.32-25.273-25.287-25.273z" p-id="4565"></path></svg>
|
||||||
|
After Width: | Height: | Size: 864 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M511.543 14.057C228.914 13.943 0 242.743 0 525.143 0 748.457 143.2 938.286 342.629 1008c26.857 6.743 22.742-12.343 22.742-25.371v-88.572C210.286 912.23 204 809.6 193.6 792.457c-21.029-35.886-70.743-45.028-55.886-62.171 35.315-18.172 71.315 4.571 113.029 66.171 30.171 44.686 89.028 37.143 118.857 29.714 6.514-26.857 20.457-50.857 39.657-69.485C248.571 727.886 181.6 629.829 181.6 513.257c0-56.571 18.629-108.571 55.2-150.514-23.314-69.143 2.171-128.343 5.6-137.143 66.4-5.943 135.429 47.543 140.8 51.771C420.914 267.2 464 261.83 512.229 261.83c48.457 0 91.657 5.6 129.714 15.885 12.914-9.828 76.914-55.771 138.628-50.171 3.315 8.8 28.229 66.628 6.286 134.857 37.029 42.057 55.886 94.514 55.886 151.2 0 116.8-67.429 214.971-228.572 243.314a145.714 145.714 0 0 1 43.543 104v128.572c.915 10.285 0 20.457 17.143 20.457 202.4-68.229 348.114-259.429 348.114-484.686 0-282.514-229.028-511.2-511.428-511.2z"/></svg>
|
||||||
|
After Width: | Height: | Size: 1019 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M958.401 451.55a20.01 20.01 0 0 0-6.966-14.972L524.345 69.511c-7.499-6.446-18.581-6.446-26.08 0L309.583 231.676V129.657c0-11.05-8.902-19.533-19.952-19.533h-88.034c-11.048 0-19.928 8.482-19.928 19.533v211.954L71.176 436.578a20.003 20.003 0 0 0-6.968 15.174v105.5a20.007 20.007 0 0 0 33.052 15.172l53.298-45.826V850.7c0 60.678 49.364 110.042 110.042 110.042h504.192c60.678 0 110.043-49.364 110.043-110.042V527.026l51.586 44.336a20.001 20.001 0 0 0 21.48 2.966 20.006 20.006 0 0 0 11.566-18.343l-1.066-104.436zM221.579 150.033h48.095v115.942l-48.095 41.336V150.034zm349.14 770.692H436.665V700.642c0-11.03 8.977-20.007 20.008-20.007h94.036c11.03 0 20.007 8.976 20.007 20.007v220.084zm264.1-424.83v354.803c0 38.612-31.415 70.027-70.028 70.027H610.733V700.642c0-33.096-26.927-60.023-60.023-60.023h-94.036c-33.097 0-60.023 26.927-60.023 60.023v220.085H260.599c-38.612 0-70.027-31.415-70.027-70.027V495.895a20.07 20.07 0 0 0-.315-3.432L512.37 215.504l322.703 277.349a20.158 20.158 0 0 0-.255 3.042zM525.41 173.947c-7.502-6.446-18.587-6.447-26.086.003l-395.1 339.714v-52.727l407.081-349.87 407.177 349.952.522 51.205L525.41 173.948z"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1721534999310" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2348" width="200" height="200"><path d="M558.08 472.064c48.128 53.248-13.312 103.424-13.312 103.424s119.808-61.44 65.536-139.264c-51.2-71.68-91.136-107.52 122.88-232.448 0 1.024-335.872 86.016-175.104 268.288" fill="#FF0000" p-id="2349"></path><path d="M610.304 5.12s101.376 101.376-96.256 258.048C356.352 389.12 478.208 460.8 514.048 543.744 420.864 459.776 354.304 386.048 399.36 317.44 463.872 216.064 651.264 166.912 610.304 5.12" fill="#FF0000" p-id="2350"></path><path d="M720.896 757.76c183.296-95.232 98.304-188.416 39.936-175.104-15.36 3.072-21.504 5.12-21.504 5.12s5.12-8.192 16.384-11.264c117.76-40.96 207.872 120.832-37.888 186.368-1.024 0 2.048-3.072 3.072-5.12m-337.92 38.912s-37.888 21.504 26.624 29.696c76.8 8.192 117.76 8.192 202.752-8.192 0 0 23.552 15.36 53.248 26.624-191.488 80.896-433.152-5.12-282.624-48.128m-23.552-106.496s-43.008 31.744 23.552 37.888c82.944 8.192 149.504 10.24 261.12-13.312 0 0 16.384 16.384 40.96 24.576-231.424 68.608-490.496 5.12-325.632-49.152" fill="#6699FF" p-id="2351"></path><path d="M811.008 876.544s27.648 23.552-31.744 40.96c-111.616 34.816-460.8 45.056-558.08 2.048-34.816-15.36 31.744-35.84 51.2-40.96 21.504-5.12 34.816-3.072 34.816-3.072-38.912-28.672-251.904 52.224-107.52 75.776 390.144 62.464 712.704-28.672 611.328-74.752M400.384 578.56s-178.176 43.008-63.488 56.32c49.152 6.144 146.432 5.12 235.52-3.072 73.728-6.144 147.456-19.456 147.456-19.456s-26.624 11.264-45.056 24.576c-181.248 48.128-530.432 26.624-430.08-23.552 88.064-39.936 155.648-34.816 155.648-34.816" fill="#6699FF" p-id="2352"></path><path d="M418.816 1015.808c176.128 11.264 446.464-6.144 453.632-90.112 0 0-13.312 31.744-146.432 56.32-150.528 27.648-336.896 24.576-446.464 6.144 2.048 1.024 24.576 20.48 139.264 27.648" fill="#6699FF" p-id="2353"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.9 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1733555774238" class="icon" viewBox="0 0 1316 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="46620" width="128" height="128"><path d="M643.181714 247.698286l154.916572-123.172572L643.181714 0.256 643.072 0l-154.660571 124.269714 154.660571 123.245715 0.109714 0.182857z m0 388.461714h0.109715l399.579428-315.245714-108.361143-87.04-291.218285 229.888h-0.146286l-0.109714 0.146285L351.817143 234.093714l-108.251429 87.04 399.433143 315.136 0.146286-0.146285z m-0.146285 215.552l0.146285-0.146286 534.893715-422.034285 108.397714 87.04-243.309714 192L643.145143 1024 10.422857 525.056 0 516.754286l108.251429-86.893715L643.035429 851.748571z" fill="#1E80FF" p-id="46621"></path></svg>
|
||||||
|
After Width: | Height: | Size: 705 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="m18.5 10 4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.221 18.221 0 0 1-3.62 6.301 14.865 14.865 0 0 0 2.335 1.707l-.75 1.878A17.016 17.016 0 0 1 9 13.725a16.677 16.677 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.031 16.031 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"/></svg>
|
||||||
|
After Width: | Height: | Size: 501 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M374.272 440.832H127.488c-33.792 0-61.44-27.648-61.44-61.44V132.608c0-33.792 27.648-61.44 61.44-61.44h247.296c33.792 0 61.44 27.648 61.44 61.44v247.296c-.512 33.792-27.648 60.928-61.952 60.928zM127.488 132.608v247.296h247.296V132.608H127.488zM762.88 492.032c-16.384 0-31.744-6.144-43.52-17.92L544.768 299.52c-11.776-11.776-17.92-27.136-17.92-43.52s6.144-31.744 17.92-43.52L719.36 37.888c11.776-11.776 27.136-17.92 43.52-17.92s31.744 6.144 43.52 17.92L980.992 212.48c11.776 11.776 17.92 27.136 17.92 43.52s-6.144 31.744-17.92 43.52L806.4 474.112c-11.776 11.776-27.136 17.92-43.52 17.92zm0-410.624L588.288 256 762.88 430.592 937.472 256 762.88 81.408zM374.272 952.832H127.488c-33.792 0-61.44-27.648-61.44-61.44V644.096c0-33.792 27.648-61.44 61.44-61.44h247.296c33.792 0 61.44 27.648 61.44 61.44v247.296c-.512 34.304-27.648 61.44-61.952 61.44zM127.488 644.608v247.296h247.296V644.608H127.488zm758.784 308.224H638.976c-33.792 0-61.44-27.648-61.44-61.44V644.096c0-33.792 27.648-61.44 61.44-61.44h247.296c33.792 0 61.44 27.648 61.44 61.44v247.296c0 34.304-27.136 61.44-61.44 61.44zM639.488 644.608v247.296h247.296V644.608H639.488z"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1719845783644" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="277659" width="200" height="200"><path d="M392.297931 841.021793a130.01269 128.635586 90 1 0 257.271172 0 130.01269 128.635586 90 1 0-257.271172 0Z" fill="#FFD08D" p-id="277660"></path><path d="M456.174345 52.965517m50.458483 0l-0.035311 0q50.458483 0 50.458483 50.458483l0 59.568552q0 50.458483-50.458483 50.458482l0.035311 0q-50.458483 0-50.458483-50.458482l0-59.568552q0-50.458483 50.458483-50.458483Z" fill="#FFD293" p-id="277661"></path><path d="M520.933517 1006.344828c-90.641655 0-163.945931-74.081103-163.945931-165.323035 0-91.206621 73.304276-165.323034 163.945931-165.323034 90.606345 0 163.945931 74.116414 163.945931 165.323034 0 91.241931-73.339586 165.323034-163.945931 165.323035z m0-70.62069c51.447172 0 93.325241-42.301793 93.325242-94.702345 0-52.365241-41.878069-94.702345-93.325242-94.702345-51.482483 0-93.325241 42.337103-93.325241 94.702345 0 52.400552 41.842759 94.702345 93.325241 94.702345z" fill="#FCA100" p-id="277662"></path><path d="M506.632828 88.275862a15.148138 15.148138 0 0 0-15.148138 15.148138v59.603862a15.148138 15.148138 0 0 0 30.296276 0V103.424a15.148138 15.148138 0 0 0-15.183449-15.148138z m85.768827 15.148138v59.603862a85.768828 85.768828 0 1 1-171.537655 0V103.424a85.768828 85.768828 0 1 1 171.537655 0z" fill="#FB9C00" p-id="277663"></path><path d="M177.893517 494.344828c0-183.472552 147.173517-332.270345 328.739311-332.270345 181.530483 0 346.394483 148.797793 346.394482 332.270345v260.025379l100.034207 129.977379H77.85931l100.034207-129.977379V494.344828z" fill="#FFA300" p-id="277664"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.6 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><style>@font-face{font-family:rbicon;src:url(chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2) format("woff2");font-weight:400;font-style:normal}</style></defs><path d="M64 64v576h832V64H64zM0 0h960v704H0V0z"/><path d="M192 896h576v64H192zm256-256h64v256h-64zm31.232-78.396 309.99-348.33-47.803-42.548-259.567 291.67-177.895-222.387L163.21 438.605l52.224 37.009 91.622-129.28z"/></svg>
|
||||||
|
After Width: | Height: | Size: 525 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1719844718926" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="266272" width="200" height="200"><path d="M138.0173018 383.04044608h747.9653964c7.09277447 0 12.89595271-5.80317818 12.89595812-12.89595273v-64.47977419c0-28.37110348-23.21271811-51.58382158-51.58382153-51.58382161H497.81445089c-24.50231446 0-47.71503251-11.60636172-62.54538509-31.59508902l-24.50231442-33.52948343c-14.83034722-19.98873261-38.04306533-31.59508889-62.54537971-31.59509427h-145.72429566c-42.55665253 0-77.37573228 34.81907982-77.37573233 77.37573236v135.40753016c0 7.09277447 5.80317818 12.89595271 12.89595812 12.89595273zM885.9826982 415.2803386h-747.9653964c-7.09277447 0-12.89595271 5.80317818-12.89595812 12.89595272V787.97344057c0 42.55665253 34.81907982 77.37573228 77.37573233 77.37573223l619.00584798 1.28959637c42.55665253 0 77.37573228-34.81907982 77.37573233-77.37573236v-361.08674549c0-7.09277447-5.80317818-12.89595271-12.89595812-12.89595272z m-606.1098899 310.14771686c-1.28959636 1.93439451-3.22399088 3.86878903-5.8031835 5.80318347-32.88468534 20.63353074-67.05896691-13.54075089-46.4254362-46.42544153 1.28959636-1.93439451 3.22399088-3.86878903 5.80317822-5.80317821 32.88468534-20.63353074 67.70376514 14.18554911 46.42544148 46.42543627z m0-137.98671761c-1.28959636 1.93439451-3.22399088 3.86878903-5.8031835 5.80317817-32.88468534 20.63353074-67.05896691-13.54075089-46.4254362-46.4254362 1.28959636-1.93439451 3.22399088-3.86878903 5.80317822-5.80317818 32.88468534-21.27832364 67.70376514 13.54075089 46.42544148 46.42543621z m361.08674562 149.59307926h-264.36708411c-6.44797635 0-12.25115989-2.57919268-16.11994359-7.73757266-21.27832364-27.08150713-2.57919268-56.74220161 23.212718-56.74220164h264.36708417c6.44797635 0 12.25115989 2.57919268 16.11994364 7.73757283 21.27832364 27.08150713 2.57919268 56.74220161-23.21271811 56.74220147z m128.95954853-137.98671756h-393.32663264c-6.44797635 0-12.25115989-2.57919268-16.11994359-7.73757269-21.27832364-27.08150713-2.57919268-56.74220161 23.212718-56.74220692h393.32663275c6.44797635 0 12.25115989 2.57919268 16.11994354 7.7375727 21.27832364 27.08150713 2.57919268 56.74220161-23.21271806 56.74220691z" fill="#08D19F" p-id="266273"></path></svg>
|
||||||
|
After Width: | Height: | Size: 2.2 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19.9139 14.529C19.7336 13.955 19.4877 13.2856 19.2385 12.643L18.3288 10.3969C18.3295 10.371 18.3408 9.92858 18.3408 9.70053C18.3408 5.8599 16.5082 2.00037 12.0009 2C7.49403 2.00037 5.66113 5.8599 5.66113 9.70053C5.66113 9.92858 5.67237 10.371 5.67312 10.3969L4.76379 12.643C4.51453 13.2856 4.26827 13.955 4.08798 14.529C3.2285 17.2657 3.507 18.3982 3.71915 18.4238C4.17419 18.4779 5.49021 16.3635 5.49021 16.3635C5.49021 17.5879 6.12741 19.1858 7.5064 20.3398C6.99064 20.4971 6.35868 20.7388 5.95237 21.0355C5.58729 21.3025 5.63302 21.5743 5.69861 21.6841C5.9876 22.1661 10.6542 21.9918 12.0017 21.8417C13.3488 21.9918 18.0158 22.1661 18.3044 21.6841C18.3704 21.5743 18.4157 21.3025 18.0507 21.0355C17.6443 20.7388 17.012 20.4971 16.4959 20.3395C17.8745 19.1858 18.5117 17.5879 18.5117 16.3635C18.5117 16.3635 19.8281 18.4779 20.2831 18.4238C20.4949 18.3982 20.7734 17.2657 19.9139 14.529Z"></path></svg>
|
||||||
|
After Width: | Height: | Size: 995 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="1em" height="1em" viewBox="0 0 512 512"><path d="m400 148-21.12-24.57A191.43 191.43 0 0 0 240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 0 0 181.07-128" fill="none" stroke="currentColor" stroke-linecap="square" stroke-miterlimit="10" stroke-width="32"/><path d="M464 68.45V220a4 4 0 0 1-4 4H308.45a4 4 0 0 1-2.83-6.83L457.17 65.62a4 4 0 0 1 6.83 2.83z" fill="currentColor"/></svg>
|
||||||
|
After Width: | Height: | Size: 458 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="256" height="256"><path d="M79.238 961.896v-25.442c0-109.28 28.835-214.892 81.139-297.416 48.427-76.396 115.304-131.573 195.508-161.896A240.785 240.785 0 0 1 279.488 300.5c0-131.538 104.331-238.535 232.547-238.535S744.546 168.962 744.546 300.5a240.854 240.854 0 0 1-76.742 176.988c190.87 73.004 276.992 277.131 276.992 458.966v25.442H79.238zM694.908 300.5c0-103.43-82.039-187.615-182.873-187.615-100.835 0-182.873 84.184-182.873 187.615 0 103.465 82.038 187.65 182.873 187.65 100.834 0 182.873-84.185 182.873-187.65zm-79.166 213.508a226.454 226.454 0 0 1-103.707 25.096A225.935 225.935 0 0 1 407.912 513.8C212.888 564.927 136.804 752.854 129.5 910.977h765.035c-7.997-167.4-95.227-347.746-278.793-396.97zm-143.411 37.246h79.407l39.739-8.48-45.242 65.664 30.6 227.527-64.8 56.908-69.197-56.908 40.535-227.527-50.78-65.665 39.738 8.48z"/></svg>
|
||||||
|
After Width: | Height: | Size: 925 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 2C15.968 2 20 6.032 20 11C20 15.968 15.968 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2ZM11 18C14.8675 18 18 14.8675 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18ZM19.4853 18.0711L22.3137 20.8995L20.8995 22.3137L18.0711 19.4853L19.4853 18.0711Z"></path></svg>
|
||||||
|
After Width: | Height: | Size: 395 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="m12 1 9.5 5.5v11L12 23l-9.5-5.5v-11L12 1zm0 2.311L4.5 7.653v8.694l7.5 4.342 7.5-4.342V7.653L12 3.311zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/></svg>
|
||||||
|
After Width: | Height: | Size: 267 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 6v15H8V6H2V4h14v2h-6zm8 8v7h-2v-7h-3v-2h8v2h-3z"/></svg>
|
||||||
|
After Width: | Height: | Size: 149 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M139 669.6V164.3c0-12.7 10.3-23.1 23.1-23.1h694.4c12.7 0 23.1 10.4 23.1 23.1v248.5h70V164.3c0-51.3-41.8-93.1-93.1-93.1H162c-51.3.1-93 41.8-93 93.1v505.3c0 51.3 41.8 93.1 93.1 93.1h224.7v-70H162c-12.7 0-23-10.4-23-23.1zm-34.3 131h282v70h-282z"/><path d="m954.9 599.4-5.1-15c-11.5-33.9-29.4-64.9-53.2-91.9l-10.5-11.9h-83.2l-41.7-72.2-15.6-3.1c-34.8-6.9-71.3-6.9-106.1 0l-15.6 3.1-41.7 72.2H499l-10.5 11.9c-23.8 27.1-41.7 58-53.2 91.9l-5.1 15 41.7 72.2-41.7 72.2 5.1 15c11.5 33.9 29.4 64.9 53.2 91.9l10.5 11.9h83.2l41.7 72.2 15.6 3.1c17.4 3.5 35.3 5.2 53.1 5.2s35.6-1.8 53.1-5.2l15.6-3.1 41.7-72.2h83.2l10.5-11.9c23.8-27.1 41.7-58 53.2-91.9l5.1-15-41.7-72.2 41.6-72.2zm-76.8 151.2c-6.4 14.9-14.5 29-24.3 42h-91.2l-45.6 79c-16.1 1.9-32.4 1.9-48.5 0l-45.6-79h-91.2c-9.8-13-17.9-27-24.3-42l45.6-79.1-45.6-79.1c6.4-14.9 14.5-29 24.3-42h91.2l45.6-79c16.1-1.9 32.4-1.9 48.5 0l45.6 79h91.2c9.8 13 17.9 27 24.3 42l-45.6 79.1 45.6 79.1z"/><path d="M692.7 560.2c-61.4 0-111.3 49.9-111.3 111.3s49.9 111.3 111.3 111.3S804 732.9 804 671.5c0-61.3-49.9-111.3-111.3-111.3zm0 152.7c-22.8 0-41.3-18.5-41.3-41.3s18.5-41.3 41.3-41.3 41.3 18.5 41.3 41.3-18.5 41.3-41.3 41.3z"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M0 64v896h1024V64H0zm384 576V448h256v192H384zm256 64v192H384V704h256zm0-512v192H384V192h256zm-320 0v192H64V192h256zM64 448h256v192H64V448zm640 0h256v192H704V448zm0-64V192h256v192H704zM64 704h256v192H64V704zm640 192V704h256v192H704z"/></svg>
|
||||||
|
After Width: | Height: | Size: 351 B |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1719844784164" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="269353" width="200" height="200"><path d="M920.78 322.56L700.878 102.656c-36.199-36.198-94.925-36.198-131.123 0s-36.199 94.925 0 131.123l23.5 23.501-86.272 86.323c-123.033-75.11-285.798-59.494-392.192 46.9l-37.376 37.375L293.94 644.403l-89.088 89.088c-23.5 23.501-23.5 61.645 0 85.146s61.645 23.5 85.146 0l89.088-89.088L595.61 946.074l37.376-37.376c106.393-106.394 122.01-269.21 46.899-392.192l86.323-86.324 23.5 23.501c36.2 36.199 94.926 36.199 131.124 0s36.198-94.925-0.051-131.123z m-454.758 132.3a41.206 41.206 0 0 1-34.304 18.28 41.057 41.057 0 0 1-22.988-7.015c-55.91-37.581-122.266-8.09-122.932-7.783-20.633 9.728-45.21 0.87-54.886-19.763a41.196 41.196 0 0 1 19.763-54.886c4.403-2.048 108.851-50.023 204.083 13.926 18.893 12.698 23.962 38.349 11.264 57.242z" fill="#FF5C64" p-id="269354"></path><path d="M569.754 102.656c-36.199 36.198-36.199 94.925 0 131.123l23.5 23.501-86.272 86.323c-123.033-75.11-285.798-59.494-392.192 46.9l-37.376 37.375L293.94 644.403l-89.088 89.088c-23.5 23.501-23.5 61.645 0 85.146s61.645 23.5 85.146 0l89.088-89.088 105.83 105.83c99.226-42.445 182.119-115.558 236.851-207.462a319.145 319.145 0 0 0-41.881-111.411l86.323-86.324 20.173 20.173c4.3-26.624 6.656-53.862 6.656-81.664 0-82.073-19.61-159.539-54.221-228.147l-37.888-37.888c-36.25-36.198-94.976-36.198-131.174 0zM466.022 454.861a41.206 41.206 0 0 1-34.304 18.278 41.057 41.057 0 0 1-22.988-7.014c-55.91-37.581-122.266-8.09-122.932-7.783-20.633 9.728-45.21 0.87-54.886-19.763a41.196 41.196 0 0 1 19.763-54.886c4.403-2.048 108.851-50.023 204.083 13.926 18.893 12.698 23.962 38.349 11.264 57.242z" fill="#FF5C64" p-id="269355"></path><path d="M253.85 684.442c228.812-49.152 400.332-252.468 400.332-495.924 0-38.758-4.505-76.441-12.697-112.69-25.754-1.69-52.07 7.167-71.731 26.88-36.199 36.198-36.199 94.924 0 131.122l23.5 23.501-86.272 86.272c-123.033-75.11-285.798-59.494-392.192 46.9l-37.376 37.375L293.94 644.403l-40.09 40.039z m32-226.15c-20.634 9.727-45.21 0.87-54.887-19.764a41.196 41.196 0 0 1 19.763-54.886c4.404-2.048 108.852-50.023 204.084 13.926 18.892 12.698 23.961 38.349 11.264 57.242a41.206 41.206 0 0 1-34.304 18.278 41.057 41.057 0 0 1-22.99-7.014c-55.96-37.53-122.316-8.09-122.93-7.783z" fill="#FF5C64" p-id="269356"></path><path d="M230.912 438.58a41.196 41.196 0 0 1 19.763-54.887c3.226-1.536 60.058-27.546 127.642-16.333 18.022-18.074 34.662-37.53 49.817-58.112-107.827-30.618-228.505-3.584-313.395 81.306L77.363 427.93l71.629 71.628a502.748 502.748 0 0 0 103.885-40.243 41.861 41.861 0 0 1-21.965-20.736z" fill="#FF5C64" p-id="269357"></path></svg>
|
||||||
|
After Width: | Height: | Size: 2.6 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M977.455 558.545h-34.91V453.818c0-44.218-37.236-81.454-81.454-81.454H546.909v-93.091h197.818c25.6 0 46.546-20.946 46.546-46.546V93.091c0-25.6-20.946-46.546-46.546-46.546H279.273c-25.6 0-46.546 20.946-46.546 46.546v139.636c0 25.6 20.946 46.546 46.546 46.546H477.09v93.09H162.909c-44.218 0-81.454 37.237-81.454 81.455v104.727h-34.91C20.945 558.545 0 579.491 0 605.091v325.818c0 25.6 20.945 46.546 46.545 46.546h139.637c25.6 0 46.545-20.946 46.545-46.546V605.091c0-25.6-20.945-46.546-46.545-46.546h-34.91V453.818c0-6.982 4.655-11.636 11.637-11.636h314.182v116.363h-34.91c-25.6 0-46.545 20.946-46.545 46.546v325.818c0 25.6 20.946 46.546 46.546 46.546h139.636c25.6 0 46.546-20.946 46.546-46.546V605.091c0-25.6-20.946-46.546-46.546-46.546H546.91V442.182h314.182c6.982 0 11.636 4.654 11.636 11.636v104.727h-34.909c-25.6 0-46.545 20.946-46.545 46.546v325.818c0 25.6 20.945 46.546 46.545 46.546h139.637c25.6 0 46.545-20.946 46.545-46.546V605.091c0-25.6-20.945-46.546-46.545-46.546zm-814.546 69.819v279.272H69.82V628.364h93.09zm395.636 0v279.272h-93.09V628.364h93.09zm-256-418.91v-93.09h418.91v93.09h-418.91zm651.637 698.182H861.09V628.364h93.09v279.272z"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -0,0 +1 @@
|
||||||
|
<svg t="1721541160105" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13856" width="200" height="200"><path d="M762.464 263.776a141.568 141.568 0 0 1 71.136 40.992 187.296 187.296 0 0 1 27.264 36.576c0.352 1.44-49.088 34.656-79.072 53.184-1.088 0.736-5.408-3.968-10.304-11.2a64.448 64.448 0 0 0-53.44-32c-34.464-2.368-56.672 15.68-56.512 45.856a41.6 41.6 0 0 0 4.896 21.312c7.584 15.68 21.664 25.088 65.888 44.256 81.408 35.04 116.352 58.144 137.92 90.976a165.056 165.056 0 0 1 13.312 138.656 152.448 152.448 0 0 1-125.824 90.08 348.8 348.8 0 0 1-86.656-0.896 208.992 208.992 0 0 1-115.712-60.288 200.896 200.896 0 0 1-29.632-43.872 84.96 84.96 0 0 1 10.464-6.656c5.056-2.88 24.192-13.888 42.24-24.352l32.768-19.2 6.848 9.984a152.672 152.672 0 0 0 43.2 41.344 105.6 105.6 0 0 0 110.656-5.6 49.44 49.44 0 0 0 6.4-63.168c-8.832-12.64-26.88-23.264-78.176-45.504a281.6 281.6 0 0 1-107.168-65.76 149.984 149.984 0 0 1-31.232-56.864 227.712 227.712 0 0 1-1.984-72.576 138.624 138.624 0 0 1 116.608-107.968 288 288 0 0 1 86.112 2.688z m-266.976 47.456l0.352 46.528h-148.16v420.736H243.2V357.856H95.04V312.16a447.552 447.552 0 0 1 1.28-46.912c0.544-0.736 90.624-1.088 199.84-0.896l198.752 0.544z" fill="#007ACC" p-id="13857"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |