vitepress-theme-teek 1.3.0 → 1.3.1

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.
Files changed (140) hide show
  1. package/README.md +2 -5
  2. package/es/components/common/ArticlePage/src/components/outline.mjs +1 -1
  3. package/es/components/common/Breadcrumb/src/namespace.d.ts +1 -0
  4. package/es/components/common/Icon/src/index.vue.d.ts +1 -4
  5. package/es/components/common/Icon/src/index.vue2.mjs +1 -0
  6. package/es/components/common/TitleTag/src/index.vue2.mjs +1 -1
  7. package/es/components/index.mjs +1 -0
  8. package/es/components/theme/ArticlePageStyle/src/index.vue2.mjs +1 -1
  9. package/es/components/theme/CodeBlockToggle/src/index.vue2.mjs +1 -1
  10. package/es/components/theme/CommentArtalk/src/index.vue2.mjs +1 -1
  11. package/es/components/theme/CommentGiscus/src/index.vue2.mjs +1 -1
  12. package/es/components/theme/CommentTwikoo/src/index.vue2.mjs +1 -1
  13. package/es/components/theme/CommentWaline/src/index.vue2.mjs +1 -1
  14. package/es/components/theme/HomeCardList/src/index.vue.d.ts +3 -2
  15. package/es/components/theme/HomeCardList/src/index.vue2.mjs +42 -40
  16. package/es/components/theme/HomeCategoryCard/src/index.vue.d.ts +3 -2
  17. package/es/components/theme/HomeCategoryCard/src/index.vue2.mjs +77 -75
  18. package/es/components/theme/HomeDocAnalysisCard/src/index.vue.d.ts +3 -2
  19. package/es/components/theme/HomeDocAnalysisCard/src/index.vue2.mjs +49 -47
  20. package/es/components/theme/HomeFriendLinkCard/src/index.vue.d.ts +3 -2
  21. package/es/components/theme/HomeFriendLinkCard/src/index.vue2.mjs +93 -91
  22. package/es/components/theme/HomeMyCard/index.d.ts +2 -1
  23. package/es/components/theme/HomeMyCard/index.mjs +1 -0
  24. package/es/components/theme/HomeMyCard/src/HomeMyCardScreen.vue.d.ts +20 -0
  25. package/es/components/theme/HomeMyCard/src/HomeMyCardScreen.vue.mjs +5 -0
  26. package/es/components/theme/HomeMyCard/src/HomeMyCardScreen.vue2.mjs +83 -0
  27. package/es/components/theme/HomeMyCard/src/index.vue.d.ts +3 -2
  28. package/es/components/theme/HomeMyCard/src/index.vue2.mjs +103 -98
  29. package/es/components/theme/HomeMyCard/src/instance.d.ts +2 -0
  30. package/es/components/theme/HomeMyCard/style/css.d.ts +1 -0
  31. package/es/components/theme/HomeMyCard/style/css.mjs +1 -0
  32. package/es/components/theme/HomeMyCard/style/index.d.ts +1 -0
  33. package/es/components/theme/HomeMyCard/style/index.mjs +1 -0
  34. package/es/components/theme/HomeTagCard/src/index.vue.d.ts +3 -2
  35. package/es/components/theme/HomeTagCard/src/index.vue2.mjs +75 -73
  36. package/es/components/theme/HomeTopArticleCard/src/index.vue.d.ts +3 -2
  37. package/es/components/theme/HomeTopArticleCard/src/index.vue2.mjs +92 -90
  38. package/es/components/theme/Layout/src/index.vue2.mjs +14 -9
  39. package/es/components/theme/LoginPage/src/index.vue2.mjs +5 -5
  40. package/es/components/theme/LoginPage/src/login.mjs +9 -4
  41. package/es/components/theme/Notice/src/index.vue2.mjs +1 -1
  42. package/es/components/theme/RightBottomButton/src/ThemeColor.vue2.mjs +4 -4
  43. package/es/components/theme/RightBottomButton/src/namespace.d.ts +1 -0
  44. package/es/components/theme/ThemeEnhance/src/LayoutSwitch.vue2.mjs +6 -0
  45. package/es/components/theme/ThemeEnhance/src/namespace.d.ts +1 -0
  46. package/es/components/theme/ThemeEnhance/src/namespace.mjs +7 -7
  47. package/es/components/theme/index.mjs +1 -0
  48. package/es/config/interface/blogger.d.ts +13 -0
  49. package/es/config/vitePlugins.mjs +3 -1
  50. package/es/hooks/useNamespace.d.ts +2 -1
  51. package/es/hooks/useNamespace.mjs +4 -2
  52. package/es/index.css +2 -1
  53. package/es/index.mjs +1 -0
  54. package/es/teek/version.d.ts +1 -1
  55. package/es/version.mjs +1 -1
  56. package/index.css +1 -1
  57. package/index.js +1137 -1032
  58. package/index.min.js +46 -46
  59. package/index.min.mjs +52 -52
  60. package/index.mjs +1085 -981
  61. package/lib/components/common/ArticlePage/src/components/outline.js +1 -1
  62. package/lib/components/common/Breadcrumb/src/namespace.d.ts +1 -0
  63. package/lib/components/common/Icon/src/index.vue.d.ts +1 -4
  64. package/lib/components/common/Icon/src/index.vue2.js +1 -0
  65. package/lib/components/common/TitleTag/src/index.vue2.js +1 -1
  66. package/lib/components/index.js +2 -0
  67. package/lib/components/theme/ArticlePageStyle/src/index.vue2.js +1 -1
  68. package/lib/components/theme/CodeBlockToggle/src/index.vue2.js +1 -1
  69. package/lib/components/theme/CommentArtalk/src/index.vue2.js +1 -1
  70. package/lib/components/theme/CommentGiscus/src/index.vue2.js +1 -1
  71. package/lib/components/theme/CommentTwikoo/src/index.vue2.js +1 -1
  72. package/lib/components/theme/CommentWaline/src/index.vue2.js +1 -1
  73. package/lib/components/theme/HomeCardList/src/index.vue.d.ts +3 -2
  74. package/lib/components/theme/HomeCardList/src/index.vue2.js +42 -40
  75. package/lib/components/theme/HomeCategoryCard/src/index.vue.d.ts +3 -2
  76. package/lib/components/theme/HomeCategoryCard/src/index.vue2.js +77 -75
  77. package/lib/components/theme/HomeDocAnalysisCard/src/index.vue.d.ts +3 -2
  78. package/lib/components/theme/HomeDocAnalysisCard/src/index.vue2.js +49 -47
  79. package/lib/components/theme/HomeFriendLinkCard/src/index.vue.d.ts +3 -2
  80. package/lib/components/theme/HomeFriendLinkCard/src/index.vue2.js +93 -91
  81. package/lib/components/theme/HomeMyCard/index.d.ts +2 -1
  82. package/lib/components/theme/HomeMyCard/index.js +2 -0
  83. package/lib/components/theme/HomeMyCard/src/HomeMyCardScreen.vue.d.ts +20 -0
  84. package/lib/components/theme/HomeMyCard/src/HomeMyCardScreen.vue.js +9 -0
  85. package/lib/components/theme/HomeMyCard/src/HomeMyCardScreen.vue2.js +87 -0
  86. package/lib/components/theme/HomeMyCard/src/index.vue.d.ts +3 -2
  87. package/lib/components/theme/HomeMyCard/src/index.vue2.js +102 -97
  88. package/lib/components/theme/HomeMyCard/src/instance.d.ts +2 -0
  89. package/lib/components/theme/HomeMyCard/style/css.d.ts +1 -0
  90. package/lib/components/theme/HomeMyCard/style/css.js +1 -0
  91. package/lib/components/theme/HomeMyCard/style/index.d.ts +1 -0
  92. package/lib/components/theme/HomeMyCard/style/index.js +1 -0
  93. package/lib/components/theme/HomeTagCard/src/index.vue.d.ts +3 -2
  94. package/lib/components/theme/HomeTagCard/src/index.vue2.js +75 -73
  95. package/lib/components/theme/HomeTopArticleCard/src/index.vue.d.ts +3 -2
  96. package/lib/components/theme/HomeTopArticleCard/src/index.vue2.js +92 -90
  97. package/lib/components/theme/Layout/src/index.vue2.js +6 -1
  98. package/lib/components/theme/LoginPage/src/index.vue2.js +5 -5
  99. package/lib/components/theme/LoginPage/src/login.js +9 -4
  100. package/lib/components/theme/Notice/src/index.vue2.js +1 -1
  101. package/lib/components/theme/RightBottomButton/src/ThemeColor.vue2.js +4 -4
  102. package/lib/components/theme/RightBottomButton/src/namespace.d.ts +1 -0
  103. package/lib/components/theme/ThemeEnhance/src/LayoutSwitch.vue2.js +6 -0
  104. package/lib/components/theme/ThemeEnhance/src/namespace.d.ts +1 -0
  105. package/lib/components/theme/ThemeEnhance/src/namespace.js +7 -7
  106. package/lib/components/theme/index.js +2 -0
  107. package/lib/config/interface/blogger.d.ts +13 -0
  108. package/lib/config/vitePlugins.js +3 -1
  109. package/lib/hooks/useNamespace.d.ts +2 -1
  110. package/lib/hooks/useNamespace.js +4 -2
  111. package/lib/index.css +1 -1
  112. package/lib/index.js +2 -0
  113. package/lib/teek/version.d.ts +1 -1
  114. package/lib/version.js +1 -1
  115. package/package.json +1 -1
  116. package/theme-chalk/index.css +1 -1
  117. package/theme-chalk/src/components/common/article-page.scss +1 -1
  118. package/theme-chalk/src/components/common/page-card.scss +3 -3
  119. package/theme-chalk/src/components/common/title-tag.scss +1 -1
  120. package/theme-chalk/src/components/theme/article-page-style.scss +3 -3
  121. package/theme-chalk/src/components/theme/body-bg-image.scss +1 -1
  122. package/theme-chalk/src/components/theme/footer-group.scss +1 -1
  123. package/theme-chalk/src/components/theme/home-banner.scss +16 -2
  124. package/theme-chalk/src/components/theme/home-my-card-screen.scss +28 -0
  125. package/theme-chalk/src/components/theme/home-my-card.scss +14 -9
  126. package/theme-chalk/src/components/theme/home.scss +2 -1
  127. package/theme-chalk/src/components/theme/login-page.scss +10 -0
  128. package/theme-chalk/src/components/theme/risk-link-page.scss +4 -0
  129. package/theme-chalk/src/index.scss +1 -0
  130. package/theme-chalk/src/var/theme-size.scss +1 -0
  131. package/theme-chalk/tk-article-page-style.css +1 -1
  132. package/theme-chalk/tk-base.css +1 -1
  133. package/theme-chalk/tk-body-bg-image.css +1 -1
  134. package/theme-chalk/tk-footer-group.css +1 -1
  135. package/theme-chalk/tk-home-banner.css +1 -1
  136. package/theme-chalk/tk-home-my-card-screen.css +1 -0
  137. package/theme-chalk/tk-home-my-card.css +1 -1
  138. package/theme-chalk/tk-home.css +1 -1
  139. package/theme-chalk/tk-login-page.css +1 -1
  140. package/theme-chalk/tk-risk-link-page.css +1 -1
