diff --git a/docs/site/desktop.js b/docs/site/desktop.js deleted file mode 100644 index 5e8a53b9c..000000000 --- a/docs/site/desktop.js +++ /dev/null @@ -1,3 +0,0 @@ -import mourn from './mourn'; - -mourn(); diff --git a/docs/site/mobile.js b/docs/site/mobile.js index e61ffd3c6..a27993dd5 100644 --- a/docs/site/mobile.js +++ b/docs/site/mobile.js @@ -1,4 +1,3 @@ -import mourn from './mourn'; import Vue from 'vue'; import Locale from '../../src/locale'; import Lazyload from '../../src/lazyload'; @@ -6,8 +5,6 @@ import { get } from '../../src/utils'; import { camelize } from '../../src/utils/format/string'; import enUS from '../../src/locale/lang/en-US'; -mourn(); - Vue.use(Lazyload, { lazyComponent: true, }); diff --git a/docs/site/mourn.js b/docs/site/mourn.js deleted file mode 100644 index b171eed55..000000000 --- a/docs/site/mourn.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function () { - const now = new Date(); - - if ( - now.getFullYear() === 2020 && - now.getMonth() === 3 && - now.getDate() === 4 - ) { - const filter = ` - html{ - filter: grayscale(100%); - -webkit-filter: grayscale(100%); - -moz-filter: grayscale(100%); - } - `; - document.head.insertAdjacentHTML('beforeend', ``); - } -} diff --git a/packages/vant-cli/site/desktop/components/index.vue b/packages/vant-cli/site/desktop/components/index.vue index 09c069b6a..c087db09c 100644 --- a/packages/vant-cli/site/desktop/components/index.vue +++ b/packages/vant-cli/site/desktop/components/index.vue @@ -51,7 +51,7 @@ export default { }, watch: { - // eslint-disable-next-line + // eslint-disable-next-line object-shorthand '$route.path'() { this.setNav(); }, @@ -88,7 +88,7 @@ export default { }, keyboardHandler() { - window.addEventListener('keyup', event => { + window.addEventListener('keyup', (event) => { switch (event.keyCode) { case 37: // left this.keyboardNav('prev'); diff --git a/webpack.config.js b/webpack.config.js index 3921dc523..d5e3de6a0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,7 +5,6 @@ module.exports = function () { return { entry: { - 'site-desktop': ['./docs/site/desktop'], 'site-mobile': ['./docs/site/mobile'], }, };