Skip to content

Commit

Permalink
feat: disable modal delay
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jul 17, 2024
1 parent 2ed3b6c commit ead8492
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 31 deletions.
5 changes: 2 additions & 3 deletions src/renderer/src/components/ui/modal/stacked/provider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useUISettingKey } from "@renderer/atoms/settings/ui"
import { AnimatePresence } from "framer-motion"
import { useAtomValue } from "jotai"
import type { FC, PropsWithChildren } from "react"

Expand All @@ -26,7 +25,7 @@ const ModalStack = () => {
const forceOverlay = stack.some((item) => item.overlay)

return (
<AnimatePresence mode="popLayout">
<>
{stack.map((item, index) => (
<ModalInternal
key={item.id}
Expand All @@ -36,6 +35,6 @@ const ModalStack = () => {
/>
))}
{stack.length > 0 && (modalSettingOverlay || forceOverlay) && <ModalOverlay zIndex={MODAL_STACK_Z_INDEX + stack.length - 1} />}
</AnimatePresence>
</>
)
}
52 changes: 24 additions & 28 deletions src/renderer/src/hono.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1040,22 +1040,6 @@ declare const feeds: drizzle_orm_pg_core.PgTableWithColumns<{
baseColumn: never;
generated: undefined;
}, {}, {}>;
nextCheckAt: drizzle_orm_pg_core.PgColumn<{
name: "next_check_at";
tableName: "feeds";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: true;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
generated: undefined;
}, {}, {}>;
lastModifiedHeader: drizzle_orm_pg_core.PgColumn<{
name: "last_modified_header";
tableName: "feeds";
Expand Down Expand Up @@ -1163,7 +1147,6 @@ declare const feedsOpenAPISchema: zod.ZodObject<{
siteUrl: zod.ZodNullable<zod.ZodString>;
image: zod.ZodNullable<zod.ZodString>;
checkedAt: zod.ZodString;
nextCheckAt: zod.ZodString;
lastModifiedHeader: zod.ZodNullable<zod.ZodString>;
etagHeader: zod.ZodNullable<zod.ZodString>;
ttl: zod.ZodNullable<zod.ZodNumber>;
Expand All @@ -1178,7 +1161,6 @@ declare const feedsOpenAPISchema: zod.ZodObject<{
url: string;
siteUrl: string | null;
checkedAt: string;
nextCheckAt: string;
lastModifiedHeader: string | null;
etagHeader: string | null;
ttl: number | null;
Expand All @@ -1193,7 +1175,6 @@ declare const feedsOpenAPISchema: zod.ZodObject<{
url: string;
siteUrl: string | null;
checkedAt: string;
nextCheckAt: string;
lastModifiedHeader: string | null;
etagHeader: string | null;
ttl: number | null;
Expand All @@ -1209,7 +1190,6 @@ declare const feedsInputSchema: zod.ZodObject<{
url: zod.ZodString;
siteUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
checkedAt: zod.ZodString;
nextCheckAt: zod.ZodString;
lastModifiedHeader: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
etagHeader: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
ttl: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
Expand All @@ -1219,7 +1199,6 @@ declare const feedsInputSchema: zod.ZodObject<{
}, zod.UnknownKeysParam, zod.ZodTypeAny, {
url: string;
checkedAt: string;
nextCheckAt: string;
description?: string | null | undefined;
title?: string | null | undefined;
id?: string | undefined;
Expand All @@ -1234,7 +1213,6 @@ declare const feedsInputSchema: zod.ZodObject<{
}, {
url: string;
checkedAt: string;
nextCheckAt: string;
description?: string | null | undefined;
title?: string | null | undefined;
id?: string | undefined;
Expand Down Expand Up @@ -2390,6 +2368,30 @@ declare const feedPowerTokensRelations: drizzle_orm.Relations<"feedPowerTokens",
}>;

declare const _routes: hono_hono_base.HonoBase<hono_types.BlankEnv, {
"/metrics": {
$get: {
input: {
query: {
type?: "completed" | "failed" | undefined;
};
};
output: {
data: {
data: number[];
meta: {
count: number;
prevTS: number;
prevCount: number;
};
count: number;
};
code: 0;
};
outputFormat: "json";
status: 200;
};
};
} & {
"/profiles": {
$get: {
input: {
Expand Down Expand Up @@ -2508,7 +2510,6 @@ declare const _routes: hono_hono_base.HonoBase<hono_types.BlankEnv, {
url: string;
siteUrl: string | null;
checkedAt: string;
nextCheckAt: string;
lastModifiedHeader: string | null;
etagHeader: string | null;
ttl: number | null;
Expand Down Expand Up @@ -2916,7 +2917,6 @@ declare const _routes: hono_hono_base.HonoBase<hono_types.BlankEnv, {
feed: {
url: string;
checkedAt: string;
nextCheckAt: string;
description?: string | null | undefined;
title?: string | null | undefined;
id?: string | undefined;
Expand Down Expand Up @@ -2978,7 +2978,6 @@ declare const _routes: hono_hono_base.HonoBase<hono_types.BlankEnv, {
url: string;
siteUrl: string | null;
checkedAt: string;
nextCheckAt: string;
lastModifiedHeader: string | null;
etagHeader: string | null;
ttl: number | null;
Expand Down Expand Up @@ -3147,7 +3146,6 @@ declare const _routes: hono_hono_base.HonoBase<hono_types.BlankEnv, {
url: string;
siteUrl: string | null;
checkedAt: string;
nextCheckAt: string;
lastModifiedHeader: string | null;
etagHeader: string | null;
ttl: number | null;
Expand Down Expand Up @@ -3221,7 +3219,6 @@ declare const _routes: hono_hono_base.HonoBase<hono_types.BlankEnv, {
url: string;
siteUrl: string | null;
checkedAt: string;
nextCheckAt: string;
lastModifiedHeader: string | null;
etagHeader: string | null;
ttl: number | null;
Expand Down Expand Up @@ -3307,7 +3304,6 @@ declare const _routes: hono_hono_base.HonoBase<hono_types.BlankEnv, {
url: string;
siteUrl: string | null;
checkedAt: string;
nextCheckAt: string;
lastModifiedHeader: string | null;
etagHeader: string | null;
ttl: number | null;
Expand Down

0 comments on commit ead8492

Please sign in to comment.