Browse Source

web - minor ui fixes

master
Ruben Meyer 2 years ago
parent
commit
be6f4dc2ac
Signed by: rxbn_ GPG Key ID: BE3BF898BE352FE2
  1. 4
      bin/web/routes/static.js
  2. 2
      bin/web/views/blocks/error/404.pug
  3. 2
      bin/web/views/blocks/error/login.pug
  4. 2
      bin/web/views/blocks/error/permission.pug

4
bin/web/routes/static.js

@ -55,7 +55,7 @@ let getRoutes = async () => {
apps = await db.getApps();
// set appId in appRequest
if(req.query.appId) {
if(req.query.appId || req.session.appRequest) {
if(req.query.appId && typeof req.query.appId == "string") {
// req.query.appId
// verify appId (if in rep)
@ -126,7 +126,7 @@ let getRoutes = async () => {
* @url /*
* @method all
*/
route.get('/*', asyncer(async (req, res, next) => {
route.get(['/request', '/login', '/logout', '/reset', '/admin'], asyncer(async (req, res, next) => {
// passthrough to next route
if(req.path.startsWith('/api'))
return next();

2
bin/web/views/blocks/error/404.pug

@ -1,6 +1,6 @@
append var
if((!breadcrumb && !title) || overwrite_vars)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "404 - not found", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "404 - not found", "active": true}};
- var title = "I'm so sooryy";
.uk-flex.uk-margin-medium-top.uk-margin-medium-bottom

2
bin/web/views/blocks/error/login.pug

@ -1,6 +1,6 @@
append var
if((!breadcrumb && !title) || overwrite_vars)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Login", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Login", "active": true}};
- var title = "Login";
.uk-flex.uk-margin-medium-top.uk-margin-medium-bottom

2
bin/web/views/blocks/error/permission.pug

@ -1,6 +1,6 @@
append var
if((!breadcrumb && !title) || overwrite_vars)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "401 - Permission needed", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "401 - Permission needed", "active": true}};
- var title = "Me so sooryy";
.uk-flex.uk-margin-medium-top.uk-margin-medium-bottom

Loading…
Cancel
Save