@vuepress/theme-default 2.0.0-rc.66 → 2.0.0-rc.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client/components/VPHome.vue +2 -2
- package/lib/client/components/VPPage.vue +2 -2
- package/lib/client/composables/useDarkMode.js +3 -3
- package/lib/client/layouts/Layout.vue +1 -1
- package/lib/client/layouts/NotFound.vue +1 -1
- package/lib/client/styles/content/normalize.scss +1 -1
- package/lib/client/styles/external-link-icon.scss +1 -1
- package/package.json +18 -18
|
@@ -9,7 +9,7 @@ import { Content } from 'vuepress/client'
|
|
|
9
9
|
<main class="vp-home">
|
|
10
10
|
<VPHomeHero />
|
|
11
11
|
<VPHomeFeatures />
|
|
12
|
-
<div
|
|
12
|
+
<div vp-content>
|
|
13
13
|
<Content />
|
|
14
14
|
</div>
|
|
15
15
|
<VPHomeFooter />
|
|
@@ -30,7 +30,7 @@ import { Content } from 'vuepress/client'
|
|
|
30
30
|
padding-left: 1.5rem;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
[vp-content] {
|
|
34
34
|
margin: 0;
|
|
35
35
|
padding: 0;
|
|
36
36
|
}
|
|
@@ -19,7 +19,7 @@ setupHeaders()
|
|
|
19
19
|
<main class="vp-page">
|
|
20
20
|
<slot name="top" />
|
|
21
21
|
|
|
22
|
-
<div
|
|
22
|
+
<div vp-content>
|
|
23
23
|
<slot name="content-top" />
|
|
24
24
|
|
|
25
25
|
<Content />
|
|
@@ -61,7 +61,7 @@ setupHeaders()
|
|
|
61
61
|
padding-left: 0;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
[vp-content] {
|
|
65
65
|
@include mixins.content-wrapper;
|
|
66
66
|
|
|
67
67
|
& {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useThemeLocaleData } from '@theme/useThemeData';
|
|
2
|
-
import { usePreferredDark, useStorage } from '@vueuse/core';
|
|
3
|
-
import { computed, inject, onMounted, onUnmounted, provide
|
|
2
|
+
import { usePreferredDark, useStorage, watchImmediate } from '@vueuse/core';
|
|
3
|
+
import { computed, inject, onMounted, onUnmounted, provide } from 'vue';
|
|
4
4
|
export const darkModeSymbol = Symbol(__VUEPRESS_DEV__ ? 'darkMode' : '');
|
|
5
5
|
const applyDarkmodeToHTML = (isDarkMode) => {
|
|
6
6
|
const update = (value = isDarkMode.value) => {
|
|
@@ -10,7 +10,7 @@ const applyDarkmodeToHTML = (isDarkMode) => {
|
|
|
10
10
|
el.dataset.theme = value ? 'dark' : 'light';
|
|
11
11
|
};
|
|
12
12
|
onMounted(() => {
|
|
13
|
-
|
|
13
|
+
watchImmediate(isDarkMode, update);
|
|
14
14
|
});
|
|
15
15
|
onUnmounted(() => {
|
|
16
16
|
update();
|
|
@@ -15,7 +15,7 @@ const homeText = themeLocale.value.backToHome ?? 'Back to home'
|
|
|
15
15
|
<template>
|
|
16
16
|
<div class="vp-theme-container" vp-container>
|
|
17
17
|
<main class="page">
|
|
18
|
-
<div
|
|
18
|
+
<div vp-content>
|
|
19
19
|
<h1>404</h1>
|
|
20
20
|
|
|
21
21
|
<blockquote>{{ getMsg() }}</blockquote>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/theme-default",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.69",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-theme",
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"templates"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
41
|
-
"@vuepress/plugin-active-header-links": "2.0.0-rc.
|
|
42
|
-
"@vuepress/plugin-back-to-top": "2.0.0-rc.
|
|
43
|
-
"@vuepress/plugin-copy-code": "2.0.0-rc.
|
|
44
|
-
"@vuepress/plugin-git": "2.0.0-rc.
|
|
45
|
-
"@vuepress/plugin-links-check": "2.0.0-rc.
|
|
46
|
-
"@vuepress/plugin-markdown-hint": "2.0.0-rc.
|
|
47
|
-
"@vuepress/plugin-markdown-tab": "2.0.0-rc.
|
|
48
|
-
"@vuepress/plugin-medium-zoom": "2.0.0-rc.
|
|
49
|
-
"@vuepress/plugin-nprogress": "2.0.0-rc.
|
|
50
|
-
"@vuepress/plugin-palette": "2.0.0-rc.
|
|
51
|
-
"@vuepress/plugin-prismjs": "2.0.0-rc.
|
|
52
|
-
"@vuepress/plugin-seo": "2.0.0-rc.
|
|
53
|
-
"@vuepress/plugin-sitemap": "2.0.0-rc.
|
|
54
|
-
"@vuepress/plugin-theme-data": "2.0.0-rc.
|
|
55
|
-
"@vueuse/core": "^12.
|
|
40
|
+
"@vuepress/helper": "2.0.0-rc.69",
|
|
41
|
+
"@vuepress/plugin-active-header-links": "2.0.0-rc.69",
|
|
42
|
+
"@vuepress/plugin-back-to-top": "2.0.0-rc.69",
|
|
43
|
+
"@vuepress/plugin-copy-code": "2.0.0-rc.69",
|
|
44
|
+
"@vuepress/plugin-git": "2.0.0-rc.68",
|
|
45
|
+
"@vuepress/plugin-links-check": "2.0.0-rc.69",
|
|
46
|
+
"@vuepress/plugin-markdown-hint": "2.0.0-rc.69",
|
|
47
|
+
"@vuepress/plugin-markdown-tab": "2.0.0-rc.69",
|
|
48
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-rc.69",
|
|
49
|
+
"@vuepress/plugin-nprogress": "2.0.0-rc.69",
|
|
50
|
+
"@vuepress/plugin-palette": "2.0.0-rc.69",
|
|
51
|
+
"@vuepress/plugin-prismjs": "2.0.0-rc.69",
|
|
52
|
+
"@vuepress/plugin-seo": "2.0.0-rc.69",
|
|
53
|
+
"@vuepress/plugin-sitemap": "2.0.0-rc.69",
|
|
54
|
+
"@vuepress/plugin-theme-data": "2.0.0-rc.69",
|
|
55
|
+
"@vueuse/core": "^12.3.0",
|
|
56
56
|
"vue": "^3.5.13"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "ab0cb0e717d839b789be6a38721fd9a84caf9c37"
|
|
79
79
|
}
|