vitepress-theme-teek 1.3.2 → 1.3.4
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/es/components/common/ArticlePage/src/instance.d.ts +1 -1
- package/es/components/common/Avatar/src/avatar.d.ts +1 -1
- package/es/components/common/Breadcrumb/src/namespace.d.ts +1 -1
- package/es/components/common/Message/src/message.d.ts +1 -1
- package/es/components/common/Pagination/src/components/next.d.ts +1 -1
- package/es/components/common/Pagination/src/components/prev.d.ts +1 -1
- package/es/components/common/Pagination/src/pagination.d.ts +1 -1
- package/es/components/common/Segmented/src/instance.d.ts +1 -1
- package/es/components/common/Segmented/src/segmented.d.ts +1 -1
- package/es/components/common/VpContainer/src/index.vue2.mjs +7 -13
- package/es/components/common/index.mjs +5 -5
- package/es/components/theme/ArticleOverviewPage/src/index.vue2.mjs +5 -2
- package/es/components/theme/ArticleTitle/src/index.vue.d.ts +1 -1
- package/es/components/theme/ConfigProvider/index.d.ts +1 -1
- package/es/components/theme/Layout/src/index.vue2.mjs +16 -2
- package/es/components/theme/LoginPage/src/index.vue2.mjs +7 -7
- package/es/components/theme/LoginPage/src/login.d.ts +1 -1
- package/es/components/theme/RightBottomButton/src/namespace.d.ts +1 -1
- package/es/components/theme/ThemeEnhance/src/components/BaseTemplate.vue.d.ts +1 -1
- package/es/components/theme/ThemeEnhance/src/components/Title.vue.d.ts +1 -1
- package/es/components/theme/ThemeEnhance/src/index.vue2.mjs +1 -1
- package/es/components/theme/ThemeEnhance/src/namespace.d.ts +1 -1
- package/es/config/interface/appreciation.d.ts +1 -1
- package/es/config/interface/articleAnalyze.d.ts +1 -1
- package/es/config/interface/articleShare.d.ts +1 -1
- package/es/config/interface/blogger.d.ts +1 -1
- package/es/config/interface/codeBlock.d.ts +1 -1
- package/es/config/interface/friendLink.d.ts +1 -1
- package/es/config/interface/notice.d.ts +1 -1
- package/es/config/interface/post.d.ts +2 -2
- package/es/config/interface/social.d.ts +1 -1
- package/es/config/types.d.ts +10 -2
- package/es/hooks/cssModule/namespace.module.scss.d.ts +8 -0
- package/es/icons.d.ts +1 -1
- package/es/index.css +1 -1
- package/es/index.d.ts +7 -7
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +1 -1
- package/index.js +42 -33
- package/index.min.js +70 -70
- package/index.min.mjs +75 -75
- package/index.mjs +42 -33
- package/lib/components/common/ArticlePage/src/instance.d.ts +1 -1
- package/lib/components/common/Avatar/src/avatar.d.ts +1 -1
- package/lib/components/common/Breadcrumb/src/namespace.d.ts +1 -1
- package/lib/components/common/Message/src/message.d.ts +1 -1
- package/lib/components/common/Pagination/src/components/next.d.ts +1 -1
- package/lib/components/common/Pagination/src/components/prev.d.ts +1 -1
- package/lib/components/common/Pagination/src/pagination.d.ts +1 -1
- package/lib/components/common/Segmented/src/instance.d.ts +1 -1
- package/lib/components/common/Segmented/src/segmented.d.ts +1 -1
- package/lib/components/common/VpContainer/src/index.vue2.js +6 -12
- package/lib/components/common/index.js +16 -16
- package/lib/components/theme/ArticleOverviewPage/src/index.vue2.js +4 -1
- package/lib/components/theme/ArticleTitle/src/index.vue.d.ts +1 -1
- package/lib/components/theme/ConfigProvider/index.d.ts +1 -1
- package/lib/components/theme/Layout/src/index.vue2.js +16 -2
- package/lib/components/theme/LoginPage/src/index.vue2.js +6 -6
- package/lib/components/theme/LoginPage/src/login.d.ts +1 -1
- package/lib/components/theme/RightBottomButton/src/namespace.d.ts +1 -1
- package/lib/components/theme/ThemeEnhance/src/components/BaseTemplate.vue.d.ts +1 -1
- package/lib/components/theme/ThemeEnhance/src/components/Title.vue.d.ts +1 -1
- package/lib/components/theme/ThemeEnhance/src/index.vue2.js +1 -1
- package/lib/components/theme/ThemeEnhance/src/namespace.d.ts +1 -1
- package/lib/config/interface/appreciation.d.ts +1 -1
- package/lib/config/interface/articleAnalyze.d.ts +1 -1
- package/lib/config/interface/articleShare.d.ts +1 -1
- package/lib/config/interface/blogger.d.ts +1 -1
- package/lib/config/interface/codeBlock.d.ts +1 -1
- package/lib/config/interface/friendLink.d.ts +1 -1
- package/lib/config/interface/notice.d.ts +1 -1
- package/lib/config/interface/post.d.ts +2 -2
- package/lib/config/interface/social.d.ts +1 -1
- package/lib/config/types.d.ts +10 -2
- package/lib/hooks/cssModule/namespace.module.scss.d.ts +8 -0
- package/lib/icons.d.ts +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +7 -7
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/components/common/article-page.scss +1 -1
- package/theme-chalk/src/components/theme/login-page.scss +14 -0
- package/theme-chalk/tk-base.css +1 -1
- package/theme-chalk/tk-login-page.css +1 -1
- package/6460aaa01f572ba7.png +0 -0
- package/es/6460aaa01f572ba7.png +0 -0
- package/es/static/img/loginBg.png.mjs +0 -3
- package/lib/6460aaa01f572ba7.png +0 -0
- package/lib/static/img/loginBg.png.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as ArticlePage } from './index.vue';
|
|
2
|
-
import { default as DocAsideOutlineItem } from './
|
|
2
|
+
import { default as DocAsideOutlineItem } from './components/DocAsideOutlineItem.vue';
|
|
3
3
|
export type TkArticlePageInstance = InstanceType<typeof ArticlePage>;
|
|
4
4
|
export type TkDocAsideOutlineItemInstance = InstanceType<typeof DocAsideOutlineItem>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppContext, VNode } from 'vue';
|
|
2
|
-
import { TkIconProps } from '
|
|
2
|
+
import { TkIconProps } from '../../Icon';
|
|
3
3
|
export declare const messageTypes: readonly ["primary", "success", "info", "warning", "error"];
|
|
4
4
|
export type MessageType = (typeof messageTypes)[number];
|
|
5
5
|
export interface MessageConfigContext {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef, InjectionKey, ModelRef } from 'vue';
|
|
2
|
-
import { TkIconProps } from '
|
|
2
|
+
import { TkIconProps } from '../../Icon';
|
|
3
3
|
export interface PaginationContext {
|
|
4
4
|
currentPage?: ModelRef<number>;
|
|
5
5
|
pageCount?: ComputedRef<number>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as Segmented } from './
|
|
1
|
+
import { default as Segmented } from './Segmented.vue';
|
|
2
2
|
import { default as SegmentedItem } from './SegmentedItem.vue';
|
|
3
3
|
export type TkSegmentedInstance = InstanceType<typeof Segmented>;
|
|
4
4
|
export type TkSegmentedItemInstance = InstanceType<typeof SegmentedItem>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useSlots, computed, createElementBlock, createCommentVNode, openBlock, normalizeClass, unref, createElementVNode, renderSlot
|
|
1
|
+
import { defineComponent, useSlots, computed, createElementBlock, createCommentVNode, openBlock, normalizeClass, unref, createElementVNode, renderSlot } from 'vue';
|
|
2
2
|
import 'vitepress';
|
|
3
3
|
import { useNamespace } from '../../../../hooks/useNamespace.mjs';
|
|
4
4
|
import '../../../../hooks/useZIndex.mjs';
|
|
@@ -7,7 +7,9 @@ const _hoisted_1 = {
|
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "custom-block-title"
|
|
9
9
|
};
|
|
10
|
-
const _hoisted_2 =
|
|
10
|
+
const _hoisted_2 = ["innerHTML"];
|
|
11
|
+
const _hoisted_3 = { key: 1 };
|
|
12
|
+
const _hoisted_4 = ["innerHTML"];
|
|
11
13
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
14
|
...{ name: "VpContainer" },
|
|
13
15
|
__name: "index",
|
|
@@ -37,20 +39,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
39
|
[
|
|
38
40
|
hasTitle.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
39
41
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
40
|
-
|
|
41
|
-
toDisplayString(_ctx.title),
|
|
42
|
-
1
|
|
43
|
-
/* TEXT */
|
|
44
|
-
)
|
|
42
|
+
createElementVNode("span", { innerHTML: _ctx.title }, null, 8, _hoisted_2)
|
|
45
43
|
])
|
|
46
44
|
])) : createCommentVNode("v-if", true),
|
|
47
|
-
hasText.value ? (openBlock(), createElementBlock("p",
|
|
45
|
+
hasText.value ? (openBlock(), createElementBlock("p", _hoisted_3, [
|
|
48
46
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
49
|
-
|
|
50
|
-
toDisplayString(_ctx.text),
|
|
51
|
-
1
|
|
52
|
-
/* TEXT */
|
|
53
|
-
)
|
|
47
|
+
createElementVNode("span", { innerHTML: _ctx.text }, null, 8, _hoisted_4)
|
|
54
48
|
])
|
|
55
49
|
])) : createCommentVNode("v-if", true)
|
|
56
50
|
],
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export { createImageViewer } from './ImageViewer/index.mjs';
|
|
2
1
|
export { default as TkArticlePage } from './ArticlePage/src/index.vue2.mjs';
|
|
3
2
|
export { default as TkDocAsideOutline } from './ArticlePage/src/components/DocAsideOutline.vue2.mjs';
|
|
4
3
|
export { default as TkAvatar } from './Avatar/src/index.vue2.mjs';
|
|
5
4
|
export { default as TkBreadcrumb } from './Breadcrumb/src/Breadcrumb.vue2.mjs';
|
|
6
5
|
export { default as TkBreadcrumbItem } from './Breadcrumb/src/BreadcrumbItem.vue2.mjs';
|
|
6
|
+
export { default as TkFocusTrap } from './FocusTrap/src/index.vue.mjs';
|
|
7
7
|
export { default as TkIcon } from './Icon/src/index.vue2.mjs';
|
|
8
|
-
export {
|
|
8
|
+
export { addCollection as addIcons } from '@iconify/vue';
|
|
9
|
+
export { createImageViewer } from './ImageViewer/index.mjs';
|
|
9
10
|
export { default as TkInputSlide } from './InputSlide/src/index.vue2.mjs';
|
|
10
11
|
export { default as TkMessage } from './Message/src/method.mjs';
|
|
12
|
+
export { getInstance, getLastOffset, getOffsetOrSpace, instances } from './Message/src/instance.mjs';
|
|
11
13
|
export { default as TkPagination } from './Pagination/src/index.vue2.mjs';
|
|
12
14
|
export { default as TkPopover } from './Popover/src/index.vue2.mjs';
|
|
13
15
|
export { default as TkSegmented } from './Segmented/src/Segmented.vue2.mjs';
|
|
@@ -16,6 +18,4 @@ export { default as TkTitleTag } from './TitleTag/src/index.vue2.mjs';
|
|
|
16
18
|
export { default as TkTransitionCollapse } from './TransitionCollapse/src/index.vue2.mjs';
|
|
17
19
|
export { default as TkVerifyCode } from './VerifyCode/src/index.vue2.mjs';
|
|
18
20
|
export { default as TkVpContainer } from './VpContainer/src/index.vue2.mjs';
|
|
19
|
-
export { default as
|
|
20
|
-
export { addCollection as addIcons } from '@iconify/vue';
|
|
21
|
-
export { getInstance, getLastOffset, getOffsetOrSpace, instances } from './Message/src/instance.mjs';
|
|
21
|
+
export { default as TkImageViewer } from './ImageViewer/src/index.vue2.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, createBlock, openBlock, unref, normalizeClass, withCtx, createElementBlock, createCommentVNode, createVNode, createTextVNode, createElementVNode, toDisplayString, Fragment, renderList } from 'vue';
|
|
1
|
+
import { defineComponent, computed, resolveComponent, createBlock, openBlock, unref, normalizeClass, withCtx, createElementBlock, createCommentVNode, createVNode, createTextVNode, createElementVNode, toDisplayString, Fragment, renderList, resolveDynamicComponent } from 'vue';
|
|
2
2
|
import { useData, withBase } from 'vitepress';
|
|
3
3
|
import { formatDate } from '../../../../helper/dist/index.mjs';
|
|
4
4
|
import { useLocale } from '../../../../hooks/useLocale.mjs';
|
|
@@ -6,6 +6,7 @@ import { useNamespace } from '../../../../hooks/useNamespace.mjs';
|
|
|
6
6
|
import '../../../../hooks/useZIndex.mjs';
|
|
7
7
|
import { usePosts, useTeekConfig } from '../../ConfigProvider/index.mjs';
|
|
8
8
|
import _sfc_main$1 from '../../../common/ArticlePage/src/index.vue2.mjs';
|
|
9
|
+
import { createDynamicComponent } from '../../ArticleTitle/src/compile.mjs';
|
|
9
10
|
|
|
10
11
|
const _hoisted_1 = { key: 0 };
|
|
11
12
|
const _hoisted_2 = ["href", "aria-label"];
|
|
@@ -167,7 +168,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
167
168
|
createElementVNode("a", {
|
|
168
169
|
href: data.url && unref(withBase)(data.url),
|
|
169
170
|
"aria-label": data.title
|
|
170
|
-
},
|
|
171
|
+
}, [
|
|
172
|
+
data.title ? (openBlock(), createBlock(resolveDynamicComponent(unref(createDynamicComponent)(data.title)), { key: 0 })) : createCommentVNode("v-if", true)
|
|
173
|
+
], 8, _hoisted_7)
|
|
171
174
|
]),
|
|
172
175
|
createElementVNode(
|
|
173
176
|
"td",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TkContentData } from '../../../../config';
|
|
2
|
-
import { TkTitleTagProps } from '
|
|
2
|
+
import { TkTitleTagProps } from '../../../common/TitleTag';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
post: TkContentData;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PostData } from '
|
|
1
|
+
import { PostData } from '../../../config/post/types';
|
|
2
2
|
import { TeekConfig } from '../../../config';
|
|
3
3
|
import { Component, Ref, InjectionKey, DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComputedRef } from 'vue';
|
|
4
4
|
export declare const postsContext: InjectionKey<PostData>;
|
|
@@ -65,6 +65,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
comment: { provider: "" },
|
|
66
66
|
articleUpdate: { enabled: true },
|
|
67
67
|
articleTopTip: void 0,
|
|
68
|
+
articleBottomTip: void 0,
|
|
68
69
|
articleShare: {},
|
|
69
70
|
appreciation: {},
|
|
70
71
|
riskLink: { enabled: false }
|
|
@@ -87,6 +88,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
88
|
const topTipConfig = computed(() => {
|
|
88
89
|
return teekConfig.value.articleTopTip?.(frontmatter.value, localeIndex.value, page.value);
|
|
89
90
|
});
|
|
91
|
+
const bottomTipConfig = computed(() => {
|
|
92
|
+
return teekConfig.value.articleBottomTip?.(frontmatter.value, localeIndex.value, page.value);
|
|
93
|
+
});
|
|
90
94
|
const themeSizeAttribute = ns.joinNamespace("theme-size");
|
|
91
95
|
watch(
|
|
92
96
|
() => teekConfig.value.themeSize,
|
|
@@ -111,6 +115,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
115
|
"home-hero-before",
|
|
112
116
|
"nav-bar-content-after",
|
|
113
117
|
"layout-bottom",
|
|
118
|
+
"doc-footer-before",
|
|
114
119
|
"doc-before",
|
|
115
120
|
"doc-after",
|
|
116
121
|
"aside-bottom",
|
|
@@ -237,10 +242,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
237
242
|
"sidebar-nav-before": withCtx(() => [
|
|
238
243
|
createVNode(unref(_sfc_main$o))
|
|
239
244
|
]),
|
|
245
|
+
"doc-footer-before": withCtx(() => [
|
|
246
|
+
bottomTipConfig.value ? (openBlock(), createBlock(
|
|
247
|
+
unref(_sfc_main$n),
|
|
248
|
+
normalizeProps(mergeProps({ key: 0 }, bottomTipConfig.value)),
|
|
249
|
+
null,
|
|
250
|
+
16
|
|
251
|
+
/* FULL_PROPS */
|
|
252
|
+
)) : createCommentVNode("v-if", true)
|
|
253
|
+
]),
|
|
240
254
|
"doc-before": withCtx(() => [
|
|
241
255
|
renderSlot(_ctx.$slots, "doc-before"),
|
|
242
256
|
renderSlot(_ctx.$slots, "teek-article-analyze-before"),
|
|
243
257
|
unref(frontmatter).article !== false ? (openBlock(), createBlock(unref(_sfc_main$j), { key: 0 })) : createCommentVNode("v-if", true),
|
|
258
|
+
renderSlot(_ctx.$slots, "teek-article-analyze-after"),
|
|
244
259
|
createVNode(unref(_sfc_main$k)),
|
|
245
260
|
createVNode(unref(_sfc_main$l)),
|
|
246
261
|
!unref(teekConfig).codeBlock.disabled ? (openBlock(), createBlock(unref(_sfc_main$m), { key: 1 })) : createCommentVNode("v-if", true),
|
|
@@ -250,8 +265,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
250
265
|
null,
|
|
251
266
|
16
|
|
252
267
|
/* FULL_PROPS */
|
|
253
|
-
)) : createCommentVNode("v-if", true)
|
|
254
|
-
renderSlot(_ctx.$slots, "teek-article-analyze-after")
|
|
268
|
+
)) : createCommentVNode("v-if", true)
|
|
255
269
|
]),
|
|
256
270
|
"doc-after": withCtx(() => [
|
|
257
271
|
renderSlot(_ctx.$slots, "doc-after"),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, markRaw, createElementBlock, openBlock, unref, normalizeClass, createElementVNode, createCommentVNode, toDisplayString, Fragment, renderList, createBlock, createVNode, withDirectives, withKeys, vModelDynamic, resolveDynamicComponent } from 'vue';
|
|
2
|
-
import { useRouter, useData } from 'vitepress';
|
|
2
|
+
import { useRouter, useData, withBase } from 'vitepress';
|
|
3
3
|
import { isClient } from '../../../../helper/dist/index.mjs';
|
|
4
4
|
import { useLocale } from '../../../../hooks/useLocale.mjs';
|
|
5
5
|
import { useNamespace } from '../../../../hooks/useNamespace.mjs';
|
|
6
6
|
import '../../../../hooks/useZIndex.mjs';
|
|
7
|
-
import loginBgImg from '../../../../static/img/loginBg.png.mjs';
|
|
8
7
|
import userIcon from '../../../../static/icons/user.mjs';
|
|
9
8
|
import refreshRightIcon from '../../../../static/icons/refreshRight.mjs';
|
|
10
9
|
import successFilledIcon from '../../../../static/icons/successFilled.mjs';
|
|
@@ -41,7 +40,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
40
|
const imgCode = ref("");
|
|
42
41
|
const loginForm = reactive({
|
|
43
42
|
username: {
|
|
44
|
-
model: "
|
|
43
|
+
model: "",
|
|
45
44
|
focusModel: false,
|
|
46
45
|
errorModel: false,
|
|
47
46
|
icon: userIcon,
|
|
@@ -49,7 +48,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
48
|
type: "text"
|
|
50
49
|
},
|
|
51
50
|
password: {
|
|
52
|
-
model: "
|
|
51
|
+
model: "",
|
|
53
52
|
focusModel: false,
|
|
54
53
|
errorModel: false,
|
|
55
54
|
icon: lockIcon,
|
|
@@ -230,20 +229,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
230
229
|
class: normalizeClass(unref(ns).e("wrapper"))
|
|
231
230
|
},
|
|
232
231
|
[
|
|
233
|
-
|
|
232
|
+
unref(frontmatter).leftImg ? (openBlock(), createElementBlock(
|
|
234
233
|
"div",
|
|
235
234
|
{
|
|
235
|
+
key: 0,
|
|
236
236
|
class: normalizeClass(unref(ns).e("left"))
|
|
237
237
|
},
|
|
238
238
|
[
|
|
239
239
|
createElementVNode("img", {
|
|
240
|
-
src: unref(
|
|
240
|
+
src: unref(withBase)(unref(frontmatter).leftImg),
|
|
241
241
|
alt: "login"
|
|
242
242
|
}, null, 8, _hoisted_2)
|
|
243
243
|
],
|
|
244
244
|
2
|
|
245
245
|
/* CLASS */
|
|
246
|
-
),
|
|
246
|
+
)) : createCommentVNode("v-if", true),
|
|
247
247
|
createElementVNode(
|
|
248
248
|
"div",
|
|
249
249
|
{
|
|
@@ -38,7 +38,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
key: 0,
|
|
39
39
|
class: normalizeClass([unref(ns).b(), unref(ns).is(_ctx.position), "flx-align-center"]),
|
|
40
40
|
"popper-class": unref(ns).e("popover"),
|
|
41
|
-
"y-offset": -
|
|
41
|
+
"y-offset": -15
|
|
42
42
|
}, {
|
|
43
43
|
reference: withCtx(() => [
|
|
44
44
|
createVNode(unref(_sfc_main$8), {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImageViewerProps } from '
|
|
1
|
+
import { ImageViewerProps } from '../../components/common/ImageViewer/src/imageViewer';
|
|
2
2
|
export type ArticleInfoPosition = "post" | "article";
|
|
3
3
|
export interface ArticleAnalyze {
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ImageViewerProps } from '
|
|
2
|
-
import { TitleTagProps } from '
|
|
1
|
+
import { ImageViewerProps } from '../../components/common/ImageViewer/src/imageViewer';
|
|
2
|
+
import { TitleTagProps } from '../../components/common/TitleTag/src/titleTag';
|
|
3
3
|
export interface Post {
|
|
4
4
|
/**
|
|
5
5
|
* 文章模板风格,list 为列表风格,card 为卡片风格
|
package/es/config/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageData } from 'vitepress';
|
|
2
|
-
import { VpContainerProps } from '
|
|
3
|
-
import { Message } from '
|
|
2
|
+
import { VpContainerProps } from '../components/common/VpContainer/src/vpContainer';
|
|
3
|
+
import { Message } from '../components/common/Message/src/message';
|
|
4
4
|
import { TkPaginationProps } from '../components/common/Pagination';
|
|
5
5
|
import { Appreciation, ArticleAnalyze, ArticleShare, ArticleUpdate, Author, Banner, Blogger, BodyBgImg, Breadcrumb, Category, CodeBlock, CommentConfig, DocAnalysis, FooterInfo, FooterGroup, FriendLink, ThemeEnhance, Notice, Plugins, Post, SiteAnalytics, Social, Tag, TopArticle, Wallpaper, Markdown, Private, RiskLink } from './interface';
|
|
6
6
|
export type * from './interface';
|
|
@@ -91,6 +91,14 @@ export interface TeekConfig {
|
|
|
91
91
|
* @param page 文章信息,即 useData().page 的信息
|
|
92
92
|
*/
|
|
93
93
|
articleTopTip?: (frontmatter: PageData["frontmatter"], localeIndex: string, page: PageData) => VpContainerProps | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* 文章页底部使用 VitePress 容器添加提示
|
|
96
|
+
*
|
|
97
|
+
* @param frontmatter 文档 frontmatter
|
|
98
|
+
* @param localeIndex 当前国际化语言
|
|
99
|
+
* @param page 文章信息,即 useData().page 的信息
|
|
100
|
+
*/
|
|
101
|
+
articleBottomTip?: (frontmatter: PageData["frontmatter"], localeIndex: string, page: PageData) => VpContainerProps | undefined;
|
|
94
102
|
/**
|
|
95
103
|
* body 背景图片配置
|
|
96
104
|
*/
|
package/es/icons.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from './static/icons';
|