index.pug 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. doctype html
  2. html
  3. head
  4. meta(http-equiv='X-UA-Compatible', content='IE=edge')
  5. meta(charset='UTF-8')
  6. title Wiki.js | Configure
  7. // Favicon
  8. each favsize in [32, 96, 16]
  9. link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png')
  10. // CSS
  11. link(type='text/css', rel='stylesheet', href='/css/libs.css')
  12. link(type='text/css', rel='stylesheet', href='/css/configure.css')
  13. // JS
  14. script(type='text/javascript', src='/js/libs.js')
  15. script(type='text/javascript', src='/js/configure.js')
  16. block head
  17. body
  18. #root
  19. #header-container
  20. nav.nav#header
  21. .nav-left
  22. a.nav-item
  23. h1
  24. i.icon-layers
  25. | Wiki.js
  26. main
  27. .container
  28. transition(name='tst-welcome')
  29. .welcome(style={'padding-bottom': '5px'}, v-if='state === "welcome"')
  30. img(src='/favicons/android-icon-96x96.png', alt='Wiki.js')
  31. h1 Welcome to Wiki.js!
  32. h2(style={'margin-bottom': 0}) A modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown
  33. .content(v-cloak)
  34. template(v-if='state === "welcome"')
  35. .panel
  36. h2.panel-title.is-featured
  37. span Introduction
  38. i(v-if='loading')
  39. .panel-content.is-text
  40. p This installation wizard will guide you through the steps needed to get your wiki up and running in no time!
  41. p Detailed information about installation and usage can be found on the #[a(href='https://docs.wiki.requarks.io/') official documentation site]. #[br] Should you have any question or would like to report something that doesn't look right, feel free to create a new issue on the #[a(href='https://github.com/Requarks/wiki/issues') GitHub project].
  42. .panel-footer
  43. button.button.is-indigo(v-on:click='proceedToSyscheck', v-bind:disabled='loading') Start
  44. template(v-else-if='state === "syscheck"')
  45. .panel
  46. h2.panel-title.is-featured
  47. span System Check
  48. i(v-if='loading')
  49. .panel-content.is-text
  50. p(v-if='loading') #[i.icon-loader.animated.rotateIn.infinite] Checking your system for compatibility...
  51. p(v-if='!loading && syscheck.ok') #[i.icon-check] Looks great! No issues so far.
  52. p(v-if='!loading && !syscheck.ok') #[i.icon-square-cross] Error: {{ syscheck.error }}
  53. .panel-footer
  54. button.button.is-indigo.is-outlined(v-on:click='proceedToWelcome', v-bind:disabled='loading') Back
  55. button.button.is-teal(v-on:click='proceedToSyscheck', v-if='!loading && !syscheck.ok') Check Again
  56. button.button.is-indigo(v-on:click='proceedToGeneral', v-if='loading || syscheck.ok', v-bind:disabled='loading') Continue
  57. template(v-else-if='state === "general"')
  58. .panel
  59. h2.panel-title.is-featured
  60. span General
  61. i(v-if='loading')
  62. .panel-content.form-sections
  63. section
  64. p.control.is-fullwidth
  65. label.label Site Title
  66. input(type='text', placeholder='e.g. Wiki', v-model='conf.title')
  67. p.desc The site title will appear in the top left corner on every page and within the window title bar.
  68. section
  69. p.control.is-fullwidth
  70. label.label Host
  71. input(type='text', placeholder='http://', v-model='conf.host')
  72. p.desc The full URL to your wiki, without the trailing slash. E.g.: http://wiki.domain.com. Note that sub-folders are not supported.
  73. section
  74. p.control
  75. label.label Port
  76. input(type='text', placeholder='e.g. 80', v-model='conf.port')
  77. p.desc The port on which Wiki.js will listen to. Usually port 80 if connecting directly, or a random port (e.g. 3000) if using a web server in front of it.
  78. section
  79. p.control
  80. label.label Site UI Language
  81. select(v-model='conf.lang')
  82. option(value='en') English
  83. p.desc The language in which navigation, help and other UI elements will be displayed.
  84. .panel-footer
  85. button.button.is-indigo.is-outlined(v-on:click='proceedToSyscheck', v-bind:disabled='loading') Back
  86. button.button.is-indigo(v-on:click='proceedToDb', v-bind:disabled='loading') Continue
  87. template(v-else-if='state === "db"')
  88. .panel
  89. h2.panel-title.is-featured
  90. span Database
  91. i(v-if='loading')
  92. .panel-content.form-sections
  93. section
  94. p.control.is-fullwidth
  95. label.label MongoDB Connection String
  96. input(type='text', placeholder='e.g. mongodb://localhost:27017/wiki', v-model='conf.db')
  97. p.desc The connection string to your MongoDB server. Leave the default localhost value if MongoDB is installed on the same server.
  98. .panel-footer
  99. button.button.is-indigo.is-outlined(v-on:click='proceedToGeneral', v-bind:disabled='loading') Back
  100. button.button.is-indigo(v-on:click='proceedToSyscheck', v-bind:disabled='loading') Connect
  101. footer.footer
  102. span
  103. | Powered by
  104. a(href='https://github.com/Requarks/wiki') Wiki.js
  105. | .
  106. block outside