package/README.md CHANGED
@@ -2,12 +2,9 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- [Github](https://github.com/Kele-Bingtang/vitepress-theme-teek) |
6
- [Gitee](https://gitee.com/kele-bingtang/vitepress-theme-teek) |
7
- [Preview](https://notes.teek.top/) |
8
- [Docs](http://vp.teek.top/)
5
+ [Github](https://github.com/Kele-Bingtang/vitepress-theme-teek) | [Gitee](https://gitee.com/kele-bingtang/vitepress-theme-teek) | [Preview](https://notes.teek.top/) |[Docs](http://vp.teek.top/)
9
6
 
10
- ✨一个轻量、简洁高效、灵活配置的 VitePress 主题。
7
+ ✨一个轻量、简洁高效、灵活配置、易于扩展的 VitePress 主题。
11
8
 
12
9
  </div>
13
10
 
@@ -11,7 +11,7 @@ function resolveTitle(theme) {
11
11
  return typeof theme.outline === "object" && !Array.isArray(theme.outline) && theme.outline.label || "On this page";
12
12
  }
13
13
  function getHeaders(range) {
14
- const ns = useNamespace("");
14
+ const ns = useNamespace();
15
15
  const headers = [...document.querySelectorAll(`.${ns.joinNamespace("article-page")} :where(h1,h2,h3,h4,h5,h6)`)].filter((el) => el.id && el.hasChildNodes()).map((el) => {
16
16
  const level = Number(el.tagName[1]);
17
17
  return {
@@ -14,4 +14,5 @@ export declare const ns: {
14
14
  joinNamespace: (scope?: string) => string;
15
15
  cssVar: (name: string) => string;
16
16
  cssVarName: (name: string) => string;
17
+ storageKey: (...key: string[]) => string;
17
18
  };
@@ -1,8 +1,5 @@
1
1
  import { IconProps } from './icon';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- type __VLS_Props = IconProps & {
4
- icon: any;
5
- };
6
3
  declare function __VLS_template(): {
7
4
  attrs: Partial<{}>;
8
5
  slots: {
@@ -12,7 +9,7 @@ declare function __VLS_template(): {
12
9
  rootEl: HTMLSpanElement;
13
10
  };
14
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
12
+ declare const __VLS_component: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
16
13
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
14
  export default _default;
18
15
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -42,6 +42,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  if (__props.iconType && ["unicode", "iconfont", "symbol"].includes(__props.iconType)) {
43
43
  return __props.iconType;
44
44
  }
45
+ if (!isString(__props.icon)) return "iconfont";
45
46
  if (__props.icon.toLowerCase().startsWith("if-")) return "iconfont";
46
47
  if (__props.icon.toLowerCase().startsWith("uni-")) return "unicode";
47
48
  if (__props.icon.toLowerCase().startsWith("sym-")) return "symbol";
@@ -15,7 +15,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  setup(__props) {
16
16
  const ns = useNamespace("title-tag");
17
17
  return (_ctx, _cache) => {
18
- return _ctx.text ? (openBlock(), createElementBlock(
18
+ return _ctx.text || _ctx.$slots.default ? (openBlock(), createElementBlock(
19
19
  "span",
20
20
  {
21
21
  key: 0,
@@ -54,6 +54,7 @@ export { default as TkHomeFriendLinkCard } from './theme/HomeFriendLinkCard/src/
54
54
  export { default as TkHomeFullscreenWallpaper } from './theme/HomeFullscreenWallpaper/src/index.vue2.mjs';
55
55
  export { default as TkHomeCardList } from './theme/HomeCardList/src/index.vue2.mjs';
56
56
  export { default as TkHomeMyCard } from './theme/HomeMyCard/src/index.vue2.mjs';
57
+ export { default as TkHomeMyCardScreen } from './theme/HomeMyCard/src/HomeMyCardScreen.vue2.mjs';
57
58
  export { default as TkHomePostList } from './theme/HomePostList/src/index.vue2.mjs';
58
59
  export { default as TkHomePostItem } from './theme/HomePostList/src/HomePostItem.vue2.mjs';
59
60
  export { default as TkHomeTagCard } from './theme/HomeTagCard/src/index.vue2.mjs';
@@ -8,7 +8,7 @@ import { useTeekConfig } from '../../ConfigProvider/index.mjs';
8
8
  var _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "index",
10
10
  setup(__props) {
11
- const ns = useNamespace("");
11
+ const ns = useNamespace();
12
12
  const { getTeekConfigRef } = useTeekConfig();
13
13
  const themeConfig = getTeekConfigRef(null, {
14
14
  vpHome: true,
@@ -15,7 +15,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  ...{ name: "CodeBlockToggle" },
16
16
  __name: "index",
17
17
  setup(__props) {
18
- const ns = useNamespace("");
18
+ const ns = useNamespace();
19
19
  const { getTeekConfigRef } = useTeekConfig();
20
20
  const codeBlockConfig = getTeekConfigRef("codeBlock", {
21
21
  collapseHeight: 700,
@@ -13,7 +13,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  ...{ name: "CommentArtalk" },
14
14
  __name: "index",
15
15
  setup(__props) {
16
- const ns = useNamespace("");
16
+ const ns = useNamespace();
17
17
  const vpRouter = useVpRouter();
18
18
  const { getTeekConfig } = useTeekConfig();
19
19
  const { isDark, page } = useData();
@@ -11,7 +11,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  ...{ name: "CommentGiscus" },
12
12
  __name: "index",
13
13
  setup(__props) {
14
- const ns = useNamespace("");
14
+ const ns = useNamespace();
15
15
  const vpRouter = useVpRouter();
16
16
  const { getTeekConfig } = useTeekConfig();
17
17
  const { isDark } = useData();
@@ -11,7 +11,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  ...{ name: "CommentTwikoo" },
12
12
  __name: "index",
13
13
  setup(__props) {
14
- const ns = useNamespace("");
14
+ const ns = useNamespace();
15
15
  const vpRouter = useVpRouter();
16
16
  const { getTeekConfig } = useTeekConfig();
17
17
  const twikooOptions = getTeekConfig("comment", {}).options;
@@ -13,7 +13,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  ...{ name: "CommentWaline" },
14
14
  __name: "index",
15
15
  setup(__props) {
16
- const ns = useNamespace("");
16
+ const ns = useNamespace();
17
17
  const vpRouter = useVpRouter();
18
18
  const { getTeekConfig } = useTeekConfig();
19
19
  const walineOptions = getTeekConfig("comment", {}).options;
@@ -2,8 +2,9 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: Partial<Record<any, (_: {}) => any>> & {
5
- 'teek-home-info-before'?(_: {}): any;
6
- 'teek-home-info-after'?(_: {}): any;
5
+ 'teek-home-card-before'?(_: {}): any;
6
+ 'teek-home-card'?(_: {}): any;
7
+ 'teek-home-card-after'?(_: {}): any;
7
8
  };
8
9
  refs: {};
9
10
  rootEl: HTMLDivElement;
@@ -69,46 +69,48 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
69
69
  class: normalizeClass([unref(ns).b(), "flx-column"])
70
70
  },
71
71
  [
72
- renderSlot(_ctx.$slots, "teek-home-info-before"),
73
- (openBlock(true), createElementBlock(
74
- Fragment,
75
- null,
76
- renderList(finalHomeCardSort.value, (item) => {
77
- return openBlock(), createElementBlock(
78
- Fragment,
79
- { key: item },
80
- [
81
- componentMap.value[item]?.show ? (openBlock(), createBlock(
82
- resolveDynamicComponent(componentMap.value[item]?.el),
83
- mergeProps({
84
- key: 0,
85
- ref_for: true
86
- }, componentMap.value[item]?.props),
87
- createSlots({
88
- _: 2
89
- /* DYNAMIC */
90
- }, [
91
- renderList(componentMap.value[item]?.slot, (name) => {
92
- return {
93
- name,
94
- fn: withCtx(() => [
95
- renderSlot(_ctx.$slots, name)
96
- ])
97
- };
98
- })
99
- ]),
100
- 1040
101
- /* FULL_PROPS, DYNAMIC_SLOTS */
102
- )) : createCommentVNode("v-if", true)
103
- ],
104
- 64
105
- /* STABLE_FRAGMENT */
106
- );
107
- }),
108
- 128
109
- /* KEYED_FRAGMENT */
110
- )),
111
- renderSlot(_ctx.$slots, "teek-home-info-after")
72
+ renderSlot(_ctx.$slots, "teek-home-card-before"),
73
+ renderSlot(_ctx.$slots, "teek-home-card", {}, () => [
74
+ (openBlock(true), createElementBlock(
75
+ Fragment,
76
+ null,
77
+ renderList(finalHomeCardSort.value, (item) => {
78
+ return openBlock(), createElementBlock(
79
+ Fragment,
80
+ { key: item },
81
+ [
82
+ componentMap.value[item]?.show ? (openBlock(), createBlock(
83
+ resolveDynamicComponent(componentMap.value[item]?.el),
84
+ mergeProps({
85
+ key: 0,
86
+ ref_for: true
87
+ }, componentMap.value[item]?.props),
88
+ createSlots({
89
+ _: 2
90
+ /* DYNAMIC */
91
+ }, [
92
+ renderList(componentMap.value[item]?.slot, (name) => {
93
+ return {
94
+ name,
95
+ fn: withCtx(() => [
96
+ renderSlot(_ctx.$slots, name)
97
+ ])
98
+ };
99
+ })
100
+ ]),
101
+ 1040
102
+ /* FULL_PROPS, DYNAMIC_SLOTS */
103
+ )) : createCommentVNode("v-if", true)
104
+ ],
105
+ 64
106
+ /* STABLE_FRAGMENT */
107
+ );
108
+ }),
109
+ 128
110
+ /* KEYED_FRAGMENT */
111
+ ))
112
+ ]),
113
+ renderSlot(_ctx.$slots, "teek-home-card-after")
112
114
  ],
113
115
  2
114
116
  /* CLASS */
@@ -5,8 +5,9 @@ type __VLS_Props = {
5
5
  declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
7
7
  slots: {
8
- 'teek-home-category-before'?(_: {}): any;
9
- 'teek-home-category-after'?(_: {}): any;
8
+ 'teek-home-card-category-before'?(_: {}): any;
9
+ 'teek-home-card-category'?(_: {}): any;
10
+ 'teek-home-card-category-after'?(_: {}): any;
10
11
  };
11
12
  refs: {
12
13
  itemRefs: HTMLAnchorElement[];
@@ -93,81 +93,83 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
93
93
  Fragment,
94
94
  null,
95
95
  [
96
- renderSlot(_ctx.$slots, "teek-home-category-before"),
97
- createVNode(unref(_sfc_main$1), {
98
- page: !_ctx.categoriesPage,
99
- modelValue: pageNum.value,
100
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => pageNum.value = $event),
101
- pageSize: unref(categoryConfig).limit,
102
- total: categories.value.length,
103
- title: finalTitle.value[_ctx.categoriesPage ? "pt" : "ht"],
104
- titleClick: handleSwitchCategory,
105
- autoPage: unref(categoryConfig).autoPage,
106
- pageSpeed: unref(categoryConfig).pageSpeed,
107
- class: normalizeClass([unref(ns).b(), unref(ns).is("page", _ctx.categoriesPage)]),
108
- "aria-label": unref(t)("tk.categoryCard.label")
109
- }, {
110
- default: withCtx(({ transitionName }) => [
111
- categories.value.length ? (openBlock(), createBlock(TransitionGroup, {
112
- key: 0,
113
- name: transitionName,
114
- tag: "div",
115
- mode: "out-in",
116
- class: normalizeClass(`${unref(ns).e("list")} flx-column`),
117
- "aria-label": unref(t)("tk.categoryCard.listLabel")
118
- }, {
119
- default: withCtx(() => [
120
- (openBlock(true), createElementBlock(
121
- Fragment,
122
- null,
123
- renderList(currentCategories.value, (item, index) => {
124
- return openBlock(), createElementBlock("a", {
125
- ref_for: true,
126
- ref_key: "itemRefs",
127
- ref: itemRefs,
128
- key: item.name,
129
- onClick: ($event) => handleSwitchCategory(item.name),
130
- class: normalizeClass([{ active: item.name === selectedCategory.value }, "hover-color"]),
131
- style: normalizeStyle(`top: ${index * itemRefs.value?.[index]?.getBoundingClientRect().height || 0}px`),
132
- "aria-label": item.name
133
- }, [
134
- createElementVNode(
135
- "span",
136
- _hoisted_2,
137
- toDisplayString(item.name),
138
- 1
139
- /* TEXT */
140
- ),
141
- createElementVNode(
142
- "span",
143
- null,
144
- toDisplayString(item.length),
145
- 1
146
- /* TEXT */
147
- )
148
- ], 14, _hoisted_1);
149
- }),
150
- 128
151
- /* KEYED_FRAGMENT */
152
- )),
153
- !_ctx.categoriesPage && unref(categoryConfig).limit < categories.value.length ? (openBlock(), createElementBlock("a", {
154
- key: 0,
155
- href: unref(withBase)(unref(categoryPath)),
156
- "aria-label": unref(categoryConfig).moreLabel
157
- }, toDisplayString(unref(categoryConfig).moreLabel), 9, _hoisted_3)) : createCommentVNode("v-if", true)
158
- ]),
159
- _: 2
160
- /* DYNAMIC */
161
- }, 1032, ["name", "class", "aria-label"])) : (openBlock(), createElementBlock("div", {
162
- key: 1,
163
- class: normalizeClass(unref(ns).m("empty")),
164
- "aria-label": unref(categoryConfig).emptyLabel
165
- }, toDisplayString(unref(categoryConfig).emptyLabel), 11, _hoisted_4))
166
- ]),
167
- _: 1
168
- /* STABLE */
169
- }, 8, ["page", "modelValue", "pageSize", "total", "title", "autoPage", "pageSpeed", "class", "aria-label"]),
170
- renderSlot(_ctx.$slots, "teek-home-category-after")
96
+ renderSlot(_ctx.$slots, "teek-home-card-category-before"),
97
+ renderSlot(_ctx.$slots, "teek-home-card-category", {}, () => [
98
+ createVNode(unref(_sfc_main$1), {
99
+ page: !_ctx.categoriesPage,
100
+ modelValue: pageNum.value,
101
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => pageNum.value = $event),
102
+ pageSize: unref(categoryConfig).limit,
103
+ total: categories.value.length,
104
+ title: finalTitle.value[_ctx.categoriesPage ? "pt" : "ht"],
105
+ titleClick: handleSwitchCategory,
106
+ autoPage: unref(categoryConfig).autoPage,
107
+ pageSpeed: unref(categoryConfig).pageSpeed,
108
+ class: normalizeClass([unref(ns).b(), unref(ns).is("page", _ctx.categoriesPage)]),
109
+ "aria-label": unref(t)("tk.categoryCard.label")
110
+ }, {
111
+ default: withCtx(({ transitionName }) => [
112
+ categories.value.length ? (openBlock(), createBlock(TransitionGroup, {
113
+ key: 0,
114
+ name: transitionName,
115
+ tag: "div",
116
+ mode: "out-in",
117
+ class: normalizeClass(`${unref(ns).e("list")} flx-column`),
118
+ "aria-label": unref(t)("tk.categoryCard.listLabel")
119
+ }, {
120
+ default: withCtx(() => [
121
+ (openBlock(true), createElementBlock(
122
+ Fragment,
123
+ null,
124
+ renderList(currentCategories.value, (item, index) => {
125
+ return openBlock(), createElementBlock("a", {
126
+ ref_for: true,
127
+ ref_key: "itemRefs",
128
+ ref: itemRefs,
129
+ key: item.name,
130
+ onClick: ($event) => handleSwitchCategory(item.name),
131
+ class: normalizeClass([{ active: item.name === selectedCategory.value }, "hover-color"]),
132
+ style: normalizeStyle(`top: ${index * itemRefs.value?.[index]?.getBoundingClientRect().height || 0}px`),
133
+ "aria-label": item.name
134
+ }, [
135
+ createElementVNode(
136
+ "span",
137
+ _hoisted_2,
138
+ toDisplayString(item.name),
139
+ 1
140
+ /* TEXT */
141
+ ),
142
+ createElementVNode(
143
+ "span",
144
+ null,
145
+ toDisplayString(item.length),
146
+ 1
147
+ /* TEXT */
148
+ )
149
+ ], 14, _hoisted_1);
150
+ }),
151
+ 128
152
+ /* KEYED_FRAGMENT */
153
+ )),
154
+ !_ctx.categoriesPage && unref(categoryConfig).limit < categories.value.length ? (openBlock(), createElementBlock("a", {
155
+ key: 0,
156
+ href: unref(withBase)(unref(categoryPath)),
157
+ "aria-label": unref(categoryConfig).moreLabel
158
+ }, toDisplayString(unref(categoryConfig).moreLabel), 9, _hoisted_3)) : createCommentVNode("v-if", true)
159
+ ]),
160
+ _: 2
161
+ /* DYNAMIC */
162
+ }, 1032, ["name", "class", "aria-label"])) : (openBlock(), createElementBlock("div", {
163
+ key: 1,
164
+ class: normalizeClass(unref(ns).m("empty")),
165
+ "aria-label": unref(categoryConfig).emptyLabel
166
+ }, toDisplayString(unref(categoryConfig).emptyLabel), 11, _hoisted_4))
167
+ ]),
168
+ _: 1
169
+ /* STABLE */
170
+ }, 8, ["page", "modelValue", "pageSize", "total", "title", "autoPage", "pageSpeed", "class", "aria-label"])
171
+ ]),
172
+ renderSlot(_ctx.$slots, "teek-home-card-category-after")
171
173
  ],
172
174
  64
173
175
  /* STABLE_FRAGMENT */
@@ -2,8 +2,9 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
5
- 'teek-home-doc-analysis-before'?(_: {}): any;
6
- 'teek-home-doc-analysis-after'?(_: {}): any;
5
+ 'teek-home-card-doc-analysis-before'?(_: {}): any;
6
+ 'teek-home-card-doc-analysis'?(_: {}): any;
7
+ 'teek-home-card-doc-analysis-after'?(_: {}): any;
7
8
  };
8
9
  refs: {};
9
10
  rootEl: any;
@@ -159,53 +159,55 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
159
159
  Fragment,
160
160
  null,
161
161
  [
162
- renderSlot(_ctx.$slots, "teek-home-doc-analysis-before"),
163
- createVNode(unref(_sfc_main$1), {
164
- title: finalTitle.value,
165
- class: normalizeClass(unref(ns).b()),
166
- "aria-label": unref(t)("tk.docAnalysisCard.label")
167
- }, {
168
- default: withCtx(() => [
169
- (openBlock(true), createElementBlock(
170
- Fragment,
171
- null,
172
- renderList(docAnalysisList.value, (item) => {
173
- return openBlock(), createElementBlock(
174
- Fragment,
175
- {
176
- key: item.key
177
- },
178
- [
179
- item.show !== false ? (openBlock(), createElementBlock(
180
- "div",
181
- {
182
- key: 0,
183
- class: normalizeClass(unref(ns).e("item"))
184
- },
185
- [
186
- createElementVNode("span", {
187
- innerHTML: item.label
188
- }, null, 8, _hoisted_1),
189
- createElementVNode("span", {
190
- innerHTML: item.value
191
- }, null, 8, _hoisted_2)
192
- ],
193
- 2
194
- /* CLASS */
195
- )) : createCommentVNode("v-if", true)
196
- ],
197
- 64
198
- /* STABLE_FRAGMENT */
199
- );
200
- }),
201
- 128
202
- /* KEYED_FRAGMENT */
203
- ))
204
- ]),
205
- _: 1
206
- /* STABLE */
207
- }, 8, ["title", "class", "aria-label"]),
208
- renderSlot(_ctx.$slots, "teek-home-doc-analysis-after")
162
+ renderSlot(_ctx.$slots, "teek-home-card-doc-analysis-before"),
163
+ renderSlot(_ctx.$slots, "teek-home-card-doc-analysis", {}, () => [
164
+ createVNode(unref(_sfc_main$1), {
165
+ title: finalTitle.value,
166
+ class: normalizeClass(unref(ns).b()),
167
+ "aria-label": unref(t)("tk.docAnalysisCard.label")
168
+ }, {
169
+ default: withCtx(() => [
170
+ (openBlock(true), createElementBlock(
171
+ Fragment,
172
+ null,
173
+ renderList(docAnalysisList.value, (item) => {
174
+ return openBlock(), createElementBlock(
175
+ Fragment,
176
+ {
177
+ key: item.key
178
+ },
179
+ [
180
+ item.show !== false ? (openBlock(), createElementBlock(
181
+ "div",
182
+ {
183
+ key: 0,
184
+ class: normalizeClass(unref(ns).e("item"))
185
+ },
186
+ [
187
+ createElementVNode("span", {
188
+ innerHTML: item.label
189
+ }, null, 8, _hoisted_1),
190
+ createElementVNode("span", {
191
+ innerHTML: item.value
192
+ }, null, 8, _hoisted_2)
193
+ ],
194
+ 2
195
+ /* CLASS */
196
+ )) : createCommentVNode("v-if", true)
197
+ ],
198
+ 64
199
+ /* STABLE_FRAGMENT */
200
+ );
201
+ }),
202
+ 128
203
+ /* KEYED_FRAGMENT */
204
+ ))
205
+ ]),
206
+ _: 1
207
+ /* STABLE */
208
+ }, 8, ["title", "class", "aria-label"])
209
+ ]),
210
+ renderSlot(_ctx.$slots, "teek-home-card-doc-analysis-after")
209
211
  ],
210
212
  64
211
213
  /* STABLE_FRAGMENT */
@@ -2,8 +2,9 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
5
- 'teek-home-friend-link-before'?(_: {}): any;
6
- 'teek-home-friend-link-after'?(_: {}): any;
5
+ 'teek-home-card-friend-link-before'?(_: {}): any;
6
+ 'teek-home-card-friend-link'?(_: {}): any;
7
+ 'teek-home-card-friend-link-after'?(_: {}): any;
7
8
  };
8
9
  refs: {
9
10
  itemRefs: HTMLLIElement[];