pref: remove unused dependencies

This commit is contained in:
KUN1007 2023-10-20 21:37:29 +08:00
parent cd24081dff
commit 6539c6ac20
6 changed files with 4 additions and 1027 deletions

View file

@ -39,16 +39,11 @@
"@types/js-cookie": "^3.0.4", "@types/js-cookie": "^3.0.4",
"@types/node": "^20.8.4", "@types/node": "^20.8.4",
"@types/nprogress": "^0.2.1", "@types/nprogress": "^0.2.1",
"@vitejs/plugin-basic-ssl": "^1.0.1",
"@vitejs/plugin-vue": "^4.4.0", "@vitejs/plugin-vue": "^4.4.0",
"@vitejs/plugin-vue-jsx": "^3.0.2",
"cross-env": "^7.0.3",
"rollup-plugin-visualizer": "^5.9.2", "rollup-plugin-visualizer": "^5.9.2",
"sass": "^1.69.3", "sass": "^1.69.3",
"terser": "^5.21.0",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"vite": "^4.4.11", "vite": "^4.4.11",
"vite-plugin-mkcert": "^1.16.0",
"vue-tsc": "^1.8.19" "vue-tsc": "^1.8.19"
}, },
"keywords": [ "keywords": [

File diff suppressed because it is too large Load diff

View file

@ -288,91 +288,5 @@ const handleTextChange = async () => {
background: var(--kungalgame-trans-blue-1) !important; background: var(--kungalgame-trans-blue-1) !important;
} }
} }
/* Mention 的样式 */
.ql-mention-list-container {
width: 270px;
border: 1px solid var(--kungalgame-blue-1);
border-radius: 4px;
background-color: var(--kungalgame-trans-white-2);
box-shadow: var(--shadow);
z-index: 9999;
overflow: auto;
}
.ql-mention-loading {
line-height: 44px;
padding: 0 20px;
vertical-align: middle;
font-size: 16px;
}
.ql-mention-list {
list-style: none;
margin: 0;
padding: 0;
overflow: hidden;
}
.ql-mention-list-item {
cursor: pointer;
font-size: 16px;
padding: 10px 20px;
/* 居中、超过一行省略 */
vertical-align: middle;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ql-mention-list-item.disabled {
cursor: auto;
}
.ql-mention-list-item.selected {
background-color: var(--kungalgame-trans-blue-1);
text-decoration: none;
}
/* mention 插件的样式 */
.mention {
height: 24px;
width: 65px;
padding: 3px 0;
margin-right: 2px;
user-select: all;
}
.mention[data-denotation-char='@'] {
cursor: pointer;
background-color: var(--kungalgame-pink-4);
color: var(--kungalgame-white);
padding: 5px;
& > span {
font-style: oblique;
& > span {
font-weight: bold;
margin-right: 5px;
}
}
}
.mention[data-denotation-char='#'] {
cursor: pointer;
background-color: var(--kungalgame-purple-4);
color: var(--kungalgame-white);
padding: 5px;
& > span {
font-style: oblique;
& > span {
font-weight: bold;
margin-right: 5px;
}
}
}
.mention > span {
margin: 0 3px;
}
} }
</style> </style>

View file

@ -929,9 +929,6 @@
.ql-snow a { .ql-snow a {
color: var(--kungalgame-blue-4); color: var(--kungalgame-blue-4);
} }
.ql-container.ql-snow {
border: 1px solid var(--kungalgame-blue-1);
}
/* 被 reset css 覆盖的样式 */ /* 被 reset css 覆盖的样式 */
u { u {

View file

@ -67,37 +67,6 @@ defineProps<{
:deep(blockquote) { :deep(blockquote) {
padding: 7px 10px; padding: 7px 10px;
} }
/* mention */
:deep(.mention[data-denotation-char='@']) {
margin-right: 2px;
cursor: pointer;
background-color: var(--kungalgame-pink-4);
color: var(--kungalgame-white);
padding: 5px;
& > span {
font-style: oblique;
& > span {
font-weight: bold;
margin-right: 5px;
}
}
}
:deep(.mention[data-denotation-char='#']) {
margin-right: 2px;
cursor: pointer;
background-color: var(--kungalgame-purple-4);
color: var(--kungalgame-white);
padding: 5px;
& > span {
font-style: oblique;
& > span {
font-weight: bold;
margin-right: 5px;
}
}
}
} }
/* 适配手机端 */ /* 适配手机端 */

View file

@ -3,57 +3,16 @@ import path from 'path'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
// 引入 Rollup Plugin Visualizer 打包可视化工具 // 引入 Rollup Plugin Visualizer 打包可视化工具
import { visualizer } from 'rollup-plugin-visualizer' import { visualizer } from 'rollup-plugin-visualizer'
// 导入 vite tsx 支持
import vueJsx from '@vitejs/plugin-vue-jsx'
// 导入 vite https 支持
// import mkcert from 'vite-plugin-mkcert'
// import basicSsl from '@vitejs/plugin-basic-ssl'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [vue(), visualizer() as PluginOption, vueJsx()], plugins: [vue(), visualizer() as PluginOption],
/* src 别名为 @ */ /* src 别名为 @ */
resolve: { resolve: {
alias: { alias: {
'@': path.resolve(__dirname, './src'), '@': path.resolve(__dirname, './src'),
}, },
}, },
server: {
/** 是否开启 HTTPS */
https: false,
/** 设置 host: true 才可以使用 Network 的形式,以 IP 访问项目 */
host: '127.0.0.1', // host: "0.0.0.0"
/** 端口号 */
port: 1007,
/** 是否自动打开浏览器 */
open: true,
/** 跨域设置允许 */
cors: true,
/** 端口被占用时,是否直接退出 */
strictPort: true,
/** 接口代理 */
proxy: {},
},
build: {
/** 打包大小超过 500kb 警告 */
chunkSizeWarningLimit: 500,
/** Vite 2.6.x 以上需要配置 minify: "terser", terserOptions 才能生效 */
minify: 'terser',
/** 在打包代码时移除 console.log、debugger 和 注释 */
terserOptions: {
compress: {
drop_console: false,
drop_debugger: true,
pure_funcs: ['console.log'],
},
format: {
/** 删除注释 */
comments: false,
},
},
/** 打包后静态资源目录 */
assetsDir: 'kun',
},
// 消除 i18n 警告 // 消除 i18n 警告
define: { define: {
__VUE_I18N_FULL_INSTALL__: true, __VUE_I18N_FULL_INSTALL__: true,