jeawin-astro 3.0.36 → 3.0.37
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/package.json +1 -1
- package/src/components/banner_swiper.astro +2 -1
- package/src/components/cards/news_grid_card1.astro +2 -1
- package/src/components/cards/news_grid_card2.astro +2 -1
- package/src/components/cards/news_grid_card3.astro +2 -1
- package/src/components/cards/news_grid_card4.astro +2 -1
- package/src/components/cards/news_grid_card5.astro +2 -1
- package/src/components/cards/news_list_card.astro +2 -1
- package/src/components/cards/news_list_card1.astro +2 -1
- package/src/components/common_card.astro +2 -2
- package/src/components/news_card.astro +2 -1
- package/src/components/product_card.astro +2 -1
package/package.json
CHANGED
|
@@ -65,6 +65,7 @@ const banners = await jeawinapi.get_nodes({ channel_id: 5 });
|
|
|
65
65
|
mousewheel-force-to-axis="true"
|
|
66
66
|
navigation="true"
|
|
67
67
|
pagination="true"
|
|
68
|
+
auto-height="true"
|
|
68
69
|
>
|
|
69
70
|
{banners.nodes &&
|
|
70
71
|
banners.nodes.map((banner: any, idx: number) => (
|
|
@@ -72,7 +73,7 @@ const banners = await jeawinapi.get_nodes({ channel_id: 5 });
|
|
|
72
73
|
{show_title && render_value(banner, 'show_text_block', '1') == '1' ? (
|
|
73
74
|
<div class="relative h-full w-full">
|
|
74
75
|
<div class="absolute inset-0 flex items-center justify-center text-white text-center p-4">
|
|
75
|
-
<div class="p-2 bg-[rgba(0,0,0,0.5)]">
|
|
76
|
+
<div class="p-2 px-4 bg-[rgba(0,0,0,0.5)] rounded-sm">
|
|
76
77
|
{
|
|
77
78
|
idx > 0 ? (
|
|
78
79
|
<div class="text-base md:text-3xl lg:text-4xl">{banner.node_title}</div>
|
|
@@ -30,6 +30,7 @@ const {
|
|
|
30
30
|
publish_time,
|
|
31
31
|
hits,
|
|
32
32
|
title_tag,
|
|
33
|
+
title_class,
|
|
33
34
|
always_show_img,
|
|
34
35
|
} = Astro.props;
|
|
35
36
|
|
|
@@ -72,7 +73,7 @@ const final_content = truncate(content, {
|
|
|
72
73
|
>
|
|
73
74
|
{category_name}
|
|
74
75
|
</div>
|
|
75
|
-
<TitleTag class="title-font text-2xl font-medium text-gray-900 mb-3">
|
|
76
|
+
<TitleTag class:list={["title-font text-2xl font-medium text-gray-900 mb-3", title_class]}>
|
|
76
77
|
<a href={render_url(node_url, base, null, url_suffix)} title={title}>{title}</a>
|
|
77
78
|
</TitleTag>
|
|
78
79
|
|
|
@@ -25,6 +25,7 @@ const {
|
|
|
25
25
|
publish_time,
|
|
26
26
|
hits,
|
|
27
27
|
title_tag,
|
|
28
|
+
title_class
|
|
28
29
|
} = Astro.props;
|
|
29
30
|
|
|
30
31
|
const TitleTag = title_tag || "div";
|
|
@@ -44,7 +45,7 @@ const final_content = truncate(content, {
|
|
|
44
45
|
{category_name}
|
|
45
46
|
</div>
|
|
46
47
|
<TitleTag
|
|
47
|
-
class="title-font text-2xl font-medium text-gray-900 mb-3"
|
|
48
|
+
class:list={["title-font text-2xl font-medium text-gray-900 mb-3", title_class]}
|
|
48
49
|
>
|
|
49
50
|
<a href={render_url(node_url, base, null, url_suffix)} title={title}>{title}</a>
|
|
50
51
|
</TitleTag>
|
|
@@ -26,6 +26,7 @@ const {
|
|
|
26
26
|
publish_time,
|
|
27
27
|
hits,
|
|
28
28
|
title_tag,
|
|
29
|
+
title_class
|
|
29
30
|
} = Astro.props;
|
|
30
31
|
|
|
31
32
|
const TitleTag = title_tag || "div";
|
|
@@ -44,7 +45,7 @@ const final_content = truncate(content, {
|
|
|
44
45
|
>{category_name}</span
|
|
45
46
|
>
|
|
46
47
|
<TitleTag
|
|
47
|
-
class="sm:text-3xl text-2xl title-font font-medium text-gray-900 mt-4 mb-4"
|
|
48
|
+
class:list={["sm:text-3xl text-2xl title-font font-medium text-gray-900 mt-4 mb-4", title_class]}
|
|
48
49
|
>
|
|
49
50
|
<a href={render_url(node_url, base, null, url_suffix)} title={title}>{title}</a>
|
|
50
51
|
</TitleTag>
|
|
@@ -26,6 +26,7 @@ const {
|
|
|
26
26
|
publish_time,
|
|
27
27
|
hits,
|
|
28
28
|
title_tag,
|
|
29
|
+
title_class
|
|
29
30
|
} = Astro.props;
|
|
30
31
|
|
|
31
32
|
const TitleTag = title_tag || "div";
|
|
@@ -55,7 +56,7 @@ const date = render_date(siteinfo.language_id, publish_time, "DD");
|
|
|
55
56
|
<div class="tracking-widest text-sm title-font font-medium mb-1">
|
|
56
57
|
{category_name}
|
|
57
58
|
</div>
|
|
58
|
-
<TitleTag class="title-font text-2xl font-medium text-gray-900 mb-3">
|
|
59
|
+
<TitleTag class:list={["title-font text-2xl font-medium text-gray-900 mb-3", title_class]}>
|
|
59
60
|
<a href={render_url(node_url, base, null, url_suffix)} title={title}>{title}</a>
|
|
60
61
|
</TitleTag>
|
|
61
62
|
<p class="leading-relaxed mb-5">
|
|
@@ -39,6 +39,7 @@ const {
|
|
|
39
39
|
publish_time,
|
|
40
40
|
hits,
|
|
41
41
|
title_tag,
|
|
42
|
+
title_class,
|
|
42
43
|
always_show_img,
|
|
43
44
|
} = Astro.props;
|
|
44
45
|
|
|
@@ -80,7 +81,7 @@ const final_content = truncate(content, {
|
|
|
80
81
|
>{category_name}</a
|
|
81
82
|
>
|
|
82
83
|
</div>
|
|
83
|
-
<TitleTag class="h4 card-title">
|
|
84
|
+
<TitleTag class:list={["h4 card-title", title_class]}>
|
|
84
85
|
<a href={render_url(node_url, base, null, url_suffix)} title={title}>{title}</a>
|
|
85
86
|
</TitleTag>
|
|
86
87
|
<p>{final_content}</p>
|
|
@@ -26,6 +26,7 @@ const {
|
|
|
26
26
|
publish_time,
|
|
27
27
|
hits,
|
|
28
28
|
title_tag,
|
|
29
|
+
title_class
|
|
29
30
|
} = Astro.props;
|
|
30
31
|
|
|
31
32
|
const TitleTag = title_tag || "div";
|
|
@@ -48,7 +49,7 @@ const final_content = truncate(content, {
|
|
|
48
49
|
<div class="mb-3 text-sm text-[#6c757d]">{category_name}</div>
|
|
49
50
|
) : null
|
|
50
51
|
}
|
|
51
|
-
<TitleTag class="text-2xl mb-3">
|
|
52
|
+
<TitleTag class:list={["text-2xl mb-3", title_class]}>
|
|
52
53
|
<a href={render_url(node_url, base, null, url_suffix)} title={title}>{title}</a>
|
|
53
54
|
</TitleTag>
|
|
54
55
|
<div class="mb-3 text-sm text-[#666] leading-relaxed">
|
|
@@ -26,6 +26,7 @@ const {
|
|
|
26
26
|
publish_time,
|
|
27
27
|
hits,
|
|
28
28
|
title_tag,
|
|
29
|
+
title_class
|
|
29
30
|
} = Astro.props;
|
|
30
31
|
|
|
31
32
|
const TitleTag = title_tag || "div";
|
|
@@ -46,7 +47,7 @@ const final_content = truncate(content, {
|
|
|
46
47
|
>
|
|
47
48
|
</div>
|
|
48
49
|
<div class="md:flex-grow">
|
|
49
|
-
<TitleTag class="text-2xl font-medium text-gray-900 title-font mb-2">
|
|
50
|
+
<TitleTag class:list={["text-2xl font-medium text-gray-900 title-font mb-2", title_class]}>
|
|
50
51
|
<a href={render_url(node_url, base, null, url_suffix)} title={title}>{title}</a>
|
|
51
52
|
</TitleTag>
|
|
52
53
|
<p class="leading-relaxed">
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import DefaultImage from "./default_image.astro";
|
|
20
20
|
import RenderImage from "./image.astro";
|
|
21
21
|
|
|
22
|
-
const { node, title_tag } = Astro.props;
|
|
22
|
+
const { node, title_tag, title_class } = Astro.props;
|
|
23
23
|
const { siteinfo, base, url_suffix } = Astro.locals;
|
|
24
24
|
|
|
25
25
|
const TitleTag = title_tag || "div";
|
|
@@ -67,7 +67,7 @@ if (render_value(node, "content")) {
|
|
|
67
67
|
}
|
|
68
68
|
</div>
|
|
69
69
|
<div class="mt-7">
|
|
70
|
-
<TitleTag class="text-center">
|
|
70
|
+
<TitleTag class:list={["text-center", title_class]}>
|
|
71
71
|
<a href={render_url(node.node_url, base, null, url_suffix)} title={node.node_title}
|
|
72
72
|
>{node.node_title}</a
|
|
73
73
|
>
|
|
@@ -22,6 +22,7 @@ const {
|
|
|
22
22
|
publish_time,
|
|
23
23
|
hits,
|
|
24
24
|
title_tag,
|
|
25
|
+
title_class
|
|
25
26
|
} = Astro.props;
|
|
26
27
|
|
|
27
28
|
const TitleTag = title_tag || "div";
|
|
@@ -39,7 +40,7 @@ const TitleTag = title_tag || "div";
|
|
|
39
40
|
</a>
|
|
40
41
|
|
|
41
42
|
<div class="text-[var(--themeColor)] mb-2">{category_name}</div>
|
|
42
|
-
<TitleTag class="mb-3">
|
|
43
|
+
<TitleTag class:list={["mb-3", title_class]}>
|
|
43
44
|
<a href={render_url(node_url, base, null, url_suffix)} title={title}>{title}</a>
|
|
44
45
|
</TitleTag>
|
|
45
46
|
<div class="flex items-center gap-3 text-[#6c757d] fill-[#6c757d] text-sm">
|
|
@@ -22,6 +22,7 @@ const {
|
|
|
22
22
|
original_price,
|
|
23
23
|
current_price,
|
|
24
24
|
title_tag,
|
|
25
|
+
title_class
|
|
25
26
|
} = Astro.props;
|
|
26
27
|
|
|
27
28
|
const { all_langs, base, url_suffix } = Astro.locals;
|
|
@@ -45,7 +46,7 @@ const RequestBtnText = render_value(all_langs, "request a quote");
|
|
|
45
46
|
|
|
46
47
|
<div class="p-3">
|
|
47
48
|
<TitleTag
|
|
48
|
-
class="my-2 text-[#222] hover:text-[#e53e3e] hover:underline"
|
|
49
|
+
class:list={["my-2 text-[#222] hover:text-[#e53e3e] hover:underline", title_class]}
|
|
49
50
|
>
|
|
50
51
|
<a href={render_url(node_url, base, null, url_suffix)} title={title} class="block text-center"
|
|
51
52
|
>{title}</a
|