diff --git a/.yarnrc.yml b/.yarnrc.yml index 9d453bd..4705dcf 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -2,8 +2,8 @@ nodeLinker: node-modules plugins: - path: .yarn/plugins/@yarnpkg/plugin-version.cjs - spec: "@yarnpkg/plugin-version" + spec: '@yarnpkg/plugin-version' - path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs - spec: "@yarnpkg/plugin-workspace-tools" + spec: '@yarnpkg/plugin-workspace-tools' yarnPath: .yarn/releases/yarn-berry.cjs diff --git a/README.md b/README.md index f4cd371..74881e9 100644 --- a/README.md +++ b/README.md @@ -57,9 +57,9 @@ Every featured marked here should work in the latest release. - [x] Proper DB migrations - [x] Show own images in list - [x] Correct previews on chats -- [X] Expiring images -- [X] ShareX endpoint -- [X] Arm64 image +- [x] Expiring images +- [x] ShareX endpoint +- [x] Arm64 image - [ ] White mode - [ ] Public gallery diff --git a/backend/src/decorators/multipart/postfile.pipe.ts b/backend/src/decorators/multipart/postfile.pipe.ts index e29f1b8..1a2afb8 100644 --- a/backend/src/decorators/multipart/postfile.pipe.ts +++ b/backend/src/decorators/multipart/postfile.pipe.ts @@ -30,7 +30,9 @@ export class PostFilePipe implements PipeTransform { ) as any; // Remove non-file fields - const files: MultipartFile[] = allFields.filter((entry) => (entry as any).file !== undefined) as MultipartFile[]; + const files: MultipartFile[] = allFields.filter( + (entry) => (entry as any).file !== undefined, + ) as MultipartFile[]; if (files.length !== 1) throw Fail(FT.UsrValidation, 'Invalid file'); diff --git a/frontend/src/app/components/copy-field/copy-field.component.html b/frontend/src/app/components/copy-field/copy-field.component.html index 307ed78..c01dca8 100644 --- a/frontend/src/app/components/copy-field/copy-field.component.html +++ b/frontend/src/app/components/copy-field/copy-field.component.html @@ -1,4 +1,8 @@ - + {{ label }}
- +
diff --git a/frontend/src/app/services/storage/cache.service.ts b/frontend/src/app/services/storage/cache.service.ts index 25fc303..766467c 100644 --- a/frontend/src/app/services/storage/cache.service.ts +++ b/frontend/src/app/services/storage/cache.service.ts @@ -41,7 +41,9 @@ export class CacheService { const safeKey = this.transformKey(key); try { - const data: dataWrapper = JSON.parse(this.storage.getItem(safeKey) ?? ''); + const data: dataWrapper = JSON.parse( + this.storage.getItem(safeKey) ?? '', + ); if (data && data.data && data.expires > Date.now()) { return data.data; }