Skip to content

Commit

Permalink
Feature branding aware configuration (#2181)
Browse files Browse the repository at this point in the history
* Initial commit of branding aware application configuration.
Added AppConfig model and service to handle retrieval and persistence.
Added bootstrap.js handler to initialise object and to bind convenience function to sails.config

* Added rest api endpoints to managed app config

* Removed no longer required jquery and bootstrap css resources

* Added config service functionality to support branded app configuration

* Merged new functionality from develop branch

* Initial commit of the app config application that uses formly to render forms using JSON Schema documents

* Added support for self service maintenance of the system message displayed to users

* Added app config screen to show the angular app

* Fixed package locks

* Fixed angular package dependencies post merge

* Added status messages to form and link to modify system messages to the admin screen

* Added testing for the Sails service

* Fixed test syntax

* Tidied angular component and added tests

* Fixed issue where it wouldn't load default model config

* Added tests for the AppConfigController

* Added rest api endpoints

* Added new web service routes

* Fixed update config endpoint and tests

* Added types to function signatures

* Rolled back to angular 17.3.8
  • Loading branch information
andrewbrazzatti authored May 21, 2024
1 parent a788eb0 commit c220904
Show file tree
Hide file tree
Showing 44 changed files with 8,064 additions and 6,957 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,4 @@ support/raido/dist
support/raido/*.tgz
angular/.angular/cache/

api/configmodels/*
98 changes: 98 additions & 0 deletions angular/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,104 @@
}
}
},
"@researchdatabox/app-config": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "projects/researchdatabox/app-config",
"sourceRoot": "projects/researchdatabox/app-config/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "../assets/angular/app-config",
"index": "projects/researchdatabox/app-config/src/index.html",
"main": "projects/researchdatabox/app-config/src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "projects/researchdatabox/app-config/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"projects/researchdatabox/app-config/src/favicon.ico",
"projects/researchdatabox/app-config/src/assets"
],
"styles": [
"projects/researchdatabox/app-config/src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"buildTarget": "@researchdatabox/app-config:build:production"
},
"development": {
"buildTarget": "@researchdatabox/app-config:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "@researchdatabox/app-config:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"karmaConfig": "projects/researchdatabox/app-config/karma.conf.js",
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "projects/researchdatabox/app-config/tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
"projects/researchdatabox/app-config/src/favicon.ico",
"projects/researchdatabox/app-config/src/assets"
],
"styles": [
"projects/researchdatabox/app-config/src/styles.scss"
],
"scripts": []
}
}
}
},
"@researchdatabox/portal-ng-form-custom": {
"projectType": "library",
"root": "../../portal-ng-form-custom/projects/researchdatabox/portal-ng-form-custom",
Expand Down
Loading

0 comments on commit c220904

Please sign in to comment.