@cu-mkp/editioncrafter 1.0.2 → 1.0.4-beta.1
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/README.md +7 -7
- package/dist/editioncrafter.js +65802 -0
- package/dist/editioncrafter.umd.cjs +553 -0
- package/dist/es/src/action/DiplomaticActions.js +9 -11
- package/dist/es/src/action/DocumentActions.js +164 -154
- package/dist/es/src/action/GlossaryActions.js +9 -11
- package/dist/es/src/action/initialState/diplomaticInitialState.js +2 -2
- package/dist/es/src/action/initialState/documentInitialState.js +9 -12
- package/dist/es/src/action/initialState/glossaryInitialState.js +3 -3
- package/dist/es/src/action/rootReducer.js +31 -29
- package/dist/es/src/component/AlphabetLinks.js +44 -66
- package/dist/es/src/component/CustomizedTooltops.js +101 -110
- package/dist/es/src/component/DiploMatic.js +64 -91
- package/dist/es/src/component/DocumentView.js +442 -366
- package/dist/es/src/component/EditorComment.js +51 -75
- package/dist/es/src/component/ErrorBoundary.js +37 -61
- package/dist/es/src/component/FigureImage.js +56 -67
- package/dist/es/src/component/GlossaryView.js +157 -149
- package/dist/es/src/component/HelpPopper.js +96 -78
- package/dist/es/src/component/ImageGridView.js +184 -249
- package/dist/es/src/component/ImageView.js +155 -165
- package/dist/es/src/component/ImageZoomControl.js +19 -38
- package/dist/es/src/component/JumpToFolio.js +56 -60
- package/dist/es/src/component/Navigation.js +374 -328
- package/dist/es/src/component/Pagination.js +73 -70
- package/dist/es/src/component/Parser.js +11 -32
- package/dist/es/src/component/RingSpinner.js +31 -32
- package/dist/es/src/component/RouteListener.js +30 -21
- package/dist/es/src/component/SeaDragonComponent.js +33 -56
- package/dist/es/src/component/SinglePaneView.js +15 -33
- package/dist/es/src/component/SplitPaneView.js +151 -170
- package/dist/es/src/component/TranscriptionView.js +190 -179
- package/dist/es/src/component/Watermark.js +21 -30
- package/dist/es/src/component/XMLView.js +60 -82
- package/dist/es/src/hooks/useIsWidthUp.js +9 -7
- package/dist/es/src/icons/ByIcon.js +16 -16
- package/dist/es/src/icons/CcIcon.js +16 -16
- package/dist/es/src/icons/NcIcon.js +16 -16
- package/dist/es/src/icons/SaIcon.js +16 -16
- package/dist/es/src/icons/SideMenuIconLeft.js +30 -38
- package/dist/es/src/icons/SideMenuIconRight.js +32 -38
- package/dist/es/src/index.js +21 -20
- package/dist/es/src/lib/copyObject.js +3 -2
- package/dist/es/src/lib/registerServiceWorker.js +77 -54
- package/dist/es/src/model/DocumentHelper.js +7 -6
- package/dist/es/src/model/Folio.js +64 -86
- package/dist/es/src/model/ReduxStore.js +32 -78
- package/dist/es/src/model/folioLayout.js +275 -280
- package/dist/es/src/saga/RouteListenerSaga.js +89 -193
- package/dist/es/src/saga/rootSaga.js +9 -16
- package/dist/es/src/scss/_imageView.scss +1 -1
- package/dist/es/src/scss/_navigation.scss +1 -1
- package/dist/es/src/scss/editioncrafter.scss +1 -1
- package/dist/style.css +1 -0
- package/package.json +36 -51
- package/dist/editioncrafter.min.js +0 -2
- package/dist/editioncrafter.min.js.LICENSE.txt +0 -144
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
|
|
2
3
|
function ByIcon(props) {
|
|
3
|
-
return
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
d: "M37.443-3.5c8.988 0 16.57 3.085 22.742 9.257C66.393 11.967 69.5 19.548 69.5 28.5c0 8.991-3.049 16.476-9.145 22.456-6.476 6.363-14.113 9.544-22.912 9.544-8.649 0-16.153-3.144-22.514-9.43C8.644 44.784 5.5 37.262 5.5 28.5c0-8.761 3.144-16.342 9.429-22.742C21.101-.415 28.604-3.5 37.443-3.5zm.114 5.772c-7.276 0-13.428 2.553-18.457 7.657-5.22 5.334-7.829 11.525-7.829 18.572 0 7.086 2.59 13.22 7.77 18.398 5.181 5.182 11.352 7.771 18.514 7.771 7.123 0 13.334-2.607 18.629-7.828 5.029-4.838 7.543-10.952 7.543-18.343 0-7.276-2.553-13.465-7.656-18.571-5.104-5.104-11.276-7.656-18.514-7.656zm8.572 18.285v13.085h-3.656v15.542h-9.944V33.643h-3.656V20.557c0-.572.2-1.057.599-1.457.401-.399.887-.6 1.457-.6h13.144c.533 0 1.01.2 1.428.6.417.4.628.886.628 1.457zm-13.087-8.228c0-3.008 1.485-4.514 4.458-4.514s4.457 1.504 4.457 4.514c0 2.971-1.486 4.457-4.457 4.457s-4.458-1.486-4.458-4.457z"
|
|
16
|
-
}));
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width={64}
|
|
8
|
+
height={64}
|
|
9
|
+
viewBox="5.5 -3.5 64 64"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<circle fill="transparent" cx={37.637} cy={28.806} r={28.276} />
|
|
13
|
+
<path fill="white" d="M37.443-3.5c8.988 0 16.57 3.085 22.742 9.257C66.393 11.967 69.5 19.548 69.5 28.5c0 8.991-3.049 16.476-9.145 22.456-6.476 6.363-14.113 9.544-22.912 9.544-8.649 0-16.153-3.144-22.514-9.43C8.644 44.784 5.5 37.262 5.5 28.5c0-8.761 3.144-16.342 9.429-22.742C21.101-.415 28.604-3.5 37.443-3.5zm.114 5.772c-7.276 0-13.428 2.553-18.457 7.657-5.22 5.334-7.829 11.525-7.829 18.572 0 7.086 2.59 13.22 7.77 18.398 5.181 5.182 11.352 7.771 18.514 7.771 7.123 0 13.334-2.607 18.629-7.828 5.029-4.838 7.543-10.952 7.543-18.343 0-7.276-2.553-13.465-7.656-18.571-5.104-5.104-11.276-7.656-18.514-7.656zm8.572 18.285v13.085h-3.656v15.542h-9.944V33.643h-3.656V20.557c0-.572.2-1.057.599-1.457.401-.399.887-.6 1.457-.6h13.144c.533 0 1.01.2 1.428.6.417.4.628.886.628 1.457zm-13.087-8.228c0-3.008 1.485-4.514 4.458-4.514s4.457 1.504 4.457 4.514c0 2.971-1.486 4.457-4.457 4.457s-4.458-1.486-4.458-4.457z" />
|
|
14
|
+
</svg>
|
|
15
|
+
)
|
|
17
16
|
}
|
|
18
|
-
|
|
17
|
+
|
|
18
|
+
export default ByIcon
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
|
|
2
3
|
function CcIcon(props) {
|
|
3
|
-
return
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
d: "M37.441-3.5c8.951 0 16.572 3.125 22.857 9.372 3.008 3.009 5.295 6.448 6.857 10.314 1.561 3.867 2.344 7.971 2.344 12.314 0 4.381-.773 8.486-2.314 12.313-1.543 3.828-3.82 7.21-6.828 10.143-3.123 3.085-6.666 5.448-10.629 7.086-3.961 1.638-8.057 2.457-12.285 2.457s-8.276-.808-12.143-2.429c-3.866-1.618-7.333-3.961-10.4-7.027-3.067-3.066-5.4-6.524-7-10.372S5.5 32.767 5.5 28.5c0-4.229.809-8.295 2.428-12.2 1.619-3.905 3.972-7.4 7.057-10.486C21.08-.394 28.565-3.5 37.441-3.5zm.116 5.772c-7.314 0-13.467 2.553-18.458 7.657-2.515 2.553-4.448 5.419-5.8 8.6a25.204 25.204 0 00-2.029 9.972c0 3.429.675 6.734 2.029 9.913 1.353 3.183 3.285 6.021 5.8 8.516 2.514 2.496 5.351 4.399 8.515 5.715a25.652 25.652 0 009.943 1.971c3.428 0 6.75-.665 9.973-1.999 3.219-1.335 6.121-3.257 8.713-5.771 4.99-4.876 7.484-10.99 7.484-18.344 0-3.543-.648-6.895-1.943-10.057-1.293-3.162-3.18-5.98-5.654-8.458-5.146-5.143-11.335-7.715-18.573-7.715zm-.401 20.915l-4.287 2.229c-.458-.951-1.019-1.619-1.685-2-.667-.38-1.286-.571-1.858-.571-2.856 0-4.286 1.885-4.286 5.657 0 1.714.362 3.084 1.085 4.113.724 1.029 1.791 1.544 3.201 1.544 1.867 0 3.181-.915 3.944-2.743l3.942 2c-.838 1.563-2 2.791-3.486 3.686-1.484.896-3.123 1.343-4.914 1.343-2.857 0-5.163-.875-6.915-2.629-1.752-1.752-2.628-4.19-2.628-7.313 0-3.048.886-5.466 2.657-7.257 1.771-1.79 4.009-2.686 6.715-2.686 3.963-.002 6.8 1.541 8.515 4.627zm18.457 0l-4.229 2.229c-.457-.951-1.02-1.619-1.686-2-.668-.38-1.307-.571-1.914-.571-2.857 0-4.287 1.885-4.287 5.657 0 1.714.363 3.084 1.086 4.113.723 1.029 1.789 1.544 3.201 1.544 1.865 0 3.18-.915 3.941-2.743l4 2c-.875 1.563-2.057 2.791-3.541 3.686a9.233 9.233 0 01-4.857 1.343c-2.896 0-5.209-.875-6.941-2.629-1.736-1.752-2.602-4.19-2.602-7.313 0-3.048.885-5.466 2.658-7.257 1.77-1.79 4.008-2.686 6.713-2.686 3.962-.002 6.783 1.541 8.458 4.627z"
|
|
16
|
-
}));
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width={64}
|
|
8
|
+
height={64}
|
|
9
|
+
viewBox="5.5 -3.5 64 64"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<circle fill="transparent" cx={37.785} cy={28.501} r={28.836} />
|
|
13
|
+
<path fill="white" d="M37.441-3.5c8.951 0 16.572 3.125 22.857 9.372 3.008 3.009 5.295 6.448 6.857 10.314 1.561 3.867 2.344 7.971 2.344 12.314 0 4.381-.773 8.486-2.314 12.313-1.543 3.828-3.82 7.21-6.828 10.143-3.123 3.085-6.666 5.448-10.629 7.086-3.961 1.638-8.057 2.457-12.285 2.457s-8.276-.808-12.143-2.429c-3.866-1.618-7.333-3.961-10.4-7.027-3.067-3.066-5.4-6.524-7-10.372S5.5 32.767 5.5 28.5c0-4.229.809-8.295 2.428-12.2 1.619-3.905 3.972-7.4 7.057-10.486C21.08-.394 28.565-3.5 37.441-3.5zm.116 5.772c-7.314 0-13.467 2.553-18.458 7.657-2.515 2.553-4.448 5.419-5.8 8.6a25.204 25.204 0 00-2.029 9.972c0 3.429.675 6.734 2.029 9.913 1.353 3.183 3.285 6.021 5.8 8.516 2.514 2.496 5.351 4.399 8.515 5.715a25.652 25.652 0 009.943 1.971c3.428 0 6.75-.665 9.973-1.999 3.219-1.335 6.121-3.257 8.713-5.771 4.99-4.876 7.484-10.99 7.484-18.344 0-3.543-.648-6.895-1.943-10.057-1.293-3.162-3.18-5.98-5.654-8.458-5.146-5.143-11.335-7.715-18.573-7.715zm-.401 20.915l-4.287 2.229c-.458-.951-1.019-1.619-1.685-2-.667-.38-1.286-.571-1.858-.571-2.856 0-4.286 1.885-4.286 5.657 0 1.714.362 3.084 1.085 4.113.724 1.029 1.791 1.544 3.201 1.544 1.867 0 3.181-.915 3.944-2.743l3.942 2c-.838 1.563-2 2.791-3.486 3.686-1.484.896-3.123 1.343-4.914 1.343-2.857 0-5.163-.875-6.915-2.629-1.752-1.752-2.628-4.19-2.628-7.313 0-3.048.886-5.466 2.657-7.257 1.771-1.79 4.009-2.686 6.715-2.686 3.963-.002 6.8 1.541 8.515 4.627zm18.457 0l-4.229 2.229c-.457-.951-1.02-1.619-1.686-2-.668-.38-1.307-.571-1.914-.571-2.857 0-4.287 1.885-4.287 5.657 0 1.714.363 3.084 1.086 4.113.723 1.029 1.789 1.544 3.201 1.544 1.865 0 3.18-.915 3.941-2.743l4 2c-.875 1.563-2.057 2.791-3.541 3.686a9.233 9.233 0 01-4.857 1.343c-2.896 0-5.209-.875-6.941-2.629-1.736-1.752-2.602-4.19-2.602-7.313 0-3.048.885-5.466 2.658-7.257 1.77-1.79 4.008-2.686 6.713-2.686 3.962-.002 6.783 1.541 8.458 4.627z" />
|
|
14
|
+
</svg>
|
|
15
|
+
)
|
|
17
16
|
}
|
|
18
|
-
|
|
17
|
+
|
|
18
|
+
export default CcIcon
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
|
|
2
3
|
function NaIcon(props) {
|
|
3
|
-
return
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
d: "M37.442-3.5c8.99 0 16.571 3.085 22.743 9.256C66.393 11.928 69.5 19.509 69.5 28.5c0 8.992-3.048 16.476-9.145 22.458C53.88 57.32 46.241 60.5 37.442 60.5c-8.686 0-16.19-3.162-22.513-9.485C8.644 44.728 5.5 37.225 5.5 28.5c0-8.762 3.144-16.343 9.429-22.743C21.1-.414 28.604-3.5 37.442-3.5zM12.7 19.872c-.952 2.628-1.429 5.505-1.429 8.629 0 7.086 2.59 13.22 7.77 18.4 5.219 5.144 11.391 7.715 18.514 7.715 7.201 0 13.409-2.608 18.63-7.829 1.867-1.79 3.332-3.657 4.398-5.602l-12.056-5.371c-.421 2.02-1.439 3.667-3.057 4.942-1.622 1.276-3.535 2.011-5.744 2.2v4.915h-3.714v-4.915c-3.543-.036-6.782-1.312-9.714-3.827l4.4-4.457c2.094 1.942 4.476 2.913 7.143 2.913 1.104 0 2.048-.246 2.83-.743.78-.494 1.172-1.312 1.172-2.457 0-.801-.287-1.448-.858-1.943L37.9 31.127l-3.771-1.715-5.086-2.229L12.7 19.872zM37.557 2.214c-7.276 0-13.428 2.571-18.457 7.714a30.623 30.623 0 00-3.543 4.287L27.786 19.7c.533-1.676 1.542-3.019 3.029-4.028 1.484-1.009 3.218-1.571 5.2-1.686V9.071h3.715v4.915c2.934.153 5.6 1.143 8 2.971l-4.172 4.286c-1.793-1.257-3.619-1.885-5.486-1.885-.991 0-1.876.191-2.656.571-.781.381-1.172 1.029-1.172 1.943 0 .267.095.533.285.8l4.057 1.83 2.8 1.257 5.144 2.285 16.397 7.314a29.51 29.51 0 00.801-6.857c0-7.353-2.552-13.543-7.656-18.573-5.067-5.143-11.241-7.714-18.515-7.714z"
|
|
16
|
-
}));
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width={64}
|
|
8
|
+
height={64}
|
|
9
|
+
viewBox="5.5 -3.5 64 64"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<circle fill="transparent" cx={37.47} cy={28.736} r={29.471} />
|
|
13
|
+
<path fill="white" d="M37.442-3.5c8.99 0 16.571 3.085 22.743 9.256C66.393 11.928 69.5 19.509 69.5 28.5c0 8.992-3.048 16.476-9.145 22.458C53.88 57.32 46.241 60.5 37.442 60.5c-8.686 0-16.19-3.162-22.513-9.485C8.644 44.728 5.5 37.225 5.5 28.5c0-8.762 3.144-16.343 9.429-22.743C21.1-.414 28.604-3.5 37.442-3.5zM12.7 19.872c-.952 2.628-1.429 5.505-1.429 8.629 0 7.086 2.59 13.22 7.77 18.4 5.219 5.144 11.391 7.715 18.514 7.715 7.201 0 13.409-2.608 18.63-7.829 1.867-1.79 3.332-3.657 4.398-5.602l-12.056-5.371c-.421 2.02-1.439 3.667-3.057 4.942-1.622 1.276-3.535 2.011-5.744 2.2v4.915h-3.714v-4.915c-3.543-.036-6.782-1.312-9.714-3.827l4.4-4.457c2.094 1.942 4.476 2.913 7.143 2.913 1.104 0 2.048-.246 2.83-.743.78-.494 1.172-1.312 1.172-2.457 0-.801-.287-1.448-.858-1.943L37.9 31.127l-3.771-1.715-5.086-2.229L12.7 19.872zM37.557 2.214c-7.276 0-13.428 2.571-18.457 7.714a30.623 30.623 0 00-3.543 4.287L27.786 19.7c.533-1.676 1.542-3.019 3.029-4.028 1.484-1.009 3.218-1.571 5.2-1.686V9.071h3.715v4.915c2.934.153 5.6 1.143 8 2.971l-4.172 4.286c-1.793-1.257-3.619-1.885-5.486-1.885-.991 0-1.876.191-2.656.571-.781.381-1.172 1.029-1.172 1.943 0 .267.095.533.285.8l4.057 1.83 2.8 1.257 5.144 2.285 16.397 7.314a29.51 29.51 0 00.801-6.857c0-7.353-2.552-13.543-7.656-18.573-5.067-5.143-11.241-7.714-18.515-7.714z" />
|
|
14
|
+
</svg>
|
|
15
|
+
)
|
|
17
16
|
}
|
|
18
|
-
|
|
17
|
+
|
|
18
|
+
export default NaIcon
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
|
|
2
3
|
function SaIcon(props) {
|
|
3
|
-
return
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
d: "M37.443-3.5c8.951 0 16.531 3.105 22.742 9.315C66.393 11.987 69.5 19.548 69.5 28.5c0 8.954-3.049 16.457-9.145 22.514-6.437 6.324-14.076 9.486-22.912 9.486-8.649 0-16.153-3.143-22.514-9.429C8.644 44.786 5.5 37.264 5.5 28.501c0-8.723 3.144-16.285 9.429-22.685C21.138-.395 28.643-3.5 37.443-3.5zm.114 5.772c-7.276 0-13.428 2.572-18.457 7.715-5.22 5.296-7.829 11.467-7.829 18.513 0 7.125 2.59 13.257 7.77 18.4 5.181 5.182 11.352 7.771 18.514 7.771 7.123 0 13.334-2.609 18.629-7.828 5.029-4.876 7.543-10.99 7.543-18.343 0-7.313-2.553-13.485-7.656-18.513-5.067-5.145-11.239-7.715-18.514-7.715zM23.271 23.985c.609-3.924 2.189-6.962 4.742-9.114 2.552-2.152 5.656-3.228 9.314-3.228 5.027 0 9.029 1.62 12 4.856 2.971 3.238 4.457 7.391 4.457 12.457 0 4.915-1.543 9-4.627 12.256-3.088 3.256-7.086 4.886-12.002 4.886-3.619 0-6.743-1.085-9.371-3.257-2.629-2.172-4.209-5.257-4.743-9.257H31.1c.19 3.886 2.533 5.829 7.029 5.829 2.246 0 4.057-.972 5.428-2.914 1.373-1.942 2.059-4.534 2.059-7.771 0-3.391-.629-5.971-1.885-7.743-1.258-1.771-3.066-2.657-5.43-2.657-4.268 0-6.667 1.885-7.2 5.656h2.343l-6.342 6.343-6.343-6.343 2.512.001z"
|
|
16
|
-
}));
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width={64}
|
|
8
|
+
height={64}
|
|
9
|
+
viewBox="5.5 -3.5 64 64"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<circle fill="transparent" cx={36.944} cy={28.631} r={29.105} />
|
|
13
|
+
<path fill="white" d="M37.443-3.5c8.951 0 16.531 3.105 22.742 9.315C66.393 11.987 69.5 19.548 69.5 28.5c0 8.954-3.049 16.457-9.145 22.514-6.437 6.324-14.076 9.486-22.912 9.486-8.649 0-16.153-3.143-22.514-9.429C8.644 44.786 5.5 37.264 5.5 28.501c0-8.723 3.144-16.285 9.429-22.685C21.138-.395 28.643-3.5 37.443-3.5zm.114 5.772c-7.276 0-13.428 2.572-18.457 7.715-5.22 5.296-7.829 11.467-7.829 18.513 0 7.125 2.59 13.257 7.77 18.4 5.181 5.182 11.352 7.771 18.514 7.771 7.123 0 13.334-2.609 18.629-7.828 5.029-4.876 7.543-10.99 7.543-18.343 0-7.313-2.553-13.485-7.656-18.513-5.067-5.145-11.239-7.715-18.514-7.715zM23.271 23.985c.609-3.924 2.189-6.962 4.742-9.114 2.552-2.152 5.656-3.228 9.314-3.228 5.027 0 9.029 1.62 12 4.856 2.971 3.238 4.457 7.391 4.457 12.457 0 4.915-1.543 9-4.627 12.256-3.088 3.256-7.086 4.886-12.002 4.886-3.619 0-6.743-1.085-9.371-3.257-2.629-2.172-4.209-5.257-4.743-9.257H31.1c.19 3.886 2.533 5.829 7.029 5.829 2.246 0 4.057-.972 5.428-2.914 1.373-1.942 2.059-4.534 2.059-7.771 0-3.391-.629-5.971-1.885-7.743-1.258-1.771-3.066-2.657-5.43-2.657-4.268 0-6.667 1.885-7.2 5.656h2.343l-6.342 6.343-6.343-6.343 2.512.001z" />
|
|
14
|
+
</svg>
|
|
15
|
+
)
|
|
17
16
|
}
|
|
18
|
-
|
|
17
|
+
|
|
18
|
+
export default SaIcon
|
|
@@ -1,40 +1,32 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
|
|
2
3
|
function SideMenuIconLeft(props) {
|
|
3
|
-
return
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
30
|
-
"data-name": "Line 137",
|
|
31
|
-
d: "M9 156h90"
|
|
32
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
33
|
-
"data-name": "Line 138",
|
|
34
|
-
d: "M164 112l-32-32"
|
|
35
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
36
|
-
"data-name": "Line 139",
|
|
37
|
-
d: "M164 50l-32 30"
|
|
38
|
-
})));
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width={176.728}
|
|
8
|
+
height={165}
|
|
9
|
+
viewBox="0 0 176.728 165"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<g
|
|
13
|
+
data-name="Component 14 \u2013 1"
|
|
14
|
+
fill="none"
|
|
15
|
+
stroke={props.color ? props.color : '#000'}
|
|
16
|
+
strokeLinecap="round"
|
|
17
|
+
strokeWidth={18}
|
|
18
|
+
>
|
|
19
|
+
<path data-name="Line 129" d="M25 42h43.366" />
|
|
20
|
+
<path data-name="Line 133" d="M9 9h90" />
|
|
21
|
+
<path data-name="Line 134" d="M25 122h43.366" />
|
|
22
|
+
<path data-name="Line 135" d="M25 82h43.366" />
|
|
23
|
+
<path data-name="Line 136" d="M99 156V9" />
|
|
24
|
+
<path data-name="Line 137" d="M9 156h90" />
|
|
25
|
+
<path data-name="Line 138" d="M164 112l-32-32" />
|
|
26
|
+
<path data-name="Line 139" d="M164 50l-32 30" />
|
|
27
|
+
</g>
|
|
28
|
+
</svg>
|
|
29
|
+
)
|
|
39
30
|
}
|
|
40
|
-
|
|
31
|
+
|
|
32
|
+
export default SideMenuIconLeft
|
|
@@ -1,40 +1,34 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
|
|
2
3
|
function SideMenuIconRight(props) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
d: "M9 156h90"
|
|
32
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
33
|
-
"data-name": "Line 138",
|
|
34
|
-
d: "M132 50l32 32"
|
|
35
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
36
|
-
"data-name": "Line 139",
|
|
37
|
-
d: "M132 112l32-30"
|
|
38
|
-
})));
|
|
4
|
+
const { color } = props
|
|
5
|
+
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
+
width={42}
|
|
10
|
+
height={42}
|
|
11
|
+
viewBox="0 0 176.728 165"
|
|
12
|
+
{...props}
|
|
13
|
+
>
|
|
14
|
+
<g
|
|
15
|
+
data-name="Component 13 \u2013 1"
|
|
16
|
+
fill="none"
|
|
17
|
+
stroke={color || '#000'}
|
|
18
|
+
strokeLinecap="round"
|
|
19
|
+
strokeWidth={18}
|
|
20
|
+
>
|
|
21
|
+
<path data-name="Line 129" d="M25 42h43.366" />
|
|
22
|
+
<path data-name="Line 133" d="M9 9h90" />
|
|
23
|
+
<path data-name="Line 134" d="M25 122h43.366" />
|
|
24
|
+
<path data-name="Line 135" d="M25 82h43.366" />
|
|
25
|
+
<path data-name="Line 136" d="M99 156V9" />
|
|
26
|
+
<path data-name="Line 137" d="M9 156h90" />
|
|
27
|
+
<path data-name="Line 138" d="M132 50l32 32" />
|
|
28
|
+
<path data-name="Line 139" d="M132 112l32-30" />
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
31
|
+
)
|
|
39
32
|
}
|
|
40
|
-
|
|
33
|
+
|
|
34
|
+
export default SideMenuIconRight
|
package/dist/es/src/index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import DiploMatic from './component/DiploMatic'
|
|
4
|
-
import { createReduxStore } from './model/ReduxStore'
|
|
5
|
-
import './scss/editioncrafter.scss'
|
|
1
|
+
import { createTheme, ThemeProvider } from '@material-ui/core/styles'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
import DiploMatic from './component/DiploMatic'
|
|
4
|
+
import { createReduxStore } from './model/ReduxStore'
|
|
5
|
+
import './scss/editioncrafter.scss'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Default instantiation
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
function EditionCrafter(props) {
|
|
11
|
+
const theme = createTheme({
|
|
12
12
|
palette: {
|
|
13
13
|
primary: {
|
|
14
|
-
main: '#792421'
|
|
14
|
+
main: '#792421',
|
|
15
15
|
},
|
|
16
16
|
secondary: {
|
|
17
|
-
main: '#EBE3DD'
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
17
|
+
main: '#EBE3DD',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<ThemeProvider theme={theme}>
|
|
24
|
+
<DiploMatic config={props} store={createReduxStore(props)} />
|
|
25
|
+
</ThemeProvider>
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default EditionCrafter
|
|
@@ -8,81 +8,104 @@
|
|
|
8
8
|
// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.
|
|
9
9
|
// This link also includes instructions on opting out of this behavior.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const isLocalhost = Boolean(
|
|
12
|
+
window.location.hostname === 'localhost'
|
|
13
|
+
// [::1] is the IPv6 localhost address.
|
|
14
|
+
|| window.location.hostname === '[::1]'
|
|
15
|
+
// 127.0.0.1/8 is considered localhost for IPv4.
|
|
16
|
+
|| window.location.hostname.match(
|
|
17
|
+
/^127(?:\.(?:25[0-5]|2[0-4]\d|[01]?\d{1,2})){3}$/,
|
|
18
|
+
),
|
|
19
|
+
)
|
|
20
|
+
|
|
16
21
|
export default function register() {
|
|
17
22
|
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
|
|
18
23
|
// The URL constructor is available in all browsers that support SW.
|
|
19
|
-
|
|
24
|
+
const publicUrl = new URL(process.env.PUBLIC_URL, window.location)
|
|
20
25
|
if (publicUrl.origin !== window.location.origin) {
|
|
21
26
|
// Our service worker won't work if PUBLIC_URL is on a different origin
|
|
22
27
|
// from what our page is served on. This might happen if a CDN is used to
|
|
23
28
|
// serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374
|
|
24
|
-
return
|
|
29
|
+
return
|
|
25
30
|
}
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
|
|
32
|
+
window.addEventListener('load', () => {
|
|
33
|
+
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`
|
|
34
|
+
|
|
28
35
|
if (isLocalhost) {
|
|
29
36
|
// This is running on localhost. Lets check if a service worker still exists or not.
|
|
30
|
-
checkValidServiceWorker(swUrl)
|
|
31
|
-
}
|
|
37
|
+
checkValidServiceWorker(swUrl)
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
32
40
|
// Is not local host. Just register service worker
|
|
33
|
-
registerValidSW(swUrl)
|
|
41
|
+
registerValidSW(swUrl)
|
|
34
42
|
}
|
|
35
|
-
})
|
|
43
|
+
})
|
|
36
44
|
}
|
|
37
45
|
}
|
|
46
|
+
|
|
38
47
|
function registerValidSW(swUrl) {
|
|
39
|
-
navigator.serviceWorker
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
navigator.serviceWorker
|
|
49
|
+
.register(swUrl)
|
|
50
|
+
.then((registration) => {
|
|
51
|
+
registration.onupdatefound = () => {
|
|
52
|
+
const installingWorker = registration.installing
|
|
53
|
+
installingWorker.onstatechange = () => {
|
|
54
|
+
if (installingWorker.state === 'installed') {
|
|
55
|
+
if (navigator.serviceWorker.controller) {
|
|
56
|
+
// At this point, the old content will have been purged and
|
|
57
|
+
// the fresh content will have been added to the cache.
|
|
58
|
+
// It's the perfect time to display a "New content is
|
|
59
|
+
// available; please refresh." message in your web app.
|
|
60
|
+
console.log('New content is available; please refresh.')
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
// At this point, everything has been precached.
|
|
64
|
+
// It's the perfect time to display a
|
|
65
|
+
// "Content is cached for offline use." message.
|
|
66
|
+
console.log('Content is cached for offline use.')
|
|
67
|
+
}
|
|
55
68
|
}
|
|
56
69
|
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
.catch((error) => {
|
|
73
|
+
console.error('Error during service worker registration:', error)
|
|
74
|
+
})
|
|
62
75
|
}
|
|
76
|
+
|
|
63
77
|
function checkValidServiceWorker(swUrl) {
|
|
64
78
|
// Check if the service worker can be found. If it can't reload the page.
|
|
65
|
-
fetch(swUrl)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
fetch(swUrl)
|
|
80
|
+
.then((response) => {
|
|
81
|
+
// Ensure service worker exists, and that we really are getting a JS file.
|
|
82
|
+
if (
|
|
83
|
+
response.status === 404
|
|
84
|
+
|| !response.headers.get('content-type').includes('javascript')
|
|
85
|
+
) {
|
|
86
|
+
// No service worker found. Probably a different app. Reload the page.
|
|
87
|
+
navigator.serviceWorker.ready.then((registration) => {
|
|
88
|
+
registration.unregister().then(() => {
|
|
89
|
+
window.location.reload()
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
// Service worker found. Proceed as normal.
|
|
95
|
+
registerValidSW(swUrl)
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
.catch(() => {
|
|
99
|
+
console.log(
|
|
100
|
+
'No internet connection found. App is running in offline mode.',
|
|
101
|
+
)
|
|
102
|
+
})
|
|
81
103
|
}
|
|
104
|
+
|
|
82
105
|
export function unregister() {
|
|
83
106
|
if ('serviceWorker' in navigator) {
|
|
84
|
-
navigator.serviceWorker.ready.then(
|
|
85
|
-
registration.unregister()
|
|
86
|
-
})
|
|
107
|
+
navigator.serviceWorker.ready.then((registration) => {
|
|
108
|
+
registration.unregister()
|
|
109
|
+
})
|
|
87
110
|
}
|
|
88
|
-
}
|
|
111
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
const DocumentHelper = {}
|
|
2
|
+
|
|
2
3
|
DocumentHelper.transcriptionTypeLabels = {
|
|
3
|
-
f: 'Facsimile',
|
|
4
|
-
// keep
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default DocumentHelper
|
|
4
|
+
f: 'Facsimile', // keep
|
|
5
|
+
glossary: 'Glossary', // keep
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default DocumentHelper
|