mirror of
https://github.com/immich-app/immich.git
synced 2026-07-31 16:11:03 -07:00
chore(deps): update dependency eslint-plugin-unicorn to v72 (#30092)
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
co-authored by
Daniel Dietzler
parent
ce022233ae
commit
aa08dad1f5
@@ -17,7 +17,7 @@
|
||||
continue;
|
||||
}
|
||||
|
||||
const [group] = permission.split('.');
|
||||
const [group] = permission.split('.', 1);
|
||||
if (!Object.hasOwn(permissions, group)) {
|
||||
permissions[group] = [];
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
}
|
||||
|
||||
if (isFirefox && ref) {
|
||||
ref.decode().then(completeLoad, completeLoad);
|
||||
ref.decode().then(completeLoad).catch(completeLoad);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
|
||||
if (isRotated) {
|
||||
let [width, height] = ratio.value.split(':');
|
||||
let [width, height] = ratio.value.split(':', 2);
|
||||
return `${height}:${width}`;
|
||||
}
|
||||
return ratio.value;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { describe } from 'vitest';
|
||||
import FormatMessage from '$lib/elements/FormatMessage.svelte';
|
||||
import FormatTagB from '$lib/elements/__test__/FormatTagB.svelte';
|
||||
|
||||
const getSanitizedHTML = (container: HTMLElement) => container.innerHTML.replaceAll('<!---->', '');
|
||||
const getSanitizedHTML = (container: HTMLElement) => container.getHTML().replaceAll('<!---->', '');
|
||||
|
||||
describe('FormatMessage component', () => {
|
||||
beforeAll(async () => {
|
||||
|
||||
@@ -124,7 +124,7 @@ class AuthManager {
|
||||
}
|
||||
|
||||
for (const cookie of document.cookie.split('; ')) {
|
||||
const [name] = cookie.split('=');
|
||||
const [name] = cookie.split('=', 1);
|
||||
if (name === 'immich_is_authenticated') {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -834,7 +834,7 @@ class TransformManager implements EditToolManager {
|
||||
return;
|
||||
}
|
||||
|
||||
const [widthRatio, heightRatio] = aspectRatio.split(':');
|
||||
const [widthRatio, heightRatio] = aspectRatio.split(':', 2);
|
||||
this.setAspectRatio(`${heightRatio}:${widthRatio}`);
|
||||
}
|
||||
|
||||
|
||||
@@ -281,8 +281,9 @@
|
||||
};
|
||||
|
||||
afterNavigate(({ from, to }) => {
|
||||
memoryManager.ready().then(
|
||||
() => {
|
||||
memoryManager
|
||||
.ready()
|
||||
.then(() => {
|
||||
let target;
|
||||
if (to?.params?.assetId) {
|
||||
target = to;
|
||||
@@ -294,11 +295,10 @@
|
||||
|
||||
init(target);
|
||||
initPlayer();
|
||||
},
|
||||
(error) => {
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(`Error loading memories: ${error}`);
|
||||
},
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
$effect(() => {
|
||||
|
||||
Reference in New Issue
Block a user