feat: admin page icons + Color Theme footer field
This commit is contained in:
@@ -46,7 +46,8 @@
|
||||
"subtitle": "Customize the appearance of your wiki",
|
||||
"primarycolor": "Primary Color",
|
||||
"altcolor": "Secondary Color",
|
||||
"codeblock": "Code Blocks"
|
||||
"codeblock": "Code Blocks",
|
||||
"footercolor": "Footer Color"
|
||||
},
|
||||
"users": {
|
||||
"createauthorize": "Create / Authorize User",
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
'use strict'
|
||||
|
||||
const Mongoose = require('mongoose')
|
||||
|
||||
/**
|
||||
* Settings schema
|
||||
*
|
||||
* @type {<Mongoose.Schema>}
|
||||
*/
|
||||
var settingSchema = Mongoose.Schema({
|
||||
key: {
|
||||
type: String,
|
||||
required: true,
|
||||
index: true
|
||||
},
|
||||
value: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
}, { timestamps: {} })
|
||||
|
||||
module.exports = Mongoose.model('Setting', settingSchema)
|
||||
@@ -8,7 +8,7 @@ const bcrypt = require('bcryptjs-then')
|
||||
const _ = require('lodash')
|
||||
|
||||
/**
|
||||
* Region schema
|
||||
* Users schema
|
||||
*
|
||||
* @type {<Mongoose.Schema>}
|
||||
*/
|
||||
|
||||
@@ -46,7 +46,7 @@ block content
|
||||
span= t('nav.users')
|
||||
li
|
||||
a(href='/admin/theme')
|
||||
i.icon-drop
|
||||
i.nc-icon-outline.design_paint-37
|
||||
span= t('nav.theme')
|
||||
li
|
||||
a(href='/admin/settings')
|
||||
|
||||
@@ -4,6 +4,7 @@ block adminContent
|
||||
.hero
|
||||
h1.title#title= t('nav.myprofile')
|
||||
h2.subtitle= t('admin:profile.subtitle')
|
||||
i.pageicon.nc-icon-outline.business_business-contact-86
|
||||
.form-sections
|
||||
.columns.is-gapless
|
||||
.column.is-two-thirds
|
||||
|
||||
@@ -4,3 +4,4 @@ block adminContent
|
||||
.hero
|
||||
h1.title#title= t('nav.syssettings')
|
||||
h2.subtitle= t('admin:settings.subtitle')
|
||||
i.pageicon.nc-icon-outline.ui-1_settings-gear-63
|
||||
|
||||
@@ -4,6 +4,7 @@ block adminContent
|
||||
.hero
|
||||
h1.title#title= t('nav.stats')
|
||||
h2.subtitle= t('admin:stats.subtitle')
|
||||
i.pageicon.nc-icon-outline.ui-3_chart-bars
|
||||
.form-sections
|
||||
section
|
||||
label.label= t('admin:stats.entries')
|
||||
|
||||
@@ -4,6 +4,7 @@ block adminContent
|
||||
.hero
|
||||
h1.title#title= t('nav.sysinfo')
|
||||
h2.subtitle= t('admin:system.subtitle')
|
||||
i.pageicon.nc-icon-outline.objects_planet
|
||||
admin-settings(inline-template)
|
||||
.form-sections
|
||||
section
|
||||
|
||||
@@ -4,6 +4,7 @@ block adminContent
|
||||
.hero
|
||||
h1.title#title= t('nav.theme')
|
||||
h2.subtitle= t('admin:theme.subtitle')
|
||||
i.pageicon.nc-icon-outline.design_paint-37
|
||||
.form-sections
|
||||
section
|
||||
label.label= t('admin:theme.primarycolor')
|
||||
@@ -11,7 +12,14 @@ block adminContent
|
||||
section
|
||||
label.label= t('admin:theme.altcolor')
|
||||
color-picker(current-color='blue-grey')
|
||||
section
|
||||
label.label= t('admin:theme.footercolor')
|
||||
color-picker(current-color='blue-grey')
|
||||
section
|
||||
label.label= t('admin:theme.codeblock')
|
||||
toggle(current-value='dark', desc='Use Dark Theme')
|
||||
toggle(current-value='dark', desc='Colorize code syntax')
|
||||
section
|
||||
button.button.is-green(@click='saveUser')
|
||||
i.nc-icon-outline.ui-1_check
|
||||
span= t('admin:profile.savechanges')
|
||||
|
||||
@@ -13,6 +13,7 @@ block adminContent
|
||||
.hero
|
||||
h1.title= t('admin:users.edituser')
|
||||
h2.subtitle= usr.email
|
||||
i.pageicon.nc-icon-outline.users_single-05
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
|
||||
@@ -11,6 +11,7 @@ block adminContent
|
||||
.hero
|
||||
h1.title#title= t('nav.users')
|
||||
h2.subtitle= t('admin:users.subtitle')
|
||||
i.pageicon.nc-icon-outline.users_multiple-19
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
|
||||
Reference in New Issue
Block a user