♻️: 提炼 devDependencies 公共依赖

This commit is contained in:
就眠儀式 2022-05-11 09:31:41 +08:00
parent 385573cf5d
commit eafde8fa76
8 changed files with 84 additions and 1245 deletions

View File

@ -40,7 +40,20 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.2.0",
"husky": "^7.0.4",
"prettier": "^2.5.1"
"prettier": "^2.5.1",
"@babel/core": "^7.17.9",
"@babel/preset-env": "^7.15.8",
"@babel/preset-typescript": "^7.15.0",
"@rollup/plugin-babel": "^5.3.0",
"@types/node": "^16.11.9",
"@vitejs/plugin-vue": "^2.3.1",
"@vue/compiler-sfc": "^3.2.33",
"@vue/server-renderer": "^3.2.33",
"less": "^4.1.2",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"typescript": "^4.6.3",
"vite": "2.9.8"
},
"config": {
"commitizen": {

View File

@ -42,21 +42,6 @@
"uuid": "^8.3.2",
"vue-i18n": "^9.1.9"
},
"devDependencies": {
"@babel/core": "^7.17.9",
"@babel/preset-env": "^7.15.8",
"@babel/preset-typescript": "^7.15.0",
"@rollup/plugin-babel": "^5.3.0",
"@types/node": "^16.11.9",
"@vitejs/plugin-vue": "^2.3.1",
"@vue/compiler-sfc": "^3.2.33",
"@vue/server-renderer": "^3.2.33",
"less": "^4.1.2",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"typescript": "^4.6.3",
"vite": "2.9.8"
},
"files": [
"lib",
"es",

View File

@ -198,17 +198,18 @@ const onFullscreenchange = function (event: KeyboardEvent) {
};
/**
* 屏蔽 F11 按键原生事件, fullscreenAPI 代替
* 屏蔽 F11 按键原生事件, fullscreenAPI 代替
* @param event 键盘事件
*/
const onKeydownF11 = function(event: KeyboardEvent) {
const onKeydownF11 = function (event: KeyboardEvent) {
// DOM
let isRootNodeFullscreen = props.immersive && (!activeEl.value || activeEl.value === defaultElement)
if(event.key === "F11" && isRootNodeFullscreen){
let isRootNodeFullscreen =
props.immersive && (!activeEl.value || activeEl.value === defaultElement);
if (event.key === "F11" && isRootNodeFullscreen) {
event.preventDefault();
toggle();
}
}
};
onMounted(() => {
//@ts-ignore

View File

@ -17,25 +17,12 @@
"pinia-plugin-persist": "^1.0.0"
},
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@babel/preset-typescript": "^7.15.0",
"@rollup/plugin-babel": "^5.3.0",
"@types/markdown-it": "^12.2.3",
"@types/markdown-it-container": "^2.0.4",
"@types/node": "^16.11.9",
"@types/prettier": "^2.4.4",
"@vitejs/plugin-vue": "^2.3.1",
"@vue/compiler-sfc": "^3.2.33",
"@vue/server-renderer": "^3.2.33",
"escape-html": "^1.0.3",
"less": "^4.1.2",
"markdown-it-container": "^3.0.0",
"prismjs": "^1.25.0",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"typescript": "^4.6.3",
"vite": "2.9.8",
"vite-plugin-md": "^0.12.4"
},
"files": [

View File

@ -20,7 +20,7 @@
font-size: 14px;
width: 50px;
max-width: 180px;
height: 50px;
height: 50px;
border-top: 1px solid whitesmoke;
padding: 0 10px;
padding-left: 28px;

View File

@ -26,21 +26,6 @@
],
"author": "就眠儀式",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@babel/preset-typescript": "^7.15.0",
"@rollup/plugin-babel": "^5.3.0",
"@types/node": "^16.11.9",
"@vitejs/plugin-vue": "^2.3.1",
"@vue/compiler-sfc": "^3.2.33",
"@vue/server-renderer": "^3.2.33",
"less": "^4.1.2",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"typescript": "^4.6.3",
"vite": "2.9.8"
},
"files": [
"lib",
"types"

View File

@ -23,21 +23,6 @@
"layui",
"vue"
],
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@babel/preset-typescript": "^7.15.0",
"@rollup/plugin-babel": "^5.3.0",
"@types/node": "^16.11.9",
"@vitejs/plugin-vue": "^2.3.1",
"@vue/compiler-sfc": "^3.2.33",
"@vue/server-renderer": "^3.2.33",
"less": "^4.1.2",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"typescript": "^4.6.3",
"vite": "2.9.8"
},
"files": [
"lib",
"types"

1243
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff