diff --git a/.github/workflows/cost-splitting-report.yml b/.github/workflows/cost-splitting-report.yml index 98c0837bf..63f1e191e 100644 --- a/.github/workflows/cost-splitting-report.yml +++ b/.github/workflows/cost-splitting-report.yml @@ -51,13 +51,20 @@ jobs: key: venv-${{ hashFiles('poetry.lock') }} - name: Install the project dependencies run: poetry install + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch - name: Run the report creation run: poetry run python script.py + env: + BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }} - name: Commit files run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit --allow-empty -m "Updating the storage report" -a + git add . + git commit --allow-empty -m "Updating the storage report" - name: Push changes uses: ad-m/github-push-action@master with: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 35b64d3d2..bf409890c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,6 +3,9 @@ on: push: branches: - staging + pull_request: + branches: + - staging env: PROJECT_NAME: wri-odp BRANCH_NAME: staging @@ -28,23 +31,36 @@ jobs: mask-password: 'true' - name: Add CKAN url to hosts run: sudo echo "127.0.0.1 ckan-dev" | sudo tee -a /etc/hosts - - name: Build and push image to ECR + - name: Build and push CKAN image to ECR + env: + REGISTRY: ${{ steps.login-ecr.outputs.registry }} + CKAN_REPO: ${{ secrets.ECR_CKAN_REPO}} + IMAGE_TAG: ${{ github.sha }} + run: | + mv ckan-backend-dev/src/ckanext-wri deployment/ckan/ + docker build -t $REGISTRY/$CKAN_REPO:$IMAGE_TAG deployment/ckan + docker push $REGISTRY/$CKAN_REPO:$IMAGE_TAG + - name: Build and push Frontend image to ECR env: REGISTRY: ${{ steps.login-ecr.outputs.registry }} - REPOSITORY: ckan-dev-ecr + FRONTEND_REPO: ${{ secrets.ECR_FRONTEND_REPO}} IMAGE_TAG: ${{ github.sha }} run: | - docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG ckan-deployment/ckan - docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG + docker build -t $REGISTRY/$FRONTEND_REPO:$IMAGE_TAG \ + --build-arg NEXTAUTH_SECRET=${{ secrets.STAGING_FRONTEND_NEXTAUTH_SECRET }} \ + --build-arg NEXTAUTH_URL=${{ secrets.STAGING_FRONTEND_NEXTAUTH_URL }} \ + --build-arg CKAN_URL=${{ secrets.STAGING_FRONTEND_CKAN_URL }} \ + deployment/frontend + docker push $REGISTRY/$FRONTEND_REPO:$IMAGE_TAG - name: Set up Docker Containers env: - CKAN_IMAGE: '${{ steps.login-ecr.outputs.registry }}/ckan-dev-ecr:${{ github.sha }}' + CKAN_IMAGE: '${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_CKAN_REPO }}:${{ github.sha }}' run: docker compose -f docker-compose.test.yml --env-file .env.example up --build -d - working-directory: ./ckan-backend-dev + working-directory: ./ckan-backend-dev - name: Cypress Install and CKAN setup uses: cypress-io/github-action@v6 with: - wait-on: 'http://localhost:5000' + wait-on: 'http://ckan-dev:5000' wait-on-timeout: 120 node-version: 18 runTests: false @@ -65,19 +81,19 @@ jobs: working-directory: ./ckan-backend-dev - name: Fix s3filestore test.ini for minio env: - CKAN_IMAGE: '${{ steps.login-ecr.outputs.registry }}/ckan-dev-ecr:${{ github.sha }}' + CKAN_IMAGE: '${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_CKAN_REPO }}:${{ github.sha }}' run: docker compose -f docker-compose.test.yml --env-file .env.example exec -T ckan-dev /bin/bash -c "/srv/app/fix_s3filestore_test_ini.sh" working-directory: ./ckan-backend-dev - - name: Run Unit Tests 🧪 - env: - CKAN_IMAGE: '${{ steps.login-ecr.outputs.registry }}/ckan-dev-ecr:${{ github.sha }}' - run: docker compose -f docker-compose.test.yml --env-file .env.example exec -T ckan-dev /bin/bash -c "/srv/app/run_unit_tests.sh" - working-directory: ./ckan-backend-dev + #- name: Run Unit Tests 🧪 + # env: + # CKAN_IMAGE: '${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_CKAN_REPO }}:${{ github.sha }}' + # run: docker compose -f docker-compose.test.yml --env-file .env.example exec -T ckan-dev /bin/bash -c "/srv/app/run_unit_tests.sh" + # working-directory: ./ckan-backend-dev - name: Run Trivy Vulnerability Scanner 🧪 uses: aquasecurity/trivy-action@master env: REGISTRY: ${{ steps.login-ecr.outputs.registry }} - REPOSITORY: ckan-dev-ecr + REPOSITORY: ${{ secrets.ECR_CKAN_REPO }} with: image-ref: '${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ github.sha }}' format: 'table' @@ -95,6 +111,7 @@ jobs: runs-on: ubuntu-latest needs: - buildandtest + if: github.event_name != 'pull_request' steps: - name: Checkout uses: actions/checkout@v4 @@ -111,10 +128,12 @@ jobs: - name: Run Templater and update values.yaml env: REGISTRY: ${{ steps.login-ecr.outputs.registry }} - REPOSITORY: ckan-dev-ecr + CKAN_REPO: ${{ secrets.ECR_CKAN_REPO}} + FRONTEND_REPO: ${{ secrets.ECR_FRONTEND_REPO}} + DATAPUSHER_REPO: ${{ secrets.ECR_DATAPUSHER_REPO }} IMAGE_TAG: ${{ github.sha }} run: | - cd ckan-deployment + cd deployment curl https://raw.githubusercontent.com/datopian/devops-tools/master/scripts/templater.sh > /tmp/templater.sh bash /tmp/templater.sh helm-templates/values.yaml.$BRANCH_NAME.template > helm-templates/values.yaml - name: Configure Kubeconfig @@ -131,4 +150,6 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} id: install - name: 'Deploy using Helm Upgrade' - run: helm upgrade -i dx-helm-wri-$BRANCH_NAME-release ./ckan-deployment/helm-templates -f ./ckan-deployment/helm-templates/values.yaml -n $PROJECT_NAME-$BRANCH_NAME --create-namespace --wait + run: | + set -e + helm upgrade -i dx-helm-wri-$BRANCH_NAME-release ./deployment/helm-templates -f ./deployment/helm-templates/values.yaml -n $PROJECT_NAME-$BRANCH_NAME --create-namespace --wait diff --git a/.github/workflows/test-cost-splitting.yml b/.github/workflows/test-cost-splitting.yml index 17a09319f..3f7dd008b 100644 --- a/.github/workflows/test-cost-splitting.yml +++ b/.github/workflows/test-cost-splitting.yml @@ -2,7 +2,7 @@ name: "Test cost splitting" on: push: branches: - - dev + - staging defaults: run: shell: bash diff --git a/.gitignore b/.gitignore index 5ee068440..78f362cb6 100644 --- a/.gitignore +++ b/.gitignore @@ -167,4 +167,5 @@ integration-tests/cypress/videos integration-tests/cypress/screenshots integration-tests/cypress.json -ckan-backend-dev/src/* \ No newline at end of file +ckan-backend-dev/src/ckan* +!ckan-backend-dev/src/ckanext-wri \ No newline at end of file diff --git a/README.md b/README.md index 39a3bf511..ce5affaaf 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ -**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* +**Table of Contents** - [WRI ODP](#wri-odp) - [CKAN Backend Development](#ckan-backend-development) + - [CKAN Deployment](#ckan-deployment) + - [Updating READMEs](#updating-readmes) @@ -13,8 +15,18 @@ The WRI Open Data Portal monorepo ## CKAN Backend Development -See the [CKAN Backend Development README](ckan-backend-dev/README.md) for instructions on how to set up a local Docker CKAN backend development environment. +See the [CKAN Backend Development README](ckan-backend-dev/README.md) for instructions on how to set up a local Docker CKAN backend development environment. Note: the `ckanext-wri` extension in the root of this repo is a symlink to `ckanext-wri` in `ckan-backend-dev/src`. See the README above and the [WRI Extension README](ckan-backend-dev/src/ckanext-wri/README.md) for more information. ## CKAN Deployment See the [CKAN Deployment README](ckan-deployment/README.md) for instructions on how to deploy CKAN to EKS. + +## Updating READMEs + +The table of contents in the READMEs are generated using generated using [DocToc](https://github.com/thlorenz/doctoc). You can install it globally by running: + + npm install -g doctoc + +Then, to update the table of contents in a markdown file, for example, `README.md`, run: + + doctoc README.md diff --git a/ckan-backend-dev/.env.example b/ckan-backend-dev/.env.example index b18680649..2ccfb7f43 100644 --- a/ckan-backend-dev/.env.example +++ b/ckan-backend-dev/.env.example @@ -86,7 +86,7 @@ DATAPUSHER_REWRITE_RESOURCES=True DATAPUSHER_REWRITE_URL=http://ckan-dev:5000 # Extensions -CKAN__PLUGINS=image_view text_view webpage_view resource_proxy datatables_view datastore datapusher activity s3filestore scheming_datasets scheming_organizations scheming_groups envvars +CKAN__PLUGINS=image_view text_view webpage_view resource_proxy datatables_view datastore datapusher activity s3filestore scheming_datasets scheming_organizations scheming_groups wri auth envvars CKAN__VIEWS__DEFAULT_VIEWS=image_view text_view webpage_view datatables_view CKAN__HARVEST__MQ__TYPE=redis CKAN__HARVEST__MQ__HOSTNAME=redis @@ -102,7 +102,7 @@ CKANEXT__S3FILESTORE__AWS_SECRET_ACCESS_KEY=${MINIO_ROOT_PASSWORD} CKANEXT__S3FILESTORE__HOST_NAME=http://minio:9000 # scheming -CKAN___SCHEMING__DATASET_SCHEMAS=ckanext.scheming:ckan_dataset.yaml +CKAN___SCHEMING__DATASET_SCHEMAS=ckanext.wri.schema:ckan_dataset.yaml CKAN___SCHEMING__ORGANIZATION_SCHEMAS=ckanext.scheming:custom_org_with_address.json CKAN___SCHEMING__GROUP_SCHEMAS=ckanext.scheming:custom_group_with_status.json -CKAN___SCHEMING__PRESETS=ckanext.scheming:presets.json +CKAN___SCHEMING__PRESETS=ckanext.wri.schema:presets.json diff --git a/ckan-backend-dev/README.md b/ckan-backend-dev/README.md index 983184005..ffed4a580 100644 --- a/ckan-backend-dev/README.md +++ b/ckan-backend-dev/README.md @@ -1,6 +1,6 @@ -**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* +**Table of Contents** - [CKAN Backend Development Environment](#ckan-backend-development-environment) - [Make Commands](#make-commands) diff --git a/ckan-backend-dev/ckan/Dockerfile.dev b/ckan-backend-dev/ckan/Dockerfile.dev index cd43c228b..ea49413da 100644 --- a/ckan-backend-dev/ckan/Dockerfile.dev +++ b/ckan-backend-dev/ckan/Dockerfile.dev @@ -26,7 +26,8 @@ RUN pip3 install -e 'git+https://github.com/datopian/ckanext-scheming.git@ckan-2 pip3 install -r 'https://raw.githubusercontent.com/datopian/ckanext-scheming/ckan-2.10/test-requirements.txt' && \ pip3 install -e 'git+https://github.com/datopian/ckanext-s3filestore.git@wri/cost-splitting-orgs#egg=ckanext-s3filestore' && \ pip3 install -r 'https://raw.githubusercontent.com/datopian/ckanext-s3filestore/wri/cost-splitting-orgs/requirements.txt' && \ - pip3 install -r 'https://raw.githubusercontent.com/datopian/ckanext-s3filestore/wri/cost-splitting-orgs/dev-requirements.txt' + pip3 install -r 'https://raw.githubusercontent.com/datopian/ckanext-s3filestore/wri/cost-splitting-orgs/dev-requirements.txt' && \ + pip3 install -e 'git+https://github.com/datopian/ckanext-auth.git@v2.9#egg=ckanext-auth' # Update ckanext-s3filestore test.ini with minio credentials RUN sed -i "s|ckanext.s3filestore.aws_access_key_id = test-access-key|ckanext.s3filestore.aws_access_key_id = ${AWS_ACCESS_KEY_ID}|g" src/ckanext-s3filestore/test.ini && \ @@ -60,9 +61,20 @@ COPY setup/start_ckan_development.sh.override ${APP_DIR}/start_ckan_development. RUN chmod +x ${APP_DIR}/start_ckan_development.sh RUN chown ckan:ckan ${APP_DIR}/start_ckan_development.sh -COPY setup/jwtRS256.key ${APP_DIR}/jwtRS256.key -COPY setup/jwtRS256.key.pub ${APP_DIR}/jwtRS256.key.pub -RUN chown ckan:ckan ${APP_DIR}/jwtRS256.key -RUN chown ckan:ckan ${APP_DIR}/jwtRS256.key.pub +#COPY setup/jwtRS256.key ${APP_DIR}/jwtRS256.key +#COPY setup/jwtRS256.key.pub ${APP_DIR}/jwtRS256.key.pub +#RUN chown ckan:ckan ${APP_DIR}/jwtRS256.key +#RUN chown ckan:ckan ${APP_DIR}/jwtRS256.key.pub + +RUN apk --no-cache add openssl + +RUN openssl genpkey -algorithm RSA -out ${APP_DIR}/jwtRS256.key && \ + openssl rsa -in ${APP_DIR}/jwtRS256.key -pubout -outform PEM -out ${APP_DIR}/jwtRS256.key.pub && \ + chown ckan:ckan ${APP_DIR}/jwtRS256.key && \ + chown ckan:ckan ${APP_DIR}/jwtRS256.key.pub + +#RUN ckan config-tool ${CKAN_INI} "api_token.jwt.algorithm = RS256" && \ +# ckan config-tool ${CKAN_INI} "api_token.jwt.encode.secret = file:${APP_DIR}/jwtRS256.key" && \ +# ckan config-tool ${CKAN_INI} "api_token.jwt.decode.secret = file:${APP_DIR}/jwtRS256.key.pub" CMD ["sh", "-c", "${APP_DIR}/start_ckan_development.sh"] \ No newline at end of file diff --git a/ckan-backend-dev/ckan/scripts/run_unit_tests.sh b/ckan-backend-dev/ckan/scripts/run_unit_tests.sh index a0e6bd2ed..f917f485c 100755 --- a/ckan-backend-dev/ckan/scripts/run_unit_tests.sh +++ b/ckan-backend-dev/ckan/scripts/run_unit_tests.sh @@ -1,11 +1,11 @@ #!/bin/bash -# Initialize a file to collect test outputs -echo "CKAN and Extension Test Results" > test_results.txt -echo "Test Summary" > test_summary.txt +ROOT_DIR=$(pwd) + +echo "CKAN and Extension Test Results" > "$ROOT_DIR/test_results.txt" +echo "Test Summary" > "$ROOT_DIR/test_summary.txt" # Run CKAN Core tests -# Replace the command below with the one you use for CKAN core tests # pytest --ckan-ini=test-core.ini >> test_results.txt # if [ $? -eq 0 ]; then # echo "CKAN Core: Passed" >> test_summary.txt @@ -13,8 +13,6 @@ echo "Test Summary" > test_summary.txt # echo "CKAN Core: Failed" >> test_summary.txt # fi -# Loop through each extension directory to run tests - cd src for dir in ckanext-*; do @@ -26,12 +24,13 @@ for dir in ckanext-*; do cd $dir - pytest --ckan-ini=test.ini ckanext/${dir#ckanext-}/tests 2>&1 | tee -a ../test_results.txt + pytest --ckan-ini=test.ini ckanext/${dir#ckanext-}/tests 2>&1 | tee -a "$ROOT_DIR/test_results.txt" + PYTEST_EXIT_CODE=${PIPESTATUS[0]} - if [ $? -eq 0 ]; then - echo "$dir: Passed" >> ../test_summary.txt + if [ $PYTEST_EXIT_CODE -eq 0 ]; then + echo "$dir: Passed" >> "$ROOT_DIR/test_summary.txt" else - echo "$dir: Failed" >> ../test_summary.txt + echo "$dir: Failed" >> "$ROOT_DIR/test_summary.txt" fi cd .. @@ -39,5 +38,27 @@ for dir in ckanext-*; do fi done -# Display summary -cat test_summary.txt +cd .. + +if [ -d "src_extensions/ckanext-wri" ]; then + cd src_extensions/ckanext-wri + + pytest --ckan-ini=test.ini ckanext/wri/tests 2>&1 | tee -a "$ROOT_DIR/test_results.txt" + PYTEST_EXIT_CODE=${PIPESTATUS[0]} + + if [ $PYTEST_EXIT_CODE -eq 0 ]; then + echo "ckanext-wri: Passed" >> "$ROOT_DIR/test_summary.txt" + else + echo "ckanext-wri: Failed" >> "$ROOT_DIR/test_summary.txt" + fi + + cd .. + +fi + +cat "$ROOT_DIR/test_summary.txt" + +# GitHub Actions failure exit code +if grep -q "Failed" "$ROOT_DIR/test_summary.txt"; then + exit 1 +fi diff --git a/ckan-backend-dev/ckan/setup/jwtRS256.key b/ckan-backend-dev/ckan/setup/jwtRS256.key deleted file mode 100644 index ddd7ee436..000000000 --- a/ckan-backend-dev/ckan/setup/jwtRS256.key +++ /dev/null @@ -1,51 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIJKgIBAAKCAgEAsadY+3gdEZJb0xSfXaj1eYZScfO9G405fBOiQHc7KpVertNY -cV7X7YjmqGxOdKl6jArglAi351fLZLdpLouK0CNK17/hKDimNUeLEgfQhJv/nXOB -JORqVv8Y5GuRTXxnPvYKbn/8QYSLs+4lLY24Le7SD8NQznbr9xbsKUi9ndwKmbkS -q+MblAmfHjnXdi/bkREQFFEqwq80MRGZNzmu7L5ddLf9gZCOtWPV8TYuyU2V/tAW -TAJAp7xsjYy0JSjMbwPHCHcZri4FeTwM9ZdiD4vWCOEVrhdP9q/7o6JIkkfeEwwN -eWiuUDMYpNIXCMplGKMFPEfMbdfew6rOg5Darotn+OOoc5kb/1ANA+idhSzmubft -6f8Mnv44takb3l2yliDFArCfTh7sVimAcdiwEp1AdcMcqmjBeJEpmbi3krLQXZvS -qYzEKlw0QKvzq14Z6hU+IbyG+fuR2lVk8WQtnidiFeU0NOPUQ1CvW8VOMfYVCvOQ -l2uJ70rvhZwC6KiXlJOnukADRZ+pvzi0mC5cPxuVXJgjdwAyMGbLQQ9i7jNswKqM -DU+pzhfTNV4XWpf3Bml2nTB8srShHCk+3hg9P97AkQPBtmxCB3qqgxEjtnB0vnDA -/eE6A1YIhuRGcHBNNM1vO5fEyjkTOJHDCByGT+5pDz/RsCq0yf3WuzVjx8sCAwEA -AQKCAgAQ59Bnabg2bluPnCRIOOZXMKmSz3N89jT0sjeb89ytAjbW4yTE8RYSNBdj -Cp9yqZgQUI6rd6LsgGXKCUwYkk3c3abnHgrSlYV3h33b8uNsYx3xgUbWWGgoLDFV -t0jF+2Ml0isO9d3u7CqRLkXabmSK9nGF73u2kgmFY2iIyzPEHGbj1wFIWx3KOhoq -ua1fwVEfHmUN0eWETkDktHyEjVgwjjL9gu68UCHMcBoxUIsmO9xcubeNdx9o9tzL -oYqZCKdfnxfnHdJTSWza6xR+oG/D8/YjtSune+9vlbKYET7fsLgYzupPVd9UoXAk -axunCf+R1x2N7XUuNL8tloj9ayDsF2ei+jBtKniOEV3Kw+XDBUIXSelEfVJvyDsn -PCFzLykbm2SLh9E+2QPZR1HaNWmbu2HTtAjfMgovOUZZE3Sm9tRfJMkXViyoYvDo -4UnJlb2SUZ57W6VoZuFDCKbDFqltpI69iy7oFXz5KDL2AFTVbvb9fIHJacupZ6qY -+juikrwbtFg4XRexhFgJih2hexjgPpIfZe4FOkHTtWwm0aSBVUl2VDD7E/hyRP1P -OeyTCIpcTAqibdCqtS1Z5n6niwWU7dL0oM3EQZ3eH1YsqE+XEsL+zJuzUlWXjmy+ -YxeX/du7wrs5sbcYnPXfiECJ2saRTMZrcOOHbVfKMBNJJMvsuQKCAQEA7MPVbf2X -rmj3/iuHlmp53jWWUtew4WWqJ2dLamRhOcEgIKQ2w0QHJU4AzAdJAMC0GPJdPU/P -xqSWcY3wdE9+ITR3tAIac5GYYbr9ogc+Pk3szABeplL301ryyEoheLifHDBz5i0Y -tyenpbY2hW8ZWpBPodBzEYQRyJ+YQMq97PZq0WsG0u1z7YrrXJ8h6EYQG4nDWxiR -SRpiZQtoZzOUxuMFOGTX4OL7g0rq3SWh89QA3Hb2bb3exu++KA9edO2XBiTmk+mx -dmkQ4AQ+uZrU8mFQok96Y7PEQ80lhTmK0fgf8kV+cC5W12Er3GA3xQvJHYgBo/Wl -ZhI4ISBwzhSQ4wKCAQEAwBYir9ZbJr6VCyjiZr4+Wb/+9s6oqXJJZHrIgGhVhh6f -vzlTiX6NQp2P34KUPIhFAWYAzV2PyN4hLQcsfMHLpYY5uG9UiBc6tHP5U+gpk9XB -rPTm0HiZSVWCg3I3KQeByMgss+knclodZSUEr5eZWCkndlBO5SzAKpISOZiOoVSW -3jcB0PRMY4KPYl4X+cM10QJNZh13I6TZbbvQSp8quBizMFblbk24G0A4o09lY8bf -xP3odhAFa0dgWclt9ZFMY0u0dm+7lzRo79Ayy1KjyCp5qkzRqoRsl++Ht6zcMyUh -ue9J5HYSAwmwWAnWIx/OVERSC3jbA2O5FvYSPt+p+QKCAQEA29bqcfqpwHQO8J4S -g4PSLJWtQrarsl3npDaxO9SAwlOkNSrE/oJH8EeBTfDlxCEqGI/SK3/T+SoR1tZo -klbNUp+ZFjdtwClMSFKL9sqq7McGPFWLjPw0yLcF/xt2ANXMRyxmMS9mZ4oWjDOo -ZDVIYWLlzeXzMixjJtmpUV/vAfu8Kz8pUujQX5xB9fp8TWPgyPEdx5QEMtCg1BnH -kyu91P4udrKMEHAyATKq6TRsMC6Fri93mWZXWHh7JE9A8Wk6daYFwwmWkc/0r0zB -wS0W1QevC0ao6bKdZicx04Yec9/kKdyFDjy4vbuoMjPVFM1grF8AxvDr5t6752Zr -164Y6QKCAQEAp+ux7x3pGXnKObNIGKF/SF57ua736wmp91kPJpIPEex7omOvD6e+ -PdoYCEDS7ggCqzJMyTtdky/8uKxoy7dvHAi3NPC+aSpFe7NW528xybc4VMbTcLO8 -7Ur/iYGzjv6tCqVTzwOoJGN7BwzRh99zgoqXoOqbzeTNKWoA3LDtH0Qfj6tuvwiS -LvvX9Rpkw0dQKKNmnjpsCJD4MuHZOSLj6YROQZf1gfQXWltOKBYkgJE+1atSKMPg -uOPw6w0YP3EB4lwwKsmKqKh8hAjyHqTj4Pyg16vILtUNSdVwQ7Wt2lg/n5f8dOhy -3oz9yDjxJkuLyEbhon3ImLH5AIWldal5oQKCAQEA0V8+r9inKR5KRI/wLOljcH0T -7MZc4ea2vwP+kMRTUqe9Bpn3D8edrijgredbw9Wj7MckmLjWkYOSSdzZlLYlv+/X -wX68Nsa1qQA7iHZIfW3KgbgfoCyZmtOCnS6mZYykeOnTHJahRfD6utvdauG7DWN5 -ZpIHP0s07qj+QpBD7Oe1lUtdeCGt2KES66B8+7oZQCFhgfPw5kWKd5Tp6yJqCiYi -9dQXqfXv3MSLRSCurJBGlqk+XjvJtlkwDj2Z/1E0CuIMYnsy8y0ZzQ3e9sx27Chf -kilrK3VghILcTVTNoHrQfYc+iOj/+TNbPgzLn5aVpuafkY16kDtmMgO+3unI8w== ------END RSA PRIVATE KEY----- diff --git a/ckan-backend-dev/ckan/setup/jwtRS256.key.pub b/ckan-backend-dev/ckan/setup/jwtRS256.key.pub deleted file mode 100644 index 43d9445a4..000000000 --- a/ckan-backend-dev/ckan/setup/jwtRS256.key.pub +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN PUBLIC KEY----- -MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAsadY+3gdEZJb0xSfXaj1 -eYZScfO9G405fBOiQHc7KpVertNYcV7X7YjmqGxOdKl6jArglAi351fLZLdpLouK -0CNK17/hKDimNUeLEgfQhJv/nXOBJORqVv8Y5GuRTXxnPvYKbn/8QYSLs+4lLY24 -Le7SD8NQznbr9xbsKUi9ndwKmbkSq+MblAmfHjnXdi/bkREQFFEqwq80MRGZNzmu -7L5ddLf9gZCOtWPV8TYuyU2V/tAWTAJAp7xsjYy0JSjMbwPHCHcZri4FeTwM9Zdi -D4vWCOEVrhdP9q/7o6JIkkfeEwwNeWiuUDMYpNIXCMplGKMFPEfMbdfew6rOg5Da -rotn+OOoc5kb/1ANA+idhSzmubft6f8Mnv44takb3l2yliDFArCfTh7sVimAcdiw -Ep1AdcMcqmjBeJEpmbi3krLQXZvSqYzEKlw0QKvzq14Z6hU+IbyG+fuR2lVk8WQt -nidiFeU0NOPUQ1CvW8VOMfYVCvOQl2uJ70rvhZwC6KiXlJOnukADRZ+pvzi0mC5c -PxuVXJgjdwAyMGbLQQ9i7jNswKqMDU+pzhfTNV4XWpf3Bml2nTB8srShHCk+3hg9 -P97AkQPBtmxCB3qqgxEjtnB0vnDA/eE6A1YIhuRGcHBNNM1vO5fEyjkTOJHDCByG -T+5pDz/RsCq0yf3WuzVjx8sCAwEAAQ== ------END PUBLIC KEY----- diff --git a/ckan-backend-dev/src/.gitkeep b/ckan-backend-dev/src/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ckan-backend-dev/src/ckanext-wri/.coveragerc b/ckan-backend-dev/src/ckanext-wri/.coveragerc new file mode 100644 index 000000000..895e29130 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/.coveragerc @@ -0,0 +1,5 @@ +[report] +omit = + */site-packages/* + */python?.?/* + ckan/* diff --git a/ckan-backend-dev/src/ckanext-wri/.gitignore b/ckan-backend-dev/src/ckanext-wri/.gitignore new file mode 100644 index 000000000..8570dc5c5 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/.gitignore @@ -0,0 +1,42 @@ +.ropeproject +node_modules +bower_components + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +sdist/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.cache +nosetests.xml +coverage.xml + +# Sphinx documentation +docs/_build/ diff --git a/ckan-backend-dev/src/ckanext-wri/LICENSE b/ckan-backend-dev/src/ckanext-wri/LICENSE new file mode 100644 index 000000000..58777e31a --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/LICENSE @@ -0,0 +1,661 @@ +GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/ckan-backend-dev/src/ckanext-wri/MANIFEST.in b/ckan-backend-dev/src/ckanext-wri/MANIFEST.in new file mode 100644 index 000000000..6d5c797ae --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/MANIFEST.in @@ -0,0 +1,5 @@ +include README.rst +include LICENSE +include requirements.txt +recursive-include ckanext/wri *.html *.json *.js *.less *.css *.mo *.yml +recursive-include ckanext/wri/migration *.ini *.py *.mako diff --git a/ckan-backend-dev/src/ckanext-wri/README.md b/ckan-backend-dev/src/ckanext-wri/README.md new file mode 100644 index 000000000..fbf220923 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/README.md @@ -0,0 +1,41 @@ + + +**Table of Contents** + +- [ckanext-wri](#ckanext-wri) + - [Development](#development) + - [Testing](#testing) + + + +# ckanext-wri + +This is the WRI Open Data Portal extension for CKAN. It contains CKAN backend customizations for this project. + +## Development + +See the [CKAN Backend Development README](ckan-backend-dev/README.md) for instructions on how to set up a local Docker CKAN backend development environment. + +This extension lives in `ckan-backend-dev/src/ckanext-wri`. It is symlinked to the root of this repo for convenience and visibility. + +Because it's part of this unified repo, if you need to make changes, you can do so directly in the `ckanext-wri` directory. There's no external repo to clone or fork (like other CKAN extensions), so you can just create a new branch off of `dev`, make your changes, and submit a PR. + +## Testing + +The unit tests for this extension are run as part of the `make unit-tests` command in the `ckan-backend-dev` Docker development environment, but while developing, you can also run them alone. To do so, in another terminal window, go to `ckan-backend-dev` and run: + +If the environment is not already running, start it: + + make up + +Then enter the Docker shell: + + make shell + +Once in the shell, navigate to the extension directory: + + cd src_extensions/ckanext-wri + +Finally, run the tests: + + pytest --ckan-ini=test.ini ckanext/wri/tests diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/__init__.py b/ckan-backend-dev/src/ckanext-wri/ckanext/__init__.py new file mode 100644 index 000000000..ed48ed012 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/__init__.py @@ -0,0 +1,9 @@ +# encoding: utf-8 + +# this is a namespace package +try: + import pkg_resources + pkg_resources.declare_namespace(__name__) +except ImportError: + import pkgutil + __path__ = pkgutil.extend_path(__path__, __name__) diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/__init__.py b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/.gitignore b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/script.js b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/script.js new file mode 100644 index 000000000..29adb1d5c --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/script.js @@ -0,0 +1,10 @@ +ckan.module("wri-module", function ($, _) { + "use strict"; + return { + options: { + debug: false, + }, + + initialize: function () {}, + }; +}); diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/style.css b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/style.css new file mode 100644 index 000000000..963159508 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/style.css @@ -0,0 +1,5 @@ +/* +body { + border-radius: 0; +} +*/ diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/webassets.yml b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/webassets.yml new file mode 100644 index 000000000..c20165465 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/assets/webassets.yml @@ -0,0 +1,14 @@ +# wri-js: +# filter: rjsmin +# output: ckanext-wri/%(version)s-wri.js +# contents: +# - js/wri.js +# extra: +# preload: +# - base/main + +# wri-css: +# filter: cssrewrite +# output: ckanext-wri/%(version)s-wri.css +# contents: +# - css/wri.css diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/i18n/.gitignore b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/i18n/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/logic/validators.py b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/logic/validators.py new file mode 100644 index 000000000..dfcb7bb90 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/logic/validators.py @@ -0,0 +1,82 @@ +import datetime +from typing import Any +import pycountry +import logging + +from ckan.types import Context +from ckan.plugins.toolkit import ValidationError +import ckan.lib.navl.dictization_functions as df + +Invalid = df.Invalid + +log = logging.getLogger(__name__) + + +# TODO: Do we want to enforce this datetime for temporal coverage? +# Example values on their current portal range from "January 1, 2019 - December 31, 2019" to "2019 - 2021" +# There are also empty values as well as " - ". +#def iso_datetime_range(value: Any, context: Context): +# """ +# Validates that the value is a valid ISO 8601 datetime range. +# +# e.g. "2007-03-01T13:00:00Z/2008-05-11T15:30:00Z" +# +# If the value isn't a full ISO 8601 datetime range, but is a valid +# YYYY-MM-DD range, it will be converted to a full ISO 8601 datetime range. +# """ +# if not value: +# return +# +# if not isinstance(value, str): +# log.error('Datetime range is not a string') +# raise Invalid("Value must be a string") +# +# try: +# start, end = value.split("/") +# datetime.datetime.strptime(start, "%Y-%m-%dT%H:%M:%SZ") +# datetime.datetime.strptime(end, "%Y-%m-%dT%H:%M:%SZ") +# except (ValueError, AttributeError) as e: +# try: +# start, end = value.split("/") +# datetime.datetime.strptime(start, "%Y-%m-%d") +# datetime.datetime.strptime(end, "%Y-%m-%d") +# value = f"{start}T00:00:00Z/{end}T23:59:59Z" +# except (ValueError, AttributeError) as e: +# log.error( +# f'Value must be a valid ISO 8601 datetime range: {e}' +# ) +# raise Invalid( +# "Value must be a valid ISO 8601 datetime range" +# ) +# +# return value + + +def iso_language_code(value: Any, context: Context): + """ + Check that the value is a valid ISO 639-1 language code. + + e.g. "en" + """ + if not value: + return + + if not isinstance(value, str): + log.error('Language code is not a string') + raise Invalid("Value must be a string") + + try: + is_lang = pycountry.languages.get(alpha_2=value) + + if not is_lang: + log.error( + f'Value must be a valid ISO 639-1 language code: {is_lang}' + ) + raise Invalid( + "Value must be a valid ISO 639-1 language code" + ) + except Exception as e: + log.error(f'Value must be a valid ISO 639-1 language code: {e}') + raise Invalid("Value must be a valid ISO 639-1 language code") + + return value diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/plugin.py b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/plugin.py new file mode 100644 index 000000000..b93ab5250 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/plugin.py @@ -0,0 +1,23 @@ +import ckan.plugins as plugins +import ckan.plugins.toolkit as toolkit + +from ckanext.wri.logic.validators import iso_language_code + + +class WriPlugin(plugins.SingletonPlugin): + plugins.implements(plugins.IConfigurer) + plugins.implements(plugins.IValidators) + + # IConfigurer + + def update_config(self, config_): + toolkit.add_template_directory(config_, "templates") + toolkit.add_public_directory(config_, "public") + toolkit.add_resource("assets", "wri") + + # IValidators + + def get_validators(self): + return { + "iso_language_code": iso_language_code + } diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/public/.gitignore b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/public/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/schema/__init__.py b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/schema/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/schema/ckan_dataset.yaml b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/schema/ckan_dataset.yaml new file mode 100644 index 000000000..98b9b449e --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/schema/ckan_dataset.yaml @@ -0,0 +1,188 @@ +scheming_version: 2 +dataset_type: dataset +about: A reimplementation of the default CKAN dataset schema +about_url: http://github.com/ckan/ckanext-scheming + + +dataset_fields: + +- field_name: title + label: Title + preset: title + form_placeholder: eg. A descriptive title + +- field_name: name + label: URL + preset: dataset_slug + form_placeholder: eg. my-dataset + +- field_name: url + label: Source + form_placeholder: http://example.com/dataset.json + display_property: foaf:homepage + display_snippet: link.html + validators: ignore_missing url_validator + +- field_name: language + label: Language + validators: iso_language_code + +- field_name: owner_org + label: Team + preset: dataset_organization + +- field_name: projects + label: Projects + preset: multiple_text + +- field_name: application + label: Application + +- field_name: technical_notes + label: Technical Notes + form_placeholder: eg. https://example.com/technical_notes.pdf + validators: ignore_missing url_validator + output_validators: url_validator + +- field_name: tag_string + label: Tags + preset: tag_string_autocomplete + form_placeholder: eg. economy, mental health, government + +- field_name: temporal_coverage + label: Temporal Coverage + form_placeholder: eg. 2010/2011 + +- field_name: update_frequency + label: Update Frequency + preset: select + choices: + - value: annually + label: Annually + - value: biannually + label: Biannually + - value: quarterly + label: Quarterly + - value: monthly + label: Monthly + - value: weekly + label: Weekly + - value: daily + label: Daily + - value: hourly + label: Hourly + - value: as_needed + label: As Needed + +- field_name: citation + label: Citation + form_snippet: markdown.html + form_placeholder: eg. Citation information + +- field_name: visibility_type + label: Visibility Type + preset: select + choices: + - value: draft + label: Draft + - value: private + label: Private + - value: internal + label: Internal + - value: public + label: Public + +- field_name: license_id + label: License + form_snippet: license.html + help_text: License definitions and additional information can be found at http://opendefinition.org/ + +- field_name: featured_dataset + label: Featured Dataset + validators: boolean_validator + output_validators: boolean_validator + preset: checkbox + +- field_name: short_description + label: Short Description + form_snippet: markdown.html + form_placeholder: eg. A short description of the dataset + +- field_name: notes + label: Description + form_snippet: markdown.html + form_placeholder: eg. Some useful notes about the data + +- field_name: author + label: Author + form_placeholder: Joe Bloggs + display_property: dc:creator + +- field_name: author_email + label: Author Email + form_placeholder: joe@example.com + display_property: dc:creator + display_snippet: email.html + display_email_name_field: author + +- field_name: maintainer + label: Maintainer + form_placeholder: Joe Bloggs + display_property: dc:contributor + +- field_name: maintainer_email + label: Maintainer Email + form_placeholder: joe@example.com + display_property: dc:contributor + display_snippet: email.html + display_email_name_field: maintainer + +- field_name: function + label: Function + form_snippet: markdown.html + form_placeholder: eg. This data is used to... + +- field_name: restrictions + label: Restrictions + form_snippet: markdown.html + form_placeholder: eg. This data is restricted to... + +- field_name: reason_for_adding + label: Reason for Adding + form_snippet: markdown.html + form_placeholder: eg. This data is being added because... + +- field_name: learn_more + label: Learn More + form_placeholder: eg. https://example.com/learn_more.pdf + validators: ignore_missing url_validator + output_validators: url_validator + +- field_name: cautions + label: Cautions + form_snippet: markdown.html + form_placeholder: eg. This data should be used with caution because... + +- field_name: summary + label: Summary + form_snippet: markdown.html + form_placeholder: eg. A short summary of the dataset + +resource_fields: + +- field_name: url + label: URL + preset: resource_url_upload + +- field_name: name + label: Name + form_placeholder: eg. January 2011 Gold Prices + +- field_name: description + label: Description + form_snippet: markdown.html + form_placeholder: Some useful notes about the data + +- field_name: format + label: Format + preset: resource_format_autocomplete diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/schema/presets.json b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/schema/presets.json new file mode 100644 index 000000000..f6599ccb4 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/schema/presets.json @@ -0,0 +1,165 @@ +{ + "scheming_presets_version": 1, + "about": "these are the default scheming field presets", + "about_url": "http://github.com/ckan/ckanext-scheming#preset", + "presets": [ + { + "preset_name": "title", + "values": { + "validators": "if_empty_same_as(name) unicode_safe", + "form_snippet": "large_text.html", + "form_attrs": { + "data-module": "slug-preview-target" + } + } + }, + { + "preset_name": "dataset_slug", + "values": { + "validators": "not_empty unicode_safe name_validator package_name_validator", + "form_snippet": "slug.html" + } + }, + { + "preset_name": "tag_string_autocomplete", + "values": { + "validators": "ignore_missing tag_string_convert", + "classes": ["control-full"], + "form_attrs": { + "data-module": "autocomplete", + "data-module-tags": "", + "data-module-source": "/api/2/util/tag/autocomplete?incomplete=?", + "class": "" + } + } + }, + { + "preset_name": "dataset_organization", + "values": { + "validators": "owner_org_validator unicode_safe", + "form_snippet": "organization.html" + } + }, + { + "preset_name": "resource_url_upload", + "values": { + "validators": "ignore_missing unicode_safe remove_whitespace", + "form_snippet": "upload.html", + "form_placeholder": "http://example.com/my-data.csv", + "upload_field": "upload", + "upload_clear": "clear_upload", + "upload_label": "File" + } + }, + { + "preset_name": "organization_url_upload", + "values": { + "validators": "ignore_missing unicode_safe remove_whitespace", + "form_snippet": "organization_upload.html", + "form_placeholder": "http://example.com/my-data.csv" + } + }, + { + "preset_name": "resource_format_autocomplete", + "values": { + "validators": "if_empty_guess_format ignore_missing clean_format unicode_safe", + "form_placeholder": "eg. CSV, XML or JSON", + "form_attrs": { + "data-module": "autocomplete", + "data-module-source": "/api/2/util/resource/format_autocomplete?incomplete=?" + } + } + }, + { + "preset_name": "select", + "values": { + "form_snippet": "select.html", + "display_snippet": "select.html", + "validators": "scheming_required scheming_choices" + } + }, + { + "preset_name": "multiple_checkbox", + "values": { + "form_snippet": "multiple_checkbox.html", + "display_snippet": "multiple_choice.html", + "validators": "scheming_multiple_choice", + "output_validators": "scheming_multiple_choice_output" + } + }, + { + "preset_name": "multiple_select", + "values": { + "form_snippet": "multiple_select.html", + "display_snippet": "multiple_choice.html", + "validators": "scheming_multiple_choice", + "output_validators": "scheming_multiple_choice_output" + } + }, + { + "preset_name": "date", + "values": { + "form_snippet": "date.html", + "display_snippet": "date.html", + "validators": "scheming_required isodate convert_to_json_if_date" + } + }, + { + "preset_name": "datetime", + "values": { + "form_snippet": "datetime.html", + "display_snippet": "datetime.html", + "validators": "scheming_isodatetime convert_to_json_if_datetime" + } + }, + { + "preset_name": "datetime_tz", + "values": { + "form_snippet": "datetime_tz.html", + "display_snippet": "datetime_tz.html", + "validators": "scheming_isodatetime_tz convert_to_json_if_datetime" + } + }, + { + "preset_name": "json_object", + "values": { + "validators": "scheming_required scheming_valid_json_object", + "output_validators": "scheming_load_json", + "form_snippet": "json.html", + "display_snippet": "json.html" + } + }, + { + "preset_name": "multiple_text", + "values": { + "form_snippet": "multiple_text.html", + "display_snippet": "multiple_text.html", + "validators": "scheming_required scheming_multiple_text", + "output_validators": "scheming_load_json" + } + }, + { + "preset_name": "markdown", + "values": { + "form_snippet": "markdown.html", + "display_snippet": "markdown.html" + } + }, + { + "preset_name": "radio", + "values": { + "form_snippet": "radio.html", + "display_snippet": "select.html", + "validators": "scheming_required scheming_choices" + } + }, + { + "preset_name": "checkbox", + "values": { + "form_snippet": "checkbox.html", + "display_snippet": "checkbox.html", + "validators": "boolean_validator" + } + } + ] +} diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/templates/.gitignore b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/templates/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/templates/scheming/display_snippets/checkbox.html b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/templates/scheming/display_snippets/checkbox.html new file mode 100644 index 000000000..0ce3f78bc --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/templates/scheming/display_snippets/checkbox.html @@ -0,0 +1,7 @@ +{%- set is_checked = data[field.field_name] == true -%} + +{%- if is_checked -%} +true +{%- else -%} +false +{%- endif -%} diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/templates/scheming/form_snippets/checkbox.html b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/templates/scheming/form_snippets/checkbox.html new file mode 100644 index 000000000..1be49e639 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/templates/scheming/form_snippets/checkbox.html @@ -0,0 +1,31 @@ +{% import 'macros/form.html' as form %} + + + +{%- call form.input_block( +label=h.scheming_language_text(field.label), +classes=field.classes if 'classes' in field else ['control-medium'], +error=errors[field.field_name], +is_required=h.scheming_field_required(field)) -%} +
+ +
+{%- snippet 'scheming/form_snippets/help_text.html', field=field -%} +{%- endcall -%} diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/tests/__init__.py b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/tests/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/tests/test_schema.py b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/tests/test_schema.py new file mode 100644 index 000000000..ed9b433bc --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/tests/test_schema.py @@ -0,0 +1,139 @@ +import pytest + +from ckanapi import RemoteCKAN + +from ckan.logic import NotFound, get_action, ValidationError +from ckan.common import config +import ckan.lib.navl.dictization_functions as df +from ckan import model +import ckan.tests.factories as factories +from ckan.logic import get_action + +Invalid = df.Invalid + + +@pytest.mark.usefixtures(u"with_plugins", u"test_request_context") +def test_package_create(): + userobj = factories.Sysadmin() + session = model.Session + context = { + "model": model, "session": session, + "user": userobj["name"], "ignore_auth": True, + "user_obj": userobj + } + + organization_dict = factories.Organization() + group_dict = factories.Group() + + dataset = { + "type": "dataset", + "title": "Test Dataset Schema", + "name": "test-dataset-schema", + "url": "http://example.com/dataset.json", + "language": "en", + "owner_org": organization_dict["id"], + "projects": ["wri", "gfw"], + "application": "rw", + "groups": [{"id": group_dict["id"]}], + "technical_notes": "http://example.com/technical_notes.pdf", + "tag_string": "economy,mental health,government", + "temporal_coverage": "2007-2021", + "update_frequency": "annually", + "citation": "Citation information", + "visibility_type": "draft", + "license_id": "cc-by-4.0", + "featured_dataset": True, + "short_description": "A short description of the dataset", + "notes": "Some useful notes about the data", + "author": "Joe Bloggs", + "author_email": "joe@example.com", + "maintainer": "Joe Bloggs", + "maintainer_email": "joe@example.com", + "function": "This data is used to...", + "restrictions": "This data is restricted to...", + "reason_for_adding": "This data is being added because...", + "learn_more": "https://example.com/learn_more.pdf", + "cautions": "This data should be used with caution because...", + "summary": "A short summary of the dataset" + } + + try: + get_action("package_delete")( + context={"ignore_auth": True}, + data_dict={"id": dataset["name"]} + ) + except NotFound: + pass + + result = get_action("package_create")( + context=context, + data_dict=dataset + ) + + tag_string = dataset["tag_string"].split(",") + + assert result["title"] == dataset["title"] + assert result["name"] == dataset["name"] + assert result["url"] == dataset["url"] + assert result["language"] == dataset["language"] + assert result["owner_org"] == organization_dict["id"] + assert result["projects"] == dataset["projects"] + assert result["application"] == dataset["application"] + assert result["groups"][0]["name"] == group_dict["name"] + assert result["technical_notes"] == dataset["technical_notes"] + assert all( + tag["name"] in tag_string for tag in result["tags"] + ) + assert result["temporal_coverage"] == dataset["temporal_coverage"] + assert result["update_frequency"] == dataset["update_frequency"] + assert result["citation"] == dataset["citation"] + assert result["visibility_type"] == dataset["visibility_type"] + assert result["license_id"] == dataset["license_id"] + assert result["featured_dataset"] is True + assert result["short_description"] == dataset["short_description"] + assert result["notes"] == dataset["notes"] + assert result["author"] == dataset["author"] + assert result["author_email"] == dataset["author_email"] + assert result["maintainer"] == dataset["maintainer"] + assert result["maintainer_email"] == dataset["maintainer_email"] + assert result["function"] == dataset["function"] + assert result["restrictions"] == dataset["restrictions"] + assert result["reason_for_adding"] == dataset["reason_for_adding"] + assert result["learn_more"] == dataset["learn_more"] + assert result["cautions"] == dataset["cautions"] + assert result["summary"] == dataset["summary"] + + invalid_urls = ["invalid_url_1", "invalid_url_2", "invalid_url_3"] + + for field_name in ["url", "technical_notes", "learn_more"]: + for invalid_url in invalid_urls: + updated_dataset = dataset.copy() + updated_dataset[field_name] = invalid_url + + with pytest.raises(ValidationError) as excinfo: + get_action("package_update")( + context=context, + data_dict=updated_dataset + ) + + assert "Please provide a valid URL" in str(excinfo.value) + + invalid_language = "not a language" + updated_dataset = dataset.copy() + updated_dataset["language"] = invalid_language + + with pytest.raises(ValidationError) as excinfo: + get_action("package_update")( + context=context, + data_dict=updated_dataset + ) + + assert "Value must be a valid ISO 639-1 language code" in str(excinfo.value) + + try: + get_action("package_delete")( + context={"ignore_auth": True}, + data_dict={"id": dataset["name"]} + ) + except NotFound: + pass diff --git a/ckan-backend-dev/src/ckanext-wri/ckanext/wri/tests/test_validators.py b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/tests/test_validators.py new file mode 100644 index 000000000..43cf1d113 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/ckanext/wri/tests/test_validators.py @@ -0,0 +1,46 @@ +import pytest + +import ckanext.wri.logic.validators as validators +import ckan.lib.navl.dictization_functions as df + +Invalid = df.Invalid + + +#@pytest.mark.parametrize( +# "value,expected", +# [ +# ( +# "2019-01-01T00:00:00Z/2019-01-01T00:00:00Z", +# "2019-01-01T00:00:00Z/2019-01-01T00:00:00Z" +# ), +# ("2019-01-01T00:00:00Z/2019-01-01T00:00:00", ValidationError), +# ("2019-01-01/2019-01-01", "2019-01-01T00:00:00Z/2019-01-01T23:59:59Z"), +# ("2019-01-01/2019-01-01T00:00:00Z", ValidationError) +# ] +#) +#def test_iso_datetime_range(value, expected): +# context = {} +# if expected is ValidationError: +# with pytest.raises(expected): +# validators.iso_datetime_range(value, context) +# else: +# assert validators.iso_datetime_range(value, context) == expected + + +@pytest.mark.parametrize( + "value,expected", + [ + ("en", "en"), + ("EN", "EN"), + ("eng", Invalid), + ("english", Invalid), + ("en-US", Invalid) + ] +) +def test_iso_language_code(value, expected): + context = {} + if expected is Invalid: + with pytest.raises(expected): + validators.iso_language_code(value, context) + else: + assert validators.iso_language_code(value, context) == expected diff --git a/ckan-backend-dev/src/ckanext-wri/dev-requirements.txt b/ckan-backend-dev/src/ckanext-wri/dev-requirements.txt new file mode 100644 index 000000000..02b0d40de --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/dev-requirements.txt @@ -0,0 +1,2 @@ +pytest-ckan +ckanapi==4.7 diff --git a/ckan-backend-dev/src/ckanext-wri/requirements.txt b/ckan-backend-dev/src/ckanext-wri/requirements.txt new file mode 100644 index 000000000..286d547a4 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/requirements.txt @@ -0,0 +1 @@ +pycountry==22.3.5 \ No newline at end of file diff --git a/ckan-backend-dev/src/ckanext-wri/setup.cfg b/ckan-backend-dev/src/ckanext-wri/setup.cfg new file mode 100644 index 000000000..0662cc2dc --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/setup.cfg @@ -0,0 +1,62 @@ +[metadata] +name = ckanext-wri +version = 0.0.1 +description = +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com//ckanext-wri +author = +author_email = +license = AGPL +classifiers = + Development Status :: 4 - Beta + License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+) + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 +keywords = CKAN + +[options] +packages = find: +namespace_packages = ckanext +install_requires = +include_package_data = True + +[options.entry_points] +ckan.plugins = + wri = ckanext.wri.plugin:WriPlugin + +babel.extractors = + ckan = ckan.lib.extract:extract_ckan + +[options.extras_require] + +[extract_messages] +keywords = translate isPlural +add_comments = TRANSLATORS: +output_file = ckanext/wri/i18n/ckanext-wri.pot +width = 80 + +[init_catalog] +domain = ckanext-wri +input_file = ckanext/wri/i18n/ckanext-wri.pot +output_dir = ckanext/wri/i18n + +[update_catalog] +domain = ckanext-wri +input_file = ckanext/wri/i18n/ckanext-wri.pot +output_dir = ckanext/wri/i18n +previous = true + +[compile_catalog] +domain = ckanext-wri +directory = ckanext/wri/i18n +statistics = true + +[tool:pytest] +filterwarnings = + ignore::sqlalchemy.exc.SADeprecationWarning + ignore::sqlalchemy.exc.SAWarning + ignore::DeprecationWarning +addopts = --ckan-ini test.ini diff --git a/ckan-backend-dev/src/ckanext-wri/setup.py b/ckan-backend-dev/src/ckanext-wri/setup.py new file mode 100644 index 000000000..4d26df7a3 --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/setup.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +setup( + # If you are changing from the default layout of your extension, you may + # have to change the message extractors, you can read more about babel + # message extraction at + # http://babel.pocoo.org/docs/messages/#extraction-method-mapping-and-configuration + message_extractors={ + 'ckanext': [ + ('**.py', 'python', None), + ('**.js', 'javascript', None), + ('**/templates/**.html', 'ckan', None), + ], + } +) diff --git a/ckan-backend-dev/src/ckanext-wri/test.ini b/ckan-backend-dev/src/ckanext-wri/test.ini new file mode 100644 index 000000000..3dbb393ef --- /dev/null +++ b/ckan-backend-dev/src/ckanext-wri/test.ini @@ -0,0 +1,49 @@ +[DEFAULT] +debug = false +smtp_server = localhost +error_email_from = ckan@localhost + +[app:main] +use = config:../../src/ckan/test-core.ini + +# Insert any custom config settings to be used when running your extension's +# tests here. These will override the one defined in CKAN core's test-core.ini +ckan.plugins = wri scheming_datasets +scheming.dataset_schemas = ckanext.wri.schema:ckan_dataset.yaml +scheming.presets = ckanext.wri.schema:presets.json +api_token.jwt.algorithm = RS256 +api_token.jwt.encode.secret = file:/srv/app/jwtRS256.key +api_token.jwt.decode.secret = file:/srv/app/jwtRS256.key.pub + +# Logging configuration +[loggers] +keys = root, ckan, sqlalchemy + +[handlers] +keys = console + +[formatters] +keys = generic + +[logger_root] +level = WARN +handlers = console + +[logger_ckan] +qualname = ckan +handlers = +level = INFO + +[logger_sqlalchemy] +handlers = +qualname = sqlalchemy.engine +level = WARN + +[handler_console] +class = StreamHandler +args = (sys.stderr,) +level = NOTSET +formatter = generic + +[formatter_generic] +format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s diff --git a/ckan-deployment/frontend/src/pages/_app.tsx b/ckan-deployment/frontend/src/pages/_app.tsx deleted file mode 100644 index 2843ab6e7..000000000 --- a/ckan-deployment/frontend/src/pages/_app.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { type Session } from "next-auth"; -import { SessionProvider } from "next-auth/react"; -import { type AppType } from "next/app"; - -import { api } from "@/utils/api"; - -import "@/styles/globals.css"; - -const MyApp: AppType<{ session: Session | null }> = ({ - Component, - pageProps: { session, ...pageProps }, -}) => { - return ( - - - - ); -}; - -export default api.withTRPC(MyApp); diff --git a/ckan-deployment/frontend/src/styles/globals.css b/ckan-deployment/frontend/src/styles/globals.css deleted file mode 100644 index b5c61c956..000000000 --- a/ckan-deployment/frontend/src/styles/globals.css +++ /dev/null @@ -1,3 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; diff --git a/ckan-deployment/frontend/tailwind.config.ts b/ckan-deployment/frontend/tailwind.config.ts deleted file mode 100644 index d4d3fa295..000000000 --- a/ckan-deployment/frontend/tailwind.config.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { type Config } from "tailwindcss"; - -export default { - content: ["./src/**/*.{js,ts,jsx,tsx}"], - theme: { - extend: {}, - }, - plugins: [], -} satisfies Config; diff --git a/ckanext-wri b/ckanext-wri new file mode 120000 index 000000000..2809c5950 --- /dev/null +++ b/ckanext-wri @@ -0,0 +1 @@ +ckan-backend-dev/src/ckanext-wri \ No newline at end of file diff --git a/ckan-deployment/README.md b/deployment/README.md similarity index 100% rename from ckan-deployment/README.md rename to deployment/README.md diff --git a/ckan-deployment/ckan/Dockerfile b/deployment/ckan/Dockerfile similarity index 61% rename from ckan-deployment/ckan/Dockerfile rename to deployment/ckan/Dockerfile index 79164f6a0..9b0a4fe16 100644 --- a/ckan-deployment/ckan/Dockerfile +++ b/deployment/ckan/Dockerfile @@ -1,14 +1,21 @@ FROM viderum/ckan:v2.10-dev ENV CKAN_INI /srv/app/production.ini +ENV APP_DIR=/srv/app # Install any extensions needed by your CKAN instance RUN pip3 install -e 'git+https://github.com/datopian/ckanext-scheming.git@ckan-2.10#egg=ckanext-scheming' && \ pip3 install -r 'https://raw.githubusercontent.com/datopian/ckanext-scheming/ckan-2.10/test-requirements.txt' && \ pip3 install -e 'git+https://github.com/datopian/ckanext-s3filestore.git@wri/cost-splitting-orgs#egg=ckanext-s3filestore' && \ pip3 install -r 'https://raw.githubusercontent.com/datopian/ckanext-s3filestore/wri/cost-splitting-orgs/requirements.txt' && \ - pip3 install -r 'https://raw.githubusercontent.com/datopian/ckanext-s3filestore/wri/cost-splitting-orgs/dev-requirements.txt' + pip3 install -r 'https://raw.githubusercontent.com/datopian/ckanext-s3filestore/wri/cost-splitting-orgs/dev-requirements.txt' && \ + pip3 install -e 'git+https://github.com/datopian/ckanext-auth.git@v2.9#egg=ckanext-auth' +COPY ckanext-wri ${APP_DIR}/src/ckanext-wri +USER root +RUN chown -R ckan:ckan ${APP_DIR}/src/ckanext-wri +USER ckan +RUN cd ${APP_DIR}/src/ckanext-wri && pip3 install -r requirements.txt && pip3 install -r dev-requirements.txt && pip3 install -e . #COPY patches ${APP_DIR}/patches #RUN for d in $APP_DIR/patches/*; do \ @@ -19,10 +26,19 @@ RUN pip3 install -e 'git+https://github.com/datopian/ckanext-scheming.git@ckan-2 # fi ; \ # done -ENV CKAN__PLUGINS image_view text_view webpage_view resource_proxy datatables_view datastore datapusher activity s3filestore envvars +ENV CKAN__PLUGINS image_view text_view webpage_view resource_proxy datatables_view datastore datapusher activity s3filestore scheming_datasets scheming_organizations scheming_groups wri auth envvars RUN ckan config-tool ${CKAN_INI} "ckan.plugins = ${CKAN__PLUGINS}" +USER root +RUN apk --no-cache add openssl +USER ckan + +RUN openssl genpkey -algorithm RSA -out ${APP_DIR}/jwtRS256.key && \ + openssl rsa -in ${APP_DIR}/jwtRS256.key -pubout -outform PEM -out ${APP_DIR}/jwtRS256.key.pub && \ + chown ckan:ckan ${APP_DIR}/jwtRS256.key && \ + chown ckan:ckan ${APP_DIR}/jwtRS256.key.pub + COPY setup/prerun.py.override ${APP_DIR}/prerun.py USER root RUN chmod +x ${APP_DIR}/prerun.py diff --git a/ckan-deployment/ckan/setup/prerun.py.override b/deployment/ckan/setup/prerun.py.override similarity index 100% rename from ckan-deployment/ckan/setup/prerun.py.override rename to deployment/ckan/setup/prerun.py.override diff --git a/ckan-deployment/ckan/setup/start_ckan.sh.override b/deployment/ckan/setup/start_ckan.sh.override similarity index 100% rename from ckan-deployment/ckan/setup/start_ckan.sh.override rename to deployment/ckan/setup/start_ckan.sh.override diff --git a/ckan-deployment/ckan/setup/start_ckan_development.sh.override b/deployment/ckan/setup/start_ckan_development.sh.override similarity index 100% rename from ckan-deployment/ckan/setup/start_ckan_development.sh.override rename to deployment/ckan/setup/start_ckan_development.sh.override diff --git a/ckan-deployment/frontend/.env.example b/deployment/frontend/.env.example similarity index 86% rename from ckan-deployment/frontend/.env.example rename to deployment/frontend/.env.example index fc8a3381d..de02fe3a3 100644 --- a/ckan-deployment/frontend/.env.example +++ b/deployment/frontend/.env.example @@ -13,8 +13,8 @@ # You can generate a new secret on the command line with: # openssl rand -base64 32 # https://next-auth.js.org/configuration/options#secret -NEXTAUTH_SECRET="secret" -NEXTAUTH_URL="http://localhost:3000" +#NEXTAUTH_SECRET="secret" +#NEXTAUTH_URL="http://localhost:3000" # Next Auth CKAN Login Provider -CKAN_URL="https://demo.dev.datopian.com" +#CKAN_URL="https://demo.dev.datopian.com" diff --git a/ckan-deployment/frontend/.eslintrc.cjs b/deployment/frontend/.eslintrc.cjs similarity index 100% rename from ckan-deployment/frontend/.eslintrc.cjs rename to deployment/frontend/.eslintrc.cjs diff --git a/ckan-deployment/frontend/.gitignore b/deployment/frontend/.gitignore similarity index 100% rename from ckan-deployment/frontend/.gitignore rename to deployment/frontend/.gitignore diff --git a/ckan-deployment/frontend/Dockerfile b/deployment/frontend/Dockerfile similarity index 68% rename from ckan-deployment/frontend/Dockerfile rename to deployment/frontend/Dockerfile index 5cbff83be..bedae96ab 100644 --- a/ckan-deployment/frontend/Dockerfile +++ b/deployment/frontend/Dockerfile @@ -3,9 +3,9 @@ FROM node:18 # Create app directory WORKDIR /usr/src/app -ENV NEXTAUTH_SECRET "secret" -ENV NEXTAUTH_URL "http://localhost:3000" -ENV CKAN_URL "https://demo.dev.datopian.com" +ARG NEXTAUTH_SECRET +ARG NEXTAUTH_URL +ARG CKAN_URL COPY . . diff --git a/ckan-deployment/frontend/README.md b/deployment/frontend/README.md similarity index 100% rename from ckan-deployment/frontend/README.md rename to deployment/frontend/README.md diff --git a/ckan-deployment/frontend/next.config.mjs b/deployment/frontend/next.config.mjs similarity index 74% rename from ckan-deployment/frontend/next.config.mjs rename to deployment/frontend/next.config.mjs index 61964ea73..da832ad8c 100644 --- a/ckan-deployment/frontend/next.config.mjs +++ b/deployment/frontend/next.config.mjs @@ -6,6 +6,11 @@ await import("./src/env.mjs"); /** @type {import("next").NextConfig} */ const config = { + eslint: { + // Warning: This allows production builds to successfully complete even if + // your project has ESLint errors. + ignoreDuringBuilds: true, + }, reactStrictMode: true, /** diff --git a/ckan-deployment/frontend/package-lock.json b/deployment/frontend/package-lock.json similarity index 73% rename from ckan-deployment/frontend/package-lock.json rename to deployment/frontend/package-lock.json index 6be10168f..7a4576fc9 100644 --- a/ckan-deployment/frontend/package-lock.json +++ b/deployment/frontend/package-lock.json @@ -8,27 +8,35 @@ "name": "wri-frontend", "version": "0.1.0", "dependencies": { + "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", + "@mapbox/mapbox-gl-geocoder": "^5.0.1", "@portaljs/ckan": "^0.1.0", "@t3-oss/env-nextjs": "^0.7.0", + "@tailwindcss/container-queries": "^0.1.1", "@tanstack/react-query": "^4.32.6", "@trpc/client": "^10.37.1", "@trpc/next": "^10.37.1", "@trpc/react-query": "^10.37.1", "@trpc/server": "^10.37.1", + "class-variance-authority": "^0.7.0", "ky": "^1.0.1", + "mapbox-gl": "^2.15.0", "next": "^13.5.4", "next-auth": "^4.23.0", "next-seo": "^6.1.0", "react": "18.2.0", "react-dom": "18.2.0", "react-hook-form": "^7.47.0", + "react-map-gl": "^7.1.6", "superjson": "^1.13.1", + "swiper": "^10.3.1", "ts-pattern": "^5.0.5", "zod": "^3.22.4" }, "devDependencies": { "@types/eslint": "^8.44.2", + "@types/mapbox__mapbox-gl-geocoder": "^4.7.6", "@types/node": "^18.16.0", "@types/react": "^18.2.20", "@types/react-dom": "^18.2.7", @@ -57,7 +65,6 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", - "dev": true, "engines": { "node": ">=10" }, @@ -65,6 +72,167 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@babel/code-frame": { + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "dependencies": { + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/code-frame/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/code-frame/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/code-frame/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/runtime": { "version": "7.23.1", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.1.tgz", @@ -132,6 +300,21 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@headlessui/react": { + "version": "1.7.17", + "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.17.tgz", + "integrity": "sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==", + "dependencies": { + "client-only": "^0.0.1" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "react": "^16 || ^17 || ^18", + "react-dom": "^16 || ^17 || ^18" + } + }, "node_modules/@heroicons/react": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.18.tgz", @@ -177,7 +360,6 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dev": true, "dependencies": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -191,7 +373,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "dev": true, "engines": { "node": ">=6.0.0" } @@ -200,7 +381,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "dev": true, "engines": { "node": ">=6.0.0" } @@ -208,19 +388,157 @@ "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.19", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", - "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@mapbox/fusspot": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@mapbox/fusspot/-/fusspot-0.4.0.tgz", + "integrity": "sha512-6sys1vUlhNCqMvJOqPEPSi0jc9tg7aJ//oG1A16H3PXoIt9whtNngD7UzBHUVTH15zunR/vRvMtGNVsogm1KzA==", + "dependencies": { + "is-plain-obj": "^1.1.0", + "xtend": "^4.0.1" + } + }, + "node_modules/@mapbox/geojson-rewind": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@mapbox/geojson-rewind/-/geojson-rewind-0.5.2.tgz", + "integrity": "sha512-tJaT+RbYGJYStt7wI3cq4Nl4SXxG8W7JDG5DMJu97V25RnbNg3QtQtf+KD+VLjNpWKYsRvXDNmNrBgEETr1ifA==", + "dependencies": { + "get-stream": "^6.0.1", + "minimist": "^1.2.6" + }, + "bin": { + "geojson-rewind": "geojson-rewind" + } + }, + "node_modules/@mapbox/jsonlint-lines-primitives": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz", + "integrity": "sha512-rY0o9A5ECsTQRVhv7tL/OyDpGAoUB4tTvLiW1DSzQGq4bvTPhNw1VpSNjDJc5GFZ2XuyOtSWSVN05qOtcD71qQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@mapbox/mapbox-gl-geocoder": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-geocoder/-/mapbox-gl-geocoder-5.0.1.tgz", + "integrity": "sha512-/OUL42eh4OBaIerhcwCpa27oD+u4a2xN8V7vEdsglwd8lCplFAxJCdwT9Kprli1TH5mTYsXyONmh03FwoWBWfA==", + "dependencies": { + "@mapbox/mapbox-sdk": "^0.13.3", + "events": "^3.3.0", + "lodash.debounce": "^4.0.6", + "nanoid": "^3.1.31", + "subtag": "^0.5.0", + "suggestions": "^1.6.0", + "xtend": "^4.0.1" + }, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "mapbox-gl": ">= 0.47.0 < 3.0.0" + } + }, + "node_modules/@mapbox/mapbox-gl-supported": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-supported/-/mapbox-gl-supported-2.0.1.tgz", + "integrity": "sha512-HP6XvfNIzfoMVfyGjBckjiAOQK9WfX0ywdLubuPMPv+Vqf5fj0uCbgBQYpiqcWZT6cbyyRnTSXDheT1ugvF6UQ==" + }, + "node_modules/@mapbox/mapbox-sdk": { + "version": "0.13.7", + "resolved": "https://registry.npmjs.org/@mapbox/mapbox-sdk/-/mapbox-sdk-0.13.7.tgz", + "integrity": "sha512-JZjBsAVSBv7lX7gQPOQwftBGHIUcvL/tPKFxAL+SCT7u1n+eRH052XebOTkl28pNm7Du6DpKAs1GvgUnDcFFDQ==", + "dependencies": { + "@mapbox/fusspot": "^0.4.0", + "@mapbox/parse-mapbox-token": "^0.2.0", + "@mapbox/polyline": "^1.0.0", + "eventemitter3": "^3.1.0", + "form-data": "^3.0.0", + "got": "^11.8.5", + "is-plain-obj": "^1.1.0", + "xtend": "^4.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@mapbox/parse-mapbox-token": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@mapbox/parse-mapbox-token/-/parse-mapbox-token-0.2.0.tgz", + "integrity": "sha512-BjeuG4sodYaoTygwXIuAWlZV6zUv4ZriYAQhXikzx+7DChycMUQ9g85E79Htat+AsBg+nStFALehlOhClYm5cQ==", + "dependencies": { + "base-64": "^0.1.0" + } + }, + "node_modules/@mapbox/point-geometry": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@mapbox/point-geometry/-/point-geometry-0.1.0.tgz", + "integrity": "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ==" + }, + "node_modules/@mapbox/polyline": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@mapbox/polyline/-/polyline-1.2.1.tgz", + "integrity": "sha512-sn0V18O3OzW4RCcPoUIVDWvEGQaBNH9a0y5lgqrf5hUycyw1CzrhEoxV5irzrMNXKCkw1xRsZXcaVbsVZggHXA==", + "dependencies": { + "meow": "^9.0.0" + }, + "bin": { + "polyline": "bin/polyline.bin.js" + } + }, + "node_modules/@mapbox/tiny-sdf": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-2.0.6.tgz", + "integrity": "sha512-qMqa27TLw+ZQz5Jk+RcwZGH7BQf5G/TrutJhspsca/3SHwmgKQ1iq+d3Jxz5oysPVYTGP6aXxCo5Lk9Er6YBAA==" + }, + "node_modules/@mapbox/unitbezier": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-0.0.1.tgz", + "integrity": "sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw==" + }, + "node_modules/@mapbox/vector-tile": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@mapbox/vector-tile/-/vector-tile-1.3.1.tgz", + "integrity": "sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw==", + "dependencies": { + "@mapbox/point-geometry": "~0.1.0" + } + }, + "node_modules/@mapbox/whoots-js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz", + "integrity": "sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@maplibre/maplibre-gl-style-spec": { + "version": "19.3.2", + "resolved": "https://registry.npmjs.org/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-19.3.2.tgz", + "integrity": "sha512-C2JAk64XUz9v78+bpyTk1zvgjjnDsB8CCjNumyAYdWK2dvdDtILzh1AGBMdS/llX3KaHjGYxAE5wOwfdwq4Pog==", + "dependencies": { + "@mapbox/jsonlint-lines-primitives": "~2.0.2", + "@mapbox/unitbezier": "^0.0.1", + "json-stringify-pretty-compact": "^3.0.0", + "minimist": "^1.2.8", + "rw": "^1.3.3", + "sort-object": "^3.0.3" + }, + "bin": { + "gl-style-format": "dist/gl-style-format.mjs", + "gl-style-migrate": "dist/gl-style-migrate.mjs", + "gl-style-validate": "dist/gl-style-validate.mjs" + } + }, "node_modules/@next/env": { "version": "13.5.4", "resolved": "https://registry.npmjs.org/@next/env/-/env-13.5.4.tgz", @@ -374,7 +692,6 @@ "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -387,7 +704,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, "engines": { "node": ">= 8" } @@ -396,7 +712,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -433,6 +748,17 @@ "integrity": "sha512-6i/8UoL0P5y4leBIGzvkZdS85RDMG9y1ihZzmTZQ5LdHUYmZ7pKFoj8X0236s3lusPs1Fa5HTQUpwI+UfTcmeA==", "dev": true }, + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, "node_modules/@swc/helpers": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.2.tgz", @@ -441,6 +767,17 @@ "tslib": "^2.4.0" } }, + "node_modules/@szmarczak/http-timer": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", + "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", + "dependencies": { + "defer-to-connect": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@t3-oss/env-core": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/@t3-oss/env-core/-/env-core-0.7.0.tgz", @@ -472,6 +809,14 @@ } } }, + "node_modules/@tailwindcss/container-queries": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/container-queries/-/container-queries-0.1.1.tgz", + "integrity": "sha512-p18dswChx6WnTSaJCSGx6lTmrGzNNvm2FtXmiO6AuA1V4U5REyoqwmT6kgAsIMdjo07QdAfYXHJ4hnMtfHzWgA==", + "peerDependencies": { + "tailwindcss": ">=3.2.0" + } + }, "node_modules/@tanstack/query-core": { "version": "4.36.1", "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-4.36.1.tgz", @@ -561,6 +906,17 @@ "https://trpc.io/sponsor" ] }, + "node_modules/@types/cacheable-request": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", + "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", + "dependencies": { + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" + } + }, "node_modules/@types/eslint": { "version": "8.44.4", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.4.tgz", @@ -577,6 +933,11 @@ "integrity": "sha512-VeiPZ9MMwXjO32/Xu7+OwflfmeoRwkE/qzndw42gGtgJwZopBnzy2gD//NN1+go1mADzkDcqf/KnFRSjTJ8xJA==", "dev": true }, + "node_modules/@types/geojson": { + "version": "7946.0.11", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.11.tgz", + "integrity": "sha512-L7A0AINMXQpVwxHJ4jxD6/XjZ4NDufaRlUJHjNIFKYUFBH1SvOW+neaqb0VTRSLW5suSrSu19ObFEFnfNcr+qg==" + }, "node_modules/@types/hoist-non-react-statics": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.3.tgz", @@ -586,6 +947,11 @@ "hoist-non-react-statics": "^3.3.0" } }, + "node_modules/@types/http-cache-semantics": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.2.tgz", + "integrity": "sha512-FD+nQWA2zJjh4L9+pFXqWOi0Hs1ryBCfI+985NjluQ1p8EYtoLvjLOKidXBtZ4/IcxDX4o8/E8qDS3540tNliw==" + }, "node_modules/@types/json-schema": { "version": "7.0.13", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz", @@ -598,11 +964,46 @@ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, + "node_modules/@types/keyv": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", + "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/mapbox__mapbox-gl-geocoder": { + "version": "4.7.6", + "resolved": "https://registry.npmjs.org/@types/mapbox__mapbox-gl-geocoder/-/mapbox__mapbox-gl-geocoder-4.7.6.tgz", + "integrity": "sha512-6ba8XO08Euw1m0QW2/5ZpxNSKXbzVRP7xG+Xa/SXJ094ux1iZRobFz0FZGGuXH0UTnhwdnkvsRnCWa9Kb0qGCQ==", + "dev": true, + "dependencies": { + "@types/geojson": "*", + "@types/mapbox-gl": "*" + } + }, + "node_modules/@types/mapbox-gl": { + "version": "2.7.15", + "resolved": "https://registry.npmjs.org/@types/mapbox-gl/-/mapbox-gl-2.7.15.tgz", + "integrity": "sha512-UE0dKAnfnFSut6xnoMiABVUGu/yZpwgr+houGvoW3HZ3RtYzg+NyqOMvASOc5sQf6s7O3P20z3cmtUoZecREjA==", + "dependencies": { + "@types/geojson": "*" + } + }, + "node_modules/@types/minimist": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.3.tgz", + "integrity": "sha512-ZYFzrvyWUNhaPomn80dsMNgMeXxNWZBdkuG/hWlUvXvbdUH8ZERNBGXnU87McuGcWDsyzX2aChCv/SVN348k3A==" + }, "node_modules/@types/node": { "version": "18.18.4", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.4.tgz", - "integrity": "sha512-t3rNFBgJRugIhackit2mVcLfF6IRc0JE4oeizPQL8Zrm8n2WY/0wOdpOPhdtG0V9Q2TlW/axbF1MJ6z+Yj/kKQ==", - "dev": true + "integrity": "sha512-t3rNFBgJRugIhackit2mVcLfF6IRc0JE4oeizPQL8Zrm8n2WY/0wOdpOPhdtG0V9Q2TlW/axbF1MJ6z+Yj/kKQ==" + }, + "node_modules/@types/normalize-package-data": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.2.tgz", + "integrity": "sha512-lqa4UEhhv/2sjjIQgjX8B+RBjj47eo0mzGasklVJ78UKGQY1r0VpB9XHDaZZO9qzEFDdy4MrXLuEaSmPrPSe/A==" }, "node_modules/@types/prop-types": { "version": "15.7.8", @@ -628,6 +1029,14 @@ "@types/react": "*" } }, + "node_modules/@types/responselike": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.1.tgz", + "integrity": "sha512-TiGnitEDxj2X0j+98Eqk5lv/Cij8oHd32bU4D/Yw6AOq7vvTk0gSD2GPj0G/HkvhMoVsdlhYF4yqqlyPBTM6Sg==", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/scheduler": { "version": "0.16.4", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.4.tgz", @@ -892,14 +1301,12 @@ "node_modules/any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", - "dev": true + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -911,8 +1318,7 @@ "node_modules/arg": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", - "dev": true + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" }, "node_modules/argparse": { "version": "2.0.1", @@ -929,6 +1335,14 @@ "dequal": "^2.0.3" } }, + "node_modules/arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/array-buffer-byte-length": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", @@ -1059,6 +1473,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/ast-types-flow": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", @@ -1074,6 +1504,11 @@ "has-symbols": "^1.0.3" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, "node_modules/autoprefixer": { "version": "10.4.16", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz", @@ -1144,14 +1579,17 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base-64": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", + "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==" }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true, "engines": { "node": ">=8" } @@ -1160,7 +1598,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -1170,7 +1607,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, "dependencies": { "fill-range": "^7.0.1" }, @@ -1221,6 +1657,62 @@ "node": ">=10.16.0" } }, + "node_modules/bytewise": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/bytewise/-/bytewise-1.1.0.tgz", + "integrity": "sha512-rHuuseJ9iQ0na6UDhnrRVDh8YnWVlU6xM3VH6q/+yHDeUH2zIhUzP+2/h3LIrhLDBtTqzWpE3p3tP/boefskKQ==", + "dependencies": { + "bytewise-core": "^1.2.2", + "typewise": "^1.0.3" + } + }, + "node_modules/bytewise-core": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/bytewise-core/-/bytewise-core-1.2.3.tgz", + "integrity": "sha512-nZD//kc78OOxeYtRlVk8/zXqTB4gf/nlguL1ggWA8FuchMyOxcyHR4QPQZMUmA7czC+YnaBrPUCubqAWe50DaA==", + "dependencies": { + "typewise-core": "^1.2" + } + }, + "node_modules/cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "engines": { + "node": ">=10.6.0" + } + }, + "node_modules/cacheable-request": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", + "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cacheable-request/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", @@ -1243,15 +1735,46 @@ "node": ">=6" } }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "engines": { + "node": ">=6" + } + }, "node_modules/camelcase-css": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", - "dev": true, "engines": { "node": ">= 6" } }, + "node_modules/camelcase-keys": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", + "dependencies": { + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/camelcase-keys/node_modules/quick-lru": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", + "engines": { + "node": ">=8" + } + }, "node_modules/caniuse-lite": { "version": "1.0.30001547", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001547.tgz", @@ -1291,7 +1814,6 @@ "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, "funding": [ { "type": "individual", @@ -1318,7 +1840,6 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, "dependencies": { "is-glob": "^4.0.1" }, @@ -1326,11 +1847,41 @@ "node": ">= 6" } }, + "node_modules/class-variance-authority": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.0.tgz", + "integrity": "sha512-jFI8IQw4hczaL4ALINxqLEXQbWcNjoSkloa4IaufXCJr6QawJyw7tuRysRsrE8w2p/4gGaxKIt/hX3qz/IbD1A==", + "dependencies": { + "clsx": "2.0.0" + }, + "funding": { + "url": "https://joebell.co.uk" + } + }, "node_modules/client-only": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" }, + "node_modules/clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "dependencies": { + "mimic-response": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/clsx": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz", + "integrity": "sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==", + "engines": { + "node": ">=6" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -1349,11 +1900,21 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/commander": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", - "dev": true, "engines": { "node": ">= 6" } @@ -1361,8 +1922,7 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "node_modules/cookie": { "version": "0.5.0", @@ -1400,11 +1960,15 @@ "node": ">= 8" } }, + "node_modules/csscolorparser": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/csscolorparser/-/csscolorparser-1.0.3.tgz", + "integrity": "sha512-umPSgYwZkdFoUrH5hIq5kf0wPSXiro51nPw0j2K/c83KflkPSTBGMz6NJvMB+07VlL0y7VPo6QJcDjcgKTTm3w==" + }, "node_modules/cssesc": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true, "bin": { "cssesc": "bin/cssesc" }, @@ -1440,6 +2004,62 @@ } } }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decamelize-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz", + "integrity": "sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==", + "dependencies": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decamelize-keys/node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decompress-response/node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -1454,6 +2074,14 @@ "node": ">=0.10.0" } }, + "node_modules/defer-to-connect": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "engines": { + "node": ">=10" + } + }, "node_modules/define-data-property": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.0.tgz", @@ -1485,6 +2113,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -1497,8 +2133,7 @@ "node_modules/didyoumean": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", - "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", - "dev": true + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" }, "node_modules/dir-glob": { "version": "3.0.1", @@ -1515,8 +2150,7 @@ "node_modules/dlv": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", - "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", - "dev": true + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" }, "node_modules/doctrine": { "version": "3.0.0", @@ -1530,6 +2164,11 @@ "node": ">=6.0.0" } }, + "node_modules/earcut": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/earcut/-/earcut-2.2.4.tgz", + "integrity": "sha512-/pjZsA1b4RPHbeWZQn66SWS8nZZWLQQ23oE3Eam7aroEFGEvwKAsJfZ9ytiEMycfzXWpca4FA9QIOehf7PocBQ==" + }, "node_modules/electron-to-chromium": { "version": "1.4.549", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.549.tgz", @@ -1542,6 +2181,14 @@ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dependencies": { + "once": "^1.4.0" + } + }, "node_modules/enhanced-resolve": { "version": "5.15.0", "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", @@ -1555,6 +2202,14 @@ "node": ">=10.13.0" } }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, "node_modules/es-abstract": { "version": "1.22.2", "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.2.tgz", @@ -2109,6 +2764,30 @@ "node": ">=0.10.0" } }, + "node_modules/eventemitter3": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz", + "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==" + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -2119,7 +2798,6 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", - "dev": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -2135,7 +2813,6 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, "dependencies": { "is-glob": "^4.0.1" }, @@ -2159,7 +2836,6 @@ "version": "1.15.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "dev": true, "dependencies": { "reusify": "^1.0.4" } @@ -2180,7 +2856,6 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, "dependencies": { "to-regex-range": "^5.0.1" }, @@ -2233,6 +2908,19 @@ "is-callable": "^1.1.3" } }, + "node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/formik": { "version": "2.4.5", "resolved": "https://registry.npmjs.org/formik/-/formik-2.4.5.tgz", @@ -2273,14 +2961,12 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, "hasInstallScript": true, "optional": true, "os": [ @@ -2323,6 +3009,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/fuzzy": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/fuzzy/-/fuzzy-0.1.3.tgz", + "integrity": "sha512-/gZffu4ykarLrCiP3Ygsa86UAo1E5vEVlvTrpkKywXSbP9Xhln3oSp9QSV57gEq3JFFpGJ4GZ+5zdEp3FcUh4w==", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/geojson-vt": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/geojson-vt/-/geojson-vt-3.2.1.tgz", + "integrity": "sha512-EvGQQi/zPrDA6zr6BnJD/YhwAkBP8nnJ9emh3EnHQKVMfg/MRVtPbMYdgVy/IaEmn4UfagD2a6fafPDL5hbtwg==" + }, "node_modules/get-intrinsic": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", @@ -2338,6 +3037,17 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-symbol-description": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", @@ -2366,6 +3076,19 @@ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, + "node_modules/get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gl-matrix": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.3.tgz", + "integrity": "sha512-wcCp8vu8FT22BnvKVPjXa/ICBWRq/zjFfdofZy1WSpQZpphblv12/bOQLBC1rMM7SGOFS9ltVmKOHil5+Ml7gA==" + }, "node_modules/glob": { "version": "7.1.7", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", @@ -2390,7 +3113,6 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, "dependencies": { "is-glob": "^4.0.3" }, @@ -2465,6 +3187,30 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/got": { + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "dependencies": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=10.19.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", @@ -2476,11 +3222,23 @@ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, + "node_modules/grid-index": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/grid-index/-/grid-index-1.1.0.tgz", + "integrity": "sha512-HZRwumpOGUrHyxO5bqKZL0B0GlUpwtCAzZ42sgxUPniu33R1LSFH5yrIcBCHjkctCAh3mtWKcKd9J4vDDdeVHA==" + }, + "node_modules/hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "engines": { + "node": ">=6" + } + }, "node_modules/has": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", - "dev": true, "engines": { "node": ">= 0.4.0" } @@ -2562,6 +3320,53 @@ "react-is": "^16.7.0" } }, + "node_modules/hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" + }, + "node_modules/http2-wrapper": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "dependencies": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + }, + "engines": { + "node": ">=10.19.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/ignore": { "version": "5.2.4", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", @@ -2596,11 +3401,18 @@ "node": ">=0.8.19" } }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "engines": { + "node": ">=8" + } + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -2609,8 +3421,7 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/internal-slot": { "version": "1.0.5", @@ -2640,6 +3451,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, "node_modules/is-async-function": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", @@ -2671,7 +3487,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, "dependencies": { "binary-extensions": "^2.0.0" }, @@ -2711,7 +3526,6 @@ "version": "2.13.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", - "dev": true, "dependencies": { "has": "^1.0.3" }, @@ -2734,11 +3548,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -2774,7 +3595,6 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, "dependencies": { "is-extglob": "^2.1.1" }, @@ -2807,7 +3627,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, "engines": { "node": ">=0.12.0" } @@ -2836,6 +3655,25 @@ "node": ">=8" } }, + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -2975,6 +3813,14 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/iterator.prototype": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz", @@ -2992,7 +3838,6 @@ "version": "1.20.0", "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.20.0.tgz", "integrity": "sha512-3TV69ZbrvV6U5DfQimop50jE9Dl6J8O1ja1dvBbMba/sZ3YBEQqJ2VZRoQPVnhlzjNtU1vaXRZVrVjU4qtm8yA==", - "dev": true, "bin": { "jiti": "bin/jiti.js" } @@ -3025,8 +3870,12 @@ "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" }, "node_modules/json-schema-traverse": { "version": "0.4.1", @@ -3040,6 +3889,11 @@ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, + "node_modules/json-stringify-pretty-compact": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-stringify-pretty-compact/-/json-stringify-pretty-compact-3.0.0.tgz", + "integrity": "sha512-Rc2suX5meI0S3bfdZuA7JMFBGkJ875ApfVyq2WHELjBiiG22My/l7/8zPpH/CfFVQHuVLd8NLR0nv6vi0BYYKA==" + }, "node_modules/json5": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", @@ -3067,15 +3921,27 @@ "node": ">=4.0" } }, + "node_modules/kdbush": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.0.2.tgz", + "integrity": "sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA==" + }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, "dependencies": { "json-buffer": "3.0.1" } }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/ky": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/ky/-/ky-1.0.1.tgz", @@ -3119,7 +3985,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", - "dev": true, "engines": { "node": ">=10" } @@ -3127,8 +3992,7 @@ "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, "node_modules/locate-path": { "version": "6.0.0", @@ -3155,6 +4019,11 @@ "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -3172,6 +4041,14 @@ "loose-envify": "cli.js" } }, + "node_modules/lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "engines": { + "node": ">=8" + } + }, "node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -3183,11 +4060,86 @@ "node": ">=10" } }, + "node_modules/map-obj": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mapbox-gl": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-2.15.0.tgz", + "integrity": "sha512-fjv+aYrd5TIHiL7wRa+W7KjtUqKWziJMZUkK5hm8TvJ3OLeNPx4NmW/DgfYhd/jHej8wWL+QJBDbdMMAKvNC0A==", + "dependencies": { + "@mapbox/geojson-rewind": "^0.5.2", + "@mapbox/jsonlint-lines-primitives": "^2.0.2", + "@mapbox/mapbox-gl-supported": "^2.0.1", + "@mapbox/point-geometry": "^0.1.0", + "@mapbox/tiny-sdf": "^2.0.6", + "@mapbox/unitbezier": "^0.0.1", + "@mapbox/vector-tile": "^1.3.1", + "@mapbox/whoots-js": "^3.1.0", + "csscolorparser": "~1.0.3", + "earcut": "^2.2.4", + "geojson-vt": "^3.2.1", + "gl-matrix": "^3.4.3", + "grid-index": "^1.1.0", + "kdbush": "^4.0.1", + "murmurhash-js": "^1.0.0", + "pbf": "^3.2.1", + "potpack": "^2.0.0", + "quickselect": "^2.0.0", + "rw": "^1.3.3", + "supercluster": "^8.0.0", + "tinyqueue": "^2.0.3", + "vt-pbf": "^3.1.3" + } + }, + "node_modules/meow": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", + "integrity": "sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==", + "dependencies": { + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize": "^1.2.0", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.18.0", + "yargs-parser": "^20.2.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/type-fest": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, "engines": { "node": ">= 8" } @@ -3196,7 +4148,6 @@ "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, "dependencies": { "braces": "^3.0.2", "picomatch": "^2.3.1" @@ -3205,11 +4156,45 @@ "node": ">=8.6" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "engines": { + "node": ">=4" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -3221,22 +4206,38 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/minimist-options": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", + "dependencies": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, + "node_modules/murmurhash-js": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/murmurhash-js/-/murmurhash-js-1.0.0.tgz", + "integrity": "sha512-TvmkNhkv8yct0SVBSy+o8wYzXjE4Zz3PCesbfs8HiCXXdcTuocApFv11UWlNFWKYsP2okqrhb7JNlSm9InBhIw==" + }, "node_modules/mz": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", - "dev": true, "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", @@ -3354,11 +4355,24 @@ "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", "dev": true }, + "node_modules/normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dependencies": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -3372,6 +4386,17 @@ "node": ">=0.10.0" } }, + "node_modules/normalize-url": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", + "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/oauth": { "version": "0.9.15", "resolved": "https://registry.npmjs.org/oauth/-/oauth-0.9.15.tgz", @@ -3381,7 +4406,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -3515,7 +4539,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, "dependencies": { "wrappy": "1" } @@ -3551,6 +4574,14 @@ "node": ">= 0.8.0" } }, + "node_modules/p-cancelable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", + "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", + "engines": { + "node": ">=8" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -3581,6 +4612,14 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" + } + }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -3593,11 +4632,27 @@ "node": ">=6" } }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, "engines": { "node": ">=8" } @@ -3606,7 +4661,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -3623,8 +4677,7 @@ "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "node_modules/path-type": { "version": "4.0.0", @@ -3635,6 +4688,18 @@ "node": ">=8" } }, + "node_modules/pbf": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/pbf/-/pbf-3.2.1.tgz", + "integrity": "sha512-ClrV7pNOn7rtmoQVF4TS1vyU0WhYRnP92fzbfF75jAIwpnzdJXf8iTd4CMEqO4yUenH6NDqLiwjqlh6QgZzgLQ==", + "dependencies": { + "ieee754": "^1.1.12", + "resolve-protobuf-schema": "^2.1.0" + }, + "bin": { + "pbf": "bin/pbf" + } + }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -3644,7 +4709,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, "engines": { "node": ">=8.6" }, @@ -3656,7 +4720,6 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -3665,7 +4728,6 @@ "version": "4.0.6", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", - "dev": true, "engines": { "node": ">= 6" } @@ -3701,7 +4763,6 @@ "version": "15.1.0", "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", - "dev": true, "dependencies": { "postcss-value-parser": "^4.0.0", "read-cache": "^1.0.0", @@ -3718,7 +4779,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", - "dev": true, "dependencies": { "camelcase-css": "^2.0.1" }, @@ -3737,7 +4797,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz", "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==", - "dev": true, "dependencies": { "lilconfig": "^2.0.5", "yaml": "^2.1.1" @@ -3766,7 +4825,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz", "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==", - "dev": true, "dependencies": { "postcss-selector-parser": "^6.0.11" }, @@ -3785,7 +4843,6 @@ "version": "6.0.13", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", - "dev": true, "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -3797,8 +4854,12 @@ "node_modules/postcss-value-parser": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", - "dev": true + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" + }, + "node_modules/potpack": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/potpack/-/potpack-2.0.0.tgz", + "integrity": "sha512-Q+/tYsFU9r7xoOJ+y/ZTtdVQwTWfzjbiXBDMM/JKUux3+QPP02iUuIoeBQ+Ot6oEDlC+/PGjB/5A3K7KKb7hcw==" }, "node_modules/preact": { "version": "10.18.1", @@ -3932,6 +4993,20 @@ "react-is": "^16.13.1" } }, + "node_modules/protocol-buffers-schema": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.6.0.tgz", + "integrity": "sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw==" + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, "node_modules/punycode": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", @@ -3945,7 +5020,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, "funding": [ { "type": "github", @@ -3961,6 +5035,22 @@ } ] }, + "node_modules/quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/quickselect": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-2.0.0.tgz", + "integrity": "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==" + }, "node_modules/react": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", @@ -4009,6 +5099,29 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, + "node_modules/react-map-gl": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/react-map-gl/-/react-map-gl-7.1.6.tgz", + "integrity": "sha512-9XbrvpFF67Fyi+e6vRLJFnGpo3UF6ZHifIa8cS/wUYSsnv9sVyzGsN++FJy57zkz3Jh3kmf0xKZemR8K0FZLVw==", + "dependencies": { + "@maplibre/maplibre-gl-style-spec": "^19.2.1", + "@types/mapbox-gl": ">=1.0.0" + }, + "peerDependencies": { + "mapbox-gl": ">=1.13.0", + "maplibre-gl": ">=1.13.0", + "react": ">=16.3.0", + "react-dom": ">=16.3.0" + }, + "peerDependenciesMeta": { + "mapbox-gl": { + "optional": true + }, + "maplibre-gl": { + "optional": true + } + } + }, "node_modules/react-ssr-prepass": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/react-ssr-prepass/-/react-ssr-prepass-1.5.0.tgz", @@ -4021,16 +5134,132 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", - "dev": true, "dependencies": { "pify": "^2.3.0" } }, + "node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg/node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" + }, + "node_modules/read-pkg/node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/read-pkg/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "engines": { + "node": ">=8" + } + }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, "dependencies": { "picomatch": "^2.2.1" }, @@ -4038,6 +5267,18 @@ "node": ">=8.10.0" } }, + "node_modules/redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/reflect.getprototypeof": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz", @@ -4084,7 +5325,6 @@ "version": "1.22.8", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dev": true, "dependencies": { "is-core-module": "^2.13.0", "path-parse": "^1.0.7", @@ -4097,6 +5337,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-alpn": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" + }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -4115,11 +5360,29 @@ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, + "node_modules/resolve-protobuf-schema": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz", + "integrity": "sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==", + "dependencies": { + "protocol-buffers-schema": "^3.3.1" + } + }, + "node_modules/responselike": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", + "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", + "dependencies": { + "lowercase-keys": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -4144,7 +5407,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, "funding": [ { "type": "github", @@ -4163,6 +5425,11 @@ "queue-microtask": "^1.2.2" } }, + "node_modules/rw": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", + "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==" + }, "node_modules/safe-array-concat": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", @@ -4207,7 +5474,6 @@ "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -4232,6 +5498,20 @@ "node": ">= 0.4" } }, + "node_modules/set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dependencies": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -4276,6 +5556,38 @@ "node": ">=8" } }, + "node_modules/sort-asc": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/sort-asc/-/sort-asc-0.2.0.tgz", + "integrity": "sha512-umMGhjPeHAI6YjABoSTrFp2zaBtXBej1a0yKkuMUyjjqu6FJsTF+JYwCswWDg+zJfk/5npWUUbd33HH/WLzpaA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sort-desc": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/sort-desc/-/sort-desc-0.2.0.tgz", + "integrity": "sha512-NqZqyvL4VPW+RAxxXnB8gvE1kyikh8+pR+T+CXLksVRN9eiQqkQlPwqWYU0mF9Jm7UnctShlxLyAt1CaBOTL1w==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sort-object": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/sort-object/-/sort-object-3.0.3.tgz", + "integrity": "sha512-nK7WOY8jik6zaG9CRwZTaD5O7ETWDLZYMM12pqY8htll+7dYeqGfEUPcUBHOpSJg2vJOrvFIY2Dl5cX2ih1hAQ==", + "dependencies": { + "bytewise": "^1.1.0", + "get-value": "^2.0.2", + "is-extendable": "^0.1.1", + "sort-asc": "^0.2.0", + "sort-desc": "^0.2.0", + "union-value": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/source-map-js": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", @@ -4284,6 +5596,68 @@ "node": ">=0.10.0" } }, + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.16", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz", + "integrity": "sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==" + }, + "node_modules/split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dependencies": { + "extend-shallow": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split-string/node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split-string/node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/streamsearch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", @@ -4378,6 +5752,17 @@ "node": ">=4" } }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -4412,11 +5797,15 @@ } } }, + "node_modules/subtag": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/subtag/-/subtag-0.5.0.tgz", + "integrity": "sha512-CaIBcTSb/nyk4xiiSOtZYz1B+F12ZxW8NEp54CdT+84vmh/h4sUnHGC6+KQXUfED8u22PQjCYWfZny8d2ELXwg==" + }, "node_modules/sucrase": { "version": "3.34.0", "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.34.0.tgz", "integrity": "sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==", - "dev": true, "dependencies": { "@jridgewell/gen-mapping": "^0.3.2", "commander": "^4.0.0", @@ -4438,7 +5827,6 @@ "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -4454,6 +5842,23 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/suggestions": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/suggestions/-/suggestions-1.7.1.tgz", + "integrity": "sha512-gl5YPAhPYl07JZ5obiD9nTZsg4SyZswAQU/NNtnYiSnFkI3+ZHuXAiEsYm7AaZ71E0LXSFaGVaulGSWN3Gd71A==", + "dependencies": { + "fuzzy": "^0.1.1", + "xtend": "^4.0.0" + } + }, + "node_modules/supercluster": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/supercluster/-/supercluster-8.0.1.tgz", + "integrity": "sha512-IiOea5kJ9iqzD2t7QJq/cREyLHTtSmUT6gQsweojg9WH2sYJqZK9SswTu6jrscO6D1G5v5vYZ9ru/eq85lXeZQ==", + "dependencies": { + "kdbush": "^4.0.2" + } + }, "node_modules/superjson": { "version": "1.13.3", "resolved": "https://registry.npmjs.org/superjson/-/superjson-1.13.3.tgz", @@ -4481,7 +5886,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -4489,6 +5893,24 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/swiper": { + "version": "10.3.1", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-10.3.1.tgz", + "integrity": "sha512-24Wk3YUdZHxjc9faID97GTu6xnLNia+adMt6qMTZG/HgdSUt4fS0REsGUXJOgpTED0Amh/j+gRGQxsLayJUlBQ==", + "funding": [ + { + "type": "patreon", + "url": "https://www.patreon.com/swiperjs" + }, + { + "type": "open_collective", + "url": "http://opencollective.com/swiper" + } + ], + "engines": { + "node": ">= 4.7.0" + } + }, "node_modules/swr": { "version": "2.2.4", "resolved": "https://registry.npmjs.org/swr/-/swr-2.2.4.tgz", @@ -4505,7 +5927,6 @@ "version": "3.3.3", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.3.tgz", "integrity": "sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==", - "dev": true, "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", @@ -4542,7 +5963,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", - "dev": true, "engines": { "node": ">= 6" } @@ -4566,7 +5986,6 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", - "dev": true, "dependencies": { "any-promise": "^1.0.0" } @@ -4575,7 +5994,6 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", - "dev": true, "dependencies": { "thenify": ">= 3.1.0 < 4" }, @@ -4593,11 +6011,15 @@ "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" }, + "node_modules/tinyqueue": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-2.0.3.tgz", + "integrity": "sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA==" + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, "dependencies": { "is-number": "^7.0.0" }, @@ -4605,6 +6027,14 @@ "node": ">=8.0" } }, + "node_modules/trim-newlines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", + "engines": { + "node": ">=8" + } + }, "node_modules/ts-api-utils": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", @@ -4620,8 +6050,7 @@ "node_modules/ts-interface-checker": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", - "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", - "dev": true + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==" }, "node_modules/ts-pattern": { "version": "5.0.5", @@ -4747,6 +6176,19 @@ "node": ">=14.17" } }, + "node_modules/typewise": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typewise/-/typewise-1.0.3.tgz", + "integrity": "sha512-aXofE06xGhaQSPzt8hlTY+/YWQhm9P0jYUp1f2XtmW/3Bk0qzXcyFWAtPoo2uTGQj1ZwbDuSyuxicq+aDo8lCQ==", + "dependencies": { + "typewise-core": "^1.2.0" + } + }, + "node_modules/typewise-core": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/typewise-core/-/typewise-core-1.2.0.tgz", + "integrity": "sha512-2SCC/WLzj2SbUwzFOzqMCkz5amXLlxtJqDKTICqg30x+2DZxcfZN2MvQZmGfXWKNWaKK9pBPsvkcwv8bF/gxKg==" + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -4762,6 +6204,20 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dependencies": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/update-browserslist-db": { "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", @@ -4812,8 +6268,7 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, "node_modules/uuid": { "version": "8.3.2", @@ -4823,6 +6278,25 @@ "uuid": "dist/bin/uuid" } }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/vt-pbf": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/vt-pbf/-/vt-pbf-3.1.3.tgz", + "integrity": "sha512-2LzDFzt0mZKZ9IpVF2r69G9bXaP2Q2sArJCmcCgvfTdCCZzSyz4aCLoQyUilu37Ll56tCblIZrXFIjNUpGIlmA==", + "dependencies": { + "@mapbox/point-geometry": "0.1.0", + "@mapbox/vector-tile": "^1.3.1", + "pbf": "^3.2.1" + } + }, "node_modules/watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", @@ -4929,8 +6403,15 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } }, "node_modules/yallist": { "version": "4.0.0", @@ -4941,11 +6422,18 @@ "version": "2.3.2", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.2.tgz", "integrity": "sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==", - "dev": true, "engines": { "node": ">= 14" } }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "engines": { + "node": ">=10" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/ckan-deployment/frontend/package.json b/deployment/frontend/package.json similarity index 81% rename from ckan-deployment/frontend/package.json rename to deployment/frontend/package.json index bf9297e8f..a9f15f814 100644 --- a/ckan-deployment/frontend/package.json +++ b/deployment/frontend/package.json @@ -9,27 +9,35 @@ "start": "next start" }, "dependencies": { + "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", + "@mapbox/mapbox-gl-geocoder": "^5.0.1", "@portaljs/ckan": "^0.1.0", "@t3-oss/env-nextjs": "^0.7.0", + "@tailwindcss/container-queries": "^0.1.1", "@tanstack/react-query": "^4.32.6", "@trpc/client": "^10.37.1", "@trpc/next": "^10.37.1", "@trpc/react-query": "^10.37.1", "@trpc/server": "^10.37.1", + "class-variance-authority": "^0.7.0", "ky": "^1.0.1", + "mapbox-gl": "^2.15.0", "next": "^13.5.4", "next-auth": "^4.23.0", "next-seo": "^6.1.0", "react": "18.2.0", "react-dom": "18.2.0", "react-hook-form": "^7.47.0", + "react-map-gl": "^7.1.6", "superjson": "^1.13.1", + "swiper": "^10.3.1", "ts-pattern": "^5.0.5", "zod": "^3.22.4" }, "devDependencies": { "@types/eslint": "^8.44.2", + "@types/mapbox__mapbox-gl-geocoder": "^4.7.6", "@types/node": "^18.16.0", "@types/react": "^18.2.20", "@types/react-dom": "^18.2.7", diff --git a/ckan-deployment/frontend/postcss.config.cjs b/deployment/frontend/postcss.config.cjs similarity index 100% rename from ckan-deployment/frontend/postcss.config.cjs rename to deployment/frontend/postcss.config.cjs diff --git a/ckan-deployment/frontend/prettier.config.mjs b/deployment/frontend/prettier.config.mjs similarity index 100% rename from ckan-deployment/frontend/prettier.config.mjs rename to deployment/frontend/prettier.config.mjs diff --git a/ckan-deployment/frontend/public/favicon.ico b/deployment/frontend/public/favicon.ico similarity index 100% rename from ckan-deployment/frontend/public/favicon.ico rename to deployment/frontend/public/favicon.ico diff --git a/deployment/frontend/public/icons/Framechart.svg b/deployment/frontend/public/icons/Framechart.svg new file mode 100644 index 000000000..cea4efd36 --- /dev/null +++ b/deployment/frontend/public/icons/Framechart.svg @@ -0,0 +1,3 @@ + + + diff --git a/deployment/frontend/public/icons/Framelocation.svg b/deployment/frontend/public/icons/Framelocation.svg new file mode 100644 index 000000000..170ed94d2 --- /dev/null +++ b/deployment/frontend/public/icons/Framelocation.svg @@ -0,0 +1,4 @@ + + + + diff --git a/deployment/frontend/public/icons/add.svg b/deployment/frontend/public/icons/add.svg new file mode 100644 index 000000000..f8debb9f7 --- /dev/null +++ b/deployment/frontend/public/icons/add.svg @@ -0,0 +1,3 @@ + + + diff --git a/deployment/frontend/public/icons/bell.svg b/deployment/frontend/public/icons/bell.svg new file mode 100644 index 000000000..7975a6923 --- /dev/null +++ b/deployment/frontend/public/icons/bell.svg @@ -0,0 +1,3 @@ + + + diff --git a/deployment/frontend/public/icons/edit.svg b/deployment/frontend/public/icons/edit.svg new file mode 100644 index 000000000..ef443272d --- /dev/null +++ b/deployment/frontend/public/icons/edit.svg @@ -0,0 +1,3 @@ + + + diff --git a/deployment/frontend/public/icons/fb.svg b/deployment/frontend/public/icons/fb.svg new file mode 100644 index 000000000..5a7b287cd --- /dev/null +++ b/deployment/frontend/public/icons/fb.svg @@ -0,0 +1,3 @@ + + + diff --git a/deployment/frontend/public/icons/globe.svg b/deployment/frontend/public/icons/globe.svg new file mode 100644 index 000000000..5d9d1850b --- /dev/null +++ b/deployment/frontend/public/icons/globe.svg @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/deployment/frontend/public/icons/linkedin.svg b/deployment/frontend/public/icons/linkedin.svg new file mode 100644 index 000000000..af80340a8 --- /dev/null +++ b/deployment/frontend/public/icons/linkedin.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/deployment/frontend/public/icons/mail.svg b/deployment/frontend/public/icons/mail.svg new file mode 100644 index 000000000..7469e1c14 --- /dev/null +++ b/deployment/frontend/public/icons/mail.svg @@ -0,0 +1,4 @@ + + + + diff --git a/deployment/frontend/public/icons/table.svg b/deployment/frontend/public/icons/table.svg new file mode 100644 index 000000000..4a053cb86 --- /dev/null +++ b/deployment/frontend/public/icons/table.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/deployment/frontend/public/icons/time.svg b/deployment/frontend/public/icons/time.svg new file mode 100644 index 000000000..8a42a2677 --- /dev/null +++ b/deployment/frontend/public/icons/time.svg @@ -0,0 +1,3 @@ + + + diff --git a/deployment/frontend/public/icons/update.svg b/deployment/frontend/public/icons/update.svg new file mode 100644 index 000000000..6684de571 --- /dev/null +++ b/deployment/frontend/public/icons/update.svg @@ -0,0 +1,3 @@ + + + diff --git a/deployment/frontend/public/icons/x.svg b/deployment/frontend/public/icons/x.svg new file mode 100644 index 000000000..12b46966a --- /dev/null +++ b/deployment/frontend/public/icons/x.svg @@ -0,0 +1,3 @@ + + + diff --git a/deployment/frontend/public/images/WRI_logo_4c.png b/deployment/frontend/public/images/WRI_logo_4c.png new file mode 100644 index 000000000..e18becfb3 Binary files /dev/null and b/deployment/frontend/public/images/WRI_logo_4c.png differ diff --git a/deployment/frontend/public/images/bg.png b/deployment/frontend/public/images/bg.png new file mode 100644 index 000000000..a5faca1a4 Binary files /dev/null and b/deployment/frontend/public/images/bg.png differ diff --git a/deployment/frontend/public/images/datopian.png b/deployment/frontend/public/images/datopian.png new file mode 100644 index 000000000..fcc280671 Binary files /dev/null and b/deployment/frontend/public/images/datopian.png differ diff --git a/deployment/frontend/public/images/map.png b/deployment/frontend/public/images/map.png new file mode 100644 index 000000000..dd35f1e6d Binary files /dev/null and b/deployment/frontend/public/images/map.png differ diff --git a/deployment/frontend/public/images/map1.png b/deployment/frontend/public/images/map1.png new file mode 100644 index 000000000..08c4740e9 Binary files /dev/null and b/deployment/frontend/public/images/map1.png differ diff --git a/deployment/frontend/public/images/map2.png b/deployment/frontend/public/images/map2.png new file mode 100644 index 000000000..ae5e3d2e9 Binary files /dev/null and b/deployment/frontend/public/images/map2.png differ diff --git a/deployment/frontend/public/images/map3.png b/deployment/frontend/public/images/map3.png new file mode 100644 index 000000000..f885e2596 Binary files /dev/null and b/deployment/frontend/public/images/map3.png differ diff --git a/deployment/frontend/public/images/penguine.png b/deployment/frontend/public/images/penguine.png new file mode 100644 index 000000000..d7c62c1d9 Binary files /dev/null and b/deployment/frontend/public/images/penguine.png differ diff --git a/deployment/frontend/public/images/placeholders/teams/team1.png b/deployment/frontend/public/images/placeholders/teams/team1.png new file mode 100644 index 000000000..95504d063 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/teams/team1.png differ diff --git a/deployment/frontend/public/images/placeholders/teams/team2.png b/deployment/frontend/public/images/placeholders/teams/team2.png new file mode 100644 index 000000000..36bd96ba2 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/teams/team2.png differ diff --git a/deployment/frontend/public/images/placeholders/teams/team3.png b/deployment/frontend/public/images/placeholders/teams/team3.png new file mode 100644 index 000000000..c31f5aeca Binary files /dev/null and b/deployment/frontend/public/images/placeholders/teams/team3.png differ diff --git a/deployment/frontend/public/images/placeholders/teams/team4.png b/deployment/frontend/public/images/placeholders/teams/team4.png new file mode 100644 index 000000000..122d9ba39 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/teams/team4.png differ diff --git a/deployment/frontend/public/images/placeholders/teams/team5.png b/deployment/frontend/public/images/placeholders/teams/team5.png new file mode 100644 index 000000000..2e6cdd3f5 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/teams/team5.png differ diff --git a/deployment/frontend/public/images/placeholders/teams/team6.png b/deployment/frontend/public/images/placeholders/teams/team6.png new file mode 100644 index 000000000..aba487bfd Binary files /dev/null and b/deployment/frontend/public/images/placeholders/teams/team6.png differ diff --git a/deployment/frontend/public/images/placeholders/teams/team7.png b/deployment/frontend/public/images/placeholders/teams/team7.png new file mode 100644 index 000000000..cf0b47b70 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/teams/team7.png differ diff --git a/deployment/frontend/public/images/placeholders/teams/team8.png b/deployment/frontend/public/images/placeholders/teams/team8.png new file mode 100644 index 000000000..e2b778d78 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/teams/team8.png differ diff --git a/deployment/frontend/public/images/placeholders/topics/topic1.png b/deployment/frontend/public/images/placeholders/topics/topic1.png new file mode 100644 index 000000000..9b569b863 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/topics/topic1.png differ diff --git a/deployment/frontend/public/images/placeholders/topics/topic2.png b/deployment/frontend/public/images/placeholders/topics/topic2.png new file mode 100644 index 000000000..d3d838353 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/topics/topic2.png differ diff --git a/deployment/frontend/public/images/placeholders/topics/topic3.png b/deployment/frontend/public/images/placeholders/topics/topic3.png new file mode 100644 index 000000000..99127ee5d Binary files /dev/null and b/deployment/frontend/public/images/placeholders/topics/topic3.png differ diff --git a/deployment/frontend/public/images/placeholders/topics/topic4.png b/deployment/frontend/public/images/placeholders/topics/topic4.png new file mode 100644 index 000000000..7826523d1 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/topics/topic4.png differ diff --git a/deployment/frontend/public/images/placeholders/topics/topic5.png b/deployment/frontend/public/images/placeholders/topics/topic5.png new file mode 100644 index 000000000..47f218ce5 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/topics/topic5.png differ diff --git a/deployment/frontend/public/images/placeholders/topics/topic6.png b/deployment/frontend/public/images/placeholders/topics/topic6.png new file mode 100644 index 000000000..4b89ba333 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/topics/topic6.png differ diff --git a/deployment/frontend/public/images/placeholders/topics/topic7.png b/deployment/frontend/public/images/placeholders/topics/topic7.png new file mode 100644 index 000000000..846553165 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/topics/topic7.png differ diff --git a/deployment/frontend/public/images/placeholders/topics/topic8.png b/deployment/frontend/public/images/placeholders/topics/topic8.png new file mode 100644 index 000000000..62cf8a5c4 Binary files /dev/null and b/deployment/frontend/public/images/placeholders/topics/topic8.png differ diff --git a/deployment/frontend/public/images/topics/1.png b/deployment/frontend/public/images/topics/1.png new file mode 100644 index 000000000..30b6ecc39 Binary files /dev/null and b/deployment/frontend/public/images/topics/1.png differ diff --git a/deployment/frontend/public/images/topics/2.png b/deployment/frontend/public/images/topics/2.png new file mode 100644 index 000000000..f44cd1405 Binary files /dev/null and b/deployment/frontend/public/images/topics/2.png differ diff --git a/deployment/frontend/public/images/topics/3.png b/deployment/frontend/public/images/topics/3.png new file mode 100644 index 000000000..69b757a89 Binary files /dev/null and b/deployment/frontend/public/images/topics/3.png differ diff --git a/deployment/frontend/public/images/topics/4.png b/deployment/frontend/public/images/topics/4.png new file mode 100644 index 000000000..475be0cf7 Binary files /dev/null and b/deployment/frontend/public/images/topics/4.png differ diff --git a/deployment/frontend/public/images/topics/5.png b/deployment/frontend/public/images/topics/5.png new file mode 100644 index 000000000..f0cbde1ba Binary files /dev/null and b/deployment/frontend/public/images/topics/5.png differ diff --git a/deployment/frontend/public/images/topics/6.png b/deployment/frontend/public/images/topics/6.png new file mode 100644 index 000000000..f39b7f23a Binary files /dev/null and b/deployment/frontend/public/images/topics/6.png differ diff --git a/deployment/frontend/public/images/topics/7.png b/deployment/frontend/public/images/topics/7.png new file mode 100644 index 000000000..5375fa8bc Binary files /dev/null and b/deployment/frontend/public/images/topics/7.png differ diff --git a/deployment/frontend/src/components/Card.tsx b/deployment/frontend/src/components/Card.tsx new file mode 100644 index 000000000..2f7990f68 --- /dev/null +++ b/deployment/frontend/src/components/Card.tsx @@ -0,0 +1,50 @@ +import React from "react"; +import { + ChartBarIcon, + GlobeAltIcon, + TableCellsIcon, +} from "@heroicons/react/20/solid"; +import { ClockIcon, MapPinIcon } from "@heroicons/react/24/outline"; +import Image from "next/image"; + +export default function Card() { + return ( +
+
+ LAND AND CARBON LAB +
+

Title of the dataset goes here lorem ipsum.

+
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?
+
+
+
+ eye +
+
+ 2020 - 2023 +
+
+
+
+
+ comment +
+
+ Sub-regional +
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+ ); +} diff --git a/deployment/frontend/src/components/Carousel.tsx b/deployment/frontend/src/components/Carousel.tsx new file mode 100644 index 000000000..0e42bba14 --- /dev/null +++ b/deployment/frontend/src/components/Carousel.tsx @@ -0,0 +1,59 @@ + + +import 'swiper/css'; +import 'swiper/css/navigation'; +import 'swiper/css/pagination'; +import { Swiper } from 'swiper/react'; +import { Navigation } from "swiper/modules"; +import { SwiperOptions } from 'swiper/types'; + +type CarouselProps = { + children: React.ReactNode; + identifier: string; + breakpoints?: { + [width: number]: SwiperOptions; + [ratio: string]: SwiperOptions; + }; +} + +export default function Carousel({ children, identifier, breakpoints }: CarouselProps) { + const prevEl = `.nav-prev-button${identifier ? '--' + identifier : ''}`; + const nextEl = `.nav-next-button${identifier ? '--' + identifier : ''}`; + // const [swiper, setSwiper] = useState(null);; + return ( + <> + + {children} + + + ); +}; diff --git a/deployment/frontend/src/components/HighlightCard.tsx b/deployment/frontend/src/components/HighlightCard.tsx new file mode 100644 index 000000000..a407d1843 --- /dev/null +++ b/deployment/frontend/src/components/HighlightCard.tsx @@ -0,0 +1,61 @@ +import React from "react"; +import Image from "next/image"; +import { ChartBarIcon, GlobeAltIcon, TableCellsIcon } from "@heroicons/react/20/solid"; + +export interface HiglightProps { + title: string; + description: string; + date: string; + location: string; + tag: string; + img: string; +} + +export default function HighlightCard({ + highlight, +}: { + highlight: HiglightProps; +}) { + return ( +
+
+ higlight +
+
+ FORESTS +
+

Title of the dataset goes here lorem ipsum.

+
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?
+
+
+
+ eye +
+
+ 2020 - 2023 +
+
+
+
+
+ comment +
+
+ Sub-regional +
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+ ); +} diff --git a/deployment/frontend/src/components/Highlights.tsx b/deployment/frontend/src/components/Highlights.tsx new file mode 100644 index 000000000..301f002f6 --- /dev/null +++ b/deployment/frontend/src/components/Highlights.tsx @@ -0,0 +1,100 @@ +import HighlightCard from './HighlightCard'; +import Carousel from './Carousel'; +import { SwiperSlide } from 'swiper/react'; +import CarouselNavButton from './_shared/CarouselNavButton'; + +const higlights = [ + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map1.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map2.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map3.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map1.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map2.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map3.png" + } +] + +export default function Highlights() { + return ( +
+

Highlights

+
+
+ + { + higlights.map((highlight, index) => { + return + }) + } + +
+ + +
+
+ ) +} diff --git a/deployment/frontend/src/components/Recent.tsx b/deployment/frontend/src/components/Recent.tsx new file mode 100644 index 000000000..4331ef2e0 --- /dev/null +++ b/deployment/frontend/src/components/Recent.tsx @@ -0,0 +1,102 @@ +import Card from "./Card"; +import Carousel from './Carousel'; +import { SwiperSlide } from 'swiper/react'; +import CarouselNavButton from './_shared/CarouselNavButton'; +import React from 'react' +const recents = [ + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map1.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map2.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map3.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map1.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map2.png" + }, + { + title: "Title of the dataset goes here lorem ipsum.", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod.", + date: "2020 - 2023", + location: "Sub-regional", + tag: "FORESTS", + img: "/images/map3.png" + } +] + +export default function Recent({ title }: { title: string }) { + const identifier = title.toLowerCase().replace(' ', '-') + return ( +
+

{title}

+
+
+ + { + recents.map((recent, index) => { + return + }) + } + +
+ + +
+
+ ) +} + diff --git a/deployment/frontend/src/components/Search.tsx b/deployment/frontend/src/components/Search.tsx new file mode 100644 index 000000000..45fd2efa2 --- /dev/null +++ b/deployment/frontend/src/components/Search.tsx @@ -0,0 +1,32 @@ +import React from 'react' +import { MagnifyingGlassIcon } from "@heroicons/react/20/solid"; +import Link from 'next/link'; +import { useRouter } from 'next/router'; +import classNames from '@/utils/classnames'; + +export default function Search() { + const router = useRouter() + const { pathname } = router + + return ( + + ) +} diff --git a/deployment/frontend/src/components/_shared/ActivityStreamCard.tsx b/deployment/frontend/src/components/_shared/ActivityStreamCard.tsx new file mode 100644 index 000000000..0cf412f9f --- /dev/null +++ b/deployment/frontend/src/components/_shared/ActivityStreamCard.tsx @@ -0,0 +1,22 @@ +import React from 'react' +import Image from 'next/image' + +interface activity { + description: string, + time: string, + icon: string +} + +export default function ActivityStreamCard({ activity }: { activity: activity }) { + return ( +
+
+ update +
+
+

someone updated the dataset XYZ Lorem ipsum this will probably be longer

+ 1 hour ago +
+
+ ) +} diff --git a/deployment/frontend/src/components/_shared/ActivityStreamList.tsx b/deployment/frontend/src/components/_shared/ActivityStreamList.tsx new file mode 100644 index 000000000..eeb0db5c0 --- /dev/null +++ b/deployment/frontend/src/components/_shared/ActivityStreamList.tsx @@ -0,0 +1,63 @@ +import React from 'react' +import ActivityStreamCard from './ActivityStreamCard' +import Pagination from '@/components/_shared/Pagination' +const activity = [ + { + description: "someone updated the dataset XYZ Lorem ipsum this will probably be longer", + time: "1 hour ago", + icon: "update" + }, + { + description: "someone edited the dataset XYZ Lorem ipsum this will probably be longer", + time: "1 hour ago", + icon: "edit" + }, + { + description: "someone added the dataset XYZ Lorem ipsum this will probably be longer", + time: "1 hour ago", + icon: "add" + }, + { + description: "someone updated the dataset XYZ Lorem ipsum this will probably be longer", + time: "1 hour ago", + icon: "update" + }, + { + description: "someone edited the dataset XYZ Lorem ipsum this will probably be longer", + time: "1 hour ago", + icon: "edit" + }, + { + description: "someone added the dataset XYZ Lorem ipsum this will probably be longer", + time: "1 hour ago", + icon: "add" + }, + { + description: "someone updated the dataset XYZ Lorem ipsum this will probably be longer", + time: "1 hour ago", + icon: "update" + }, + { + description: "someone edited the dataset XYZ Lorem ipsum this will probably be longer", + time: "1 hour ago", + icon: "edit" + }, + { + description: "someone added the dataset XYZ Lorem ipsum this will probably be longer", + time: "1 hour ago", + icon: "add" + }, + +] +export default function ActivityStreamList() { + return ( +
+ { + activity.map((activity, index) => ( + + )) + } + +
+ ) +} diff --git a/ckan-deployment/frontend/src/components/_shared/Alerts.tsx b/deployment/frontend/src/components/_shared/Alerts.tsx similarity index 100% rename from ckan-deployment/frontend/src/components/_shared/Alerts.tsx rename to deployment/frontend/src/components/_shared/Alerts.tsx diff --git a/deployment/frontend/src/components/_shared/Breadcrumbs.tsx b/deployment/frontend/src/components/_shared/Breadcrumbs.tsx new file mode 100644 index 000000000..8841fd143 --- /dev/null +++ b/deployment/frontend/src/components/_shared/Breadcrumbs.tsx @@ -0,0 +1,42 @@ +interface Link { + label: string; + url: string; + current: boolean +} +export function Breadcrumbs({ links }: { links: Link[]}) { + return ( + + ) + +} diff --git a/deployment/frontend/src/components/_shared/Button.tsx b/deployment/frontend/src/components/_shared/Button.tsx new file mode 100644 index 000000000..652896b29 --- /dev/null +++ b/deployment/frontend/src/components/_shared/Button.tsx @@ -0,0 +1,53 @@ +import * as React from "react" +import { cva, type VariantProps } from "class-variance-authority" +import classNames from "@/utils/classnames" + +const buttonVariants = cva( + "inline-flex items-center justify-center ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", + { + variants: { + variant: { + default: "bg-amber-400 text-stone-900 text-base font-bold font-acumin", + destructive: + "bg-destructive text-destructive-foreground hover:bg-destructive/90", + outline: + "border bg-none hover:bg-amber-400 hover:text-black border-amber-400 font-semibold", + secondary: + "bg-secondary text-secondary-foreground hover:bg-secondary/80", + ghost: "hover:bg-accent hover:text-accent-foreground", + link: "text-primary underline-offset-4 hover:underline", + }, + size: { + default: "h-11 px-6 py-4 rounded-[3px]", + sm: "h-9 rounded-md px-3", + lg: "h-[60px] px-8", + icon: "h-10 w-10", + }, + }, + defaultVariants: { + variant: "default", + size: "default", + }, + } +) + +export interface ButtonProps + extends React.ButtonHTMLAttributes, + VariantProps { + asChild?: boolean +} + +const Button = React.forwardRef( + ({ className, variant, size, asChild = false, ...props }, ref) => { + return ( + + + ); +}; + +CarouselNavButton.defaultProps = { orientation: 'left', size: 'medium' }; + +export default CarouselNavButton; \ No newline at end of file diff --git a/deployment/frontend/src/components/_shared/Container.tsx b/deployment/frontend/src/components/_shared/Container.tsx new file mode 100644 index 000000000..290682cbd --- /dev/null +++ b/deployment/frontend/src/components/_shared/Container.tsx @@ -0,0 +1,13 @@ +export default function Container({ + children, + className, +}: { + children?: JSX.Element | JSX.Element[]; + className?: string; +}) { + return ( +
+ {children} +
+ ); +} diff --git a/deployment/frontend/src/components/_shared/Footer.tsx b/deployment/frontend/src/components/_shared/Footer.tsx new file mode 100644 index 000000000..434c2c07c --- /dev/null +++ b/deployment/frontend/src/components/_shared/Footer.tsx @@ -0,0 +1,121 @@ +import React from "react"; +import { EnvelopeIcon } from "@heroicons/react/20/solid"; +import Image from "next/image"; + +export default function Footer({ + links = { + primary: { title: "Explore Topics", href: "#" }, + secondary: { title: "Advanced Search", href: "#" }, + }, +}) { + return ( + + ); +} diff --git a/deployment/frontend/src/components/_shared/Header.tsx b/deployment/frontend/src/components/_shared/Header.tsx new file mode 100644 index 000000000..8b30386ad --- /dev/null +++ b/deployment/frontend/src/components/_shared/Header.tsx @@ -0,0 +1,121 @@ +import React, { Fragment } from "react"; +import Image from "next/image"; +import { Menu, Transition } from "@headlessui/react"; +import { Bars3Icon } from "@heroicons/react/20/solid"; +import Link from "next/link"; +import { useRouter } from "next/router"; + +export default function Header() { + const { asPath } = useRouter(); + + const navigation = [ + { + title: "Search", + href: "/search", + active: false, + }, + { + title: "Teams", + href: "/teams", + active: false, + }, + { + title: "Topics", + href: "/topics", + active: false, + }, + { + title: "About", + href: "/about", + active: false, + }, + ]; + + navigation.forEach((item) => { + item.active = asPath.startsWith(item.href); + }); + + return ( + + ); +} diff --git a/deployment/frontend/src/components/_shared/Pagination.tsx b/deployment/frontend/src/components/_shared/Pagination.tsx new file mode 100644 index 000000000..0c406e090 --- /dev/null +++ b/deployment/frontend/src/components/_shared/Pagination.tsx @@ -0,0 +1,83 @@ +import { ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/20/solid' + +export default function Pagination() { + return ( +
+
+
+ +
+
+
+ ) +} diff --git a/deployment/frontend/src/components/_shared/Select.tsx b/deployment/frontend/src/components/_shared/Select.tsx new file mode 100644 index 000000000..66c8ca53c --- /dev/null +++ b/deployment/frontend/src/components/_shared/Select.tsx @@ -0,0 +1,61 @@ +import { Fragment, useState } from 'react' +import { Listbox, Transition } from '@headlessui/react' +import { CheckIcon, ChevronUpDownIcon } from '@heroicons/react/20/solid' +import classNames from '@/utils/classnames'; + +interface Option { + id: number; + label: string; +} + +export default function Select({options}: {options: Option[]}) { + const [selected, setSelected] = useState(options[0] ? options[0] : {id: 0, label: ''}) + + return ( + + {({ open }) => ( + <> +
+ + {selected.label} + + + + + + + {options.map((option) => ( + + classNames( + active ? 'bg-wri-green text-white' : 'text-gray-900', + 'relative cursor-default select-none py-2 px-4' + ) + } + value={option} + > + {({ selected, active }) => ( + <> + + {option.label} + + + )} + + ))} + + +
+ + )} +
+ ) +} diff --git a/ckan-deployment/frontend/src/components/_shared/Spinner.tsx b/deployment/frontend/src/components/_shared/Spinner.tsx similarity index 100% rename from ckan-deployment/frontend/src/components/_shared/Spinner.tsx rename to deployment/frontend/src/components/_shared/Spinner.tsx diff --git a/deployment/frontend/src/components/search/DatasetHorizontalCard.tsx b/deployment/frontend/src/components/search/DatasetHorizontalCard.tsx new file mode 100644 index 000000000..399ecdcef --- /dev/null +++ b/deployment/frontend/src/components/search/DatasetHorizontalCard.tsx @@ -0,0 +1,83 @@ +import { + ChartBarIcon, + ExclamationTriangleIcon, + GlobeAltIcon, + TableCellsIcon, +} from "@heroicons/react/20/solid"; +import { + ArrowPathIcon, + ClockIcon, + MapPinIcon, +} from "@heroicons/react/24/outline"; + +export default function DatasetHorizontalCard() { + return ( +
+
+
+

+ LAND AND CARBON LAB +

+

+ Title of the dataset goes here lorem ipsum. +

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta + sem malesuada magna mollis euismod. Aenean lacinia bibendum nulla + sed consectetur. Nullam quis risus eget urna mollis ornare vel eu + leo. +

+
+
+ +

+ 2 Feb 2023 +

+
+
+ +

+ 2020 - 2023 +

+
+
+ +

+ Sub-Regional +

+
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+
+
+
+ + TIFF + + + CSV + + + GeoJSON + +
+
+
+ ); +} diff --git a/deployment/frontend/src/components/search/Facet.tsx b/deployment/frontend/src/components/search/Facet.tsx new file mode 100644 index 000000000..94d0137e3 --- /dev/null +++ b/deployment/frontend/src/components/search/Facet.tsx @@ -0,0 +1,77 @@ +import { Disclosure, Transition } from "@headlessui/react"; +import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/20/solid"; + +interface Option { + value: string; + label: string; +} + +export default function Facet({ + text, + options, +}: { + text: string; + options: Option[]; +}) { + return ( + + {({ open }) => ( + <> + +
+

