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.
- package/README.md +2 -5
- package/es/components/common/ArticlePage/src/components/outline.mjs +1 -1
- package/es/components/common/Breadcrumb/src/namespace.d.ts +1 -0
- package/es/components/common/Icon/src/index.vue.d.ts +1 -4
- package/es/components/common/Icon/src/index.vue2.mjs +1 -0
- package/es/components/common/TitleTag/src/index.vue2.mjs +1 -1
- package/es/components/index.mjs +1 -0
- package/es/components/theme/ArticlePageStyle/src/index.vue2.mjs +1 -1
- package/es/components/theme/CodeBlockToggle/src/index.vue2.mjs +1 -1
- package/es/components/theme/CommentArtalk/src/index.vue2.mjs +1 -1
- package/es/components/theme/CommentGiscus/src/index.vue2.mjs +1 -1
- package/es/components/theme/CommentTwikoo/src/index.vue2.mjs +1 -1
- package/es/components/theme/CommentWaline/src/index.vue2.mjs +1 -1
- package/es/components/theme/HomeCardList/src/index.vue.d.ts +3 -2
- package/es/components/theme/HomeCardList/src/index.vue2.mjs +42 -40
- package/es/components/theme/HomeCategoryCard/src/index.vue.d.ts +3 -2
- package/es/components/theme/HomeCategoryCard/src/index.vue2.mjs +77 -75
- package/es/components/theme/HomeDocAnalysisCard/src/index.vue.d.ts +3 -2
- package/es/components/theme/HomeDocAnalysisCard/src/index.vue2.mjs +49 -47
- package/es/components/theme/HomeFriendLinkCard/src/index.vue.d.ts +3 -2
- package/es/components/theme/HomeFriendLinkCard/src/index.vue2.mjs +93 -91
- package/es/components/theme/HomeMyCard/index.d.ts +2 -1
- package/es/components/theme/HomeMyCard/index.mjs +1 -0
- package/es/components/theme/HomeMyCard/src/HomeMyCardScreen.vue.d.ts +20 -0
- package/es/components/theme/HomeMyCard/src/HomeMyCardScreen.vue.mjs +5 -0
- package/es/components/theme/HomeMyCard/src/HomeMyCardScreen.vue2.mjs +83 -0
- package/es/components/theme/HomeMyCard/src/index.vue.d.ts +3 -2
- package/es/components/theme/HomeMyCard/src/index.vue2.mjs +103 -98
- package/es/components/theme/HomeMyCard/src/instance.d.ts +2 -0
- package/es/components/theme/HomeMyCard/style/css.d.ts +1 -0
- package/es/components/theme/HomeMyCard/style/css.mjs +1 -0
- package/es/components/theme/HomeMyCard/style/index.d.ts +1 -0
- package/es/components/theme/HomeMyCard/style/index.mjs +1 -0
- package/es/components/theme/HomeTagCard/src/index.vue.d.ts +3 -2
- package/es/components/theme/HomeTagCard/src/index.vue2.mjs +75 -73
- package/es/components/theme/HomeTopArticleCard/src/index.vue.d.ts +3 -2
- package/es/components/theme/HomeTopArticleCard/src/index.vue2.mjs +92 -90
- package/es/components/theme/Layout/src/index.vue2.mjs +14 -9
- package/es/components/theme/LoginPage/src/index.vue2.mjs +5 -5
- package/es/components/theme/LoginPage/src/login.mjs +9 -4
- package/es/components/theme/Notice/src/index.vue2.mjs +1 -1
- package/es/components/theme/RightBottomButton/src/ThemeColor.vue2.mjs +4 -4
- package/es/components/theme/RightBottomButton/src/namespace.d.ts +1 -0
- package/es/components/theme/ThemeEnhance/src/LayoutSwitch.vue2.mjs +6 -0
- package/es/components/theme/ThemeEnhance/src/namespace.d.ts +1 -0
- package/es/components/theme/ThemeEnhance/src/namespace.mjs +7 -7
- package/es/components/theme/index.mjs +1 -0
- package/es/config/interface/blogger.d.ts +13 -0
- package/es/config/vitePlugins.mjs +3 -1
- package/es/hooks/useNamespace.d.ts +2 -1
- package/es/hooks/useNamespace.mjs +4 -2
- package/es/index.css +2 -1
- package/es/index.mjs +1 -0
- package/es/teek/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +1 -1
- package/index.js +1137 -1032
- package/index.min.js +46 -46
- package/index.min.mjs +52 -52
- package/index.mjs +1085 -981
- package/lib/components/common/ArticlePage/src/components/outline.js +1 -1
- package/lib/components/common/Breadcrumb/src/namespace.d.ts +1 -0
- package/lib/components/common/Icon/src/index.vue.d.ts +1 -4
- package/lib/components/common/Icon/src/index.vue2.js +1 -0
- package/lib/components/common/TitleTag/src/index.vue2.js +1 -1
- package/lib/components/index.js +2 -0
- package/lib/components/theme/ArticlePageStyle/src/index.vue2.js +1 -1
- package/lib/components/theme/CodeBlockToggle/src/index.vue2.js +1 -1
- package/lib/components/theme/CommentArtalk/src/index.vue2.js +1 -1
- package/lib/components/theme/CommentGiscus/src/index.vue2.js +1 -1
- package/lib/components/theme/CommentTwikoo/src/index.vue2.js +1 -1
- package/lib/components/theme/CommentWaline/src/index.vue2.js +1 -1
- package/lib/components/theme/HomeCardList/src/index.vue.d.ts +3 -2
- package/lib/components/theme/HomeCardList/src/index.vue2.js +42 -40
- package/lib/components/theme/HomeCategoryCard/src/index.vue.d.ts +3 -2
- package/lib/components/theme/HomeCategoryCard/src/index.vue2.js +77 -75
- package/lib/components/theme/HomeDocAnalysisCard/src/index.vue.d.ts +3 -2
- package/lib/components/theme/HomeDocAnalysisCard/src/index.vue2.js +49 -47
- package/lib/components/theme/HomeFriendLinkCard/src/index.vue.d.ts +3 -2
- package/lib/components/theme/HomeFriendLinkCard/src/index.vue2.js +93 -91
- package/lib/components/theme/HomeMyCard/index.d.ts +2 -1
- package/lib/components/theme/HomeMyCard/index.js +2 -0
- package/lib/components/theme/HomeMyCard/src/HomeMyCardScreen.vue.d.ts +20 -0
- package/lib/components/theme/HomeMyCard/src/HomeMyCardScreen.vue.js +9 -0
- package/lib/components/theme/HomeMyCard/src/HomeMyCardScreen.vue2.js +87 -0
- package/lib/components/theme/HomeMyCard/src/index.vue.d.ts +3 -2
- package/lib/components/theme/HomeMyCard/src/index.vue2.js +102 -97
- package/lib/components/theme/HomeMyCard/src/instance.d.ts +2 -0
- package/lib/components/theme/HomeMyCard/style/css.d.ts +1 -0
- package/lib/components/theme/HomeMyCard/style/css.js +1 -0
- package/lib/components/theme/HomeMyCard/style/index.d.ts +1 -0
- package/lib/components/theme/HomeMyCard/style/index.js +1 -0
- package/lib/components/theme/HomeTagCard/src/index.vue.d.ts +3 -2
- package/lib/components/theme/HomeTagCard/src/index.vue2.js +75 -73
- package/lib/components/theme/HomeTopArticleCard/src/index.vue.d.ts +3 -2
- package/lib/components/theme/HomeTopArticleCard/src/index.vue2.js +92 -90
- package/lib/components/theme/Layout/src/index.vue2.js +6 -1
- package/lib/components/theme/LoginPage/src/index.vue2.js +5 -5
- package/lib/components/theme/LoginPage/src/login.js +9 -4
- package/lib/components/theme/Notice/src/index.vue2.js +1 -1
- package/lib/components/theme/RightBottomButton/src/ThemeColor.vue2.js +4 -4
- package/lib/components/theme/RightBottomButton/src/namespace.d.ts +1 -0
- package/lib/components/theme/ThemeEnhance/src/LayoutSwitch.vue2.js +6 -0
- package/lib/components/theme/ThemeEnhance/src/namespace.d.ts +1 -0
- package/lib/components/theme/ThemeEnhance/src/namespace.js +7 -7
- package/lib/components/theme/index.js +2 -0
- package/lib/config/interface/blogger.d.ts +13 -0
- package/lib/config/vitePlugins.js +3 -1
- package/lib/hooks/useNamespace.d.ts +2 -1
- package/lib/hooks/useNamespace.js +4 -2
- package/lib/index.css +1 -1
- package/lib/index.js +2 -0
- package/lib/teek/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/common/page-card.scss +3 -3
- package/theme-chalk/src/components/common/title-tag.scss +1 -1
- package/theme-chalk/src/components/theme/article-page-style.scss +3 -3
- package/theme-chalk/src/components/theme/body-bg-image.scss +1 -1
- package/theme-chalk/src/components/theme/footer-group.scss +1 -1
- package/theme-chalk/src/components/theme/home-banner.scss +16 -2
- package/theme-chalk/src/components/theme/home-my-card-screen.scss +28 -0
- package/theme-chalk/src/components/theme/home-my-card.scss +14 -9
- package/theme-chalk/src/components/theme/home.scss +2 -1
- package/theme-chalk/src/components/theme/login-page.scss +10 -0
- package/theme-chalk/src/components/theme/risk-link-page.scss +4 -0
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/var/theme-size.scss +1 -0
- package/theme-chalk/tk-article-page-style.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-footer-group.css +1 -1
- package/theme-chalk/tk-home-banner.css +1 -1
- package/theme-chalk/tk-home-my-card-screen.css +1 -0
- package/theme-chalk/tk-home-my-card.css +1 -1
- package/theme-chalk/tk-home.css +1 -1
- package/theme-chalk/tk-login-page.css +1 -1
- 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
|
-
|
|
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 {
|
|
@@ -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<
|
|
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,
|
package/es/components/index.mjs
CHANGED
|
@@ -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-
|
|
6
|
-
'teek-home-
|
|
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-
|
|
73
|
-
(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
|
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
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
|
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[];
|