@vuepress/theme-default 2.0.0-rc.97 → 2.0.0-rc.99
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
|
-
import {
|
|
3
|
+
import { useFrontmatter } from 'vuepress/client'
|
|
4
4
|
import type { DefaultThemeHomePageFrontmatter } from '../../shared/index.js'
|
|
5
5
|
|
|
6
|
-
const frontmatter =
|
|
6
|
+
const frontmatter = useFrontmatter<DefaultThemeHomePageFrontmatter>()
|
|
7
7
|
|
|
8
8
|
const footer = computed(() => frontmatter.value.footer)
|
|
9
9
|
const footerHtml = computed(() => frontmatter.value.footerHtml)
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import type { ThemeDataRef, ThemeLocaleDataRef } from '@vuepress/plugin-theme-data/client';
|
|
2
|
-
import type { ClientData
|
|
2
|
+
import type { ClientData } from 'vuepress/client';
|
|
3
3
|
import type { DefaultThemeData, DefaultThemeNormalPageFrontmatter, DefaultThemePageData } from '../../shared/index.js';
|
|
4
|
-
export interface Data<PageFrontmatter extends Record<string, unknown> = DefaultThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = DefaultThemePageData> extends Pick<ClientData, '
|
|
5
|
-
page: PageDataRef<PageData>;
|
|
6
|
-
frontmatter: PageFrontmatterRef<PageFrontmatter>;
|
|
7
|
-
lang: PageLangRef;
|
|
8
|
-
site: SiteDataRef;
|
|
9
|
-
siteLocale: SiteLocaleDataRef;
|
|
4
|
+
export interface Data<PageFrontmatter extends Record<string, unknown> = DefaultThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = DefaultThemePageData> extends Pick<ClientData<PageFrontmatter, PageData>, 'frontmatter' | 'head' | 'headTitle' | 'lang' | 'layouts' | 'page' | 'pageComponent' | 'pageLayout' | 'redirects' | 'routeLocale' | 'routePath' | 'routes' | 'site' | 'siteLocale'> {
|
|
10
5
|
theme: ThemeDataRef<DefaultThemeData>;
|
|
11
6
|
themeLocale: ThemeLocaleDataRef<DefaultThemeData>;
|
|
12
7
|
}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { useThemeData, useThemeLocaleData, } from '@vuepress/plugin-theme-data/client';
|
|
2
|
-
import {
|
|
3
|
-
export const useData = () => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
frontmatter: pageFrontmatter,
|
|
9
|
-
lang: pageLang,
|
|
10
|
-
site: siteData,
|
|
11
|
-
siteLocale: siteLocaleData,
|
|
12
|
-
theme: useThemeData(),
|
|
13
|
-
themeLocale: useThemeLocaleData(),
|
|
14
|
-
};
|
|
15
|
-
};
|
|
2
|
+
import { useData as _useData } from 'vuepress/client';
|
|
3
|
+
export const useData = () => ({
|
|
4
|
+
..._useData(),
|
|
5
|
+
theme: useThemeData(),
|
|
6
|
+
themeLocale: useThemeLocaleData(),
|
|
7
|
+
});
|
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.99",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-theme",
|
|
@@ -37,21 +37,21 @@
|
|
|
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.
|
|
40
|
+
"@vuepress/helper": "2.0.0-rc.99",
|
|
41
|
+
"@vuepress/plugin-active-header-links": "2.0.0-rc.98",
|
|
42
|
+
"@vuepress/plugin-back-to-top": "2.0.0-rc.99",
|
|
43
|
+
"@vuepress/plugin-copy-code": "2.0.0-rc.99",
|
|
44
|
+
"@vuepress/plugin-git": "2.0.0-rc.99",
|
|
45
|
+
"@vuepress/plugin-links-check": "2.0.0-rc.99",
|
|
46
|
+
"@vuepress/plugin-markdown-hint": "2.0.0-rc.99",
|
|
47
|
+
"@vuepress/plugin-markdown-tab": "2.0.0-rc.99",
|
|
48
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-rc.99",
|
|
49
|
+
"@vuepress/plugin-nprogress": "2.0.0-rc.99",
|
|
50
|
+
"@vuepress/plugin-palette": "2.0.0-rc.99",
|
|
51
|
+
"@vuepress/plugin-prismjs": "2.0.0-rc.99",
|
|
52
|
+
"@vuepress/plugin-seo": "2.0.0-rc.99",
|
|
53
|
+
"@vuepress/plugin-sitemap": "2.0.0-rc.99",
|
|
54
|
+
"@vuepress/plugin-theme-data": "2.0.0-rc.99",
|
|
55
55
|
"@vueuse/core": "^13.1.0",
|
|
56
56
|
"vue": "^3.5.13"
|
|
57
57
|
},
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "c35484d9648be6b507ff41d274ffc6372b16d53f"
|
|
79
79
|
}
|