@enyxs/wikex-components 0.11.2 → 0.11.8
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 +29 -0
- package/dist/index.js +124 -101
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +267 -96
- package/dist/index.mjs.map +1 -1
- package/dist/page-templates.mjs +152 -4
- package/dist/page-templates.mjs.map +1 -1
- package/dist/products.d.mts +65 -0
- package/dist/products.d.ts +65 -0
- package/dist/products.js +1326 -0
- package/dist/products.js.map +1 -0
- package/dist/products.mjs +1287 -0
- package/dist/products.mjs.map +1 -0
- package/dist/ui.d.mts +42 -0
- package/dist/ui.d.ts +42 -0
- package/dist/ui.js +368 -0
- package/dist/ui.js.map +1 -0
- package/dist/ui.mjs +330 -0
- package/dist/ui.mjs.map +1 -0
- package/package.json +14 -3
- package/dist/chunk-DLYDTRRJ.mjs +0 -158
- package/dist/chunk-DLYDTRRJ.mjs.map +0 -1
package/dist/page-templates.mjs
CHANGED
|
@@ -1,7 +1,155 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// src/wikex/page-templates.ts
|
|
2
|
+
var chrome = (components) => [
|
|
3
|
+
{ type: "commodity-header" },
|
|
4
|
+
...components,
|
|
5
|
+
{ type: "commodity-footer" }
|
|
6
|
+
];
|
|
7
|
+
var wikexCommodityPageTemplates = [
|
|
8
|
+
{
|
|
9
|
+
kind: "cms-page",
|
|
10
|
+
key: "commodity-home",
|
|
11
|
+
name: "Wikex Commodity \u2014 Trang ch\u1EE7",
|
|
12
|
+
description: "T\u1EA5t c\u1EA3 section c\u1EE7a landing page Wikex Commodity.",
|
|
13
|
+
route: "/",
|
|
14
|
+
slug: "trang-chu",
|
|
15
|
+
components: chrome([
|
|
16
|
+
{ type: "commodity-hero" },
|
|
17
|
+
{ type: "commodity-benefits" },
|
|
18
|
+
{ type: "commodity-position" },
|
|
19
|
+
{ type: "commodity-audience" },
|
|
20
|
+
{ type: "download-section" },
|
|
21
|
+
{ type: "commodity-steps" },
|
|
22
|
+
{ type: "commodity-markets" },
|
|
23
|
+
{ type: "commodity-faq" },
|
|
24
|
+
{ type: "commodity-registration" }
|
|
25
|
+
])
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
kind: "cms-page",
|
|
29
|
+
key: "commodity-about-us",
|
|
30
|
+
name: "Wikex Commodity \u2014 V\u1EC1 ch\xFAng t\xF4i",
|
|
31
|
+
description: "C\xE1c section c\u1EE7a route /about-us.",
|
|
32
|
+
route: "/about-us",
|
|
33
|
+
slug: "about-us",
|
|
34
|
+
seo: {
|
|
35
|
+
title: "Wikex - Giao D\u1ECBch H\xE0ng H\xF3a | S\xE0n giao d\u1ECBch h\xE0ng h\xF3a uy t\xEDn cho nh\xE0 \u0111\u1EA7u t\u01B0 Vi\u1EC7t",
|
|
36
|
+
description: "Th\xE0nh vi\xEAn Kinh doanh 090 c\u1EE7a S\u1EDF Giao d\u1ECBch H\xE0ng h\xF3a Vi\u1EC7t Nam (MXV). Th\xF4ng tin t\u1ED5ng quan, t\u1EA7m nh\xECn, s\u1EE9 m\u1EC7nh v\xE0 gi\xE1 tr\u1ECB c\u1ED1t l\xF5i c\u1EE7a Wikex."
|
|
37
|
+
},
|
|
38
|
+
components: chrome([
|
|
39
|
+
{ type: "commodity-about-hero" },
|
|
40
|
+
{ type: "commodity-about-intro" },
|
|
41
|
+
{ type: "commodity-about-vision-mission" },
|
|
42
|
+
{ type: "commodity-about-core-values" },
|
|
43
|
+
{ type: "commodity-about-gallery" },
|
|
44
|
+
{ type: "commodity-about-registration" }
|
|
45
|
+
])
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
kind: "cms-page",
|
|
49
|
+
key: "commodity-fees",
|
|
50
|
+
name: "Wikex Commodity \u2014 Bi\u1EC3u ph\xED & k\xFD qu\u1EF9",
|
|
51
|
+
description: "C\xE1c section c\u1EE7a route /bang-phi-ky-quy.",
|
|
52
|
+
route: "/bang-phi-ky-quy",
|
|
53
|
+
slug: "bang-phi-ky-quy",
|
|
54
|
+
seo: {
|
|
55
|
+
title: "B\u1EA3ng ph\xED giao d\u1ECBch & K\xFD qu\u1EF9 h\xE0ng h\xF3a Wikex | C\u1EADp nh\u1EADt m\u1EDBi nh\u1EA5t",
|
|
56
|
+
description: "C\u1EADp nh\u1EADt chi ti\u1EBFt b\u1EA3ng ph\xED giao d\u1ECBch, m\u1EE9c k\xFD qu\u1EF9 v\xE0 khung gi\u1EDD giao d\u1ECBch c\xE1c s\u1EA3n ph\u1EA9m h\xE0ng h\xF3a ph\xE1i sinh t\u1EA1i Wikex."
|
|
57
|
+
},
|
|
58
|
+
redirect: { target: "/comming-soon", permanent: false },
|
|
59
|
+
components: chrome([{ type: "commodity-fees" }])
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
kind: "cms-page",
|
|
63
|
+
key: "commodity-policy",
|
|
64
|
+
name: "Wikex Commodity \u2014 Ch\xEDnh s\xE1ch",
|
|
65
|
+
description: "C\xE1c section c\u1EE7a route /chinh-sach.",
|
|
66
|
+
route: "/chinh-sach",
|
|
67
|
+
slug: "chinh-sach",
|
|
68
|
+
components: chrome([{ type: "commodity-policy" }])
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
kind: "cms-page",
|
|
72
|
+
key: "commodity-coming-soon",
|
|
73
|
+
name: "Wikex Commodity \u2014 Coming soon",
|
|
74
|
+
description: "C\xE1c section c\u1EE7a route /comming-soon.",
|
|
75
|
+
route: "/comming-soon",
|
|
76
|
+
slug: "comming-soon",
|
|
77
|
+
components: chrome([{ type: "commodity-coming-soon" }])
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
kind: "cms-page",
|
|
81
|
+
key: "commodity-complaints",
|
|
82
|
+
name: "Wikex Commodity \u2014 Khi\u1EBFu n\u1EA1i",
|
|
83
|
+
description: "C\xE1c section c\u1EE7a route /khieu-nai.",
|
|
84
|
+
route: "/khieu-nai",
|
|
85
|
+
slug: "khieu-nai",
|
|
86
|
+
seo: {
|
|
87
|
+
title: "Gi\u1EA3i quy\u1EBFt khi\u1EBFu n\u1EA1i | Wikex - Giao d\u1ECBch h\xE0ng h\xF3a",
|
|
88
|
+
description: "Quy tr\xECnh ti\u1EBFp nh\u1EADn, x\u1EED l\xFD v\xE0 gi\u1EA3i quy\u1EBFt c\xE1c y\xEAu c\u1EA7u, ph\u1EA3n \xE1nh v\xE0 khi\u1EBFu n\u1EA1i c\u1EE7a kh\xE1ch h\xE0ng t\u1EA1i Wikex."
|
|
89
|
+
},
|
|
90
|
+
components: chrome([{ type: "commodity-complaints" }])
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
kind: "cms-page",
|
|
94
|
+
key: "commodity-notifications",
|
|
95
|
+
name: "Wikex Commodity \u2014 Th\xF4ng b\xE1o MXV",
|
|
96
|
+
description: "C\xE1c section c\u1EE7a route /noti-mxv.",
|
|
97
|
+
route: "/noti-mxv",
|
|
98
|
+
slug: "noti-mxv",
|
|
99
|
+
seo: {
|
|
100
|
+
title: "Th\xF4ng b\xE1o | Wikex - Giao D\u1ECBch H\xE0ng H\xF3a",
|
|
101
|
+
description: "Th\xF4ng b\xE1o t\u1EEB MXV v\u1EC1 th\u1ECB tr\u01B0\u1EDDng giao d\u1ECBch h\xE0ng h\xF3a. C\xE1c c\u1EADp nh\u1EADt v\u1EC1 s\u1EA3n ph\u1EA9m, d\u1ECBch v\u1EE5, s\u1EF1 ki\u1EC7n v\xE0 ho\u1EA1t \u0111\u1ED9ng c\u1EE7a Wikex."
|
|
102
|
+
},
|
|
103
|
+
redirect: { target: "/comming-soon", permanent: false },
|
|
104
|
+
components: chrome([{ type: "commodity-notification-list" }])
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
kind: "cms-page",
|
|
108
|
+
key: "commodity-products",
|
|
109
|
+
name: "Wikex Commodity \u2014 S\u1EA3n ph\u1EA9m",
|
|
110
|
+
description: "C\xE1c section c\u1EE7a route /products.",
|
|
111
|
+
route: "/products",
|
|
112
|
+
slug: "products",
|
|
113
|
+
seo: {
|
|
114
|
+
title: "Danh m\u1EE5c s\u1EA3n ph\u1EA9m giao d\u1ECBch h\xE0ng h\xF3a Wikex",
|
|
115
|
+
description: "Kh\xE1m ph\xE1 danh m\u1EE5c s\u1EA3n ph\u1EA9m \u0111a d\u1EA1ng t\u1EEB N\xF4ng s\u1EA3n, N\u0103ng l\u01B0\u1EE3ng, Kim lo\u1EA1i \u0111\u1EBFn Nguy\xEAn li\u1EC7u c\xF4ng nghi\u1EC7p\u2026 v\xE0 c\xE1c h\u1EE3p \u0111\u1ED3ng h\xE0ng h\xF3a ph\xE1i sinh t\u1EA1i Wikex."
|
|
116
|
+
},
|
|
117
|
+
redirect: { target: "/comming-soon", permanent: false },
|
|
118
|
+
components: chrome([{ type: "commodity-products" }])
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
kind: "cms-page",
|
|
122
|
+
key: "commodity-product-detail",
|
|
123
|
+
name: "Wikex Commodity \u2014 Chi ti\u1EBFt s\u1EA3n ph\u1EA9m",
|
|
124
|
+
description: "M\u1EABu cho route \u0111\u1ED9ng /products/[slug].",
|
|
125
|
+
route: "/products/[slug]",
|
|
126
|
+
slug: "products-product-detail",
|
|
127
|
+
components: chrome([{ type: "commodity-product-detail" }])
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
kind: "cms-page",
|
|
131
|
+
key: "commodity-information",
|
|
132
|
+
name: "Wikex Commodity \u2014 Th\xF4ng tin Wikex",
|
|
133
|
+
description: "C\xE1c section c\u1EE7a route /thong-tin-wikex.",
|
|
134
|
+
route: "/thong-tin-wikex",
|
|
135
|
+
slug: "thong-tin-wikex",
|
|
136
|
+
seo: {
|
|
137
|
+
title: "Ki\u1EBFn Th\u1EE9c & Tin T\u1EE9c Th\u1ECB Tr\u01B0\u1EDDng Giao D\u1ECBch H\xE0ng H\xF3a",
|
|
138
|
+
description: "Cung c\u1EA5p ki\u1EBFn th\u1EE9c giao d\u1ECBch h\xE0ng h\xF3a t\u1EEB c\u01A1 b\u1EA3n \u0111\u1EBFn n\xE2ng cao cho nh\xE0 \u0111\u1EA7u t\u01B0. C\u1EADp nh\u1EADt tin t\u1EE9c th\u1ECB tr\u01B0\u1EDDng h\xE0ng h\xF3a to\xE0n c\u1EA7u."
|
|
139
|
+
},
|
|
140
|
+
redirect: { target: "/comming-soon", permanent: false },
|
|
141
|
+
components: chrome([
|
|
142
|
+
{ type: "commodity-information-hero" },
|
|
143
|
+
{ type: "commodity-information-featured" },
|
|
144
|
+
{ type: "commodity-article-list" }
|
|
145
|
+
])
|
|
146
|
+
}
|
|
147
|
+
];
|
|
148
|
+
var wikexCommodityRoutes = wikexCommodityPageTemplates.map(({ route, slug, key }) => ({
|
|
149
|
+
route,
|
|
150
|
+
slug,
|
|
151
|
+
template: key
|
|
152
|
+
}));
|
|
5
153
|
export {
|
|
6
154
|
wikexCommodityPageTemplates,
|
|
7
155
|
wikexCommodityRoutes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/wikex/page-templates.ts"],"sourcesContent":["export type WikexCommodityPageTemplate = {\n kind: \"cms-page\";\n key: string;\n name: string;\n description: string;\n route: string;\n slug: string;\n redirect?: { target: string; permanent?: boolean };\n seo?: { title: string; description: string };\n components: Array<{ type: string; content?: Record<string, string | number> }>;\n};\n\nconst chrome = (components: WikexCommodityPageTemplate[\"components\"]) => [\n { type: \"commodity-header\" },\n ...components,\n { type: \"commodity-footer\" },\n];\n\nexport const wikexCommodityPageTemplates: WikexCommodityPageTemplate[] = [\n {\n kind: \"cms-page\",\n key: \"commodity-home\",\n name: \"Wikex Commodity — Trang chủ\",\n description: \"Tất cả section của landing page Wikex Commodity.\",\n route: \"/\",\n slug: \"trang-chu\",\n components: chrome([\n { type: \"commodity-hero\" },\n { type: \"commodity-benefits\" },\n { type: \"commodity-position\" },\n { type: \"commodity-audience\" },\n { type: \"download-section\" },\n { type: \"commodity-steps\" },\n { type: \"commodity-markets\" },\n { type: \"commodity-faq\" },\n { type: \"commodity-registration\" },\n ]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-about-us\",\n name: \"Wikex Commodity — Về chúng tôi\",\n description: \"Các section của route /about-us.\",\n route: \"/about-us\",\n slug: \"about-us\",\n seo: {\n title: \"Wikex - Giao Dịch Hàng Hóa | Sàn giao dịch hàng hóa uy tín cho nhà đầu tư Việt\",\n description:\n \"Thành viên Kinh doanh 090 của Sở Giao dịch Hàng hóa Việt Nam (MXV). Thông tin tổng quan, tầm nhìn, sứ mệnh và giá trị cốt lõi của Wikex.\",\n },\n components: chrome([\n { type: \"commodity-about-hero\" },\n { type: \"commodity-about-intro\" },\n { type: \"commodity-about-vision-mission\" },\n { type: \"commodity-about-core-values\" },\n { type: \"commodity-about-gallery\" },\n { type: \"commodity-about-registration\" },\n ]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-fees\",\n name: \"Wikex Commodity — Biểu phí & ký quỹ\",\n description: \"Các section của route /bang-phi-ky-quy.\",\n route: \"/bang-phi-ky-quy\",\n slug: \"bang-phi-ky-quy\",\n seo: {\n title: \"Bảng phí giao dịch & Ký quỹ hàng hóa Wikex | Cập nhật mới nhất\",\n description:\n \"Cập nhật chi tiết bảng phí giao dịch, mức ký quỹ và khung giờ giao dịch các sản phẩm hàng hóa phái sinh tại Wikex.\",\n },\n redirect: { target: \"/comming-soon\", permanent: false },\n components: chrome([{ type: \"commodity-fees\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-policy\",\n name: \"Wikex Commodity — Chính sách\",\n description: \"Các section của route /chinh-sach.\",\n route: \"/chinh-sach\",\n slug: \"chinh-sach\",\n components: chrome([{ type: \"commodity-policy\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-coming-soon\",\n name: \"Wikex Commodity — Coming soon\",\n description: \"Các section của route /comming-soon.\",\n route: \"/comming-soon\",\n slug: \"comming-soon\",\n components: chrome([{ type: \"commodity-coming-soon\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-complaints\",\n name: \"Wikex Commodity — Khiếu nại\",\n description: \"Các section của route /khieu-nai.\",\n route: \"/khieu-nai\",\n slug: \"khieu-nai\",\n seo: {\n title: \"Giải quyết khiếu nại | Wikex - Giao dịch hàng hóa\",\n description:\n \"Quy trình tiếp nhận, xử lý và giải quyết các yêu cầu, phản ánh và khiếu nại của khách hàng tại Wikex.\",\n },\n components: chrome([{ type: \"commodity-complaints\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-notifications\",\n name: \"Wikex Commodity — Thông báo MXV\",\n description: \"Các section của route /noti-mxv.\",\n route: \"/noti-mxv\",\n slug: \"noti-mxv\",\n seo: {\n title: \"Thông báo | Wikex - Giao Dịch Hàng Hóa\",\n description:\n \"Thông báo từ MXV về thị trường giao dịch hàng hóa. Các cập nhật về sản phẩm, dịch vụ, sự kiện và hoạt động của Wikex.\",\n },\n redirect: { target: \"/comming-soon\", permanent: false },\n components: chrome([{ type: \"commodity-notification-list\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-products\",\n name: \"Wikex Commodity — Sản phẩm\",\n description: \"Các section của route /products.\",\n route: \"/products\",\n slug: \"products\",\n seo: {\n title: \"Danh mục sản phẩm giao dịch hàng hóa Wikex\",\n description:\n \"Khám phá danh mục sản phẩm đa dạng từ Nông sản, Năng lượng, Kim loại đến Nguyên liệu công nghiệp… và các hợp đồng hàng hóa phái sinh tại Wikex.\",\n },\n redirect: { target: \"/comming-soon\", permanent: false },\n components: chrome([{ type: \"commodity-products\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-product-detail\",\n name: \"Wikex Commodity — Chi tiết sản phẩm\",\n description: \"Mẫu cho route động /products/[slug].\",\n route: \"/products/[slug]\",\n slug: \"products-product-detail\",\n components: chrome([{ type: \"commodity-product-detail\" }]),\n },\n {\n kind: \"cms-page\",\n key: \"commodity-information\",\n name: \"Wikex Commodity — Thông tin Wikex\",\n description: \"Các section của route /thong-tin-wikex.\",\n route: \"/thong-tin-wikex\",\n slug: \"thong-tin-wikex\",\n seo: {\n title: \"Kiến Thức & Tin Tức Thị Trường Giao Dịch Hàng Hóa\",\n description:\n \"Cung cấp kiến thức giao dịch hàng hóa từ cơ bản đến nâng cao cho nhà đầu tư. Cập nhật tin tức thị trường hàng hóa toàn cầu.\",\n },\n redirect: { target: \"/comming-soon\", permanent: false },\n components: chrome([\n { type: \"commodity-information-hero\" },\n { type: \"commodity-information-featured\" },\n { type: \"commodity-article-list\" },\n ]),\n },\n];\n\nexport const wikexCommodityRoutes = wikexCommodityPageTemplates.map(({ route, slug, key }) => ({\n route,\n slug,\n template: key,\n}));\n"],"mappings":";AAYA,IAAM,SAAS,CAAC,eAAyD;AAAA,EACvE,EAAE,MAAM,mBAAmB;AAAA,EAC3B,GAAG;AAAA,EACH,EAAE,MAAM,mBAAmB;AAC7B;AAEO,IAAM,8BAA4D;AAAA,EACvE;AAAA,IACE,MAAM;AAAA,IACN,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,IACP,MAAM;AAAA,IACN,YAAY,OAAO;AAAA,MACjB,EAAE,MAAM,iBAAiB;AAAA,MACzB,EAAE,MAAM,qBAAqB;AAAA,MAC7B,EAAE,MAAM,qBAAqB;AAAA,MAC7B,EAAE,MAAM,qBAAqB;AAAA,MAC7B,EAAE,MAAM,mBAAmB;AAAA,MAC3B,EAAE,MAAM,kBAAkB;AAAA,MAC1B,EAAE,MAAM,oBAAoB;AAAA,MAC5B,EAAE,MAAM,gBAAgB;AAAA,MACxB,EAAE,MAAM,yBAAyB;AAAA,IACnC,CAAC;AAAA,EACH;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,KAAK;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,IACP,MAAM;AAAA,IACN,KAAK;AAAA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AA,EACA,UAAU;AACZ,EAAE;","names":[]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
type ProductLanguage = 'vi' | 'en';
|
|
4
|
+
type ProductListItem = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
category: string;
|
|
8
|
+
summary: string;
|
|
9
|
+
coverImage: string;
|
|
10
|
+
imageAlt: string;
|
|
11
|
+
href: string;
|
|
12
|
+
};
|
|
13
|
+
type ProductSpecification = {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
source?: string;
|
|
17
|
+
status?: string;
|
|
18
|
+
note?: string;
|
|
19
|
+
};
|
|
20
|
+
type ProductQualityRow = {
|
|
21
|
+
label: string;
|
|
22
|
+
values: [string, string, string];
|
|
23
|
+
table?: string;
|
|
24
|
+
unit?: string;
|
|
25
|
+
condition?: string;
|
|
26
|
+
source?: string;
|
|
27
|
+
note?: string;
|
|
28
|
+
columns?: [string, string, string];
|
|
29
|
+
};
|
|
30
|
+
type ProductDetail = {
|
|
31
|
+
name: string;
|
|
32
|
+
summary: string;
|
|
33
|
+
introduction: string;
|
|
34
|
+
specifications: ProductSpecification[];
|
|
35
|
+
qualityDescription: string;
|
|
36
|
+
qualityColumns: [string, string, string];
|
|
37
|
+
qualityRows: ProductQualityRow[];
|
|
38
|
+
};
|
|
39
|
+
type ProductListingProps = {
|
|
40
|
+
products: ProductListItem[];
|
|
41
|
+
title?: string;
|
|
42
|
+
language?: ProductLanguage;
|
|
43
|
+
homeHref?: string;
|
|
44
|
+
placeholderImage?: string;
|
|
45
|
+
};
|
|
46
|
+
type ProductDetailViewProps = {
|
|
47
|
+
product: ProductDetail;
|
|
48
|
+
related: ProductListItem[];
|
|
49
|
+
listingHref: string;
|
|
50
|
+
language?: ProductLanguage;
|
|
51
|
+
homeHref?: string;
|
|
52
|
+
placeholderImage?: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
declare function ProductListing({ products, title, language, homeHref, placeholderImage }: ProductListingProps): react.JSX.Element;
|
|
56
|
+
declare function ProductDetailView({ product, related, listingHref, language, homeHref, placeholderImage }: ProductDetailViewProps): react.JSX.Element;
|
|
57
|
+
|
|
58
|
+
declare function ProductListingSkeleton({ language }: {
|
|
59
|
+
language?: 'vi' | 'en';
|
|
60
|
+
}): react.JSX.Element;
|
|
61
|
+
declare function ProductDetailSkeleton({ language }: {
|
|
62
|
+
language?: 'vi' | 'en';
|
|
63
|
+
}): react.JSX.Element;
|
|
64
|
+
|
|
65
|
+
export { type ProductDetail, ProductDetailSkeleton, ProductDetailView, type ProductDetailViewProps, type ProductLanguage, type ProductListItem, ProductListing, type ProductListingProps, ProductListingSkeleton, type ProductQualityRow, type ProductSpecification };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
type ProductLanguage = 'vi' | 'en';
|
|
4
|
+
type ProductListItem = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
category: string;
|
|
8
|
+
summary: string;
|
|
9
|
+
coverImage: string;
|
|
10
|
+
imageAlt: string;
|
|
11
|
+
href: string;
|
|
12
|
+
};
|
|
13
|
+
type ProductSpecification = {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
source?: string;
|
|
17
|
+
status?: string;
|
|
18
|
+
note?: string;
|
|
19
|
+
};
|
|
20
|
+
type ProductQualityRow = {
|
|
21
|
+
label: string;
|
|
22
|
+
values: [string, string, string];
|
|
23
|
+
table?: string;
|
|
24
|
+
unit?: string;
|
|
25
|
+
condition?: string;
|
|
26
|
+
source?: string;
|
|
27
|
+
note?: string;
|
|
28
|
+
columns?: [string, string, string];
|
|
29
|
+
};
|
|
30
|
+
type ProductDetail = {
|
|
31
|
+
name: string;
|
|
32
|
+
summary: string;
|
|
33
|
+
introduction: string;
|
|
34
|
+
specifications: ProductSpecification[];
|
|
35
|
+
qualityDescription: string;
|
|
36
|
+
qualityColumns: [string, string, string];
|
|
37
|
+
qualityRows: ProductQualityRow[];
|
|
38
|
+
};
|
|
39
|
+
type ProductListingProps = {
|
|
40
|
+
products: ProductListItem[];
|
|
41
|
+
title?: string;
|
|
42
|
+
language?: ProductLanguage;
|
|
43
|
+
homeHref?: string;
|
|
44
|
+
placeholderImage?: string;
|
|
45
|
+
};
|
|
46
|
+
type ProductDetailViewProps = {
|
|
47
|
+
product: ProductDetail;
|
|
48
|
+
related: ProductListItem[];
|
|
49
|
+
listingHref: string;
|
|
50
|
+
language?: ProductLanguage;
|
|
51
|
+
homeHref?: string;
|
|
52
|
+
placeholderImage?: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
declare function ProductListing({ products, title, language, homeHref, placeholderImage }: ProductListingProps): react.JSX.Element;
|
|
56
|
+
declare function ProductDetailView({ product, related, listingHref, language, homeHref, placeholderImage }: ProductDetailViewProps): react.JSX.Element;
|
|
57
|
+
|
|
58
|
+
declare function ProductListingSkeleton({ language }: {
|
|
59
|
+
language?: 'vi' | 'en';
|
|
60
|
+
}): react.JSX.Element;
|
|
61
|
+
declare function ProductDetailSkeleton({ language }: {
|
|
62
|
+
language?: 'vi' | 'en';
|
|
63
|
+
}): react.JSX.Element;
|
|
64
|
+
|
|
65
|
+
export { type ProductDetail, ProductDetailSkeleton, ProductDetailView, type ProductDetailViewProps, type ProductLanguage, type ProductListItem, ProductListing, type ProductListingProps, ProductListingSkeleton, type ProductQualityRow, type ProductSpecification };
|