升级vue pinia vite 版本 及其优化不需要的代码

This commit is contained in:
hupeng committed 2024-04-03 14:37:31 +08:00
1 parent 7333cfca0c
commit 5c8d7ad160
42 files changed
+29 -105

No files matched your search

+9 -4
View File
@@ -22,9 +22,10 @@ module.exports = defineConfig({
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
'./.eslintrc-auto-import.json'
// '@unocss'
],
rules: {
'vue/no-setup-props-destructure': 'off',
'vue/script-setup-uses-vars': 'error',
'vue/no-reserved-component-names': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
@@ -39,8 +40,8 @@ module.exports = defineConfig({
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'no-unused-vars': 'error',
'@typescript-eslint/no-unused-vars': 'off',
'no-unused-vars': 'off',
'space-before-function-paren': 'off',
'vue/attributes-order': 'off',
@@ -52,6 +53,7 @@ module.exports = defineConfig({
'vue/attribute-hyphenation': 'off',
'vue/require-default-prop': 'off',
'vue/require-explicit-emits': 'off',
'vue/require-toggle-inside-transition': 'off',
'vue/html-self-closing': [
'error',
{
@@ -65,6 +67,9 @@ module.exports = defineConfig({
}
],
'vue/multi-word-component-names': 'off',
"prettier/prettier": "off"
'vue/no-v-html': 'off',
'prettier/prettier': 'off',
'@unocss/order': 'off',
'@unocss/order-attributify': 'off'
}
})
+19 -17
View File
@@ -1,6 +1,6 @@
{
"name": "yshop-pro-vue3",
"version": "1.0.0",
"name": "yshop-drink-vue3",
"version": "1.2.0",
"description": "基于vue3、vite4、element-plus、typesScript",
"author": "yshop",
"private": false,
@@ -32,6 +32,7 @@
"@form-create/designer": "^3.1.0",
"@form-create/element-ui": "^3.1.17",
"@iconify/iconify": "^3.1.0",
"@rollup/rollup-darwin-x64": "^4.13.2",
"@videojs-player/vue": "^1.0.0",
"@vueuse/core": "^10.1.0",
"@wangeditor/editor": "^5.1.23",
@@ -48,7 +49,7 @@
"diagram-js": "^11.6.0",
"echarts": "^5.4.2",
"echarts-wordcloud": "^2.1.0",
"element-plus": "2.3.3",
"element-plus": "^2.4.3",
"fast-xml-parser": "^4.2.2",
"highlight.js": "^11.7.0",
"intro.js": "^7.0.1",
@@ -57,13 +58,14 @@
"min-dash": "^4.1.0",
"mitt": "^3.0.0",
"nprogress": "^0.2.0",
"pinia": "^2.0.35",
"pinia": "^2.1.6",
"qrcode": "^1.5.3",
"qs": "^6.11.1",
"speak-tts": "^2.0.8",
"steady-xml": "^0.1.0",
"url": "^0.11.0",
"video.js": "^8.0.4",
"vue": "3.2.47",
"video.js": "^7.21.5",
"vue": "3.3.4",
"vue-baidu-map-3x": "^1.0.34",
"vue-i18n": "9.2.2",
"vue-jsonp": "^2.0.0",
@@ -90,9 +92,9 @@
"@types/qs": "^6.9.7",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@vitejs/plugin-legacy": "^4.0.2",
"@vitejs/plugin-vue": "^4.1.0",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"@vitejs/plugin-legacy": "^5.3.1",
"@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"autoprefixer": "^10.4.14",
"bpmn-js": "^8.9.0",
"bpmn-js-properties-panel": "^0.46.0",
@@ -108,7 +110,7 @@
"postcss-scss": "^4.0.6",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"rollup": "^3.20.7",
"rollup": "^4.12.0",
"sass": "^1.62.0",
"stylelint": "^15.6.0",
"stylelint-config-html": "^1.1.0",
@@ -120,14 +122,14 @@
"unplugin-auto-import": "^0.15.3",
"unplugin-element-plus": "^0.7.1",
"unplugin-vue-components": "^0.24.1",
"vite": "4.3.1",
"vite": "5.1.4",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-ejs": "^1.6.4",
"vite-plugin-ejs": "^1.7.0",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-progress": "^0.0.7",
"vite-plugin-purge-icons": "^0.9.2",
"vite-plugin-purge-icons": "^0.10.0",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-top-level-await": "^1.3.0",
"vite-plugin-top-level-await": "^1.3.1",
"vite-plugin-vue-setup-extend-plus": "^0.1.0",
"vite-plugin-windicss": "^1.8.10",
"vue-tsc": "^1.4.4",
@@ -139,10 +141,10 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://gitee.com/yudaocode/yudao-ui-admin-vue3"
"url": "git+https://gitee.com/guchengwuyue/yshop-drink"
},
"bugs": {
"url": "https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues"
"url": "https://gitee.com/guchengwuyue/yshop-drink"
},
"homepage": "https://gitee.com/yudaocode/yudao-ui-admin-vue3"
"homepage": "https://gitee.com/guchengwuyue/yshop-drink"
}
@@ -228,7 +228,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
{
path: '/yshop/materia/index',
component: () => import('@/components/Materials/src/EditorMaterials.vue'),
component: () => import('@/components/Materials/src/editorMaterials.vue'),
name: 'EditorMaterials',
meta: {
noCache: true,
@@ -1,6 +1,4 @@
<template>
<doc-alert title="系统日志" url="https://www.yixiang.co/system-log/" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,7 +1,4 @@
<template>
<doc-alert title="代码生成" url="https://www.yixiang.co/new-feature/" />
<doc-alert title="单元测试" url="https://www.yixiang.co/unit-test/" />
<!-- 搜索 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="配置中心" url="https://www.yixiang.co/config-center/" />
<!-- 搜索 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="数据库文档" url="https://www.yixiang.co/db-doc/" />
<ContentWrap title="数据库文档">
<div class="mb-10px">
<el-button type="primary" plain @click="handleExport('HTML')">
@@ -1,7 +1,4 @@
<template>
<doc-alert title="数据库 MyBatis" url="https://www.yixiang.co/mybatis/" />
<doc-alert title="多数据源(读写分离)" url="https://www.yixiang.co/dynamic-datasource/" />
<ContentWrap>
<IFrame v-if="!loading" :src="url" />
</ContentWrap>
@@ -1,5 +1,4 @@
<template>
<doc-alert title="上传下载" url="https://www.yixiang.co/file/" />
<!-- 搜索 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="上传下载" url="https://www.yixiang.co/file/" />
<!-- 搜索 -->
<ContentWrap>
<el-form
@@ -1,8 +1,4 @@
<template>
<doc-alert title="定时任务" url="https://www.yixiang.co/job/" />
<doc-alert title="异步任务" url="https://www.yixiang.co/async-task/" />
<doc-alert title="消息队列" url="https://www.yixiang.co/message-queue/" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,8 +1,4 @@
<template>
<doc-alert title="定时任务" url="https://www.yixiang.co/job/" />
<doc-alert title="异步任务" url="https://www.yixiang.co/async-task/" />
<doc-alert title="消息队列" url="https://www.yixiang.co/message-queue/" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,7 +1,4 @@
<template>
<doc-alert title="Redis 缓存" url="https://www.yixiang.co/redis-cache/" />
<doc-alert title="本地缓存" url="https://www.yixiang.co/local-cache/" />
<el-scrollbar height="calc(100vh - 88px - 40px - 50px)">
<el-row>
<!-- 基本信息 -->
@@ -1,6 +1,4 @@
<template>
<doc-alert title="服务监控" url="https://www.yixiang.co/server-monitor/" />
<ContentWrap>
<IFrame v-if="!loading" v-loading="loading" :src="src" />
</ContentWrap>
@@ -1,6 +1,4 @@
<template>
<doc-alert title="服务监控" url="https://www.yixiang.co/server-monitor/" />
<ContentWrap>
<IFrame v-if="!loading" v-loading="loading" :src="src" />
</ContentWrap>
@@ -1,6 +1,4 @@
<template>
<doc-alert title="接口文档" url="https://www.yixiang.co/api-doc/" />
<ContentWrap>
<IFrame :src="src" />
</ContentWrap>
@@ -1,6 +1,4 @@
<template>
<doc-alert title="公众号接入" url="https://www.yixiang.co/mp/account/" />
<!-- 搜索工作栏 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="自动回复" url="https://www.yixiang.co/mp/auto-reply/" />
<!-- 搜索工作栏 -->
<ContentWrap>
<el-form class="-mb-15px" :model="queryParams" :inline="true" label-width="68px">
@@ -1,6 +1,4 @@
<template>
<doc-alert title="公众号图文" url="https://www.yixiang.co/mp/article/" />
<!-- 搜索工作栏 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="公众号图文" url="https://www.yixiang.co/mp/article/" />
<!-- 搜索工作栏 -->
<ContentWrap>
<el-form
@@ -1,5 +1,4 @@
<template>
<doc-alert title="公众号素材" url="https://www.yixiang.co/mp/material/" />
<!-- 搜索工作栏 -->
<ContentWrap>
<el-form class="-mb-15px" :inline="true" label-width="68px">
@@ -1,5 +1,4 @@
<template>
<doc-alert title="公众号菜单" url="https://www.yixiang.co/mp/menu/" />
<!-- 搜索工作栏 -->
<ContentWrap>
<el-form class="-mb-15px" ref="queryFormRef" :inline="true" label-width="68px">
@@ -1,6 +1,4 @@
<template>
<doc-alert title="公众号标签" url="https://www.yixiang.co/mp/tag/" />
<!-- 搜索工作栏 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="公众号粉丝" url="https://www.yixiang.co/mp/user/" />
<!-- 搜索工作栏 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="地区 & IP" url="https://www.yixiang.co/area-and-ip/" />
<!-- 操作栏 -->
<ContentWrap>
<el-button type="primary" plain @click="openForm()">
@@ -1,6 +1,4 @@
<template>
<doc-alert title="异常处理(错误码)" url="https://www.yixiang.co/exception/" />
<!-- 搜索工作栏 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="系统日志" url="https://www.yixiang.co/system-log/" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="邮件配置" url="https://www.yixiang.co/mail" />
<!-- 搜索工作栏 -->
<ContentWrap>
<Search :schema="allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams">
@@ -1,6 +1,4 @@
<template>
<doc-alert title="邮件配置" url="https://www.yixiang.co/mail" />
<!-- 搜索工作栏 -->
<ContentWrap>
<Search :schema="allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
@@ -1,6 +1,4 @@
<template>
<doc-alert title="邮件配置" url="https://www.yixiang.co/mail" />
<!-- 搜索工作栏 -->
<ContentWrap>
<Search :schema="allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams">
@@ -1,6 +1,4 @@
<template>
<doc-alert title="站内信配置" url="https://www.yixiang.co/notify/" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="站内信配置" url="https://www.yixiang.co/notify/" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="站内信配置" url="https://www.yixiang.co/notify/" />
<!-- 搜索工作栏 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="OAuth 2.0(SSO 单点登录)" url="https://www.yixiang.co/oauth2/" />
<!-- 搜索 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="OAuth 2.0(SSO 单点登录)" url="https://www.yixiang.co/oauth2/" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="系统日志" url="https://www.yixiang.co/system-log/" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,7 +1,4 @@
<template>
<doc-alert title="功能权限" url="https://www.yixiang.co/resource-permission" />
<doc-alert title="数据权限" url="https://www.yixiang.co/data-permission" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="短信配置" url="https://www.yixiang.co/sms/" />
<ContentWrap>
<el-form
class="-mb-15px"
@@ -1,6 +1,4 @@
<template>
<doc-alert title="短信配置" url="https://www.yixiang.co/sms/" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="短信配置" url="https://www.yixiang.co/sms/" />
<ContentWrap>
<!-- 搜索工作栏 -->
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="SaaS 多租户" url="https://www.yixiang.co/saas-tenant/" />
<!-- 搜索 -->
<ContentWrap>
<el-form
@@ -1,6 +1,4 @@
<template>
<doc-alert title="SaaS 多租户" url="https://www.yixiang.co/saas-tenant/" />
<!-- 搜索 -->
<ContentWrap>
<el-form