chore: upgrade & remove unused dependencies (#3892)

This commit is contained in:
三咲智子 2021-10-16 21:00:18 +08:00 committed by GitHub
parent 647367e887
commit 3e2be8eb0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 1109 additions and 1133 deletions

View File

@ -1,68 +0,0 @@
<template>
<header class="nav-bar">
<div class="nav-wrapper">
<div class="header-container">
<a :href="currentRoot" class="icon-link">
<slot name="header-logo"></slot>
<!-- <ElIcon class="logo">
<ElementPlusTextLogo class="nav-logo" />
</ElIcon> -->
</a>
<div class="nav-action-items">
<AlgoliaSearch :options="theme.agolia" />
<nav class="nav-menu">
<slot name="header-nav"></slot>
</nav>
<div :class="{ 'theme-switcher': true, 'is-dark': isDark }">
<ElIcon class="header-icon" @click="$emit('toggle-dark')">
<Dark class="dark-icon" />
<Light class="light-icon" />
</ElIcon>
</div>
<div class="action-icons">
<div class="action-group translations">
<ElIcon class="header-icon translation-icon">
<TranslationIcon />
<div class="dropdown-content">
<ul class="languages-list">
<li
v-for="l in langs"
:key="l"
:class="{ language: true, selected: l === lang }"
@click="switchLang(l)"
>
{{ languageMap[l] }}
</li>
</ul>
</div>
</ElIcon>
</div>
<!-- Since we only have github icon for now so that we need to comment this line -->
<!-- <div v-if class="header-socials"></div> -->
<ElIcon class="header-icon social-icon">
<a
href="https://github.com/element-plus/element-plus"
target="_blank"
rel="noopener noreferrer"
>
<GithubIcon />
</a>
</ElIcon>
</div>
</div>
</div>
</div>
</header>
<div class="sub-nav">
<ToggleSidebarBtn v-if="hasSidebar" @toggle="$emit('toggle-sidebar')" />
<Transition name="shifting">
<ElButton
type="text"
:class="{ 'go-back-top': true, show: shouldShow }"
@click.prevent.stop="scrollToTop"
>{{ 'Back to top' }}</ElButton
>
</Transition>
</div>
</template>

View File

@ -8,19 +8,21 @@
"gen-locale": "rimraf .vitepress/i18n && sucrase-node .vitepress/build/crowdin-generate.ts"
},
"dependencies": {
"@vueuse/core": "^6.4.0",
"@vueuse/core": "^6.5.3",
"axios": "^0.21.4",
"clipboard-copy": "^4.0.1",
"element-plus": "npm:element-plus@latest",
"marked": "^3.0.4",
"marked": "^3.0.7",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0"
},
"devDependencies": {
"@crowdin/cli": "^3.6.5",
"@types/markdown-it": "^12.2.1",
"@types/markdown-it": "^12.2.3",
"cross-env": "^7.0.3",
"markdown-it": "^12.2.0",
"markdown-it-container": "^3.0.0",
"vite-plugin-inspect": "^0.3.7",
"vite-plugin-inspect": "^0.3.9",
"vitepress": "~0.18.1"
}
}

View File

@ -56,8 +56,7 @@
"@element-plus/theme-chalk": "workspace:*",
"@element-plus/tokens": "workspace:*",
"@element-plus/utils": "workspace:*",
"@popperjs/core": "^2.10.1",
"@types/gulp": "^4.0.9",
"@popperjs/core": "^2.10.2",
"@vueuse/core": "~6.1.0",
"async-validator": "^4.0.3",
"dayjs": "^1.10.7",
@ -67,65 +66,58 @@
"resize-observer-polyfill": "^1.5.1"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@pnpm/find-workspace-packages": "^3.1.13",
"@commitlint/cli": "^13.2.1",
"@commitlint/config-conventional": "^13.2.0",
"@pnpm/find-workspace-packages": "^3.1.17",
"@pnpm/logger": "^4.0.0",
"@pnpm/types": "^7.4.0",
"@rollup/plugin-alias": "^3.1.5",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^3.0.0",
"@rollup/plugin-typescript": "^8.2.5",
"@sucrase/jest-plugin": "^2.1.1",
"@types/gulp": "^4.0.9",
"@types/jest": "^26.0.24",
"@types/lodash": "^4.14.173",
"@types/lodash": "^4.14.175",
"@types/sass": "^1.16.1",
"@types/through2": "^2.0.36",
"@typescript-eslint/eslint-plugin": "^4.31.2",
"@typescript-eslint/parser": "^4.31.2",
"@vue/compiler-sfc": "^3.2.18",
"@vue/component-compiler-utils": "^3.2.2",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"@vue/compiler-sfc": "^3.2.20",
"@vue/test-utils": "2.0.0-rc.15",
"algoliasearch": "^4.10.5",
"chalk": "^4.1.2",
"clipboard-copy": "^4.0.1",
"components-helper": "^1.0.4",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"esbuild": "~0.13.2",
"eslint": "^7.7.0",
"esbuild": "~0.13.6",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-define-config": "^1.1.1",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^7.18.0",
"eslint-plugin-vue": "^7.19.1",
"expect-type": "^0.12.0",
"fast-glob": "^3.2.7",
"file-save": "^0.2.0",
"gulp": "^4.0.2",
"gulp-typescript": "^6.0.0-alpha.1",
"husky": "^7.0.2",
"jest": "^26.6.3",
"lint-staged": "^11.1.2",
"lint-staged": "^11.2.3",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1",
"rimraf": "^3.0.2",
"rollup": "^2.57.0",
"rollup": "^2.58.0",
"rollup-plugin-css-only": "^3.1.0",
"rollup-plugin-esbuild": "^4.5.0",
"rollup-plugin-filesize": "^9.1.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^6.0.0",
"sass": "^1.42.1",
"sucrase": "^3.20.1",
"sass": "^1.43.2",
"sucrase": "^3.20.2",
"through2": "^4.0.2",
"ts-jest": "^26.5.6",
"ts-morph": "^12.0.0",
"typescript": "^4.4.3",
"vue": "^3.2.18",
"typescript": "^4.4.4",
"vue": "^3.2.20",
"vue-jest": "5.0.0-alpha.10",
"vue-router": "^4.0.11",
"vue-tsc": "^0.3.0"
"vue-router": "^4.0.12",
"vue-tsc": "^0.28.4"
}
}

View File

@ -35,7 +35,7 @@
"vue": "^3.2.0"
},
"dependencies": {
"@popperjs/core": "^2.10.1",
"@popperjs/core": "^2.10.2",
"@vueuse/core": "~6.1.0",
"async-validator": "^4.0.3",
"dayjs": "^1.10.7",

View File

@ -34,8 +34,7 @@
"gulp-autoprefixer": "^8.0.0",
"gulp-clean-css": "^4.3.0",
"gulp-rename": "^2.0.0",
"gulp-sass": "^5.0.0",
"sass": "^1.42.1"
"gulp-sass": "^5.0.0"
},
"gitHead": "c69724230befa8fede0e6b9c37fb0b7e39fd7cdd"
}

View File

@ -5,7 +5,7 @@
"dev": "vite"
},
"dependencies": {
"@vitejs/plugin-vue": "^1.9.2",
"vite": "^2.5.10"
"@vitejs/plugin-vue": "^1.9.3",
"vite": "^2.6.7"
}
}

File diff suppressed because it is too large Load Diff