feat: admin page icons + Color Theme footer field
This commit is contained in:
parent
8a836719a2
commit
c863059a53
@ -9,13 +9,23 @@
|
|||||||
border: 1px solid #FFF;
|
border: 1px solid #FFF;
|
||||||
transition: all .2s ease;
|
transition: all .2s ease;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
&.is-active, &:hover {
|
&.is-active, &:hover {
|
||||||
border-width: 5px;
|
border-width: 5px;
|
||||||
|
border-radius: 3px;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.is-active::before {
|
||||||
|
content: 'X';
|
||||||
|
font-weight: 700;
|
||||||
|
color: rgba(255,255,255,.5);
|
||||||
|
}
|
||||||
|
|
||||||
@each $color, $colorvalue in $material-colors {
|
@each $color, $colorvalue in $material-colors {
|
||||||
&.is-#{$color} {
|
&.is-#{$color} {
|
||||||
background-color: mc($color, '500');
|
background-color: mc($color, '500');
|
||||||
|
@ -16,6 +16,14 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pageicon {
|
||||||
|
position:absolute;
|
||||||
|
right: 20px;
|
||||||
|
top: 28px;
|
||||||
|
font-size: 48px;
|
||||||
|
color: mc('blue-grey', '500');
|
||||||
|
}
|
||||||
|
|
||||||
.hero-menu {
|
.hero-menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
|
@ -46,7 +46,8 @@
|
|||||||
"subtitle": "Customize the appearance of your wiki",
|
"subtitle": "Customize the appearance of your wiki",
|
||||||
"primarycolor": "Primary Color",
|
"primarycolor": "Primary Color",
|
||||||
"altcolor": "Secondary Color",
|
"altcolor": "Secondary Color",
|
||||||
"codeblock": "Code Blocks"
|
"codeblock": "Code Blocks",
|
||||||
|
"footercolor": "Footer Color"
|
||||||
},
|
},
|
||||||
"users": {
|
"users": {
|
||||||
"createauthorize": "Create / Authorize User",
|
"createauthorize": "Create / Authorize User",
|
||||||
|
22
server/models/setting.js
Normal file
22
server/models/setting.js
Normal file
@ -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')
|
const _ = require('lodash')
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Region schema
|
* Users schema
|
||||||
*
|
*
|
||||||
* @type {<Mongoose.Schema>}
|
* @type {<Mongoose.Schema>}
|
||||||
*/
|
*/
|
||||||
|
@ -46,7 +46,7 @@ block content
|
|||||||
span= t('nav.users')
|
span= t('nav.users')
|
||||||
li
|
li
|
||||||
a(href='/admin/theme')
|
a(href='/admin/theme')
|
||||||
i.icon-drop
|
i.nc-icon-outline.design_paint-37
|
||||||
span= t('nav.theme')
|
span= t('nav.theme')
|
||||||
li
|
li
|
||||||
a(href='/admin/settings')
|
a(href='/admin/settings')
|
||||||
|
@ -4,6 +4,7 @@ block adminContent
|
|||||||
.hero
|
.hero
|
||||||
h1.title#title= t('nav.myprofile')
|
h1.title#title= t('nav.myprofile')
|
||||||
h2.subtitle= t('admin:profile.subtitle')
|
h2.subtitle= t('admin:profile.subtitle')
|
||||||
|
i.pageicon.nc-icon-outline.business_business-contact-86
|
||||||
.form-sections
|
.form-sections
|
||||||
.columns.is-gapless
|
.columns.is-gapless
|
||||||
.column.is-two-thirds
|
.column.is-two-thirds
|
||||||
|
@ -4,3 +4,4 @@ block adminContent
|
|||||||
.hero
|
.hero
|
||||||
h1.title#title= t('nav.syssettings')
|
h1.title#title= t('nav.syssettings')
|
||||||
h2.subtitle= t('admin:settings.subtitle')
|
h2.subtitle= t('admin:settings.subtitle')
|
||||||
|
i.pageicon.nc-icon-outline.ui-1_settings-gear-63
|
||||||
|
@ -4,6 +4,7 @@ block adminContent
|
|||||||
.hero
|
.hero
|
||||||
h1.title#title= t('nav.stats')
|
h1.title#title= t('nav.stats')
|
||||||
h2.subtitle= t('admin:stats.subtitle')
|
h2.subtitle= t('admin:stats.subtitle')
|
||||||
|
i.pageicon.nc-icon-outline.ui-3_chart-bars
|
||||||
.form-sections
|
.form-sections
|
||||||
section
|
section
|
||||||
label.label= t('admin:stats.entries')
|
label.label= t('admin:stats.entries')
|
||||||
|
@ -4,6 +4,7 @@ block adminContent
|
|||||||
.hero
|
.hero
|
||||||
h1.title#title= t('nav.sysinfo')
|
h1.title#title= t('nav.sysinfo')
|
||||||
h2.subtitle= t('admin:system.subtitle')
|
h2.subtitle= t('admin:system.subtitle')
|
||||||
|
i.pageicon.nc-icon-outline.objects_planet
|
||||||
admin-settings(inline-template)
|
admin-settings(inline-template)
|
||||||
.form-sections
|
.form-sections
|
||||||
section
|
section
|
||||||
|
@ -4,6 +4,7 @@ block adminContent
|
|||||||
.hero
|
.hero
|
||||||
h1.title#title= t('nav.theme')
|
h1.title#title= t('nav.theme')
|
||||||
h2.subtitle= t('admin:theme.subtitle')
|
h2.subtitle= t('admin:theme.subtitle')
|
||||||
|
i.pageicon.nc-icon-outline.design_paint-37
|
||||||
.form-sections
|
.form-sections
|
||||||
section
|
section
|
||||||
label.label= t('admin:theme.primarycolor')
|
label.label= t('admin:theme.primarycolor')
|
||||||
@ -11,7 +12,14 @@ block adminContent
|
|||||||
section
|
section
|
||||||
label.label= t('admin:theme.altcolor')
|
label.label= t('admin:theme.altcolor')
|
||||||
color-picker(current-color='blue-grey')
|
color-picker(current-color='blue-grey')
|
||||||
|
section
|
||||||
|
label.label= t('admin:theme.footercolor')
|
||||||
|
color-picker(current-color='blue-grey')
|
||||||
section
|
section
|
||||||
label.label= t('admin:theme.codeblock')
|
label.label= t('admin:theme.codeblock')
|
||||||
toggle(current-value='dark', desc='Use Dark Theme')
|
toggle(current-value='dark', desc='Use Dark Theme')
|
||||||
toggle(current-value='dark', desc='Colorize code syntax')
|
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
|
.hero
|
||||||
h1.title= t('admin:users.edituser')
|
h1.title= t('admin:users.edituser')
|
||||||
h2.subtitle= usr.email
|
h2.subtitle= usr.email
|
||||||
|
i.pageicon.nc-icon-outline.users_single-05
|
||||||
table.table
|
table.table
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
|
@ -11,6 +11,7 @@ block adminContent
|
|||||||
.hero
|
.hero
|
||||||
h1.title#title= t('nav.users')
|
h1.title#title= t('nav.users')
|
||||||
h2.subtitle= t('admin:users.subtitle')
|
h2.subtitle= t('admin:users.subtitle')
|
||||||
|
i.pageicon.nc-icon-outline.users_multiple-19
|
||||||
table.table
|
table.table
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user