mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
parent
f13d13b2ea
commit
506d2d0f81
@ -60,7 +60,7 @@ const observe = (key: HTMLElement | string, target: HTMLElement, properties: Int
|
|||||||
(entries: IntersectionObserverEntry[]) => {
|
(entries: IntersectionObserverEntry[]) => {
|
||||||
// This IntersectionObserver is limited to observing a single element, the one the
|
// This IntersectionObserver is limited to observing a single element, the one the
|
||||||
// action is attached to. If there are multiple entries, it means that this
|
// action is attached to. If there are multiple entries, it means that this
|
||||||
// observer is being notified of multiple events that have occured quickly together,
|
// observer is being notified of multiple events that have occurred quickly together,
|
||||||
// and the latest element is the one we are interested in.
|
// and the latest element is the one we are interested in.
|
||||||
|
|
||||||
entries.sort((a, b) => a.time - b.time);
|
entries.sort((a, b) => a.time - b.time);
|
||||||
|
@ -70,7 +70,7 @@ describe('FormatMessage component', () => {
|
|||||||
expect(getSanitizedHTML(container)).toBe('You have <strong>1 item</strong>');
|
expect(getSanitizedHTML(container)).toBe('You have <strong>1 item</strong>');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('protects agains XSS injection', () => {
|
it('protects against XSS injection', () => {
|
||||||
render(FormatMessage, {
|
render(FormatMessage, {
|
||||||
key: 'xss' as Translations,
|
key: 'xss' as Translations,
|
||||||
});
|
});
|
||||||
|
@ -19,7 +19,7 @@ export type Notification = {
|
|||||||
/** The action to take when the notification is clicked */
|
/** The action to take when the notification is clicked */
|
||||||
action: NotificationAction;
|
action: NotificationAction;
|
||||||
button?: NotificationButton;
|
button?: NotificationButton;
|
||||||
/** Timeout in miliseconds */
|
/** Timeout in milliseconds */
|
||||||
timeout: number;
|
timeout: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
import { t } from 'svelte-i18n';
|
import { t } from 'svelte-i18n';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Inidvidual Purchase Option -->
|
<!-- Individual Purchase Option -->
|
||||||
<div class="border border-gray-300 dark:border-gray-800 w-[375px] p-8 rounded-3xl bg-gray-100 dark:bg-gray-900">
|
<div class="border border-gray-300 dark:border-gray-800 w-[375px] p-8 rounded-3xl bg-gray-100 dark:bg-gray-900">
|
||||||
<div class="text-immich-primary dark:text-immich-dark-primary">
|
<div class="text-immich-primary dark:text-immich-dark-primary">
|
||||||
<Icon path={mdiAccount} size="56" />
|
<Icon path={mdiAccount} size="56" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user