Skip to content

Commit

Permalink
Merge pull request #201 from DANS-KNAW/feature/draw-map
Browse files Browse the repository at this point in the history
Feature/draw map
  • Loading branch information
ddzyne authored Oct 28, 2024
2 parents 17eef8e + 205eb5a commit fba8978
Show file tree
Hide file tree
Showing 38 changed files with 3,128 additions and 406 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ dist-ssr

# Testing related
playwright-report
test-results
test-results

# Rollup visualiser
stats.html
6 changes: 3 additions & 3 deletions apps/4tu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"@dans-framework/user-auth": "workspace:*",
"@dans-framework/utils": "workspace:*",
"@fontsource/roboto": "^5.0.7",
"@mui/material": "^5.14.3",
"@mui/material": "^5.16.7",
"framer-motion": "^10.15.0",
"lz-string": "^1.5.0",
"notistack": "^3.0.1",
"i18next": "^23.4.1",
"i18next-browser-languagedetector": "^7.1.0",
"i18next-resources-to-backend": "^1.1.4",
"lz-string": "^1.5.0",
"notistack": "^3.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.0.3",
Expand Down
9 changes: 4 additions & 5 deletions apps/cat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"preview": "vite preview"
},
"dependencies": {
"@dans-framework/user-auth": "workspace:*",
"@dans-framework/deposit": "workspace:*",
"@dans-framework/utils": "workspace:*",
"@dans-framework/layout": "workspace:*",
"@dans-framework/pages": "workspace:*",
"@dans-framework/theme": "workspace:*",
"@dans-framework/rdt-search-ui": "workspace:*",
"@dans-framework/theme": "workspace:*",
"@dans-framework/user-auth": "workspace:*",
"@dans-framework/utils": "workspace:*",
"@fontsource/roboto": "^5.0.7",
"@mui/icons-material": "^5.14.3",
"@mui/material": "^5.14.3",
"@mui/material": "^5.16.7",
"html-react-parser": "^4.2.2",
"i18next": "^23.4.1",
"i18next-browser-languagedetector": "^7.1.0",
Expand All @@ -40,4 +40,3 @@
"vite-plugin-checker": "^0.6.2"
}
}

1 change: 1 addition & 0 deletions apps/digitaltwins/.env
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ VITE_OIDC_SCOPE = 'openid profile'

## API keys
VITE_GEONAMES_API_KEY = ''
VITE_MAPTILER_API_KEY = ''

## Freshdesk ticketing
VITE_FRESHDESK_API_KEY = ''
Expand Down
3 changes: 2 additions & 1 deletion apps/digitaltwins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@dans-framework/user-auth": "workspace:*",
"@dans-framework/utils": "workspace:*",
"@fontsource/roboto": "^5.0.7",
"@mui/material": "^5.14.3",
"@mui/material": "^5.16.7",
"i18next": "^23.4.1",
"i18next-browser-languagedetector": "^7.1.0",
"i18next-resources-to-backend": "^1.1.4",
Expand All @@ -35,6 +35,7 @@
"@vitejs/plugin-react": "^4.0.3",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"rollup-plugin-visualizer": "^5.12.0",
"vite": "^4.4.5",
"vite-plugin-checker": "^0.6.2"
}
Expand Down
15 changes: 7 additions & 8 deletions apps/digitaltwins/src/config/formsections/citation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,18 @@ const section: InitialSectionType = {
},
},
{
type: "autocomplete",
type: "drawmap",
label: {
en: "Publisher",
nl: "Uitgever",
en: "Indicate location",
nl: "Map",
},
name: "publisher",
name: "map",
required: true,
description: {
en: "Institution - often the rights holder",
nl: "Instituut - vaak de rechthebbende",
en: "Search and select to open and focus a map on this location. Then select a shape type and start drawing.",
nl: "Iets van beschrijving",
},
options: "ror",
allowFreeText: true,
fullWidth: true,
},
{
type: "group",
Expand Down
2 changes: 2 additions & 0 deletions apps/digitaltwins/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import checker from "vite-plugin-checker";
import { visualizer } from "rollup-plugin-visualizer";

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -9,5 +10,6 @@ export default defineConfig({
checker({
typescript: true,
}),
visualizer(),
],
});
2 changes: 1 addition & 1 deletion apps/ohsmart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@dans-framework/user-auth": "workspace:*",
"@dans-framework/utils": "workspace:*",
"@fontsource/roboto": "^5.0.7",
"@mui/material": "^5.14.3",
"@mui/material": "^5.16.7",
"i18next": "^23.4.1",
"i18next-browser-languagedetector": "^7.1.0",
"i18next-resources-to-backend": "^1.1.4",
Expand Down
9 changes: 4 additions & 5 deletions apps/rda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"preview": "vite preview"
},
"dependencies": {
"@dans-framework/user-auth": "workspace:*",
"@dans-framework/deposit": "workspace:*",
"@dans-framework/utils": "workspace:*",
"@dans-framework/layout": "workspace:*",
"@dans-framework/pages": "workspace:*",
"@dans-framework/theme": "workspace:*",
"@dans-framework/rdt-search-ui": "workspace:*",
"@dans-framework/theme": "workspace:*",
"@dans-framework/user-auth": "workspace:*",
"@dans-framework/utils": "workspace:*",
"@fontsource/roboto": "^5.0.7",
"@mui/icons-material": "^5.14.3",
"@mui/material": "^5.14.3",
"@mui/material": "^5.16.7",
"html-react-parser": "^4.2.2",
"i18next": "^23.4.1",
"i18next-browser-languagedetector": "^7.1.0",
Expand All @@ -40,4 +40,3 @@
"vite-plugin-checker": "^0.6.2"
}
}

