mirror of
https://github.com/immich-app/static-pages.git
synced 2026-09-30 21:27:54 +08:00
chore(deps): update dependency eslint-plugin-unicorn to v73 (#697)
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
co-authored by
Daniel Dietzler
parent
7884f7edda
commit
8082995101
@@ -10,7 +10,9 @@ export type Shortcut = {
|
||||
|
||||
export type ShortcutOptions<T = HTMLElement> = {
|
||||
shortcut: Shortcut;
|
||||
/** If true, the event handler will not execute if the event comes from an input field */
|
||||
/**
|
||||
If true, the event handler will not execute if the event comes from an input field
|
||||
*/
|
||||
ignoreInputFields?: boolean;
|
||||
onShortcut: (event: KeyboardEvent & { currentTarget: T }) => unknown;
|
||||
preventDefault?: boolean;
|
||||
@@ -58,7 +60,9 @@ export const matchesShortcut = (event: KeyboardEvent, shortcut: Shortcut) => {
|
||||
);
|
||||
};
|
||||
|
||||
/** Bind a single keyboard shortcut to node. */
|
||||
/**
|
||||
Bind a single keyboard shortcut to node.
|
||||
*/
|
||||
export const shortcut = <T extends HTMLElement>(
|
||||
node: T,
|
||||
option: ShortcutOptions<T>,
|
||||
@@ -73,7 +77,9 @@ export const shortcut = <T extends HTMLElement>(
|
||||
};
|
||||
};
|
||||
|
||||
/** Binds multiple keyboard shortcuts to node */
|
||||
/**
|
||||
Binds multiple keyboard shortcuts to node
|
||||
*/
|
||||
export const shortcuts = <T extends HTMLElement>(
|
||||
node: T,
|
||||
options: ShortcutOptions<T>[],
|
||||
|
||||
@@ -26,7 +26,9 @@ export type TimelineItem = {
|
||||
export const capitalize = (value: string) => value.charAt(0).toUpperCase() + value.slice(1);
|
||||
|
||||
type Attributes = {
|
||||
/** uuid-v7, which can be generated with `npx -y uuid v7` */
|
||||
/**
|
||||
uuid-v7, which can be generated with `npx -y uuid v7`
|
||||
*/
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
|
||||
Reference in New Issue
Block a user