Skip to content

Commit

Permalink
Feat/upgrade lunatic (#64)
Browse files Browse the repository at this point in the history
* bumb: lunatic version to 2.6.3

* chore: clean dead code

* feat: add autoFocus of lunatic

* build; clean scripts

* chore: remove useless Fragment

* style: fix css

* deps: upgrade lunatic to 2.7.2

remove useless env variables

* deps: upgrade lunatic to 2.7.3

* ref: add new hook : useConstCallback to avoid pb

* chore: create utils data function to clear null value & merge full and partial data

* Ref: use partial data to improve perf

* Update data.json

* style: fix css

* bumb drama-queen-container version to 1.3.12
  • Loading branch information
laurentC35 authored Nov 3, 2023
1 parent eb3f7a8 commit e7c1571
Show file tree
Hide file tree
Showing 56 changed files with 409 additions and 52,523 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "drama-queen-container",
"private": true,
"version": "1.3.11",
"version": "1.3.12",
"workspaces": [
"drama-queen",
"queen-v2",
Expand Down
5 changes: 1 addition & 4 deletions queen-v2/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
SKIP_PREFLIGHT_CHECK=true
REACT_APP_LUNATIC_LOADER_WORKER_PATH=${PUBLIC_URL}/workers/lunatic-append-worker-0.2.4-experimental.js
REACT_APP_LUNATIC_SEARCH_WORKER_PATH=${PUBLIC_URL}/workers/lunatic-searching-worker-0.2.4-experimental.js
REACT_APP_LUNATIC_LABEL_WORKER_PATH=${PUBLIC_URL}/workers/lunatic-label-worker-0.2.4-experimental.js
SKIP_PREFLIGHT_CHECK=true
5 changes: 1 addition & 4 deletions queen-v2/.env.build
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
PUBLIC_URL=__PUBLIC_URL_TO_REPLACE__
REACT_APP_LUNATIC_LOADER_WORKER_PATH=${PUBLIC_URL}/workers/lunatic-append-worker-0.2.4-experimental.js
REACT_APP_LUNATIC_SEARCH_WORKER_PATH=${PUBLIC_URL}/workers/lunatic-searching-worker-0.2.4-experimental.js
REACT_APP_LUNATIC_LABEL_WORKER_PATH=${PUBLIC_URL}/workers/lunatic-label-worker-0.2.4-experimental.js
PUBLIC_URL=__PUBLIC_URL_TO_REPLACE__
3 changes: 3 additions & 0 deletions queen-v2/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
# production
/build

# Lunatic workers
/public/workers

# misc
.DS_Store
.env.local
Expand Down
6 changes: 4 additions & 2 deletions queen-v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "queen-v2",
"version": "1.0.12",
"version": "1.1.0",
"description": "Web application for the management of questionnaires powered by Lunatic",
"repository": {
"type": "git",
Expand All @@ -12,7 +12,7 @@
"dependencies": {
"@axa-fr/react-oidc-context": "^3.1.6",
"@craco/craco": "^6.4.0",
"@inseefr/lunatic": "^2.6.1",
"@inseefr/lunatic": "^2.7.3",
"@inseefr/trevas": "^0.1.16",
"@material-ui/core": "^4.11.3",
"@material-ui/icons": "^4.11.2",
Expand All @@ -38,8 +38,10 @@
"workbox-strategies": "^6.1.1"
},
"scripts": {
"prestart": "npx @inseefr/[email protected] workers",
"start": "cross-env PORT=5002 react-scripts start",
"start-dev": "cross-env PORT=5002 craco start",
"prebuild": "npx @inseefr/[email protected] workers",
"build": "react-scripts build && npm run post-build",
"post-build": "node ./configuration/build/build-sw.js && node ./configuration/build/manage-public-url.js && copy-and-watch configuration/files/* build",
"test": "react-scripts test",
Expand Down
4 changes: 2 additions & 2 deletions queen-v2/public/static/questionnaire/simpsons/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"CALCULATED": {},
"COLLECTED": {
"COMMENT": {
"PREVIOUS": "Hello\n\nI'm a \"PREVIOUS\" value !",
"COLLECTED": null,
"PREVIOUS": null,
"COLLECTED": "Hello\n\nI'm a \"COLLECTED\" value !",
"FORCED": null,
"EDITED": null,
"INPUTED": null
Expand Down
Loading

0 comments on commit e7c1571

Please sign in to comment.