pref: remove unused dependencies
This commit is contained in:
parent
cd24081dff
commit
6539c6ac20
|
@ -39,16 +39,11 @@
|
|||
"@types/js-cookie": "^3.0.4",
|
||||
"@types/node": "^20.8.4",
|
||||
"@types/nprogress": "^0.2.1",
|
||||
"@vitejs/plugin-basic-ssl": "^1.0.1",
|
||||
"@vitejs/plugin-vue": "^4.4.0",
|
||||
"@vitejs/plugin-vue-jsx": "^3.0.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"rollup-plugin-visualizer": "^5.9.2",
|
||||
"sass": "^1.69.3",
|
||||
"terser": "^5.21.0",
|
||||
"typescript": "^5.2.2",
|
||||
"vite": "^4.4.11",
|
||||
"vite-plugin-mkcert": "^1.16.0",
|
||||
"vue-tsc": "^1.8.19"
|
||||
},
|
||||
"keywords": [
|
||||
|
|
863
pnpm-lock.yaml
863
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -288,91 +288,5 @@ const handleTextChange = async () => {
|
|||
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>
|
||||
|
|
|
@ -929,9 +929,6 @@
|
|||
.ql-snow a {
|
||||
color: var(--kungalgame-blue-4);
|
||||
}
|
||||
.ql-container.ql-snow {
|
||||
border: 1px solid var(--kungalgame-blue-1);
|
||||
}
|
||||
|
||||
/* 被 reset css 覆盖的样式 */
|
||||
u {
|
||||
|
|
|
@ -67,37 +67,6 @@ defineProps<{
|
|||
:deep(blockquote) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 适配手机端 */
|
||||
|
|
|
@ -3,57 +3,16 @@ import path from 'path'
|
|||
import vue from '@vitejs/plugin-vue'
|
||||
// 引入 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/
|
||||
export default defineConfig({
|
||||
plugins: [vue(), visualizer() as PluginOption, vueJsx()],
|
||||
plugins: [vue(), visualizer() as PluginOption],
|
||||
/* src 别名为 @ */
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': 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 警告
|
||||
define: {
|
||||
__VUE_I18N_FULL_INSTALL__: true,
|
||||
|
|
Loading…
Reference in a new issue