Skip to content

Commit fed76af

Browse files
authored
* dependency updates and subsequent changes, vendor modules * react 17 * d3 v3 update, handle on event parameter changes * ts: allow positions with data to display, position location display * pdfjs draft implementation * update package.json * lint clean up, pdfjs style updates * integrate pdf doc viewer for mobile * fix remote assets map import * svg imports revert loaders, update svg defs for build compatibility * tidy time series position detail display * time series: fix selected position spacing * date picker orientation adherence * updates to support next gen aop viewer * pull in aop-viewer-next updates * update AOP viewer query params * full width viz height derivation, aop viewer fill container * rxjs 7 update * rxjs 7 lib, test updates * rxjs 7 migrate operator imports * fix EpicService types * revert redux-observable ofType to apply args * update default AOP viewer min width * add release page link to release filter component * time series: allow viz when at least one valid site/position, prevent invalidating variables for the lifetime of the viewer * release filter button style link as default * show release link for latest and provisional in release filter * fix release filter max width handling * improved no data selection in download, ui updates, time series ignore tables * tombstoned DOI integration, remove data cite API use * allow doi status not existing for release * add bundle existence helper function * bump deps, regen lib * 2.0.0 * SiteMap: add enhanced highlight ability for focus location polygons
1 parent 74f4cd1 commit fed76af

File tree

493 files changed

+28687
-54748
lines changed

Some content is hidden

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

493 files changed

+28687
-54748
lines changed

.env.development

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ REACT_APP_NEON_ENABLE_GLOBAL_SIGNIN_STATE="false"
3434
# Third party APIs and options
3535
#-------------------------------------------------------------------------------
3636

37-
REACT_APP_NEON_VISUS_PRODUCTS_BASE_URL="https://neon.visus.org/neonapi/products/"
38-
REACT_APP_NEON_VISUS_IFRAME_BASE_URL="https://neon.visus.org/visus-frame.html"
39-
REACT_APP_NEON_DEFAULT_DATA_CITE_API_HOST="https://api.datacite.org"
37+
REACT_APP_NEON_VISUS_PRODUCTS_BASE_URL="https://ns1008242.ip-135-148-54.us/products.php"
38+
REACT_APP_NEON_VISUS_IFRAME_BASE_URL="https://ns1008242.ip-135-148-54.us/visus-frame-ol.html"
4039

4140
#-------------------------------------------------------------------------------
4241
# Host overrides

.env.production

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ REACT_APP_NEON_ENABLE_GLOBAL_SIGNIN_STATE="false"
3030
# Third party APIs and options
3131
#-------------------------------------------------------------------------------
3232

33-
REACT_APP_NEON_VISUS_PRODUCTS_BASE_URL="https://neon.visus.org/neonapi/products/"
34-
REACT_APP_NEON_VISUS_IFRAME_BASE_URL="https://neon.visus.org/visus-frame.html"
35-
REACT_APP_NEON_DEFAULT_DATA_CITE_API_HOST="https://api.datacite.org"
33+
REACT_APP_NEON_VISUS_PRODUCTS_BASE_URL="https://ns1008242.ip-135-148-54.us/products.php"
34+
REACT_APP_NEON_VISUS_IFRAME_BASE_URL="https://ns1008242.ip-135-148-54.us/visus-frame-ol.html"

.eslintrc.json

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,18 @@
1616
"src/registerServiceWorker.js",
1717
"src/lib_components/components/**/*.d.ts",
1818
"src/lib_components/remoteAssets",
19+
"src/lib_components/vendor/",
20+
"src/*.d.ts",
1921
"src/**/__tests__",
2022
"src/**/__mocks__",
2123
"lib/",
2224
"config/",
23-
"jest.config.js"
25+
"jest.config.js",
26+
"server.js"
2427
],
2528
"rules": {
26-
"linebreak-style": 0,
27-
"react/jsx-props-no-spreading": 0,
28-
"eslint linebreak-style": [0, "error", "windows"],
29-
"import/no-extraneous-dependencies": ["error", {"packageDir": "./"}],
30-
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
31-
"no-use-before-define": "off",
32-
"@typescript-eslint/no-use-before-define": ["warn"],
33-
"no-shadow": "off",
3429
"@typescript-eslint/no-shadow": ["error"],
30+
"@typescript-eslint/no-use-before-define": ["warn"],
3531
"import/extensions": [
3632
"error",
3733
"ignorePackages",
@@ -41,7 +37,16 @@
4137
"ts": "never",
4238
"tsx": "never"
4339
}
44-
]
40+
],
41+
"import/no-extraneous-dependencies": ["error", {"packageDir": "./"}],
42+
"import/no-relative-packages": 0,
43+
"linebreak-style": ["error", "unix"],
44+
"react/function-component-definition": 0,
45+
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
46+
"react/jsx-props-no-spreading": 0,
47+
"no-restricted-exports": 0,
48+
"no-shadow": "off",
49+
"no-use-before-define": "off"
4550
},
4651
"overrides": [
4752
{
@@ -60,7 +65,7 @@
6065
],
6166
"import/resolver": {
6267
"node": {
63-
"extensions": [".js", ".jsx", ".ts", ".tsx"]
68+
"extensions": [".js", ".jsx", ".ts", ".tsx", ".d.ts"]
6469
}
6570
}
6671
}

babel.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"@babel/preset-typescript"
66
],
77
"plugins": [
8+
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
89
["@babel/plugin-proposal-class-properties", { "loose": true }],
910
["@babel/plugin-proposal-object-rest-spread", { "loose": true }],
1011
["@babel/plugin-proposal-private-methods", { "loose": true }],

jest.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
module.exports = {
22
verbose: true,
3+
testEnvironment: 'jsdom',
34
roots: [
45
'<rootDir>/src/',
56
],
67
moduleNameMapper: {
7-
'typeface-inter': '<rootDir>/src/__mocks__/fileMock.js',
8+
'@fontsource/inter': '<rootDir>/src/__mocks__/fileMock.js',
9+
'(pdfjs-dist/legacy/build/pdf.worker)': '<rootDir>/src/__mocks__/constructorMock.js',
810
'\\.(css|less)$': '<rootDir>/src/__mocks__/styleMock.js',
11+
'\\.(svg)$': '<rootDir>/src/__mocks__/svgMock.js',
912
},
1013
transform: {
1114
'\\.(js|jsx|ts|tsx)$': 'babel-jest',
1215
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/__mocks__/fileTransformer.js',
1316
},
17+
// The dateformat module is in ES6 format and needs to be transformed.
18+
// Set Jest transform to ignore all node modules that aren't dateformat.
19+
transformIgnorePatterns: [
20+
"node_modules/(?!dateformat|d3-[a-z]+)",
21+
],
1422
setupFiles: [
1523
'jest-canvas-mock',
1624
],

0 commit comments

Comments
 (0)