clean up ejs locals
parent
f98179b433
commit
c5ef5cbeba
4
app.js
4
app.js
|
|
@ -1,6 +1,4 @@
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import * as htmlFns from '@cityssm/expressjs-server-js/htmlFns.js';
|
|
||||||
import * as stringFns from '@cityssm/expressjs-server-js/stringFns.js';
|
|
||||||
import * as dateTimeFns from '@cityssm/utils-datetime';
|
import * as dateTimeFns from '@cityssm/utils-datetime';
|
||||||
import compression from 'compression';
|
import compression from 'compression';
|
||||||
import cookieParser from 'cookie-parser';
|
import cookieParser from 'cookie-parser';
|
||||||
|
|
@ -109,8 +107,6 @@ app.use((request, response, next) => {
|
||||||
response.locals.configFunctions = configFunctions;
|
response.locals.configFunctions = configFunctions;
|
||||||
response.locals.printFunctions = printFunctions;
|
response.locals.printFunctions = printFunctions;
|
||||||
response.locals.dateTimeFunctions = dateTimeFns;
|
response.locals.dateTimeFunctions = dateTimeFns;
|
||||||
response.locals.stringFunctions = stringFns;
|
|
||||||
response.locals.htmlFunctions = htmlFns;
|
|
||||||
response.locals.urlPrefix = configFunctions.getConfigProperty('reverseProxy.urlPrefix');
|
response.locals.urlPrefix = configFunctions.getConfigProperty('reverseProxy.urlPrefix');
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
4
app.ts
4
app.ts
|
|
@ -1,7 +1,5 @@
|
||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
|
|
||||||
import * as htmlFns from '@cityssm/expressjs-server-js/htmlFns.js'
|
|
||||||
import * as stringFns from '@cityssm/expressjs-server-js/stringFns.js'
|
|
||||||
import * as dateTimeFns from '@cityssm/utils-datetime'
|
import * as dateTimeFns from '@cityssm/utils-datetime'
|
||||||
import compression from 'compression'
|
import compression from 'compression'
|
||||||
import cookieParser from 'cookie-parser'
|
import cookieParser from 'cookie-parser'
|
||||||
|
|
@ -215,8 +213,6 @@ app.use((request, response, next) => {
|
||||||
response.locals.configFunctions = configFunctions
|
response.locals.configFunctions = configFunctions
|
||||||
response.locals.printFunctions = printFunctions
|
response.locals.printFunctions = printFunctions
|
||||||
response.locals.dateTimeFunctions = dateTimeFns
|
response.locals.dateTimeFunctions = dateTimeFns
|
||||||
response.locals.stringFunctions = stringFns
|
|
||||||
response.locals.htmlFunctions = htmlFns
|
|
||||||
|
|
||||||
response.locals.urlPrefix = configFunctions.getConfigProperty(
|
response.locals.urlPrefix = configFunctions.getConfigProperty(
|
||||||
'reverseProxy.urlPrefix'
|
'reverseProxy.urlPrefix'
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
"@cityssm/configurator": "^0.1.0",
|
"@cityssm/configurator": "^0.1.0",
|
||||||
"@cityssm/date-diff": "^2.2.3",
|
"@cityssm/date-diff": "^2.2.3",
|
||||||
"@cityssm/dynamics-gp": "^1.0.3",
|
"@cityssm/dynamics-gp": "^1.0.3",
|
||||||
"@cityssm/expressjs-server-js": "^2.3.3",
|
|
||||||
"@cityssm/font-awesome-v5-iconclasses": "^0.1.0",
|
"@cityssm/font-awesome-v5-iconclasses": "^0.1.0",
|
||||||
"@cityssm/ntfy-publish": "^1.0.1",
|
"@cityssm/ntfy-publish": "^1.0.1",
|
||||||
"@cityssm/pdf-puppeteer": "^4.2.0",
|
"@cityssm/pdf-puppeteer": "^4.2.0",
|
||||||
|
|
@ -504,20 +503,6 @@
|
||||||
"node": ">=18.0.0"
|
"node": ">=18.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@cityssm/expressjs-server-js": {
|
|
||||||
"version": "2.3.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@cityssm/expressjs-server-js/-/expressjs-server-js-2.3.3.tgz",
|
|
||||||
"integrity": "sha512-ZkWaVkeZ/w27JxIj0GaWJ+iOgyHhX7gULO6pk+aCZuDBHcv0jaoloP+y6YD3HrYtGQH/cLasPks9jyKuQPD0/g==",
|
|
||||||
"dependencies": {
|
|
||||||
"@cityssm/date-diff": "^2.2.3",
|
|
||||||
"@cityssm/simple-password-generator": "^2.1.2",
|
|
||||||
"convert-array-to-csv": "^2.0.0",
|
|
||||||
"libphonenumber-js": "^1.10.13"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@cityssm/fa-glow": {
|
"node_modules/@cityssm/fa-glow": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@cityssm/fa-glow/-/fa-glow-0.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/@cityssm/fa-glow/-/fa-glow-0.1.0.tgz",
|
||||||
|
|
@ -588,43 +573,12 @@
|
||||||
"node": ">=18.0.0"
|
"node": ">=18.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@cityssm/random-words": {
|
|
||||||
"version": "1.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@cityssm/random-words/-/random-words-1.2.1.tgz",
|
|
||||||
"integrity": "sha512-mAnB+qNnTGDjMGdCOLURQatk2BrxRY+FHKTaBOIAF/Rb09BP9clalRt+903Y+rjZpzOPj/uahyF4FtY3ihbZ6w=="
|
|
||||||
},
|
|
||||||
"node_modules/@cityssm/simple-fa5-checkbox": {
|
"node_modules/@cityssm/simple-fa5-checkbox": {
|
||||||
"version": "0.2.1",
|
"version": "0.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/@cityssm/simple-fa5-checkbox/-/simple-fa5-checkbox-0.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/@cityssm/simple-fa5-checkbox/-/simple-fa5-checkbox-0.2.1.tgz",
|
||||||
"integrity": "sha512-0/jrhjpjbazae/qvEa2WmzzmAtQ0lLHb7NrNcPvqfxrbbFhKuGRkF/4LvhofiXL/oS+n8Tex/tu97cylvj/UMA==",
|
"integrity": "sha512-0/jrhjpjbazae/qvEa2WmzzmAtQ0lLHb7NrNcPvqfxrbbFhKuGRkF/4LvhofiXL/oS+n8Tex/tu97cylvj/UMA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@cityssm/simple-password-generator": {
|
|
||||||
"version": "2.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@cityssm/simple-password-generator/-/simple-password-generator-2.1.2.tgz",
|
|
||||||
"integrity": "sha512-0jhfsNLFzOmcOVtpCrJ4P1QZEFxuGnttQWqzFmAqgVD+ZFNl4retnBelAroIWZNDfrZlEDeREHpC1uR6dMUTNA==",
|
|
||||||
"dependencies": {
|
|
||||||
"@cityssm/random-words": "^1.2.1",
|
|
||||||
"@cityssm/unleet": "^2.4.0",
|
|
||||||
"badwords": "^1.0.0",
|
|
||||||
"random-item": "^4.0.1",
|
|
||||||
"zxcvbn-typescript": "^5.0.1"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@cityssm/unleet": {
|
|
||||||
"version": "2.4.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/@cityssm/unleet/-/unleet-2.4.0.tgz",
|
|
||||||
"integrity": "sha512-z+9ZUmJNuAhNP4SaXUiQYq/fvxZwqO2oyjYZrAD0HW28Vl1+gc4Bg/72azz9eOqTxH/zOZ1MMpYVkr3Yftz9yQ==",
|
|
||||||
"dependencies": {
|
|
||||||
"remove-accents": "^0.4.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@cityssm/utils-datetime": {
|
"node_modules/@cityssm/utils-datetime": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/@cityssm/utils-datetime/-/utils-datetime-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@cityssm/utils-datetime/-/utils-datetime-1.3.0.tgz",
|
||||||
|
|
@ -2366,11 +2320,6 @@
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/badwords": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/badwords/-/badwords-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-lvRlf54xyNuIeYHHdNYlLQNVc2l5v91v/3mD92fny4GUXXkdaiTImqSCFRBiPBtOASS7TMZjzkMq0cYsPtAbxA=="
|
|
||||||
},
|
|
||||||
"node_modules/bagpipe": {
|
"node_modules/bagpipe": {
|
||||||
"version": "0.3.5",
|
"version": "0.3.5",
|
||||||
"resolved": "https://registry.npmjs.org/bagpipe/-/bagpipe-0.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/bagpipe/-/bagpipe-0.3.5.tgz",
|
||||||
|
|
@ -3292,11 +3241,6 @@
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/convert-array-to-csv": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/convert-array-to-csv/-/convert-array-to-csv-2.0.0.tgz",
|
|
||||||
"integrity": "sha512-dxUINCt28k6WbXGMoB+AaKjGY0Y6GkKwZmT+kvD4nJgVCOKsnIQ3G6n0v2II1lG4NwXQk6EWZ+pPDub9wcqqMg=="
|
|
||||||
},
|
|
||||||
"node_modules/convert-source-map": {
|
"node_modules/convert-source-map": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
|
||||||
|
|
@ -7428,11 +7372,6 @@
|
||||||
"node": ">= 0.8.0"
|
"node": ">= 0.8.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/libphonenumber-js": {
|
|
||||||
"version": "1.10.18",
|
|
||||||
"resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.10.18.tgz",
|
|
||||||
"integrity": "sha512-NS4ZEgNhwbcPz1gfSXCGFnQm0xEiyTSPRthIuWytDzOiEG9xnZ2FbLyfJC4tI2BMAAXpoWbNxHYH75pa3Dq9og=="
|
|
||||||
},
|
|
||||||
"node_modules/liftoff": {
|
"node_modules/liftoff": {
|
||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/liftoff/-/liftoff-5.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/liftoff/-/liftoff-5.0.0.tgz",
|
||||||
|
|
@ -9067,17 +9006,6 @@
|
||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/random-item": {
|
|
||||||
"version": "4.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/random-item/-/random-item-4.0.1.tgz",
|
|
||||||
"integrity": "sha512-52SyTkFhFm6YP6MN9U5+txr8lBN5/fE2+xjzp1snaDzDNHN8a6Lu/G9fSc3gvD1+bmT+kIS7A0EP9QJQgRBfsg==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/randomcolor": {
|
"node_modules/randomcolor": {
|
||||||
"version": "0.6.2",
|
"version": "0.6.2",
|
||||||
"resolved": "https://registry.npmjs.org/randomcolor/-/randomcolor-0.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/randomcolor/-/randomcolor-0.6.2.tgz",
|
||||||
|
|
@ -9436,11 +9364,6 @@
|
||||||
"jsesc": "bin/jsesc"
|
"jsesc": "bin/jsesc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/remove-accents": {
|
|
||||||
"version": "0.4.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/remove-accents/-/remove-accents-0.4.4.tgz",
|
|
||||||
"integrity": "sha512-EpFcOa/ISetVHEXqu+VwI96KZBmq+a8LJnGkaeFw45epGlxIZz5dhEEnNZMsQXgORu3qaMoLX4qJCzOik6ytAg=="
|
|
||||||
},
|
|
||||||
"node_modules/remove-trailing-separator": {
|
"node_modules/remove-trailing-separator": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
|
||||||
|
|
@ -11720,11 +11643,6 @@
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/colinhacks"
|
"url": "https://github.com/sponsors/colinhacks"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"node_modules/zxcvbn-typescript": {
|
|
||||||
"version": "5.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/zxcvbn-typescript/-/zxcvbn-typescript-5.0.1.tgz",
|
|
||||||
"integrity": "sha512-If2a6jdm278dfWmn6NL7oC1lNYRHOthBw0C78LsKvtAHHFNsMudvFhDn2fF/b74txWtSosJJiuJ7jBPn/xP6HQ=="
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@
|
||||||
"@cityssm/configurator": "^0.1.0",
|
"@cityssm/configurator": "^0.1.0",
|
||||||
"@cityssm/date-diff": "^2.2.3",
|
"@cityssm/date-diff": "^2.2.3",
|
||||||
"@cityssm/dynamics-gp": "^1.0.3",
|
"@cityssm/dynamics-gp": "^1.0.3",
|
||||||
"@cityssm/expressjs-server-js": "^2.3.3",
|
|
||||||
"@cityssm/font-awesome-v5-iconclasses": "^0.1.0",
|
"@cityssm/font-awesome-v5-iconclasses": "^0.1.0",
|
||||||
"@cityssm/ntfy-publish": "^1.0.1",
|
"@cityssm/ntfy-publish": "^1.0.1",
|
||||||
"@cityssm/pdf-puppeteer": "^4.2.0",
|
"@cityssm/pdf-puppeteer": "^4.2.0",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue