Commit 485bfc39 authored by NGPixel's avatar NGPixel

Added Public option to Setup Wizard

parent ddcbce05
...@@ -49,6 +49,7 @@ jQuery(document).ready(function ($) { ...@@ -49,6 +49,7 @@ jQuery(document).ready(function ($) {
host: appconfig.host || 'http://', host: appconfig.host || 'http://',
port: appconfig.port || 80, port: appconfig.port || 80,
lang: appconfig.lang || 'en', lang: appconfig.lang || 'en',
public: (appconfig.public === true),
db: appconfig.db || 'mongodb://localhost:27017/wiki', db: appconfig.db || 'mongodb://localhost:27017/wiki',
pathData: './data', pathData: './data',
pathRepo: './repo', pathRepo: './repo',
......
...@@ -104,6 +104,11 @@ html(data-logic='configure') ...@@ -104,6 +104,11 @@ html(data-logic='configure')
each lg in langs each lg in langs
option(value=lg.id)= lg.name option(value=lg.id)= lg.name
span.desc The language in which navigation, help and other UI elements will be displayed. span.desc The language in which navigation, help and other UI elements will be displayed.
section
p.control.is-fullwidth
input#ipt-public(type='checkbox', v-model='conf.public', data-vv-scope='general', name='ipt-public')
label.label(for='ipt-public') Public Access
span.desc Should the site be accessible (read only) without login.
.panel-footer .panel-footer
.progress-bar: div(v-bind:style='{width: currentProgress}') .progress-bar: div(v-bind:style='{width: currentProgress}')
button.button.is-indigo.is-outlined(v-on:click='proceedToSyscheck', v-bind:disabled='loading') Back button.button.is-indigo.is-outlined(v-on:click='proceedToSyscheck', v-bind:disabled='loading') Back
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment