From 8958540814ae5626cbfd6342ce0966dfe084fc82 Mon Sep 17 00:00:00 2001 From: Anastasia Balagurova <73748770+balagurova@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:54:17 +0200 Subject: [PATCH] Update the viz --- .eslintrc.json | 1 - ...e-static-web-apps-lemon-tree-0968b0103.yml | 46 - index.html | 42 +- package-lock.json | 2961 ++++++++++------- package.json | 63 +- public/SFH_data.numbers | Bin 0 -> 293742 bytes public/data.csv | 250 ++ readme.md | 4 +- src/App.tsx | 753 ++--- src/Cards.tsx | 99 + src/Components/Actions/CopyTextButton.tsx | 47 - src/Components/Actions/CsvDownloadButton.tsx | 54 - .../ExcelDownloadButton/excelDownload.tsx | 34 - .../Actions/ExcelDownloadButton/index.tsx | 46 - .../ImageDownloadButton/imageDownload.tsx | 12 - .../Actions/ImageDownloadButton/index.tsx | 36 - src/Components/Card.tsx | 58 - src/Components/Cards.tsx | 67 - src/Components/Constants.tsx | 89 - src/Components/Elements/ColorLegend.tsx | 41 - src/Components/Elements/GraphFooter.tsx | 19 - src/Components/Elements/GraphHeader.tsx | 18 - src/Components/Elements/Tooltip.tsx | 46 - src/Components/Filter.tsx | 83 - .../Graphs/Maps/ChoroplethMap/Graph.tsx | 306 -- .../Graphs/Maps/ChoroplethMap/index.tsx | 121 - .../Graphs/Maps/MapData/worldMap.json | 268 -- src/Components/Header.tsx | 137 - src/Components/ProgrammeContext.tsx | 61 - src/Components/ProgrammeTree.tsx | 194 -- src/Components/TooltipContent.tsx | 45 - src/Components/Typography/FootNote.tsx | 18 - .../Typography/GraphDescription.tsx | 15 - src/Components/Typography/GraphTitle.tsx | 8 - src/Components/Typography/Source.tsx | 32 - src/Types.tsx | 22 - src/Utils/checkIfNullOrUndefined.tsx | 5 - src/Utils/constants.tsx | 27 - src/Utils/countryFilters.tsx | 140 - src/Utils/filterProgrammes.tsx | 33 - src/Utils/generateTags.tsx | 25 - src/Utils/getArc.tsx | 38 - src/Utils/getEmbedCode.tsx | 44 - src/Utils/getPercentile.tsx | 10 - src/Utils/getQueryParamsFromLink.tsx | 18 - src/Utils/numberFormattingFunction.tsx | 5 - src/Utils/removeOutliers.tsx | 17 - src/main.tsx | 27 +- src/styles.css | 158 + 49 files changed, 2630 insertions(+), 4013 deletions(-) delete mode 100644 .github/workflows/azure-static-web-apps-lemon-tree-0968b0103.yml create mode 100755 public/SFH_data.numbers create mode 100644 public/data.csv create mode 100644 src/Cards.tsx delete mode 100644 src/Components/Actions/CopyTextButton.tsx delete mode 100644 src/Components/Actions/CsvDownloadButton.tsx delete mode 100644 src/Components/Actions/ExcelDownloadButton/excelDownload.tsx delete mode 100644 src/Components/Actions/ExcelDownloadButton/index.tsx delete mode 100644 src/Components/Actions/ImageDownloadButton/imageDownload.tsx delete mode 100644 src/Components/Actions/ImageDownloadButton/index.tsx delete mode 100644 src/Components/Card.tsx delete mode 100644 src/Components/Cards.tsx delete mode 100644 src/Components/Constants.tsx delete mode 100644 src/Components/Elements/ColorLegend.tsx delete mode 100644 src/Components/Elements/GraphFooter.tsx delete mode 100644 src/Components/Elements/GraphHeader.tsx delete mode 100644 src/Components/Elements/Tooltip.tsx delete mode 100644 src/Components/Filter.tsx delete mode 100644 src/Components/Graphs/Maps/ChoroplethMap/Graph.tsx delete mode 100644 src/Components/Graphs/Maps/ChoroplethMap/index.tsx delete mode 100644 src/Components/Graphs/Maps/MapData/worldMap.json delete mode 100644 src/Components/Header.tsx delete mode 100644 src/Components/ProgrammeContext.tsx delete mode 100644 src/Components/ProgrammeTree.tsx delete mode 100644 src/Components/TooltipContent.tsx delete mode 100644 src/Components/Typography/FootNote.tsx delete mode 100644 src/Components/Typography/GraphDescription.tsx delete mode 100644 src/Components/Typography/GraphTitle.tsx delete mode 100644 src/Components/Typography/Source.tsx delete mode 100644 src/Types.tsx delete mode 100644 src/Utils/checkIfNullOrUndefined.tsx delete mode 100644 src/Utils/constants.tsx delete mode 100644 src/Utils/countryFilters.tsx delete mode 100644 src/Utils/filterProgrammes.tsx delete mode 100644 src/Utils/generateTags.tsx delete mode 100644 src/Utils/getArc.tsx delete mode 100644 src/Utils/getEmbedCode.tsx delete mode 100644 src/Utils/getPercentile.tsx delete mode 100644 src/Utils/getQueryParamsFromLink.tsx delete mode 100644 src/Utils/numberFormattingFunction.tsx delete mode 100644 src/Utils/removeOutliers.tsx create mode 100644 src/styles.css diff --git a/.eslintrc.json b/.eslintrc.json index eb5f1f2..6337ba8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -35,7 +35,6 @@ "no-nested-ternary": 0, "react/no-array-index-key": 0, "react/react-in-jsx-scope": 0, - "@typescript-eslint/no-explicit-any": 0, "jsx-quotes": [2, "prefer-single"], "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }] diff --git a/.github/workflows/azure-static-web-apps-lemon-tree-0968b0103.yml b/.github/workflows/azure-static-web-apps-lemon-tree-0968b0103.yml deleted file mode 100644 index 0c80ce7..0000000 --- a/.github/workflows/azure-static-web-apps-lemon-tree-0968b0103.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Azure Static Web Apps CI/CD - -on: - push: - branches: - - main - pull_request: - types: [opened, synchronize, reopened, closed] - branches: - - main - -jobs: - build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') - runs-on: ubuntu-latest - name: Build and Deploy Job - steps: - - uses: actions/checkout@v3 - with: - submodules: true - lfs: false - - name: Build And Deploy - id: builddeploy - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LEMON_TREE_0968B0103 }} - repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) - action: "upload" - ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### - # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "/" # App source code path - api_location: "" # Api source code path - optional - output_location: "build" # Built app content directory - optional - ###### End of Repository/Build Configurations ###### - - close_pull_request_job: - if: github.event_name == 'pull_request' && github.event.action == 'closed' - runs-on: ubuntu-latest - name: Close Pull Request Job - steps: - - name: Close Pull Request - id: closepullrequest - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LEMON_TREE_0968B0103 }} - action: "close" diff --git a/index.html b/index.html index c28a673..d2e5b2c 100644 --- a/index.html +++ b/index.html @@ -1,20 +1,26 @@ - -
- - - -