6 changes: 3 additions & 3 deletions apps/swh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"preview": "vite preview"
},
"dependencies": {
"@dans-framework/user-auth": "workspace:*",
"@dans-framework/deposit": "workspace:*",
"@dans-framework/utils": "workspace:*",
"@dans-framework/layout": "workspace:*",
"@dans-framework/pages": "workspace:*",
"@dans-framework/theme": "workspace:*",
"@dans-framework/user-auth": "workspace:*",
"@dans-framework/utils": "workspace:*",
"@fontsource/roboto": "^5.0.7",
"@mui/material": "^5.14.3",
"@mui/material": "^5.16.7",
"i18next": "^23.4.1",
"i18next-browser-languagedetector": "^7.1.0",
"i18next-resources-to-backend": "^1.1.4",
Expand Down
1 change: 1 addition & 0 deletions docs/deposit.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ Each section is a collapsible accordion in the front-end. A section is formatted
// * group - a field group, this group contains another fields array
// * radio - a radio button selection field (one option is always selected)
// * check - a checkbox selection field (select zero or more options)
// * drawmap - a map that indicating location: gives user the ability to draw shapes, change and convert coordinates to different coordinate systems, requires a Maptiler and Geonames API key in the .env file: VITE_MAPTILER_API_KEY and VITE_GEONAMES_API_KEY
type: "text",

// Label can be a string or preferably a language object
Expand Down
13 changes: 10 additions & 3 deletions packages/deposit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,27 @@
"@dans-framework/utils": "workspace:*",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mapbox/mapbox-gl-draw": "^1.4.3",
"@mui/icons-material": "^5.14.3",
"@mui/material": "^5.14.3",
"@mui/material": "^5.16.7",
"@mui/x-date-pickers": "^6.11.0",
"@reduxjs/toolkit": "^1.9.5",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.7",
"axios": "^1.6.0",
"fast-xml-parser": "^4.2.7",
"framer-motion": "^10.15.0",
"html-react-parser": "^4.2.2",
"i18next": "^23.4.1",
"i18next-browser-languagedetector": "^7.1.0",
"i18next-resources-to-backend": "^1.1.4",
"mapbox-gl": "^3.6.0",
"maplibre-gl": "^4.5.2",
"moment": "^2.29.4",
"notistack": "^3.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
"react-i18next": "^13.0.3",
"react-map-gl": "^7.1.7",
"react-oidc-context": "^2.2.2",
"react-redux": "^8.1.2",
"react-router-dom": "^6.14.2",
Expand All @@ -38,6 +40,11 @@
},
"devDependencies": {
"@dans-framework/pages": "workspace:*",
"@types/geojson": "^7946.0.14",
"@types/jest": "^29.5.3",
"@types/mapbox-gl": "^3.4.0",
"@types/mapbox__mapbox-gl-draw": "^1.4.7",
"@types/node": "^20.4.7",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@types/react-transition-group": "^4.4.6",
Expand Down
Loading

0 comments on commit fba8978

Please sign in to comment.