viewSource theme config

pull/235/head
Bamieh 7 years ago committed by Nicolas Giard
parent dca237267a
commit 4b33a83d4e

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

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

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

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

Loading…
Cancel
Save