viewSource theme config

This commit is contained in:
Bamieh 2017-08-27 15:19:44 +03:00 committed by Nicolas Giard
parent dca237267a
commit 4b33a83d4e
4 changed files with 7 additions and 3 deletions

View File

@ -162,6 +162,7 @@ externalLogging:
theme:
primary: indigo
alt: blue-grey
viewSource: "all"
footer: blue-grey
code:
dark: true

View File

@ -61,6 +61,7 @@ defaults:
primary: indigo
alt: blue-grey
footer: blue-grey
viewSource: "none"
code:
dark: true
colorize: true

View File

@ -28,6 +28,7 @@ module.exports = (confPaths) => {
fs.readFileSync(confPaths.config, 'utf8')
)
)
appdata = yaml.safeLoad(fs.readFileSync(confPaths.data, 'utf8'))
appdata.regex = require(confPaths.dataRegex)
} catch (ex) {

View File

@ -15,6 +15,7 @@ block rootNavRight
a.button.is-outlined(v-on:click='$store.dispatch("modalMovePage/open")')
i.nc-icon-outline.arrows-1_shuffle-98
span= t('nav.move')
if appconfig.theme.viewSource == "all" || rights.write && appconfig.theme.viewSource == "write"
a.button.is-outlined(href='/source/' + pageData.meta.path)
i.nc-icon-outline.education_paper
span= t('nav.source')