gov-ui-core 0.2.6-beta.8 → 0.2.6
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/.storybook/main.ts +36 -37
- package/.storybook/preview.tsx +27 -27
- package/@types/custom.d.ts +43 -43
- package/@types/styles.d.ts +3 -86
- package/README.md +46 -46
- package/build/App.d.ts +3 -3
- package/build/Main.d.ts +5 -5
- package/build/components/Button/DropdownButton.d.ts +15 -15
- package/build/components/Button/SwitchButton.d.ts +7 -7
- package/build/components/Button/index.d.ts +11 -11
- package/build/components/Button/styled.d.ts +10 -11
- package/build/components/Calendar/CalendarNavigation.d.ts +9 -9
- package/build/components/Calendar/constants.d.ts +2 -2
- package/build/components/Calendar/index.d.ts +11 -11
- package/build/components/Calendar/styled.d.ts +2 -2
- package/build/components/Carousel/ArrowButton.d.ts +7 -7
- package/build/components/Carousel/index.d.ts +14 -14
- package/build/components/Carousel/styled.d.ts +2 -2
- package/build/components/Directory/index.d.ts +32 -32
- package/build/components/Directory/styled.d.ts +6 -6
- package/build/components/EmptyBox/index.d.ts +8 -8
- package/build/components/EmptyBox/styled.d.ts +4 -4
- package/build/components/Form/Form.d.ts +21 -21
- package/build/components/Form/Group.d.ts +6 -6
- package/build/components/Form/Item.d.ts +22 -22
- package/build/components/Form/index.d.ts +14 -14
- package/build/components/Form/styled.d.ts +7 -7
- package/build/components/Header/ContentHeader.d.ts +15 -15
- package/build/components/Header/styled.d.ts +5 -5
- package/build/components/Icons/index.d.ts +14 -14
- package/build/components/Input/Checkbox.d.ts +19 -19
- package/build/components/Input/ErrorMessage.d.ts +8 -8
- package/build/components/Input/Input.d.ts +23 -23
- package/build/components/Input/InputNumber.d.ts +8 -8
- package/build/components/Input/Radio.d.ts +16 -16
- package/build/components/Input/Search.d.ts +13 -13
- package/build/components/Input/Select.d.ts +39 -39
- package/build/components/Input/TextArea.d.ts +15 -15
- package/build/components/Input/index.d.ts +19 -19
- package/build/components/Input/styled.d.ts +25 -25
- package/build/components/IntlText/index.d.ts +5 -5
- package/build/components/Loading/OverlayLoading.d.ts +10 -10
- package/build/components/Loading/Spinner.d.ts +9 -9
- package/build/components/Loading/styled.d.ts +10 -10
- package/build/components/Styled/mixins.d.ts +13 -13
- package/build/components/Styled/variable.d.ts +6 -6
- package/build/components/Table/AppendTable.d.ts +26 -26
- package/build/components/Table/AutoTooltip.d.ts +8 -8
- package/build/components/Table/TableBase.d.ts +16 -16
- package/build/components/Table/TableLoading.d.ts +9 -9
- package/build/components/Table/components/Pagination.d.ts +18 -18
- package/build/components/Table/components/PaginationItem.d.ts +9 -9
- package/build/components/Table/index.d.ts +27 -27
- package/build/components/Table/styled.d.ts +25 -25
- package/build/components/ThemeProvider.d.ts +16 -16
- package/build/globalStyle.d.ts +5 -5
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/modules.d.ts +23 -25
- package/build/pages/CreateTable.d.ts +20 -20
- package/build/pages/FormSample.d.ts +5 -5
- package/build/pages/Sample.d.ts +5 -5
- package/build/pages/Sample2.d.ts +5 -5
- package/build/pages/Sample3.d.ts +5 -5
- package/build/pages/Sample4.d.ts +5 -5
- package/build/pages/TableSample.d.ts +5 -5
- package/build/pages/sampleData.d.ts +59 -59
- package/build/reportWebVitals.d.ts +3 -3
- package/build/theme.d.ts +45 -3
- package/build/utils/customState.d.ts +28 -28
- package/build/utils/hookUtils.d.ts +16 -16
- package/build/utils/index.d.ts +35 -35
- package/config/env.js +104 -104
- package/config/getHttpsConfig.js +66 -66
- package/config/jest/babelTransform.js +29 -29
- package/config/jest/cssTransform.js +14 -14
- package/config/jest/fileTransform.js +40 -40
- package/config/modules.js +134 -134
- package/config/paths.js +77 -77
- package/config/webpack/persistentCache/createEnvironmentHash.js +9 -9
- package/config/webpack.config.js +756 -756
- package/config/webpack.prod.config.js +91 -91
- package/config/webpackDevServer.config.js +127 -127
- package/doctor-storybook.log +18 -0
- package/migration-storybook.log +98 -0
- package/package.json +215 -246
- package/public/index.html +43 -43
- package/public/manifest.json +25 -25
- package/public/robots.txt +3 -3
- package/scripts/build.js +217 -217
- package/scripts/start.js +154 -154
- package/scripts/test.js +52 -52
- package/tsconfig.json +34 -34
- package/.eslintrc.json +0 -54
- package/.husky/pre-commit +0 -4
- package/.prettierrc +0 -12
- package/.stylelintrc.json +0 -16
- package/build/components/Button/constants.d.ts +0 -19
- package/build/components/TailwindTest/index.d.ts +0 -6
- package/build/pages/ButtonSample.d.ts +0 -6
- package/build/pages/InputSample.d.ts +0 -6
- package/build/pages/TailwindSample.d.ts +0 -1
- package/postcss.config.js +0 -8
- package/tailwind.config.js +0 -185
package/package.json
CHANGED
|
@@ -1,246 +1,215 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gov-ui-core",
|
|
3
|
-
"version": "0.2.6
|
|
4
|
-
"main": "./build/index.js",
|
|
5
|
-
"module": "./build/index.js",
|
|
6
|
-
"types": "./build/modules.d.ts",
|
|
7
|
-
"repository": "https://github.com/liamyoon/gov-ui-core",
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"@babel/core": "^7.16.0",
|
|
10
|
-
"@craco/craco": "^7.1.0",
|
|
11
|
-
"@mdi/font": "^5.9.55",
|
|
12
|
-
"@mdi/js": "^5.9.55",
|
|
13
|
-
"@mdi/react": "^1.6.1",
|
|
14
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
15
|
-
"@svgr/webpack": "^5.5.0",
|
|
16
|
-
"@testing-library/jest-dom": "^5.17.0",
|
|
17
|
-
"@testing-library/react": "^13.4.0",
|
|
18
|
-
"@testing-library/user-event": "^13.5.0",
|
|
19
|
-
"@types/node": "^16.18.90",
|
|
20
|
-
"@types/react": "^18.2.67",
|
|
21
|
-
"@types/react-date-range": "^1.4.9",
|
|
22
|
-
"@types/react-dom": "^18.2.22",
|
|
23
|
-
"antd": "^4.24.16",
|
|
24
|
-
"babel-jest": "^27.4.2",
|
|
25
|
-
"babel-loader": "^8.2.3",
|
|
26
|
-
"babel-plugin-named-asset-import": "^0.3.8",
|
|
27
|
-
"babel-preset-react-app": "^10.0.1",
|
|
28
|
-
"bfj": "^7.0.2",
|
|
29
|
-
"browserslist": "^4.18.1",
|
|
30
|
-
"camelcase": "^6.2.1",
|
|
31
|
-
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
32
|
-
"classnames": "^2.5.1",
|
|
33
|
-
"css-loader": "^6.5.1",
|
|
34
|
-
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
35
|
-
"date-fns": "^2.30.0",
|
|
36
|
-
"dotenv": "^10.0.0",
|
|
37
|
-
"dotenv-expand": "^5.1.0",
|
|
38
|
-
"dynamic-antd-theme": "^0.8.7",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"postcss
|
|
53
|
-
"postcss-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"react": "
|
|
62
|
-
"react-
|
|
63
|
-
"react-
|
|
64
|
-
"react-
|
|
65
|
-
"react-
|
|
66
|
-
"react-
|
|
67
|
-
"react-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"webpack
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
},
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"@
|
|
132
|
-
"@
|
|
133
|
-
"@
|
|
134
|
-
"@
|
|
135
|
-
"@
|
|
136
|
-
"@
|
|
137
|
-
"@
|
|
138
|
-
"@
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
"
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
"
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
"
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
"
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
"
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
"
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
],
|
|
217
|
-
"modulePaths": [],
|
|
218
|
-
"moduleNameMapper": {
|
|
219
|
-
"^react-native$": "react-native-web",
|
|
220
|
-
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
|
|
221
|
-
"^src/(.*)$": "<rootDir>/src/$1"
|
|
222
|
-
},
|
|
223
|
-
"moduleFileExtensions": [
|
|
224
|
-
"web.js",
|
|
225
|
-
"js",
|
|
226
|
-
"web.ts",
|
|
227
|
-
"ts",
|
|
228
|
-
"web.tsx",
|
|
229
|
-
"tsx",
|
|
230
|
-
"json",
|
|
231
|
-
"web.jsx",
|
|
232
|
-
"jsx",
|
|
233
|
-
"node"
|
|
234
|
-
],
|
|
235
|
-
"watchPlugins": [
|
|
236
|
-
"jest-watch-typeahead/filename",
|
|
237
|
-
"jest-watch-typeahead/testname"
|
|
238
|
-
],
|
|
239
|
-
"resetMocks": true
|
|
240
|
-
},
|
|
241
|
-
"babel": {
|
|
242
|
-
"presets": [
|
|
243
|
-
"react-app"
|
|
244
|
-
]
|
|
245
|
-
}
|
|
246
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "gov-ui-core",
|
|
3
|
+
"version": "0.2.6",
|
|
4
|
+
"main": "./build/index.js",
|
|
5
|
+
"module": "./build/index.js",
|
|
6
|
+
"types": "./build/modules.d.ts",
|
|
7
|
+
"repository": "https://github.com/liamyoon/gov-ui-core",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@babel/core": "^7.16.0",
|
|
10
|
+
"@craco/craco": "^7.1.0",
|
|
11
|
+
"@mdi/font": "^5.9.55",
|
|
12
|
+
"@mdi/js": "^5.9.55",
|
|
13
|
+
"@mdi/react": "^1.6.1",
|
|
14
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
15
|
+
"@svgr/webpack": "^5.5.0",
|
|
16
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
17
|
+
"@testing-library/react": "^13.4.0",
|
|
18
|
+
"@testing-library/user-event": "^13.5.0",
|
|
19
|
+
"@types/node": "^16.18.90",
|
|
20
|
+
"@types/react": "^18.2.67",
|
|
21
|
+
"@types/react-date-range": "^1.4.9",
|
|
22
|
+
"@types/react-dom": "^18.2.22",
|
|
23
|
+
"antd": "^4.24.16",
|
|
24
|
+
"babel-jest": "^27.4.2",
|
|
25
|
+
"babel-loader": "^8.2.3",
|
|
26
|
+
"babel-plugin-named-asset-import": "^0.3.8",
|
|
27
|
+
"babel-preset-react-app": "^10.0.1",
|
|
28
|
+
"bfj": "^7.0.2",
|
|
29
|
+
"browserslist": "^4.18.1",
|
|
30
|
+
"camelcase": "^6.2.1",
|
|
31
|
+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
32
|
+
"classnames": "^2.5.1",
|
|
33
|
+
"css-loader": "^6.5.1",
|
|
34
|
+
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
35
|
+
"date-fns": "^2.30.0",
|
|
36
|
+
"dotenv": "^10.0.0",
|
|
37
|
+
"dotenv-expand": "^5.1.0",
|
|
38
|
+
"dynamic-antd-theme": "^0.8.7",
|
|
39
|
+
"eslint": "^8.3.0",
|
|
40
|
+
"eslint-config-react-app": "^7.0.1",
|
|
41
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
42
|
+
"file-loader": "^6.2.0",
|
|
43
|
+
"fs-extra": "^10.0.0",
|
|
44
|
+
"html-webpack-plugin": "^5.5.0",
|
|
45
|
+
"identity-obj-proxy": "^3.0.0",
|
|
46
|
+
"jest": "^27.4.3",
|
|
47
|
+
"jest-resolve": "^27.4.2",
|
|
48
|
+
"jest-watch-typeahead": "^1.0.0",
|
|
49
|
+
"lodash": "^4.17.21",
|
|
50
|
+
"mini-css-extract-plugin": "^2.4.5",
|
|
51
|
+
"moment": "^2.30.1",
|
|
52
|
+
"postcss": "^8.4.4",
|
|
53
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
54
|
+
"postcss-loader": "^6.2.1",
|
|
55
|
+
"postcss-normalize": "^10.0.1",
|
|
56
|
+
"postcss-preset-env": "^7.0.1",
|
|
57
|
+
"prompts": "^2.4.2",
|
|
58
|
+
"query-string": "^9.0.0",
|
|
59
|
+
"ramda": "^0.29.1",
|
|
60
|
+
"rc-motion": "^2.9.0",
|
|
61
|
+
"react-app-polyfill": "^3.0.0",
|
|
62
|
+
"react-date-range": "^1.4.0",
|
|
63
|
+
"react-dev-utils": "^12.0.1",
|
|
64
|
+
"react-dom": "^18.2.0",
|
|
65
|
+
"react-hook-form": "^7.51.1",
|
|
66
|
+
"react-intl": "^6.8.9",
|
|
67
|
+
"react-refresh": "^0.11.0",
|
|
68
|
+
"react-router-dom": "^6.22.3",
|
|
69
|
+
"react-slick": "^0.30.2",
|
|
70
|
+
"resolve": "^1.20.0",
|
|
71
|
+
"resolve-url-loader": "^4.0.0",
|
|
72
|
+
"semver": "^7.3.5",
|
|
73
|
+
"slick-carousel": "^1.8.1",
|
|
74
|
+
"source-map-loader": "^3.0.0",
|
|
75
|
+
"style-loader": "^3.3.1",
|
|
76
|
+
"styled-components": "^5.3.11",
|
|
77
|
+
"tailwindcss": "^3.0.2",
|
|
78
|
+
"terser-webpack-plugin": "^5.2.5",
|
|
79
|
+
"typescript": "^4.9.5",
|
|
80
|
+
"web-vitals": "^2.1.4",
|
|
81
|
+
"webpack": "^5.64.4",
|
|
82
|
+
"webpack-dev-server": "^4.6.0",
|
|
83
|
+
"webpack-manifest-plugin": "^4.0.2",
|
|
84
|
+
"workbox-webpack-plugin": "^6.4.1"
|
|
85
|
+
},
|
|
86
|
+
"scripts": {
|
|
87
|
+
"start": "node scripts/start.js",
|
|
88
|
+
"types": "tsc --emitDeclarationOnly && tscpaths -p ./tsconfig.json -s ./src -o ./build",
|
|
89
|
+
"build": "node scripts/build.js && npm run types",
|
|
90
|
+
"test": "node node scripts/test.js",
|
|
91
|
+
"storybook": "storybook dev -p 6006",
|
|
92
|
+
"build-storybook": "storybook build",
|
|
93
|
+
"deploy-storybook": "gh-pages -d storybook-static -r https://github.com/nexr/neb-ui.git"
|
|
94
|
+
},
|
|
95
|
+
"eslintConfig": {
|
|
96
|
+
"extends": [
|
|
97
|
+
"react-app",
|
|
98
|
+
"react-app/jest",
|
|
99
|
+
"plugin:storybook/recommended"
|
|
100
|
+
],
|
|
101
|
+
"rules": {
|
|
102
|
+
"react-hooks/exhaustive-deps": "off",
|
|
103
|
+
"jsx-a11y/anchor-is-valid": 0
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"browserslist": {
|
|
107
|
+
"production": [
|
|
108
|
+
">0.2%",
|
|
109
|
+
"not dead",
|
|
110
|
+
"not op_mini all"
|
|
111
|
+
],
|
|
112
|
+
"development": [
|
|
113
|
+
"last 1 chrome version",
|
|
114
|
+
"last 1 firefox version",
|
|
115
|
+
"last 1 safari version"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"devDependencies": {
|
|
119
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
120
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
121
|
+
"@storybook/addon-actions": "^8.4.7",
|
|
122
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
123
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
124
|
+
"@storybook/addon-knobs": "^8.0.1",
|
|
125
|
+
"@storybook/addon-links": "^8.4.7",
|
|
126
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
|
127
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
|
|
128
|
+
"@storybook/blocks": "^8.4.7",
|
|
129
|
+
"@storybook/preset-create-react-app": "^8.4.7",
|
|
130
|
+
"@storybook/react": "^8.4.7",
|
|
131
|
+
"@storybook/react-webpack5": "^8.4.7",
|
|
132
|
+
"@storybook/test": "^8.4.7",
|
|
133
|
+
"@types/jest": "^29.5.14",
|
|
134
|
+
"@types/lodash": "^4.17.0",
|
|
135
|
+
"@types/ramda": "^0.29.11",
|
|
136
|
+
"@types/react-slick": "^0.23.13",
|
|
137
|
+
"@types/slick-carousel": "^1.6.40",
|
|
138
|
+
"@types/styled-components": "^5.1.34",
|
|
139
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
140
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
141
|
+
"prop-types": "^15.8.1",
|
|
142
|
+
"sass": "^1.72.0",
|
|
143
|
+
"sass-loader": "^16.0.3",
|
|
144
|
+
"storybook": "^8.4.7",
|
|
145
|
+
"ts-loader": "^9.5.1",
|
|
146
|
+
"tscpaths": "^0.0.9",
|
|
147
|
+
"url-loader": "^4.1.1",
|
|
148
|
+
"webpack": "^5.94.0"
|
|
149
|
+
},
|
|
150
|
+
"resolutions": {
|
|
151
|
+
"types-ramda": "0.29.4",
|
|
152
|
+
"@formatjs/fast-memoize": "2.2.2"
|
|
153
|
+
},
|
|
154
|
+
"overrides": {
|
|
155
|
+
"types-ramda": "0.29.4",
|
|
156
|
+
"@formatjs/fast-memoize": "2.2.2"
|
|
157
|
+
},
|
|
158
|
+
"jest": {
|
|
159
|
+
"roots": [
|
|
160
|
+
"<rootDir>/src"
|
|
161
|
+
],
|
|
162
|
+
"collectCoverageFrom": [
|
|
163
|
+
"src/**/*.{js,jsx,ts,tsx}",
|
|
164
|
+
"!src/**/*.d.ts"
|
|
165
|
+
],
|
|
166
|
+
"setupFiles": [
|
|
167
|
+
"react-app-polyfill/jsdom"
|
|
168
|
+
],
|
|
169
|
+
"setupFilesAfterEnv": [
|
|
170
|
+
"<rootDir>/src/setupTests.ts"
|
|
171
|
+
],
|
|
172
|
+
"testMatch": [
|
|
173
|
+
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
174
|
+
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
175
|
+
],
|
|
176
|
+
"testEnvironment": "jsdom",
|
|
177
|
+
"transform": {
|
|
178
|
+
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
|
|
179
|
+
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
180
|
+
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
181
|
+
},
|
|
182
|
+
"transformIgnorePatterns": [
|
|
183
|
+
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
|
|
184
|
+
"^.+\\.module\\.(css|sass|scss)$"
|
|
185
|
+
],
|
|
186
|
+
"modulePaths": [],
|
|
187
|
+
"moduleNameMapper": {
|
|
188
|
+
"^react-native$": "react-native-web",
|
|
189
|
+
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
|
|
190
|
+
"^src/(.*)$": "<rootDir>/src/$1"
|
|
191
|
+
},
|
|
192
|
+
"moduleFileExtensions": [
|
|
193
|
+
"web.js",
|
|
194
|
+
"js",
|
|
195
|
+
"web.ts",
|
|
196
|
+
"ts",
|
|
197
|
+
"web.tsx",
|
|
198
|
+
"tsx",
|
|
199
|
+
"json",
|
|
200
|
+
"web.jsx",
|
|
201
|
+
"jsx",
|
|
202
|
+
"node"
|
|
203
|
+
],
|
|
204
|
+
"watchPlugins": [
|
|
205
|
+
"jest-watch-typeahead/filename",
|
|
206
|
+
"jest-watch-typeahead/testname"
|
|
207
|
+
],
|
|
208
|
+
"resetMocks": true
|
|
209
|
+
},
|
|
210
|
+
"babel": {
|
|
211
|
+
"presets": [
|
|
212
|
+
"react-app"
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
}
|
package/public/index.html
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<meta name="theme-color" content="#000000" />
|
|
8
|
-
<meta
|
|
9
|
-
name="description"
|
|
10
|
-
content="Web site created using create-react-app"
|
|
11
|
-
/>
|
|
12
|
-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
-
<!--
|
|
14
|
-
manifest.json provides metadata used when your web app is installed on a
|
|
15
|
-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
16
|
-
-->
|
|
17
|
-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
18
|
-
<!--
|
|
19
|
-
Notice the use of %PUBLIC_URL% in the tags above.
|
|
20
|
-
It will be replaced with the URL of the `public` folder during the build.
|
|
21
|
-
Only files inside the `public` folder can be referenced from the HTML.
|
|
22
|
-
|
|
23
|
-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
24
|
-
work correctly both with client-side routing and a non-root public URL.
|
|
25
|
-
Learn how to configure a non-root public URL by running `npm run build`.
|
|
26
|
-
-->
|
|
27
|
-
<title>React App</title>
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
31
|
-
<div id="root"></div>
|
|
32
|
-
<!--
|
|
33
|
-
This HTML file is a template.
|
|
34
|
-
If you open it directly in the browser, you will see an empty page.
|
|
35
|
-
|
|
36
|
-
You can add webfonts, meta tags, or analytics to this file.
|
|
37
|
-
The build step will place the bundled scripts into the <body> tag.
|
|
38
|
-
|
|
39
|
-
To begin the development, run `npm start` or `yarn start`.
|
|
40
|
-
To create a production bundle, use `npm run build` or `yarn build`.
|
|
41
|
-
-->
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<meta name="theme-color" content="#000000" />
|
|
8
|
+
<meta
|
|
9
|
+
name="description"
|
|
10
|
+
content="Web site created using create-react-app"
|
|
11
|
+
/>
|
|
12
|
+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
+
<!--
|
|
14
|
+
manifest.json provides metadata used when your web app is installed on a
|
|
15
|
+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
16
|
+
-->
|
|
17
|
+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
18
|
+
<!--
|
|
19
|
+
Notice the use of %PUBLIC_URL% in the tags above.
|
|
20
|
+
It will be replaced with the URL of the `public` folder during the build.
|
|
21
|
+
Only files inside the `public` folder can be referenced from the HTML.
|
|
22
|
+
|
|
23
|
+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
24
|
+
work correctly both with client-side routing and a non-root public URL.
|
|
25
|
+
Learn how to configure a non-root public URL by running `npm run build`.
|
|
26
|
+
-->
|
|
27
|
+
<title>React App</title>
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
31
|
+
<div id="root"></div>
|
|
32
|
+
<!--
|
|
33
|
+
This HTML file is a template.
|
|
34
|
+
If you open it directly in the browser, you will see an empty page.
|
|
35
|
+
|
|
36
|
+
You can add webfonts, meta tags, or analytics to this file.
|
|
37
|
+
The build step will place the bundled scripts into the <body> tag.
|
|
38
|
+
|
|
39
|
+
To begin the development, run `npm start` or `yarn start`.
|
|
40
|
+
To create a production bundle, use `npm run build` or `yarn build`.
|
|
41
|
+
-->
|
|
42
|
+
</body>
|
|
43
|
+
</html>
|
package/public/manifest.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "React App",
|
|
3
|
-
"name": "Create React App Sample",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "logo192.png",
|
|
12
|
-
"type": "image/png",
|
|
13
|
-
"sizes": "192x192"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "logo512.png",
|
|
17
|
-
"type": "image/png",
|
|
18
|
-
"sizes": "512x512"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#000000",
|
|
24
|
-
"background_color": "#ffffff"
|
|
25
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"short_name": "React App",
|
|
3
|
+
"name": "Create React App Sample",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "favicon.ico",
|
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
+
"type": "image/x-icon"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "logo192.png",
|
|
12
|
+
"type": "image/png",
|
|
13
|
+
"sizes": "192x192"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "logo512.png",
|
|
17
|
+
"type": "image/png",
|
|
18
|
+
"sizes": "512x512"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"start_url": ".",
|
|
22
|
+
"display": "standalone",
|
|
23
|
+
"theme_color": "#000000",
|
|
24
|
+
"background_color": "#ffffff"
|
|
25
|
+
}
|
package/public/robots.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# https://www.robotstxt.org/robotstxt.html
|
|
2
|
-
User-agent: *
|
|
3
|
-
Disallow:
|
|
1
|
+
# https://www.robotstxt.org/robotstxt.html
|
|
2
|
+
User-agent: *
|
|
3
|
+
Disallow:
|