@twreporter/react-components 8.22.0-rc.1 → 8.22.0-rc.2
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/CHANGELOG.md +11 -0
- package/lib/footer/content.js +5 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [8.22.0-rc.2](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.22.0-rc.1...@twreporter/react-components@8.22.0-rc.2) (2023-12-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* link to category page for footer foundation ([40a8911](https://github.com/twreporter/twreporter-npm-packages/commit/40a8911681d4b846fb0c0a44a5cbb73edce92d2c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [8.22.0-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.22.0-rc.0...@twreporter/react-components@8.22.0-rc.1) (2023-12-05)
|
|
7
18
|
|
|
8
19
|
|
package/lib/footer/content.js
CHANGED
|
@@ -33,6 +33,8 @@ var _font = require("@twreporter/core/lib/constants/font");
|
|
|
33
33
|
|
|
34
34
|
var _color = require("@twreporter/core/lib/constants/color");
|
|
35
35
|
|
|
36
|
+
var _featureFlag = require("@twreporter/core/lib/constants/feature-flag");
|
|
37
|
+
|
|
36
38
|
var _map = _interopRequireDefault(require("lodash/map"));
|
|
37
39
|
|
|
38
40
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25;
|
|
@@ -50,6 +52,7 @@ var _ = {
|
|
|
50
52
|
};
|
|
51
53
|
|
|
52
54
|
function getItemGroups(mainOrigin) {
|
|
55
|
+
var foundationUrl = _featureFlag.FOUNDATION_CATEGORY_SET ? "".concat(mainOrigin).concat(_entityPath["default"].categories, "foundation") : "".concat(mainOrigin).concat(_entityPath["default"].topics, "media-center");
|
|
53
56
|
return [[{
|
|
54
57
|
slug: 'about',
|
|
55
58
|
text: '關於我們',
|
|
@@ -92,8 +95,8 @@ function getItemGroups(mainOrigin) {
|
|
|
92
95
|
target: '_blank'
|
|
93
96
|
}, {
|
|
94
97
|
slug: 'media-center',
|
|
95
|
-
text: '
|
|
96
|
-
link:
|
|
98
|
+
text: '基金會消息',
|
|
99
|
+
link: foundationUrl,
|
|
97
100
|
target: '_blank'
|
|
98
101
|
}, {
|
|
99
102
|
slug: 'impact-and-annual-report',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-components",
|
|
3
|
-
"version": "8.22.0-rc.
|
|
3
|
+
"version": "8.22.0-rc.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
6
6
|
"author": "twreporter <developer@twreporter.org>",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react-dom": "^16.0.0",
|
|
52
52
|
"storybook": "^7.5.2"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "6f64a22c549e4c15941adaba7de8868bf9dffc03"
|
|
55
55
|
}
|