diff --git a/app/controllers/application.js b/app/controllers/application.js index a390b5d3..13c1cf25 100644 --- a/app/controllers/application.js +++ b/app/controllers/application.js @@ -11,9 +11,7 @@ export default class ApplicationController extends Controller { @service currentUser; @service router; @service flashMessages; - - @alias('model.staticConfig') - staticConfig; + @service('app-static-config') staticConfig; rootURL = config.rootURL; @@ -32,14 +30,14 @@ export default class ApplicationController extends Controller { } get logoUri() { - return get(this, 'brand.logo'); + return this.staticConfig?._config?.branding?.logo ?? ''; } get homepage() { - return get(this, 'brand.homepage'); + return this.staticConfig?._config?.branding?.homepage ?? ''; } get contactUrl() { - return get(this, 'brand.pages.contactUrl'); + return this.staticConfig?._config?.branding?.contactUrl ?? ''; } } diff --git a/app/index.html b/app/index.html index d8388fde..7d09eba6 100644 --- a/app/index.html +++ b/app/index.html @@ -1,4 +1,4 @@ - + @@ -11,7 +11,6 @@ - {{content-for "head-footer"}} diff --git a/app/styles/app.css b/app/styles/app.css index 51d75e0d..4313a21f 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -1,4 +1,4 @@ -@import url('branding.css'); +@import url('core-ui.css'); @import url('font-awesome-5-0-13.css'); @import url('workflow-wrapper.css'); @import url('workflow-review.css'); @@ -635,7 +635,10 @@ table td { line-height: 1.5; border-radius: 0; /* stylelint-disable-next-line prettier/prettier */ - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; background-color: #418fde !important; border-color: #418fde !important; @@ -656,7 +659,10 @@ table td { line-height: 1.5; border-radius: 0; /* stylelint-disable-next-line prettier/prettier */ - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; color: #151b1e !important; background-color: #a4b7c1 !important; diff --git a/public/coreUI.css b/app/styles/core-ui.css similarity index 99% rename from public/coreUI.css rename to app/styles/core-ui.css index ece736cb..c1e730b5 100644 --- a/public/coreUI.css +++ b/app/styles/core-ui.css @@ -1,3 +1,4 @@ +/* stylelint-disable */ /*! * CoreUI - Open Source Bootstrap Admin Template * @version v1.0.10 @@ -2402,7 +2403,9 @@ pre code { background-clip: padding-box; border: 1px solid #c2cfd6; border-radius: 0; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } .form-control::-ms-expand { @@ -2694,7 +2697,9 @@ select.form-control-lg:not([size], [multiple]), .was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #e4e5e6, 0 0 0 0.2rem rgb(77 189 116 / 25%); + box-shadow: + 0 0 0 1px #e4e5e6, + 0 0 0 0.2rem rgb(77 189 116 / 25%); } .was-validated .custom-file-input:valid ~ .custom-file-label, @@ -2804,7 +2809,9 @@ select.form-control-lg:not([size], [multiple]), .was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #e4e5e6, 0 0 0 0.2rem rgb(248 108 107 / 25%); + box-shadow: + 0 0 0 1px #e4e5e6, + 0 0 0 0.2rem rgb(248 108 107 / 25%); } .was-validated .custom-file-input:invalid ~ .custom-file-label, @@ -2924,7 +2931,10 @@ select.form-control-lg:not([size], [multiple]), font-size: 0.875rem; line-height: 1.5; border-radius: 0; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @@ -5515,7 +5525,9 @@ tbody.collapse.show { } .custom-control-input:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #e4e5e6, 0 0 0 0.2rem rgb(32 168 216 / 25%); + box-shadow: + 0 0 0 1px #e4e5e6, + 0 0 0 0.2rem rgb(32 168 216 / 25%); } .custom-control-input:active ~ .custom-control-label::before { @@ -5626,7 +5638,9 @@ tbody.collapse.show { .custom-select:focus { border-color: #8ad4ee; outline: 0; - box-shadow: inset 0 1px 2px rgb(0 0 0 / 7.5%), 0 0 5px rgb(138 212 238 / 50%); + box-shadow: + inset 0 1px 2px rgb(0 0 0 / 7.5%), + 0 0 5px rgb(138 212 238 / 50%); } .custom-select:focus::-ms-value { @@ -8104,7 +8118,9 @@ button.close { .modal.fade .modal-dialog { transition: -webkit-transform 0.3s ease-out; transition: transform 0.3s ease-out; - transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; + transition: + transform 0.3s ease-out, + -webkit-transform 0.3s ease-out; transform: translate(0, -25%); transform: translate(0, -25%); } @@ -8566,7 +8582,9 @@ button.close { width: 100%; transition: -webkit-transform 0.6s ease; transition: transform 0.6s ease; - transition: transform 0.6s ease, -webkit-transform 0.6s ease; + transition: + transform 0.6s ease, + -webkit-transform 0.6s ease; backface-visibility: hidden; backface-visibility: hidden; perspective: 1000px; @@ -12724,7 +12742,9 @@ body { .avatars-stack .avatar { margin-right: -15px; - transition: margin-left 0.25s, margin-right 0.25s; + transition: + margin-left 0.25s, + margin-right 0.25s; } .avatars-stack .avatar:hover { @@ -16287,7 +16307,9 @@ base-chart.chart { background-position: center; transition: -webkit-transform 0.3s; transition: transform 0.3s; - transition: transform 0.3s, -webkit-transform 0.3s; + transition: + transform 0.3s, + -webkit-transform 0.3s; } .sidebar .nav-dropdown.open { @@ -18522,8 +18544,17 @@ app-root { .sidebar, .main, .aside-menu { - transition: margin-left 0.25s, margin-right 0.25s, width 0.25s, flex 0.25s; - transition: margin-left 0.25s, margin-right 0.25s, width 0.25s, flex 0.25s, -ms-flex 0.25s; + transition: + margin-left 0.25s, + margin-right 0.25s, + width 0.25s, + flex 0.25s; + transition: + margin-left 0.25s, + margin-right 0.25s, + width 0.25s, + flex 0.25s, + -ms-flex 0.25s; } .sidebar-nav { @@ -18531,7 +18562,10 @@ app-root { } .breadcrumb { - transition: left 0.25s, right 0.25s, width 0.25s; + transition: + left 0.25s, + right 0.25s, + width 0.25s; } @media (width <= 991.98px) { diff --git a/app/templates/application.hbs b/app/templates/application.hbs index aad62d1b..3ea7a370 100644 --- a/app/templates/application.hbs +++ b/app/templates/application.hbs @@ -5,12 +5,12 @@