mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 23:49:02 +03:00
chore: eslint 10 (#26490)
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
userSettings,
|
||||
allowEdit = false,
|
||||
showOwner = false,
|
||||
// eslint-disable-next-line no-useless-assignment
|
||||
albumGroupIds = $bindable([]),
|
||||
empty,
|
||||
}: Props = $props();
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
}
|
||||
|
||||
void tracker.invoke(async () => {
|
||||
let hasNext = false;
|
||||
let hasNext: boolean;
|
||||
|
||||
if ($slideshowState === SlideshowState.PlaySlideshow && $slideshowNavigation === SlideshowNavigation.Shuffle) {
|
||||
hasNext = order === 'previous' ? slideshowHistory.previous() : slideshowHistory.next();
|
||||
|
||||
@@ -42,16 +42,7 @@
|
||||
}
|
||||
|
||||
function ratioSelected(ratio: AspectRatioOption): boolean {
|
||||
let currentRatioRotated;
|
||||
if (ratio.value === 'original') {
|
||||
const { width, height } = transformManager.cropImageSize;
|
||||
// Account for rotation when comparing to original
|
||||
if (isRotated) {
|
||||
currentRatioRotated = `${height}:${width}`;
|
||||
}
|
||||
currentRatioRotated = `${width}:${height}`;
|
||||
}
|
||||
currentRatioRotated = rotatedRatio(ratio);
|
||||
const currentRatioRotated = rotatedRatio(ratio);
|
||||
|
||||
return transformManager.cropAspectRatio === currentRatioRotated;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
|
||||
let {
|
||||
searchName = $bindable(),
|
||||
// eslint-disable-next-line no-useless-assignment
|
||||
searchedPeopleLocal = $bindable(),
|
||||
type,
|
||||
numberPeopleToSearch = maximumLengthSearchPeople,
|
||||
|
||||
@@ -277,7 +277,7 @@
|
||||
afterNavigate(({ from, to }) => {
|
||||
memoryStore.ready().then(
|
||||
() => {
|
||||
let target = null;
|
||||
let target;
|
||||
if (to?.params?.assetId) {
|
||||
target = to;
|
||||
} else if (from?.params?.assetId) {
|
||||
|
||||
@@ -21,8 +21,10 @@
|
||||
let {
|
||||
places = $bindable([]),
|
||||
searchQuery = '',
|
||||
// eslint-disable-next-line no-useless-assignment
|
||||
searchResultCount = $bindable(0),
|
||||
userSettings,
|
||||
// eslint-disable-next-line no-useless-assignment
|
||||
placesGroupIds = $bindable([]),
|
||||
}: Props = $props();
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
onScrubKeyDown = undefined,
|
||||
startScrub = undefined,
|
||||
stopScrub = undefined,
|
||||
// eslint-disable-next-line no-useless-assignment
|
||||
scrubberWidth = $bindable(),
|
||||
}: Props = $props();
|
||||
|
||||
|
||||
@@ -332,7 +332,7 @@
|
||||
const monthsLength = timelineManager.months.length;
|
||||
for (let i = -1; i < monthsLength + 1; i++) {
|
||||
let monthGroup: ViewportTopMonth;
|
||||
let monthGroupHeight = 0;
|
||||
let monthGroupHeight: number;
|
||||
if (i === -1) {
|
||||
// lead-in
|
||||
monthGroup = 'lead-in';
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
let {
|
||||
timelineManager,
|
||||
// eslint-disable-next-line no-useless-assignment
|
||||
invisible = $bindable(false),
|
||||
removeAction,
|
||||
withStacked = false,
|
||||
|
||||
Reference in New Issue
Block a user