Integration to Requarks Core

This commit is contained in:
NGPixel
2016-11-20 20:09:50 -05:00
parent 6744190859
commit 985761556c
52 changed files with 1129 additions and 1048 deletions

View File

@@ -1,12 +1,12 @@
#header-container
nav.nav.has-shadow.stickyscroll#header
nav.nav.stickyscroll#header
.nav-left
block rootNavLeft
a.nav-item.is-brand(href='/')
a.nav-item(href='/')
img(src='/favicons/android-icon-96x96.png', alt='Wiki')
a.nav-item(href='/')
h1.title Wiki
h1= appconfig.title
.nav-center
block rootNavCenter
.nav-item
@@ -16,7 +16,7 @@
span
span
span
.nav-right.nav-menu
.nav-right
block rootNavRight
i.nav-item#notifload

View File

@@ -28,7 +28,7 @@ html
block head
body
#root
#root.has-stickynav
include ./common/header.pug
include ./common/alerts.pug
main

View File

@@ -1,69 +0,0 @@
extends ../layout.pug
block rootNavCenter
block rootNavRight
i.nav-item#notifload
span.nav-item
a.button.is-dark.is-outlined.btn-edit-discard(href='/')
span.icon
i.fa.fa-home
span Home
block content
#page-type-account
section.hero.is-dark
.hero-body
.container
h1.title Account
h2.subtitle Manage your settings and site configuration
nav.nav.has-shadow
.container
.nav-left
a.nav-item.is-tab.is-active My Profile
a.nav-item.is-tab Stats
a.nav-item.is-tab Users
a.nav-item.is-tab Site Settings
a.nav-item.is-tab(href='/logout') Logout
section.section
.container
.columns
.column.is-two-thirds
label.label Email
p.control.has-icon.has-icon-right
input.input(type='email', placeholder='Email', value=user.email, disabled=(user.provider !== 'local'))
i.fa.fa-envelope
if user.provider == 'local'
label.label Password
p.control.has-icon.has-icon-right
input.input(type='password', placeholder='Password', value='********')
i.fa.fa-lock
label.label Verify Password
p.control.has-icon.has-icon-right
input.input(type='password', placeholder='Password', value='********')
i.fa.fa-lock
label.label Display Name
p.control.has-icon.has-icon-right
input.input(type='text', placeholder='John Smith', value=user.name)
i.fa.fa-user
.column
label.label Provider
p.control.account-profile-provider
case user.provider
when 'local': i.fa.fa-database
when 'windowslive': i.fa.fa-windows.is-blue
when 'google': i.fa.fa-google.is-blue
when 'facebook': i.fa.fa-facebook.is-purple
default: i.fa.fa-question-circle
= t('auth:providers.' + user.provider)
label.label Member since
p.control= userMoment(user.createdAt).format('LL')
label.label Last Profile Update
p.control= userMoment(user.updatedAt).format('LL')
section.section
.container
p.control
button.button.is-success
| Save Changes

View File

@@ -0,0 +1,30 @@
extends ../../layout.pug
block rootNavCenter
block rootNavRight
i.nav-item#notifload
span.nav-item
a.button.is-dark.is-outlined.btn-edit-discard(href='/')
span.icon
i.fa.fa-home
span Home
block content
#page-type-account
section.hero.is-dark
.hero-body
.container
h1.title Account
h2.subtitle Manage your settings and site configuration
nav.nav.has-shadow
.container
.nav-left
a.nav-item.is-tab(href='/admin/profile', class={'is-active': adminTab === 'profile'}) My Profile
a.nav-item.is-tab(href='/admin/stats', class={'is-active': adminTab === 'stats'}) Stats
a.nav-item.is-tab(href='/admin/users', class={'is-active': adminTab === 'users'}) Users
a.nav-item.is-tab(href='/admin/settings', class={'is-active': adminTab === 'settings'}) Site Settings
a.nav-item.is-tab(href='/logout') Logout
block adminContent

View File

