@urbanos/react-discovery-ui 2.1.43
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/LICENSE +201 -0
- package/README.md +118 -0
- package/lib/ReactDiscoveryUI.js +103 -0
- package/lib/ReactDiscoveryUI.scss +13 -0
- package/lib/assets/arrow.svg +6 -0
- package/lib/assets/blk-database.svg +48 -0
- package/lib/assets/chart.svg +1 -0
- package/lib/assets/down.png +0 -0
- package/lib/assets/down.svg +1 -0
- package/lib/assets/folder_icon.png +0 -0
- package/lib/assets/folder_icon.svg +1 -0
- package/lib/assets/ic_arrow.svg +15 -0
- package/lib/assets/loadingicon.svg +57 -0
- package/lib/assets/no_image.png +0 -0
- package/lib/assets/plus.png +0 -0
- package/lib/assets/plus.svg +1 -0
- package/lib/assets/user.svg +1 -0
- package/lib/auth/auth0-client-provider.js +37 -0
- package/lib/auth/auth0-client-provider.test.js +33 -0
- package/lib/auth/auth0-wrapper.js +155 -0
- package/lib/auth/auth0-wrapper.test.js +100 -0
- package/lib/components/auth0-login-zone/auth0-login-zone.js +147 -0
- package/lib/components/auth0-login-zone/auth0-login-zone.test.js +177 -0
- package/lib/components/auth0-login-zone/index.js +9 -0
- package/lib/components/code-editor/code-editor.css +173 -0
- package/lib/components/code-editor/code-editor.js +64 -0
- package/lib/components/code-editor/index.js +9 -0
- package/lib/components/collapsable-box/collapsable-box.js +81 -0
- package/lib/components/collapsable-box/collapsable-box.scss +39 -0
- package/lib/components/collapsable-box/collapsable-box.test.js +87 -0
- package/lib/components/collapsable-box/index.js +9 -0
- package/lib/components/data-card/data-card.js +63 -0
- package/lib/components/data-card/data-card.scss +93 -0
- package/lib/components/data-card/data-card.test.js +74 -0
- package/lib/components/data-card/index.js +9 -0
- package/lib/components/data-view/data-view.js +194 -0
- package/lib/components/data-view/data-view.scss +39 -0
- package/lib/components/data-view/data-view.test.js +155 -0
- package/lib/components/data-view/index.js +9 -0
- package/lib/components/dataset-api-doc/api-example.js +120 -0
- package/lib/components/dataset-api-doc/api-example.scss +84 -0
- package/lib/components/dataset-api-doc/api-example.test.js +88 -0
- package/lib/components/dataset-api-doc/dataset-api-doc.js +117 -0
- package/lib/components/dataset-api-doc/dataset-api-doc.scss +8 -0
- package/lib/components/dataset-api-doc/dataset-api-doc.test.js +42 -0
- package/lib/components/dataset-api-doc/index.js +9 -0
- package/lib/components/dataset-details/dataset-details.js +64 -0
- package/lib/components/dataset-details/dataset-details.scss +58 -0
- package/lib/components/dataset-details/dataset-details.test.js +38 -0
- package/lib/components/dataset-details/index.js +9 -0
- package/lib/components/dataset-dictionary/dataset-dictionary.js +127 -0
- package/lib/components/dataset-dictionary/dataset-dictionary.scss +42 -0
- package/lib/components/dataset-dictionary/dataset-dictionary.test.js +286 -0
- package/lib/components/dataset-dictionary/index.js +9 -0
- package/lib/components/dataset-list/dataset-list.js +22 -0
- package/lib/components/dataset-list/dataset-list.scss +9 -0
- package/lib/components/dataset-list/dataset-list.test.js +16 -0
- package/lib/components/dataset-list/index.js +9 -0
- package/lib/components/dataset-metadata/dataset-metadata.js +169 -0
- package/lib/components/dataset-metadata/dataset-metadata.scss +34 -0
- package/lib/components/dataset-metadata/dataset-metadata.test.js +24 -0
- package/lib/components/dataset-metadata/index.js +9 -0
- package/lib/components/dataset-preview/connector.js +26 -0
- package/lib/components/dataset-preview/dataset-preview.js +58 -0
- package/lib/components/dataset-preview/dataset-preview.scss +24 -0
- package/lib/components/dataset-preview/dataset-preview.test.js +34 -0
- package/lib/components/dataset-preview/index.js +9 -0
- package/lib/components/dataset-quality/dataset-quality.js +56 -0
- package/lib/components/dataset-quality/dataset-quality.scss +24 -0
- package/lib/components/dataset-quality/dataset-quality.test.js +34 -0
- package/lib/components/dataset-quality/index.js +9 -0
- package/lib/components/dataset-recommendations/connector.js +24 -0
- package/lib/components/dataset-recommendations/dataset-recommendations.js +47 -0
- package/lib/components/dataset-recommendations/dataset-recommendations.scss +17 -0
- package/lib/components/dataset-recommendations/dataset-recommendations.test.js +37 -0
- package/lib/components/dataset-recommendations/index.js +9 -0
- package/lib/components/detail-toggle-icon/detail-toggle-icon.js +41 -0
- package/lib/components/detail-toggle-icon/detail-toggle-icon.scss +13 -0
- package/lib/components/detail-toggle-icon/detail-toggle-icon.test.js +20 -0
- package/lib/components/detail-toggle-icon/index.js +9 -0
- package/lib/components/facet-list/facet-list.js +47 -0
- package/lib/components/facet-list/facet-list.scss +19 -0
- package/lib/components/facet-list/facet-list.test.js +94 -0
- package/lib/components/facet-list/index.js +9 -0
- package/lib/components/facet-sidebar/facet-sidebar.js +101 -0
- package/lib/components/facet-sidebar/facet-sidebar.scss +129 -0
- package/lib/components/facet-sidebar/facet-sidebar.test.js +93 -0
- package/lib/components/facet-sidebar/index.js +9 -0
- package/lib/components/generic-elements/alert-component/alert-component.js +51 -0
- package/lib/components/generic-elements/alert-component/alert-component.scss +26 -0
- package/lib/components/generic-elements/alert-component/alert-component.test.js +26 -0
- package/lib/components/generic-elements/alert-component/index.js +9 -0
- package/lib/components/generic-elements/arrow-button/arrow-button.js +30 -0
- package/lib/components/generic-elements/arrow-button/index.js +9 -0
- package/lib/components/generic-elements/auto-anchoring-popover/index.js +61 -0
- package/lib/components/generic-elements/back-button/back-button.js +14 -0
- package/lib/components/generic-elements/back-button/back-button.scss +14 -0
- package/lib/components/generic-elements/back-button/index.js +9 -0
- package/lib/components/generic-elements/call-to-action-button/call-to-action-button.js +118 -0
- package/lib/components/generic-elements/call-to-action-button/call-to-action-button.scss +19 -0
- package/lib/components/generic-elements/call-to-action-button/call-to-action-button.test.js +68 -0
- package/lib/components/generic-elements/call-to-action-button/index.js +9 -0
- package/lib/components/generic-elements/chart-icon/index.js +23 -0
- package/lib/components/generic-elements/checkbox/checkbox.js +50 -0
- package/lib/components/generic-elements/checkbox/checkbox.scss +44 -0
- package/lib/components/generic-elements/checkbox/checkbox.test.js +71 -0
- package/lib/components/generic-elements/checkbox/index.js +9 -0
- package/lib/components/generic-elements/error-component/error-component.js +21 -0
- package/lib/components/generic-elements/error-component/error-component.scss +16 -0
- package/lib/components/generic-elements/error-component/error-component.test.js +12 -0
- package/lib/components/generic-elements/error-component/index.js +9 -0
- package/lib/components/generic-elements/folder-icon/index.js +23 -0
- package/lib/components/generic-elements/generated-link/generated-link.js +25 -0
- package/lib/components/generic-elements/generated-link/index.js +13 -0
- package/lib/components/generic-elements/loading-element/index.js +9 -0
- package/lib/components/generic-elements/loading-element/loading-element.js +22 -0
- package/lib/components/generic-elements/loading-element/loading-element.scss +6 -0
- package/lib/components/generic-elements/loading-element/loading-element.test.js +11 -0
- package/lib/components/generic-elements/paginator/index.js +9 -0
- package/lib/components/generic-elements/paginator/paginator.js +84 -0
- package/lib/components/generic-elements/paginator/paginator.scss +38 -0
- package/lib/components/generic-elements/paginator/paginator.test.js +140 -0
- package/lib/components/generic-elements/plus-icon/index.js +21 -0
- package/lib/components/generic-elements/save-indicator/index.js +9 -0
- package/lib/components/generic-elements/save-indicator/save-indicator.js +39 -0
- package/lib/components/generic-elements/save-indicator/save-indicator.scss +31 -0
- package/lib/components/generic-elements/save-indicator/save-indicator.test.js +89 -0
- package/lib/components/generic-elements/search/index.js +9 -0
- package/lib/components/generic-elements/search/search.js +93 -0
- package/lib/components/generic-elements/search/search.scss +90 -0
- package/lib/components/generic-elements/search/search.test.js +41 -0
- package/lib/components/generic-elements/select/index.js +9 -0
- package/lib/components/generic-elements/select/select.js +44 -0
- package/lib/components/generic-elements/select/select.scss +22 -0
- package/lib/components/generic-elements/select/select.test.js +34 -0
- package/lib/components/generic-elements/share-link/index.js +9 -0
- package/lib/components/generic-elements/share-link/share-link.js +23 -0
- package/lib/components/generic-elements/share-link/share-link.scss +17 -0
- package/lib/components/generic-elements/share-link/share-link.test.js +28 -0
- package/lib/components/generic-elements/sql-icon/index.js +20 -0
- package/lib/components/generic-elements/tab-button/index.js +9 -0
- package/lib/components/generic-elements/tab-button/tab-button.js +25 -0
- package/lib/components/generic-elements/tab-button/tab-button.scss +27 -0
- package/lib/components/generic-elements/visualize-button/index.js +9 -0
- package/lib/components/generic-elements/visualize-button/visualize-button.js +37 -0
- package/lib/components/generic-elements/visualize-button/visualize-button.scss +14 -0
- package/lib/components/login-zone/connector.js +25 -0
- package/lib/components/login-zone/index.js +9 -0
- package/lib/components/login-zone/login-svgs-and-text.js +39 -0
- package/lib/components/login-zone/login-zone.js +21 -0
- package/lib/components/login-zone/login-zone.scss +115 -0
- package/lib/components/login-zone/login-zone.test.js +17 -0
- package/lib/components/login-zone/login.js +48 -0
- package/lib/components/login-zone/logout.js +39 -0
- package/lib/components/network-loading-element/connector.js +17 -0
- package/lib/components/network-loading-element/index.js +9 -0
- package/lib/components/network-loading-element/network-loading-element.js +23 -0
- package/lib/components/network-loading-element/network-loading-element.scss +21 -0
- package/lib/components/network-loading-element/network-loading-element.test.js +34 -0
- package/lib/components/organization/index.js +9 -0
- package/lib/components/organization/organization.js +27 -0
- package/lib/components/organization/organization.scss +32 -0
- package/lib/components/protected-route/protected-route.js +101 -0
- package/lib/components/protected-route/protected-route.scss +4 -0
- package/lib/components/protected-route/protected-route.test.js +63 -0
- package/lib/components/query-form/index.js +9 -0
- package/lib/components/query-form/query-form.js +262 -0
- package/lib/components/query-form/query-form.scss +167 -0
- package/lib/components/query-form/query-form.test.js +248 -0
- package/lib/components/recommendation-list/index.js +9 -0
- package/lib/components/recommendation-list/recommendation-list.js +72 -0
- package/lib/components/recommendation-list/recommendation-list.scss +61 -0
- package/lib/components/recommendation-list/recommendation-list.test.js +38 -0
- package/lib/components/remote-toggle/__snapshots__/remote-toggle.test.js.snap +3 -0
- package/lib/components/remote-toggle/index.js +13 -0
- package/lib/components/remote-toggle/remote-toggle.js +35 -0
- package/lib/components/remote-toggle/remote-toggle.scss +0 -0
- package/lib/components/remote-toggle/remote-toggle.test.js +10 -0
- package/lib/components/share/index.js +9 -0
- package/lib/components/share/share.js +109 -0
- package/lib/components/share/share.scss +66 -0
- package/lib/components/streaming-api-doc/index.js +9 -0
- package/lib/components/streaming-api-doc/streaming-api-doc.js +76 -0
- package/lib/components/streaming-api-doc/streaming-api-doc.scss +23 -0
- package/lib/components/streaming-api-doc/streaming-api-doc.test.js +24 -0
- package/lib/components/tooltip/index.js +9 -0
- package/lib/components/tooltip/tooltip.js +17 -0
- package/lib/components/tooltip/tooltip.scss +16 -0
- package/lib/components/tooltip/tooltip.test.js +19 -0
- package/lib/components/visualization-list-menu-item/index.js +9 -0
- package/lib/components/visualization-list-menu-item/visualization-list-menu-item.js +53 -0
- package/lib/components/visualization-list-menu-item/visualization-list-menu-item.scss +21 -0
- package/lib/components/visualization-list-menu-item/visualization-list-menu-item.test.js +42 -0
- package/lib/components/visualization-save-menu-item/index.js +9 -0
- package/lib/components/visualization-save-menu-item/visualization-save-menu-item.js +101 -0
- package/lib/components/visualization-save-menu-item/visualization-save-menu-item.scss +37 -0
- package/lib/components/visualization-save-menu-item/visualization-save-menu-item.test.js +185 -0
- package/lib/components/visualizations/geojson/connector.js +29 -0
- package/lib/components/visualizations/geojson/geojson-visualization.js +151 -0
- package/lib/components/visualizations/geojson/geojson-visualization.scss +24 -0
- package/lib/components/visualizations/geojson/geojson-visualization.test.js +238 -0
- package/lib/components/visualizations/geojson/index.js +9 -0
- package/lib/pages/apikey-view/apiKey-view.test.js +204 -0
- package/lib/pages/apikey-view/apikey-view.js +166 -0
- package/lib/pages/apikey-view/apikey-view.scss +340 -0
- package/lib/pages/apikey-view/connector.js +31 -0
- package/lib/pages/apikey-view/index.js +9 -0
- package/lib/pages/chart-view/chart-view.js +92 -0
- package/lib/pages/chart-view/chart-view.scss +35 -0
- package/lib/pages/chart-view/chart-view.test.js +206 -0
- package/lib/pages/chart-view/connector.js +30 -0
- package/lib/pages/chart-view/index.js +9 -0
- package/lib/pages/dataset-detail-view/connector.js +38 -0
- package/lib/pages/dataset-detail-view/dataset-detail-view-connector.test.js +42 -0
- package/lib/pages/dataset-detail-view/dataset-detail-view.js +99 -0
- package/lib/pages/dataset-detail-view/dataset-detail-view.scss +190 -0
- package/lib/pages/dataset-detail-view/dataset-detail-view.test.js +305 -0
- package/lib/pages/dataset-detail-view/index.js +9 -0
- package/lib/pages/dataset-list-view/connector.js +30 -0
- package/lib/pages/dataset-list-view/dataset-list-view.js +132 -0
- package/lib/pages/dataset-list-view/dataset-list-view.scss +242 -0
- package/lib/pages/dataset-list-view/dataset-list-view.test.js +162 -0
- package/lib/pages/dataset-list-view/index.js +9 -0
- package/lib/pages/dataset-view/connector.js +55 -0
- package/lib/pages/dataset-view/dataset-view-connector.test.js +78 -0
- package/lib/pages/dataset-view/dataset-view.js +175 -0
- package/lib/pages/dataset-view/dataset-view.scss +95 -0
- package/lib/pages/dataset-view/dataset-view.test.js +157 -0
- package/lib/pages/dataset-view/index.js +9 -0
- package/lib/pages/login-view/connector.js +25 -0
- package/lib/pages/login-view/index.js +9 -0
- package/lib/pages/login-view/login-view.js +83 -0
- package/lib/pages/login-view/login-view.scss +62 -0
- package/lib/pages/login-view/login-view.test.js +23 -0
- package/lib/pages/oauth-error-view/index.js +9 -0
- package/lib/pages/oauth-error-view/oauth-error-view.js +25 -0
- package/lib/pages/oauth-error-view/oauth-error-view.scss +13 -0
- package/lib/pages/oauth-error-view/oauth-error-view.test.js +13 -0
- package/lib/pages/oauth-view/connector.js +22 -0
- package/lib/pages/oauth-view/index.js +9 -0
- package/lib/pages/oauth-view/oauth-view.js +124 -0
- package/lib/pages/oauth-view/oauth-view.scss +7 -0
- package/lib/pages/oauth-view/oauth-view.test.js +195 -0
- package/lib/pages/query-view/connector.js +40 -0
- package/lib/pages/query-view/index.js +9 -0
- package/lib/pages/query-view/query-view.js +80 -0
- package/lib/pages/query-view/query-view.scss +39 -0
- package/lib/pages/query-view/query-view.test.js +104 -0
- package/lib/pages/user-profile-view/connector.js +39 -0
- package/lib/pages/user-profile-view/index.js +9 -0
- package/lib/pages/user-profile-view/user-profile-view.js +154 -0
- package/lib/pages/user-profile-view/user-profile-view.scss +81 -0
- package/lib/pages/user-profile-view/user-profile-view.test.js +129 -0
- package/lib/pages/visualization-view/connector.js +52 -0
- package/lib/pages/visualization-view/index.js +9 -0
- package/lib/pages/visualization-view/visualization-view-connector.test.js +62 -0
- package/lib/pages/visualization-view/visualization-view.js +128 -0
- package/lib/pages/visualization-view/visualization-view.scss +115 -0
- package/lib/pages/visualization-view/visualization-view.test.js +188 -0
- package/lib/routes.js +18 -0
- package/lib/search-params/search-params-manager.js +171 -0
- package/lib/search-params/search-params-manager.test.js +490 -0
- package/lib/store/actions.js +428 -0
- package/lib/store/dataset-selectors.js +47 -0
- package/lib/store/dataset-selectors.test.js +154 -0
- package/lib/store/query-selectors.js +53 -0
- package/lib/store/query-selectors.test.js +153 -0
- package/lib/store/reducers/index.js +20 -0
- package/lib/store/reducers/query-reducer.js +52 -0
- package/lib/store/reducers/query-reducer.test.js +89 -0
- package/lib/store/reducers/reducers.js +196 -0
- package/lib/store/reducers/reducers.test.js +309 -0
- package/lib/store/reducers/visualization-reducer.js +167 -0
- package/lib/store/reducers/visualization-reducer.test.js +426 -0
- package/lib/store/sagas/api-invoker.js +79 -0
- package/lib/store/sagas/api-invoker.test.js +139 -0
- package/lib/store/sagas/apiKey-saga.js +81 -0
- package/lib/store/sagas/apiKey-saga.test.js +57 -0
- package/lib/store/sagas/dataset-download-saga.js +43 -0
- package/lib/store/sagas/dataset-list-saga.js +49 -0
- package/lib/store/sagas/dataset-list-saga.test.js +72 -0
- package/lib/store/sagas/dataset-preview-saga.js +44 -0
- package/lib/store/sagas/dataset-query-saga.js +43 -0
- package/lib/store/sagas/dataset-recommendation-saga.js +40 -0
- package/lib/store/sagas/dataset-saga.js +50 -0
- package/lib/store/sagas/freestyle-query-saga.js +127 -0
- package/lib/store/sagas/freestyle-query-saga.test.js +145 -0
- package/lib/store/sagas/index.js +44 -0
- package/lib/store/sagas/login-saga.js +85 -0
- package/lib/store/sagas/login-saga.test.js +84 -0
- package/lib/store/sagas/logout-saga.js +96 -0
- package/lib/store/sagas/oauth-saga.js +78 -0
- package/lib/store/sagas/oauth-saga.test.js +51 -0
- package/lib/store/sagas/process-login-saga.js +62 -0
- package/lib/store/sagas/process-login-saga.test.js +83 -0
- package/lib/store/sagas/visualization-saga.js +371 -0
- package/lib/store/sagas/visualization-saga.test.js +388 -0
- package/lib/store/selectors.js +83 -0
- package/lib/store/visualization-selectors.js +85 -0
- package/lib/store/visualization-selectors.test.js +195 -0
- package/lib/styles/mixins.scss +117 -0
- package/lib/styles/variables.scss +41 -0
- package/lib/utils/file-type-utils.js +18 -0
- package/lib/utils/file-type-utils.test.js +29 -0
- package/lib/utils/geojson-utils.js +70 -0
- package/lib/utils/geojson-utils.test.js +129 -0
- package/lib/utils/http-clients.js +218 -0
- package/lib/utils/http-clients.test.js +88 -0
- package/lib/utils/index.js +34 -0
- package/lib/utils/modified-date-string-builder.js +29 -0
- package/lib/utils/modified-date-string-builder.test.js +93 -0
- package/lib/utils/query-string-builder.js +38 -0
- package/lib/utils/query-string-builder.test.js +33 -0
- package/lib/utils/recommendation-utils.js +12 -0
- package/lib/utils/recommendation-utils.test.js +9 -0
- package/package.json +172 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
[](https://www.npmjs.com/package/@smartcitiesdata/react-discovery-ui)
|
|
2
|
+
[](https://github.com/Datastillery/react_discovery_ui/actions/workflows/npm-build.yml)
|
|
3
|
+
|
|
4
|
+
# React Discovery UI
|
|
5
|
+
|
|
6
|
+
React (also known as React.js or ReactJS) is an open-source, front end, JavaScript library for building user interfaces or UI components.
|
|
7
|
+
|
|
8
|
+
[react_discovery_ui](https://www.npmjs.com/package/@smartcitiesdata/react-discovery-ui) is a UI component for consuming the [Discovery API](https://github.com/Datastillery/smartcitiesdata/tree/master/apps/discovery_api) of the SmartCitiesData platform. It is exported as a React Component, `<ReactDiscoveryUI>`, and can be imported into another site such as seen in [SmartColumbusOS/Discovery_UI](https://github.com/SmartColumbusOS/discovery_ui).
|
|
9
|
+
|
|
10
|
+
## What to Install
|
|
11
|
+
|
|
12
|
+
To run the commands below you will need to install node. For directions on installing both of these tools depending on your system see the [NodeJS website](https://nodejs.org/en/download/).
|
|
13
|
+
|
|
14
|
+
## How to Use
|
|
15
|
+
|
|
16
|
+
### Install Dependencies
|
|
17
|
+
|
|
18
|
+
Npm is a package manger that comes with node. This command creates a nodes_modules folder and installs your dependencies in there and also installs your devDependencies.
|
|
19
|
+
|
|
20
|
+
`npm install`
|
|
21
|
+
|
|
22
|
+
### Run All Tests
|
|
23
|
+
|
|
24
|
+
"test:all" is a script in the package.json file that when run with npm runs all unit and functional tests.
|
|
25
|
+
|
|
26
|
+
`npm run test:all`
|
|
27
|
+
|
|
28
|
+
### Run Unit Tests
|
|
29
|
+
|
|
30
|
+
"test" is a script in the package.json file that when run with npm run all the unit tests. It uses a JavaScript testing framework called [Jest](https://jestjs.io/)
|
|
31
|
+
|
|
32
|
+
`npm run test`
|
|
33
|
+
|
|
34
|
+
### Run Functional Tests
|
|
35
|
+
|
|
36
|
+
"cypress:run" is a script in the package.json file that when run with npm runs all the functional tests. It uses a JavaScript End to End Testing Framework called [Cypress](https://www.cypress.io/)
|
|
37
|
+
|
|
38
|
+
`npm run cypress:run`
|
|
39
|
+
|
|
40
|
+
### Run Unit Tests in Watch Mode
|
|
41
|
+
|
|
42
|
+
`npm run test-watch`
|
|
43
|
+
|
|
44
|
+
Unit tests will output warnings related to accessibility. Configurations
|
|
45
|
+
are found in `test-start-point.js`
|
|
46
|
+
|
|
47
|
+
### Lint the Code
|
|
48
|
+
|
|
49
|
+
`npm run lint`
|
|
50
|
+
|
|
51
|
+
### Configuration
|
|
52
|
+
|
|
53
|
+
Runtime configuration for running the test app locally is stored in `config/config.js`. The component expects configuration to be on the `window` object i.e: `window.DISC_UI_URL = 'https://www.example.com'`
|
|
54
|
+
|
|
55
|
+
- `DISC_API_URL`
|
|
56
|
+
This application is designed to be used with [discovery-api](https://github.com/smartcitiesdata/discovery_api) as the backend. Set this value to the URL of the local `discovery-api` endpoint. (Note: this can also be set to a known public discovery api endpoint, though certain features, such as user logins, are not guaranteed to work properly.)
|
|
57
|
+
|
|
58
|
+
- `GTM_ID`
|
|
59
|
+
Set this value to the Google Tag Manager ID to enable analytics.
|
|
60
|
+
|
|
61
|
+
- `DISC_UI_URL`
|
|
62
|
+
The domain that the site will be hosted on
|
|
63
|
+
|
|
64
|
+
- `DISC_STREAMS_URL`
|
|
65
|
+
This application is designed to be used with [discovery-streams](https://github.com/smartcitiesdata/discovery_streams) for providing live updates for streaming datasets. Set this value to the URL of the local `discovery-streams` endpoint. (Note: this can also be set to a known public discovery streams endpoint, though certain features, such as user logins, are not guaranteed to work properly.)
|
|
66
|
+
|
|
67
|
+
- `STREETS_TILE_LAYER_URL`
|
|
68
|
+
This is the url source of the mapbox tiles used in Leaflet. Example: `https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`
|
|
69
|
+
|
|
70
|
+
- `LOGO_URL`
|
|
71
|
+
The url of an image to be used as the site logo within the react components.
|
|
72
|
+
|
|
73
|
+
## Start the UI Locally
|
|
74
|
+
|
|
75
|
+
`npm run start`
|
|
76
|
+
|
|
77
|
+
This starts a simple React site with the main Discovery UI component as the sole content. You can view the UI in your web browser at `http://localhost:9001`
|
|
78
|
+
|
|
79
|
+
## Stop All Node processes
|
|
80
|
+
|
|
81
|
+
`npm run stop`
|
|
82
|
+
|
|
83
|
+
## Using the Package Locally
|
|
84
|
+
|
|
85
|
+
- Run `npm run build:library` in the component root directory.
|
|
86
|
+
- Run `npm link` in the component root directory.
|
|
87
|
+
- This registers your component as a valid npm package local to your machine.
|
|
88
|
+
- `npm unlink` will unregister it on your machine if needed.
|
|
89
|
+
- Run `npm pack` in the component root directory.
|
|
90
|
+
- This will pack whatever was in the `lib` build output. Generated by the
|
|
91
|
+
mentioned "npm run build:library`
|
|
92
|
+
- The result of the pack is a tar file
|
|
93
|
+
- Run `npm install $COMPONENT_ROOT/$COMPONENT_PACKAGE.tgz` in the consuming application.
|
|
94
|
+
- This will utilize that local tar file instead of any remotely published package.
|
|
95
|
+
|
|
96
|
+
Note that any changes to the component will require the package to be rebuilt
|
|
97
|
+
with `npm run build:library`
|
|
98
|
+
|
|
99
|
+
To consume this component in your react app place the <ReactDiscoveryUI> component into your app or other sub-components such as in the below example:
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
import ReactDiscoveryUI from '@smartcitiesdata/react-discovery-ui'
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
export default class App extends Component {
|
|
106
|
+
render() {
|
|
107
|
+
return (
|
|
108
|
+
<div>
|
|
109
|
+
<Header />
|
|
110
|
+
<ReactDiscoveryUI />
|
|
111
|
+
<Footer />
|
|
112
|
+
</div >
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
# Trigger a build
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
require("./ReactDiscoveryUI.scss");
|
|
8
|
+
require("normalize.css");
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _sagas = _interopRequireDefault(require("./store/sagas"));
|
|
11
|
+
var _reducers = require("./store/reducers");
|
|
12
|
+
var _redux = require("redux");
|
|
13
|
+
var _reduxSaga = _interopRequireDefault(require("redux-saga"));
|
|
14
|
+
var _reactRedux = require("react-redux");
|
|
15
|
+
var _reactRouterDom = require("react-router-dom");
|
|
16
|
+
var _datasetListView = _interopRequireDefault(require("./pages/dataset-list-view"));
|
|
17
|
+
var _datasetView = _interopRequireDefault(require("./pages/dataset-view"));
|
|
18
|
+
var _loginView = _interopRequireDefault(require("./pages/login-view"));
|
|
19
|
+
var _oauthView = _interopRequireDefault(require("./pages/oauth-view"));
|
|
20
|
+
var _visualizationView = _interopRequireDefault(require("./pages/visualization-view"));
|
|
21
|
+
var _userProfileView = _interopRequireDefault(require("./pages/user-profile-view"));
|
|
22
|
+
var _oauthErrorView = _interopRequireDefault(require("./pages/oauth-error-view"));
|
|
23
|
+
var _networkLoadingElement = _interopRequireDefault(require("./components/network-loading-element"));
|
|
24
|
+
var _routes = _interopRequireDefault(require("./routes"));
|
|
25
|
+
var _protectedRoute = _interopRequireDefault(require("./components/protected-route/protected-route"));
|
|
26
|
+
var _connector = _interopRequireDefault(require("./pages/apikey-view/connector"));
|
|
27
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
28
|
+
var regenerateApiKeyFF = window.REGENERATE_API_KEY_FF;
|
|
29
|
+
var Redux = {
|
|
30
|
+
start: function start() {
|
|
31
|
+
var reducerMap = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
32
|
+
var composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || _redux.compose;
|
|
33
|
+
var sagaMiddleware = (0, _reduxSaga.default)();
|
|
34
|
+
var mergedReducers = Object.assign({}, _reducers.reducers, reducerMap);
|
|
35
|
+
var store = (0, _redux.createStore)((0, _redux.combineReducers)(mergedReducers), composeEnhancers((0, _redux.applyMiddleware)(sagaMiddleware)));
|
|
36
|
+
sagaMiddleware.run(_sagas.default);
|
|
37
|
+
return store;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var noMatch = function noMatch() {
|
|
41
|
+
return /*#__PURE__*/_react.default.createElement(_reactRouterDom.Redirect, {
|
|
42
|
+
to: "/"
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var DiscoveryUI = function DiscoveryUI() {
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement("main-app-element", {
|
|
47
|
+
class: "main-app-element"
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_networkLoadingElement.default, null), /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_reactRouterDom.Switch, null, /*#__PURE__*/_react.default.createElement(_protectedRoute.default, {
|
|
49
|
+
exact: true,
|
|
50
|
+
path: _routes.default.root,
|
|
51
|
+
component: _datasetListView.default
|
|
52
|
+
}), /*#__PURE__*/_react.default.createElement(_protectedRoute.default, {
|
|
53
|
+
exact: true,
|
|
54
|
+
path: _routes.default.datasetView,
|
|
55
|
+
component: _datasetView.default
|
|
56
|
+
}), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Redirect, {
|
|
57
|
+
exact: true,
|
|
58
|
+
path: _routes.default.datasetVisualizationView,
|
|
59
|
+
to: {
|
|
60
|
+
pathname: _routes.default.datasetView,
|
|
61
|
+
search: '?selectedIndex=1'
|
|
62
|
+
}
|
|
63
|
+
}), /*#__PURE__*/_react.default.createElement(_protectedRoute.default, {
|
|
64
|
+
exact: true,
|
|
65
|
+
path: _routes.default.healthCheck,
|
|
66
|
+
component: function component() {
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement("div", null, "Everything is fine");
|
|
68
|
+
}
|
|
69
|
+
}), /*#__PURE__*/_react.default.createElement(_protectedRoute.default, {
|
|
70
|
+
exact: true,
|
|
71
|
+
path: _routes.default.login,
|
|
72
|
+
component: _loginView.default
|
|
73
|
+
}), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
|
|
74
|
+
exact: true,
|
|
75
|
+
path: _routes.default.oauth,
|
|
76
|
+
component: _oauthView.default
|
|
77
|
+
}), /*#__PURE__*/_react.default.createElement(_protectedRoute.default, {
|
|
78
|
+
exact: true,
|
|
79
|
+
path: _routes.default.oauthError,
|
|
80
|
+
component: _oauthErrorView.default
|
|
81
|
+
}), /*#__PURE__*/_react.default.createElement(_protectedRoute.default, {
|
|
82
|
+
exact: true,
|
|
83
|
+
path: _routes.default.visualizationView,
|
|
84
|
+
component: _visualizationView.default
|
|
85
|
+
}), /*#__PURE__*/_react.default.createElement(_protectedRoute.default, {
|
|
86
|
+
exact: true,
|
|
87
|
+
path: _routes.default.userProfile,
|
|
88
|
+
component: _userProfileView.default
|
|
89
|
+
}), regenerateApiKeyFF === 'true' && /*#__PURE__*/_react.default.createElement(_protectedRoute.default, {
|
|
90
|
+
exact: true,
|
|
91
|
+
path: _routes.default.apiKey,
|
|
92
|
+
component: _connector.default
|
|
93
|
+
}), /*#__PURE__*/_react.default.createElement(_reactRouterDom.Route, {
|
|
94
|
+
component: noMatch
|
|
95
|
+
}))));
|
|
96
|
+
};
|
|
97
|
+
var ReactDiscoveryUI = function ReactDiscoveryUI() {
|
|
98
|
+
var store = Redux.start();
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement(_reactRedux.Provider, {
|
|
100
|
+
store: store
|
|
101
|
+
}, /*#__PURE__*/_react.default.createElement(DiscoveryUI, null));
|
|
102
|
+
};
|
|
103
|
+
var _default = exports.default = ReactDiscoveryUI;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg viewBox="0 0 8 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<g id="designs" stroke="none" stroke-width="1" transform="translate(8, 0) rotate(90.000000)">
|
|
4
|
+
<polygon id="path-1" points="1.41 0.59 6 5.17 10.59 0.59 12 2 6 8 0 2"></polygon>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 58.201 58.201" style="enable-background:new 0 0 58.201 58.201;" xml:space="preserve">
|
|
5
|
+
<g>
|
|
6
|
+
<path d="M31.707,33.07c-0.87,0.027-1.74,0.042-2.606,0.042c-0.869,0-1.742-0.014-2.614-0.042
|
|
7
|
+
c-7.341-0.201-13.191-1.238-17.403-2.717C7.104,29.685,5.409,28.899,4.1,28v7.111v0.5v0.5V37.4c2.846,2.971,12.394,5.711,25,5.711
|
|
8
|
+
s22.154-2.74,25-5.711v-1.289v-0.5v-0.5V28c-1.318,0.905-3.028,1.697-5.025,2.367C44.865,31.839,39.027,32.87,31.707,33.07z"/>
|
|
9
|
+
<path d="M4.1,14.889V22v0.5V23v1.289c2.638,2.754,11.033,5.31,22.286,5.668c0.115,0.004,0.233,0.005,0.349,0.008
|
|
10
|
+
c0.326,0.009,0.651,0.018,0.982,0.023C28.174,29.996,28.635,30,29.1,30s0.926-0.004,1.383-0.011
|
|
11
|
+
c0.33-0.005,0.656-0.014,0.982-0.023c0.116-0.003,0.234-0.005,0.349-0.008c11.253-0.359,19.648-2.915,22.286-5.668V23v-0.5V22
|
|
12
|
+
v-7.111C49.233,18.232,38.944,20,29.1,20S8.968,18.232,4.1,14.889z"/>
|
|
13
|
+
<path d="M53.965,8.542C52.843,4.241,44.215,0,29.1,0C14.023,0,5.404,4.22,4.247,8.51C4.162,8.657,4.1,8.818,4.1,9v0.5v1.806
|
|
14
|
+
C6.937,14.267,16.417,17,29.1,17s22.164-2.733,25-5.694V9.5V9C54.1,8.832,54.044,8.681,53.965,8.542z"/>
|
|
15
|
+
<path d="M4.1,41v8.201c0,0.162,0.043,0.315,0.117,0.451c1.181,4.895,11.747,8.549,24.883,8.549c13.106,0,23.655-3.639,24.875-8.516
|
|
16
|
+
c0.08-0.144,0.125-0.309,0.125-0.484v-8.199c-4.135,2.911-12.655,5.199-25,5.199C16.754,46.201,8.234,43.911,4.1,41z"/>
|
|
17
|
+
</g>
|
|
18
|
+
<g>
|
|
19
|
+
</g>
|
|
20
|
+
<g>
|
|
21
|
+
</g>
|
|
22
|
+
<g>
|
|
23
|
+
</g>
|
|
24
|
+
<g>
|
|
25
|
+
</g>
|
|
26
|
+
<g>
|
|
27
|
+
</g>
|
|
28
|
+
<g>
|
|
29
|
+
</g>
|
|
30
|
+
<g>
|
|
31
|
+
</g>
|
|
32
|
+
<g>
|
|
33
|
+
</g>
|
|
34
|
+
<g>
|
|
35
|
+
</g>
|
|
36
|
+
<g>
|
|
37
|
+
</g>
|
|
38
|
+
<g>
|
|
39
|
+
</g>
|
|
40
|
+
<g>
|
|
41
|
+
</g>
|
|
42
|
+
<g>
|
|
43
|
+
</g>
|
|
44
|
+
<g>
|
|
45
|
+
</g>
|
|
46
|
+
<g>
|
|
47
|
+
</g>
|
|
48
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 65.5 28"><title>chart</title><rect y="17.5" width="13" height="10.5"/><rect x="17.5" width="13" height="28" /><rect x="35" y="12.5" width="13" height="15.5" /><rect x="52.5" y="5" width="13" height="23" /></svg>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height='100px' width='100px' fill="#999999" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 100 55.271" enable-background="new 0 0 100 55.271" xml:space="preserve"><path fill="#999999" d="M50,55.271c-1.349,0-2.697-0.515-3.727-1.544L1.544,8.998c-2.059-2.059-2.059-5.395,0-7.454 s5.395-2.059,7.454,0L50,42.546L91.002,1.544c2.059-2.059,5.395-2.059,7.454,0c2.059,2.059,2.059,5.395,0,7.454L53.727,53.727 C52.697,54.757,51.349,55.271,50,55.271z"></path></svg>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#000000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100"><g><polygon points="90,50 30,50 10,80 70,80 "></polygon><polygon points="70,40 70,30 50,30 40,20 10,20 10,60 23.333,40 "></polygon></g></svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="12px" height="8px" viewBox="0 0 12 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<!-- Generator: sketchtool 52.1 (67048) - http://www.bohemiancoding.com/sketch -->
|
|
4
|
+
<title>63666314-403B-4DE2-A7E7-17AA7C00CA78</title>
|
|
5
|
+
<desc>Created with sketchtool.</desc>
|
|
6
|
+
<g id="designs" stroke="none" stroke-width="1">
|
|
7
|
+
<g id="0.1-data-landing" transform="translate(-203.000000, -281.000000)">
|
|
8
|
+
<g id="restricted-datasets" transform="translate(150.000000, 205.000000)">
|
|
9
|
+
<g id="log-in" transform="translate(0.000000, 72.000000)">
|
|
10
|
+
<path d="M61.2141109,4.24577534 C60.883664,3.91807489 60.3480215,3.91807489 60.0175746,4.24577534 C59.6872739,4.57347579 59.6872739,5.10466649 60.0175746,5.43236694 L61.7608608,7.16101944 L53,7.16101944 L53,8.83908926 L61.7608608,8.83908926 L60.0175746,10.5677418 C59.6872739,10.8952973 59.6872739,11.4266329 60.0175746,11.7543334 C60.1828711,11.9182561 60.3993204,12 60.6159158,12 C60.8323651,12 61.0489605,11.9181111 61.2141109,11.7543334 L65,8.00005435 L61.2141109,4.24577534 Z" id="ic_arrow"></path>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<svg class="lds-spin" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="background: none;"><g transform="translate(80,50)">
|
|
2
|
+
<g transform="rotate(0)">
|
|
3
|
+
<circle cx="0" cy="0" r="10" fill="#28292f" fill-opacity="1" transform="scale(1.01177 1.01177)">
|
|
4
|
+
<animateTransform attributeName="transform" type="scale" begin="-0.875s" values="1.1 1.1;1 1" keyTimes="0;1" dur="1s" repeatCount="indefinite"></animateTransform>
|
|
5
|
+
<animate attributeName="fill-opacity" keyTimes="0;1" dur="1s" repeatCount="indefinite" values="1;0" begin="-0.875s"></animate>
|
|
6
|
+
</circle>
|
|
7
|
+
</g>
|
|
8
|
+
</g><g transform="translate(71.21320343559643,71.21320343559643)">
|
|
9
|
+
<g transform="rotate(45)">
|
|
10
|
+
<circle cx="0" cy="0" r="10" fill="#28292f" fill-opacity="0.875" transform="scale(1.02427 1.02427)">
|
|
11
|
+
<animateTransform attributeName="transform" type="scale" begin="-0.75s" values="1.1 1.1;1 1" keyTimes="0;1" dur="1s" repeatCount="indefinite"></animateTransform>
|
|
12
|
+
<animate attributeName="fill-opacity" keyTimes="0;1" dur="1s" repeatCount="indefinite" values="1;0" begin="-0.75s"></animate>
|
|
13
|
+
</circle>
|
|
14
|
+
</g>
|
|
15
|
+
</g><g transform="translate(50,80)">
|
|
16
|
+
<g transform="rotate(90)">
|
|
17
|
+
<circle cx="0" cy="0" r="10" fill="#28292f" fill-opacity="0.75" transform="scale(1.03677 1.03677)">
|
|
18
|
+
<animateTransform attributeName="transform" type="scale" begin="-0.625s" values="1.1 1.1;1 1" keyTimes="0;1" dur="1s" repeatCount="indefinite"></animateTransform>
|
|
19
|
+
<animate attributeName="fill-opacity" keyTimes="0;1" dur="1s" repeatCount="indefinite" values="1;0" begin="-0.625s"></animate>
|
|
20
|
+
</circle>
|
|
21
|
+
</g>
|
|
22
|
+
</g><g transform="translate(28.786796564403577,71.21320343559643)">
|
|
23
|
+
<g transform="rotate(135)">
|
|
24
|
+
<circle cx="0" cy="0" r="10" fill="#28292f" fill-opacity="0.625" transform="scale(1.04927 1.04927)">
|
|
25
|
+
<animateTransform attributeName="transform" type="scale" begin="-0.5s" values="1.1 1.1;1 1" keyTimes="0;1" dur="1s" repeatCount="indefinite"></animateTransform>
|
|
26
|
+
<animate attributeName="fill-opacity" keyTimes="0;1" dur="1s" repeatCount="indefinite" values="1;0" begin="-0.5s"></animate>
|
|
27
|
+
</circle>
|
|
28
|
+
</g>
|
|
29
|
+
</g><g transform="translate(20,50.00000000000001)">
|
|
30
|
+
<g transform="rotate(180)">
|
|
31
|
+
<circle cx="0" cy="0" r="10" fill="#28292f" fill-opacity="0.5" transform="scale(1.06177 1.06177)">
|
|
32
|
+
<animateTransform attributeName="transform" type="scale" begin="-0.375s" values="1.1 1.1;1 1" keyTimes="0;1" dur="1s" repeatCount="indefinite"></animateTransform>
|
|
33
|
+
<animate attributeName="fill-opacity" keyTimes="0;1" dur="1s" repeatCount="indefinite" values="1;0" begin="-0.375s"></animate>
|
|
34
|
+
</circle>
|
|
35
|
+
</g>
|
|
36
|
+
</g><g transform="translate(28.78679656440357,28.786796564403577)">
|
|
37
|
+
<g transform="rotate(225)">
|
|
38
|
+
<circle cx="0" cy="0" r="10" fill="#28292f" fill-opacity="0.375" transform="scale(1.07427 1.07427)">
|
|
39
|
+
<animateTransform attributeName="transform" type="scale" begin="-0.25s" values="1.1 1.1;1 1" keyTimes="0;1" dur="1s" repeatCount="indefinite"></animateTransform>
|
|
40
|
+
<animate attributeName="fill-opacity" keyTimes="0;1" dur="1s" repeatCount="indefinite" values="1;0" begin="-0.25s"></animate>
|
|
41
|
+
</circle>
|
|
42
|
+
</g>
|
|
43
|
+
</g><g transform="translate(49.99999999999999,20)">
|
|
44
|
+
<g transform="rotate(270)">
|
|
45
|
+
<circle cx="0" cy="0" r="10" fill="#28292f" fill-opacity="0.25" transform="scale(1.08677 1.08677)">
|
|
46
|
+
<animateTransform attributeName="transform" type="scale" begin="-0.125s" values="1.1 1.1;1 1" keyTimes="0;1" dur="1s" repeatCount="indefinite"></animateTransform>
|
|
47
|
+
<animate attributeName="fill-opacity" keyTimes="0;1" dur="1s" repeatCount="indefinite" values="1;0" begin="-0.125s"></animate>
|
|
48
|
+
</circle>
|
|
49
|
+
</g>
|
|
50
|
+
</g><g transform="translate(71.21320343559643,28.78679656440357)">
|
|
51
|
+
<g transform="rotate(315)">
|
|
52
|
+
<circle cx="0" cy="0" r="10" fill="#28292f" fill-opacity="0.125" transform="scale(1.09927 1.09927)">
|
|
53
|
+
<animateTransform attributeName="transform" type="scale" begin="0s" values="1.1 1.1;1 1" keyTimes="0;1" dur="1s" repeatCount="indefinite"></animateTransform>
|
|
54
|
+
<animate attributeName="fill-opacity" keyTimes="0;1" dur="1s" repeatCount="indefinite" values="1;0" begin="0s"></animate>
|
|
55
|
+
</circle>
|
|
56
|
+
</g>
|
|
57
|
+
</g></svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height='100px' width='100px' fill="#999999" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" preserveAspectRatio="none" x="0px" y="0px" viewBox="0 0 100 100"><defs><g id="a"><path fill="#999999" stroke="none" d=" M 51.95 48 L 51.95 21.85 Q 51.95 21.05 51.4 20.4 50.8 19.85 49.95 19.85 49.1 19.85 48.55 20.4 47.9 21.05 47.9 21.85 L 47.9 48 21.75 48 Q 20.9 48 20.35 48.6 19.75 49.2 19.75 50.05 19.75 50.9 20.35 51.45 20.9 52.05 21.75 52.05 L 47.9 52.05 47.9 78.2 Q 47.9 79.05 48.55 79.6 49.1 80.25 49.95 80.25 50.8 80.25 51.4 79.6 51.95 79.05 51.95 78.2 L 51.95 52.05 78.1 52.05 Q 78.95 52.05 79.55 51.45 80.15 50.9 80.15 50.05 80.15 49.2 79.55 48.6 78.95 48 78.1 48 L 51.95 48 Z"></path></g></defs><g transform="matrix( 1, 0, 0, 1, 0,0) "><use xlink:href="#a"></use></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height='100px' width='100px' xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 0 0" style="enable-background:new 0 0 0 0;" xml:space="preserve"><path d="M49.7,49.8c-12.4,0-22.5-10.1-22.5-22.5c0-12.4,10.1-22.5,22.5-22.5s22.5,10.1,22.5,22.5 C72.2,39.7,62.1,49.8,49.7,49.8z"></path><path d="M49.7,94.9c-16,0-28.7-1.5-37.9-4.6c-0.7-0.2-1.1-0.8-1.1-1.5c0.2-3.6,0.8-7.2,1.6-10.8 c4.3-16.9,14.7-24.5,19.1-27c0.5-0.3,1.2-0.3,1.7,0.1c4.7,3.3,10.3,5,16,4.9c5.9,0.1,11.7-1.7,16.4-5.2c0.5-0.4,1.2-0.4,1.7-0.1 C71.8,53.2,82.7,60.7,87,78c0.9,3.5,1.4,7.1,1.6,10.8c0,0.7-0.4,1.3-1.1,1.5C78.3,93.4,65.6,94.9,49.7,94.9z"></path></svg>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _auth0SpaJs = _interopRequireDefault(require("@auth0/auth0-spa-js"));
|
|
8
|
+
var _routes = _interopRequireDefault(require("../routes"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
13
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
+
var auth0Options = {
|
|
17
|
+
domain: window.AUTH0_DOMAIN,
|
|
18
|
+
client_id: window.DISCOVERY_AUTH0_CLIENT_ID,
|
|
19
|
+
audience: window.AUTH0_AUDIENCE,
|
|
20
|
+
redirect_uri: "".concat(window.location.origin).concat(_routes.default.oauth)
|
|
21
|
+
};
|
|
22
|
+
var Auth0ClientProvider = /*#__PURE__*/function () {
|
|
23
|
+
function Auth0ClientProvider() {
|
|
24
|
+
_classCallCheck(this, Auth0ClientProvider);
|
|
25
|
+
}
|
|
26
|
+
return _createClass(Auth0ClientProvider, [{
|
|
27
|
+
key: "get",
|
|
28
|
+
value: function get() {
|
|
29
|
+
if (!this.auth0Promise) {
|
|
30
|
+
this.auth0Promise = (0, _auth0SpaJs.default)(auth0Options);
|
|
31
|
+
}
|
|
32
|
+
return this.auth0Promise;
|
|
33
|
+
}
|
|
34
|
+
}]);
|
|
35
|
+
}();
|
|
36
|
+
var auth0ClientProvider = new Auth0ClientProvider();
|
|
37
|
+
var _default = exports.default = auth0ClientProvider;
|