-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: add env var for talking surveys * feat(#240): add capmi app to the router rules * feat(#242): inject externalResources script at start * feat(#238): add global variable before initalize with Lunatic fix: #238 * fix: types in LunaticData * fix: types again We use only one function to initalize surveyUnit correctly Co-Authored-By: Quentin Ruhier <[email protected]> * feat(#231): add external service-worker in condition where VITE_EXTERNAL_RESOURCES_URL is defined (#252) fix: #231 * feat: add talking questionnaires synchro (#246) * feat: get externalResources during synchronization * chore: add comments & remove unused imports/exports * fix: get external resources only for needed questionnaires * feat: delete external resources for not needed questionnaires * feat: delete external resources root-cache if no external questionnaire needed * feat: handle progress bar for external resources synchro * fix: handle promises for external resources * perf: optimize cache lookup during external resources synchronization * feat : handle errors on fetching external url * chore: remove unused functions & imports * feat: delete old external resources caches * docs: add external resources synchronization * refactor: simplify externalResources functions * test: set vitest * test: add tests for external resources synchro * fix: import const * ci: add test in jobs * ci: remove condition on target branch for pull_request * ci: fix test job * test : fix sonar config * docs : update external resources synchro * docs: improve external resources synchro * refactor: remove multiple imports + uppercase constants (#257) * refactor : set const for imports of env var VITE_EXTERNAL_RESOURCES_URL * refactor: uppercase constants * refactor: regroup core exported constants * chore: remove unused import * fix: duplicate export * test(sonar) : fix coverage config * ci : adapt CI for tests & sonar * ci: rename ci & jobs --------- Co-authored-by: Quentin Ruhier <[email protected]> Co-authored-by: Quentin Ruhier <[email protected]> Co-authored-by: Emmanuel DEMEY <[email protected]>
- Loading branch information
1 parent
7f9c51d
commit a72212f
Showing
40 changed files
with
1,525 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
VITE_BASE_URL=http://localhost:5000 | ||
VITE_QUEEN_API_URL= | ||
VITE_EXTERNAL_RESOURCES_URL= | ||
VITE_OIDC_ISSUER= | ||
VITE_OIDC_CLIENT_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ pnpm-debug.log* | |
lerna-debug.log* | ||
|
||
node_modules | ||
coverage | ||
dist | ||
dist-ssr | ||
*.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
VITE_QUEEN_API_URL= | ||
# If no environment variable for external resources is provided, the application will not trigger external resources treatments. | ||
VITE_EXTERNAL_RESOURCES_URL= | ||
# If no environment variables for OIDC are provided, the application will use a mock OIDC. | ||
VITE_OIDC_ISSUER= | ||
VITE_OIDC_CLIENT_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const DYNAMIC_PUBLIC_URL = new URL(import.meta.url).origin | ||
export const EXTERNAL_RESOURCES_URL = import.meta.env | ||
.VITE_EXTERNAL_RESOURCES_URL | ||
export const LUNATIC_MODEL_VERSION_BREAKING = '2.2.10' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export type ExternalQuestionnaire = { | ||
id: string | ||
cacheName: string | ||
} | ||
|
||
export type ExternalQuestionnaires = ExternalQuestionnaire[] | ||
|
||
export type ExternalQuestionnairesWrapper = { | ||
questionnaires: ExternalQuestionnaires | ||
version?: string | ||
} | ||
|
||
export type ExternalQuestionnairesFiltered = { | ||
neededQuestionnaires: ExternalQuestionnaires | ||
notNeededQuestionnaires: ExternalQuestionnaires | ||
} | ||
|
||
export type Manifest = { | ||
[key: string]: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
export * from './Campaign' | ||
export * from './ExternalResources' | ||
export * from './IdAndQuestionnaireId' | ||
export * from './Nomenclature' | ||
export * from './Paradata' | ||
export * from './Questionnaire' | ||
export * from './SurveyUnit' | ||
export * from './SurveyUnitData' | ||
export * from './IdAndQuestionnaireId' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.