Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ec44b65
Add post-deployment module
jasonchung1871 May 12, 2022
6fac59f
Implemented external module loading
jasonchung1871 Jun 28, 2022
dc1eb7a
Clean up and bug fix
jasonchung1871 Jul 4, 2022
e17d804
Form module loading in submission viewer
jasonchung1871 Jul 4, 2022
5c6541d
Updated tests and reset form module version
jasonchung1871 Jul 4, 2022
581eaec
Clean up and form module version separation
jasonchung1871 Jul 6, 2022
cb6f11f
Fixed bug and updated E2E test
jasonchung1871 Jul 18, 2022
daa43ab
Fixed test errors, added E2E test for form module
jasonchung1871 Jul 20, 2022
7dba079
Added E2E tests for form module management
jasonchung1871 Jul 20, 2022
38b308f
Merge branch 'main' into post-init-modules
jasonchung1871 Jul 15, 2025
58159a0
Refactor form module management to use Pinia and i18n
jasonchung1871 Jul 15, 2025
00b0e6c
Refactor form module management and update UI components
jasonchung1871 Jul 23, 2025
9c54158
Refactor form module loading and add config support
jasonchung1871 Jul 23, 2025
367b67f
Merge branch 'bcgov:main' into post-init-modules
jasonchung1871 Jul 23, 2025
c7df51c
Refactor form module version to use 'config' instead of 'importData'
jasonchung1871 Jul 23, 2025
f34eccc
Refactor form module tests and update imports
jasonchung1871 Jul 23, 2025
6d30d98
Add form module version validation and improve publish logic
jasonchung1871 Jul 24, 2025
ce43d18
Add ManageFormModule unit tests and update API test IDs
jasonchung1871 Jul 24, 2025
5e31fc7
Validate and parse config as JSON for form module versions
jasonchung1871 Jul 24, 2025
977bbe7
Fix config parsing and remove debug log in formModule
jasonchung1871 Jul 24, 2025
0233305
Remove contrib components library and cleanup
jasonchung1871 Jul 24, 2025
2199ceb
Update frontend npm scripts: remove preserve, add purge
jasonchung1871 Jul 24, 2025
82e7d7a
Refactor form module version handling and cleanup
jasonchung1871 Jul 24, 2025
ab35a4a
Refactor form module version linking and toggle params
jasonchung1871 Jul 24, 2025
1956429
Refactor form module version submission logic
jasonchung1871 Jul 24, 2025
b4353c9
Refactor form module creation and versioning flow
jasonchung1871 Jul 24, 2025
10145ad
Improve module loading and filtering for form drafts
jasonchung1871 Jul 24, 2025
bf6f725
Remove unused import from Import.vue
jasonchung1871 Jul 24, 2025
0089a11
Add form module translations for multiple languages
jasonchung1871 Jul 24, 2025
14b3d55
Add Form Module API endpoints and schemas
jasonchung1871 Jul 28, 2025
a6e95c9
Allow API users to create files
jasonchung1871 Jul 28, 2025
7deb97d
Add CORS domain request and approval status support
jasonchung1871 Jul 30, 2025
0ef94e6
Remove unused config import from corsDomainRequest.js
jasonchung1871 Jul 30, 2025
f4599e1
Add CORS origin request management and approval
jasonchung1871 Jul 31, 2025
22f2604
Remove debug logging from CORS middleware
jasonchung1871 Jul 31, 2025
f47f064
Fix CorsError import casing in errorHandler middleware
jasonchung1871 Jul 31, 2025
c8027c9
Update cors.js
jasonchung1871 Jul 31, 2025
7e075c2
Add configurable CORS allowed origins support
jasonchung1871 Aug 5, 2025
f28d372
Update CORS allowedOrigins to use env variable
jasonchung1871 Aug 5, 2025
ce10555
Update corsMiddleware import path in v1 routes
jasonchung1871 Aug 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 0 additions & 8 deletions .devcontainer/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ npm install knex -g
npm install jest -g
npm install dotenv-cli -g

# install components/formio libraries, prepare for ux development and debugging...
cd components
npm install

# install app libraries, prepare for app development and debugging...
cd ../app
npm install
Expand All @@ -21,10 +17,6 @@ npm install
cd frontend
npm install

# make an initial build of formio components and ready them for frontend
npm run build:formio
npm run deploy:formio

# copy over the sample files to the image...
cp -u ${CHEFS_LOCAL_DIR}/local.sample.json ${CHEFS_LOCAL_DIR}/local.json

Expand Down
20 changes: 0 additions & 20 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,6 @@
},
"type": "shell"
},
{
"args": ["run", "build:formio"],
"command": "npm",
"group": "test",
"label": "Components build",
"options": {
"cwd": "${workspaceFolder}/app/frontend"
},
"type": "shell"
},
{
"args": ["run", "deploy:formio"],
"command": "npm",
"group": "test",
"label": "Components deploy",
"options": {
"cwd": "${workspaceFolder}/app/frontend"
},
"type": "shell"
},
{
"label": "chefs_local up",
"type": "shell",
Expand Down
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ COPY . /opt/app-root/src

RUN npm run all:ci \
&& npm run all:build \
&& npm run frontend:purge \
&& npm run components:clean \
&& npm run components:purge \
&& mkdir /.npm \
&& chgrp -R 0 /.npm \
&& chmod -R g=u /.npm
Expand Down
3 changes: 3 additions & 0 deletions app/config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,8 @@
"clientSecret": "SC_CS_CDOGS_CLIENT_SECRET"
}
}
},
"cors": {
"allowedOrigins": "CORS_ALLOWED_ORIGINS"
}
}
8 changes: 8 additions & 0 deletions app/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,13 @@
"matchPrecision": "occupant, unit, site, civic_number, intersection, block, street, locality, province",
"precisionPoints": 100
}
},
"cors": {
"allowedOrigins": [
"http://localhost:8080",
"http://localhost:3000",
"http://localhost:4173",
"http://localhost:5173"
]
}
}
163 changes: 0 additions & 163 deletions app/frontend/component-update.js

This file was deleted.

8 changes: 1 addition & 7 deletions app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
"license": "Apache-2.0",
"scripts": {
"serve": "vite",
"preserve": "node ./component-update.js",
"build": "vite build",
"build:watch": "vite build --watch",
"preview": "vite preview",
"prebuild": "node ./component-update.js",
"build:formio": "node ./component-update.js build",
"deploy:formio": "node ./component-update.js deploy",
"test": "npm run test:unit",
"test:unit": "vitest",
"test:coverage": "vitest run --coverage",
Expand All @@ -21,10 +17,8 @@
"prettier": "prettier --check \"src/**/*.{js,vue,css,scss}\"",
"prettier:fix": "prettier --write \"src/**/*.{js,vue,css,scss}\"",
"pretest": "npm run lint",
"purge": "rm -rf node_modules",
"clean": "rm -rf coverage dist **/e2e/videos",
"clean:formio": "node ./component-update.js clean",
"purge": "rm -rf src/formio node_modules",
"purge:formio": "node ./component-update.js purge",
"rebuild": "npm run clean && npm run build",
"reinstall": "npm run purge && npm install",
"dev": "vite --port 5173 --host"
Expand Down
Loading