Skip to content

Commit

Permalink
chore: remove element
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Dec 15, 2024
1 parent 78b4da6 commit 4818522
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 212 deletions.
174 changes: 0 additions & 174 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"postinstall": "simple-git-hooks && wxt prepare"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@vueuse/core": "^12.0.0",
"axios": "^1.7.8",
"buffer-from": "^1.1.2",
Expand All @@ -32,7 +31,6 @@
"cos-js-sdk-v5": "^1.8.6",
"crypto-js": "^4.2.0",
"csstype": "^3.1.3",
"element-plus": "^2.8.8",
"es-toolkit": "^1.27.0",
"form-data": "4.0.1",
"highlight.js": "^11.10.0",
Expand Down
10 changes: 0 additions & 10 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,4 @@ body {
background: #f0f0f0;
}
}
// 修复分栏线负数 margin 导致的轴向滚动条
.el-dropdown-menu__item--divided:before {
margin: 0;
}
// 修复颜色选择器下拉箭头位置
.el-icon.el-color-picker__icon.is-icon-arrow-down {
position: absolute;
}
</style>
5 changes: 0 additions & 5 deletions src/assets/less/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ section {
height: 100%;
}


.el-message__icon {
display: none;
}

.web-title {
margin: 0 15px 0 5px;
}
Expand Down
14 changes: 0 additions & 14 deletions src/element/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createPinia } from 'pinia'
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from './element'

import 'virtual:uno.css'
import 'codemirror/lib/codemirror.css'
Expand All @@ -24,6 +23,5 @@ import 'codemirror/addon/hint/css-hint'
const app = createApp(App)

app.use(createPinia())
app.use(ElementPlus)

app.mount(`#app`)
2 changes: 0 additions & 2 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ export function exportHTML(primaryColor: string) {
setStyles(element)

const htmlStr = element.innerHTML
.replaceAll(`var(--el-text-color-regular)`, `#3f3f3f`)
.replaceAll(`var(--blockquote-background)`, `#f7f7f7`)
.replaceAll(`var(--md-primary-color)`, primaryColor)
.replaceAll(/--md-primary-color:.+?;/g, ``)

Expand Down
5 changes: 2 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vue from '@vitejs/plugin-vue'
import { visualizer } from 'rollup-plugin-visualizer'
import UnoCSS from 'unocss/vite'
import AutoImport from 'unplugin-auto-import/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import Components from 'unplugin-vue-components/vite'
import { defineConfig } from 'vite'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
Expand Down Expand Up @@ -33,10 +32,10 @@ export default defineConfig({
filename: `stats.html`,
}),
AutoImport({
resolvers: [ElementPlusResolver()],
resolvers: [],
}),
Components({
resolvers: [ElementPlusResolver()],
resolvers: [],
}),
],
resolve: {
Expand Down

0 comments on commit 4818522

Please sign in to comment.