From 0917f6f91f4c07703ea7bc62e3860750fe685111 Mon Sep 17 00:00:00 2001 From: Pitu Date: Sun, 20 Jun 2021 18:45:56 +0900 Subject: [PATCH] fix: typos --- src/api/structures/Setting.js | 28 ++++++---------------- src/site/components/album/AlbumDetails.vue | 2 +- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/src/api/structures/Setting.js b/src/api/structures/Setting.js index 7650ccb..0f4d59c 100644 --- a/src/api/structures/Setting.js +++ b/src/api/structures/Setting.js @@ -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 }) diff --git a/src/site/components/album/AlbumDetails.vue b/src/site/components/album/AlbumDetails.vue index da472b0..a4e8496 100644 --- a/src/site/components/album/AlbumDetails.vue +++ b/src/site/components/album/AlbumDetails.vue @@ -93,7 +93,7 @@
- {{ details.links.length }} / {{ config.maxLinksPerAlbum }} links created + {{ details.links.length }} links created