editor.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. <template lang="pug">
  2. v-app.editor(:dark='$vuetify.theme.dark')
  3. nav-header(dense)
  4. template(slot='mid')
  5. v-text-field.editor-title-input(
  6. dark
  7. solo
  8. flat
  9. v-model='currentPageTitle'
  10. hide-details
  11. background-color='black'
  12. dense
  13. full-width
  14. )
  15. template(slot='actions')
  16. v-btn.mr-3.animated.fadeIn(color='amber', outlined, small, v-if='isConflict', @click='openConflict')
  17. .overline.amber--text.mr-3 Conflict
  18. status-indicator(intermediary, pulse)
  19. v-btn.animated.fadeInDown(
  20. text
  21. color='green'
  22. @click.exact='save'
  23. @click.ctrl.exact='saveAndClose'
  24. :class='{ "is-icon": $vuetify.breakpoint.mdAndDown }'
  25. )
  26. v-icon(color='green', :left='$vuetify.breakpoint.lgAndUp') mdi-check
  27. span.grey--text(v-if='$vuetify.breakpoint.lgAndUp && mode !== `create` && !isDirty') {{ $t('editor:save.saved') }}
  28. span.white--text(v-else-if='$vuetify.breakpoint.lgAndUp') {{ mode === 'create' ? $t('common:actions.create') : $t('common:actions.save') }}
  29. v-btn.animated.fadeInDown.wait-p1s(
  30. text
  31. color='blue'
  32. @click='openPropsModal'
  33. :class='{ "is-icon": $vuetify.breakpoint.mdAndDown, "mx-0": !welcomeMode, "ml-0": welcomeMode }'
  34. )
  35. v-icon(color='blue', :left='$vuetify.breakpoint.lgAndUp') mdi-tag-text-outline
  36. span.white--text(v-if='$vuetify.breakpoint.lgAndUp') {{ $t('common:actions.page') }}
  37. v-btn.animated.fadeInDown.wait-p2s(
  38. v-if='!welcomeMode'
  39. text
  40. color='red'
  41. :class='{ "is-icon": $vuetify.breakpoint.mdAndDown }'
  42. @click='exit'
  43. )
  44. v-icon(color='red', :left='$vuetify.breakpoint.lgAndUp') mdi-close
  45. span.white--text(v-if='$vuetify.breakpoint.lgAndUp') {{ $t('common:actions.close') }}
  46. v-divider.ml-3(vertical)
  47. v-main
  48. component(:is='currentEditor', :save='save')
  49. editor-modal-properties(v-model='dialogProps')
  50. editor-modal-editorselect(v-model='dialogEditorSelector')
  51. editor-modal-unsaved(v-model='dialogUnsaved', @discard='exitGo')
  52. component(:is='activeModal')
  53. loader(v-model='dialogProgress', :title='$t(`editor:save.processing`)', :subtitle='$t(`editor:save.pleaseWait`)')
  54. notify
  55. </template>
  56. <script>
  57. import _ from 'lodash'
  58. import gql from 'graphql-tag'
  59. import { get, sync } from 'vuex-pathify'
  60. import { AtomSpinner } from 'epic-spinners'
  61. import { Base64 } from 'js-base64'
  62. import { StatusIndicator } from 'vue-status-indicator'
  63. import editorStore from '../store/editor'
  64. /* global WIKI */
  65. WIKI.$store.registerModule('editor', editorStore)
  66. export default {
  67. i18nOptions: { namespaces: 'editor' },
  68. components: {
  69. AtomSpinner,
  70. StatusIndicator,
  71. editorApi: () => import(/* webpackChunkName: "editor-api", webpackMode: "lazy" */ './editor/editor-api.vue'),
  72. editorCode: () => import(/* webpackChunkName: "editor-code", webpackMode: "lazy" */ './editor/editor-code.vue'),
  73. editorCkeditor: () => import(/* webpackChunkName: "editor-ckeditor", webpackMode: "lazy" */ './editor/editor-ckeditor.vue'),
  74. editorMarkdown: () => import(/* webpackChunkName: "editor-markdown", webpackMode: "lazy" */ './editor/editor-markdown.vue'),
  75. editorRedirect: () => import(/* webpackChunkName: "editor-redirect", webpackMode: "lazy" */ './editor/editor-redirect.vue'),
  76. editorModalEditorselect: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-editorselect.vue'),
  77. editorModalProperties: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-properties.vue'),
  78. editorModalUnsaved: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-unsaved.vue'),
  79. editorModalMedia: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-media.vue'),
  80. editorModalBlocks: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-blocks.vue'),
  81. editorModalConflict: () => import(/* webpackChunkName: "editor-conflict", webpackMode: "lazy" */ './editor/editor-modal-conflict.vue'),
  82. editorModalDrawio: () => import(/* webpackChunkName: "editor", webpackMode: "eager" */ './editor/editor-modal-drawio.vue')
  83. },
  84. props: {
  85. locale: {
  86. type: String,
  87. default: 'en'
  88. },
  89. path: {
  90. type: String,
  91. default: 'home'
  92. },
  93. title: {
  94. type: String,
  95. default: 'Untitled Page'
  96. },
  97. description: {
  98. type: String,
  99. default: ''
  100. },
  101. tags: {
  102. type: Array,
  103. default: () => ([])
  104. },
  105. isPublished: {
  106. type: Boolean,
  107. default: true
  108. },
  109. scriptCss: {
  110. type: String,
  111. default: ''
  112. },
  113. publishStartDate: {
  114. type: String,
  115. default: ''
  116. },
  117. publishEndDate: {
  118. type: String,
  119. default: ''
  120. },
  121. scriptJs: {
  122. type: String,
  123. default: ''
  124. },
  125. initEditor: {
  126. type: String,
  127. default: null
  128. },
  129. initMode: {
  130. type: String,
  131. default: 'create'
  132. },
  133. initContent: {
  134. type: String,
  135. default: null
  136. },
  137. pageId: {
  138. type: Number,
  139. default: 0
  140. },
  141. minTocLevel: {
  142. type: Number,
  143. default: 0
  144. },
  145. tocLevel: {
  146. type: Number,
  147. default: 1
  148. },
  149. tocCollapseLevel: {
  150. type: Number,
  151. default: 0
  152. },
  153. doUseTocDefault: {
  154. type: Boolean,
  155. default: true
  156. },
  157. checkoutDate: {
  158. type: String,
  159. default: new Date().toISOString()
  160. },
  161. effectivePermissions: {
  162. type: String,
  163. default: ''
  164. }
  165. },
  166. data() {
  167. return {
  168. isSaving: false,
  169. isConflict: false,
  170. dialogProps: false,
  171. dialogProgress: false,
  172. dialogEditorSelector: false,
  173. dialogUnsaved: false,
  174. exitConfirmed: false,
  175. initContentParsed: '',
  176. savedState: {
  177. description: '',
  178. isPublished: false,
  179. publishEndDate: '',
  180. publishStartDate: '',
  181. tags: '',
  182. title: '',
  183. css: '',
  184. js: ''
  185. }
  186. }
  187. },
  188. computed: {
  189. currentEditor: sync('editor/editor'),
  190. activeModal: sync('editor/activeModal'),
  191. mode: get('editor/mode'),
  192. welcomeMode() { return this.mode === `create` && this.path === `home` },
  193. currentPageTitle: sync('page/title'),
  194. checkoutDateActive: sync('editor/checkoutDateActive'),
  195. currentStyling: get('page/scriptCss'),
  196. isDirty () {
  197. return _.some([
  198. this.initContentParsed !== this.$store.get('editor/content'),
  199. this.locale !== this.$store.get('page/locale'),
  200. this.path !== this.$store.get('page/path'),
  201. this.savedState.title !== this.$store.get('page/title'),
  202. this.savedState.description !== this.$store.get('page/description'),
  203. this.savedState.minTocLevel !== this.$store.get('page/minTocLevel'),
  204. this.savedState.tocLevel !== this.$store.get('page/tocLevel'),
  205. this.savedState.tocCollapseLevel !== this.$store.get('page/tocCollapseLevel'),
  206. this.savedState.doUseTocDefault !== this.$store.get('page/doUseTocDefault'),
  207. this.savedState.tags !== this.$store.get('page/tags'),
  208. this.savedState.isPublished !== this.$store.get('page/isPublished'),
  209. this.savedState.publishStartDate !== this.$store.get('page/publishStartDate'),
  210. this.savedState.publishEndDate !== this.$store.get('page/publishEndDate'),
  211. this.savedState.css !== this.$store.get('page/scriptCss'),
  212. this.savedState.js !== this.$store.get('page/scriptJs')
  213. ], Boolean)
  214. }
  215. },
  216. watch: {
  217. currentEditor(newValue, oldValue) {
  218. if (newValue !== '' && this.mode === 'create') {
  219. _.delay(() => {
  220. this.dialogProps = true
  221. }, 500)
  222. }
  223. },
  224. currentStyling(newValue) {
  225. this.injectCustomCss(newValue)
  226. }
  227. },
  228. created() {
  229. this.$store.set('page/id', this.pageId)
  230. this.$store.set('page/description', this.description)
  231. this.$store.set('page/isPublished', this.isPublished)
  232. this.$store.set('page/publishStartDate', this.publishStartDate)
  233. this.$store.set('page/publishEndDate', this.publishEndDate)
  234. this.$store.set('page/locale', this.locale)
  235. this.$store.set('page/path', this.path)
  236. this.$store.set('page/tags', this.tags)
  237. this.$store.set('page/title', this.title)
  238. this.$store.set('page/scriptCss', this.scriptCss)
  239. this.$store.set('page/scriptJs', this.scriptJs)
  240. this.$store.set('page/minTocLevel', this.minTocLevel)
  241. this.$store.set('page/tocLevel', this.tocLevel)
  242. this.$store.set('page/tocCollapseLevel', this.tocCollapseLevel)
  243. this.$store.set('page/doUseTocDefault', this.doUseTocDefault)
  244. this.$store.set('page/mode', 'edit')
  245. this.setCurrentSavedState()
  246. this.checkoutDateActive = this.checkoutDate
  247. if (this.effectivePermissions) {
  248. this.$store.set('page/effectivePermissions', JSON.parse(Buffer.from(this.effectivePermissions, 'base64').toString()))
  249. }
  250. },
  251. mounted() {
  252. this.$store.set('editor/mode', this.initMode || 'create')
  253. this.initContentParsed = this.initContent ? Base64.decode(this.initContent) : ''
  254. this.$store.set('editor/content', this.initContentParsed)
  255. if (this.mode === 'create' && !this.initEditor) {
  256. _.delay(() => {
  257. this.dialogEditorSelector = true
  258. }, 500)
  259. } else {
  260. this.currentEditor = `editor${_.startCase(this.initEditor || 'markdown')}`
  261. }
  262. window.onbeforeunload = () => {
  263. if (!this.exitConfirmed && this.initContentParsed !== this.$store.get('editor/content')) {
  264. return this.$t('editor:unsavedWarning')
  265. } else {
  266. return undefined
  267. }
  268. }
  269. this.$root.$on('resetEditorConflict', () => {
  270. this.isConflict = false
  271. })
  272. // this.$store.set('editor/mode', 'edit')
  273. // this.currentEditor = `editorApi`
  274. },
  275. methods: {
  276. openPropsModal(name) {
  277. this.dialogProps = true
  278. },
  279. showProgressDialog(textKey) {
  280. this.dialogProgress = true
  281. },
  282. hideProgressDialog() {
  283. this.dialogProgress = false
  284. },
  285. openConflict() {
  286. this.$root.$emit('saveConflict')
  287. },
  288. async save({ rethrow = false, overwrite = false } = {}) {
  289. this.showProgressDialog('saving')
  290. this.isSaving = true
  291. const saveTimeoutHandle = setTimeout(() => {
  292. throw new Error('Save operation timed out.')
  293. }, 30000)
  294. try {
  295. if (this.$store.get('editor/mode') === 'create') {
  296. // --------------------------------------------
  297. // -> CREATE PAGE
  298. // --------------------------------------------
  299. let resp = await this.$apollo.mutate({
  300. mutation: gql`
  301. mutation (
  302. $content: String!
  303. $description: String!
  304. $editor: String!
  305. $isPrivate: Boolean!
  306. $isPublished: Boolean!
  307. $locale: String!
  308. $path: String!
  309. $publishEndDate: Date
  310. $publishStartDate: Date
  311. $scriptCss: String
  312. $scriptJs: String
  313. $minTocLevel: Int!
  314. $tocLevel: Int!
  315. $tocCollapseLevel: Int!
  316. $doUseTocDefault: Boolean!
  317. $tags: [String]!
  318. $title: String!
  319. ) {
  320. pages {
  321. create(
  322. content: $content
  323. description: $description
  324. editor: $editor
  325. isPrivate: $isPrivate
  326. isPublished: $isPublished
  327. locale: $locale
  328. path: $path
  329. publishEndDate: $publishEndDate
  330. publishStartDate: $publishStartDate
  331. scriptCss: $scriptCss
  332. scriptJs: $scriptJs
  333. minTocLevel: $minTocLevel
  334. tocLevel: $tocLevel
  335. tocCollapseLevel: $tocCollapseLevel
  336. doUseTocDefault: $doUseTocDefault
  337. tags: $tags
  338. title: $title
  339. ) {
  340. responseResult {
  341. succeeded
  342. errorCode
  343. slug
  344. message
  345. }
  346. page {
  347. id
  348. updatedAt
  349. }
  350. }
  351. }
  352. }
  353. `,
  354. variables: {
  355. content: this.$store.get('editor/content'),
  356. description: this.$store.get('page/description'),
  357. editor: this.$store.get('editor/editorKey'),
  358. locale: this.$store.get('page/locale'),
  359. isPrivate: false,
  360. isPublished: this.$store.get('page/isPublished'),
  361. path: this.$store.get('page/path'),
  362. publishEndDate: this.$store.get('page/publishEndDate') || '',
  363. publishStartDate: this.$store.get('page/publishStartDate') || '',
  364. scriptCss: this.$store.get('page/scriptCss'),
  365. scriptJs: this.$store.get('page/scriptJs'),
  366. minTocLevel: this.$store.get('page/minTocLevel'),
  367. tocLevel: this.$store.get('page/tocLevel'),
  368. tocCollapseLevel: this.$store.get('page/tocCollapseLevel'),
  369. doUseTocDefault: this.$store.get('page/doUseTocDefault'),
  370. tags: this.$store.get('page/tags'),
  371. title: this.$store.get('page/title')
  372. }
  373. })
  374. resp = _.get(resp, 'data.pages.create', {})
  375. if (_.get(resp, 'responseResult.succeeded')) {
  376. this.checkoutDateActive = _.get(resp, 'page.updatedAt', this.checkoutDateActive)
  377. this.isConflict = false
  378. this.$store.commit('showNotification', {
  379. message: this.$t('editor:save.createSuccess'),
  380. style: 'success',
  381. icon: 'check'
  382. })
  383. this.$store.set('editor/id', _.get(resp, 'page.id'))
  384. this.$store.set('editor/mode', 'update')
  385. this.exitConfirmed = true
  386. window.location.assign(`/${this.$store.get('page/locale')}/${this.$store.get('page/path')}`)
  387. } else {
  388. throw new Error(_.get(resp, 'responseResult.message'))
  389. }
  390. } else {
  391. // --------------------------------------------
  392. // -> UPDATE EXISTING PAGE
  393. // --------------------------------------------
  394. const conflictResp = await this.$apollo.query({
  395. query: gql`
  396. query ($id: Int!, $checkoutDate: Date!) {
  397. pages {
  398. checkConflicts(id: $id, checkoutDate: $checkoutDate)
  399. }
  400. }
  401. `,
  402. fetchPolicy: 'network-only',
  403. variables: {
  404. id: this.pageId,
  405. checkoutDate: this.checkoutDateActive
  406. }
  407. })
  408. if (_.get(conflictResp, 'data.pages.checkConflicts', false)) {
  409. this.$root.$emit('saveConflict')
  410. throw new Error(this.$t('editor:conflict.warning'))
  411. }
  412. let resp = await this.$apollo.mutate({
  413. mutation: gql`
  414. mutation (
  415. $id: Int!
  416. $content: String
  417. $description: String
  418. $editor: String
  419. $isPrivate: Boolean
  420. $isPublished: Boolean
  421. $locale: String
  422. $path: String
  423. $publishEndDate: Date
  424. $publishStartDate: Date
  425. $scriptCss: String
  426. $scriptJs: String
  427. $minTocLevel: Int
  428. $tocLevel: Int
  429. $tocCollapseLevel: Int
  430. $doUseTocDefault: Boolean
  431. $tags: [String]
  432. $title: String
  433. ) {
  434. pages {
  435. update(
  436. id: $id
  437. content: $content
  438. description: $description
  439. editor: $editor
  440. isPrivate: $isPrivate
  441. isPublished: $isPublished
  442. locale: $locale
  443. path: $path
  444. publishEndDate: $publishEndDate
  445. publishStartDate: $publishStartDate
  446. scriptCss: $scriptCss
  447. scriptJs: $scriptJs
  448. minTocLevel: $minTocLevel
  449. tocLevel: $tocLevel
  450. tocCollapseLevel: $tocCollapseLevel
  451. doUseTocDefault: $doUseTocDefault
  452. tags: $tags
  453. title: $title
  454. ) {
  455. responseResult {
  456. succeeded
  457. errorCode
  458. slug
  459. message
  460. }
  461. page {
  462. updatedAt
  463. }
  464. }
  465. }
  466. }
  467. `,
  468. variables: {
  469. id: this.$store.get('page/id'),
  470. content: this.$store.get('editor/content'),
  471. description: this.$store.get('page/description'),
  472. editor: this.$store.get('editor/editorKey'),
  473. locale: this.$store.get('page/locale'),
  474. isPrivate: false,
  475. isPublished: this.$store.get('page/isPublished'),
  476. path: this.$store.get('page/path'),
  477. publishEndDate: this.$store.get('page/publishEndDate') || '',
  478. publishStartDate: this.$store.get('page/publishStartDate') || '',
  479. scriptCss: this.$store.get('page/scriptCss'),
  480. scriptJs: this.$store.get('page/scriptJs'),
  481. minTocLevel: this.$store.get('page/minTocLevel'),
  482. tocLevel: this.$store.get('page/tocLevel'),
  483. tocCollapseLevel: this.$store.get('page/tocCollapseLevel'),
  484. doUseTocDefault: this.$store.get('page/doUseTocDefault'),
  485. tags: this.$store.get('page/tags'),
  486. title: this.$store.get('page/title')
  487. }
  488. })
  489. resp = _.get(resp, 'data.pages.update', {})
  490. if (_.get(resp, 'responseResult.succeeded')) {
  491. this.checkoutDateActive = _.get(resp, 'page.updatedAt', this.checkoutDateActive)
  492. this.isConflict = false
  493. this.$store.commit('showNotification', {
  494. message: this.$t('editor:save.updateSuccess'),
  495. style: 'success',
  496. icon: 'check'
  497. })
  498. if (this.locale !== this.$store.get('page/locale') || this.path !== this.$store.get('page/path')) {
  499. _.delay(() => {
  500. window.location.replace(`/e/${this.$store.get('page/locale')}/${this.$store.get('page/path')}`)
  501. }, 1000)
  502. }
  503. } else {
  504. throw new Error(_.get(resp, 'responseResult.message'))
  505. }
  506. }
  507. this.initContentParsed = this.$store.get('editor/content')
  508. this.setCurrentSavedState()
  509. } catch (err) {
  510. this.$store.commit('showNotification', {
  511. message: err.message,
  512. style: 'error',
  513. icon: 'warning'
  514. })
  515. if (rethrow === true) {
  516. clearTimeout(saveTimeoutHandle)
  517. this.isSaving = false
  518. this.hideProgressDialog()
  519. throw err
  520. }
  521. }
  522. clearTimeout(saveTimeoutHandle)
  523. this.isSaving = false
  524. this.hideProgressDialog()
  525. },
  526. async saveAndClose() {
  527. try {
  528. if (this.$store.get('editor/mode') === 'create') {
  529. await this.save()
  530. } else {
  531. await this.save({ rethrow: true })
  532. await this.exit()
  533. }
  534. } catch (err) {
  535. // Error is already handled
  536. }
  537. },
  538. async exit() {
  539. if (this.isDirty) {
  540. this.dialogUnsaved = true
  541. } else {
  542. this.exitGo()
  543. }
  544. },
  545. exitGo() {
  546. this.$store.commit(`loadingStart`, 'editor-close')
  547. this.currentEditor = ''
  548. this.exitConfirmed = true
  549. _.delay(() => {
  550. if (this.$store.get('editor/mode') === 'create') {
  551. window.location.assign(`/`)
  552. } else {
  553. window.location.assign(`/${this.$store.get('page/locale')}/${this.$store.get('page/path')}`)
  554. }
  555. }, 500)
  556. },
  557. setCurrentSavedState () {
  558. this.savedState = {
  559. description: this.$store.get('page/description'),
  560. isPublished: this.$store.get('page/isPublished'),
  561. publishEndDate: this.$store.get('page/publishEndDate') || '',
  562. publishStartDate: this.$store.get('page/publishStartDate') || '',
  563. tags: this.$store.get('page/tags'),
  564. title: this.$store.get('page/title'),
  565. css: this.$store.get('page/scriptCss'),
  566. js: this.$store.get('page/scriptJs'),
  567. minTocLevel: this.$store.get('page/minTocLevel'),
  568. tocLevel: this.$store.get('page/tocLevel'),
  569. tocCollapseLevel: this.$store.get('page/tocCollapseLevel'),
  570. doUseTocDefault: this.$store.get('page/doUseTocDefault')
  571. }
  572. },
  573. injectCustomCss: _.debounce(css => {
  574. const oldStyl = document.querySelector('#editor-script-css')
  575. if (oldStyl) {
  576. document.head.removeChild(oldStyl)
  577. }
  578. if (!_.isEmpty(css)) {
  579. const styl = document.createElement('style')
  580. styl.type = 'text/css'
  581. styl.id = 'editor-script-css'
  582. document.head.appendChild(styl)
  583. styl.appendChild(document.createTextNode(css))
  584. }
  585. }, 1000)
  586. },
  587. apollo: {
  588. isConflict: {
  589. query: gql`
  590. query ($id: Int!, $checkoutDate: Date!) {
  591. pages {
  592. checkConflicts(id: $id, checkoutDate: $checkoutDate)
  593. }
  594. }
  595. `,
  596. fetchPolicy: 'network-only',
  597. pollInterval: 5000,
  598. variables () {
  599. return {
  600. id: this.pageId,
  601. checkoutDate: this.checkoutDateActive
  602. }
  603. },
  604. update: (data) => _.cloneDeep(data.pages.checkConflicts),
  605. skip () {
  606. return this.mode === 'create' || this.isSaving || !this.isDirty
  607. }
  608. }
  609. }
  610. }
  611. </script>
  612. <style lang='scss'>
  613. .editor {
  614. background-color: mc('grey', '900') !important;
  615. min-height: 100vh;
  616. .application--wrap {
  617. background-color: mc('grey', '900');
  618. }
  619. &-title-input input {
  620. text-align: center;
  621. }
  622. }
  623. .atom-spinner.is-inline {
  624. display: inline-block;
  625. }
  626. </style>