From cbbcef56b0cdd6a33fefeaf5a872457bd2effb8c Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 21 Jul 2021 17:03:33 -0400 Subject: [PATCH] LP#1932359 - Move Angular dynamic content to template-able area Signed-off-by: Mike Rylander --- Open-ILS/src/eg2/src/app/core/config.ts | 7 ++++--- Open-ILS/src/eg2/src/index.html | 2 +- .../templates/eg2import/angular-config.js.tt2} | 0 3 files changed, 5 insertions(+), 4 deletions(-) rename Open-ILS/{web/js/angular-config.js => src/templates/eg2import/angular-config.js.tt2} (100%) diff --git a/Open-ILS/src/eg2/src/app/core/config.ts b/Open-ILS/src/eg2/src/app/core/config.ts index 83555b1327..517882334e 100644 --- a/Open-ILS/src/eg2/src/app/core/config.ts +++ b/Open-ILS/src/eg2/src/app/core/config.ts @@ -1,9 +1,10 @@ -/* Reads content from /js/angular-config.js to make it available as - * dynamic content to pre-compiled angular components. +/* Reads content from Open-ILS/src/templates/eg2import/angular-config.js.tt2 + * and published at https://example.com/eg/eg2import/angular-config.js + * to make it available as dynamic content to pre-compiled angular components. * Note this is not an Angular Service, since it may need to be * accessed before a service-loading class can instantiate its services. */ -declare var ANGULAR_CONFIG; // defined in /js/angular-config.js +declare var ANGULAR_CONFIG; // defined at URL /eg/eg2import/angular-config.js export class AngularConfig { diff --git a/Open-ILS/src/eg2/src/index.html b/Open-ILS/src/eg2/src/index.html index aedc25be1e..a681877cb8 100644 --- a/Open-ILS/src/eg2/src/index.html +++ b/Open-ILS/src/eg2/src/index.html @@ -13,6 +13,6 @@ - + diff --git a/Open-ILS/web/js/angular-config.js b/Open-ILS/src/templates/eg2import/angular-config.js.tt2 similarity index 100% rename from Open-ILS/web/js/angular-config.js rename to Open-ILS/src/templates/eg2import/angular-config.js.tt2 -- 2.11.0