mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
refactor: run formatter
This commit is contained in:
@@ -3,6 +3,6 @@
|
|||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "none",
|
"trailingComma": "none",
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
|
"plugins": ["prettier-plugin-tailwindcss", "prettier-plugin-svelte"],
|
||||||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
|
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
"formsnap": "^2.0.1",
|
"formsnap": "^2.0.1",
|
||||||
"globals": "^16.5.0",
|
"globals": "^16.5.0",
|
||||||
"mode-watcher": "^1.1.0",
|
"mode-watcher": "^1.1.0",
|
||||||
"prettier": "^3.7.0",
|
"prettier": "^3.7.3",
|
||||||
"prettier-plugin-svelte": "^3.4.0",
|
"prettier-plugin-svelte": "^3.4.0",
|
||||||
"prettier-plugin-tailwindcss": "^0.7.1",
|
"prettier-plugin-tailwindcss": "^0.7.1",
|
||||||
"rollup": "^4.53.3",
|
"rollup": "^4.53.3",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import SunIcon from '@lucide/svelte/icons/sun';
|
|
||||||
import MoonIcon from '@lucide/svelte/icons/moon';
|
import MoonIcon from '@lucide/svelte/icons/moon';
|
||||||
|
import SunIcon from '@lucide/svelte/icons/sun';
|
||||||
|
|
||||||
import { mode, resetMode, setMode } from 'mode-watcher';
|
|
||||||
import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';
|
|
||||||
import { buttonVariants } from '$lib/components/ui/button/index.js';
|
import { buttonVariants } from '$lib/components/ui/button/index.js';
|
||||||
|
import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';
|
||||||
import { m } from '$lib/paraglide/messages';
|
import { m } from '$lib/paraglide/messages';
|
||||||
|
import { mode, resetMode, setMode } from 'mode-watcher';
|
||||||
|
|
||||||
const isDark = $derived(mode.current === 'dark');
|
const isDark = $derived(mode.current === 'dark');
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -36,7 +36,10 @@
|
|||||||
|
|
||||||
async function createLoginCode() {
|
async function createLoginCode() {
|
||||||
try {
|
try {
|
||||||
code = await userService.createOneTimeAccessToken(userId!, availableExpirations[selectedExpiration]);
|
code = await userService.createOneTimeAccessToken(
|
||||||
|
userId!,
|
||||||
|
availableExpirations[selectedExpiration]
|
||||||
|
);
|
||||||
oneTimeLink = `${page.url.origin}/lc/${code}`;
|
oneTimeLink = `${page.url.origin}/lc/${code}`;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
axiosErrorToast(e);
|
axiosErrorToast(e);
|
||||||
@@ -45,7 +48,10 @@
|
|||||||
|
|
||||||
async function sendLoginCodeEmail() {
|
async function sendLoginCodeEmail() {
|
||||||
try {
|
try {
|
||||||
await userService.requestOneTimeAccessEmailAsAdmin(userId!, availableExpirations[selectedExpiration]);
|
await userService.requestOneTimeAccessEmailAsAdmin(
|
||||||
|
userId!,
|
||||||
|
availableExpirations[selectedExpiration]
|
||||||
|
);
|
||||||
toast.success(m.login_code_email_success());
|
toast.success(m.login_code_email_success());
|
||||||
onOpenChange(false);
|
onOpenChange(false);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import Root from "./skeleton.svelte";
|
import Root from './skeleton.svelte';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Root,
|
Root,
|
||||||
//
|
//
|
||||||
Root as Skeleton,
|
Root as Skeleton
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { cn, type WithElementRef, type WithoutChildren } from "$lib/utils/style.js";
|
import { cn, type WithElementRef, type WithoutChildren } from '$lib/utils/style.js';
|
||||||
import type { HTMLAttributes } from "svelte/elements";
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
|
|
||||||
let {
|
let {
|
||||||
ref = $bindable(null),
|
ref = $bindable(null),
|
||||||
@@ -12,6 +12,6 @@
|
|||||||
<div
|
<div
|
||||||
bind:this={ref}
|
bind:this={ref}
|
||||||
data-slot="skeleton"
|
data-slot="skeleton"
|
||||||
class={cn("bg-accent animate-pulse rounded-md", className)}
|
class={cn('bg-accent animate-pulse rounded-md', className)}
|
||||||
{...restProps}
|
{...restProps}
|
||||||
></div>
|
></div>
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ export type AdvancedTableColumn<T extends Record<string, any>> = {
|
|||||||
}[];
|
}[];
|
||||||
hidden?: boolean;
|
hidden?: boolean;
|
||||||
};
|
};
|
||||||
export type CreateAdvancedTableActions<T extends Record<string, any>> = (item: T) => AdvancedTableAction<T>[];
|
export type CreateAdvancedTableActions<T extends Record<string, any>> = (
|
||||||
|
item: T
|
||||||
|
) => AdvancedTableAction<T>[];
|
||||||
|
|
||||||
export type AdvancedTableAction<T> = {
|
export type AdvancedTableAction<T> = {
|
||||||
label: string;
|
label: string;
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ export const eventTypes: Record<string, string> = {
|
|||||||
DEVICE_CODE_AUTHORIZATION: m.device_code_authorization(),
|
DEVICE_CODE_AUTHORIZATION: m.device_code_authorization(),
|
||||||
NEW_DEVICE_CODE_AUTHORIZATION: m.new_device_code_authorization(),
|
NEW_DEVICE_CODE_AUTHORIZATION: m.new_device_code_authorization(),
|
||||||
PASSKEY_ADDED: m.passkey_added(),
|
PASSKEY_ADDED: m.passkey_added(),
|
||||||
PASSKEY_REMOVED: m.passkey_removed(),
|
PASSKEY_REMOVED: m.passkey_removed()
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translates an audit log event type using paraglide messages.
|
* Translates an audit log event type using paraglide messages.
|
||||||
|
|||||||
@@ -22,9 +22,13 @@ export const cachedApplicationLogo: CachableImage = {
|
|||||||
|
|
||||||
export const cachedDefaultProfilePicture: CachableImage = {
|
export const cachedDefaultProfilePicture: CachableImage = {
|
||||||
getUrl: () =>
|
getUrl: () =>
|
||||||
getCachedImageUrl(new URL('/api/application-images/default-profile-picture', window.location.origin)),
|
getCachedImageUrl(
|
||||||
|
new URL('/api/application-images/default-profile-picture', window.location.origin)
|
||||||
|
),
|
||||||
bustCache: () =>
|
bustCache: () =>
|
||||||
bustImageCache(new URL('/api/application-images/default-profile-picture', window.location.origin))
|
bustImageCache(
|
||||||
|
new URL('/api/application-images/default-profile-picture', window.location.origin)
|
||||||
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
export const cachedBackgroundImage: CachableImage = {
|
export const cachedBackgroundImage: CachableImage = {
|
||||||
|
|||||||
27
pnpm-lock.yaml
generated
27
pnpm-lock.yaml
generated
@@ -141,14 +141,14 @@ importers:
|
|||||||
specifier: ^1.1.0
|
specifier: ^1.1.0
|
||||||
version: 1.1.0(svelte@5.45.2)
|
version: 1.1.0(svelte@5.45.2)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: ^3.7.0
|
specifier: ^3.7.3
|
||||||
version: 3.7.0
|
version: 3.7.3
|
||||||
prettier-plugin-svelte:
|
prettier-plugin-svelte:
|
||||||
specifier: ^3.4.0
|
specifier: ^3.4.0
|
||||||
version: 3.4.0(prettier@3.7.0)(svelte@5.45.2)
|
version: 3.4.0(prettier@3.7.3)(svelte@5.45.2)
|
||||||
prettier-plugin-tailwindcss:
|
prettier-plugin-tailwindcss:
|
||||||
specifier: ^0.7.1
|
specifier: ^0.7.1
|
||||||
version: 0.7.1(prettier-plugin-svelte@3.4.0(prettier@3.7.0)(svelte@5.45.2))(prettier@3.7.0)
|
version: 0.7.1(prettier-plugin-svelte@3.4.0(prettier@3.7.3)(svelte@5.45.2))(prettier@3.7.3)
|
||||||
rollup:
|
rollup:
|
||||||
specifier: ^4.53.3
|
specifier: ^4.53.3
|
||||||
version: 4.53.3
|
version: 4.53.3
|
||||||
@@ -2422,6 +2422,11 @@ packages:
|
|||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
|
prettier@3.7.3:
|
||||||
|
resolution: {integrity: sha512-QgODejq9K3OzoBbuyobZlUhznP5SKwPqp+6Q6xw6o8gnhr4O85L2U915iM2IDcfF2NPXVaM9zlo9tdwipnYwzg==}
|
||||||
|
engines: {node: '>=14'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
prismjs@1.30.0:
|
prismjs@1.30.0:
|
||||||
resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==}
|
resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
@@ -3534,7 +3539,7 @@ snapshots:
|
|||||||
'@react-email/render@2.0.0(react-dom@19.2.0(react@19.2.0))(react@19.2.0)':
|
'@react-email/render@2.0.0(react-dom@19.2.0(react@19.2.0))(react@19.2.0)':
|
||||||
dependencies:
|
dependencies:
|
||||||
html-to-text: 9.0.5
|
html-to-text: 9.0.5
|
||||||
prettier: 3.7.0
|
prettier: 3.7.3
|
||||||
react: 19.2.0
|
react: 19.2.0
|
||||||
react-dom: 19.2.0(react@19.2.0)
|
react-dom: 19.2.0(react@19.2.0)
|
||||||
|
|
||||||
@@ -4938,19 +4943,21 @@ snapshots:
|
|||||||
|
|
||||||
prelude-ls@1.2.1: {}
|
prelude-ls@1.2.1: {}
|
||||||
|
|
||||||
prettier-plugin-svelte@3.4.0(prettier@3.7.0)(svelte@5.45.2):
|
prettier-plugin-svelte@3.4.0(prettier@3.7.3)(svelte@5.45.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
prettier: 3.7.0
|
prettier: 3.7.3
|
||||||
svelte: 5.45.2
|
svelte: 5.45.2
|
||||||
|
|
||||||
prettier-plugin-tailwindcss@0.7.1(prettier-plugin-svelte@3.4.0(prettier@3.7.0)(svelte@5.45.2))(prettier@3.7.0):
|
prettier-plugin-tailwindcss@0.7.1(prettier-plugin-svelte@3.4.0(prettier@3.7.3)(svelte@5.45.2))(prettier@3.7.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
prettier: 3.7.0
|
prettier: 3.7.3
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
prettier-plugin-svelte: 3.4.0(prettier@3.7.0)(svelte@5.45.2)
|
prettier-plugin-svelte: 3.4.0(prettier@3.7.3)(svelte@5.45.2)
|
||||||
|
|
||||||
prettier@3.7.0: {}
|
prettier@3.7.0: {}
|
||||||
|
|
||||||
|
prettier@3.7.3: {}
|
||||||
|
|
||||||
prismjs@1.30.0: {}
|
prismjs@1.30.0: {}
|
||||||
|
|
||||||
prompts@2.4.2:
|
prompts@2.4.2:
|
||||||
|
|||||||
Reference in New Issue
Block a user