diff --git a/src/common/components/App.js b/src/common/components/App.js
index d6f6394e..bd4fb7df 100644
--- a/src/common/components/App.js
+++ b/src/common/components/App.js
@@ -23,7 +23,7 @@ function App({ initialized }) {
-
+ {/* */}
);
}
diff --git a/src/common/components/layouts/footer/Footer.js b/src/common/components/layouts/footer/Footer.js
index b32f76df..d918974f 100644
--- a/src/common/components/layouts/footer/Footer.js
+++ b/src/common/components/layouts/footer/Footer.js
@@ -52,8 +52,8 @@ function buildServiceInfo(service) {
function buildAppsInfo(service) {
switch (service.available) {
case true:
- let info = service.build.apps.version;
- if (service.build.apps.lastUpdated) {
+ let info = service?.build?.apps?.version;
+ if (service?.build?.apps?.lastUpdated) {
let buildTime = new Date(service.build.apps.lastUpdated);
info += `, built on ${buildTime.toLocaleString(BUILD_TIME_FORMAT.locale, BUILD_TIME_FORMAT.options)}`;
}
diff --git a/src/common/components/layouts/pages/inspect/pdfDocument/PdfDocument.js b/src/common/components/layouts/pages/inspect/pdfDocument/PdfDocument.js
index 308c7ccf..543b876b 100644
--- a/src/common/components/layouts/pages/inspect/pdfDocument/PdfDocument.js
+++ b/src/common/components/layouts/pages/inspect/pdfDocument/PdfDocument.js
@@ -197,6 +197,8 @@ function PdfDocument(props) {
props.setPdfName(props.file.name || props.fileName);
props.setNumPages(document.numPages);
props.initTree(document.parsedTree);
+ console.log('parsed', document.parsedTree);
+ console.log('structure', document._pdfInfo.structureTree);
setStructureTree(document._pdfInfo.structureTree);
const newMapOfErrors = createMapOfErrors(props.ruleSummaries, document._pdfInfo.structureTree);
props.onDocumentReady(newMapOfErrors);
diff --git a/src/common/services/fileService.js b/src/common/services/fileService.js
index 5aa3f873..497df37f 100644
--- a/src/common/services/fileService.js
+++ b/src/common/services/fileService.js
@@ -3,12 +3,14 @@ import { get, upload } from './api';
import { JOB_OLD_FILE } from '../store/constants';
import AppPages from '../components/AppPages';
-const { REACT_APP_API_ROOT, PUBLIC_URL } = process.env;
+const { PUBLIC_URL } = process.env;
const STATIC_PAGES = ['', AppPages.UPLOAD, AppPages.ABOUT, AppPages.PRIVACY_POLICY, AppPages.NOT_FOUND].map(
pageURL => `${PUBLIC_URL}${pageURL}`
);
+const REACT_APP_API_ROOT = '/api';
+
export const getInfo = () => {
const url = `${REACT_APP_API_ROOT}/status/file-storage/info`;
return get(url);
diff --git a/src/common/services/jobService.js b/src/common/services/jobService.js
index 2283a29a..d8fc141f 100644
--- a/src/common/services/jobService.js
+++ b/src/common/services/jobService.js
@@ -1,5 +1,5 @@
import { get, post, put } from './api';
-const { REACT_APP_API_ROOT } = process.env;
+const REACT_APP_API_ROOT = '/api';
export const getInfo = () => {
return get(`${REACT_APP_API_ROOT}/status/job-service/info`);
diff --git a/src/common/services/profiles.js b/src/common/services/profiles.js
index 581cbc63..54318f7a 100644
--- a/src/common/services/profiles.js
+++ b/src/common/services/profiles.js
@@ -1,7 +1,5 @@
import { get } from './api';
-const { REACT_APP_API_ROOT } = process.env;
-
export const getList = () => {
- return get(`${REACT_APP_API_ROOT}/profiles`);
+ return get('/api/profiles');
};
diff --git a/src/common/services/workerService.js b/src/common/services/workerService.js
index 387c2837..baf6885f 100644
--- a/src/common/services/workerService.js
+++ b/src/common/services/workerService.js
@@ -1,6 +1,6 @@
import { get } from './api';
-const { REACT_APP_API_ROOT } = process.env;
+const REACT_APP_API_ROOT = '/api';
export const getInfo = () => {
const url = `${REACT_APP_API_ROOT}/status/worker/info`;
diff --git a/yarn.lock b/yarn.lock
index 3addaf05..e28d83cf 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -8496,15 +8496,7 @@ path-type@^4.0.0:
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
-pdfjs-dist@2.16.105:
- version "2.16.105"
- resolved "https://registry.yarnpkg.com/pdfjs-dist/-/pdfjs-dist-2.16.105.tgz#937b9c4a918f03f3979c88209d84c1ce90122c2a"
- integrity sha512-J4dn41spsAwUxCpEoVf6GVoz908IAA3mYiLmNxg8J9kfRXc2jxpbUepcP0ocp0alVNLFthTAM8DZ1RaHh8sU0A==
- dependencies:
- dommatrix "^1.0.3"
- web-streams-polyfill "^3.2.1"
-
-"pdfjs-dist@github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18":
+pdfjs-dist@2.16.105, "pdfjs-dist@github:veraPDF/pdfjs-dist#v2.16.105-taggedPdf-0.1.18":
version "2.16.105"
resolved "https://codeload.github.com/veraPDF/pdfjs-dist/tar.gz/7e5be3ffc8d2c521550eeae07e828a3d4d652901"
dependencies:
@@ -10587,7 +10579,16 @@ string-natural-compare@^3.0.1:
resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4"
integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==
-"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
+"string-width-cjs@npm:string-width@^4.2.0":
+ version "4.2.3"
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
+ dependencies:
+ emoji-regex "^8.0.0"
+ is-fullwidth-code-point "^3.0.0"
+ strip-ansi "^6.0.1"
+
+"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -10670,7 +10671,14 @@ stringify-object@^3.3.0:
is-obj "^1.0.1"
is-regexp "^1.0.0"
-"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
+"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
+ dependencies:
+ ansi-regex "^5.0.1"
+
+strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -11894,7 +11902,16 @@ workbox-window@6.6.1:
"@types/trusted-types" "^2.0.2"
workbox-core "6.6.1"
-"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
+"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
+ integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
+ dependencies:
+ ansi-styles "^4.0.0"
+ string-width "^4.1.0"
+ strip-ansi "^6.0.0"
+
+wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==