fix: typos

This commit is contained in:
Pitu 2021-06-20 18:45:56 +09:00
parent aff22be1b3
commit 0917f6f91f
2 changed files with 8 additions and 22 deletions

View File

@ -29,12 +29,13 @@ const schema = Joi.object({
.label('Service name')
.description('Name of the service'),
domain: Joi.string().default(`http://localhost:${env.SERVER_PORT}`)
secret: Joi.string().default(``)
.meta({
section: Sections.SERVICE
})
.label('Domain')
.description('Full domain this instance is gonna be running on'),
.label('Secret')
.description('64 char secret key to sign JWT sessions')
.note('If this setting is changed then every user session will be invalidates and every user will need to log in again.'),
// File related settings
chunkSize: Joi.number().integer().greater(0)
@ -68,7 +69,7 @@ const schema = Joi.object({
.label('Generated file name length')
.description('How long should the automatically generated file name be'),
generatedAlbumLength: Joi.number().integer().min(6)
generatedAlbumLength: Joi.number().integer().min(4)
.default(6)
.meta({
section: Sections.FILE
@ -76,21 +77,6 @@ const schema = Joi.object({
.label('Generated album name length')
.description('How long should the automatically generated album identifier be'),
maxLinksPerAlbum: Joi.number().integer().greater(0)
.default(5)
.meta({
section: Sections.FILE
})
.label('Maximum album links')
.description('Maximum allowed number of a distinct links for an album'),
uploadsFolder: Joi.string().default('uploads')
.meta({
section: Sections.FILE
})
.label('Uploads folder')
.description('Name of the folder where the uploads will be stored'),
blockedExtensions: Joi.array()
.items(Joi.string().pattern(/^(\.\w+)+$/, { name: 'file extension' }))
.default(['.jar', '.exe', '.msi', '.com', '.bat', '.cmd', '.scr', '.ps1', '.sh'])
@ -108,7 +94,7 @@ const schema = Joi.object({
.label('Public mode')
.description('Allows people to upload files without an account'),
userAccount: Joi.boolean().default(true)
userAccounts: Joi.boolean().default(true)
.meta({
section: Sections.USERS
})
@ -132,7 +118,7 @@ const schema = Joi.object({
.label('Meta description')
.description('Short and accurate summary of the content of the page'),
metaKeyword: Joi.string().default('chibisafe,lolisafe,upload,uploader,file,vue,images,ssr,file uploader,free')
metaKeywords: Joi.string().default('chibisafe,lolisafe,upload,uploader,file,vue,images,ssr,file uploader,free')
.meta({
section: Sections.SOCIAL_AND_SHARING
})

View File

@ -93,7 +93,7 @@
</button>
</div>
<div class="level-item">
<span class="has-text-default">{{ details.links.length }} / {{ config.maxLinksPerAlbum }} links created</span>
<span class="has-text-default">{{ details.links.length }} links created</span>
</div>
</div>