Run prettier
This commit is contained in:
parent
6a17cd12a5
commit
523dcf1f2c
|
@ -2,8 +2,8 @@ nodeLinker: node-modules
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
|
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
|
||||||
spec: "@yarnpkg/plugin-version"
|
spec: '@yarnpkg/plugin-version'
|
||||||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
|
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
|
||||||
spec: "@yarnpkg/plugin-workspace-tools"
|
spec: '@yarnpkg/plugin-workspace-tools'
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-berry.cjs
|
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] Proper DB migrations
|
||||||
- [x] Show own images in list
|
- [x] Show own images in list
|
||||||
- [x] Correct previews on chats
|
- [x] Correct previews on chats
|
||||||
- [X] Expiring images
|
- [x] Expiring images
|
||||||
- [X] ShareX endpoint
|
- [x] ShareX endpoint
|
||||||
- [X] Arm64 image
|
- [x] Arm64 image
|
||||||
|
|
||||||
- [ ] White mode
|
- [ ] White mode
|
||||||
- [ ] Public gallery
|
- [ ] Public gallery
|
||||||
|
|
|
@ -30,7 +30,9 @@ export class PostFilePipe implements PipeTransform {
|
||||||
) as any;
|
) as any;
|
||||||
|
|
||||||
// Remove non-file fields
|
// 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');
|
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>
|
<mat-label>{{ label }}</mat-label>
|
||||||
<input
|
<input
|
||||||
matInput
|
matInput
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
import { Clipboard } from '@angular/cdk/clipboard';
|
import { Clipboard } from '@angular/cdk/clipboard';
|
||||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
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 { Fail, FT } from 'picsur-shared/dist/types';
|
||||||
import { Logger } from 'src/app/services/logger/logger.service';
|
import { Logger } from 'src/app/services/logger/logger.service';
|
||||||
import { ErrorService } from 'src/app/util/error-manager/error.service';
|
import { ErrorService } from 'src/app/util/error-manager/error.service';
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-username {
|
.menu-username {
|
||||||
margin-top: .5rem;
|
margin-top: 0.5rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
mat-form-field {
|
mat-form-field {
|
||||||
min-width: 50%;
|
min-width: 50%;
|
||||||
margin-block: .5rem;
|
margin-block: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.y-center {
|
.y-center {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import {
|
||||||
CanActivate,
|
CanActivate,
|
||||||
CanActivateChild,
|
CanActivateChild,
|
||||||
Router,
|
Router,
|
||||||
RouterStateSnapshot
|
RouterStateSnapshot,
|
||||||
} from '@angular/router';
|
} from '@angular/router';
|
||||||
import { isPermissionsArray } from 'picsur-shared/dist/validators/permissions.validator';
|
import { isPermissionsArray } from 'picsur-shared/dist/validators/permissions.validator';
|
||||||
import { PRouteData } from '../models/dto/picsur-routes.dto';
|
import { PRouteData } from '../models/dto/picsur-routes.dto';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
picsur-img {
|
picsur-img {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
margin-bottom: .5em;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
// add 1em margin left to each non-first button in
|
// add 1em margin left to each non-first button in
|
||||||
|
|
|
@ -87,7 +87,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12">
|
<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>
|
</div>
|
||||||
<div class="dialog-buttons">
|
<div class="dialog-buttons">
|
||||||
|
|
|
@ -41,7 +41,9 @@ export class CacheService {
|
||||||
const safeKey = this.transformKey(key);
|
const safeKey = this.transformKey(key);
|
||||||
|
|
||||||
try {
|
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()) {
|
if (data && data.data && data.expires > Date.now()) {
|
||||||
return data.data;
|
return data.data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue