-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into noErrorsPages
- Loading branch information
Showing
14 changed files
with
84 additions
and
72 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,5 +1,5 @@ | ||
const HmpoConfig = require('hmpo-config') | ||
import HmpoConfig from 'hmpo-config' | ||
|
||
const config = new HmpoConfig() | ||
config.addFile('./config/default.yaml') | ||
module.exports = config.toJSON() | ||
export default config.toJSON() |
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
'use strict' | ||
|
||
const MyController = require('./MyController.js') | ||
import MyController from './MyController.js' | ||
|
||
class DataSubjectController extends MyController { | ||
|
||
} | ||
|
||
module.exports = DataSubjectController | ||
export default DataSubjectController |
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
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,4 @@ | ||
module.exports = { | ||
export default { | ||
'data-subject': { | ||
validate: 'required' | ||
}, | ||
|
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,10 +1,10 @@ | ||
const { Router } = require('express') | ||
const wizard = require('hmpo-form-wizard') | ||
const steps = require('./steps') | ||
const fields = require('./fields') | ||
import { Router } from 'express' | ||
import wizard from 'hmpo-form-wizard' | ||
import steps from './steps.js' | ||
import fields from './fields.js' | ||
|
||
const app = Router() | ||
|
||
app.use(wizard(steps, fields, { name: 'my-wizard', csrf: false })) | ||
|
||
module.exports = app | ||
export default app |
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,34 +1,40 @@ | ||
module.exports = { | ||
import dataSubjectController from '../../controllers/dataSubjectController.js' | ||
import datasetController from '../../controllers/datasetController.js' | ||
import uploadController from '../../controllers/uploadController.js' | ||
import errorsController from '../../controllers/errorsController.js' | ||
import MyController from '../../controllers/MyController.js' | ||
|
||
export default { | ||
'/': { | ||
entryPoint: true, | ||
resetJourney: true, | ||
next: 'data-subject', | ||
template: '../views/start.html' | ||
}, | ||
'/data-subject': { | ||
controller: require('../../controllers/dataSubjectController'), | ||
controller: dataSubjectController, | ||
fields: ['data-subject'], | ||
next: 'dataset' | ||
}, | ||
'/dataset': { | ||
controller: require('../../controllers/datasetController'), | ||
controller: datasetController, | ||
fields: ['dataset'], | ||
next: 'upload' | ||
}, | ||
'/upload': { | ||
controller: require('../../controllers/uploadController'), | ||
controller: uploadController, | ||
fields: ['validationResult'], | ||
next: [ | ||
{ fn: 'hasErrors', next: 'errors' }, | ||
'no-errors' | ||
] | ||
}, | ||
'/errors': { | ||
controller: require('../../controllers/errorsController'), | ||
controller: errorsController, | ||
next: 'no-errors' | ||
}, | ||
'/no-errors': { | ||
controller: require('../../controllers/MyController'), | ||
controller: MyController, | ||
next: 'transformations' | ||
} | ||
} |
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