@twreporter/react-typescript-components 0.1.0-beta.17 → 0.1.0-beta.19
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-0fgvpoyZ.js +171 -0
- package/lib/constants-0fgvpoyZ.js.map +1 -0
- package/lib/{constants-BnVX84Yl.d.mts → constants-B5th6nHM.d.mts} +2 -2
- package/lib/{constants-Cg4dfRV_.d.mts → constants-B95_A0GY.d.mts} +2 -2
- package/lib/{constants-91DoZaeP.js → constants-BV86fOLv.js} +1 -1
- package/lib/{constants-91DoZaeP.js.map → constants-BV86fOLv.js.map} +1 -1
- package/lib/{constants-BYqJQzQQ.mjs → constants-BZGBDC2T.mjs} +1 -1
- package/lib/{constants-BYqJQzQQ.mjs.map → constants-BZGBDC2T.mjs.map} +1 -1
- package/lib/{constants-CzHmv07x.d.ts → constants-C86Q6QlO.d.ts} +1 -1
- package/lib/{constants-C2kTkuiJ.d.mts → constants-D2OTwBsV.d.mts} +2 -2
- package/lib/{constants-P65Nafg1.d.mts → constants-DZWOFPZT.d.mts} +2 -2
- package/lib/constants-DyO2QpJk.mjs +154 -0
- package/lib/constants-DyO2QpJk.mjs.map +1 -0
- package/lib/{constants-oX1rftqQ.d.mts → constants-IzZ4bWWt.d.mts} +2 -2
- package/lib/{constants-BuIUKM2c.js → constants-nmH6p6-y.js} +1 -1
- package/lib/{constants-BuIUKM2c.js.map → constants-nmH6p6-y.js.map} +1 -1
- package/lib/{constants-Cz7n-nLz.mjs → constants-z9Q8ph_H.mjs} +1 -1
- package/lib/{constants-Cz7n-nLz.mjs.map → constants-z9Q8ph_H.mjs.map} +1 -1
- 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 +3 -3
- package/lib/customized-link/index.js +3 -3
- package/lib/customized-link/index.mjs +3 -3
- package/lib/customized-link/internal-link.d.mts +2 -2
- package/lib/customized-link/internal-link.d.ts +2 -2
- package/lib/customized-link/internal-link.js +1 -1
- package/lib/customized-link/internal-link.mjs +1 -1
- package/lib/customized-link/type.d.mts +1 -1
- package/lib/customized-link/type.d.ts +1 -1
- package/lib/{customized-link-DNKmWI0u.mjs → customized-link-BacydHK_.mjs} +3 -3
- package/lib/{customized-link-DNKmWI0u.mjs.map → customized-link-BacydHK_.mjs.map} +1 -1
- package/lib/{customized-link-XNoMkeYw.js → customized-link-CHH91yod.js} +3 -3
- package/lib/{customized-link-XNoMkeYw.js.map → customized-link-CHH91yod.js.map} +1 -1
- package/lib/divider/constants.d.mts +2 -2
- package/lib/divider/constants.js +1 -1
- package/lib/divider/constants.mjs +1 -1
- package/lib/divider/index.d.mts +2 -2
- package/lib/divider/index.js +2 -2
- package/lib/divider/index.mjs +2 -2
- package/lib/{divider-Db3AhImD.js → divider-B1zvSjNJ.js} +2 -2
- package/lib/{divider-Db3AhImD.js.map → divider-B1zvSjNJ.js.map} +1 -1
- package/lib/{divider-CEIxmAsH.mjs → divider-CE4u6SR5.mjs} +2 -2
- package/lib/{divider-CEIxmAsH.mjs.map → divider-CE4u6SR5.mjs.map} +1 -1
- package/lib/dropdown-menu/index.d.mts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/index.js +4 -4
- package/lib/dropdown-menu/index.mjs +4 -4
- package/lib/{dropdown-menu-tbV9rhnw.js → dropdown-menu-D4XjLl7G.js} +3 -3
- package/lib/{dropdown-menu-tbV9rhnw.js.map → dropdown-menu-D4XjLl7G.js.map} +1 -1
- package/lib/{dropdown-menu-CuyS5r71.mjs → dropdown-menu-jbg-kt3s.mjs} +3 -3
- package/lib/{dropdown-menu-CuyS5r71.mjs.map → dropdown-menu-jbg-kt3s.mjs.map} +1 -1
- package/lib/{external-link-khVeTReZ.d.mts → external-link-0t606cM_.d.mts} +2 -2
- package/lib/{external-link-2XoC1_oL.d.ts → external-link-B3tELAVU.d.ts} +2 -2
- package/lib/{external-link-BykRRwmY.mjs → external-link-Diro-q37.mjs} +4 -2
- package/lib/external-link-Diro-q37.mjs.map +1 -0
- package/lib/{external-link-BMrkjNyi.js → external-link-afU9uFB6.js} +4 -2
- package/lib/external-link-afU9uFB6.js.map +1 -0
- package/lib/footer/constants.d.mts +51 -0
- package/lib/footer/constants.d.ts +51 -0
- package/lib/footer/constants.js +7 -0
- package/lib/footer/constants.mjs +5 -0
- package/lib/footer/index.d.mts +12 -0
- package/lib/footer/index.d.ts +11 -0
- package/lib/footer/index.js +103 -0
- package/lib/footer/index.js.map +1 -0
- package/lib/footer/index.mjs +100 -0
- package/lib/footer/index.mjs.map +1 -0
- package/lib/footer/links.d.mts +23 -0
- package/lib/footer/links.d.ts +23 -0
- package/lib/footer/links.js +19 -0
- package/lib/footer/links.mjs +17 -0
- package/lib/footer/logo.d.mts +12 -0
- package/lib/footer/logo.d.ts +11 -0
- package/lib/footer/logo.js +9 -0
- package/lib/footer/logo.mjs +9 -0
- package/lib/hamburger-menu/index.js +10 -11
- package/lib/hamburger-menu/index.mjs +10 -11
- package/lib/{hamburger-menu-Ca6QMgF9.mjs → hamburger-menu-MQgF0vLX.mjs} +9 -9
- package/lib/{hamburger-menu-Ca6QMgF9.mjs.map → hamburger-menu-MQgF0vLX.mjs.map} +1 -1
- package/lib/{hamburger-menu-qrLPGpHF.js → hamburger-menu-baCi46g2.js} +9 -9
- package/lib/{hamburger-menu-qrLPGpHF.js.map → hamburger-menu-baCi46g2.js.map} +1 -1
- package/lib/header/index.d.mts +3 -3
- package/lib/header/index.js +19 -19
- package/lib/header/index.js.map +1 -1
- package/lib/header/index.mjs +18 -18
- package/lib/header/index.mjs.map +1 -1
- package/lib/{heading-BWuXn7wB.mjs → heading-Cljxy-62.mjs} +1 -1
- package/lib/{heading-BWuXn7wB.mjs.map → heading-Cljxy-62.mjs.map} +1 -1
- package/lib/{heading-DJepEhoE.js → heading-Dnpw_s7U.js} +1 -1
- package/lib/{heading-DJepEhoE.js.map → heading-Dnpw_s7U.js.map} +1 -1
- package/lib/hooks/index.d.mts +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.js +1 -1
- package/lib/hooks/use-outside-click.mjs +1 -1
- package/lib/{hooks-Mt5N4Z2W.js → hooks-BxlKOoQu.js} +2 -2
- package/lib/{hooks-Mt5N4Z2W.js.map → hooks-BxlKOoQu.js.map} +1 -1
- package/lib/{hooks-DFV2v01e.mjs → hooks-DmImq-Z7.mjs} +2 -2
- package/lib/{hooks-DFV2v01e.mjs.map → hooks-DmImq-Z7.mjs.map} +1 -1
- package/lib/icons/constants.d.mts +2 -2
- package/lib/icons/index.d.mts +12 -12
- package/lib/{index-DaRD2S-9.d.mts → index-DegwO8ei.d.mts} +1 -1
- package/lib/input/constants.d.mts +17 -3
- package/lib/input/constants.d.ts +17 -3
- package/lib/input/constants.js +15 -4
- package/lib/input/constants.js.map +1 -0
- package/lib/input/constants.mjs +13 -2
- package/lib/input/constants.mjs.map +1 -0
- package/lib/input/index.d.mts +7 -10
- package/lib/input/index.d.ts +2 -5
- package/lib/input/index.js +2 -3
- package/lib/input/index.mjs +2 -3
- 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-czWOItrW.js → input-DaMbsNrg.js} +6 -8
- package/lib/input-DaMbsNrg.js.map +1 -0
- package/lib/{input-_Hl5B4_K.mjs → input-DvriSZ9o.mjs} +6 -8
- package/lib/input-DvriSZ9o.mjs.map +1 -0
- package/lib/{internal-link-BLXTBMRq.js → internal-link-Bq4yp13E.js} +4 -2
- package/lib/{internal-link-BLXTBMRq.js.map → internal-link-Bq4yp13E.js.map} +1 -1
- package/lib/{internal-link-NQb751uB.mjs → internal-link-DCXJvzgx.mjs} +4 -2
- package/lib/{internal-link-NQb751uB.mjs.map → internal-link-DCXJvzgx.mjs.map} +1 -1
- package/lib/{internal-link-BSb3__eR.d.mts → internal-link-Daag4Lrv.d.mts} +2 -2
- package/lib/{internal-link-DCSEl1jM.d.ts → internal-link-DtMsmfE9.d.ts} +2 -2
- package/lib/links-DO97xw7S.mjs +89 -0
- package/lib/links-DO97xw7S.mjs.map +1 -0
- package/lib/links-Xuo8pb4a.js +110 -0
- package/lib/links-Xuo8pb4a.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 +26 -11
- package/lib/logo/index.d.ts +19 -4
- package/lib/logo/index.js +2 -1
- package/lib/logo/index.mjs +2 -2
- package/lib/{logo-BTNfdxTv.js → logo-B3GSkN1O.js} +28 -5
- package/lib/logo-B3GSkN1O.js.map +1 -0
- package/lib/logo-C5NgKyYa.js +32 -0
- package/lib/logo-C5NgKyYa.js.map +1 -0
- package/lib/logo-CumKSrK5.mjs +24 -0
- package/lib/logo-CumKSrK5.mjs.map +1 -0
- package/lib/{logo-D68VZ-fc.mjs → logo-NfYCtrtN.mjs} +22 -6
- package/lib/logo-NfYCtrtN.mjs.map +1 -0
- package/lib/{release-branch-8qGtkKtd.d.mts → release-branch-CaxOk9Rq.d.mts} +2 -2
- package/lib/styles.css +135 -0
- 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 +6 -6
- package/lib/tab-bar/index.mjs +6 -6
- 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-BqiC7-Lw.mjs → tab-bar-CQjgjdkW.mjs} +5 -5
- package/lib/{tab-bar-BqiC7-Lw.mjs.map → tab-bar-CQjgjdkW.mjs.map} +1 -1
- package/lib/{tab-bar-Binq1EhQ.js → tab-bar-Dq0ewfWA.js} +5 -5
- package/lib/{tab-bar-Binq1EhQ.js.map → tab-bar-Dq0ewfWA.js.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-BOMyqC4d.js → theme-BQQzAfHb.js} +1 -1
- package/lib/{theme-BOMyqC4d.js.map → theme-BQQzAfHb.js.map} +1 -1
- package/lib/{theme-PhMjSVv9.mjs → theme-CDCgzSJw.mjs} +1 -1
- package/lib/{theme-PhMjSVv9.mjs.map → theme-CDCgzSJw.mjs.map} +1 -1
- package/lib/{theme-B9CWW8U9.d.mts → theme-Cx5oFufE.d.mts} +2 -2
- package/lib/{theme-CkSx7UX3.mjs → theme-D_LHh2_S.mjs} +1 -1
- package/lib/{theme-CkSx7UX3.mjs.map → theme-D_LHh2_S.mjs.map} +1 -1
- package/lib/{theme-CIEkzycI.js → theme-LkZX5giH.js} +1 -1
- package/lib/{theme-CIEkzycI.js.map → theme-LkZX5giH.js.map} +1 -1
- package/lib/title-bar/index.d.mts +4 -4
- package/lib/title-bar/index.d.ts +4 -4
- package/lib/title-bar/index.js +4 -4
- package/lib/title-bar/index.mjs +4 -4
- package/lib/{type-C4hJK9H9.d.ts → type-DGvbr3Rm.d.mts} +3 -1
- package/lib/{type-4zpM3Fk5.d.mts → type-ubTUOk6A.d.ts} +3 -1
- package/lib/types/index.d.mts +1 -1
- package/lib/{use-outside-click-Bz_v9VCq.mjs → use-outside-click-Br_ste4n.mjs} +1 -1
- package/lib/{use-outside-click-Bz_v9VCq.mjs.map → use-outside-click-Br_ste4n.mjs.map} +1 -1
- package/lib/{use-outside-click-436PXIeY.js → use-outside-click-Cl1QlhTH.js} +1 -1
- package/lib/{use-outside-click-436PXIeY.js.map → use-outside-click-Cl1QlhTH.js.map} +1 -1
- package/lib/use-outside-click-Diz2B7wx.d.mts +7 -0
- package/package.json +2 -2
- package/lib/constants-BGUGvo1A.d.ts +0 -22
- package/lib/constants-BP47D2l7.js +0 -36
- package/lib/constants-BP47D2l7.js.map +0 -1
- package/lib/constants-CxHP9dkH.d.mts +0 -22
- package/lib/constants-Dfgyc0ND.mjs +0 -18
- package/lib/constants-Dfgyc0ND.mjs.map +0 -1
- package/lib/external-link-BMrkjNyi.js.map +0 -1
- package/lib/external-link-BykRRwmY.mjs.map +0 -1
- package/lib/input-_Hl5B4_K.mjs.map +0 -1
- package/lib/input-czWOItrW.js.map +0 -1
- package/lib/logo-BTNfdxTv.js.map +0 -1
- package/lib/logo-D68VZ-fc.mjs.map +0 -1
- package/lib/use-outside-click-DToGSYRk.d.mts +0 -7
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-
|
|
1
|
+
import "../index-DegwO8ei.mjs";
|
|
2
|
+
import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-D2OTwBsV.mjs";
|
|
3
3
|
export { SIZE, STYLE, Size, Style, TYPE, Type };
|
package/lib/button/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-
|
|
3
|
-
import { THEME, Theme } from "../theme-
|
|
4
|
-
import { WEIGHT, Weight } from "../constants-
|
|
5
|
-
import * as
|
|
1
|
+
import "../index-DegwO8ei.mjs";
|
|
2
|
+
import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-D2OTwBsV.mjs";
|
|
3
|
+
import { THEME, Theme } from "../theme-Cx5oFufE.mjs";
|
|
4
|
+
import { WEIGHT, Weight } from "../constants-DZWOFPZT.mjs";
|
|
5
|
+
import * as react1 from "react";
|
|
6
6
|
import React$1, { FC, ReactElement } from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/button/components/text-button/index.d.ts
|
|
@@ -88,10 +88,10 @@ declare const IconWithTextButton: FC<IconWithTextButtonProps> & {
|
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region src/button/index.d.ts
|
|
90
90
|
declare const _default: {
|
|
91
|
-
TextButton:
|
|
91
|
+
TextButton: react1.FC<{
|
|
92
92
|
text: string;
|
|
93
|
-
leftIconComponent?:
|
|
94
|
-
rightIconComponent?:
|
|
93
|
+
leftIconComponent?: react1.ReactElement;
|
|
94
|
+
rightIconComponent?: react1.ReactElement;
|
|
95
95
|
size?: Size;
|
|
96
96
|
style?: Style;
|
|
97
97
|
theme?: Theme;
|
|
@@ -104,7 +104,7 @@ declare const _default: {
|
|
|
104
104
|
Style: typeof STYLE;
|
|
105
105
|
Theme: typeof THEME;
|
|
106
106
|
};
|
|
107
|
-
IconButton:
|
|
107
|
+
IconButton: react1.FC<{
|
|
108
108
|
iconComponent: React.ReactElement;
|
|
109
109
|
theme?: Theme;
|
|
110
110
|
type?: Type;
|
|
@@ -116,7 +116,7 @@ declare const _default: {
|
|
|
116
116
|
Theme: typeof THEME;
|
|
117
117
|
Type: typeof TYPE;
|
|
118
118
|
};
|
|
119
|
-
MenuButton:
|
|
119
|
+
MenuButton: react1.FC<{
|
|
120
120
|
text: string;
|
|
121
121
|
color: string;
|
|
122
122
|
fontWeight: Weight;
|
|
@@ -125,7 +125,7 @@ declare const _default: {
|
|
|
125
125
|
}> & {
|
|
126
126
|
FontWeight: typeof WEIGHT;
|
|
127
127
|
};
|
|
128
|
-
PillButton:
|
|
128
|
+
PillButton: react1.FC<{
|
|
129
129
|
text?: string;
|
|
130
130
|
leftIconComponent?: React.ReactElement;
|
|
131
131
|
rightIconComponent?: React.ReactElement;
|
|
@@ -142,7 +142,7 @@ declare const _default: {
|
|
|
142
142
|
Size: typeof SIZE;
|
|
143
143
|
Style: typeof STYLE;
|
|
144
144
|
};
|
|
145
|
-
IconWithTextButton:
|
|
145
|
+
IconWithTextButton: react1.FC<{
|
|
146
146
|
text?: string;
|
|
147
147
|
iconComponent: React.ReactNode;
|
|
148
148
|
theme?: Theme;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { RELEASE_BRANCH, ReleaseBranch } from "../release-branch-
|
|
1
|
+
import "../index-DegwO8ei.mjs";
|
|
2
|
+
import { RELEASE_BRANCH, ReleaseBranch } from "../release-branch-CaxOk9Rq.mjs";
|
|
3
3
|
export { RELEASE_BRANCH, ReleaseBranch };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { THEME, Theme } from "../theme-
|
|
1
|
+
import "../index-DegwO8ei.mjs";
|
|
2
|
+
import { THEME, Theme } from "../theme-Cx5oFufE.mjs";
|
|
3
3
|
export { THEME, Theme };
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { ValuesOf } from "./index-
|
|
1
|
+
import { ValuesOf } from "./index-DegwO8ei.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/divider/constants.d.ts
|
|
4
4
|
declare const DIRECTION: {
|
|
@@ -8,4 +8,4 @@ declare const DIRECTION: {
|
|
|
8
8
|
type Direction = ValuesOf<typeof DIRECTION>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { DIRECTION, Direction };
|
|
11
|
-
//# sourceMappingURL=constants-
|
|
11
|
+
//# sourceMappingURL=constants-B5th6nHM.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValuesOf } from "./index-
|
|
1
|
+
import { ValuesOf } from "./index-DegwO8ei.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/icons/constants.d.ts
|
|
4
4
|
declare const ICON_TYPE: {
|
|
@@ -27,4 +27,4 @@ declare const MEDIA_TYPE: {
|
|
|
27
27
|
type MediaType = ValuesOf<typeof MEDIA_TYPE>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ARROW_DIRECTION, ArrowDirection, ICON_TYPE, IconType, MEDIA_TYPE, MediaType };
|
|
30
|
-
//# sourceMappingURL=constants-
|
|
30
|
+
//# sourceMappingURL=constants-B95_A0GY.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-BV86fOLv.js","names":["TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[]","INTERNAL_LINKS","Home","Clock","Topic","KidStar"],"sources":["../src/tab-bar/constants.ts"],"sourcesContent":["import type { ReactElement } from 'react'\nimport { INTERNAL_LINKS } from '../constants/internal-links'\nimport type { LinkTarget } from '../customized-link/type'\n// icons\nimport { Home, Clock, Topic, KidStar } from '../icons'\n// release branch\nimport type { ReleaseBranch } from '../constants/release-branch'\n\ntype TabBarItem = {\n text: string\n link: string\n target: LinkTarget\n icon: ReactElement\n}\nexport const TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[] = (\n releaseBranch\n) => [\n {\n text: '首頁',\n link: INTERNAL_LINKS.home,\n target: '_self',\n icon: Home(releaseBranch),\n },\n {\n text: '最新',\n link: INTERNAL_LINKS.latest,\n target: '_self',\n icon: Clock(releaseBranch),\n },\n {\n text: '深度專題',\n link: INTERNAL_LINKS.topics,\n target: '_self',\n icon: Topic(releaseBranch),\n },\n {\n text: '我的閱讀',\n link: INTERNAL_LINKS.myReading.index,\n target: '_self',\n icon: KidStar(releaseBranch),\n },\n]\n"],"mappings":";;;;AAcA,MAAaA,eACX,kBACG;CACH;EACE,MAAM;EACN,MAAMC,sCAAe;EACrB,QAAQ;EACR,MAAMC,mBAAK,cAAc;EAC1B;CACD;EACE,MAAM;EACN,MAAMD,sCAAe;EACrB,QAAQ;EACR,MAAME,oBAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAMF,sCAAe;EACrB,QAAQ;EACR,MAAMG,oBAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAMH,sCAAe,UAAU;EAC/B,QAAQ;EACR,MAAMI,sBAAQ,cAAc;EAC7B;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-BZGBDC2T.mjs","names":["TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[]"],"sources":["../src/tab-bar/constants.ts"],"sourcesContent":["import type { ReactElement } from 'react'\nimport { INTERNAL_LINKS } from '../constants/internal-links'\nimport type { LinkTarget } from '../customized-link/type'\n// icons\nimport { Home, Clock, Topic, KidStar } from '../icons'\n// release branch\nimport type { ReleaseBranch } from '../constants/release-branch'\n\ntype TabBarItem = {\n text: string\n link: string\n target: LinkTarget\n icon: ReactElement\n}\nexport const TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[] = (\n releaseBranch\n) => [\n {\n text: '首頁',\n link: INTERNAL_LINKS.home,\n target: '_self',\n icon: Home(releaseBranch),\n },\n {\n text: '最新',\n link: INTERNAL_LINKS.latest,\n target: '_self',\n icon: Clock(releaseBranch),\n },\n {\n text: '深度專題',\n link: INTERNAL_LINKS.topics,\n target: '_self',\n icon: Topic(releaseBranch),\n },\n {\n text: '我的閱讀',\n link: INTERNAL_LINKS.myReading.index,\n target: '_self',\n icon: KidStar(releaseBranch),\n },\n]\n"],"mappings":";;;;AAcA,MAAaA,eACX,kBACG;CACH;EACE,MAAM;EACN,MAAM,eAAe;EACrB,QAAQ;EACR,MAAM,KAAK,cAAc;EAC1B;CACD;EACE,MAAM;EACN,MAAM,eAAe;EACrB,QAAQ;EACR,MAAM,MAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAM,eAAe;EACrB,QAAQ;EACR,MAAM,MAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAM,eAAe,UAAU;EAC/B,QAAQ;EACR,MAAM,QAAQ,cAAc;EAC7B;CACF"}
|
|
@@ -21,4 +21,4 @@ declare const LOGO_SYMBOL_TYPE: {
|
|
|
21
21
|
type LogoSymbolType = ValuesOf<typeof LOGO_SYMBOL_TYPE>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType };
|
|
24
|
-
//# sourceMappingURL=constants-
|
|
24
|
+
//# sourceMappingURL=constants-C86Q6QlO.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValuesOf } from "./index-
|
|
1
|
+
import { ValuesOf } from "./index-DegwO8ei.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/button/constants.d.ts
|
|
4
4
|
declare const SIZE: {
|
|
@@ -19,4 +19,4 @@ declare const TYPE: {
|
|
|
19
19
|
type Type = ValuesOf<typeof TYPE>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SIZE, STYLE, Size, Style, TYPE, Type };
|
|
22
|
-
//# sourceMappingURL=constants-
|
|
22
|
+
//# sourceMappingURL=constants-D2OTwBsV.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValuesOf } from "./index-
|
|
1
|
+
import { ValuesOf } from "./index-DegwO8ei.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/text/constants.d.ts
|
|
4
4
|
declare const TYPE: {
|
|
@@ -14,4 +14,4 @@ declare const WEIGHT: {
|
|
|
14
14
|
type Weight = ValuesOf<typeof WEIGHT>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { TYPE, Type, WEIGHT, Weight };
|
|
17
|
-
//# sourceMappingURL=constants-
|
|
17
|
+
//# sourceMappingURL=constants-DZWOFPZT.d.mts.map
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { ValuesOf } from "./index-
|
|
1
|
+
import { ValuesOf } from "./index-DegwO8ei.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/logo/constants.d.ts
|
|
4
4
|
declare const LOGO: {
|
|
@@ -21,4 +21,4 @@ declare const LOGO_SYMBOL_TYPE: {
|
|
|
21
21
|
type LogoSymbolType = ValuesOf<typeof LOGO_SYMBOL_TYPE>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType };
|
|
24
|
-
//# sourceMappingURL=constants-
|
|
24
|
+
//# sourceMappingURL=constants-IzZ4bWWt.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-nmH6p6-y.js","names":[],"sources":["../src/divider/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const DIRECTION = {\n horizontal: 'horizontal',\n vertical: 'vertical',\n} as const\n\nexport type Direction = ValuesOf<typeof DIRECTION>\n"],"mappings":";;AAEA,MAAa,YAAY;CACvB,YAAY;CACZ,UAAU;CACX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants-
|
|
1
|
+
{"version":3,"file":"constants-z9Q8ph_H.mjs","names":[],"sources":["../src/divider/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const DIRECTION = {\n horizontal: 'horizontal',\n vertical: 'vertical',\n} as const\n\nexport type Direction = ValuesOf<typeof DIRECTION>\n"],"mappings":";AAEA,MAAa,YAAY;CACvB,YAAY;CACZ,UAAU;CACX"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../type-
|
|
2
|
-
import { ExternalLink } from "../external-link-
|
|
1
|
+
import "../type-DGvbr3Rm.mjs";
|
|
2
|
+
import { ExternalLink } from "../external-link-0t606cM_.mjs";
|
|
3
3
|
export { ExternalLink as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../type-
|
|
2
|
-
import { ExternalLink } from "../external-link-
|
|
1
|
+
import "../type-ubTUOk6A.js";
|
|
2
|
+
import { ExternalLink } from "../external-link-B3tELAVU.js";
|
|
3
3
|
export = ExternalLink;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CustomizedLinkProps } from "../type-
|
|
2
|
-
import { ExternalLink } from "../external-link-
|
|
3
|
-
import { InternalLink } from "../internal-link-
|
|
4
|
-
import * as
|
|
1
|
+
import { CustomizedLinkProps } from "../type-DGvbr3Rm.mjs";
|
|
2
|
+
import { ExternalLink } from "../external-link-0t606cM_.mjs";
|
|
3
|
+
import { InternalLink } from "../internal-link-Daag4Lrv.mjs";
|
|
4
|
+
import * as react0 from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/customized-link/index.d.ts
|
|
7
7
|
declare const _default: {
|
|
8
|
-
ExternalLink:
|
|
9
|
-
InternalLink:
|
|
8
|
+
ExternalLink: react0.FC<CustomizedLinkProps>;
|
|
9
|
+
InternalLink: react0.FC<CustomizedLinkProps>;
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ExternalLink, InternalLink, _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomizedLinkProps } from "../type-
|
|
2
|
-
import { ExternalLink } from "../external-link-
|
|
3
|
-
import { InternalLink } from "../internal-link-
|
|
1
|
+
import { CustomizedLinkProps } from "../type-ubTUOk6A.js";
|
|
2
|
+
import { ExternalLink } from "../external-link-B3tELAVU.js";
|
|
3
|
+
import { InternalLink } from "../internal-link-DtMsmfE9.js";
|
|
4
4
|
import * as react6 from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/customized-link/index.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_external_link = require('../external-link-
|
|
3
|
-
const require_internal_link = require('../internal-link-
|
|
4
|
-
const require_customized_link = require('../customized-link-
|
|
2
|
+
const require_external_link = require('../external-link-afU9uFB6.js');
|
|
3
|
+
const require_internal_link = require('../internal-link-Bq4yp13E.js');
|
|
4
|
+
const require_customized_link = require('../customized-link-CHH91yod.js');
|
|
5
5
|
|
|
6
6
|
exports.ExternalLink = require_external_link.external_link_default;
|
|
7
7
|
exports.InternalLink = require_internal_link.internal_link_default;
|