Browse Source

web - use app name from config

master
Ruben Meyer 1 year ago
parent
commit
e288966cfe
Signed by: rxbn_ GPG Key ID: BE3BF898BE352FE2
  1. 1
      bin/config.js
  2. 4
      bin/web/views/blocks/footer.pug
  3. 4
      bin/web/views/blocks/head.pug
  4. 2
      bin/web/views/blocks/login.pug
  5. 4
      bin/web/views/blocks/nav.pug
  6. 4
      bin/web/views/index.pug
  7. 2
      bin/web/views/login.pug
  8. 2
      bin/web/views/logout.pug
  9. 2
      bin/web/views/register.pug
  10. 2
      bin/web/views/request.pug
  11. 2
      bin/web/views/reset.pug

1
bin/config.js

@ -27,6 +27,7 @@ module.exports = {
},
app: {
locale: 'de-DE', // default locale (de-DE & en-EN should be available)
name: 'authRXBN',
passhashDelimiter: '|'
},
mongoose: {

4
bin/web/views/blocks/footer.pug

@ -1,6 +1,6 @@
footer
.uk-text-center
small Copyright &copy; <a href="https://www.rxbn.de/">Ruben Meyer</a> 2019
small Copyright &copy; <a href="https://www.rxbn.de/">Ruben Meyer</a> 2019-2020
.modals
//- Logout Modal
@ -21,5 +21,5 @@ block scripts
script(src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.1.5/js/uikit-icons.min.js")
//- Custom scripts for this template
script(src="/public/js/locales.js")
//script(src="/public/js/locales.js")
script(src="/res/js/custom.js")

4
bin/web/views/blocks/head.pug

@ -6,9 +6,9 @@ head
meta(name="author", content="Ruben Meyer")
meta(name="description" content="auth.rxbn.de")
if(title)
title="authRXBN - "+title
title=cfg.app.name+" - "+title
else
title authRXBN
title=cfg.app.name
block css
//- UIkit CSS

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

@ -1,5 +1,5 @@
append var
- if(!session || !session.user) var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "ERROR - Please login", "active": true}};
- if(!session || !session.user) var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "ERROR - Please login", "active": true}};
- if(!session || !session.user) var title = "Please login";
.uk-flex.uk-margin-medium-top.uk-margin-medium-bottom
div(class="uk-width-auto [email protected]")

4
bin/web/views/blocks/nav.pug

@ -8,14 +8,14 @@ mixin navItem(name, id, symbol, href)
nav(uk-navbar).uk-navbar-container
.uk-navbar-left.uk-margin-left
ul.uk-navbar-nav
li(title="authRXBN")
li(title=cfg.app.name)
a(href="/", style="text-transform: unset")
span authRXBN
.uk-navbar-right.uk-margin-right
ul.uk-navbar-nav
if(session && session.user)
+navItem("Apps", "apps", "fas fa-tachometer-alt", "/")
+navItem("Configs", "configs", "fas fa-wrench", "/configs")
+navItem("Settings", "settings", "fas fa-wrench", "/settings")
+navItem("Logout", "logout", "fas fa-sign-out-alt", "/logout")
else
+navItem("Register", "register", "fas fa-user-plus", "/register")

4
bin/web/views/index.pug

@ -1,8 +1,8 @@
extends blocks/layout.pug
append var
if(session && session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Dashboard", "active": true}};
- var title = "Dashboard";
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Apps", "active": true}};
- var title = "Apps";
mixin item(name, id, description)
div

2
bin/web/views/login.pug

@ -1,7 +1,7 @@
extends blocks/layout.pug
append var
if(session && !session.user)
- 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";
append content

2
bin/web/views/logout.pug

@ -1,7 +1,7 @@
extends blocks/layout.pug
append var
if(session && session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Logout", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Logout", "active": true}};
- var title = "Logout";
append content

2
bin/web/views/register.pug

@ -1,7 +1,7 @@
extends blocks/layout.pug
append var
if(cfg && cfg.web.registration && session && !session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Register", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Register", "active": true}};
- var title = "Register";
append content

2
bin/web/views/request.pug

@ -1,7 +1,7 @@
extends blocks/layout.pug
append var
if(session && session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Authorization", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Authorization", "active": true}};
- var title = "authorize App";
append content

2
bin/web/views/reset.pug

@ -1,7 +1,7 @@
extends blocks/layout.pug
append var
if(session && !session.user)
- var breadcrumb = {0: {"name": "authRXBN", "href": "/"}, 1: {"name": "Forgot your password?", "active": true}};
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Forgot your password?", "active": true}};
- var title = "Reset password";
append content

Loading…
Cancel
Save