From 4188c725bd210d09290d024ea348a862995881ff Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Wed, 29 May 2024 15:30:27 +0200 Subject: [PATCH 1/6] feat: Integrate accent --- README.md | 86 ++++++----- accent.json | 11 ++ package.json | 4 + yarn.lock | 415 ++++++++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 458 insertions(+), 58 deletions(-) create mode 100644 accent.json diff --git a/README.md b/README.md index 815f56a80..f61010090 100644 --- a/README.md +++ b/README.md @@ -14,17 +14,19 @@ - 4.1. [Heroku](#Heroku) - 4.2. [Abraxas](#Abraxas) - 4.3. [Docker (anywhere)](#Dockeranywhere) -- 5. [E2E tests](#E2Etests) -- 6. [GraphQL performance tests](#GraphQLperformancetests) - - 6.1. [Automation](#Automation) - - 6.2. [How to add or modify the tests](#Howtoaddormodifythetests) -- 7. [Load tests](#Loadtests) - - 7.1. [Automation](#Automation-1) - - 7.2. [Local setup](#Localsetup) - - 7.3. [Running the tests locally](#Runningthetestslocally) - - 7.4. [Recording the tests using Playwright](#RecordingthetestsusingPlaywright) -- 8. [Authentication](#Authentication) - - 8.1. [Locally](#Locally) +- 5. [Developing GitHub Actions](#DevelopingGitHubActions) +- 6. [E2E tests](#E2Etests) +- 7. [GraphQL performance tests](#GraphQLperformancetests) + - 7.1. [Automation](#Automation) + - 7.2. [How to add or modify the tests](#Howtoaddormodifythetests) +- 8. [Load tests](#Loadtests) + - 8.1. [Automation](#Automation-1) + - 8.2. [Local setup](#Localsetup) + - 8.3. [Running the tests locally](#Runningthetestslocally) + - 8.4. [Recording the tests using Playwright](#RecordingthetestsusingPlaywright) +- 9. [Authentication](#Authentication) + - 9.1. [Locally](#Locally) +- 10. [Translations](#Translations) -## Documentation +## 1. Documentation A public documentation is available at https://visualize.admin.ch/docs/. -## Development Environment +## 2. Development Environment To start the development environment, you need a Docker runtime, e.g. [Docker Desktop](https://www.docker.com/products/docker-desktop) and [Nix](https://nixos.org). -### Setting up the dev environment +### 2.1. Setting up the dev environment 1. Make sure that Docker is running 2. Start the Postgres database with `docker-compose up` @@ -50,7 +52,7 @@ To start the development environment, you need a Docker runtime, e.g. [Docker De yarn setup:dev ``` -### Dev server +### 2.2. Dev server Once the application's set up, you can start the development server with @@ -68,7 +70,7 @@ yarn dev:ssl # If you are working with the login process To run the application with debugging enabled through VSCode, make sure the dev server is running and the click the "Run and Debug" button in the sidebar (CMD-SHIFT-D). Then select the "Launch Chrome" configuration. This will open a new Chrome window with the dev tools open. You can now set breakpoints in the code and they will be hit. -### Postgres database +### 2.3. Postgres database If the database server is not running, run: @@ -76,7 +78,7 @@ If the database server is not running, run: docker-compose up ``` -### Building the Embed script `/dist/embed.js` +### 2.4. Building the Embed script `/dist/embed.js` Currently, the embed script is not automatically built when the dev server starts. @@ -88,7 +90,7 @@ yarn dev:rollup > Currently, this only bundles and initializes [iframe-resizer](https://github.com/davidjbradshaw/iframe-resizer) but could be used to render charts without iframes (using [custom elements](https://developers.google.com/web/fundamentals/web-components/customelements) or render to a generic DOM element) in the future. -#### Database migrations +#### 2.4.1. Database migrations Database migrations are run automatically when a production build of the app starts. In _development_, you'll have to run them manually: @@ -112,7 +114,7 @@ After merging the branch, you can delete the environment variables scoped to the [visualization-tool-postgres-dev](https://vercel.com/ixt/visualization-tool/stores/postgres/store_dV3rog1asOXO3BfC/data) -## Versioning +## 3. Versioning New versions of `package.json` are built on GitLab CI into a separate image that will be deployed to the integration env. @@ -122,9 +124,9 @@ yarn version This will prompt for a new version. The `postversion` script will automatically try to push the created version tag to the origin repository. -## Deployment +## 4. Deployment -### Heroku +### 4.1. Heroku If a Heroku app is set up (as Git remote `heroku`), deploy with @@ -136,7 +138,7 @@ Build instructions are defined in `heroku.yml`. For details, see https://devcenter.heroku.com/articles/build-docker-images-heroku-yml -### Abraxas +### 4.2. Abraxas With your Abraxas credentials ... @@ -157,7 +159,7 @@ Useful commands to use: - `sudo /usr/local/bin/docker-compose pull web` -> Pull latest web image manually (should not be needed much) - etc. (remember to use `sudo` for all Docker commands) -### Docker (anywhere) +### 4.3. Docker (anywhere) To pull the latest image from the GitLab registry, run: @@ -186,45 +188,45 @@ services: - "5432:5432" ``` -## Developing GitHub Actions +## 5. Developing GitHub Actions Several checks are run on different types of events that happen within the repository, including E2E or GraphQL performance tests. In order to be able to build and test the actions locally, we use [act](https://github.com/nektos/act), with example mocked event payloads defined in [this folder](https://github.com/visualize-admin/visualization-tool/tree/main/act). After [installing](https://nektosact.com/installation/index.html) the library, you can run a given action like e.g. `act deployment_status -W ".github/workflows/performance-tests-pr.yml" -e act/deployment_status.json`, modifying the event payload or adding a new one as needed. -## E2E tests +## 6. E2E tests Playwright is run on every successful deployment of a branch. Screenshots are made with Percy and sent directly to their cloud service for diffing. A special [test page](http://localhost:3000/en/__test) shows all the charts that are screenshotted. Those charts configurations are kept in the repository. -## GraphQL performance tests +## 7. GraphQL performance tests The project uses a combination of [k6](https://k6.io) and [Grafana](https://grafana.com) with [Prometheus](https://k6.io/docs/results-output/real-time/prometheus-remote-write/) for GraphQL performance testing. -### Automation +### 7.1. Automation To ensure constant monitoring of the performance of selected GraphQL queries, the performance tests are run [once an hour](https://github.com/visualize-admin/visualization-tool/blob/main/.github/workflows/performance-tests.yml) against each environment of the application. The results are then sent to the governmental Grafana dashboards. -### How to add or modify the tests +### 7.2. How to add or modify the tests To add or modify the performance tests, go to the [k6/performance-tests](https://github.com/visualize-admin/visualization-tool/tree/main/k6/performance-tests) folder. The GitHub Action is generated by running the `yarn run github:codegen` command; be sure to run it after modifying the [generate-github-action.js](`https://github.com/visualize-admin/visualization-tool/blob/main/k6/performance-tests/generate-github-action.js`) file. -## Load tests +## 8. Load tests The project uses [k6](https://k6.io) for load testing. -### Automation +### 8.1. Automation There is a [dedicated GitHub Action](https://github.com/visualize-admin/visualization-tool/actions/workflows/manual-load-test.yml) that runs the API load tests against selected environment. You can investigate the results by going to Actions section in GitHub and checking the summary results. They are also visible in the cloud (k6.io), if you enable the cloud option. -### Local setup +### 8.2. Local setup In order to run the tests locally, follow the [documentation](https://k6.io/docs/get-started/installation/) to install `k6` on your machine. -### Running the tests locally +### 8.3. Running the tests locally You might want to run the script locally, for example to be able to bypass the cloud limitations of k6 (e.g. max number of VUs bigger than 50). To run a given load test, simply run @@ -237,7 +239,7 @@ by directly modifying the `options` object inside a given script and running `ya For the GraphQL tests, you'll also need to pass `--env ENV=(test|int|prod)` flag to point to the proper environment and `--env ENABLE_GQL_SERVER_SIDE_CACHE=(true | false)` to control whether to use GQL server-side caching. -### Recording the tests using Playwright +### 8.4. Recording the tests using Playwright While some tests are written manually, other tests come from HAR recordings that span a broad set of actions. In order to record a HAR file and convert it into k6 script, use the `testAndSaveHar` inside `e2e/har-utils.ts` file. @@ -251,13 +253,27 @@ After the HAR file has been recorded, use [har-to-k6](https://k6.io/docs/test-au > ⚠️ You might want to remove requests to Google afterwards manually, to remove false-positives of blocked requests. -## Authentication +## 9. Authentication Authentication is provided by the Swiss federal government's eIAM through ADFS. We use Next-auth to integrate our application with it, through a [custom Provider](app/auth-providers/adfs.ts). -### Locally +### 9.1. Locally You can use the ref eIAM. ADFS environment variables should be configured in your `.env.local` file. You'll find those secret variables in our shared 1Password in the "Visualize.admin .env.local" entry. + +## 10. Translations + +Translations are managed via [Accent](https://accent.interactivethings.io). Right now, you need to +manually pull and push the translations. The process goes: + +1. Edit components, add `` and `t()` +2. Run `yarn locales:extract` to write the `en/messages.po` +3. Run `yarn locales:push --dry-run` to review what will be pushed to Accent +4. Run `yarn locales:push` to push the new translations to Accent +5. Edit the new messages in Accent web UI `yarn locales:browse` +6. Run `yarn locales:pull` to get the messages.po for all translated languages + +In the future, we might want to integrate further Accent so that it opens pull requests. diff --git a/accent.json b/accent.json new file mode 100644 index 000000000..6e44cb912 --- /dev/null +++ b/accent.json @@ -0,0 +1,11 @@ +{ + "apiUrl": "https://accent.interactivethings.io", + "files": [ + { + "namePattern": "file", + "format": "gettext", + "source": "app/locales/en/messages.po", + "target": "app/locales/%slug%/%document_path%.po" + } + ] +} diff --git a/package.json b/package.json index ef4dce3e3..493f2d641 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,9 @@ "lint": "eslint app -c .eslintrc.json", "locales:extract": "NODE_ENV=development lingui extract --verbose; ./scripts/strip-locale-line-numbers.sh", "locales:compile": "lingui compile --verbose", + "locales:push": "accent sync --add-translations", + "locales:pull": "accent export", + "locales:browse": "open 'https://accent.interactivethings.io/app/projects/584e1dfa-ff1f-4b26-8cac-07004c465134'", "graphql:codegen": "graphql-codegen --config codegen.yml", "graphql:codegen:dev": "graphql-codegen --config codegen.yml --watch", "icons": "rm -f app/icons/components/*.tsx && svgr -d app/icons/components app/icons/svg", @@ -71,6 +74,7 @@ "@types/react": "^17.0.2", "@types/react-dom": "^17.0.2", "@typescript-eslint/utils": "^5.35.1", + "accent-cli": "^0.16.2", "argparse": "^2.0.1", "babel-core": "^7.0.0-bridge.0", "babel-plugin-macros": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index c39913ea9..62df821e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2669,6 +2669,13 @@ lodash "^4.17.19" tabtab "^3.0.2" +"@cspotcode/source-map-support@^0.8.0": + version "0.8.1" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" + integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== + dependencies: + "@jridgewell/trace-mapping" "0.3.9" + "@date-io/core@^2.13.1": version "2.13.1" resolved "https://registry.yarnpkg.com/@date-io/core/-/core-2.13.1.tgz#f041765aff5c55fbc7e37fdd75fc1792733426d6" @@ -4513,6 +4520,14 @@ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== +"@jridgewell/trace-mapping@0.3.9": + version "0.3.9" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping@^0.3.17": version "0.3.17" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" @@ -5263,6 +5278,138 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" +"@oclif/command@^1.8.15", "@oclif/command@^1.8.22": + version "1.8.36" + resolved "https://registry.yarnpkg.com/@oclif/command/-/command-1.8.36.tgz#9739b9c268580d064a50887c4597d1b4e86ca8b5" + integrity sha512-/zACSgaYGtAQRzc7HjzrlIs14FuEYAZrMOEwicRoUnZVyRunG4+t5iSEeQu0Xy2bgbCD0U1SP/EdeNZSTXRwjQ== + dependencies: + "@oclif/config" "^1.18.2" + "@oclif/errors" "^1.3.6" + "@oclif/help" "^1.0.1" + "@oclif/parser" "^3.8.17" + debug "^4.1.1" + semver "^7.5.4" + +"@oclif/config@1.18.16": + version "1.18.16" + resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.18.16.tgz#3235d260ab1eb8388ebb6255bca3dd956249d796" + integrity sha512-VskIxVcN22qJzxRUq+raalq6Q3HUde7sokB7/xk5TqRZGEKRVbFeqdQBxDWwQeudiJEgcNiMvIFbMQ43dY37FA== + dependencies: + "@oclif/errors" "^1.3.6" + "@oclif/parser" "^3.8.16" + debug "^4.3.4" + globby "^11.1.0" + is-wsl "^2.1.1" + tslib "^2.6.1" + +"@oclif/config@^1.18.2", "@oclif/config@^1.18.8": + version "1.18.17" + resolved "https://registry.yarnpkg.com/@oclif/config/-/config-1.18.17.tgz#00aa4049da27edca8f06fc106832d9f0f38786a5" + integrity sha512-k77qyeUvjU8qAJ3XK3fr/QVAqsZO8QOBuESnfeM5HHtPNLSyfVcwiMM2zveSW5xRdLSG3MfV8QnLVkuyCL2ENg== + dependencies: + "@oclif/errors" "^1.3.6" + "@oclif/parser" "^3.8.17" + debug "^4.3.4" + globby "^11.1.0" + is-wsl "^2.1.1" + tslib "^2.6.1" + +"@oclif/core@^2.15.0", "@oclif/core@^2.3.1": + version "2.16.0" + resolved "https://registry.yarnpkg.com/@oclif/core/-/core-2.16.0.tgz#e6f3c6c359d4313a15403d8652bbdd0e99ce4b3a" + integrity sha512-dL6atBH0zCZl1A1IXCKJgLPrM/wR7K+Wi401E/IvqsK8m2iCHW+0TEOGrans/cuN3oTW+uxIyJFHJ8Im0k4qBw== + dependencies: + "@types/cli-progress" "^3.11.0" + ansi-escapes "^4.3.2" + ansi-styles "^4.3.0" + cardinal "^2.1.1" + chalk "^4.1.2" + clean-stack "^3.0.1" + cli-progress "^3.12.0" + debug "^4.3.4" + ejs "^3.1.8" + get-package-type "^0.1.0" + globby "^11.1.0" + hyperlinker "^1.0.0" + indent-string "^4.0.0" + is-wsl "^2.2.0" + js-yaml "^3.14.1" + natural-orderby "^2.0.3" + object-treeify "^1.1.33" + password-prompt "^1.1.2" + slice-ansi "^4.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + supports-color "^8.1.1" + supports-hyperlinks "^2.2.0" + ts-node "^10.9.1" + tslib "^2.5.0" + widest-line "^3.1.0" + wordwrap "^1.0.0" + wrap-ansi "^7.0.0" + +"@oclif/errors@1.3.6", "@oclif/errors@^1.3.5", "@oclif/errors@^1.3.6": + version "1.3.6" + resolved "https://registry.yarnpkg.com/@oclif/errors/-/errors-1.3.6.tgz#e8fe1fc12346cb77c4f274e26891964f5175f75d" + integrity sha512-fYaU4aDceETd89KXP+3cLyg9EHZsLD3RxF2IU9yxahhBpspWjkWi3Dy3bTgcwZ3V47BgxQaGapzJWDM33XIVDQ== + dependencies: + clean-stack "^3.0.0" + fs-extra "^8.1" + indent-string "^4.0.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + +"@oclif/help@^1.0.1": + version "1.0.15" + resolved "https://registry.yarnpkg.com/@oclif/help/-/help-1.0.15.tgz#5e36e576b8132a4906d2662204ad9de7ece87e8f" + integrity sha512-Yt8UHoetk/XqohYX76DfdrUYLsPKMc5pgkzsZVHDyBSkLiGRzujVaGZdjr32ckVZU9q3a47IjhWxhip7Dz5W/g== + dependencies: + "@oclif/config" "1.18.16" + "@oclif/errors" "1.3.6" + chalk "^4.1.2" + indent-string "^4.0.0" + lodash "^4.17.21" + string-width "^4.2.0" + strip-ansi "^6.0.0" + widest-line "^3.1.0" + wrap-ansi "^6.2.0" + +"@oclif/linewrap@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@oclif/linewrap/-/linewrap-1.0.0.tgz#aedcb64b479d4db7be24196384897b5000901d91" + integrity sha512-Ups2dShK52xXa8w6iBWLgcjPJWjais6KPJQq3gQ/88AY6BXoTX+MIGFPrWQO1KLMiQfoTpcLnUwloN4brrVUHw== + +"@oclif/parser@^3.8.16", "@oclif/parser@^3.8.17": + version "3.8.17" + resolved "https://registry.yarnpkg.com/@oclif/parser/-/parser-3.8.17.tgz#e1ce0f29b22762d752d9da1c7abd57ad81c56188" + integrity sha512-l04iSd0xoh/16TGVpXb81Gg3z7tlQGrEup16BrVLsZBK6SEYpYHRJZnM32BwZrHI97ZSFfuSwVlzoo6HdsaK8A== + dependencies: + "@oclif/errors" "^1.3.6" + "@oclif/linewrap" "^1.0.0" + chalk "^4.1.0" + tslib "^2.6.2" + +"@oclif/plugin-help@^5.2.6": + version "5.2.20" + resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-5.2.20.tgz#4035a0ac231f95fb8e334da342175e3ca00f6abc" + integrity sha512-u+GXX/KAGL9S10LxAwNUaWdzbEBARJ92ogmM7g3gDVud2HioCmvWQCDohNRVZ9GYV9oKwZ/M8xwd6a1d95rEKQ== + dependencies: + "@oclif/core" "^2.15.0" + +"@oclif/plugin-not-found@^2.3.21": + version "2.4.3" + resolved "https://registry.yarnpkg.com/@oclif/plugin-not-found/-/plugin-not-found-2.4.3.tgz#3d24095adb0f3876cb4bcfdfdcb775086cf6d4b5" + integrity sha512-nIyaR4y692frwh7wIHZ3fb+2L6XEecQwRDIb4zbEam0TvaVmBQWZoColQyWA84ljFBPZ8XWiQyTz+ixSwdRkqg== + dependencies: + "@oclif/core" "^2.15.0" + chalk "^4" + fast-levenshtein "^3.0.0" + +"@oclif/screen@^1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@oclif/screen/-/screen-1.0.4.tgz#b740f68609dfae8aa71c3a6cab15d816407ba493" + integrity sha512-60CHpq+eqnTxLZQ4PGHYNwUX572hgpMHGPtTWMjdTMsAvlm69lZV/4ly6O3sAYkomo4NggGcomrDpBe34rxUqw== + "@panva/hkdf@^1.0.2": version "1.1.1" resolved "https://registry.yarnpkg.com/@panva/hkdf/-/hkdf-1.1.1.tgz#ab9cd8755d1976e72fc77a00f7655a64efe6cd5d" @@ -8280,6 +8427,26 @@ "@types/sparql-http-client" "^2" anylogger "^1.0.11" +"@tsconfig/node10@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" + integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw== + +"@tsconfig/node12@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d" + integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== + +"@tsconfig/node14@^1.0.0": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1" + integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== + +"@tsconfig/node16@^1.0.2": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== + "@types/argparse@^2.0.10": version "2.0.10" resolved "https://registry.yarnpkg.com/@types/argparse/-/argparse-2.0.10.tgz#664e84808accd1987548d888b9d21b3e9c996a6c" @@ -8364,6 +8531,13 @@ resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.12.tgz#b192fe1c553b54f45d20543adc2ab88455a07d5e" integrity sha512-zNKDHG/1yxm8Il6uCCVsm+dRdEsJlFoDu73X17y09bId6UwoYww+vFBsAcRzl8knM1sab3Dp1VRikFQwDOtDDw== +"@types/cli-progress@^3.11.0": + version "3.11.5" + resolved "https://registry.yarnpkg.com/@types/cli-progress/-/cli-progress-3.11.5.tgz#9518c745e78557efda057e3f96a5990c717268c3" + integrity sha512-D4PbNRbviKyppS5ivBGyFO29POlySLmA2HyUFE4p5QGazAMM3CwkKWcvTl8gvElSuxRh6FPKL8XmidX873ou4g== + dependencies: + "@types/node" "*" + "@types/clownface@^1.5.0": version "1.5.0" resolved "https://registry.yarnpkg.com/@types/clownface/-/clownface-1.5.0.tgz#8da08cd66c2762b49aed111d9afcf6f06a9d7a9b" @@ -10001,6 +10175,25 @@ abstract-leveldown@~0.12.0, abstract-leveldown@~0.12.1: dependencies: xtend "~3.0.0" +accent-cli@^0.16.2: + version "0.16.2" + resolved "https://registry.yarnpkg.com/accent-cli/-/accent-cli-0.16.2.tgz#5a7bdcfc437fb92d3e2d4633976859125e6dace3" + integrity sha512-BbbZE+Qe8Y96XS5nySe/bwfXMdSjTMHGmfgGK2IX2O/9e5giI39TW+e8KQlPb+dzYOM0MJPCzkbngl2alHpFnw== + dependencies: + "@oclif/command" "^1.8.22" + "@oclif/config" "^1.18.8" + "@oclif/core" "^2.3.1" + "@oclif/plugin-help" "^5.2.6" + "@oclif/plugin-not-found" "^2.3.21" + chalk "4.1.2" + cli-ux "5.6.7" + decamelize "5.0.1" + form-data "^4.0.0" + glob "^8.1.0" + mkdirp "^2.1.3" + node-fetch "^2.0.0" + tslib "^2.5.0" + accepts@~1.3.5, accepts@~1.3.8: version "1.3.8" resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" @@ -10037,6 +10230,11 @@ acorn-walk@^8.0.0: resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.1.0.tgz" integrity sha512-mjmzmv12YIG/G8JQdQuz2MUDShEJ6teYpT5bmWA4q7iwoGen8xtt3twF3OvzIUl+Q06aWIjvnwQUKvQ6TtMRjg== +acorn-walk@^8.1.1: + version "8.3.2" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.2.tgz#7703af9415f1b6db9315d6895503862e231d34aa" + integrity sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A== + acorn@^7.1.1, acorn@^7.4.0, acorn@^7.4.1: version "7.4.1" resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" @@ -10047,7 +10245,7 @@ acorn@^8.0.4: resolved "https://registry.npmjs.org/acorn/-/acorn-8.4.0.tgz" integrity sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w== -acorn@^8.11.3, acorn@^8.7.1: +acorn@^8.11.3, acorn@^8.4.1, acorn@^8.7.1: version "8.11.3" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a" integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== @@ -10154,7 +10352,7 @@ ansi-escapes@^3.0.0, ansi-escapes@^3.2.0: resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz" integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== -ansi-escapes@^4.2.1, ansi-escapes@^4.3.1: +ansi-escapes@^4.2.1, ansi-escapes@^4.3.0, ansi-escapes@^4.3.1, ansi-escapes@^4.3.2: version "4.3.2" resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz" integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== @@ -10203,7 +10401,7 @@ ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" -ansi-styles@^4.0.0, ansi-styles@^4.1.0: +ansi-styles@^4.0.0, ansi-styles@^4.1.0, ansi-styles@^4.2.0, ansi-styles@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== @@ -10220,6 +10418,11 @@ ansi-styles@^6.1.0: resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== +ansicolors@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.3.2.tgz#665597de86a9ffe3aa9bfbe6cae5c6ea426b4979" + integrity sha512-QXu7BPrP29VllRxH8GwB7x5iX5qWKAAMLqKQGWTeLWVlNHNOpVMJ91dsxQAIWXpjuW5wqvxu3Jd/nRjrJ+0pqg== + any-observable@^0.3.0: version "0.3.0" resolved "https://registry.npmjs.org/any-observable/-/any-observable-0.3.0.tgz" @@ -11428,6 +11631,14 @@ capital-case@^1.0.4: tslib "^2.0.3" upper-case-first "^2.0.2" +cardinal@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/cardinal/-/cardinal-2.1.1.tgz#7cc1055d822d212954d07b085dea251cc7bc5505" + integrity sha512-JSr5eOgoEymtYHBjNWyjrMqet9Am2miJhlfKNdqLp6zoeAh0KN5dRAcxlecj5mAJrmQomgiOBj35xHLrFjqBpw== + dependencies: + ansicolors "~0.3.2" + redeyed "~2.1.0" + case-sensitive-paths-webpack-plugin@^2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.4.0.tgz#db64066c6422eed2e08cc14b986ca43796dbc6d4" @@ -11473,6 +11684,14 @@ chalk@3.0.0, chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" +chalk@4.1.2, chalk@^4, chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.1, chalk@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + chalk@^1.0.0, chalk@^1.1.3: version "1.1.3" resolved "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz" @@ -11493,14 +11712,6 @@ chalk@^2.0.0, chalk@^2.4.1, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.1, chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - chalk@^4.1.0: version "4.1.1" resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz" @@ -11707,6 +11918,13 @@ clean-stack@^2.0.0: resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== +clean-stack@^3.0.0, clean-stack@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-3.0.1.tgz#155bf0b2221bf5f4fba89528d24c5953f17fe3a8" + integrity sha512-lR9wNiMRcVQjSB3a7xXGLuz4cr4wJuuXlaAEbRutGowQTmlp7R72/DOgN21e8jdwblMWl9UOJMJXarX94pzKdg== + dependencies: + escape-string-regexp "4.0.0" + cli-cursor@^2.0.0, cli-cursor@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz" @@ -11721,6 +11939,13 @@ cli-cursor@^3.1.0: dependencies: restore-cursor "^3.1.0" +cli-progress@^3.12.0, cli-progress@^3.4.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/cli-progress/-/cli-progress-3.12.0.tgz#807ee14b66bcc086258e444ad0f19e7d42577942" + integrity sha512-tRkV3HJ1ASwm19THiiLIXLO7Im7wlTuKnvkYaTkyoAPefqjNg7W7DHKUlGRxy9vxDvbyCYQkQozvptuMkGCg8A== + dependencies: + string-width "^4.2.3" + cli-spinners@^2.5.0: version "2.6.0" resolved "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.0.tgz" @@ -11750,6 +11975,38 @@ cli-truncate@^0.2.1: slice-ansi "0.0.4" string-width "^1.0.1" +cli-ux@5.6.7: + version "5.6.7" + resolved "https://registry.yarnpkg.com/cli-ux/-/cli-ux-5.6.7.tgz#32ef9e6cb2b457be834280cc799028a11c8235a8" + integrity sha512-dsKAurMNyFDnO6X1TiiRNiVbL90XReLKcvIq4H777NMqXGBxBws23ag8ubCJE97vVZEgWG2eSUhsyLf63Jv8+g== + dependencies: + "@oclif/command" "^1.8.15" + "@oclif/errors" "^1.3.5" + "@oclif/linewrap" "^1.0.0" + "@oclif/screen" "^1.0.4" + ansi-escapes "^4.3.0" + ansi-styles "^4.2.0" + cardinal "^2.1.1" + chalk "^4.1.0" + clean-stack "^3.0.0" + cli-progress "^3.4.0" + extract-stack "^2.0.0" + fs-extra "^8.1" + hyperlinker "^1.0.0" + indent-string "^4.0.0" + is-wsl "^2.2.0" + js-yaml "^3.13.1" + lodash "^4.17.21" + natural-orderby "^2.0.1" + object-treeify "^1.1.4" + password-prompt "^1.1.2" + semver "^7.3.2" + string-width "^4.2.0" + strip-ansi "^6.0.0" + supports-color "^8.1.0" + supports-hyperlinks "^2.1.0" + tslib "^2.0.0" + cli-width@^2.0.0: version "2.2.1" resolved "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz" @@ -12866,6 +13123,11 @@ decamelize-keys@^1.1.0: decamelize "^1.1.0" map-obj "^1.0.0" +decamelize@5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-5.0.1.tgz#db11a92e58c741ef339fb0a2868d8a06a9a7b1e9" + integrity sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA== + decamelize@^1.1.0, decamelize@^1.2.0: version "1.2.0" resolved "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" @@ -13945,6 +14207,11 @@ escape-html@~1.0.3: resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== +escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" @@ -13955,11 +14222,6 @@ escape-string-regexp@^2.0.0: resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - escodegen@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz" @@ -14457,6 +14719,11 @@ extract-files@9.0.0, extract-files@^9.0.0: resolved "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz" integrity sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ== +extract-stack@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/extract-stack/-/extract-stack-2.0.0.tgz#11367bc865bfcd9bc0db3123e5edb57786f11f9b" + integrity sha512-AEo4zm+TenK7zQorGK1f9mJ8L14hnTDi2ZQPR+Mub1NX8zimka1mXpV5LpH8x9HoUmFSHZCfLHqWvp0Y4FxxzQ== + extract-zip@^1.6.6: version "1.7.0" resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.7.0.tgz#556cc3ae9df7f452c493a0cfb51cc30277940927" @@ -14566,6 +14833,18 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= +fast-levenshtein@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-3.0.0.tgz#37b899ae47e1090e40e3fd2318e4d5f0142ca912" + integrity sha512-hKKNajm46uNmTlhHSyZkmToAc56uZJwYq7yrciZjqOxnlfQwERDQJmHPUp7m1m9wx8vgOe8IaCKZ5Kv2k1DdCQ== + dependencies: + fastest-levenshtein "^1.0.7" + +fastest-levenshtein@^1.0.7: + version "1.0.16" + resolved "https://registry.yarnpkg.com/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz#210e61b6ff181de91ea9b3d1b84fdedd47e034e5" + integrity sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg== + fastq@^1.6.0: version "1.11.0" resolved "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz" @@ -14940,6 +15219,15 @@ fs-extra@^11.1.0: jsonfile "^6.0.1" universalify "^2.0.0" +fs-extra@^8.1: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs-extra@^9.0.1: version "9.1.0" resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz" @@ -15287,7 +15575,7 @@ glob@^7.1.3, glob@^7.2.0: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^8.0.3: +glob@^8.0.3, glob@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e" integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== @@ -15930,6 +16218,11 @@ human-signals@^5.0.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28" integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ== +hyperlinker@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/hyperlinker/-/hyperlinker-1.0.0.tgz#23dc9e38a206b208ee49bc2d6c8ef47027df0c0e" + integrity sha512-Ty8UblRWFEcfSuIaajM34LdPXIhbs1ajEX/BBPv24J+enSVaEVY63xQ6lTO9VRYS5LAoghIG0IDJ+p+IPzKUQQ== + hyphenate-style-name@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz#691879af8e220aea5750e8827db4ef62a54e361d" @@ -16737,7 +17030,7 @@ is-word-character@^1.0.0: resolved "https://registry.npmjs.org/is-word-character/-/is-word-character-1.0.4.tgz" integrity sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA== -is-wsl@^2.2.0: +is-wsl@^2.1.1, is-wsl@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== @@ -17423,7 +17716,7 @@ js-sha256@^0.10.1: resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@^3.13.1, js-yaml@^3.9.1: +js-yaml@^3.13.1, js-yaml@^3.14.1, js-yaml@^3.9.1: version "3.14.1" resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz" integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== @@ -17581,6 +17874,13 @@ json5@^2.2.2, json5@^2.2.3: resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== + optionalDependencies: + graceful-fs "^4.1.6" + jsonfile@^6.0.1: version "6.1.0" resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" @@ -18875,6 +19175,11 @@ mkdirp@^1.0.3, mkdirp@^1.0.4: resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== +mkdirp@^2.1.3: + version "2.1.6" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-2.1.6.tgz#964fbcb12b2d8c5d6fbc62a963ac95a273e2cc19" + integrity sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A== + module-definition@^3.3.1: version "3.4.0" resolved "https://registry.yarnpkg.com/module-definition/-/module-definition-3.4.0.tgz#953a3861f65df5e43e80487df98bb35b70614c2b" @@ -18978,6 +19283,11 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== +natural-orderby@^2.0.1, natural-orderby@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/natural-orderby/-/natural-orderby-2.0.3.tgz#8623bc518ba162f8ff1cdb8941d74deb0fdcc016" + integrity sha512-p7KTHxU0CUrcOXe62Zfrb5Z13nLvPhSWR/so3kFulUQU0sgUll2Z0LwpsLN351eOOD+hRGu/F1g+6xDfPeD++Q== + negotiator@0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" @@ -19358,6 +19668,11 @@ object-keys@~0.4.0: resolved "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz" integrity sha1-KKaq50KN0sOpLz2V8hM13SBOAzY= +object-treeify@^1.1.33, object-treeify@^1.1.4: + version "1.1.33" + resolved "https://registry.yarnpkg.com/object-treeify/-/object-treeify-1.1.33.tgz#f06fece986830a3cba78ddd32d4c11d1f76cdf40" + integrity sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A== + object.assign@^4.1.0, object.assign@^4.1.2: version "4.1.2" resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz" @@ -19763,6 +20078,14 @@ pascal-case@^3.1.2: no-case "^3.0.4" tslib "^2.0.3" +password-prompt@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/password-prompt/-/password-prompt-1.1.3.tgz#05e539f4e7ca4d6c865d479313f10eb9db63ee5f" + integrity sha512-HkrjG2aJlvF0t2BMH0e2LB/EHf3Lcq3fNMzy4GYHcQblAvOl+QQji1Lx7WRBMqpVK8p+KR7bCg7oqAMXtdgqyw== + dependencies: + ansi-escapes "^4.3.2" + cross-spawn "^7.0.3" + path-browserify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" @@ -21253,6 +21576,13 @@ redent@^3.0.0: indent-string "^4.0.0" strip-indent "^3.0.0" +redeyed@~2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/redeyed/-/redeyed-2.1.1.tgz#8984b5815d99cb220469c99eeeffe38913e6cc0b" + integrity sha512-FNpGGo1DycYAdnrKFxCMmKYgo/mILAqtRYbkdQD8Ep/Hk2PQ5+aEAEx+IU713RTDmuBaH0c8P5ZozurNu5ObRQ== + dependencies: + esprima "~4.0.0" + reduce-css-calc@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz#747c914e049614a4c9cfbba629871ad1d2927716" @@ -22684,7 +23014,7 @@ string-to-stream@^3.0.1: dependencies: readable-stream "^3.4.0" -"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.2.0, string-width@^4.2.3: name string-width-cjs version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" @@ -22970,7 +23300,7 @@ supports-color@^7.0.0, supports-color@^7.1.0: dependencies: has-flag "^4.0.0" -supports-color@^8.0.0: +supports-color@^8.0.0, supports-color@^8.1.0, supports-color@^8.1.1: version "8.1.1" resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== @@ -22985,6 +23315,14 @@ supports-hyperlinks@^2.0.0: has-flag "^4.0.0" supports-color "^7.0.0" +supports-hyperlinks@^2.1.0, supports-hyperlinks@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz#3943544347c1ff90b15effb03fc14ae45ec10624" + integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== + dependencies: + has-flag "^4.0.0" + supports-color "^7.0.0" + supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" @@ -23472,6 +23810,25 @@ ts-log@^2.2.3: resolved "https://registry.npmjs.org/ts-log/-/ts-log-2.2.3.tgz" integrity sha512-XvB+OdKSJ708Dmf9ore4Uf/q62AYDTzFcAdxc8KNML1mmAWywRFVt/dn1KYJH8Agt5UJNujfM3znU5PxgAzA2w== +ts-node@^10.9.1: + version "10.9.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" + integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== + dependencies: + "@cspotcode/source-map-support" "^0.8.0" + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.2" + acorn "^8.4.1" + acorn-walk "^8.1.1" + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + v8-compile-cache-lib "^3.0.1" + yn "3.1.1" + ts-node@^9: version "9.1.1" resolved "https://registry.npmjs.org/ts-node/-/ts-node-9.1.1.tgz" @@ -23537,7 +23894,7 @@ tslib@^2, tslib@^2.0.3, tslib@^2.1.0, tslib@~2.3.0: resolved "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz" integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg== -tslib@^2.0.0, tslib@^2.0.1, tslib@^2.3.0, tslib@^2.3.1: +tslib@^2.0.0, tslib@^2.0.1, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.5.0, tslib@^2.6.1, tslib@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== @@ -23896,7 +24253,7 @@ unist-util-visit@2.0.3, unist-util-visit@^2.0.0: unist-util-is "^4.0.0" unist-util-visit-parents "^3.0.0" -universalify@^0.1.2: +universalify@^0.1.0, universalify@^0.1.2: version "0.1.2" resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== @@ -24104,6 +24461,11 @@ uuid@^9.0.0: resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz#592f550650024a38ceb0c562f2f6aa435761efb5" integrity sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg== +v8-compile-cache-lib@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" + integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== + v8-compile-cache@^2.0.3, v8-compile-cache@^2.1.1: version "2.3.0" resolved "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz" @@ -24526,6 +24888,13 @@ which@^2.0.1, which@^2.0.2: dependencies: isexe "^2.0.0" +widest-line@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" + integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg== + dependencies: + string-width "^4.0.0" + "wonka@>= 4.0.9", wonka@^4.0.14: version "4.0.15" resolved "https://registry.npmjs.org/wonka/-/wonka-4.0.15.tgz" From 36648f47839954e058ce91e5196be1cf672e50bd Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Thu, 30 May 2024 09:10:59 +0200 Subject: [PATCH 2/6] refactor: Clean out old unused locales --- app/locales/de/messages.po | 29 +---------------------------- app/locales/en/messages.po | 32 -------------------------------- app/locales/fr/messages.po | 32 -------------------------------- app/locales/it/messages.po | 33 +-------------------------------- 4 files changed, 2 insertions(+), 124 deletions(-) diff --git a/app/locales/de/messages.po b/app/locales/de/messages.po index 3164150ec..c20fff0a6 100644 --- a/app/locales/de/messages.po +++ b/app/locales/de/messages.po @@ -61,10 +61,6 @@ msgstr "Alle Datensätze durchsuchen" msgid "browse.dataset.create-visualization" msgstr "Visualisierung von diesem Datensatz erstellen" -#: app/browser/select-dataset-step.tsx -#~ msgid "browse.datasets.all-datasets" -#~ msgstr "Alle Datensätze" - #: app/browser/select-dataset-step.tsx msgid "browse.datasets.description" msgstr "Erkunden Sie die vom LINDAS Linked Data Service bereitgestellten Datensätze, indem Sie entweder nach Kategorien oder Organisationen filtern oder direkt nach bestimmten Stichworten suchen. Klicken Sie auf einen Datensatz, um detailliertere Informationen zu erhalten und Ihre eigenen Visualisierungen zu erstellen." @@ -221,14 +217,11 @@ msgstr "Symbole" msgid "chart.published.toggle.mobile.view" msgstr "Kompakte Ansicht" -#: app/login/components/profile-tables.tsx -#~ msgid "chart.rename" -#~ msgstr "Umbenennen" - #: app/charts/table/table.tsx msgid "chart.table.number.of.lines" msgstr "Anzahl Zeilen" +#: app/components/chart-selection-tabs.tsx msgid "chat-preview.delete.confirmation" msgstr "Sind Sie sicher, dass Sie dieses Diagramm löschen möchten?" @@ -1335,10 +1328,6 @@ msgstr "Filter ausblenden" msgid "interactive.data.filters.show" msgstr "Filter anzeigen" -#: app/login/components/profile-tables.tsx -#~ msgid "login.chart.actions.publish" -#~ msgstr "Veröffentlichen" - #: app/login/components/profile-tables.tsx msgid "login.chart.actions.unpublish" msgstr "Veröffentlichung aufheben" @@ -1388,10 +1377,6 @@ msgstr "Sind Sie sicher, dass Sie diese Aktion durchführen wollen?" msgid "login.profile.chart.delete.warning" msgstr "Denken Sie daran, dass das Entfernen dieser Visualisierung sich auf alle Stellen auswirkt, an denen sie möglicherweise bereits eingebettet ist!" -#: app/login/components/profile-tables.tsx -#~ msgid "login.profile.chart.rename-dialog.title" -#~ msgstr "" - #: app/login/components/profile-content-tabs.tsx msgid "login.profile.home" msgstr "Empfang" @@ -1416,10 +1401,6 @@ msgstr "Aktionen" msgid "login.profile.my-visualizations.chart-name" msgstr "Name" -#: app/login/components/profile-tables.tsx -#~ msgid "login.profile.my-visualizations.chart-published-date" -#~ msgstr "Veröffentlicht" - #: app/login/components/profile-tables.tsx msgid "login.profile.my-visualizations.chart-type" msgstr "Typ" @@ -1436,14 +1417,6 @@ msgstr "Datensatz" msgid "login.profile.my-visualizations.multiple-datasets" msgstr "" -#: app/login/components/profile-tables.tsx -#~ msgid "login.rename-dialog.cancel" -#~ msgstr "Abbrechen" - -#: app/login/components/profile-tables.tsx -#~ msgid "login.rename-dialog.save" -#~ msgstr "Speichern" - #: app/components/header.tsx #: app/components/header.tsx msgid "logo.swiss.confederation" diff --git a/app/locales/en/messages.po b/app/locales/en/messages.po index 6cd66a771..88df9ebbe 100644 --- a/app/locales/en/messages.po +++ b/app/locales/en/messages.po @@ -61,10 +61,6 @@ msgstr "Browse all datasets" msgid "browse.dataset.create-visualization" msgstr "Start a visualization" -#: app/browser/select-dataset-step.tsx -#~ msgid "browse.datasets.all-datasets" -#~ msgstr "All datasets" - #: app/browser/select-dataset-step.tsx msgid "browse.datasets.description" msgstr "Explore datasets provided by the LINDAS Linked Data Service by either filtering by categories or organisations or search directly for specific keywords. Click on a dataset to see more detailed information and start creating your own visualizations." @@ -221,10 +217,6 @@ msgstr "Symbols" msgid "chart.published.toggle.mobile.view" msgstr "Compact view" -#: app/login/components/profile-tables.tsx -#~ msgid "chart.rename" -#~ msgstr "Rename" - #: app/charts/table/table.tsx msgid "chart.table.number.of.lines" msgstr "Total number of lines:" @@ -1336,10 +1328,6 @@ msgstr "Hide Filters" msgid "interactive.data.filters.show" msgstr "Show Filters" -#: app/login/components/profile-tables.tsx -#~ msgid "login.chart.actions.publish" -#~ msgstr "Publish" - #: app/login/components/profile-tables.tsx msgid "login.chart.actions.unpublish" msgstr "Unpublish" @@ -1389,10 +1377,6 @@ msgstr "Are you sure you want to perform this action?" msgid "login.profile.chart.delete.warning" msgstr "Keep in mind that removing this visualization will affect all the places where it might be already embedded!" -#: app/login/components/profile-tables.tsx -#~ msgid "login.profile.chart.rename-dialog.title" -#~ msgstr "Enhance chart clarity with a clear title; a good title helps understanding chart content." - #: app/login/components/profile-content-tabs.tsx msgid "login.profile.home" msgstr "Home" @@ -1409,10 +1393,6 @@ msgstr "My draft visualisations" msgid "login.profile.my-published-visualizations" msgstr "My published visualizations" -#: app/login/components/profile-content-tabs.tsx -#~ msgid "login.profile.my-visualizations" -#~ msgstr "My visualizations" - #: app/login/components/profile-tables.tsx msgid "login.profile.my-visualizations.chart-actions" msgstr "Actions" @@ -1421,10 +1401,6 @@ msgstr "Actions" msgid "login.profile.my-visualizations.chart-name" msgstr "Name" -#: app/login/components/profile-tables.tsx -#~ msgid "login.profile.my-visualizations.chart-published-date" -#~ msgstr "Published" - #: app/login/components/profile-tables.tsx msgid "login.profile.my-visualizations.chart-type" msgstr "Type" @@ -1441,14 +1417,6 @@ msgstr "Dataset" msgid "login.profile.my-visualizations.multiple-datasets" msgstr "Multiple datasets" -#: app/login/components/profile-tables.tsx -#~ msgid "login.rename-dialog.cancel" -#~ msgstr "Cancel" - -#: app/login/components/profile-tables.tsx -#~ msgid "login.rename-dialog.save" -#~ msgstr "Save" - #: app/components/header.tsx #: app/components/header.tsx msgid "logo.swiss.confederation" diff --git a/app/locales/fr/messages.po b/app/locales/fr/messages.po index c72595ab7..455a7f4a4 100644 --- a/app/locales/fr/messages.po +++ b/app/locales/fr/messages.po @@ -61,10 +61,6 @@ msgstr "Parcourir tous les ensembles de données" msgid "browse.dataset.create-visualization" msgstr "Démarrer une visualisation" -#: app/browser/select-dataset-step.tsx -#~ msgid "browse.datasets.all-datasets" -#~ msgstr "Tous les jeux de données" - #: app/browser/select-dataset-step.tsx msgid "browse.datasets.description" msgstr "Explorez les jeux de données liés fournis par LINDAS, en filtrant par catégories ou organisations, ou en recherchant par mots-clés. Cliquez sur un ensemble de données pour afficher des informations plus détaillées et commencer à créer vos propres visualisations. " @@ -221,10 +217,6 @@ msgstr "Symboles" msgid "chart.published.toggle.mobile.view" msgstr "Vue compacte" -#: app/login/components/profile-tables.tsx -#~ msgid "chart.rename" -#~ msgstr "Renommer" - #: app/charts/table/table.tsx msgid "chart.table.number.of.lines" msgstr "Nombre total de lignes:" @@ -1336,10 +1328,6 @@ msgstr "Masquer les filtres" msgid "interactive.data.filters.show" msgstr "Afficher les filtres" -#: app/login/components/profile-tables.tsx -#~ msgid "login.chart.actions.publish" -#~ msgstr "Veröffentlichen" - #: app/login/components/profile-tables.tsx msgid "login.chart.actions.unpublish" msgstr "Dépublier" @@ -1389,10 +1377,6 @@ msgstr "Êtes-vous sûr de vouloir effectuer cette action ?" msgid "login.profile.chart.delete.warning" msgstr "Gardez à l'esprit que la suppression de cette visualisation affectera tous les endroits où elle est déjà intégrée !" -#: app/login/components/profile-tables.tsx -#~ msgid "login.profile.chart.rename-dialog.title" -#~ msgstr "Renommer la visualisation" - #: app/login/components/profile-content-tabs.tsx msgid "login.profile.home" msgstr "Accueil" @@ -1409,10 +1393,6 @@ msgstr "Mes visualisations en brouillon" msgid "login.profile.my-published-visualizations" msgstr "Mes visualisations publiées" -#: app/login/components/profile-content-tabs.tsx -#~ msgid "login.profile.my-visualizations" -#~ msgstr "Mes visualisations" - #: app/login/components/profile-tables.tsx msgid "login.profile.my-visualizations.chart-actions" msgstr "Actions" @@ -1421,10 +1401,6 @@ msgstr "Actions" msgid "login.profile.my-visualizations.chart-name" msgstr "Nom" -#: app/login/components/profile-tables.tsx -#~ msgid "login.profile.my-visualizations.chart-published-date" -#~ msgstr "Publié" - #: app/login/components/profile-tables.tsx msgid "login.profile.my-visualizations.chart-type" msgstr "Type" @@ -1441,14 +1417,6 @@ msgstr "Ensemble de données" msgid "login.profile.my-visualizations.multiple-datasets" msgstr "" -#: app/login/components/profile-tables.tsx -#~ msgid "login.rename-dialog.cancel" -#~ msgstr "Annuler" - -#: app/login/components/profile-tables.tsx -#~ msgid "login.rename-dialog.save" -#~ msgstr "Sauver" - #: app/components/header.tsx #: app/components/header.tsx msgid "logo.swiss.confederation" diff --git a/app/locales/it/messages.po b/app/locales/it/messages.po index 35c3815b4..476e0f9e7 100644 --- a/app/locales/it/messages.po +++ b/app/locales/it/messages.po @@ -61,10 +61,6 @@ msgstr "Sfoglia tutti i set di dati" msgid "browse.dataset.create-visualization" msgstr "Iniziare una visualizzazione" -#: app/browser/select-dataset-step.tsx -#~ msgid "browse.datasets.all-datasets" -#~ msgstr "Tutti i set di dati" - #: app/browser/select-dataset-step.tsx msgid "browse.datasets.description" msgstr "Esplora i set di dati forniti dal LINDAS Linked Data Service filtrando per categorie o organizzazioni oppure cercando direttamente per parole chiave specifiche. Clicca su un set di dati per vedere informazioni più dettagliate e iniziare a creare le tue visualizzazioni." @@ -221,14 +217,11 @@ msgstr "Simboli" msgid "chart.published.toggle.mobile.view" msgstr "Vista compatta" -#: app/login/components/profile-tables.tsx -#~ msgid "chart.rename" -#~ msgstr "Rinominare" - #: app/charts/table/table.tsx msgid "chart.table.number.of.lines" msgstr "Numero totale di linee:" +#: app/components/chart-selection-tabs.tsx msgid "chat-preview.delete.confirmation" msgstr "Sei sicuro di voler eliminare questo grafico?" @@ -1335,10 +1328,6 @@ msgstr "Nascondi i filtri" msgid "interactive.data.filters.show" msgstr "Mostra i filtri" -#: app/login/components/profile-tables.tsx -#~ msgid "login.chart.actions.publish" -#~ msgstr "Pubblicare" - #: app/login/components/profile-tables.tsx msgid "login.chart.actions.unpublish" msgstr "Annullare la pubblicazione" @@ -1388,10 +1377,6 @@ msgstr "Siete sicuri di voler eseguire questa azione?" msgid "login.profile.chart.delete.warning" msgstr "Tenete presente che la rimozione di questa visualizzazione avrà effetto su tutti i luoghi in cui potrebbe essere già incorporata!" -#: app/login/components/profile-tables.tsx -#~ msgid "login.profile.chart.rename-dialog.title" -#~ msgstr "" - #: app/login/components/profile-content-tabs.tsx msgid "login.profile.home" msgstr "Accoglienza" @@ -1408,10 +1393,6 @@ msgstr "Le mie bozze" msgid "login.profile.my-published-visualizations" msgstr "" -#: app/login/components/profile-content-tabs.tsx -#~ msgid "login.profile.my-visualizations" -#~ msgstr "Le mie visualizzazioni" - #: app/login/components/profile-tables.tsx msgid "login.profile.my-visualizations.chart-actions" msgstr "Azioni" @@ -1420,10 +1401,6 @@ msgstr "Azioni" msgid "login.profile.my-visualizations.chart-name" msgstr "Nome" -#: app/login/components/profile-tables.tsx -#~ msgid "login.profile.my-visualizations.chart-published-date" -#~ msgstr "Pubblicato" - #: app/login/components/profile-tables.tsx msgid "login.profile.my-visualizations.chart-type" msgstr "Tipo" @@ -1440,14 +1417,6 @@ msgstr "Set di dati" msgid "login.profile.my-visualizations.multiple-datasets" msgstr "" -#: app/login/components/profile-tables.tsx -#~ msgid "login.rename-dialog.cancel" -#~ msgstr "Annulla" - -#: app/login/components/profile-tables.tsx -#~ msgid "login.rename-dialog.save" -#~ msgstr "Salva" - #: app/components/header.tsx #: app/components/header.tsx msgid "logo.swiss.confederation" From 8b3efc2b52b5d04f8dd3b9d400705c2037216245 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Thu, 30 May 2024 09:11:11 +0200 Subject: [PATCH 3/6] chore: Clean unused locales when extracting them --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 493f2d641..c160b7991 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "start": "yarn db:migrate && GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE='' NO_PROXY='localhost,127.0.0.1' next start ./app -p $PORT", "typecheck": "lingui compile && tsc --noEmit -p ./app && tsc --noEmit -p ./embed", "lint": "eslint app -c .eslintrc.json", - "locales:extract": "NODE_ENV=development lingui extract --verbose; ./scripts/strip-locale-line-numbers.sh", + "locales:extract": "NODE_ENV=development lingui extract --verbose --clean; ./scripts/strip-locale-line-numbers.sh", "locales:compile": "lingui compile --verbose", "locales:push": "accent sync --add-translations", "locales:pull": "accent export", From a65610ce2451e6728e48e84127c379ce26e31a08 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Thu, 30 May 2024 09:08:49 +0200 Subject: [PATCH 4/6] fix: Put back lingui location comments when pulling locales --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c160b7991..f400f9acc 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "locales:extract": "NODE_ENV=development lingui extract --verbose --clean; ./scripts/strip-locale-line-numbers.sh", "locales:compile": "lingui compile --verbose", "locales:push": "accent sync --add-translations", - "locales:pull": "accent export", + "locales:pull": "accent export; yarn locales:extract # putting back file location comments", "locales:browse": "open 'https://accent.interactivethings.io/app/projects/584e1dfa-ff1f-4b26-8cac-07004c465134'", "graphql:codegen": "graphql-codegen --config codegen.yml", "graphql:codegen:dev": "graphql-codegen --config codegen.yml --watch", From 33c1e406c07426a80f57152d135ac71bd3fc4d32 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Thu, 30 May 2024 09:12:34 +0200 Subject: [PATCH 5/6] refactor: Update po files after running yarn locales:pull --- app/locales/de/messages.po | 2 +- app/locales/en/messages.po | 2 +- app/locales/fr/messages.po | 2 +- app/locales/it/messages.po | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/locales/de/messages.po b/app/locales/de/messages.po index c20fff0a6..f8cb6f382 100644 --- a/app/locales/de/messages.po +++ b/app/locales/de/messages.po @@ -11,7 +11,7 @@ msgstr "" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" -"Plural-Forms: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #: app/configurator/components/chart-configurator.tsx msgid "Add filter" diff --git a/app/locales/en/messages.po b/app/locales/en/messages.po index 88df9ebbe..e8addbc6f 100644 --- a/app/locales/en/messages.po +++ b/app/locales/en/messages.po @@ -11,7 +11,7 @@ msgstr "" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" -"Plural-Forms: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #: app/configurator/components/chart-configurator.tsx msgid "Add filter" diff --git a/app/locales/fr/messages.po b/app/locales/fr/messages.po index 455a7f4a4..c145c6dba 100644 --- a/app/locales/fr/messages.po +++ b/app/locales/fr/messages.po @@ -11,7 +11,7 @@ msgstr "" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" -"Plural-Forms: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" #: app/configurator/components/chart-configurator.tsx msgid "Add filter" diff --git a/app/locales/it/messages.po b/app/locales/it/messages.po index 476e0f9e7..b39bb0de5 100644 --- a/app/locales/it/messages.po +++ b/app/locales/it/messages.po @@ -11,7 +11,7 @@ msgstr "" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" -"Plural-Forms: \n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" #: app/configurator/components/chart-configurator.tsx msgid "Add filter" From e640bbe1d9838fcbf127ce5102b9e67b218d4a0e Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Thu, 30 May 2024 09:14:15 +0200 Subject: [PATCH 6/6] chore: Do not be so verbose --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f400f9acc..6be31cdce 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "start": "yarn db:migrate && GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE='' NO_PROXY='localhost,127.0.0.1' next start ./app -p $PORT", "typecheck": "lingui compile && tsc --noEmit -p ./app && tsc --noEmit -p ./embed", "lint": "eslint app -c .eslintrc.json", - "locales:extract": "NODE_ENV=development lingui extract --verbose --clean; ./scripts/strip-locale-line-numbers.sh", + "locales:extract": "NODE_ENV=development lingui extract --clean; ./scripts/strip-locale-line-numbers.sh", "locales:compile": "lingui compile --verbose", "locales:push": "accent sync --add-translations", "locales:pull": "accent export; yarn locales:extract # putting back file location comments",