vitepress-theme-teek 1.1.4 → 1.2.0
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/README.md +1 -1
- package/es/components/common/Message/src/index.vue2.mjs +1 -0
- package/es/components/common/Message/src/message.d.ts +1 -1
- package/es/components/common/Message/src/message.mjs +1 -1
- package/es/components/common/Pagination/src/index.vue.d.ts +1 -1
- package/es/components/common/Popover/src/index.vue2.mjs +4 -3
- package/es/components/common/TitleTag/index.d.ts +5 -0
- package/es/components/common/TitleTag/index.mjs +5 -0
- package/es/components/common/TitleTag/src/index.vue.d.ts +19 -0
- package/es/components/common/TitleTag/src/index.vue2.mjs +40 -0
- package/es/components/common/TitleTag/src/instance.d.ts +2 -0
- package/es/components/common/TitleTag/src/titleTag.d.ts +18 -0
- package/es/components/common/TitleTag/src/titleTag.mjs +1 -0
- package/es/components/common/TitleTag/style/css.d.ts +2 -0
- package/es/components/common/TitleTag/style/css.mjs +2 -0
- package/es/components/common/TitleTag/style/index.d.ts +2 -0
- package/es/components/common/TitleTag/style/index.mjs +2 -0
- package/es/components/common/VpContainer/src/vpContainer.d.ts +2 -2
- package/es/components/common/index.d.ts +1 -0
- package/es/components/common/index.mjs +5 -4
- package/es/components/index.mjs +6 -2
- package/es/components/theme/ArchivesPage/src/index.vue2.mjs +8 -12
- package/es/components/theme/ArticleBreadcrumb/src/index.vue2.mjs +1 -1
- package/es/components/theme/ArticleInfo/src/index.vue2.mjs +1 -2
- package/es/components/theme/ArticleOverviewPage/index.d.ts +4 -0
- package/es/components/theme/ArticleOverviewPage/index.mjs +5 -0
- package/es/components/theme/ArticleOverviewPage/src/index.vue.d.ts +3 -0
- package/es/components/theme/ArticleOverviewPage/src/index.vue.mjs +5 -0
- package/es/components/theme/ArticleOverviewPage/src/index.vue2.mjs +204 -0
- package/es/components/theme/ArticleOverviewPage/src/instance.d.ts +2 -0
- package/es/components/theme/ArticleOverviewPage/src/instance.mjs +1 -0
- package/es/components/theme/ArticleOverviewPage/style/css.d.ts +2 -0
- package/es/components/theme/ArticleOverviewPage/style/css.mjs +2 -0
- package/es/components/theme/ArticleOverviewPage/style/index.d.ts +2 -0
- package/es/components/theme/ArticleOverviewPage/style/index.mjs +2 -0
- package/es/components/theme/ArticlePageStyle/src/index.vue2.mjs +17 -15
- package/es/components/theme/ArticleUpdate/index.d.ts +4 -0
- package/es/components/theme/ArticleUpdate/index.mjs +5 -0
- package/es/components/theme/ArticleUpdate/src/index.vue.d.ts +3 -0
- package/es/components/theme/ArticleUpdate/src/index.vue.mjs +5 -0
- package/es/components/theme/ArticleUpdate/src/index.vue2.mjs +145 -0
- package/es/components/theme/ArticleUpdate/src/instance.d.ts +2 -0
- package/es/components/theme/ArticleUpdate/src/instance.mjs +1 -0
- package/es/components/theme/ArticleUpdate/style/css.d.ts +2 -0
- package/es/components/theme/ArticleUpdate/style/css.mjs +2 -0
- package/es/components/theme/ArticleUpdate/style/index.d.ts +2 -0
- package/es/components/theme/ArticleUpdate/style/index.mjs +2 -0
- package/es/components/theme/CataloguePage/src/index.vue2.mjs +1 -1
- package/es/components/theme/CommentArtalk/src/index.vue2.mjs +1 -1
- package/es/components/theme/CommentTwikoo/src/index.vue2.mjs +1 -1
- package/es/components/theme/ConfigProvider/index.d.ts +6 -1
- package/es/components/theme/ConfigProvider/index.mjs +12 -13
- package/es/components/theme/Home/src/index.vue.d.ts +146 -37
- package/es/components/theme/Home/src/index.vue2.mjs +48 -8
- package/es/components/theme/HomeBanner/src/index.vue2.mjs +3 -1
- package/es/components/theme/HomeCardList/index.d.ts +4 -0
- package/es/components/theme/HomeCardList/index.mjs +5 -0
- package/es/components/theme/HomeCardList/src/index.vue.mjs +5 -0
- package/es/components/theme/{HomeRightInfo → HomeCardList}/src/index.vue2.mjs +2 -2
- package/es/components/theme/HomeCardList/src/instance.d.ts +2 -0
- package/es/components/theme/HomeCardList/src/instance.mjs +1 -0
- package/es/components/theme/HomeCardList/style/css.d.ts +2 -0
- package/es/components/theme/HomeCardList/style/css.mjs +2 -0
- package/es/components/theme/{HomeRightInfo → HomeCardList}/style/index.d.ts +1 -1
- package/es/components/theme/{HomeRightInfo → HomeCardList}/style/index.mjs +1 -1
- package/es/components/theme/HomeCategoryCard/src/index.vue2.mjs +7 -1
- package/es/components/theme/HomeFriendLinkCard/src/ItemInfo.vue2.mjs +10 -16
- package/es/components/theme/HomeFullscreenWallpaper/src/index.vue2.mjs +3 -3
- package/es/components/theme/HomeMyCard/src/index.vue2.mjs +17 -4
- package/es/components/theme/HomePostList/src/HomePostItem.vue2.mjs +120 -118
- package/es/components/theme/HomePostList/src/HomePostItemCard.vue.d.ts +7 -0
- package/es/components/theme/HomePostList/src/HomePostItemCard.vue.mjs +5 -0
- package/es/components/theme/HomePostList/src/HomePostItemCard.vue2.mjs +131 -0
- package/es/components/theme/HomePostList/src/index.vue.d.ts +32 -1
- package/es/components/theme/HomePostList/src/index.vue2.mjs +50 -47
- package/es/components/theme/HomeTagCard/src/index.vue2.mjs +40 -13
- package/es/components/theme/HomeTopArticleCard/src/index.vue2.mjs +10 -14
- package/es/components/theme/Layout/src/index.vue2.mjs +29 -23
- package/es/components/theme/RightBottomButton/src/ThemeColor.vue2.mjs +2 -2
- package/es/components/theme/RightBottomButton/src/ToComment.vue2.mjs +1 -0
- package/es/components/theme/ThemeEnhance/index.d.ts +2 -1
- package/es/components/theme/ThemeEnhance/index.mjs +1 -0
- package/es/components/theme/ThemeEnhance/src/LayoutSwitch.vue2.mjs +2 -1
- package/es/components/theme/ThemeEnhance/src/ThemeColor.vue2.mjs +4 -3
- package/es/components/theme/ThemeEnhance/src/components/Helper.vue.d.ts +0 -1
- package/es/components/theme/ThemeEnhance/src/components/Helper.vue2.mjs +1 -2
- package/es/components/theme/ThemeEnhance/src/index.vue2.mjs +2 -2
- package/es/components/theme/ThemeEnhance/src/themeEnhance.d.ts +1 -0
- package/es/components/theme/index.d.ts +3 -1
- package/es/components/theme/index.mjs +10 -7
- package/es/config/interface/blogger.d.ts +8 -2
- package/es/config/interface/post.d.ts +22 -0
- package/es/config/interface/tag.d.ts +0 -4
- package/es/config/interface/themeEnhance.d.ts +2 -2
- package/es/config/post/helper.mjs +1 -0
- package/es/config/post/index.mjs +1 -0
- package/es/config/post/types.d.ts +5 -1
- package/es/config/types.d.ts +11 -3
- package/es/hooks/useBuSuanZi.mjs +2 -0
- package/es/hooks/useLocale.d.ts +13 -0
- package/es/hooks/usePopoverSize.mjs +1 -0
- package/es/hooks/useStorage.d.ts +1 -1
- package/es/index.css +1 -1
- package/es/index.mjs +14 -7
- package/es/locale/lang/en.d.ts +13 -0
- package/es/locale/lang/en.mjs +13 -0
- package/es/locale/lang/zh-cn.d.ts +13 -0
- package/es/locale/lang/zh-cn.mjs +13 -0
- package/es/static/icons/index.d.ts +2 -0
- package/es/static/icons/index.mjs +2 -0
- package/es/static/icons/theme-enhance/water.d.ts +2 -0
- package/es/static/icons/theme-enhance/water.mjs +18 -0
- package/es/static/icons/top.d.ts +2 -0
- package/es/static/icons/top.mjs +19 -0
- package/es/static/index.mjs +2 -0
- package/es/teek/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +1 -1
- package/index.js +1272 -637
- package/index.min.js +116 -85
- package/index.min.mjs +121 -90
- package/index.mjs +1231 -602
- package/lib/components/common/Message/src/index.vue2.js +1 -0
- package/lib/components/common/Message/src/message.d.ts +1 -1
- package/lib/components/common/Message/src/message.js +1 -1
- package/lib/components/common/Pagination/src/index.vue.d.ts +1 -1
- package/lib/components/common/Popover/src/index.vue2.js +4 -3
- package/lib/components/common/TitleTag/index.d.ts +5 -0
- package/lib/components/common/TitleTag/index.js +10 -0
- package/lib/components/common/TitleTag/src/index.vue.d.ts +19 -0
- package/lib/components/common/TitleTag/src/index.vue.js +9 -0
- package/lib/components/common/TitleTag/src/index.vue2.js +44 -0
- package/lib/components/common/TitleTag/src/instance.d.ts +2 -0
- package/lib/components/common/TitleTag/src/titleTag.d.ts +18 -0
- package/lib/components/common/TitleTag/src/titleTag.js +2 -0
- package/lib/components/common/TitleTag/style/css.d.ts +2 -0
- package/lib/components/{theme/HomeRightInfo → common/TitleTag}/style/css.js +1 -1
- package/lib/components/common/TitleTag/style/index.d.ts +2 -0
- package/lib/components/common/TitleTag/style/index.js +5 -0
- package/lib/components/common/VpContainer/src/vpContainer.d.ts +2 -2
- package/lib/components/common/index.d.ts +1 -0
- package/lib/components/common/index.js +13 -11
- package/lib/components/index.js +11 -3
- package/lib/components/theme/ArchivesPage/src/index.vue2.js +7 -11
- package/lib/components/theme/ArticleBreadcrumb/src/index.vue2.js +1 -1
- package/lib/components/theme/ArticleInfo/src/index.vue2.js +1 -2
- package/lib/components/theme/ArticleOverviewPage/index.d.ts +4 -0
- package/lib/components/theme/ArticleOverviewPage/index.js +10 -0
- package/lib/components/theme/ArticleOverviewPage/src/index.vue.d.ts +3 -0
- package/lib/components/theme/ArticleOverviewPage/src/index.vue.js +9 -0
- package/lib/components/theme/ArticleOverviewPage/src/index.vue2.js +208 -0
- package/lib/components/theme/ArticleOverviewPage/src/instance.d.ts +2 -0
- package/lib/components/theme/ArticleOverviewPage/src/instance.js +2 -0
- package/lib/components/theme/ArticleOverviewPage/style/css.d.ts +2 -0
- package/lib/components/theme/ArticleOverviewPage/style/css.js +5 -0
- package/lib/components/theme/ArticleOverviewPage/style/index.d.ts +2 -0
- package/lib/components/theme/ArticleOverviewPage/style/index.js +5 -0
- package/lib/components/theme/ArticlePageStyle/src/index.vue2.js +16 -14
- package/lib/components/theme/ArticleUpdate/index.d.ts +4 -0
- package/lib/components/theme/ArticleUpdate/index.js +10 -0
- package/lib/components/theme/ArticleUpdate/src/index.vue.d.ts +3 -0
- package/lib/components/theme/ArticleUpdate/src/index.vue.js +9 -0
- package/lib/components/theme/ArticleUpdate/src/index.vue2.js +149 -0
- package/lib/components/theme/ArticleUpdate/src/instance.d.ts +2 -0
- package/lib/components/theme/ArticleUpdate/src/instance.js +2 -0
- package/lib/components/theme/ArticleUpdate/style/css.d.ts +2 -0
- package/lib/components/theme/ArticleUpdate/style/css.js +5 -0
- package/lib/components/theme/ArticleUpdate/style/index.d.ts +2 -0
- package/lib/components/theme/ArticleUpdate/style/index.js +5 -0
- package/lib/components/theme/CataloguePage/src/index.vue2.js +1 -1
- package/lib/components/theme/CommentArtalk/src/index.vue2.js +1 -1
- package/lib/components/theme/CommentTwikoo/src/index.vue2.js +1 -1
- package/lib/components/theme/ConfigProvider/index.d.ts +6 -1
- package/lib/components/theme/ConfigProvider/index.js +12 -13
- package/lib/components/theme/Home/src/index.vue.d.ts +146 -37
- package/lib/components/theme/Home/src/index.vue2.js +46 -6
- package/lib/components/theme/HomeBanner/src/index.vue2.js +3 -1
- package/lib/components/theme/HomeCardList/index.d.ts +4 -0
- package/lib/components/theme/HomeCardList/index.js +10 -0
- package/lib/components/theme/{HomeRightInfo → HomeCardList}/src/index.vue.js +2 -2
- package/lib/components/theme/{HomeRightInfo → HomeCardList}/src/index.vue2.js +2 -2
- package/lib/components/theme/HomeCardList/src/instance.d.ts +2 -0
- package/lib/components/theme/HomeCardList/src/instance.js +2 -0
- package/lib/components/theme/HomeCardList/style/css.d.ts +2 -0
- package/lib/components/theme/HomeCardList/style/css.js +5 -0
- package/lib/components/theme/{HomeRightInfo → HomeCardList}/style/index.d.ts +1 -1
- package/lib/components/theme/{HomeRightInfo → HomeCardList}/style/index.js +1 -1
- package/lib/components/theme/HomeCategoryCard/src/index.vue2.js +7 -1
- package/lib/components/theme/HomeFriendLinkCard/src/ItemInfo.vue2.js +10 -16
- package/lib/components/theme/HomeFullscreenWallpaper/src/index.vue2.js +3 -3
- package/lib/components/theme/HomeMyCard/src/index.vue2.js +16 -3
- package/lib/components/theme/HomePostList/src/HomePostItem.vue2.js +118 -116
- package/lib/components/theme/HomePostList/src/HomePostItemCard.vue.d.ts +7 -0
- package/lib/components/theme/HomePostList/src/HomePostItemCard.vue.js +9 -0
- package/lib/components/theme/HomePostList/src/HomePostItemCard.vue2.js +135 -0
- package/lib/components/theme/HomePostList/src/index.vue.d.ts +32 -1
- package/lib/components/theme/HomePostList/src/index.vue2.js +44 -41
- package/lib/components/theme/HomeTagCard/src/index.vue2.js +38 -11
- package/lib/components/theme/HomeTopArticleCard/src/index.vue2.js +8 -12
- package/lib/components/theme/Layout/src/index.vue2.js +9 -3
- package/lib/components/theme/RightBottomButton/src/ThemeColor.vue2.js +2 -2
- package/lib/components/theme/RightBottomButton/src/ToComment.vue2.js +1 -0
- package/lib/components/theme/ThemeEnhance/index.d.ts +2 -1
- package/lib/components/theme/ThemeEnhance/index.js +2 -0
- package/lib/components/theme/ThemeEnhance/src/LayoutSwitch.vue2.js +2 -1
- package/lib/components/theme/ThemeEnhance/src/ThemeColor.vue2.js +4 -3
- package/lib/components/theme/ThemeEnhance/src/components/Helper.vue.d.ts +0 -1
- package/lib/components/theme/ThemeEnhance/src/components/Helper.vue2.js +1 -2
- package/lib/components/theme/ThemeEnhance/src/index.vue2.js +1 -1
- package/lib/components/theme/ThemeEnhance/src/themeEnhance.d.ts +1 -0
- package/lib/components/theme/index.d.ts +3 -1
- package/lib/components/theme/index.js +27 -21
- package/lib/config/interface/blogger.d.ts +8 -2
- package/lib/config/interface/post.d.ts +22 -0
- package/lib/config/interface/tag.d.ts +0 -4
- package/lib/config/interface/themeEnhance.d.ts +2 -2
- package/lib/config/post/helper.js +1 -0
- package/lib/config/post/index.js +1 -0
- package/lib/config/post/types.d.ts +5 -1
- package/lib/config/types.d.ts +11 -3
- package/lib/hooks/useBuSuanZi.js +2 -0
- package/lib/hooks/useLocale.d.ts +13 -0
- package/lib/hooks/usePopoverSize.js +1 -0
- package/lib/hooks/useStorage.d.ts +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +16 -3
- package/lib/locale/lang/en.d.ts +13 -0
- package/lib/locale/lang/en.js +13 -0
- package/lib/locale/lang/zh-cn.d.ts +13 -0
- package/lib/locale/lang/zh-cn.js +13 -0
- package/lib/static/icons/index.d.ts +2 -0
- package/lib/static/icons/index.js +4 -0
- package/lib/static/icons/theme-enhance/water.d.ts +2 -0
- package/lib/static/icons/theme-enhance/water.js +22 -0
- package/lib/static/icons/top.d.ts +2 -0
- package/lib/static/icons/top.js +23 -0
- package/lib/static/index.js +4 -0
- package/lib/teek/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/tk.scss +6 -36
- package/theme-chalk/src/components/common/message.scss +1 -1
- package/theme-chalk/src/components/common/segmented.scss +1 -0
- package/theme-chalk/src/components/common/title-tag.scss +89 -0
- package/theme-chalk/src/components/theme/article-analyze.scss +5 -0
- package/theme-chalk/src/components/theme/article-breadcrumb.scss +4 -0
- package/theme-chalk/src/components/theme/article-overview-page.scss +10 -0
- package/theme-chalk/src/components/theme/article-page-style.scss +25 -21
- package/theme-chalk/src/components/theme/article-share.scss +1 -1
- package/theme-chalk/src/components/theme/article-update.scss +64 -0
- package/theme-chalk/src/components/theme/body-bg-image.scss +38 -6
- package/theme-chalk/src/components/theme/demo-code.scss +1 -1
- package/theme-chalk/src/components/theme/home-banner-feature.scss +6 -0
- package/theme-chalk/src/components/theme/home-card-list.scss +11 -0
- package/theme-chalk/src/components/theme/home-category-card.scss +6 -1
- package/theme-chalk/src/components/theme/home-my-card.scss +35 -0
- package/theme-chalk/src/components/theme/home-post-item-card.scss +64 -0
- package/theme-chalk/src/components/theme/home-post-item.scss +68 -66
- package/theme-chalk/src/components/theme/home-post-list.scss +21 -9
- package/theme-chalk/src/components/theme/home-tag-card.scss +10 -4
- package/theme-chalk/src/components/theme/notice.scss +1 -1
- package/theme-chalk/src/components/theme/right-bottom-button.scss +1 -1
- package/theme-chalk/src/components/theme/theme-enhance.scss +8 -6
- package/theme-chalk/src/index.scss +4 -1
- package/theme-chalk/src/var/theme-size.scss +5 -5
- package/theme-chalk/src/vp-plus/aside.scss +2 -0
- package/theme-chalk/tk-article-analyze.css +1 -1
- package/theme-chalk/tk-article-breadcrumb.css +1 -1
- package/theme-chalk/tk-article-overview-page.css +1 -0
- package/theme-chalk/tk-article-page-style.css +1 -1
- package/theme-chalk/tk-article-share.css +1 -1
- package/theme-chalk/tk-article-update.css +1 -0
- package/theme-chalk/tk-aside.css +1 -1
- package/theme-chalk/tk-base.css +1 -1
- package/theme-chalk/tk-body-bg-image.css +1 -1
- package/theme-chalk/tk-home-banner-feature.css +1 -1
- package/theme-chalk/tk-home-banner.css +1 -1
- package/theme-chalk/tk-home-card-list.css +1 -0
- package/theme-chalk/tk-home-category-card.css +1 -1
- package/theme-chalk/tk-home-my-card.css +1 -1
- package/theme-chalk/tk-home-post-item-card.css +1 -0
- package/theme-chalk/tk-home-post-item.css +1 -1
- package/theme-chalk/tk-home-post-list.css +1 -1
- package/theme-chalk/tk-home-tag-card.css +1 -1
- package/theme-chalk/tk-right-bottom-button.css +1 -1
- package/theme-chalk/tk-theme-enhance.css +1 -1
- package/es/components/theme/HomeRightInfo/index.d.ts +0 -4
- package/es/components/theme/HomeRightInfo/index.mjs +0 -5
- package/es/components/theme/HomeRightInfo/src/instance.d.ts +0 -2
- package/es/components/theme/HomeRightInfo/style/css.d.ts +0 -2
- package/es/components/theme/HomeRightInfo/style/css.mjs +0 -2
- package/lib/components/theme/HomeRightInfo/index.d.ts +0 -4
- package/lib/components/theme/HomeRightInfo/index.js +0 -10
- package/lib/components/theme/HomeRightInfo/src/instance.d.ts +0 -2
- package/lib/components/theme/HomeRightInfo/style/css.d.ts +0 -2
- /package/es/components/{theme/HomeRightInfo → common/TitleTag}/src/index.vue.mjs +0 -0
- /package/es/components/{theme/HomeRightInfo → common/TitleTag}/src/instance.mjs +0 -0
- /package/es/components/theme/{HomeRightInfo → HomeCardList}/src/index.vue.d.ts +0 -0
- /package/lib/components/{theme/HomeRightInfo → common/TitleTag}/src/instance.js +0 -0
- /package/lib/components/theme/{HomeRightInfo → HomeCardList}/src/index.vue.d.ts +0 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[Github](https://github.com/Kele-Bingtang/vitepress-theme-teek) |
|
|
6
6
|
[Gitee](https://gitee.com/kele-bingtang/vitepress-theme-teek) |
|
|
7
|
-
[Preview](https://
|
|
7
|
+
[Preview](https://notes.teek.top/) |
|
|
8
8
|
[Docs](http://vp.teek.top/)
|
|
9
9
|
|
|
10
10
|
✨一个轻量、简洁高效、灵活配置的 VitePress 主题。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppContext, VNode } from 'vue';
|
|
2
2
|
import { TkIconProps } from '@teek/components/common/Icon';
|
|
3
|
-
export declare const messageTypes: readonly ["success", "info", "warning", "error"];
|
|
3
|
+
export declare const messageTypes: readonly ["primary", "success", "info", "warning", "error"];
|
|
4
4
|
export type MessageType = (typeof messageTypes)[number];
|
|
5
5
|
export interface MessageConfigContext {
|
|
6
6
|
max?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isClient } from '../../../../helper/dist/index.mjs';
|
|
2
2
|
|
|
3
|
-
const messageTypes = ["success", "info", "warning", "error"];
|
|
3
|
+
const messageTypes = ["primary", "success", "info", "warning", "error"];
|
|
4
4
|
const messagePropsDefaults = {
|
|
5
5
|
customClass: "",
|
|
6
6
|
center: false,
|
|
@@ -23,8 +23,8 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
|
|
|
23
23
|
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
24
24
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
disabled: boolean;
|
|
27
26
|
size: Size;
|
|
27
|
+
disabled: boolean;
|
|
28
28
|
prevIcon: TkIconProps["icon"];
|
|
29
29
|
nextIcon: TkIconProps["icon"];
|
|
30
30
|
pagerCount: number;
|
|
@@ -129,7 +129,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
129
|
ref: triggerRef,
|
|
130
130
|
onClick: _cache[0] || (_cache[0] = ($event) => toggleVisible("click")),
|
|
131
131
|
onContextmenu: _cache[1] || (_cache[1] = ($event) => toggleVisible("contextmenu")),
|
|
132
|
-
onFocus: _cache[2] || (_cache[2] = ($event) => toggleVisible("focus"))
|
|
132
|
+
onFocus: _cache[2] || (_cache[2] = ($event) => toggleVisible("focus")),
|
|
133
|
+
onTouchstart: _cache[3] || (_cache[3] = ($event) => visible.value = !visible.value)
|
|
133
134
|
}, _ctx.$attrs),
|
|
134
135
|
[
|
|
135
136
|
renderSlot(_ctx.$slots, "reference")
|
|
@@ -152,9 +153,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
152
153
|
ref: popoverRef,
|
|
153
154
|
style: normalizeStyle(popupStyle.value),
|
|
154
155
|
class: normalizeClass([unref(ns).b(), _ctx.popperClass]),
|
|
155
|
-
onClick: _cache[
|
|
156
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
156
157
|
}, ["stop"])),
|
|
157
|
-
onTouchstart: _cache[
|
|
158
|
+
onTouchstart: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
158
159
|
}, ["stop"]))
|
|
159
160
|
},
|
|
160
161
|
[
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TitleTagProps } from './titleTag';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<TitleTagProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TitleTagProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, createCommentVNode, openBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
import 'vitepress';
|
|
3
|
+
import { useNamespace } from '../../../../hooks/useNamespace.mjs';
|
|
4
|
+
import '../../../../hooks/useZIndex.mjs';
|
|
5
|
+
|
|
6
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
...{ name: "TitleTag" },
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
text: {},
|
|
11
|
+
type: {},
|
|
12
|
+
position: {},
|
|
13
|
+
size: {}
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const ns = useNamespace("title-tag");
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return _ctx.text ? (openBlock(), createElementBlock(
|
|
19
|
+
"span",
|
|
20
|
+
{
|
|
21
|
+
key: 0,
|
|
22
|
+
class: normalizeClass([unref(ns).b(), _ctx.type && unref(ns).m(_ctx.type), _ctx.position && unref(ns).m(_ctx.position), _ctx.size && unref(ns).m(_ctx.size)])
|
|
23
|
+
},
|
|
24
|
+
[
|
|
25
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
26
|
+
createTextVNode(
|
|
27
|
+
toDisplayString(_ctx.text),
|
|
28
|
+
1
|
|
29
|
+
/* TEXT */
|
|
30
|
+
)
|
|
31
|
+
])
|
|
32
|
+
],
|
|
33
|
+
2
|
|
34
|
+
/* CLASS */
|
|
35
|
+
)) : createCommentVNode("v-if", true);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface TitleTagProps {
|
|
2
|
+
/**
|
|
3
|
+
* 内容
|
|
4
|
+
*/
|
|
5
|
+
text?: string;
|
|
6
|
+
/**
|
|
7
|
+
* 类型
|
|
8
|
+
*/
|
|
9
|
+
type?: "vp-primary" | "vp-info" | "vp-success" | "vp-warning" | "vp-danger" | "vp-important" | "ep-primary" | "ep-info" | "ep-success" | "ep-warning" | "ep-danger";
|
|
10
|
+
/**
|
|
11
|
+
* 位置
|
|
12
|
+
*/
|
|
13
|
+
position?: "left" | "right";
|
|
14
|
+
/**
|
|
15
|
+
* 大小
|
|
16
|
+
*/
|
|
17
|
+
size?: "large" | "default" | "small" | "mini";
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -2,7 +2,7 @@ export interface VpContainerProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* 类型
|
|
4
4
|
*
|
|
5
|
-
* @default 'tip
|
|
5
|
+
* @default 'tip'
|
|
6
6
|
*/
|
|
7
7
|
type?: "info" | "tip" | "warning" | "danger";
|
|
8
8
|
/**
|
|
@@ -10,7 +10,7 @@ export interface VpContainerProps {
|
|
|
10
10
|
*/
|
|
11
11
|
title?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* 文本
|
|
14
14
|
*/
|
|
15
15
|
text?: string;
|
|
16
16
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
export { createImageViewer } from './ImageViewer/index.mjs';
|
|
1
2
|
export { default as TkAvatar } from './Avatar/src/index.vue2.mjs';
|
|
2
3
|
export { default as TkBreadcrumb } from './Breadcrumb/src/Breadcrumb.vue2.mjs';
|
|
3
4
|
export { default as TkBreadcrumbItem } from './Breadcrumb/src/BreadcrumbItem.vue2.mjs';
|
|
4
|
-
export { default as TkFocusTrap } from './FocusTrap/src/index.vue.mjs';
|
|
5
5
|
export { default as TkIcon } from './Icon/src/index.vue2.mjs';
|
|
6
|
-
export {
|
|
6
|
+
export { default as TkImageViewer } from './ImageViewer/src/index.vue2.mjs';
|
|
7
7
|
export { default as TkInputSlide } from './InputSlide/src/index.vue2.mjs';
|
|
8
8
|
export { default as TkMessage } from './Message/src/method.mjs';
|
|
9
|
-
export { getInstance, getLastOffset, getOffsetOrSpace, instances } from './Message/src/instance.mjs';
|
|
10
9
|
export { default as TkPagination } from './Pagination/src/index.vue2.mjs';
|
|
11
10
|
export { default as TkPopover } from './Popover/src/index.vue2.mjs';
|
|
12
11
|
export { default as TkSegmented } from './Segmented/src/Segmented.vue2.mjs';
|
|
13
12
|
export { default as TkSegmentedItem } from './Segmented/src/SegmentedItem.vue2.mjs';
|
|
13
|
+
export { default as TkTitleTag } from './TitleTag/src/index.vue2.mjs';
|
|
14
14
|
export { default as TkTransitionCollapse } from './TransitionCollapse/src/index.vue2.mjs';
|
|
15
15
|
export { default as TkVpContainer } from './VpContainer/src/index.vue2.mjs';
|
|
16
|
-
export { default as
|
|
16
|
+
export { default as TkFocusTrap } from './FocusTrap/src/index.vue.mjs';
|
|
17
|
+
export { getInstance, getLastOffset, getOffsetOrSpace, instances } from './Message/src/instance.mjs';
|
package/es/components/index.mjs
CHANGED
|
@@ -9,6 +9,7 @@ export { default as TkPagination } from './common/Pagination/src/index.vue2.mjs'
|
|
|
9
9
|
export { default as TkPopover } from './common/Popover/src/index.vue2.mjs';
|
|
10
10
|
export { default as TkSegmented } from './common/Segmented/src/Segmented.vue2.mjs';
|
|
11
11
|
export { default as TkSegmentedItem } from './common/Segmented/src/SegmentedItem.vue2.mjs';
|
|
12
|
+
export { default as TkTitleTag } from './common/TitleTag/src/index.vue2.mjs';
|
|
12
13
|
export { default as TkTransitionCollapse } from './common/TransitionCollapse/src/index.vue2.mjs';
|
|
13
14
|
export { default as TkVpContainer } from './common/VpContainer/src/index.vue2.mjs';
|
|
14
15
|
export { default as TkArchivesPage } from './theme/ArchivesPage/src/index.vue2.mjs';
|
|
@@ -19,8 +20,10 @@ export { default as TkArticleBreadcrumb } from './theme/ArticleBreadcrumb/src/in
|
|
|
19
20
|
export { default as TkArticleHeadingHighlight } from './theme/ArticleHeadingHighlight/src/index.vue2.mjs';
|
|
20
21
|
export { default as TkArticleImagePreview } from './theme/ArticleImagePreview/src/index.vue2.mjs';
|
|
21
22
|
export { default as TkArticleInfo } from './theme/ArticleInfo/src/index.vue2.mjs';
|
|
23
|
+
export { default as TkArticleOverviewPage } from './theme/ArticleOverviewPage/src/index.vue2.mjs';
|
|
22
24
|
export { default as TkArticlePageStyle } from './theme/ArticlePageStyle/src/index.vue2.mjs';
|
|
23
25
|
export { default as TkArticleShare } from './theme/ArticleShare/src/index.vue2.mjs';
|
|
26
|
+
export { default as TkArticleUpdate } from './theme/ArticleUpdate/src/index.vue2.mjs';
|
|
24
27
|
export { default as TkBodyBgImage } from './theme/BodyBgImage/src/index.vue2.mjs';
|
|
25
28
|
export { default as TkCataloguePage } from './theme/CataloguePage/src/index.vue2.mjs';
|
|
26
29
|
export { default as TkCatalogueItem } from './theme/CataloguePage/src/CatalogueItem.vue2.mjs';
|
|
@@ -44,7 +47,7 @@ export { default as TkHomeCategoryCard } from './theme/HomeCategoryCard/src/inde
|
|
|
44
47
|
export { default as TkHomeDocAnalysisCard } from './theme/HomeDocAnalysisCard/src/index.vue2.mjs';
|
|
45
48
|
export { default as TkHomeFriendLinkCard } from './theme/HomeFriendLinkCard/src/index.vue2.mjs';
|
|
46
49
|
export { default as TkHomeFullscreenWallpaper } from './theme/HomeFullscreenWallpaper/src/index.vue2.mjs';
|
|
47
|
-
export { default as
|
|
50
|
+
export { default as TkHomeCardList } from './theme/HomeCardList/src/index.vue2.mjs';
|
|
48
51
|
export { default as TkHomeMyCard } from './theme/HomeMyCard/src/index.vue2.mjs';
|
|
49
52
|
export { default as TkHomePostList } from './theme/HomePostList/src/index.vue2.mjs';
|
|
50
53
|
export { default as TkHomePostItem } from './theme/HomePostList/src/HomePostItem.vue2.mjs';
|
|
@@ -54,13 +57,14 @@ export { default as TkLayout } from './theme/Layout/src/index.vue2.mjs';
|
|
|
54
57
|
export { default as TkNotice } from './theme/Notice/src/index.vue2.mjs';
|
|
55
58
|
export { default as TkRightBottomButton } from './theme/RightBottomButton/src/index.vue2.mjs';
|
|
56
59
|
export { default as TkThemeEnhance } from './theme/ThemeEnhance/src/index.vue2.mjs';
|
|
60
|
+
export { default as TkSwitch } from './theme/ThemeEnhance/src/components/Switch.vue2.mjs';
|
|
57
61
|
export { default as TkFocusTrap } from './common/FocusTrap/src/index.vue.mjs';
|
|
58
62
|
export { createImageViewer } from './common/ImageViewer/index.mjs';
|
|
59
63
|
export { getInstance, getLastOffset, getOffsetOrSpace, instances } from './common/Message/src/instance.mjs';
|
|
60
64
|
export { artalkContext } from './theme/CommentArtalk/src/artalk.mjs';
|
|
61
65
|
export { giscusContext } from './theme/CommentGiscus/src/giscus.mjs';
|
|
62
66
|
export { walineContext } from './theme/CommentWaline/src/waline.mjs';
|
|
63
|
-
export { TeekConfigProvider, postsContext, teekConfigContext, useAllPosts,
|
|
67
|
+
export { TeekConfigProvider, postsContext, teekConfigContext, useAllPosts, usePage, usePosts, useTagColor, useTeekConfig } from './theme/ConfigProvider/index.mjs';
|
|
64
68
|
export { postDataUpdateSymbol } from './theme/Home/src/home.mjs';
|
|
65
69
|
export { pageNumKey } from './theme/HomePostList/src/homePostList.mjs';
|
|
66
70
|
export { LayoutMode, SpotlightStyle, ThemeColor, activateMaxWidthSlideMedia, layoutModeAttribute, mobileMaxWidthMedia, themeColorAttribute, themeColorList, touchMedia } from './theme/ThemeEnhance/src/themeEnhance.mjs';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, createElementBlock, openBlock, unref, normalizeClass, renderSlot, createElementVNode, toDisplayString, Fragment, renderList,
|
|
1
|
+
import { defineComponent, computed, resolveComponent, createElementBlock, openBlock, unref, normalizeClass, renderSlot, createElementVNode, toDisplayString, Fragment, renderList, createVNode } from 'vue';
|
|
2
2
|
import { useData, withBase } from 'vitepress';
|
|
3
3
|
import { useLocale } from '../../../../hooks/useLocale.mjs';
|
|
4
4
|
import { useNamespace } from '../../../../hooks/useNamespace.mjs';
|
|
5
5
|
import '../../../../hooks/useZIndex.mjs';
|
|
6
6
|
import { usePosts } from '../../ConfigProvider/index.mjs';
|
|
7
|
+
import _sfc_main$1 from '../../../common/TitleTag/src/index.vue2.mjs';
|
|
7
8
|
|
|
8
9
|
const _hoisted_1 = ["aria-label"];
|
|
9
10
|
const _hoisted_2 = { class: "count" };
|
|
@@ -36,7 +37,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
37
|
return (_ctx, _cache) => {
|
|
37
38
|
const _component_Content = resolveComponent("Content");
|
|
38
39
|
return openBlock(), createElementBlock("div", {
|
|
39
|
-
class: normalizeClass(
|
|
40
|
+
class: normalizeClass([unref(ns).b(), unref(ns).joinNamespace("page")]),
|
|
40
41
|
"aria-label": unref(t)("tk.archives.label")
|
|
41
42
|
}, [
|
|
42
43
|
renderSlot(_ctx.$slots, "teek-archives-top-before"),
|
|
@@ -169,16 +170,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
169
170
|
1
|
|
170
171
|
/* TEXT */
|
|
171
172
|
),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
},
|
|
178
|
-
toDisplayString(item.frontmatter.titleTag),
|
|
179
|
-
3
|
|
180
|
-
/* TEXT, CLASS */
|
|
181
|
-
)) : createCommentVNode("v-if", true)
|
|
173
|
+
createVNode(unref(_sfc_main$1), {
|
|
174
|
+
text: item.frontmatter.titleTag,
|
|
175
|
+
position: "right",
|
|
176
|
+
size: "small"
|
|
177
|
+
}, null, 8, ["text"])
|
|
182
178
|
], 8, _hoisted_7)
|
|
183
179
|
]);
|
|
184
180
|
}),
|
|
@@ -56,7 +56,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
createElementVNode("a", {
|
|
57
57
|
href: unref(withBase)("/"),
|
|
58
58
|
title: unref(breadcrumb).homeLabel,
|
|
59
|
-
class: "hover-color",
|
|
59
|
+
class: "home hover-color",
|
|
60
60
|
"aria-label": unref(breadcrumb).homeLabel
|
|
61
61
|
}, [
|
|
62
62
|
createVNode(unref(_sfc_main$3), {
|
|
@@ -97,8 +97,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
97
|
});
|
|
98
98
|
const isShow = (showInfo) => {
|
|
99
99
|
const arr = [showInfo || []].flat();
|
|
100
|
-
|
|
101
|
-
return false;
|
|
100
|
+
return arr.includes(true) || arr.includes(__props.scope);
|
|
102
101
|
};
|
|
103
102
|
return (_ctx, _cache) => {
|
|
104
103
|
return openBlock(), createElementBlock("div", {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { defineComponent, computed, resolveComponent, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, toDisplayString, createVNode, Fragment, renderList } from 'vue';
|
|
2
|
+
import { useData, withBase } from 'vitepress';
|
|
3
|
+
import { formatDate } from '../../../../helper/dist/index.mjs';
|
|
4
|
+
import { useLocale } from '../../../../hooks/useLocale.mjs';
|
|
5
|
+
import { useNamespace } from '../../../../hooks/useNamespace.mjs';
|
|
6
|
+
import '../../../../hooks/useZIndex.mjs';
|
|
7
|
+
import { usePosts, useTeekConfig } from '../../ConfigProvider/index.mjs';
|
|
8
|
+
|
|
9
|
+
const _hoisted_1 = { key: 0 };
|
|
10
|
+
const _hoisted_2 = { class: "vp-doc" };
|
|
11
|
+
const _hoisted_3 = { id: "overview-title" };
|
|
12
|
+
const _hoisted_4 = ["href"];
|
|
13
|
+
const _hoisted_5 = { "aria-describedby": `overview-title` };
|
|
14
|
+
const _hoisted_6 = ["href", "aria-label"];
|
|
15
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
+
...{ name: "ArticleOverviewPage" },
|
|
17
|
+
__name: "index",
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const ns = useNamespace("article-overview");
|
|
20
|
+
const { t } = useLocale();
|
|
21
|
+
const posts = usePosts();
|
|
22
|
+
const { localeIndex, site, theme, frontmatter } = useData();
|
|
23
|
+
const { getTeekConfigRef } = useTeekConfig();
|
|
24
|
+
const categoryConfig = getTeekConfigRef("category", {
|
|
25
|
+
path: "/categories"
|
|
26
|
+
});
|
|
27
|
+
const categories = computed(() => posts.value.groupPosts.categories);
|
|
28
|
+
const eachFileWords = computed(() => theme.value.docAnalysisInfo?.eachFileWords || []);
|
|
29
|
+
const categoriesPageLink = computed(() => {
|
|
30
|
+
const localeIndexConst = localeIndex.value;
|
|
31
|
+
const localeName = localeIndexConst !== "root" ? `/${localeIndexConst}` : "";
|
|
32
|
+
return `${localeName}${categoryConfig.value.path}${site.value.cleanUrls ? "" : ".html"}`;
|
|
33
|
+
});
|
|
34
|
+
const getFileWords = (url) => {
|
|
35
|
+
return eachFileWords.value.filter((item) => {
|
|
36
|
+
const path = "/" + item.fileInfo.relativePath.replace(".md", "");
|
|
37
|
+
return [path, `${path}.html`].includes(url);
|
|
38
|
+
})[0];
|
|
39
|
+
};
|
|
40
|
+
const enhancedCategories = computed(() => {
|
|
41
|
+
return Object.entries(categories.value).map(([key, items]) => ({
|
|
42
|
+
name: key,
|
|
43
|
+
data: items.map((item) => {
|
|
44
|
+
const wordsInfo = getFileWords(item.url);
|
|
45
|
+
return {
|
|
46
|
+
...item,
|
|
47
|
+
wordCount: wordsInfo?.wordCount || "-",
|
|
48
|
+
readingTime: wordsInfo?.readingTime || "-"
|
|
49
|
+
};
|
|
50
|
+
}) || []
|
|
51
|
+
})).sort(
|
|
52
|
+
(a, b) => new Date(b.data[b.data.length - 1].date).getTime() - new Date(a.data[a.data.length - 1].date).getTime()
|
|
53
|
+
);
|
|
54
|
+
});
|
|
55
|
+
const formatPublishDate = (date) => {
|
|
56
|
+
const publishDateFormat = frontmatter.value.publishDateFormat;
|
|
57
|
+
if (!publishDateFormat) return date;
|
|
58
|
+
return formatDate(date || /* @__PURE__ */ new Date(), publishDateFormat);
|
|
59
|
+
};
|
|
60
|
+
return (_ctx, _cache) => {
|
|
61
|
+
const _component_Content = resolveComponent("Content");
|
|
62
|
+
return openBlock(), createElementBlock(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
class: normalizeClass([unref(ns).b(), unref(ns).joinNamespace("page"), "vp-doc"])
|
|
66
|
+
},
|
|
67
|
+
[
|
|
68
|
+
unref(frontmatter).title ? (openBlock(), createElementBlock(
|
|
69
|
+
"h1",
|
|
70
|
+
_hoisted_1,
|
|
71
|
+
toDisplayString(unref(frontmatter).title),
|
|
72
|
+
1
|
|
73
|
+
/* TEXT */
|
|
74
|
+
)) : createCommentVNode("v-if", true),
|
|
75
|
+
createElementVNode("div", _hoisted_2, [
|
|
76
|
+
createVNode(_component_Content)
|
|
77
|
+
]),
|
|
78
|
+
(openBlock(true), createElementBlock(
|
|
79
|
+
Fragment,
|
|
80
|
+
null,
|
|
81
|
+
renderList(enhancedCategories.value, (item) => {
|
|
82
|
+
return openBlock(), createElementBlock(
|
|
83
|
+
Fragment,
|
|
84
|
+
{
|
|
85
|
+
key: item.name
|
|
86
|
+
},
|
|
87
|
+
[
|
|
88
|
+
createElementVNode(
|
|
89
|
+
"h2",
|
|
90
|
+
_hoisted_3,
|
|
91
|
+
toDisplayString(item.name) + " " + toDisplayString(unref(t)("tk.articleOverview.overview")),
|
|
92
|
+
1
|
|
93
|
+
/* TEXT */
|
|
94
|
+
),
|
|
95
|
+
createElementVNode("a", {
|
|
96
|
+
href: `${categoriesPageLink.value}?category=${item.name}`,
|
|
97
|
+
"aria-describedby": `overview-title`
|
|
98
|
+
}, toDisplayString(item.name) + " " + toDisplayString(unref(t)("tk.articleOverview.category")), 9, _hoisted_4),
|
|
99
|
+
createElementVNode("table", _hoisted_5, [
|
|
100
|
+
createElementVNode("thead", null, [
|
|
101
|
+
createElementVNode("tr", null, [
|
|
102
|
+
createElementVNode(
|
|
103
|
+
"th",
|
|
104
|
+
null,
|
|
105
|
+
toDisplayString(unref(t)("tk.articleOverview.name")),
|
|
106
|
+
1
|
|
107
|
+
/* TEXT */
|
|
108
|
+
),
|
|
109
|
+
createElementVNode(
|
|
110
|
+
"th",
|
|
111
|
+
null,
|
|
112
|
+
toDisplayString(unref(t)("tk.articleOverview.title")),
|
|
113
|
+
1
|
|
114
|
+
/* TEXT */
|
|
115
|
+
),
|
|
116
|
+
createElementVNode(
|
|
117
|
+
"th",
|
|
118
|
+
null,
|
|
119
|
+
toDisplayString(unref(t)("tk.articleOverview.date")),
|
|
120
|
+
1
|
|
121
|
+
/* TEXT */
|
|
122
|
+
),
|
|
123
|
+
createElementVNode(
|
|
124
|
+
"th",
|
|
125
|
+
null,
|
|
126
|
+
toDisplayString(unref(t)("tk.articleOverview.wordCount")),
|
|
127
|
+
1
|
|
128
|
+
/* TEXT */
|
|
129
|
+
),
|
|
130
|
+
createElementVNode(
|
|
131
|
+
"th",
|
|
132
|
+
null,
|
|
133
|
+
toDisplayString(unref(t)("tk.articleOverview.readingTime")),
|
|
134
|
+
1
|
|
135
|
+
/* TEXT */
|
|
136
|
+
)
|
|
137
|
+
])
|
|
138
|
+
]),
|
|
139
|
+
createElementVNode("tbody", null, [
|
|
140
|
+
(openBlock(true), createElementBlock(
|
|
141
|
+
Fragment,
|
|
142
|
+
null,
|
|
143
|
+
renderList(item.data, (data) => {
|
|
144
|
+
return openBlock(), createElementBlock("tr", {
|
|
145
|
+
key: data.url
|
|
146
|
+
}, [
|
|
147
|
+
createElementVNode(
|
|
148
|
+
"td",
|
|
149
|
+
null,
|
|
150
|
+
toDisplayString(item.name),
|
|
151
|
+
1
|
|
152
|
+
/* TEXT */
|
|
153
|
+
),
|
|
154
|
+
createElementVNode("td", null, [
|
|
155
|
+
createElementVNode("a", {
|
|
156
|
+
href: data.url && unref(withBase)(data.url),
|
|
157
|
+
"aria-label": data.title
|
|
158
|
+
}, toDisplayString(data.title), 9, _hoisted_6)
|
|
159
|
+
]),
|
|
160
|
+
createElementVNode(
|
|
161
|
+
"td",
|
|
162
|
+
null,
|
|
163
|
+
toDisplayString(formatPublishDate(data.date)),
|
|
164
|
+
1
|
|
165
|
+
/* TEXT */
|
|
166
|
+
),
|
|
167
|
+
createElementVNode(
|
|
168
|
+
"td",
|
|
169
|
+
null,
|
|
170
|
+
toDisplayString(data.wordCount),
|
|
171
|
+
1
|
|
172
|
+
/* TEXT */
|
|
173
|
+
),
|
|
174
|
+
createElementVNode(
|
|
175
|
+
"td",
|
|
176
|
+
null,
|
|
177
|
+
toDisplayString(data.readingTime),
|
|
178
|
+
1
|
|
179
|
+
/* TEXT */
|
|
180
|
+
)
|
|
181
|
+
]);
|
|
182
|
+
}),
|
|
183
|
+
128
|
|
184
|
+
/* KEYED_FRAGMENT */
|
|
185
|
+
))
|
|
186
|
+
])
|
|
187
|
+
])
|
|
188
|
+
],
|
|
189
|
+
64
|
|
190
|
+
/* STABLE_FRAGMENT */
|
|
191
|
+
);
|
|
192
|
+
}),
|
|
193
|
+
128
|
|
194
|
+
/* KEYED_FRAGMENT */
|
|
195
|
+
))
|
|
196
|
+
],
|
|
197
|
+
2
|
|
198
|
+
/* CLASS */
|
|
199
|
+
);
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|