+ {text} +

+ + 2 + +
+ +
+ + +
+
+ {options.map((option) => ( +
+
+ +
+
+ +
+
+ ))} +
+
+
+
+ + )} +
+ ); +} diff --git a/deployment/frontend/src/components/search/FilteredSearchLayout.tsx b/deployment/frontend/src/components/search/FilteredSearchLayout.tsx new file mode 100644 index 000000000..537025f70 --- /dev/null +++ b/deployment/frontend/src/components/search/FilteredSearchLayout.tsx @@ -0,0 +1,390 @@ +import { Fragment, useState } from "react"; +import { Dialog, Disclosure, Transition } from "@headlessui/react"; +import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/outline"; +import Facet from "./Facet"; +import LocationSearch from "./LocationSearch"; +import { ArrowLeftIcon, ArrowRightIcon } from "@heroicons/react/20/solid"; +import classNames from "@/utils/classnames"; + +export default function FilteredSearchLayout({ + children, +}: { + children: React.ReactNode; +}) { + const [sidebarOpen, setSidebarOpen] = useState(false); + + return ( + <> + {/* + This example requires updating your template: + + ``` + + + ``` + */} +
+ + + +
+ + +
+ + + +
+ +
+
+ {/* Sidebar component, swap this element with another sidebar if you like */} +
+ +
+
+
+
+
+
+ + {/* Static sidebar for desktop */} + + {({ open }) => ( + <> + +
+ +
+
+
+ + {/* Sidebar component, swap this element with another sidebar if you like */} +
+ +
+
+ + )} + + +
+
+ +
+ +
+
{children}
+
+
+
+ + ); +} diff --git a/deployment/frontend/src/components/search/FiltersSelected.tsx b/deployment/frontend/src/components/search/FiltersSelected.tsx new file mode 100644 index 000000000..a1ca24ee5 --- /dev/null +++ b/deployment/frontend/src/components/search/FiltersSelected.tsx @@ -0,0 +1,31 @@ +import { XCircleIcon } from "@heroicons/react/24/outline"; + +export default function FiltersSelected() { + return ( +
+
+
+
+ Temporal coverage: 2022 - 2023 +
+ +
+
+
+ Resolution: FILTER 2 +
+ +
+
+
+ Resolution: FILTER 1 +
+ +
+
+
+ Clear all filters +
+
+ ); +} diff --git a/deployment/frontend/src/components/search/GeocoderControl.tsx b/deployment/frontend/src/components/search/GeocoderControl.tsx new file mode 100644 index 000000000..86f69ba12 --- /dev/null +++ b/deployment/frontend/src/components/search/GeocoderControl.tsx @@ -0,0 +1,155 @@ +import * as React from "react"; +import { useState } from "react"; +import { useControl, Marker, MarkerProps, ControlPosition } from "react-map-gl"; +import MapboxGeocoder, { GeocoderOptions } from "@mapbox/mapbox-gl-geocoder"; + +type GeocoderControlProps = Omit< + GeocoderOptions, + "accessToken" | "mapboxgl" | "marker" +> & { + mapboxAccessToken: string; + marker?: boolean | Omit; + + position: ControlPosition; + + onLoading?: (e: object) => void; + onResults?: (e: object) => void; + onResult?: (e: object) => void; + onError?: (e: object) => void; +}; + +/* eslint-disable complexity,max-statements */ +export default function GeocoderControl(props: GeocoderControlProps) { + const [marker, setMarker] = useState(null); + + const geocoder = useControl( + () => { + const ctrl = new MapboxGeocoder({ + ...props, + marker: false, + accessToken: props.mapboxAccessToken, + }); + if ( + props && + props.onLoading && + props.onResults && + props.onResult && + props.onError + ) { + ctrl.on("loading", props.onLoading); + ctrl.on("results", props.onResults); + ctrl.on("result", (evt) => { + if (props.onResult) { + props.onResult(evt); + } + + const { result } = evt; + const location = + result && + (result.center || + (result.geometry?.type === "Point" && + result.geometry.coordinates)); + if (location && props.marker) { + setMarker( + as any, + ); + } else { + setMarker(null); + } + }); + ctrl.on("error", props.onError); + return ctrl; + } + return ctrl; + }, + { + position: props.position, + }, + ); + + // @ts-ignore (TS2339) private member + if (geocoder._map) { + if ( + geocoder.getProximity() !== props.proximity && + props.proximity !== undefined + ) { + geocoder.setProximity(props.proximity); + } + if ( + geocoder.getRenderFunction() !== props.render && + props.render !== undefined + ) { + geocoder.setRenderFunction(props.render); + } + if ( + geocoder.getLanguage() !== props.language && + props.language !== undefined + ) { + geocoder.setLanguage(props.language); + } + if (geocoder.getZoom() !== props.zoom && props.zoom !== undefined) { + geocoder.setZoom(props.zoom); + } + if (geocoder.getFlyTo() !== props.flyTo && props.flyTo !== undefined) { + geocoder.setFlyTo(props.flyTo); + } + if ( + geocoder.getPlaceholder() !== props.placeholder && + props.placeholder !== undefined + ) { + geocoder.setPlaceholder(props.placeholder); + } + if ( + geocoder.getCountries() !== props.countries && + props.countries !== undefined + ) { + geocoder.setCountries(props.countries); + } + if (geocoder.getTypes() !== props.types && props.types !== undefined) { + geocoder.setTypes(props.types); + } + if ( + geocoder.getMinLength() !== props.minLength && + props.minLength !== undefined + ) { + geocoder.setMinLength(props.minLength); + } + if (geocoder.getLimit() !== props.limit && props.limit !== undefined) { + geocoder.setLimit(props.limit); + } + if (geocoder.getFilter() !== props.filter && props.filter !== undefined) { + geocoder.setFilter(props.filter); + } + if (geocoder.getOrigin() !== props.origin && props.origin !== undefined) { + geocoder.setOrigin(props.origin); + } + // Types missing from @types/mapbox__mapbox-gl-geocoder + // if (geocoder.getAutocomplete() !== props.autocomplete && props.autocomplete !== undefined) { + // geocoder.setAutocomplete(props.autocomplete); + // } + // if (geocoder.getFuzzyMatch() !== props.fuzzyMatch && props.fuzzyMatch !== undefined) { + // geocoder.setFuzzyMatch(props.fuzzyMatch); + // } + // if (geocoder.getRouting() !== props.routing && props.routing !== undefined) { + // geocoder.setRouting(props.routing); + // } + // if (geocoder.getWorldview() !== props.worldview && props.worldview !== undefined) { + // geocoder.setWorldview(props.worldview); + // } + } + return marker ? marker : <>; +} + +const noop = () => {}; + +GeocoderControl.defaultProps = { + marker: true, + onLoading: noop, + onResults: noop, + onResult: noop, + onError: noop, +}; diff --git a/deployment/frontend/src/components/search/LocationSearch.tsx b/deployment/frontend/src/components/search/LocationSearch.tsx new file mode 100644 index 000000000..d52a90563 --- /dev/null +++ b/deployment/frontend/src/components/search/LocationSearch.tsx @@ -0,0 +1,48 @@ +import { Disclosure, Transition } from "@headlessui/react"; +import { ChevronDownIcon } from "@heroicons/react/20/solid"; +import { Map } from "react-map-gl"; +import GeocoderControl from "./GeocoderControl"; + +export default function LocationSearch() { + return ( + + {({ open }) => ( + <> + +
+

+ Location +

+
+ +
+ + + + + + + + + )} +
+ ); +} diff --git a/deployment/frontend/src/components/search/SortBy.tsx b/deployment/frontend/src/components/search/SortBy.tsx new file mode 100644 index 000000000..4ff3cafc9 --- /dev/null +++ b/deployment/frontend/src/components/search/SortBy.tsx @@ -0,0 +1,37 @@ +import Select from "../_shared/Select"; + +export default function SortBy() { + return ( +
+
+ 236 results +
+
+
+
+ Show +
+ +
+
+
+ ); +} diff --git a/deployment/frontend/src/components/team/DatasetList.tsx b/deployment/frontend/src/components/team/DatasetList.tsx new file mode 100644 index 000000000..a8f9f9640 --- /dev/null +++ b/deployment/frontend/src/components/team/DatasetList.tsx @@ -0,0 +1,18 @@ +import React from 'react' +import DatasetHorizontalCard from '../search/DatasetHorizontalCard' +import Pagination from '@/components/_shared/Pagination' + +export default function DatasetList({ datasets }: { datasets: number[] }) { + return ( +
+ +

Dataset associated with Topic 1 (784)

+ { + datasets.map((dataset, index) => ( + + )) + } + +
+ ) +} diff --git a/deployment/frontend/src/components/team/TeamCard.tsx b/deployment/frontend/src/components/team/TeamCard.tsx new file mode 100644 index 000000000..8d84b09b1 --- /dev/null +++ b/deployment/frontend/src/components/team/TeamCard.tsx @@ -0,0 +1,33 @@ +import React from "react"; +import Image from "next/image"; +import Team from "@/interfaces/team.interface"; + +export default function TeamCard({ team }: { team: Team }) { + + return ( + +
+
+ {`Team +
+
+

{team.title}

+
+
+
+ {team.description} +
+
+ {team.num_datasets} datasets +
+
+ ); +} diff --git a/deployment/frontend/src/components/team/TeamHeaderCard.tsx b/deployment/frontend/src/components/team/TeamHeaderCard.tsx new file mode 100644 index 000000000..5aa000249 --- /dev/null +++ b/deployment/frontend/src/components/team/TeamHeaderCard.tsx @@ -0,0 +1,39 @@ +import React from 'react' +import Image from 'next/image' +import { ChevronLeftIcon } from "@heroicons/react/20/solid"; +import { Button } from "../_shared/Button"; +import { PencilSquareIcon } from '@heroicons/react/24/outline'; + +export default function TeamHeaderCard() { + return ( +
+
+
+ +
+
+
+ Team card +
+
+
+
+
+ +
+ Edit +
+ +
+
+

Team 1

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam. Ut enim ad minim veniam.

+ 363 Datasets +
+
+
+ ) +} diff --git a/deployment/frontend/src/components/team/TeamTab.tsx b/deployment/frontend/src/components/team/TeamTab.tsx new file mode 100644 index 000000000..6dd369c86 --- /dev/null +++ b/deployment/frontend/src/components/team/TeamTab.tsx @@ -0,0 +1,53 @@ +import React, { useState } from 'react' +import { Tab } from '@headlessui/react' +import DatasetList from './DatasetList' +import ActivityStreamList from '../_shared/ActivityStreamList' + + +const tabs = [ + { + id: "datasets", + content: ( + + ), + title: "Datasets", + }, + { + id: "activity", + content: ( + + ), + title: "Activity stream", + } +] + +export default function TeamTab() { + + return ( +
+ + + {tabs.map((tab) => ( + + {({ selected }) => ( +
+ {tab.title} +
+ )} +
+ ))} +
+ + {tabs.map((tab) => ( + + {tab.content} + + ))} + +
+
+ ) +} diff --git a/deployment/frontend/src/components/team/TeamsSearch.tsx b/deployment/frontend/src/components/team/TeamsSearch.tsx new file mode 100644 index 000000000..0769255be --- /dev/null +++ b/deployment/frontend/src/components/team/TeamsSearch.tsx @@ -0,0 +1,20 @@ +import React from 'react' +import { MagnifyingGlassIcon } from "@heroicons/react/20/solid"; + +export default function TeamsSearch() { + return ( + + ) +} diff --git a/deployment/frontend/src/components/team/TeamsSearchResults.tsx b/deployment/frontend/src/components/team/TeamsSearchResults.tsx new file mode 100644 index 000000000..bda086ba5 --- /dev/null +++ b/deployment/frontend/src/components/team/TeamsSearchResults.tsx @@ -0,0 +1,136 @@ +import Team from "@/interfaces/team.interface"; +import CardsGrid from "../_shared/CardsGrid"; +import Container from "../_shared/Container"; +import TeamCard from "./TeamCard"; +import Pagination from "../_shared/Pagination"; + +const teams: Array = [ + { + name: "team-1", + title: "Team 1", + image: "/images/placeholders/teams/team1.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-2", + title: "Team 2", + image: "/images/placeholders/teams/team2.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-3", + title: "Team 3", + image: "/images/placeholders/teams/team3.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-4", + title: "Team 4", + image: "/images/placeholders/teams/team4.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-5", + title: "Team 5", + image: "/images/placeholders/teams/team5.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-6", + title: "Team 6", + image: "/images/placeholders/teams/team6.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-7", + title: "Team 7", + image: "/images/placeholders/teams/team7.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-8", + title: "Team 8", + image: "/images/placeholders/teams/team8.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-9", + title: "Team 9", + image: "/images/placeholders/teams/team1.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-10", + title: "Team 10", + image: "/images/placeholders/teams/team2.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-11", + title: "Team 11", + image: "/images/placeholders/teams/team3.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-12", + title: "Team 12", + image: "/images/placeholders/teams/team4.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-13", + title: "Team 13", + image: "/images/placeholders/teams/team5.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "team-14", + title: "Team 14", + image: "/images/placeholders/teams/team6.png", + num_datasets: 32, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, +]; + +export default function TeamsSearchResults() { + return ( + + {teams.length} teams + + className="mt-5 mb-5" + items={teams} + Card={({ item: team }) => { + return ; + }} + /> + + + ); +} diff --git a/deployment/frontend/src/components/topics/Hero.tsx b/deployment/frontend/src/components/topics/Hero.tsx new file mode 100644 index 000000000..86795b902 --- /dev/null +++ b/deployment/frontend/src/components/topics/Hero.tsx @@ -0,0 +1,73 @@ +import Image from "next/image"; +import { Button } from "../_shared/Button"; +import { ChevronLeftIcon } from "@heroicons/react/20/solid"; +import { useState } from "react"; +import { ClipboardDocumentIcon } from "@heroicons/react/24/outline"; + +export function Hero() { + return ( +
+
+ Topic name +
+ +
+
+
+
Topic 1
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad + minim veniam. Ut enim ad minim veniam. +
+
+
363 Datasets
+
+
6 Subtopics
+
+ +
+
+ ); +} + +function CopyLink() { + const [clicked, setClicked] = useState(false); + return ( + <> + {!clicked ? ( + + ) : ( + + )} + + ); +} diff --git a/deployment/frontend/src/components/topics/SubtopicCard.tsx b/deployment/frontend/src/components/topics/SubtopicCard.tsx new file mode 100644 index 000000000..96c91049b --- /dev/null +++ b/deployment/frontend/src/components/topics/SubtopicCard.tsx @@ -0,0 +1,20 @@ +import React from 'react' +import Image from 'next/image' + +export interface SubtopicProps { + title: string, + numOfDatasets: number, + img: string +} + +export default function SubtopicCard({ subtopic }: { subtopic: SubtopicProps }) { + return ( +
+
+ higlight +
+
{subtopic.title}
+
{subtopic.numOfDatasets} Datasets
+
+ ) +} diff --git a/deployment/frontend/src/components/topics/Subtopics.tsx b/deployment/frontend/src/components/topics/Subtopics.tsx new file mode 100644 index 000000000..92cbbd4c2 --- /dev/null +++ b/deployment/frontend/src/components/topics/Subtopics.tsx @@ -0,0 +1,115 @@ +import { SwiperSlide } from "swiper/react"; +import Carousel from "../Carousel"; +import SubtopicCard from "./SubtopicCard"; +import CarouselNavButton from "../_shared/CarouselNavButton"; + +const subtopics = [ + { + title: "Subtopic 1", + numOfDatasets: 163, + img: "/images/topics/2.png", + }, + { + title: "Subtopic 2", + numOfDatasets: 163, + img: "/images/topics/3.png", + }, + { + title: "Subtopic 3", + numOfDatasets: 163, + img: "/images/topics/4.png", + }, + { + title: "Subtopic 4", + numOfDatasets: 163, + img: "/images/topics/5.png", + }, + { + title: "Subtopic 5", + numOfDatasets: 163, + img: "/images/topics/6.png", + }, + { + title: "Subtopic 6", + numOfDatasets: 163, + img: "/images/topics/7.png", + }, + { + title: "Subtopic 7", + numOfDatasets: 163, + img: "/images/topics/2.png", + }, + { + title: "Subtopic 8", + numOfDatasets: 163, + img: "/images/topics/3.png", + }, + { + title: "Subtopic 9", + numOfDatasets: 163, + img: "/images/topics/4.png", + }, +]; +export default function Subtopics() { + return ( +
+

+ Subtopics +

+
+
+ + {subtopics.map((subtopic, index) => { + return ( + + + + ); + })} + +
+ + +
+
+ ); +} diff --git a/deployment/frontend/src/components/topics/TopicCard.tsx b/deployment/frontend/src/components/topics/TopicCard.tsx new file mode 100644 index 000000000..f745e0241 --- /dev/null +++ b/deployment/frontend/src/components/topics/TopicCard.tsx @@ -0,0 +1,33 @@ +import React from "react"; +import Image from "next/image"; +import Topic from "@/interfaces/topic.interface"; + +export default function TopicCard({ topic }: { topic: Topic }) { + + return ( + +
+ {`Topic +
+
+

{topic.title}

+
+
+ {topic.description} +
+
+ {topic.num_datasets} datasets +
+ {topic.num_subtopics} Subtopics +
+
+ ); +} diff --git a/deployment/frontend/src/components/topics/TopicsSearch.tsx b/deployment/frontend/src/components/topics/TopicsSearch.tsx new file mode 100644 index 000000000..3a14b6bc7 --- /dev/null +++ b/deployment/frontend/src/components/topics/TopicsSearch.tsx @@ -0,0 +1,20 @@ +import React from 'react' +import { MagnifyingGlassIcon } from "@heroicons/react/20/solid"; + +export default function TopicsSearch() { + return ( + + ) +} diff --git a/deployment/frontend/src/components/topics/TopicsSearchResults.tsx b/deployment/frontend/src/components/topics/TopicsSearchResults.tsx new file mode 100644 index 000000000..90018eec3 --- /dev/null +++ b/deployment/frontend/src/components/topics/TopicsSearchResults.tsx @@ -0,0 +1,148 @@ +import Topic from "@/interfaces/topic.interface"; +import CardsGrid from "../_shared/CardsGrid"; +import Container from "../_shared/Container"; +import TopicCard from "./TopicCard"; + +const topics: Array = [ + { + name: "topic-1", + title: "Topic 1", + image: "/images/placeholders/topics/topic1.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-2", + title: "Topic 2", + image: "/images/placeholders/topics/topic2.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-3", + title: "Topic 3", + image: "/images/placeholders/topics/topic3.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-4", + title: "Topic 4", + image: "/images/placeholders/topics/topic4.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-5", + title: "Topic 5", + image: "/images/placeholders/topics/topic5.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-6", + title: "Topic 6", + image: "/images/placeholders/topics/topic6.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-7", + title: "Topic 7", + image: "/images/placeholders/topics/topic7.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-8", + title: "Topic 8", + image: "/images/placeholders/topics/topic8.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-9", + title: "Topic 9", + image: "/images/placeholders/topics/topic1.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-10", + title: "Topic 10", + image: "/images/placeholders/topics/topic2.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-11", + title: "Topic 11", + image: "/images/placeholders/topics/topic3.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-12", + title: "Topic 12", + image: "/images/placeholders/topics/topic4.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-13", + title: "Topic 13", + image: "/images/placeholders/topics/topic5.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, + { + name: "topic-14", + title: "Topic 14", + image: "/images/placeholders/topics/topic6.png", + num_datasets: 32, + num_subtopics: 6, + description: + "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Inventore maxime ut aspernatur laborum quod architecto, repellat commodi, iure suscipit, perspiciatis vitae dolor eveniet saepe aliquid? Quae labore incidunt odit reprehenderit?", + }, +]; + +export default function TopicsSearchResults() { + return ( + + {topics.length} topics + + className="mt-5" + items={topics} + Card={({ item: topic }) => { + return ; + }} + /> + + ); +} diff --git a/ckan-deployment/frontend/src/env.mjs b/deployment/frontend/src/env.mjs similarity index 100% rename from ckan-deployment/frontend/src/env.mjs rename to deployment/frontend/src/env.mjs diff --git a/deployment/frontend/src/interfaces/team.interface.ts b/deployment/frontend/src/interfaces/team.interface.ts new file mode 100644 index 000000000..442ccd29e --- /dev/null +++ b/deployment/frontend/src/interfaces/team.interface.ts @@ -0,0 +1,7 @@ +export default interface Team { + name: string; + title: string; + image: string; + description: string; + num_datasets: number; +} diff --git a/deployment/frontend/src/interfaces/topic.interface.ts b/deployment/frontend/src/interfaces/topic.interface.ts new file mode 100644 index 000000000..d0993acfb --- /dev/null +++ b/deployment/frontend/src/interfaces/topic.interface.ts @@ -0,0 +1,8 @@ +export default interface Topic { + name: string; + title: string; + image: string; + description: string; + num_datasets: number; + num_subtopics: number; +} diff --git a/deployment/frontend/src/pages/_app.tsx b/deployment/frontend/src/pages/_app.tsx new file mode 100644 index 000000000..9e295b31a --- /dev/null +++ b/deployment/frontend/src/pages/_app.tsx @@ -0,0 +1,50 @@ +import { type Session } from "next-auth"; +import { SessionProvider } from "next-auth/react"; +import { type AppType } from "next/app"; +import "mapbox-gl/dist/mapbox-gl.css"; +import "@mapbox/mapbox-gl-geocoder/dist/mapbox-gl-geocoder.css"; +import localFont from "next/font/local"; + +import { api } from "@/utils/api"; + +import "@/styles/globals.css"; + +const acumin = localFont({ + src: [ + { + path: "./fonts/acumin-pro-semi-condensed.otf", + weight: "400", + style: "normal", + }, + { + path: "./fonts/acumin-pro-semi-condensed-light.otf", + weight: "300", + style: "light", + }, + { + path: "./fonts/acumin-pro-semi-condensed-smbd.otf", + weight: "600", + style: "semibold", + }, + { + path: "./fonts/acumin-pro-semi-condensed-bold.otf", + weight: "700", + style: "bold", + }, + ], + variable: "--font-acumin", +}); +const MyApp: AppType<{ session: Session | null }> = ({ + Component, + pageProps: { session, ...pageProps }, +}) => { + return ( + +
+ +
+
+ ); +}; + +export default api.withTRPC(MyApp); diff --git a/deployment/frontend/src/pages/_document.tsx b/deployment/frontend/src/pages/_document.tsx new file mode 100644 index 000000000..778d88962 --- /dev/null +++ b/deployment/frontend/src/pages/_document.tsx @@ -0,0 +1,17 @@ +import Document, { Html, Head, Main, NextScript } from "next/document"; + +export default class CustomDocument extends Document { + render() { + return ( + + + + + +
+ + + + ); + } +} diff --git a/ckan-deployment/frontend/src/pages/api/auth/[...nextauth].ts b/deployment/frontend/src/pages/api/auth/[...nextauth].ts similarity index 100% rename from ckan-deployment/frontend/src/pages/api/auth/[...nextauth].ts rename to deployment/frontend/src/pages/api/auth/[...nextauth].ts diff --git a/ckan-deployment/frontend/src/pages/api/trpc/[trpc].ts b/deployment/frontend/src/pages/api/trpc/[trpc].ts similarity index 100% rename from ckan-deployment/frontend/src/pages/api/trpc/[trpc].ts rename to deployment/frontend/src/pages/api/trpc/[trpc].ts diff --git a/ckan-deployment/frontend/src/pages/auth/signin.tsx b/deployment/frontend/src/pages/auth/signin.tsx similarity index 100% rename from ckan-deployment/frontend/src/pages/auth/signin.tsx rename to deployment/frontend/src/pages/auth/signin.tsx diff --git a/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed-bold.otf b/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed-bold.otf new file mode 100644 index 000000000..d87763de2 Binary files /dev/null and b/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed-bold.otf differ diff --git a/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed-light.otf b/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed-light.otf new file mode 100644 index 000000000..d1ad647e6 Binary files /dev/null and b/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed-light.otf differ diff --git a/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed-smbd.otf b/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed-smbd.otf new file mode 100644 index 000000000..b8601210f Binary files /dev/null and b/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed-smbd.otf differ diff --git a/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed.otf b/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed.otf new file mode 100644 index 000000000..419579664 Binary files /dev/null and b/deployment/frontend/src/pages/fonts/acumin-pro-semi-condensed.otf differ diff --git a/ckan-deployment/frontend/src/pages/index.tsx b/deployment/frontend/src/pages/index.tsx similarity index 95% rename from ckan-deployment/frontend/src/pages/index.tsx rename to deployment/frontend/src/pages/index.tsx index ae9b09ef6..6da9935ac 100644 --- a/ckan-deployment/frontend/src/pages/index.tsx +++ b/deployment/frontend/src/pages/index.tsx @@ -14,7 +14,7 @@ export default function Home() {
-

+

WRI ODP

diff --git a/deployment/frontend/src/pages/search.tsx b/deployment/frontend/src/pages/search.tsx new file mode 100644 index 000000000..1de85bc6e --- /dev/null +++ b/deployment/frontend/src/pages/search.tsx @@ -0,0 +1,20 @@ +import Search from '@/components/Search' +import Header from '@/components/_shared/Header' +import Highlights from '@/components/Highlights' +import Recent from '@/components/Recent' +import Footer from '@/components/_shared/Footer' + + + +export default function test() { + return ( + <> +
+ + + + +