Run prettier
This commit is contained in:
parent
6a17cd12a5
commit
523dcf1f2c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
<mat-form-field [appearance]="appearance" [color]="color" [subscriptSizing]="subscriptSizing">
|
||||
<mat-form-field
|
||||
[appearance]="appearance"
|
||||
[color]="color"
|
||||
[subscriptSizing]="subscriptSizing"
|
||||
>
|
||||
<mat-label>{{ label }}</mat-label>
|
||||
<input
|
||||
matInput
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
import { Clipboard } from '@angular/cdk/clipboard';
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
||||
import {
|
||||
MatFormFieldAppearance,
|
||||
SubscriptSizing,
|
||||
} from '@angular/material/form-field';
|
||||
import { Fail, FT } from 'picsur-shared/dist/types';
|
||||
import { Logger } from 'src/app/services/logger/logger.service';
|
||||
import { ErrorService } from 'src/app/util/error-manager/error.service';
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
}
|
||||
|
||||
.menu-username {
|
||||
margin-top: .5rem;
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
mat-form-field {
|
||||
min-width: 50%;
|
||||
margin-block: .5rem;
|
||||
margin-block: 0.5rem;
|
||||
}
|
||||
|
||||
.y-center {
|
||||
|
|
|
@ -4,7 +4,7 @@ import {
|
|||
CanActivate,
|
||||
CanActivateChild,
|
||||
Router,
|
||||
RouterStateSnapshot
|
||||
RouterStateSnapshot,
|
||||
} from '@angular/router';
|
||||
import { isPermissionsArray } from 'picsur-shared/dist/validators/permissions.validator';
|
||||
import { PRouteData } from '../models/dto/picsur-routes.dto';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
picsur-img {
|
||||
margin-top: 1em;
|
||||
margin-bottom: .5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
// add 1em margin left to each non-first button in
|
||||
|
|
|
@ -87,7 +87,11 @@
|
|||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<copy-field subscriptSizing="dynamic" label="Custom Image URL" [value]="getURL()"></copy-field>
|
||||
<copy-field
|
||||
subscriptSizing="dynamic"
|
||||
label="Custom Image URL"
|
||||
[value]="getURL()"
|
||||
></copy-field>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dialog-buttons">
|
||||
|
|
|
@ -41,7 +41,9 @@ export class CacheService {
|
|||
const safeKey = this.transformKey(key);
|
||||
|
||||
try {
|
||||
const data: dataWrapper<T> = JSON.parse(this.storage.getItem(safeKey) ?? '');
|
||||
const data: dataWrapper<T> = JSON.parse(
|
||||
this.storage.getItem(safeKey) ?? '',
|
||||
);
|
||||
if (data && data.data && data.expires > Date.now()) {
|
||||
return data.data;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue