feat: user edit UI + admin UI improvements + fixes

This commit is contained in:
Nicolas Giard
2018-12-15 17:15:13 -05:00
parent 366a835278
commit 17244a0cb3
70 changed files with 1272 additions and 231 deletions

View File

@@ -94,7 +94,7 @@ module.exports = () => {
WIKI.logger.info('Creating data directories...')
const dataPath = path.join(process.cwd(), 'data')
await fs.ensureDir(dataPath)
await fs.ensureDir(path.join(dataPath, 'cache'))
await fs.emptyDir(path.join(dataPath, 'cache'))
await fs.ensureDir(path.join(dataPath, 'uploads'))
// Set config
@@ -221,7 +221,8 @@ module.exports = () => {
password: '',
locale: 'en',
defaultEditor: 'markdown',
tfaIsActive: false
tfaIsActive: false,
isSystem: true
})
await guestUser.$relatedQuery('groups').relate(guestGroup.id)