From 1eb9f976d1220fe05453d2778ccc6933534a3ecd Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Tue, 7 Nov 2023 18:16:32 +0300 Subject: [PATCH] Vendor in case functions (#3233) * Vendor in case package * Create a kebabToCamel JS function for locales * Update the lock file Signed-off-by: Olga Bulat * Add suggestions from code review Signed-off-by: Olga Bulat --------- Signed-off-by: Olga Bulat --- frontend/package.json | 1 - frontend/src/components/VLicense/VLicense.vue | 4 +- .../components/VLicense/VLicenseElements.vue | 4 +- .../components/VSafetyWall/VSafetyWall.vue | 6 +- .../src/components/meta/VButton.stories.mdx | 4 +- frontend/src/locales/scripts/utils.js | 15 +++- frontend/src/stores/provider.ts | 4 +- frontend/src/utils/case.ts | 71 +++++++++++++++++++ frontend/src/utils/decode-media-data.ts | 5 +- frontend/src/utils/license.ts | 6 +- frontend/src/utils/metadata.ts | 5 +- frontend/test/unit/specs/utils/case.spec.js | 29 ++++++++ pnpm-lock.yaml | 7 -- 13 files changed, 132 insertions(+), 29 deletions(-) create mode 100644 frontend/src/utils/case.ts create mode 100644 frontend/test/unit/specs/utils/case.spec.js diff --git a/frontend/package.json b/frontend/package.json index 13c76f0bb6b..e73dd86e6b6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -71,7 +71,6 @@ "async-mutex": "^0.3.2", "axios": "^0.27.0", "axios-mock-adapter": "^1.20.0", - "case": "^1.6.3", "clipboard": "^2.0.11", "cookie-universal-nuxt": "^2.1.5", "core-js": "^3.27.2", diff --git a/frontend/src/components/VLicense/VLicense.vue b/frontend/src/components/VLicense/VLicense.vue index 6592536ecc6..c0883177bf3 100644 --- a/frontend/src/components/VLicense/VLicense.vue +++ b/frontend/src/components/VLicense/VLicense.vue @@ -17,11 +17,11 @@