@@ -0,0 +1,43 @@
extends ./_layout.pug
block adminContent
section.section
.container
.columns
.column.is-two-thirds
label.label Email
p.control.has-icon.has-icon-right
input.input(type='email', placeholder='Email', value=user.email, disabled=(user.provider !== 'local'))
i.fa.fa-envelope
if user.provider == 'local'
label.label Password
p.control.has-icon.has-icon-right
input.input(type='password', placeholder='Password', value='********')
i.fa.fa-lock
label.label Verify Password
p.control.has-icon.has-icon-right
input.input(type='password', placeholder='Password', value='********')
i.fa.fa-lock
label.label Display Name
p.control.has-icon.has-icon-right
input.input(type='text', placeholder='John Smith', value=user.name)
i.fa.fa-user
.column
label.label Provider
p.control.account-profile-provider
case user.provider
when 'local': i.fa.fa-database
when 'windowslive': i.fa.fa-windows.is-blue
when 'google': i.fa.fa-google.is-blue
when 'facebook': i.fa.fa-facebook.is-purple
default: i.fa.fa-question-circle
= t('auth:providers.' + user.provider)
label.label Member since
p.control= userMoment(user.createdAt).format('LL')
label.label Last Profile Update
p.control= userMoment(user.updatedAt).format('LL')
section.section
.container
p.control
button.button.is-success
| Save Changes

View File

@@ -0,0 +1,6 @@
extends ./_layout.pug
block adminContent
section.section
.container
label.label Coming soon

View File

@@ -0,0 +1,11 @@
extends ./_layout.pug
block adminContent
section.section
.container
label.label Entries
p.control= totalEntries
label.label Uploads
p.control= totalUploads
label.label Users
p.control= totalUsers

View File

@@ -0,0 +1,15 @@
extends ./_layout.pug
block adminContent
section.section
.container
.columns
.column.is-three-quarters
label.label Coming soon
.column
p.control
button.button.is-info
| Create Local User
p.control
button.button.is-info
| Authorize Social User

View File

@@ -6,13 +6,11 @@ block rootNavCenter
block rootNavRight
i.nav-item#notifload
span.nav-item
a.button.is-warning.is-outlined.btn-edit-discard
span.icon
i.fa.fa-times
a.button.is-orange.is-outlined.btn-edit-discard
i.fa.fa-times
span Discard
a.button.is-success.btn-edit-save
span.icon
i.fa.fa-check
a.button.is-green.btn-edit-save
i.fa.fa-check
span Save Changes
block content

View File

@@ -10,13 +10,11 @@ block rootNavRight
a.nav-item(href='/' + pageData.meta.path)
| Normal View
span.nav-item
a.button(href='/edit/' + pageData.meta.path)
span.icon
i.fa.fa-edit
a.button.is-orange(href='/edit/' + pageData.meta.path)
i.fa.fa-edit
span Edit
a.button.is-primary.btn-create-prompt
span.icon
i.fa.fa-plus
a.button.is-blue.btn-create-prompt
i.fa.fa-plus
span Create
block content

View File

@@ -15,51 +15,55 @@ block rootNavRight
a.nav-item(href='/source/' + pageData.meta.path)
| Source
span.nav-item
a.button(href='/edit/' + pageData.meta.path)
span.icon
i.fa.fa-edit
a.button.is-orange.is-outlined(href='/edit/' + pageData.meta.path)
i.fa.fa-edit
span Edit
a.button.is-primary.btn-create-prompt
span.icon
i.fa.fa-plus
a.button.is-light-blue.btn-create-prompt
i.fa.fa-plus
span Create
block content
#page-type-view(data-entrypath=pageData.meta.path)
section.section
.container.is-fluid
.columns
.container.is-fluid
.columns.is-gapless
.column.is-narrow.sd-menus.is-hidden-touch
.column.is-narrow.is-hidden-touch.sidebar
.box
aside.menu(style= { 'min-width': '200px' })
p.menu-label
| Navigation
ul.menu-list
li
a(href='/') Home
if pageData.parent
li
a(href='/' + pageData.parent.path)= pageData.parent.title
li
a(href='/admin') Account
.box.stickyscroll(data-margin-top=70)
aside.menu(style= { 'min-width': '200px' })
p.menu-label
| Contents
ul.menu-list
a(href='#root', title='Start') Start
+tocMenu(pageData.tree)
aside
.sidebar-label
i.icon-th-small
span Navigation
ul.sidebar-menu
li
a(href='/')
i.icon-home
span Home
if pageData.parent
li
a(href='/' + pageData.parent.path)
i.icon-reply
span= pageData.parent.title
li
a(href='/admin')
i.icon-head
span Account
aside.stickyscroll(data-margin-top=40)
.sidebar-label
i.icon-th-list
span Contents
ul.sidebar-menu
li: a(href='#root', title='Start') Start
+tocMenu(pageData.tree)
.column
.column
.hero
h1.title#title= pageData.meta.title
if pageData.meta.subtitle
h2.subtitle= pageData.meta.subtitle
.content.mkcontent
!= pageData.html
.content.mkcontent
!= pageData.html
include ../modals/create.pug
include ../modals/move.pug