Skip to content

Commit 3924f2e

Browse files
recocopliotzsw
authored andcommitted
refactor: Package LoadingPage component
1 parent e86a8d2 commit 3924f2e

File tree

3 files changed

+6
-114
lines changed

3 files changed

+6
-114
lines changed

components/Common.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@touchstart="onTouchStart"
66
@touchend="onTouchEnd">
77
<transition name="fade">
8-
<Loading v-if="firstLoad"></Loading>
8+
<LoadingPage v-if="firstLoad"></LoadingPage>
99
<Password v-else-if="!isHasKey"></Password>
1010
<div v-else>
1111
<Navbar
@@ -42,12 +42,11 @@ import Navbar from '@theme/components/Navbar.vue'
4242
import Sidebar from '@theme/components/Sidebar.vue'
4343
import { resolveSidebarItems } from '../util'
4444
import Password from '@theme/components/Password'
45-
import Loading from '@theme/components/Loading'
4645
import Valine from '@theme/components/Valine/'
4746
import { setTimeout } from 'timers'
4847
4948
export default {
50-
components: { Sidebar, Navbar, Password, Valine, Loading },
49+
components: { Sidebar, Navbar, Password, Valine },
5150
5251
props: ['sidebar', 'isComment'],
5352

components/Loading.vue

Lines changed: 0 additions & 108 deletions
This file was deleted.

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ module.exports = (options, ctx) => ({
1818
},
1919

2020
plugins: [
21-
'@vuepress-reco/vuepress-plugin-back-to-top',
22-
'@vuepress-reco/vuepress-plugin-pagation',
23-
'@vuepress-reco/vuepress-plugin-screenfull',
21+
'@vuepress-reco/back-to-top',
22+
'@vuepress-reco/loading-page',
23+
'@vuepress-reco/pagation',
24+
'@vuepress-reco/screenfull',
2425
'@vuepress/active-header-links',
2526
['@vuepress/plugin-blog', {
2627
permalink: '/:regular',

0 commit comments

Comments
 (0)