Skip to content

Commit 90528e0

Browse files
committed
2.0.0
1 parent 8393ce8 commit 90528e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+8003
-946
lines changed

config/createWebpackConfig.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const createWebpackConfig = (
5050

5151
const babelConfig = isProd
5252
? {
53+
compact: false,
5354
babelrc: false,
5455
presets: [
5556
[
@@ -77,6 +78,7 @@ export const createWebpackConfig = (
7778
],
7879
}
7980
: {
81+
compact: false,
8082
babelrc: false,
8183
plugins: [
8284
'react-hot-loader/babel',
@@ -134,7 +136,7 @@ export const createWebpackConfig = (
134136
]
135137
: [{
136138
test: [/.css$|.scss$/],
137-
use:["style-loader","css-loader","sass-loader"]
139+
use:["style-loader","css-loader","sass-loader"]
138140
}]),
139141
{
140142
test: /\.tsx?$/,

config/env/EnvSettings.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export abstract class EnvSettings {
1717

1818
abstract ENTRYSCAPE_OPENDATA_EN_URL:string;
1919

20+
abstract API_DETECTION_PATH: string;
21+
2022
abstract CONTENTBACKEND_SITEURL: string;
2123

2224
abstract CONTENTBACKEND_GRAPHAPI: string;

config/env/Settings.Dev.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ export class Settings_Dev extends EnvSettings {
2020

2121
ENTRYSCAPE_SITEMAP_JSON_URL="https://admin.dataportal.se/sitemap.json";
2222

23+
API_DETECTION_PATH = "https://admin.dataportal.se/detectedapis.json";
24+
//API_DETECTION_PATH = "/apiDetections.json";
25+
2326
CONTENTBACKEND_SITEURL="*dataportal*";
2427

2528

config/env/Settings.Prod.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export class Settings_Prod extends EnvSettings {
1818

1919
ENTRYSCAPE_SITEMAP_JSON_URL="https://admin.dataportal.se/sitemap.json";
2020

21+
API_DETECTION_PATH = "https://admin.dataportal.se/detectedapis.json";
22+
2123
CONTENTBACKEND_SITEURL="*www.dataportal.*";
2224

2325
CONTENTBACKEND_GRAPHAPI="https://digg-prod-graphproxy.azurewebsites.net";

config/env/Settings.Sandbox.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export class Settings_Sandbox extends EnvSettings {
1818

1919
ENTRYSCAPE_SITEMAP_JSON_URL="https://sandbox.admin.dataportal.se/sitemap.json";
2020

21+
API_DETECTION_PATH = "https://sandbox.admin.dataportal.se/detectedapis.json";
22+
2123
CONTENTBACKEND_SITEURL="*.test.dataportal.*";
2224

2325
CONTENTBACKEND_GRAPHAPI="https://digg-prod-graphproxy.azurewebsites.net";

config/env/Settings.Test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export class Settings_Test extends EnvSettings {
1818

1919
ENTRYSCAPE_SITEMAP_JSON_URL="https://admin.dataportal.se/sitemap.json";
2020

21+
API_DETECTION_PATH = "https://admin.dataportal.se/detectedapis.json";
22+
2123
CONTENTBACKEND_SITEURL="*test.dataportal.se";
2224

2325
CONTENTBACKEND_GRAPHAPI="https://digg-test-graphproxy.azurewebsites.net";

config/webpack.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default [
3333
plugins: [
3434
...plugins,
3535
new CopyWebpackPlugin([
36+
{ from: path.join(__dirname, '../node_modules/swagger-ui-react/swagger-ui.css'), flatten: true },
3637
//REMOVED until MetaSolutions fixes the package, >4.7.5 & <4.7.14 does not work with IE 11
3738
//{ from: path.join(__dirname, '../node_modules/@entryscape/entrystore-js/dist/entrystore.js'), flatten: true },
3839
//{ from: path.join(__dirname, '../node_modules/@entryscape/rdfjson/dist/rdfjson.js'), flatten: true },

package.json

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@types/express": "^4.17.1",
3030
"@types/fork-ts-checker-webpack-plugin": "^0.4.5",
3131
"@types/jest": "24.9.0",
32-
"@types/node-fetch": "^2.5.12",
3332
"@types/ora": "^3.2.0",
3433
"@types/pretty-bytes": "^5.2.0",
3534
"@types/prop-types": "^15.7.3",
@@ -49,7 +48,7 @@
4948
"cross-env": "^6.0.3",
5049
"express": "^4.17.1",
5150
"file-loader": "^4.2.0",
52-
"fork-ts-checker-webpack-plugin": "^1.5.1",
51+
"fork-ts-checker-webpack-plugin": "3.1.1",
5352
"html-webpack-plugin": "^4.0.0-beta.8",
5453
"jest": "^24.9.0",
5554
"koa-connect": "^2.0.1",
@@ -83,12 +82,14 @@
8382
"@digg/react-ideal-image": "file:local_modules/digg_react-ideal-image-1.0.2.tgz",
8483
"@emotion/core": "^10.0.17",
8584
"@emotion/styled": "^10.0.17",
86-
"@types/i18next": "^13.0.0",
8785
"@types/lodash": "^4.14.168",
8886
"@types/mini-css-extract-plugin": "^0.8.0",
87+
"@types/node-fetch": "2.5.12",
8988
"@types/react-dom": "^17.0.9",
9089
"@types/react-i18next": "^8.1.0",
9190
"@types/react-truncate": "^2.3.3",
91+
"@types/swagger-ui-react": "3.35.3",
92+
"ansi-regex": "5.0.1",
9293
"apollo-boost": "^0.4.7",
9394
"apollo-cache-inmemory": "^1.6.5",
9495
"apollo-link-batch-http": "^1.2.14",
@@ -115,7 +116,8 @@
115116
"graphql": "^15.0.0",
116117
"helmet": "^3.21.2",
117118
"hosted-git-info": "3.0.8",
118-
"i18next-browser-languagedetector": "^4.0.1",
119+
"i18next": "^21.3.3",
120+
"i18next-browser-languagedetector": "6.1.2",
119121
"i18next-http-middleware": "^3.1.0",
120122
"ini": "^1.3.6",
121123
"isomorphic-unfetch": "^3.0.0",
@@ -126,10 +128,13 @@
126128
"mini-css-extract-plugin": "^0.8.0",
127129
"minimist": "1.2.3",
128130
"moment": "^2.25.3",
129-
"node-fetch": "2.6.1",
131+
"node-fetch": "2.6.5",
132+
"node-notifier": "8.0.1",
130133
"node-sass": "^4.13.0",
134+
"nth-check": "2.0.1",
131135
"performant-array-to-tree": "^1.7.1",
132136
"postcss-modules-extract-imports": "3.0.0",
137+
"prismjs": "1.25.0",
133138
"qss": "^2.0.3",
134139
"react": "^16.10.2",
135140
"react-debounce-input": "^3.2.3",
@@ -138,21 +143,25 @@
138143
"react-helmet": "5.2.1",
139144
"react-helmet-async": "^1.0.3",
140145
"react-hooks": "^1.0.1",
146+
"react-i18next": "^11.12.0",
141147
"react-router-dom": "^5.1.2",
142148
"react-show-more-text": "^1.4.6",
143149
"react-truncate": "^2.4.0",
144150
"react-vis": "^1.11.7",
145151
"sass-loader": "^8.0.0",
146152
"serialize-javascript": "3.1.0",
153+
"set-value": "4.0.1",
147154
"simple-csp": "^0.1.1",
148155
"sitemap": "^6.2.0",
149156
"ssri": "8.0.1",
150157
"style-loader": "^1.0.0",
158+
"swagger-ui-react": "3.52.5",
151159
"tar": "4.4.18",
152160
"terser-webpack-plugin": "^2.3.2",
153161
"trim-newlines": "3.0.1",
154162
"ua-parser-js": "0.7.24",
155163
"unfetch": "^4.1.0",
164+
"url-parse": "1.5.2",
156165
"url-polyfill": "^1.1.7",
157166
"url-search-params-polyfill": "^7.0.0",
158167
"y18n": "^5.0.5",
@@ -162,10 +171,16 @@
162171
"**/**/mem": "^4.0.0",
163172
"**/**/yargs-parser": "^13.1.2",
164173
"**/**/serialize-javascript": "^3.1.0",
165-
"**/**/node-fetch": "^2.6.1",
174+
"**/**/node-fetch": "^2.6.5",
166175
"**/**/trim-newlines": "^3.0.1",
167176
"**/**/tar": "^4.4.18",
168177
"**/**/glob-parent": "^5.1.2",
178+
"**/**/set-value": "^4.0.1",
179+
"**/**/nth-check": "^2.0.1",
180+
"**/**/ansi-regex": "^5.0.1",
181+
"**/**/node-notifier": "^8.0.1",
182+
"**/**/prismjs": "^1.25.0",
183+
"**/**/url-parse": "^1.5.2",
169184
"@digg/react-ideal-image": "file:local_modules/digg_react-ideal-image-1.0.2.tgz"
170185
},
171186
"jest": {

0 commit comments

Comments
 (0)