@twreporter/react-typescript-components 0.1.0-beta.19 → 0.1.0-beta.20
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/lib/button/constants.d.mts +2 -2
- package/lib/button/index.d.mts +12 -12
- package/lib/constants/release-branch.d.mts +2 -2
- package/lib/constants/theme.d.mts +2 -2
- package/lib/{constants-BZGBDC2T.mjs → constants-BG4oRMD_.mjs} +1 -1
- package/lib/{constants-BZGBDC2T.mjs.map → constants-BG4oRMD_.mjs.map} +1 -1
- package/lib/{constants-COhDITk3.d.ts → constants-CBjyeHSl.d.ts} +1 -1
- package/lib/{constants-DZWOFPZT.d.mts → constants-C_OX3J7_.d.mts} +2 -2
- package/lib/{constants-C86Q6QlO.d.ts → constants-CzHmv07x.d.ts} +1 -1
- package/lib/{constants-B95_A0GY.d.mts → constants-DVYCKpJ0.d.mts} +2 -2
- package/lib/{constants-BV86fOLv.js → constants-Dt5HD0aL.js} +1 -1
- package/lib/{constants-BV86fOLv.js.map → constants-Dt5HD0aL.js.map} +1 -1
- package/lib/{constants-B5th6nHM.d.mts → constants-MpdMPjnk.d.mts} +2 -2
- package/lib/{constants-D2OTwBsV.d.mts → constants-ZGhPn0d6.d.mts} +2 -2
- package/lib/{constants-IzZ4bWWt.d.mts → constants-oNjXcfW2.d.mts} +2 -2
- package/lib/customized-link/external-link.d.mts +2 -2
- package/lib/customized-link/external-link.d.ts +2 -2
- package/lib/customized-link/external-link.js +1 -1
- package/lib/customized-link/external-link.mjs +1 -1
- package/lib/customized-link/index.d.mts +6 -6
- package/lib/customized-link/index.d.ts +6 -6
- package/lib/customized-link/index.js +2 -2
- package/lib/customized-link/index.mjs +2 -2
- package/lib/customized-link/internal-link.d.mts +2 -2
- package/lib/customized-link/internal-link.d.ts +2 -2
- package/lib/customized-link/type.d.mts +1 -1
- package/lib/customized-link/type.d.ts +1 -1
- package/lib/{customized-link-CHH91yod.js → customized-link-BDKQVdcH.js} +2 -2
- package/lib/{customized-link-CHH91yod.js.map → customized-link-BDKQVdcH.js.map} +1 -1
- package/lib/{customized-link-BacydHK_.mjs → customized-link-D3p9rjEe.mjs} +2 -2
- package/lib/{customized-link-BacydHK_.mjs.map → customized-link-D3p9rjEe.mjs.map} +1 -1
- package/lib/divider/constants.d.mts +2 -2
- package/lib/divider/index.d.mts +2 -2
- package/lib/dropdown-menu/index.d.mts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/index.js +3 -3
- package/lib/dropdown-menu/index.mjs +3 -3
- package/lib/{dropdown-menu-D4XjLl7G.js → dropdown-menu-CKH3qADt.js} +2 -2
- package/lib/{dropdown-menu-D4XjLl7G.js.map → dropdown-menu-CKH3qADt.js.map} +1 -1
- package/lib/{dropdown-menu-jbg-kt3s.mjs → dropdown-menu-DMp_Bmo0.mjs} +2 -2
- package/lib/{dropdown-menu-jbg-kt3s.mjs.map → dropdown-menu-DMp_Bmo0.mjs.map} +1 -1
- package/lib/{external-link-Diro-q37.mjs → external-link-BMIFL3DE.mjs} +3 -2
- package/lib/external-link-BMIFL3DE.mjs.map +1 -0
- package/lib/{external-link-B3tELAVU.d.ts → external-link-BMxYePU7.d.ts} +2 -2
- package/lib/{external-link-afU9uFB6.js → external-link-Ce1_loKh.js} +3 -2
- package/lib/external-link-Ce1_loKh.js.map +1 -0
- package/lib/{external-link-0t606cM_.d.mts → external-link-CvvjuS1W.d.mts} +2 -2
- package/lib/footer/index.d.mts +8 -2
- package/lib/footer/index.d.ts +6 -0
- package/lib/footer/index.js +17 -13
- package/lib/footer/index.js.map +1 -1
- package/lib/footer/index.mjs +17 -13
- package/lib/footer/index.mjs.map +1 -1
- package/lib/footer/links.d.mts +11 -6
- package/lib/footer/links.d.ts +13 -8
- package/lib/footer/links.js +5 -7
- package/lib/footer/links.mjs +4 -6
- package/lib/footer/logo.d.mts +2 -2
- package/lib/footer/logo.js +4 -4
- package/lib/footer/logo.mjs +4 -4
- package/lib/footer/types.d.mts +4 -0
- package/lib/footer/types.d.ts +4 -0
- package/lib/footer/types.js +0 -0
- package/lib/footer/types.mjs +1 -0
- package/lib/hamburger-menu/index.js +7 -7
- package/lib/hamburger-menu/index.mjs +7 -7
- package/lib/{hamburger-menu-baCi46g2.js → hamburger-menu-DJe2IBTm.js} +5 -5
- package/lib/{hamburger-menu-baCi46g2.js.map → hamburger-menu-DJe2IBTm.js.map} +1 -1
- package/lib/{hamburger-menu-MQgF0vLX.mjs → hamburger-menu-DoyJVziw.mjs} +5 -5
- package/lib/{hamburger-menu-MQgF0vLX.mjs.map → hamburger-menu-DoyJVziw.mjs.map} +1 -1
- package/lib/header/index.d.mts +3 -3
- package/lib/header/index.js +12 -12
- package/lib/header/index.mjs +12 -12
- package/lib/{heading-Cljxy-62.mjs → heading-CCsID-nv.mjs} +1 -1
- package/lib/{heading-Cljxy-62.mjs.map → heading-CCsID-nv.mjs.map} +1 -1
- package/lib/{heading-Dnpw_s7U.js → heading-D7slLGoI.js} +1 -1
- package/lib/{heading-Dnpw_s7U.js.map → heading-D7slLGoI.js.map} +1 -1
- package/lib/hooks/index.d.mts +3 -3
- package/lib/hooks/index.d.ts +3 -3
- package/lib/hooks/index.js +2 -2
- package/lib/hooks/index.mjs +2 -2
- package/lib/hooks/use-outside-click.d.mts +1 -1
- package/lib/hooks/use-outside-click.d.ts +1 -1
- package/lib/hooks/use-outside-click.js +1 -1
- package/lib/hooks/use-outside-click.mjs +1 -1
- package/lib/{hooks-BxlKOoQu.js → hooks-CYgvBAmt.js} +2 -2
- package/lib/{hooks-BxlKOoQu.js.map → hooks-CYgvBAmt.js.map} +1 -1
- package/lib/{hooks-DmImq-Z7.mjs → hooks-CcqXFDPN.mjs} +2 -2
- package/lib/{hooks-DmImq-Z7.mjs.map → hooks-CcqXFDPN.mjs.map} +1 -1
- package/lib/icons/constants.d.mts +2 -2
- package/lib/icons/constants.d.ts +1 -1
- package/lib/icons/index.d.mts +3 -3
- package/lib/icons/index.d.ts +10 -10
- package/lib/{index-DegwO8ei.d.mts → index-CUE6zs36.d.mts} +1 -1
- package/lib/input/constants.d.mts +1 -1
- package/lib/input/index.d.mts +5 -5
- package/lib/input/index.d.ts +2 -2
- package/lib/input/index.js +2 -2
- package/lib/input/index.mjs +2 -2
- package/lib/input/theme.d.mts +2 -2
- package/lib/input/theme.js +1 -1
- package/lib/input/theme.mjs +1 -1
- package/lib/{input-DaMbsNrg.js → input-D29yD1k-.js} +2 -2
- package/lib/{input-DaMbsNrg.js.map → input-D29yD1k-.js.map} +1 -1
- package/lib/{input-DvriSZ9o.mjs → input-DH_jroRh.mjs} +2 -2
- package/lib/{input-DvriSZ9o.mjs.map → input-DH_jroRh.mjs.map} +1 -1
- package/lib/{internal-link-DtMsmfE9.d.ts → internal-link-BL950cs3.d.ts} +2 -2
- package/lib/{internal-link-Daag4Lrv.d.mts → internal-link-DgOMen4w.d.mts} +2 -2
- package/lib/{links-DO97xw7S.mjs → links-Buz2DUOO.mjs} +11 -14
- package/lib/links-Buz2DUOO.mjs.map +1 -0
- package/lib/{links-Xuo8pb4a.js → links-CPX07u-O.js} +16 -19
- package/lib/links-CPX07u-O.js.map +1 -0
- package/lib/logo/constants.d.mts +2 -2
- package/lib/logo/constants.d.ts +1 -1
- package/lib/logo/index.d.mts +3 -3
- package/lib/logo/index.d.ts +1 -1
- package/lib/logo/index.js +1 -1
- package/lib/logo/index.mjs +1 -1
- package/lib/{logo-C5NgKyYa.js → logo-BSp7gsND.js} +2 -2
- package/lib/{logo-C5NgKyYa.js.map → logo-BSp7gsND.js.map} +1 -1
- package/lib/{logo-NfYCtrtN.mjs → logo-CBWWiQoO.mjs} +1 -1
- package/lib/{logo-NfYCtrtN.mjs.map → logo-CBWWiQoO.mjs.map} +1 -1
- package/lib/{logo-B3GSkN1O.js → logo-DzRRd4Y-.js} +1 -1
- package/lib/{logo-B3GSkN1O.js.map → logo-DzRRd4Y-.js.map} +1 -1
- package/lib/{logo-CumKSrK5.mjs → logo-mBe4a2OP.mjs} +2 -2
- package/lib/{logo-CumKSrK5.mjs.map → logo-mBe4a2OP.mjs.map} +1 -1
- package/lib/{release-branch-CaxOk9Rq.d.mts → release-branch-uF0B5lcE.d.mts} +2 -2
- package/lib/tab-bar/constants.d.mts +3 -3
- package/lib/tab-bar/constants.d.ts +1 -1
- package/lib/tab-bar/constants.js +1 -1
- package/lib/tab-bar/constants.mjs +1 -1
- package/lib/tab-bar/index.js +5 -5
- package/lib/tab-bar/index.mjs +5 -5
- package/lib/tab-bar/theme.d.mts +2 -2
- package/lib/tab-bar/theme.js +1 -1
- package/lib/tab-bar/theme.mjs +1 -1
- package/lib/{tab-bar-Dq0ewfWA.js → tab-bar-CVPd5go9.js} +4 -4
- package/lib/{tab-bar-Dq0ewfWA.js.map → tab-bar-CVPd5go9.js.map} +1 -1
- package/lib/{tab-bar-CQjgjdkW.mjs → tab-bar-jI3fYt_7.mjs} +4 -4
- package/lib/{tab-bar-CQjgjdkW.mjs.map → tab-bar-jI3fYt_7.mjs.map} +1 -1
- package/lib/text/constants.d.mts +2 -2
- package/lib/text/heading.d.mts +2 -2
- package/lib/text/heading.js +1 -1
- package/lib/text/heading.mjs +1 -1
- package/lib/text/paragraph.d.mts +2 -2
- package/lib/{theme-BQQzAfHb.js → theme-B9k1Udon.js} +1 -1
- package/lib/{theme-BQQzAfHb.js.map → theme-B9k1Udon.js.map} +1 -1
- package/lib/{theme-LkZX5giH.js → theme-BLdi7Moc.js} +1 -1
- package/lib/{theme-LkZX5giH.js.map → theme-BLdi7Moc.js.map} +1 -1
- package/lib/{theme-CDCgzSJw.mjs → theme-Cf9NG_eL.mjs} +1 -1
- package/lib/{theme-CDCgzSJw.mjs.map → theme-Cf9NG_eL.mjs.map} +1 -1
- package/lib/{theme-Cx5oFufE.d.mts → theme-DKi2E2si.d.mts} +2 -2
- package/lib/{theme-D_LHh2_S.mjs → theme-DURvzYaJ.mjs} +1 -1
- package/lib/{theme-D_LHh2_S.mjs.map → theme-DURvzYaJ.mjs.map} +1 -1
- package/lib/title-bar/index.d.mts +4 -4
- package/lib/title-bar/index.js +3 -3
- package/lib/title-bar/index.mjs +3 -3
- package/lib/{type-ubTUOk6A.d.ts → type-Bsf9A8YX.d.mts} +2 -1
- package/lib/{type-DGvbr3Rm.d.mts → type-CcygKers.d.ts} +2 -1
- package/lib/types/index.d.mts +1 -1
- package/lib/types-dW_WJa4D.d.ts +15 -0
- package/lib/types-p8V2pbqn.d.mts +15 -0
- package/lib/use-outside-click-B_hZCUDr.d.mts +7 -0
- package/lib/{use-outside-click-Br_ste4n.mjs → use-outside-click-BfAURk-E.mjs} +1 -1
- package/lib/{use-outside-click-Br_ste4n.mjs.map → use-outside-click-BfAURk-E.mjs.map} +1 -1
- package/lib/use-outside-click-COJmPFYr.d.ts +7 -0
- package/lib/{use-outside-click-Cl1QlhTH.js → use-outside-click-DnJ0DNZ9.js} +1 -1
- package/lib/{use-outside-click-Cl1QlhTH.js.map → use-outside-click-DnJ0DNZ9.js.map} +1 -1
- package/package.json +2 -2
- package/lib/constants-0fgvpoyZ.js +0 -171
- package/lib/constants-0fgvpoyZ.js.map +0 -1
- package/lib/constants-DyO2QpJk.mjs +0 -154
- package/lib/constants-DyO2QpJk.mjs.map +0 -1
- package/lib/external-link-Diro-q37.mjs.map +0 -1
- package/lib/external-link-afU9uFB6.js.map +0 -1
- package/lib/footer/constants.d.mts +0 -51
- package/lib/footer/constants.d.ts +0 -51
- package/lib/footer/constants.js +0 -7
- package/lib/footer/constants.mjs +0 -5
- package/lib/links-DO97xw7S.mjs.map +0 -1
- package/lib/links-Xuo8pb4a.js.map +0 -1
- package/lib/use-outside-click-CHxRFaTZ.d.ts +0 -7
- package/lib/use-outside-click-Diz2B7wx.d.mts +0 -7
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
const require_internal_links = require('./internal-links-DxtMobuI.js');
|
|
2
|
-
const require_constants = require('./constants-D8wNUvoZ.js');
|
|
3
|
-
|
|
4
|
-
//#region src/footer/constants.ts
|
|
5
|
-
const FUNDRAISING_ID = "衛部救字第 1131363879 號|勸募期間 2025/1/1~12/31";
|
|
6
|
-
const gtmId = {
|
|
7
|
-
support: "footer-support",
|
|
8
|
-
newsletter: "footer-newsletter"
|
|
9
|
-
};
|
|
10
|
-
const getLinksGroups = (mainOrigin) => {
|
|
11
|
-
return [
|
|
12
|
-
[
|
|
13
|
-
{
|
|
14
|
-
slug: "about",
|
|
15
|
-
text: "關於我們",
|
|
16
|
-
to: `${mainOrigin}${require_internal_links.INTERNAL_LINKS.about}`,
|
|
17
|
-
target: "_blank"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
slug: "authors",
|
|
21
|
-
text: "作者群",
|
|
22
|
-
to: `${mainOrigin}/authors`,
|
|
23
|
-
target: "_blank"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
slug: "contact",
|
|
27
|
-
text: "聯絡我們",
|
|
28
|
-
to: `${mainOrigin}${require_internal_links.INTERNAL_LINKS.article}/contact-footer`,
|
|
29
|
-
target: "_blank"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
slug: "join",
|
|
33
|
-
text: "加入我們",
|
|
34
|
-
to: `${mainOrigin}${require_internal_links.INTERNAL_LINKS.article}/hiring-job-description`,
|
|
35
|
-
target: "_blank"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
slug: "license",
|
|
39
|
-
text: "常見問題",
|
|
40
|
-
to: `${mainOrigin}${require_internal_links.INTERNAL_LINKS.article}/about-us-questions`,
|
|
41
|
-
target: "_blank"
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
[
|
|
45
|
-
{
|
|
46
|
-
slug: "donate",
|
|
47
|
-
text: "捐款徵信",
|
|
48
|
-
to: `${mainOrigin}${require_internal_links.INTERNAL_LINKS.article}/credit-donate`,
|
|
49
|
-
target: "_blank"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
slug: "media-center",
|
|
53
|
-
text: "基金會消息",
|
|
54
|
-
to: `${mainOrigin}${require_internal_links.INTERNAL_LINKS.categories.foundation.index}`,
|
|
55
|
-
target: "_blank"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
slug: "impact-and-annual-report",
|
|
59
|
-
text: "影響力報告",
|
|
60
|
-
to: `${mainOrigin}${require_internal_links.INTERNAL_LINKS.article}/impact-and-annual-report`,
|
|
61
|
-
target: "_blank"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
slug: "publication-and-merchandise",
|
|
65
|
-
text: "出版品與周邊",
|
|
66
|
-
to: "https://twreporter.waca.ec/",
|
|
67
|
-
target: "_blank"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
slug: "charity-cooperation",
|
|
71
|
-
text: "公益合作",
|
|
72
|
-
to: "https://www.twreporter.org/a/cooperation",
|
|
73
|
-
target: "_blank"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
[
|
|
77
|
-
{
|
|
78
|
-
slug: "subscribe-email",
|
|
79
|
-
text: "訂閱電子報",
|
|
80
|
-
to: `${mainOrigin}${require_internal_links.INTERNAL_LINKS.account.emailSubscription}`,
|
|
81
|
-
target: "_blank",
|
|
82
|
-
id: gtmId.newsletter
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
slug: "subscribe-podcast",
|
|
86
|
-
text: "訂閱 Podcast",
|
|
87
|
-
to: "https://solink.soundon.fm/twreporter-U7Q",
|
|
88
|
-
target: "_blank"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
slug: "subscribe-RSS",
|
|
92
|
-
text: "訂閱 RSS",
|
|
93
|
-
to: "https://public.twreporter.org/rss/twreporter-rss.xml",
|
|
94
|
-
target: "_blank"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
slug: "install-web-app",
|
|
98
|
-
text: "安裝Web App",
|
|
99
|
-
to: "https://www.twreporter.org/a/how-to-follow-the-reporter#方法3:安裝Web App",
|
|
100
|
-
target: "_blank"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
slug: "subscribe-telegram",
|
|
104
|
-
text: "訂閱Telegram",
|
|
105
|
-
to: "https://t.me/tw_reporter_org",
|
|
106
|
-
target: "_blank"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
];
|
|
110
|
-
};
|
|
111
|
-
const getSocialMediaLinks = () => {
|
|
112
|
-
return [
|
|
113
|
-
{
|
|
114
|
-
slug: "facebook",
|
|
115
|
-
icon: require_constants.MEDIA_TYPE.facebook,
|
|
116
|
-
to: "https://www.facebook.com/twreporter/",
|
|
117
|
-
target: "_blank"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
slug: "instagram",
|
|
121
|
-
icon: require_constants.MEDIA_TYPE.instagram,
|
|
122
|
-
to: "https://www.instagram.com/twreporter/",
|
|
123
|
-
target: "_blank"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
slug: "x",
|
|
127
|
-
icon: require_constants.MEDIA_TYPE.twitter,
|
|
128
|
-
to: "https://twitter.com/tw_reporter_org",
|
|
129
|
-
target: "_blank"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
slug: "medium",
|
|
133
|
-
icon: require_constants.MEDIA_TYPE.medium,
|
|
134
|
-
to: "https://medium.com/twreporter",
|
|
135
|
-
target: "_blank"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
slug: "youtube",
|
|
139
|
-
icon: require_constants.MEDIA_TYPE.youtube,
|
|
140
|
-
to: "https://www.youtube.com/@TwreporterOrg",
|
|
141
|
-
target: "_blank"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
slug: "thread",
|
|
145
|
-
icon: require_constants.MEDIA_TYPE.threads,
|
|
146
|
-
to: "https://www.threads.com/@twreporter",
|
|
147
|
-
target: "_blank"
|
|
148
|
-
}
|
|
149
|
-
];
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
//#endregion
|
|
153
|
-
Object.defineProperty(exports, 'FUNDRAISING_ID', {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function () {
|
|
156
|
-
return FUNDRAISING_ID;
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
Object.defineProperty(exports, 'getLinksGroups', {
|
|
160
|
-
enumerable: true,
|
|
161
|
-
get: function () {
|
|
162
|
-
return getLinksGroups;
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
Object.defineProperty(exports, 'getSocialMediaLinks', {
|
|
166
|
-
enumerable: true,
|
|
167
|
-
get: function () {
|
|
168
|
-
return getSocialMediaLinks;
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
//# sourceMappingURL=constants-0fgvpoyZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-0fgvpoyZ.js","names":["INTERNAL_LINKS","MEDIA_TYPE"],"sources":["../src/footer/constants.ts"],"sourcesContent":["// TODO: replace data from cms\nimport { INTERNAL_LINKS } from '../constants/internal-links'\nimport type { LinkTarget } from '../customized-link/type'\nimport { MEDIA_TYPE } from '../icons/constants'\n\nexport const FUNDRAISING_ID =\n '衛部救字第 1131363879 號|勸募期間 2025/1/1~12/31'\n\nconst gtmId = {\n support: 'footer-support',\n newsletter: 'footer-newsletter',\n}\n/*\n display for links group\n | first column | second column | third column |\n | XXXX | XXXX | XXX |\n | XXXXX | XXXXXX | XX |\n*/\nexport const getLinksGroups = (mainOrigin: string) => {\n return [\n // first column\n [\n {\n slug: 'about',\n text: '關於我們',\n to: `${mainOrigin}${INTERNAL_LINKS.about}`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'authors',\n text: '作者群',\n to: `${mainOrigin}/authors`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'contact',\n text: '聯絡我們',\n to: `${mainOrigin}${INTERNAL_LINKS.article}/contact-footer`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'join',\n text: '加入我們',\n to: `${mainOrigin}${INTERNAL_LINKS.article}/hiring-job-description`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'license',\n text: '常見問題',\n to: `${mainOrigin}${INTERNAL_LINKS.article}/about-us-questions`,\n target: '_blank' as LinkTarget,\n },\n ],\n // second column\n [\n {\n slug: 'donate',\n text: '捐款徵信',\n to: `${mainOrigin}${INTERNAL_LINKS.article}/credit-donate`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'media-center',\n text: '基金會消息',\n to: `${mainOrigin}${INTERNAL_LINKS.categories.foundation.index}`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'impact-and-annual-report',\n text: '影響力報告',\n to: `${mainOrigin}${INTERNAL_LINKS.article}/impact-and-annual-report`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'publication-and-merchandise',\n text: '出版品與周邊',\n to: 'https://twreporter.waca.ec/',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'charity-cooperation',\n text: '公益合作',\n to: 'https://www.twreporter.org/a/cooperation',\n target: '_blank' as LinkTarget,\n },\n ],\n // third column\n [\n {\n slug: 'subscribe-email',\n text: '訂閱電子報',\n to: `${mainOrigin}${INTERNAL_LINKS.account.emailSubscription}`,\n target: '_blank' as LinkTarget,\n id: gtmId.newsletter,\n },\n {\n slug: 'subscribe-podcast',\n text: '訂閱 Podcast',\n to: 'https://solink.soundon.fm/twreporter-U7Q',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'subscribe-RSS',\n text: '訂閱 RSS',\n to: 'https://public.twreporter.org/rss/twreporter-rss.xml',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'install-web-app',\n text: '安裝Web App',\n to: 'https://www.twreporter.org/a/how-to-follow-the-reporter#方法3:安裝Web App',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'subscribe-telegram',\n text: '訂閱Telegram',\n to: 'https://t.me/tw_reporter_org',\n target: '_blank' as LinkTarget,\n },\n ],\n ]\n}\n\nexport const getSocialMediaLinks = () => {\n return [\n {\n slug: 'facebook',\n icon: MEDIA_TYPE.facebook,\n to: 'https://www.facebook.com/twreporter/',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'instagram',\n icon: MEDIA_TYPE.instagram,\n to: 'https://www.instagram.com/twreporter/',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'x',\n icon: MEDIA_TYPE.twitter,\n to: 'https://twitter.com/tw_reporter_org',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'medium',\n icon: MEDIA_TYPE.medium,\n to: 'https://medium.com/twreporter',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'youtube',\n icon: MEDIA_TYPE.youtube,\n to: 'https://www.youtube.com/@TwreporterOrg',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'thread',\n icon: MEDIA_TYPE.threads,\n to: 'https://www.threads.com/@twreporter',\n target: '_blank' as LinkTarget,\n },\n ]\n}\n"],"mappings":";;;;AAKA,MAAa,iBACX;AAEF,MAAM,QAAQ;CACZ,SAAS;CACT,YAAY;CACb;AAOD,MAAa,kBAAkB,eAAuB;AACpD,QAAO;EAEL;GACE;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAaA,sCAAe;IACnC,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,WAAW;IAClB,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAaA,sCAAe,QAAQ;IAC3C,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAaA,sCAAe,QAAQ;IAC3C,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAaA,sCAAe,QAAQ;IAC3C,QAAQ;IACT;GACF;EAED;GACE;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAaA,sCAAe,QAAQ;IAC3C,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAaA,sCAAe,WAAW,WAAW;IACzD,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAaA,sCAAe,QAAQ;IAC3C,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACF;EAED;GACE;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAaA,sCAAe,QAAQ;IAC3C,QAAQ;IACR,IAAI,MAAM;IACX;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACF;EACF;;AAGH,MAAa,4BAA4B;AACvC,QAAO;EACL;GACE,MAAM;GACN,MAAMC,6BAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACD;GACE,MAAM;GACN,MAAMA,6BAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACD;GACE,MAAM;GACN,MAAMA,6BAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACD;GACE,MAAM;GACN,MAAMA,6BAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACD;GACE,MAAM;GACN,MAAMA,6BAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACD;GACE,MAAM;GACN,MAAMA,6BAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACF"}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { INTERNAL_LINKS } from "./internal-links-CP3dqmrz.mjs";
|
|
2
|
-
import { MEDIA_TYPE } from "./constants-5phfWHvb.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/footer/constants.ts
|
|
5
|
-
const FUNDRAISING_ID = "衛部救字第 1131363879 號|勸募期間 2025/1/1~12/31";
|
|
6
|
-
const gtmId = {
|
|
7
|
-
support: "footer-support",
|
|
8
|
-
newsletter: "footer-newsletter"
|
|
9
|
-
};
|
|
10
|
-
const getLinksGroups = (mainOrigin) => {
|
|
11
|
-
return [
|
|
12
|
-
[
|
|
13
|
-
{
|
|
14
|
-
slug: "about",
|
|
15
|
-
text: "關於我們",
|
|
16
|
-
to: `${mainOrigin}${INTERNAL_LINKS.about}`,
|
|
17
|
-
target: "_blank"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
slug: "authors",
|
|
21
|
-
text: "作者群",
|
|
22
|
-
to: `${mainOrigin}/authors`,
|
|
23
|
-
target: "_blank"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
slug: "contact",
|
|
27
|
-
text: "聯絡我們",
|
|
28
|
-
to: `${mainOrigin}${INTERNAL_LINKS.article}/contact-footer`,
|
|
29
|
-
target: "_blank"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
slug: "join",
|
|
33
|
-
text: "加入我們",
|
|
34
|
-
to: `${mainOrigin}${INTERNAL_LINKS.article}/hiring-job-description`,
|
|
35
|
-
target: "_blank"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
slug: "license",
|
|
39
|
-
text: "常見問題",
|
|
40
|
-
to: `${mainOrigin}${INTERNAL_LINKS.article}/about-us-questions`,
|
|
41
|
-
target: "_blank"
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
[
|
|
45
|
-
{
|
|
46
|
-
slug: "donate",
|
|
47
|
-
text: "捐款徵信",
|
|
48
|
-
to: `${mainOrigin}${INTERNAL_LINKS.article}/credit-donate`,
|
|
49
|
-
target: "_blank"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
slug: "media-center",
|
|
53
|
-
text: "基金會消息",
|
|
54
|
-
to: `${mainOrigin}${INTERNAL_LINKS.categories.foundation.index}`,
|
|
55
|
-
target: "_blank"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
slug: "impact-and-annual-report",
|
|
59
|
-
text: "影響力報告",
|
|
60
|
-
to: `${mainOrigin}${INTERNAL_LINKS.article}/impact-and-annual-report`,
|
|
61
|
-
target: "_blank"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
slug: "publication-and-merchandise",
|
|
65
|
-
text: "出版品與周邊",
|
|
66
|
-
to: "https://twreporter.waca.ec/",
|
|
67
|
-
target: "_blank"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
slug: "charity-cooperation",
|
|
71
|
-
text: "公益合作",
|
|
72
|
-
to: "https://www.twreporter.org/a/cooperation",
|
|
73
|
-
target: "_blank"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
[
|
|
77
|
-
{
|
|
78
|
-
slug: "subscribe-email",
|
|
79
|
-
text: "訂閱電子報",
|
|
80
|
-
to: `${mainOrigin}${INTERNAL_LINKS.account.emailSubscription}`,
|
|
81
|
-
target: "_blank",
|
|
82
|
-
id: gtmId.newsletter
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
slug: "subscribe-podcast",
|
|
86
|
-
text: "訂閱 Podcast",
|
|
87
|
-
to: "https://solink.soundon.fm/twreporter-U7Q",
|
|
88
|
-
target: "_blank"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
slug: "subscribe-RSS",
|
|
92
|
-
text: "訂閱 RSS",
|
|
93
|
-
to: "https://public.twreporter.org/rss/twreporter-rss.xml",
|
|
94
|
-
target: "_blank"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
slug: "install-web-app",
|
|
98
|
-
text: "安裝Web App",
|
|
99
|
-
to: "https://www.twreporter.org/a/how-to-follow-the-reporter#方法3:安裝Web App",
|
|
100
|
-
target: "_blank"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
slug: "subscribe-telegram",
|
|
104
|
-
text: "訂閱Telegram",
|
|
105
|
-
to: "https://t.me/tw_reporter_org",
|
|
106
|
-
target: "_blank"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
];
|
|
110
|
-
};
|
|
111
|
-
const getSocialMediaLinks = () => {
|
|
112
|
-
return [
|
|
113
|
-
{
|
|
114
|
-
slug: "facebook",
|
|
115
|
-
icon: MEDIA_TYPE.facebook,
|
|
116
|
-
to: "https://www.facebook.com/twreporter/",
|
|
117
|
-
target: "_blank"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
slug: "instagram",
|
|
121
|
-
icon: MEDIA_TYPE.instagram,
|
|
122
|
-
to: "https://www.instagram.com/twreporter/",
|
|
123
|
-
target: "_blank"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
slug: "x",
|
|
127
|
-
icon: MEDIA_TYPE.twitter,
|
|
128
|
-
to: "https://twitter.com/tw_reporter_org",
|
|
129
|
-
target: "_blank"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
slug: "medium",
|
|
133
|
-
icon: MEDIA_TYPE.medium,
|
|
134
|
-
to: "https://medium.com/twreporter",
|
|
135
|
-
target: "_blank"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
slug: "youtube",
|
|
139
|
-
icon: MEDIA_TYPE.youtube,
|
|
140
|
-
to: "https://www.youtube.com/@TwreporterOrg",
|
|
141
|
-
target: "_blank"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
slug: "thread",
|
|
145
|
-
icon: MEDIA_TYPE.threads,
|
|
146
|
-
to: "https://www.threads.com/@twreporter",
|
|
147
|
-
target: "_blank"
|
|
148
|
-
}
|
|
149
|
-
];
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
//#endregion
|
|
153
|
-
export { FUNDRAISING_ID, getLinksGroups, getSocialMediaLinks };
|
|
154
|
-
//# sourceMappingURL=constants-DyO2QpJk.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-DyO2QpJk.mjs","names":[],"sources":["../src/footer/constants.ts"],"sourcesContent":["// TODO: replace data from cms\nimport { INTERNAL_LINKS } from '../constants/internal-links'\nimport type { LinkTarget } from '../customized-link/type'\nimport { MEDIA_TYPE } from '../icons/constants'\n\nexport const FUNDRAISING_ID =\n '衛部救字第 1131363879 號|勸募期間 2025/1/1~12/31'\n\nconst gtmId = {\n support: 'footer-support',\n newsletter: 'footer-newsletter',\n}\n/*\n display for links group\n | first column | second column | third column |\n | XXXX | XXXX | XXX |\n | XXXXX | XXXXXX | XX |\n*/\nexport const getLinksGroups = (mainOrigin: string) => {\n return [\n // first column\n [\n {\n slug: 'about',\n text: '關於我們',\n to: `${mainOrigin}${INTERNAL_LINKS.about}`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'authors',\n text: '作者群',\n to: `${mainOrigin}/authors`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'contact',\n text: '聯絡我們',\n to: `${mainOrigin}${INTERNAL_LINKS.article}/contact-footer`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'join',\n text: '加入我們',\n to: `${mainOrigin}${INTERNAL_LINKS.article}/hiring-job-description`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'license',\n text: '常見問題',\n to: `${mainOrigin}${INTERNAL_LINKS.article}/about-us-questions`,\n target: '_blank' as LinkTarget,\n },\n ],\n // second column\n [\n {\n slug: 'donate',\n text: '捐款徵信',\n to: `${mainOrigin}${INTERNAL_LINKS.article}/credit-donate`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'media-center',\n text: '基金會消息',\n to: `${mainOrigin}${INTERNAL_LINKS.categories.foundation.index}`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'impact-and-annual-report',\n text: '影響力報告',\n to: `${mainOrigin}${INTERNAL_LINKS.article}/impact-and-annual-report`,\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'publication-and-merchandise',\n text: '出版品與周邊',\n to: 'https://twreporter.waca.ec/',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'charity-cooperation',\n text: '公益合作',\n to: 'https://www.twreporter.org/a/cooperation',\n target: '_blank' as LinkTarget,\n },\n ],\n // third column\n [\n {\n slug: 'subscribe-email',\n text: '訂閱電子報',\n to: `${mainOrigin}${INTERNAL_LINKS.account.emailSubscription}`,\n target: '_blank' as LinkTarget,\n id: gtmId.newsletter,\n },\n {\n slug: 'subscribe-podcast',\n text: '訂閱 Podcast',\n to: 'https://solink.soundon.fm/twreporter-U7Q',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'subscribe-RSS',\n text: '訂閱 RSS',\n to: 'https://public.twreporter.org/rss/twreporter-rss.xml',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'install-web-app',\n text: '安裝Web App',\n to: 'https://www.twreporter.org/a/how-to-follow-the-reporter#方法3:安裝Web App',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'subscribe-telegram',\n text: '訂閱Telegram',\n to: 'https://t.me/tw_reporter_org',\n target: '_blank' as LinkTarget,\n },\n ],\n ]\n}\n\nexport const getSocialMediaLinks = () => {\n return [\n {\n slug: 'facebook',\n icon: MEDIA_TYPE.facebook,\n to: 'https://www.facebook.com/twreporter/',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'instagram',\n icon: MEDIA_TYPE.instagram,\n to: 'https://www.instagram.com/twreporter/',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'x',\n icon: MEDIA_TYPE.twitter,\n to: 'https://twitter.com/tw_reporter_org',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'medium',\n icon: MEDIA_TYPE.medium,\n to: 'https://medium.com/twreporter',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'youtube',\n icon: MEDIA_TYPE.youtube,\n to: 'https://www.youtube.com/@TwreporterOrg',\n target: '_blank' as LinkTarget,\n },\n {\n slug: 'thread',\n icon: MEDIA_TYPE.threads,\n to: 'https://www.threads.com/@twreporter',\n target: '_blank' as LinkTarget,\n },\n ]\n}\n"],"mappings":";;;;AAKA,MAAa,iBACX;AAEF,MAAM,QAAQ;CACZ,SAAS;CACT,YAAY;CACb;AAOD,MAAa,kBAAkB,eAAuB;AACpD,QAAO;EAEL;GACE;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAa,eAAe;IACnC,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,WAAW;IAClB,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAa,eAAe,QAAQ;IAC3C,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAa,eAAe,QAAQ;IAC3C,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAa,eAAe,QAAQ;IAC3C,QAAQ;IACT;GACF;EAED;GACE;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAa,eAAe,QAAQ;IAC3C,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAa,eAAe,WAAW,WAAW;IACzD,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAa,eAAe,QAAQ;IAC3C,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACF;EAED;GACE;IACE,MAAM;IACN,MAAM;IACN,IAAI,GAAG,aAAa,eAAe,QAAQ;IAC3C,QAAQ;IACR,IAAI,MAAM;IACX;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACD;IACE,MAAM;IACN,MAAM;IACN,IAAI;IACJ,QAAQ;IACT;GACF;EACF;;AAGH,MAAa,4BAA4B;AACvC,QAAO;EACL;GACE,MAAM;GACN,MAAM,WAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACD;GACE,MAAM;GACN,MAAM,WAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACD;GACE,MAAM;GACN,MAAM,WAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACD;GACE,MAAM;GACN,MAAM,WAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACD;GACE,MAAM;GACN,MAAM,WAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACD;GACE,MAAM;GACN,MAAM,WAAW;GACjB,IAAI;GACJ,QAAQ;GACT;EACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"external-link-Diro-q37.mjs","names":["ExternalLink: FC<ExternalLinkProps>"],"sources":["../src/customized-link/external-link.tsx"],"sourcesContent":["import type { FC } from 'react'\nimport type { CustomizedLinkProps } from './type'\n\ntype ExternalLinkProps = CustomizedLinkProps\nconst ExternalLink: FC<ExternalLinkProps> = ({\n to,\n target = '_self',\n className = '',\n children,\n onMouseEnter,\n onMouseLeave,\n}) => {\n return (\n <a\n href={to}\n target={target}\n className={className}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n {children}\n </a>\n )\n}\n\nexport default ExternalLink\n"],"mappings":";;;AAIA,MAAMA,gBAAuC,EAC3C,IACA,SAAS,SACT,YAAY,IACZ,UACA,cACA,mBACI;AACJ,QACE,oBAAC;EACC,MAAM;EACE;EACG;EACG;EACA;EAEb;GACC;;AAIR,4BAAe"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"external-link-afU9uFB6.js","names":["ExternalLink: FC<ExternalLinkProps>"],"sources":["../src/customized-link/external-link.tsx"],"sourcesContent":["import type { FC } from 'react'\nimport type { CustomizedLinkProps } from './type'\n\ntype ExternalLinkProps = CustomizedLinkProps\nconst ExternalLink: FC<ExternalLinkProps> = ({\n to,\n target = '_self',\n className = '',\n children,\n onMouseEnter,\n onMouseLeave,\n}) => {\n return (\n <a\n href={to}\n target={target}\n className={className}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n {children}\n </a>\n )\n}\n\nexport default ExternalLink\n"],"mappings":";;;;;AAIA,MAAMA,gBAAuC,EAC3C,IACA,SAAS,SACT,YAAY,IACZ,UACA,cACA,mBACI;AACJ,QACE,2CAAC;EACC,MAAM;EACE;EACG;EACG;EACA;EAEb;GACC;;AAIR,4BAAe"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { LinkTarget } from "../type-DGvbr3Rm.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/footer/constants.d.ts
|
|
4
|
-
declare const FUNDRAISING_ID = "\u885B\u90E8\u6551\u5B57\u7B2C 1131363879 \u865F\uFF5C\u52F8\u52DF\u671F\u9593 2025/1/1~12/31";
|
|
5
|
-
declare const getLinksGroups: (mainOrigin: string) => ({
|
|
6
|
-
slug: string;
|
|
7
|
-
text: string;
|
|
8
|
-
to: string;
|
|
9
|
-
target: LinkTarget;
|
|
10
|
-
id: string;
|
|
11
|
-
} | {
|
|
12
|
-
slug: string;
|
|
13
|
-
text: string;
|
|
14
|
-
to: string;
|
|
15
|
-
target: LinkTarget;
|
|
16
|
-
id?: undefined;
|
|
17
|
-
})[][];
|
|
18
|
-
declare const getSocialMediaLinks: () => ({
|
|
19
|
-
slug: string;
|
|
20
|
-
icon: "facebook";
|
|
21
|
-
to: string;
|
|
22
|
-
target: LinkTarget;
|
|
23
|
-
} | {
|
|
24
|
-
slug: string;
|
|
25
|
-
icon: "instagram";
|
|
26
|
-
to: string;
|
|
27
|
-
target: LinkTarget;
|
|
28
|
-
} | {
|
|
29
|
-
slug: string;
|
|
30
|
-
icon: "twitter";
|
|
31
|
-
to: string;
|
|
32
|
-
target: LinkTarget;
|
|
33
|
-
} | {
|
|
34
|
-
slug: string;
|
|
35
|
-
icon: "medium";
|
|
36
|
-
to: string;
|
|
37
|
-
target: LinkTarget;
|
|
38
|
-
} | {
|
|
39
|
-
slug: string;
|
|
40
|
-
icon: "youtube";
|
|
41
|
-
to: string;
|
|
42
|
-
target: LinkTarget;
|
|
43
|
-
} | {
|
|
44
|
-
slug: string;
|
|
45
|
-
icon: "threads";
|
|
46
|
-
to: string;
|
|
47
|
-
target: LinkTarget;
|
|
48
|
-
})[];
|
|
49
|
-
//#endregion
|
|
50
|
-
export { FUNDRAISING_ID, getLinksGroups, getSocialMediaLinks };
|
|
51
|
-
//# sourceMappingURL=constants.d.mts.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { LinkTarget } from "../type-ubTUOk6A.js";
|
|
2
|
-
|
|
3
|
-
//#region src/footer/constants.d.ts
|
|
4
|
-
declare const FUNDRAISING_ID = "\u885B\u90E8\u6551\u5B57\u7B2C 1131363879 \u865F\uFF5C\u52F8\u52DF\u671F\u9593 2025/1/1~12/31";
|
|
5
|
-
declare const getLinksGroups: (mainOrigin: string) => ({
|
|
6
|
-
slug: string;
|
|
7
|
-
text: string;
|
|
8
|
-
to: string;
|
|
9
|
-
target: LinkTarget;
|
|
10
|
-
id: string;
|
|
11
|
-
} | {
|
|
12
|
-
slug: string;
|
|
13
|
-
text: string;
|
|
14
|
-
to: string;
|
|
15
|
-
target: LinkTarget;
|
|
16
|
-
id?: undefined;
|
|
17
|
-
})[][];
|
|
18
|
-
declare const getSocialMediaLinks: () => ({
|
|
19
|
-
slug: string;
|
|
20
|
-
icon: "facebook";
|
|
21
|
-
to: string;
|
|
22
|
-
target: LinkTarget;
|
|
23
|
-
} | {
|
|
24
|
-
slug: string;
|
|
25
|
-
icon: "instagram";
|
|
26
|
-
to: string;
|
|
27
|
-
target: LinkTarget;
|
|
28
|
-
} | {
|
|
29
|
-
slug: string;
|
|
30
|
-
icon: "twitter";
|
|
31
|
-
to: string;
|
|
32
|
-
target: LinkTarget;
|
|
33
|
-
} | {
|
|
34
|
-
slug: string;
|
|
35
|
-
icon: "medium";
|
|
36
|
-
to: string;
|
|
37
|
-
target: LinkTarget;
|
|
38
|
-
} | {
|
|
39
|
-
slug: string;
|
|
40
|
-
icon: "youtube";
|
|
41
|
-
to: string;
|
|
42
|
-
target: LinkTarget;
|
|
43
|
-
} | {
|
|
44
|
-
slug: string;
|
|
45
|
-
icon: "threads";
|
|
46
|
-
to: string;
|
|
47
|
-
target: LinkTarget;
|
|
48
|
-
})[];
|
|
49
|
-
//#endregion
|
|
50
|
-
export { FUNDRAISING_ID, getLinksGroups, getSocialMediaLinks };
|
|
51
|
-
//# sourceMappingURL=constants.d.ts.map
|
package/lib/footer/constants.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
require('../internal-links-DxtMobuI.js');
|
|
2
|
-
require('../constants-D8wNUvoZ.js');
|
|
3
|
-
const require_constants$1 = require('../constants-0fgvpoyZ.js');
|
|
4
|
-
|
|
5
|
-
exports.FUNDRAISING_ID = require_constants$1.FUNDRAISING_ID;
|
|
6
|
-
exports.getLinksGroups = require_constants$1.getLinksGroups;
|
|
7
|
-
exports.getSocialMediaLinks = require_constants$1.getSocialMediaLinks;
|
package/lib/footer/constants.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"links-DO97xw7S.mjs","names":["ExternalLink","IconButton"],"sources":["../src/footer/links.tsx"],"sourcesContent":["import clsx from 'clsx'\n// text\nimport { P2, P3 } from '../text/paragraph'\n// constants\nimport type { ReleaseBranch } from '../constants/release-branch'\nimport { getSocialMediaLinks, getLinksGroups } from './constants'\nimport { forClientSideRendering } from '../constants/request-origins'\n// button\nimport { IconButton } from '../button'\n// link\nimport { ExternalLink } from '../customized-link'\n// icon\nimport { SocialMedia } from '../icons'\n// lodash\nimport map from 'lodash/map'\nconst _ = {\n map,\n}\n\nexport const SocialLinks = ({\n releaseBranch,\n}: {\n releaseBranch: ReleaseBranch\n}) => {\n const links = getSocialMediaLinks()\n return (\n <div className=\"flex gap-[16px]\">\n {_.map(links, (link) => {\n const iconComponent = (\n <SocialMedia mediaType={link.icon} releaseBranch={releaseBranch} />\n )\n return (\n <ExternalLink key={link.slug} to={link.to} target={link.target}>\n <IconButton iconComponent={iconComponent} />\n </ExternalLink>\n )\n })}\n </div>\n )\n}\n\nexport const InfoLinks = ({\n releaseBranch,\n}: {\n releaseBranch: ReleaseBranch\n}) => {\n const mainOrigin = forClientSideRendering[releaseBranch].main\n return (\n <>\n <ExternalLink to={`${mainOrigin}/a/license-footer`} target=\"_blank\">\n <P3\n className=\"text-gray-600 underline underline-offset-[4px]\"\n text=\"許可協議\"\n />\n </ExternalLink>\n <P3 className=\"text-gray-600\" text=\"|\" />\n <ExternalLink to={`${mainOrigin}/a/privacy-footer`} target=\"_blank\">\n <P3\n className=\"text-gray-600 underline underline-offset-[4px]\"\n text=\"隱私政策\"\n />\n </ExternalLink>\n <P3 className=\"text-gray-600\" text=\"|\" />\n <ExternalLink\n to={'https://twreporter.gitbook.io/the-reporter-brand-guidelines'}\n target=\"_blank\"\n >\n <P3\n className=\"text-gray-600 underline underline-offset-[4px]\"\n text=\"品牌規範\"\n />\n </ExternalLink>\n </>\n )\n}\n\nexport const LinkButtonGroups = ({\n releaseBranch,\n}: {\n releaseBranch: ReleaseBranch\n}) => {\n const mainOrigin = forClientSideRendering[releaseBranch].main\n const linksGroups = getLinksGroups(mainOrigin)\n return _.map(linksGroups, (links, indexofGroup) => {\n return (\n <div\n key={indexofGroup}\n className={clsx(\n 'flex flex-col gap-[8px] basis-1/3',\n 'desktop:w-[120px] desktop:gap-[16px] desktop:basis-auto'\n )}\n >\n {_.map(links, (link, indexofLink) => {\n return (\n <ExternalLink key={indexofLink} to={link.to} target=\"_blank\">\n <P2\n className=\"text-gray-600 hover:text-gray-800\"\n text={link.text}\n />\n </ExternalLink>\n )\n })}\n </div>\n )\n })\n}\n"],"mappings":";;;;;;;;;;;AAeA,MAAM,IAAI,EACR,KACD;AAED,MAAa,eAAe,EAC1B,oBAGI;CACJ,MAAM,QAAQ,qBAAqB;AACnC,QACE,oBAAC;EAAI,WAAU;YACZ,EAAE,IAAI,QAAQ,SAAS;GACtB,MAAM,gBACJ,oBAAC;IAAY,WAAW,KAAK;IAAqB;KAAiB;AAErE,UACE,oBAACA;IAA6B,IAAI,KAAK;IAAI,QAAQ,KAAK;cACtD,oBAACC,uBAA0B,gBAAiB;MAD3B,KAAK,KAET;IAEjB;GACE;;AAIV,MAAa,aAAa,EACxB,oBAGI;CACJ,MAAM,aAAa,uBAAuB,eAAe;AACzD,QACE;EACE,oBAACD;GAAa,IAAI,GAAG,WAAW;GAAoB,QAAO;aACzD,oBAAC;IACC,WAAU;IACV,MAAK;KACL;IACW;EACf,oBAAC;GAAG,WAAU;GAAgB,MAAK;IAAM;EACzC,oBAACA;GAAa,IAAI,GAAG,WAAW;GAAoB,QAAO;aACzD,oBAAC;IACC,WAAU;IACV,MAAK;KACL;IACW;EACf,oBAAC;GAAG,WAAU;GAAgB,MAAK;IAAM;EACzC,oBAACA;GACC,IAAI;GACJ,QAAO;aAEP,oBAAC;IACC,WAAU;IACV,MAAK;KACL;IACW;KACd;;AAIP,MAAa,oBAAoB,EAC/B,oBAGI;CACJ,MAAM,aAAa,uBAAuB,eAAe;CACzD,MAAM,cAAc,eAAe,WAAW;AAC9C,QAAO,EAAE,IAAI,cAAc,OAAO,iBAAiB;AACjD,SACE,oBAAC;GAEC,WAAW,KACT,qCACA,0DACD;aAEA,EAAE,IAAI,QAAQ,MAAM,gBAAgB;AACnC,WACE,oBAACA;KAA+B,IAAI,KAAK;KAAI,QAAO;eAClD,oBAAC;MACC,WAAU;MACV,MAAM,KAAK;OACX;OAJe,YAKJ;KAEjB;KAfG,aAgBD;GAER"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"links-Xuo8pb4a.js","names":["getSocialMediaLinks","SocialMedia","ExternalLink","IconButton","forClientSideRendering","P3","getLinksGroups","P2"],"sources":["../src/footer/links.tsx"],"sourcesContent":["import clsx from 'clsx'\n// text\nimport { P2, P3 } from '../text/paragraph'\n// constants\nimport type { ReleaseBranch } from '../constants/release-branch'\nimport { getSocialMediaLinks, getLinksGroups } from './constants'\nimport { forClientSideRendering } from '../constants/request-origins'\n// button\nimport { IconButton } from '../button'\n// link\nimport { ExternalLink } from '../customized-link'\n// icon\nimport { SocialMedia } from '../icons'\n// lodash\nimport map from 'lodash/map'\nconst _ = {\n map,\n}\n\nexport const SocialLinks = ({\n releaseBranch,\n}: {\n releaseBranch: ReleaseBranch\n}) => {\n const links = getSocialMediaLinks()\n return (\n <div className=\"flex gap-[16px]\">\n {_.map(links, (link) => {\n const iconComponent = (\n <SocialMedia mediaType={link.icon} releaseBranch={releaseBranch} />\n )\n return (\n <ExternalLink key={link.slug} to={link.to} target={link.target}>\n <IconButton iconComponent={iconComponent} />\n </ExternalLink>\n )\n })}\n </div>\n )\n}\n\nexport const InfoLinks = ({\n releaseBranch,\n}: {\n releaseBranch: ReleaseBranch\n}) => {\n const mainOrigin = forClientSideRendering[releaseBranch].main\n return (\n <>\n <ExternalLink to={`${mainOrigin}/a/license-footer`} target=\"_blank\">\n <P3\n className=\"text-gray-600 underline underline-offset-[4px]\"\n text=\"許可協議\"\n />\n </ExternalLink>\n <P3 className=\"text-gray-600\" text=\"|\" />\n <ExternalLink to={`${mainOrigin}/a/privacy-footer`} target=\"_blank\">\n <P3\n className=\"text-gray-600 underline underline-offset-[4px]\"\n text=\"隱私政策\"\n />\n </ExternalLink>\n <P3 className=\"text-gray-600\" text=\"|\" />\n <ExternalLink\n to={'https://twreporter.gitbook.io/the-reporter-brand-guidelines'}\n target=\"_blank\"\n >\n <P3\n className=\"text-gray-600 underline underline-offset-[4px]\"\n text=\"品牌規範\"\n />\n </ExternalLink>\n </>\n )\n}\n\nexport const LinkButtonGroups = ({\n releaseBranch,\n}: {\n releaseBranch: ReleaseBranch\n}) => {\n const mainOrigin = forClientSideRendering[releaseBranch].main\n const linksGroups = getLinksGroups(mainOrigin)\n return _.map(linksGroups, (links, indexofGroup) => {\n return (\n <div\n key={indexofGroup}\n className={clsx(\n 'flex flex-col gap-[8px] basis-1/3',\n 'desktop:w-[120px] desktop:gap-[16px] desktop:basis-auto'\n )}\n >\n {_.map(links, (link, indexofLink) => {\n return (\n <ExternalLink key={indexofLink} to={link.to} target=\"_blank\">\n <P2\n className=\"text-gray-600 hover:text-gray-800\"\n text={link.text}\n />\n </ExternalLink>\n )\n })}\n </div>\n )\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAM,IAAI,EACR,yBACD;AAED,MAAa,eAAe,EAC1B,oBAGI;CACJ,MAAM,QAAQA,uCAAqB;AACnC,QACE,2CAAC;EAAI,WAAU;YACZ,EAAE,IAAI,QAAQ,SAAS;GACtB,MAAM,gBACJ,2CAACC;IAAY,WAAW,KAAK;IAAqB;KAAiB;AAErE,UACE,2CAACC;IAA6B,IAAI,KAAK;IAAI,QAAQ,KAAK;cACtD,2CAACC,sCAA0B,gBAAiB;MAD3B,KAAK,KAET;IAEjB;GACE;;AAIV,MAAa,aAAa,EACxB,oBAGI;CACJ,MAAM,aAAaC,+CAAuB,eAAe;AACzD,QACE;EACE,2CAACF;GAAa,IAAI,GAAG,WAAW;GAAoB,QAAO;aACzD,2CAACG;IACC,WAAU;IACV,MAAK;KACL;IACW;EACf,2CAACA;GAAG,WAAU;GAAgB,MAAK;IAAM;EACzC,2CAACH;GAAa,IAAI,GAAG,WAAW;GAAoB,QAAO;aACzD,2CAACG;IACC,WAAU;IACV,MAAK;KACL;IACW;EACf,2CAACA;GAAG,WAAU;GAAgB,MAAK;IAAM;EACzC,2CAACH;GACC,IAAI;GACJ,QAAO;aAEP,2CAACG;IACC,WAAU;IACV,MAAK;KACL;IACW;KACd;;AAIP,MAAa,oBAAoB,EAC/B,oBAGI;CACJ,MAAM,aAAaD,+CAAuB,eAAe;CACzD,MAAM,cAAcE,iCAAe,WAAW;AAC9C,QAAO,EAAE,IAAI,cAAc,OAAO,iBAAiB;AACjD,SACE,2CAAC;GAEC,6BACE,qCACA,0DACD;aAEA,EAAE,IAAI,QAAQ,MAAM,gBAAgB;AACnC,WACE,2CAACJ;KAA+B,IAAI,KAAK;KAAI,QAAO;eAClD,2CAACK;MACC,WAAU;MACV,MAAM,KAAK;OACX;OAJe,YAKJ;KAEjB;KAfG,aAgBD;GAER"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as react9 from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/hooks/use-outside-click.d.ts
|
|
4
|
-
declare const useOutsideClick: (callback: () => void) => react9.RefObject<HTMLDivElement | null>;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { useOutsideClick };
|
|
7
|
-
//# sourceMappingURL=use-outside-click-CHxRFaTZ.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as react18 from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/hooks/use-outside-click.d.ts
|
|
4
|
-
declare const useOutsideClick: (callback: () => void) => react18.RefObject<HTMLDivElement | null>;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { useOutsideClick };
|
|
7
|
-
//# sourceMappingURL=use-outside-click-Diz2B7wx.d.mts.map
|