Skip to content

Commit

Permalink
Merge pull request #136 from Sunbird-ALL/revert-134-vite-all-1.2
Browse files Browse the repository at this point in the history
Revert "Task #223472 fix: changes in github actions for vite"
  • Loading branch information
gouravmore authored Aug 12, 2024
2 parents e6ba754 + e18ed85 commit ddb6ad0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/all-dev-rig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ 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_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 }}
VITE_APP_AWS_SECRET_ACCESS_KEY: ${{ secrets.REACT_APP_AWS_SECRET_ACCESS_KEY }}
VITE_APP_IS_APP_LANGUAGES: ${{ vars.REACT_APP_IS_APP_LANGUAGES }}
CI: false # Disabling CI to not treat warnings as errors
run: npm run build

Expand Down
22 changes: 11 additions & 11 deletions src/utils/constants.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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_LANGUAGES
? JSON.parse(import.meta.env.VITE_APP_LANGUAGES)
const appLanguages = import.meta.env.VITE_APP_IS_APP_LANGUAGES
? JSON.parse(import.meta.env.VITE_APP_IS_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) => {
Expand Down

0 comments on commit ddb6ad0

Please sign in to comment.