From fabe956d6b38f6d6175e01a071e97611a3c2401c Mon Sep 17 00:00:00 2001 From: deepali chavhan Date: Tue, 6 Aug 2024 15:01:01 +0530 Subject: [PATCH 1/2] Task #223472 fix: changes in github actions for vite --- .github/workflows/all-dev-rig.yml | 5 ++++- src/utils/constants.jsx | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/all-dev-rig.yml b/.github/workflows/all-dev-rig.yml index 6415e224..3e0e615c 100644 --- a/.github/workflows/all-dev-rig.yml +++ b/.github/workflows/all-dev-rig.yml @@ -74,7 +74,10 @@ jobs: VITE_APP_POST_LEARNER_PROGRESS: ${{ vars.REACT_APP_POST_LEARNER_PROGRESS }} VITE_APP_IS_APP_IFRAME: ${{ vars.REACT_APP_IS_APP_IFRAME }} VITE_APP_IS_IN_APP_AUTHORISATION: ${{ vars.REACT_APP_IS_IN_APP_AUTHORISATION }} - VITE_APP_IS_APP_LANGUAGES: ${{ vars.REACT_APP_IS_APP_LANGUAGES }} + VITE_APP_LANGUAGES: ${{ vars.REACT_APP_LANGUAGES }} + VITE_APP_ASR_OFFLINE_LANGUAGUAGES: ${{ vars.REACT_APP_ASR_OFFLINE_LANGUAGUAGES }} + VITE_APP_AWS_ACCESS_KEY_ID: ${{ secrets.REACT_APP_AWS_ACCESS_KEY_ID }} + _APP_AWS_SECRET_ACCESS_KEY: ${{ secrets.REACT_APP_AWS_SECRET_ACCESS_KEY }} CI: false # Disabling CI to not treat warnings as errors run: npm run build diff --git a/src/utils/constants.jsx b/src/utils/constants.jsx index e74bcd6a..6d280d18 100644 --- a/src/utils/constants.jsx +++ b/src/utils/constants.jsx @@ -3336,12 +3336,12 @@ export const levelGetContent = { { title: "P1", criteria: "word", - template: "simple" + template: "simple", }, { title: "P2", criteria: "word", - template: "simple" + template: "simple", }, { title: "P3", criteria: "sentence", template: "simple" }, { title: "P4", criteria: "sentence", template: "simple" }, @@ -3453,10 +3453,10 @@ export function callConfettiSnow() { } // since particles fall down, start a bit higher than random - timeLeft = animationEnd - Date.now(); + timeLeft = animationEnd - Date.now(); var ticks = Math.max(200, 500 * (timeLeft / duration)); var skew; - skew = Math.max(0.8, skew - 0.001); + skew = Math.max(0.8, skew - 0.001); confetti({ particleCount: 1, @@ -3516,20 +3516,20 @@ export const levelConfig = { 9: { color: "#00C7E2" }, }; - const AllLanguages = [ +const AllLanguages = [ { name: "தமிழ்", lang: "ta", symbol: "இ" }, { name: "English", lang: "en", symbol: "A" }, { name: "हिंदी", lang: "hi", symbol: "क" }, - { name: "ಕನ್ನಡ", lang: "kn", symbol: "ಕ" } , - { name: "తెలుగు", lang: "te", symbol: "ఈ" } , + { name: "ಕನ್ನಡ", lang: "kn", symbol: "ಕ" }, + { name: "తెలుగు", lang: "te", symbol: "ఈ" }, ]; -const appLanguages = import.meta.env.VITE_APP_IS_APP_LANGUAGES - ? JSON.parse(import.meta.env.VITE_APP_IS_APP_LANGUAGES) +const appLanguages = import.meta.env.VITE_APP_LANGUAGES + ? JSON.parse(import.meta.env.VITE_APP_LANGUAGES) : []; -export const languages = AllLanguages.filter(lang => - appLanguages.includes(lang.lang) +export const languages = AllLanguages.filter((lang) => + appLanguages.includes(lang.lang) ); export const randomizeArray = (arr) => { From ddf546eb4e6170a195654e9c5f1aba8c879295bb Mon Sep 17 00:00:00 2001 From: deepali chavhan Date: Tue, 6 Aug 2024 15:03:25 +0530 Subject: [PATCH 2/2] Task #223472 fix: changes in github actions for vite --- .github/workflows/all-dev-rig.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/all-dev-rig.yml b/.github/workflows/all-dev-rig.yml index 3e0e615c..f33afcba 100644 --- a/.github/workflows/all-dev-rig.yml +++ b/.github/workflows/all-dev-rig.yml @@ -77,7 +77,7 @@ jobs: VITE_APP_LANGUAGES: ${{ vars.REACT_APP_LANGUAGES }} VITE_APP_ASR_OFFLINE_LANGUAGUAGES: ${{ vars.REACT_APP_ASR_OFFLINE_LANGUAGUAGES }} VITE_APP_AWS_ACCESS_KEY_ID: ${{ secrets.REACT_APP_AWS_ACCESS_KEY_ID }} - _APP_AWS_SECRET_ACCESS_KEY: ${{ secrets.REACT_APP_AWS_SECRET_ACCESS_KEY }} + VITE_APP_AWS_SECRET_ACCESS_KEY: ${{ secrets.REACT_APP_AWS_SECRET_ACCESS_KEY }} CI: false # Disabling CI to not treat warnings as errors run: npm run build