From c7f74cf7464da96e5f6249926cbfc3eea9d1497e Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Oct 2024 00:21:06 +0800 Subject: [PATCH 01/49] fix: clear local data when login other account and store window pos before quit Signed-off-by: Innei --- apps/main/src/index.ts | 22 ++++++++++++++++-- apps/main/src/window.ts | 8 +++---- apps/renderer/src/database/db.ts | 2 +- .../src/modules/auth/LoginModalContent.tsx | 23 +++++++++++++++++-- .../src/pages/(external)/redirect.tsx | 20 ++++++++++++---- .../providers/extension-expose-provider.tsx | 5 ++++ apps/renderer/src/store/list/store.ts | 6 +++++ apps/renderer/src/store/utils/clear.ts | 21 ++++++++++++++++- packages/shared/src/bridge.ts | 3 +++ 9 files changed, 96 insertions(+), 14 deletions(-) diff --git a/apps/main/src/index.ts b/apps/main/src/index.ts index fb7ab51af..6a4aeaa09 100644 --- a/apps/main/src/index.ts +++ b/apps/main/src/index.ts @@ -1,4 +1,5 @@ import { electronApp, optimizer } from "@electron-toolkit/utils" +import { callWindowExpose } from "@follow/shared/bridge" import { APP_PROTOCOL } from "@follow/shared/constants" import { env } from "@follow/shared/env" import { app, BrowserWindow, session } from "electron" @@ -8,9 +9,10 @@ import { isDev, isMacOS } from "./env" import { initializeAppStage0, initializeAppStage1 } from "./init" import { updateProxy } from "./lib/proxy" import { handleUrlRouting } from "./lib/router" +import { store } from "./lib/store" import { setAuthSessionToken } from "./lib/user" import { registerUpdater } from "./updater" -import { createMainWindow } from "./window" +import { createMainWindow, getMainWindow, windowStateStoreKey } from "./window" if (isDev) console.info("[main] env loaded:", env) @@ -115,13 +117,28 @@ function bootstrap() { } }) - const handleOpen = (url: string) => { + app.on("before-quit", () => { + // store window pos when before app quit + const window = getMainWindow() + if (!window) return + const bounds = window.getBounds() + + store.set(windowStateStoreKey, { + width: bounds.width, + height: bounds.height, + x: bounds.x, + y: bounds.y, + }) + }) + + const handleOpen = async (url: string) => { const isValid = URL.canParse(url) if (!isValid) return const urlObj = new URL(url) if (urlObj.hostname === "auth" || urlObj.pathname === "//auth") { const token = urlObj.searchParams.get("token") + const userId = urlObj.searchParams.get("userId") const apiURL = process.env["VITE_API_URL"] || import.meta.env.VITE_API_URL if (token && apiURL) { @@ -135,6 +152,7 @@ function bootstrap() { domain: new URL(apiURL).hostname, sameSite: "no_restriction", }) + userId && (await callWindowExpose(mainWindow).clearIfLoginOtherAccount(userId)) mainWindow.reload() } } else { diff --git a/apps/main/src/window.ts b/apps/main/src/window.ts index 5a0aae4a4..6b7b83f3a 100644 --- a/apps/main/src/window.ts +++ b/apps/main/src/window.ts @@ -161,9 +161,9 @@ export function createWindow( return window } +export const windowStateStoreKey = "windowState" export const createMainWindow = () => { - const storeKey = "windowState" - const windowState = store.get(storeKey) as { + const windowState = store.get(windowStateStoreKey) as { height: number width: number x: number @@ -201,7 +201,7 @@ export const createMainWindow = () => { const windowStoreKey = Symbol.for("maximized") if (window[windowStoreKey]) { const stored = window[windowStoreKey] - store.set(storeKey, { + store.set(windowStateStoreKey, { width: stored.size[0], height: stored.size[1], x: stored.position[0], @@ -213,7 +213,7 @@ export const createMainWindow = () => { } const bounds = window.getBounds() - store.set(storeKey, { + store.set(windowStateStoreKey, { width: bounds.width, height: bounds.height, x: bounds.x, diff --git a/apps/renderer/src/database/db.ts b/apps/renderer/src/database/db.ts index bbfcf6d03..1940677aa 100644 --- a/apps/renderer/src/database/db.ts +++ b/apps/renderer/src/database/db.ts @@ -30,7 +30,7 @@ export interface LocalDBSchemaMap { } // Define a local DB -export class BrowserDB extends Dexie { +class BrowserDB extends Dexie { public entries: BrowserDBTable<"entries"> public feeds: BrowserDBTable<"feeds"> public subscriptions: BrowserDBTable<"subscriptions"> diff --git a/apps/renderer/src/modules/auth/LoginModalContent.tsx b/apps/renderer/src/modules/auth/LoginModalContent.tsx index 6f71fd676..b8b4f78c1 100644 --- a/apps/renderer/src/modules/auth/LoginModalContent.tsx +++ b/apps/renderer/src/modules/auth/LoginModalContent.tsx @@ -1,6 +1,6 @@ import clsx from "clsx" import { AnimatePresence, m } from "framer-motion" -import { useState } from "react" +import { useEffect, useRef, useState } from "react" import { useTranslation } from "react-i18next" import { FollowIcon } from "~/components/icons/follow" @@ -23,7 +23,26 @@ export const LoginModalContent = (props: LoginModalContentProps) => { const { t } = useTranslation() - const [loadingLockSet, setLoadingLockSet] = useState("") + const [loadingLockSet, _setLoadingLockSet] = useState("") + + const timerRef = useRef(null) + const setLoadingLockSet = (id: string) => { + _setLoadingLockSet(id) + if (timerRef.current) { + clearTimeout(timerRef.current) + } + timerRef.current = setTimeout(() => { + _setLoadingLockSet("") + }, 3000) + } + + useEffect(() => { + return () => { + if (timerRef.current) { + clearTimeout(timerRef.current) + } + } + }, []) const disabled = !!loadingLockSet return ( diff --git a/apps/renderer/src/pages/(external)/redirect.tsx b/apps/renderer/src/pages/(external)/redirect.tsx index 5d45b0b7f..3aa09f05a 100644 --- a/apps/renderer/src/pages/(external)/redirect.tsx +++ b/apps/renderer/src/pages/(external)/redirect.tsx @@ -14,7 +14,10 @@ export function Component() { const getCallbackUrl = async () => { const { data } = await apiClient["auth-app"]["new-session"].$post({}) - return `${DEEPLINK_SCHEME}auth?token=${data.sessionToken}` + return { + url: `${DEEPLINK_SCHEME}auth?token=${data.sessionToken}&userId=${data.userId}`, + userId: data.userId, + } } const onceRef = useRef(false) @@ -24,7 +27,7 @@ export function Component() { if (window.electron) { navigate("/") } else { - getCallbackUrl().then((url) => { + getCallbackUrl().then(({ url }) => { window.open(url, "_top") // If you are in development, you can use the following code to open the app @@ -42,13 +45,22 @@ export function Component() { {t("redirect.instruction", { app_name: APP_NAME })}
- diff --git a/apps/renderer/src/providers/extension-expose-provider.tsx b/apps/renderer/src/providers/extension-expose-provider.tsx index 129c6dad3..edce6a294 100644 --- a/apps/renderer/src/providers/extension-expose-provider.tsx +++ b/apps/renderer/src/providers/extension-expose-provider.tsx @@ -10,6 +10,7 @@ import { useModalStack } from "~/components/ui/modal" import { useFollow } from "~/hooks/biz/useFollow" import { usePresentUserProfileModal } from "~/modules/profile/hooks" import { useSettingModal } from "~/modules/settings/modal/hooks" +import { clearDataIfLoginOtherAccount } from "~/store/utils/clear" export const ExtensionExposeProvider = () => { const { present } = useModalStack() @@ -28,6 +29,10 @@ export const ExtensionExposeProvider = () => { getWebUrl() { return window.location.origin }, + + clearIfLoginOtherAccount(newUserId: string) { + clearDataIfLoginOtherAccount(newUserId) + }, }) }, []) useEffect(() => { diff --git a/apps/renderer/src/store/list/store.ts b/apps/renderer/src/store/list/store.ts index d1d22ff96..8ead48f13 100644 --- a/apps/renderer/src/store/list/store.ts +++ b/apps/renderer/src/store/list/store.ts @@ -79,6 +79,12 @@ class ListActionStatic { this.upsertMany([res.data.list]) return res.data } + + async clear() { + set((state) => { + state.lists = {} + }) + } } export const listActions = new ListActionStatic() diff --git a/apps/renderer/src/store/utils/clear.ts b/apps/renderer/src/store/utils/clear.ts index a5c44b808..53932874b 100644 --- a/apps/renderer/src/store/utils/clear.ts +++ b/apps/renderer/src/store/utils/clear.ts @@ -1,15 +1,25 @@ import { clearUISettings } from "~/atoms/settings/ui" import { browserDB } from "~/database" +import { getStorageNS } from "~/lib/ns" import { entryActions } from "../entry" import { feedActions } from "../feed" import { clearImageDimensionsDb } from "../image/db" +import { inboxActions } from "../inbox" +import { listActions } from "../list" import { subscriptionActions } from "../subscription" import { feedUnreadActions } from "../unread" export const clearLocalPersistStoreData = async () => { // All clear and reset method will aggregate here - ;[entryActions, subscriptionActions, feedUnreadActions, feedActions].forEach((actions) => { + ;[ + entryActions, + subscriptionActions, + feedUnreadActions, + feedActions, + listActions, + inboxActions, + ].forEach((actions) => { actions.clear() }) @@ -18,3 +28,12 @@ export const clearLocalPersistStoreData = async () => { await clearImageDimensionsDb() await browserDB.delete().catch(() => null) } + +const storedUserId = getStorageNS("user_id") +export const clearDataIfLoginOtherAccount = (newUserId: string) => { + const oldUserId = localStorage.getItem(storedUserId) + localStorage.setItem(storedUserId, newUserId) + if (oldUserId !== newUserId) { + return clearLocalPersistStoreData() + } +} diff --git a/packages/shared/src/bridge.ts b/packages/shared/src/bridge.ts index 13db314a3..ac7596a2e 100644 --- a/packages/shared/src/bridge.ts +++ b/packages/shared/src/bridge.ts @@ -24,6 +24,9 @@ interface RenderGlobalContext { follow: (options?: { isList: boolean; id?: string; url?: string }) => void profile: (id: string, variant?: "drawer" | "dialog") => void + // user data + clearIfLoginOtherAccount: (newUserId: string) => void + /// Utils toast: typeof toast // URL From 810919ca1bff128503e8386118bf9d7323479068 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 9 Oct 2024 22:31:30 +0800 Subject: [PATCH 02/49] feat: updateNotificationsToken on login --- apps/main/src/index.ts | 4 +++- apps/main/src/init.ts | 19 +++---------------- apps/main/src/lib/user.ts | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/apps/main/src/index.ts b/apps/main/src/index.ts index 6a4aeaa09..459011491 100644 --- a/apps/main/src/index.ts +++ b/apps/main/src/index.ts @@ -10,7 +10,7 @@ import { initializeAppStage0, initializeAppStage1 } from "./init" import { updateProxy } from "./lib/proxy" import { handleUrlRouting } from "./lib/router" import { store } from "./lib/store" -import { setAuthSessionToken } from "./lib/user" +import { setAuthSessionToken, updateNotificationsToken } from "./lib/user" import { registerUpdater } from "./updater" import { createMainWindow, getMainWindow, windowStateStoreKey } from "./window" @@ -154,6 +154,8 @@ function bootstrap() { }) userId && (await callWindowExpose(mainWindow).clearIfLoginOtherAccount(userId)) mainWindow.reload() + + updateNotificationsToken() } } else { handleUrlRouting(url) diff --git a/apps/main/src/init.ts b/apps/main/src/init.ts index 09b47e691..b98019074 100644 --- a/apps/main/src/init.ts +++ b/apps/main/src/init.ts @@ -9,9 +9,9 @@ import { app, nativeTheme, Notification, shell } from "electron" import contextMenu from "electron-context-menu" import { getIconPath } from "./helper" -import { apiClient } from "./lib/api-client" import { t } from "./lib/i18n" import { store } from "./lib/store" +import { updateNotificationsToken } from "./lib/user" import { registerAppMenu } from "./menu" import type { RendererHandlers } from "./renderer-handlers" import { initializeSentry } from "./sentry" @@ -134,14 +134,7 @@ const registerPushNotifications = async () => { const credentials = store.get(credentialsKey) const persistentIds = store.get(persistentIdsKey) - if (credentials) { - apiClient.messaging.$post({ - json: { - token: credentials.fcm.token, - channel: "desktop", - }, - }) - } + updateNotificationsToken() const instance = new PushReceiver({ debug: isDev, @@ -151,13 +144,7 @@ const registerPushNotifications = async () => { }) instance.onCredentialsChanged(({ newCredentials }) => { - store.set(credentialsKey, newCredentials) - apiClient.messaging.$post({ - json: { - token: newCredentials.fcm.token, - channel: "desktop", - }, - }) + updateNotificationsToken(newCredentials) }) instance.onNotification((notification) => { diff --git a/apps/main/src/lib/user.ts b/apps/main/src/lib/user.ts index cb9014005..848535ae9 100644 --- a/apps/main/src/lib/user.ts +++ b/apps/main/src/lib/user.ts @@ -1,5 +1,7 @@ import type { User } from "@auth/core/types" +import type { Credentials } from "@eneris/push-receiver/dist/types" +import { apiClient } from "./api-client" import { store } from "./store" const AuthKey = "authSessionToken" @@ -15,3 +17,18 @@ export const getUser = (): User | null => { } export const cleanUser = () => store.set(UserKey, null) + +export const updateNotificationsToken = async (newCredentials?: Credentials) => { + if (newCredentials) { + store.set("notifications-credentials", newCredentials) + } + const credentials = newCredentials || store.get("notifications-credentials") + if (credentials?.fcm?.token) { + await apiClient.messaging.$post({ + json: { + token: credentials.fcm.token, + channel: "desktop", + }, + }) + } +} From 555428cbb58d13a3eac50edb3dcfbc7269e920c3 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 10 Oct 2024 02:10:54 +0800 Subject: [PATCH 03/49] feat: wider user drop menu --- apps/renderer/src/components/user-button.tsx | 115 +++++++++--------- .../src/modules/feed-column/header.tsx | 5 +- icons/mgc/VIP_2_cute_fi.svg | 1 + 3 files changed, 64 insertions(+), 57 deletions(-) create mode 100644 icons/mgc/VIP_2_cute_fi.svg diff --git a/apps/renderer/src/components/user-button.tsx b/apps/renderer/src/components/user-button.tsx index 5defacfa9..8e4777df5 100644 --- a/apps/renderer/src/components/user-button.tsx +++ b/apps/renderer/src/components/user-button.tsx @@ -1,9 +1,11 @@ import { repository } from "@pkg" +import { m } from "framer-motion" import type { FC } from "react" import { memo } from "react" import { useTranslation } from "react-i18next" import { Link } from "react-router-dom" +import { useWhoami } from "~/atoms/user" import { Avatar, AvatarFallback, AvatarImage } from "~/components/ui/avatar" import { useSignOut } from "~/hooks/biz/useSignOut" import { useAuthQuery } from "~/hooks/common" @@ -16,7 +18,9 @@ import { useAchievementModal } from "~/modules/achievement/hooks" import { LoginModalContent } from "~/modules/auth/LoginModalContent" import { usePresentUserProfileModal } from "~/modules/profile/hooks" import { useSettingModal } from "~/modules/settings/modal/hooks" +import { Balance } from "~/modules/wallet/balance" import { useSession } from "~/queries/auth" +import { useWallet } from "~/queries/wallet" import { UserArrowLeftIcon } from "./icons/user" import { ActionButton } from "./ui/button" @@ -77,23 +81,44 @@ export const ProfileButton: FC = memo((props) => { - + - - - {t("user_button.account")} + + + + + -
- -
-
{user?.name}
-
{user?.handle}
-
+
+
{user?.name}
+
{user?.handle}
+ + { + nextFrame(() => settingModalPresent("wallet")) + }} + > +
+ + +
+
+ + { presentUserProfile(user?.id) @@ -113,14 +138,6 @@ export const ProfileButton: FC = memo((props) => { - { - nextFrame(() => settingModalPresent("wallet")) - }} - icon={} - > - {t("user_button.power")} - { nextFrame(settingModalPresent) @@ -213,41 +230,27 @@ export function UserAvatar({ ) } -// const AppTheme = () => { -// const theme = useThemeAtomValue() -// const setTheme = useSetTheme() -// return ( -// -// -// -// Theme -// -// -// )} -// value={theme} -// values={[ -// { -// value: "system", -// label: "", -// icon: , -// }, -// { -// value: "light", -// label: "", -// icon: , -// }, -// { -// value: "dark", -// label: "", -// icon: , -// }, -// ]} -// onValueChanged={(value) => { -// setTheme(value as "light" | "dark" | "system") -// }} -// /> -// ) -// } +function PowerButton() { + const user = useWhoami() + const wallet = useWallet({ userId: user?.id }) + const myWallet = wallet.data?.[0] + + return ( +
+ + + {BigInt(myWallet?.dailyPowerToken || 0n) + BigInt(myWallet?.cashablePowerToken || 0n)} + +
+ ) +} + +function LevelButton() { + return ( +
+ + Lv.1 + x1 +
+ ) +} diff --git a/apps/renderer/src/modules/feed-column/header.tsx b/apps/renderer/src/modules/feed-column/header.tsx index 2d63c9242..c2cf72002 100644 --- a/apps/renderer/src/modules/feed-column/header.tsx +++ b/apps/renderer/src/modules/feed-column/header.tsx @@ -60,7 +60,7 @@ export const FeedColumnHeader = memo(() => {
)} -
+
@@ -89,6 +89,9 @@ const LayoutActionButton = () => { }, [feedColumnShow]) const t = useI18n() + + if (feedColumnShow) return null + return ( \ No newline at end of file From c881d799e27b4934144b25f50a493f96838003d5 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 10 Oct 2024 09:45:32 +0800 Subject: [PATCH 04/49] feat: delete list --- .../src/modules/settings/tabs/lists/index.tsx | 18 +++++++++++ apps/renderer/src/store/list/hooks.ts | 31 ++++++++++++++++++- apps/renderer/src/store/list/store.ts | 9 ++++++ locales/common/en.json | 1 + locales/settings/en.json | 2 ++ 5 files changed, 60 insertions(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/settings/tabs/lists/index.tsx b/apps/renderer/src/modules/settings/tabs/lists/index.tsx index 3d560a171..00da05db1 100644 --- a/apps/renderer/src/modules/settings/tabs/lists/index.tsx +++ b/apps/renderer/src/modules/settings/tabs/lists/index.tsx @@ -20,6 +20,7 @@ import { useAuthQuery, useI18n } from "~/hooks/common" import { cn } from "~/lib/utils" import { Balance } from "~/modules/wallet/balance" import { Queries } from "~/queries" +import { useDeleteFeedList } from "~/store/list" import { ListCreationModalContent, ListFeedsModalContent } from "./modals" @@ -29,6 +30,8 @@ export const SettingLists = () => { const { present } = useModalStack() + const deleteFeedList = useDeleteFeedList() + return (
@@ -140,6 +143,21 @@ export const SettingLists = () => { {t.common("words.edit")} + + + + + + {t.common("words.delete")} + + ))} diff --git a/apps/renderer/src/store/list/hooks.ts b/apps/renderer/src/store/list/hooks.ts index 05e75e90d..e9bffbe44 100644 --- a/apps/renderer/src/store/list/hooks.ts +++ b/apps/renderer/src/store/list/hooks.ts @@ -1,7 +1,13 @@ +import { useMutation } from "@tanstack/react-query" +import { useTranslation } from "react-i18next" +import { toast } from "sonner" + +import { apiClient } from "~/lib/api-fetch" import type { FeedViewType } from "~/lib/enum" import type { ListModel } from "~/models" +import { Queries } from "~/queries" -import { useListStore } from "./store" +import { listActions, useListStore } from "./store" export const useListById = (listId: Nullable): ListModel | null => useListStore((state) => (listId ? state.lists[listId] : null)) @@ -9,3 +15,26 @@ export const useListById = (listId: Nullable): ListModel | null => export const useListByView = (view: FeedViewType) => { return useListStore((state) => Object.values(state.lists).filter((list) => list.view === view)) } + +export const useDeleteFeedList = (options?: { onSuccess: () => void; onError: () => void }) => { + const { t } = useTranslation("settings") + return useMutation({ + mutationFn: async (payload: { listId: string }) => { + listActions.deleteList(payload.listId) + await apiClient.lists.$delete({ + json: { + listId: payload.listId, + }, + }) + }, + onSuccess: () => { + toast.success(t("lists.delete.success")) + Queries.lists.list().invalidate() + options?.onSuccess?.() + }, + async onError() { + toast.error(t("lists.delete.error")) + options?.onError?.() + }, + }) +} diff --git a/apps/renderer/src/store/list/store.ts b/apps/renderer/src/store/list/store.ts index 8ead48f13..f0f65d20e 100644 --- a/apps/renderer/src/store/list/store.ts +++ b/apps/renderer/src/store/list/store.ts @@ -73,6 +73,15 @@ class ListActionStatic { }) } + async deleteList(listId: string) { + set((state) => { + delete state.lists[listId] + return state + }) + + runTransactionInScope(() => ListService.bulkDelete([listId])) + } + async fetchListById(id: string) { const res = await apiClient.lists.$get({ query: { listId: id } }) diff --git a/locales/common/en.json b/locales/common/en.json index 57f3c1a34..c0653ab7b 100644 --- a/locales/common/en.json +++ b/locales/common/en.json @@ -16,6 +16,7 @@ "words.back": "Back", "words.copy": "Copy", "words.create": "Create", + "words.delete": "Delete", "words.edit": "Edit", "words.entry": "Entry", "words.id": "ID", diff --git a/locales/settings/en.json b/locales/settings/en.json index 2116feead..576d8d58f 100644 --- a/locales/settings/en.json +++ b/locales/settings/en.json @@ -159,6 +159,8 @@ "lists.create": "Create New List", "lists.created.error": "Failed to create list.", "lists.created.success": "List created successfully!", + "lists.delete.error": "Failed to delete list.", + "lists.delete.success": "List deleted successfully!", "lists.description": "Description", "lists.earnings": "Earn", "lists.edit.error": "Failed to edit list.", From b5cfd8255b3e2610e8bfe2fc110241946f895d3d Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 10 Oct 2024 10:15:07 +0800 Subject: [PATCH 05/49] chore: fix test --- .../src/modules/settings/tabs/lists/index.tsx | 23 ++++++++++++-- apps/renderer/src/store/list/hooks.ts | 31 +------------------ 2 files changed, 22 insertions(+), 32 deletions(-) diff --git a/apps/renderer/src/modules/settings/tabs/lists/index.tsx b/apps/renderer/src/modules/settings/tabs/lists/index.tsx index 00da05db1..115c6765d 100644 --- a/apps/renderer/src/modules/settings/tabs/lists/index.tsx +++ b/apps/renderer/src/modules/settings/tabs/lists/index.tsx @@ -1,4 +1,6 @@ import { WEB_URL } from "@follow/shared/constants" +import { useMutation } from "@tanstack/react-query" +import { toast } from "sonner" import { Avatar, AvatarImage } from "~/components/ui/avatar" import { Button } from "~/components/ui/button" @@ -17,10 +19,11 @@ import { import { Tooltip, TooltipContent, TooltipPortal, TooltipTrigger } from "~/components/ui/tooltip" import { views } from "~/constants" import { useAuthQuery, useI18n } from "~/hooks/common" +import { apiClient } from "~/lib/api-fetch" import { cn } from "~/lib/utils" import { Balance } from "~/modules/wallet/balance" import { Queries } from "~/queries" -import { useDeleteFeedList } from "~/store/list" +import { listActions } from "~/store/list" import { ListCreationModalContent, ListFeedsModalContent } from "./modals" @@ -30,7 +33,23 @@ export const SettingLists = () => { const { present } = useModalStack() - const deleteFeedList = useDeleteFeedList() + const deleteFeedList = useMutation({ + mutationFn: async (payload: { listId: string }) => { + listActions.deleteList(payload.listId) + await apiClient.lists.$delete({ + json: { + listId: payload.listId, + }, + }) + }, + onSuccess: () => { + toast.success(t.settings("lists.delete.success")) + Queries.lists.list().invalidate() + }, + async onError() { + toast.error(t.settings("lists.delete.error")) + }, + }) return (
diff --git a/apps/renderer/src/store/list/hooks.ts b/apps/renderer/src/store/list/hooks.ts index e9bffbe44..05e75e90d 100644 --- a/apps/renderer/src/store/list/hooks.ts +++ b/apps/renderer/src/store/list/hooks.ts @@ -1,13 +1,7 @@ -import { useMutation } from "@tanstack/react-query" -import { useTranslation } from "react-i18next" -import { toast } from "sonner" - -import { apiClient } from "~/lib/api-fetch" import type { FeedViewType } from "~/lib/enum" import type { ListModel } from "~/models" -import { Queries } from "~/queries" -import { listActions, useListStore } from "./store" +import { useListStore } from "./store" export const useListById = (listId: Nullable): ListModel | null => useListStore((state) => (listId ? state.lists[listId] : null)) @@ -15,26 +9,3 @@ export const useListById = (listId: Nullable): ListModel | null => export const useListByView = (view: FeedViewType) => { return useListStore((state) => Object.values(state.lists).filter((list) => list.view === view)) } - -export const useDeleteFeedList = (options?: { onSuccess: () => void; onError: () => void }) => { - const { t } = useTranslation("settings") - return useMutation({ - mutationFn: async (payload: { listId: string }) => { - listActions.deleteList(payload.listId) - await apiClient.lists.$delete({ - json: { - listId: payload.listId, - }, - }) - }, - onSuccess: () => { - toast.success(t("lists.delete.success")) - Queries.lists.list().invalidate() - options?.onSuccess?.() - }, - async onError() { - toast.error(t("lists.delete.error")) - options?.onError?.() - }, - }) -} From 2663c1181c75855fd950a09c062735c519e6779e Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 10 Oct 2024 10:51:25 +0800 Subject: [PATCH 06/49] chore: enable eslint rules require type check --- .vscode/settings.json | 6 ++++- .../ui/dropdown-menu/dropdown-menu.tsx | 4 ++-- .../src/components/ui/markdown/Markdown.tsx | 2 +- .../src/components/ui/modal/stacked/modal.tsx | 2 +- apps/renderer/src/lib/dev.tsx | 2 +- .../src/providers/context-menu-provider.tsx | 2 +- eslint.config.mjs | 24 +++++++++++++++++-- 7 files changed, 33 insertions(+), 9 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index e6618b051..e7f25f883 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -53,7 +53,11 @@ { "rule": "unused-imports/no-unused-imports", "severity": "off" - } + }, + { "rule": "@typescript-eslint/require-await", "severity": "info" }, + { "rule": "@typescript-eslint/await-thenable", "severity": "info" }, + { "rule": "@typescript-eslint/no-floating-promises", "severity": "info" }, + { "rule": "@typescript-eslint/no-misused-promises", "severity": "info" } ], "cSpell.words": ["Hydable", "rsshub", "Русский"], "editor.foldingImportsByDefault": true, diff --git a/apps/renderer/src/components/ui/dropdown-menu/dropdown-menu.tsx b/apps/renderer/src/components/ui/dropdown-menu/dropdown-menu.tsx index f715d44b9..7ae426c02 100644 --- a/apps/renderer/src/components/ui/dropdown-menu/dropdown-menu.tsx +++ b/apps/renderer/src/components/ui/dropdown-menu/dropdown-menu.tsx @@ -87,12 +87,12 @@ const DropdownMenuItem = React.forwardRef< )} {...props} > - {props.icon && ( + {!!props.icon && ( {props.icon} )} {props.children} {/* Justify Fill */} - {props.icon && } + {!!props.icon && } )) DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName diff --git a/apps/renderer/src/components/ui/markdown/Markdown.tsx b/apps/renderer/src/components/ui/markdown/Markdown.tsx index 16c23cf79..f3135ef5a 100644 --- a/apps/renderer/src/components/ui/markdown/Markdown.tsx +++ b/apps/renderer/src/components/ui/markdown/Markdown.tsx @@ -90,7 +90,7 @@ const HTMLImpl = ( {createElement(as, { ...rest, ref: setRefElement }, markdownElement)} - {accessory && {accessory}} + {!!accessory && {accessory}} ) } diff --git a/apps/renderer/src/components/ui/modal/stacked/modal.tsx b/apps/renderer/src/components/ui/modal/stacked/modal.tsx index 5cac9b019..fcdd01cdb 100644 --- a/apps/renderer/src/components/ui/modal/stacked/modal.tsx +++ b/apps/renderer/src/components/ui/modal/stacked/modal.tsx @@ -375,7 +375,7 @@ export const ModalInternal = memo( onPointerDown={relocateModal} > - {icon && {icon}} + {!!icon && {icon}} {title} diff --git a/apps/renderer/src/lib/dev.tsx b/apps/renderer/src/lib/dev.tsx index 1f9335378..945edd101 100644 --- a/apps/renderer/src/lib/dev.tsx +++ b/apps/renderer/src/lib/dev.tsx @@ -6,7 +6,7 @@ export const attachOpenInEditor = (stack: string) => { if (!line.includes("at ")) { return line } - const match = line.match(/(http:\/\/localhost:\d+\/[^:]+):(\d+):(\d+)/) + const match = line.match(/http:\/\/localhost:\d+\/[^:]+:\d+:\d+/) if (match) { const [o] = match diff --git a/apps/renderer/src/providers/context-menu-provider.tsx b/apps/renderer/src/providers/context-menu-provider.tsx index 12bf1747f..3af17d8ea 100644 --- a/apps/renderer/src/providers/context-menu-provider.tsx +++ b/apps/renderer/src/providers/context-menu-provider.tsx @@ -136,7 +136,7 @@ const Item = memo(({ item }: { item: NativeMenuItem }) => { className="flex items-center gap-2" checked={item.checked} > - {item.icon && ( + {!!item.icon && ( {item.icon} )} {item.label} diff --git a/eslint.config.mjs b/eslint.config.mjs index b09b7d814..e6eb5022e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,5 +1,5 @@ // @ts-check -import { defineConfig } from "eslint-config-hyoban" +import { defineConfig, GLOB_TS_SRC } from "eslint-config-hyoban" import checkI18nJson from "./plugins/eslint/eslint-check-i18n-json.js" import noDebug from "./plugins/eslint/eslint-no-debug.js" @@ -16,6 +16,27 @@ export default defineConfig( "resources/**", ], preferESM: false, + // @ts-expect-error TODO: fix this in eslint-config-hyoban + projectService: { + allowDefaultProject: ["apps/main/preload/index.d.ts"], + defaultProject: "tsconfig.json", + }, + typeChecked: "essential", + }, + { + files: GLOB_TS_SRC, + rules: { + "require-await": "off", + "@typescript-eslint/require-await": "warn", + "@typescript-eslint/await-thenable": "warn", + "@typescript-eslint/no-floating-promises": "warn", + "@typescript-eslint/no-misused-promises": [ + "warn", + { + checksVoidReturn: { arguments: false, attributes: false }, + }, + ], + }, }, { settings: { @@ -51,7 +72,6 @@ export default defineConfig( "@stylistic/jsx-self-closing-comp": "error", }, }, - // @ts-expect-error { files: ["locales/**/*.json"], plugins: { From ac09c711d94cd966b5c9839276d11b2e2235e2ce Mon Sep 17 00:00:00 2001 From: Cesaryuan <35998162+cesaryuan@users.noreply.github.com> Date: Thu, 10 Oct 2024 10:54:03 +0800 Subject: [PATCH 07/49] fix: devtools font not work due to comment (#846) --- apps/main/src/window.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/main/src/window.ts b/apps/main/src/window.ts index 6b7b83f3a..128433587 100644 --- a/apps/main/src/window.ts +++ b/apps/main/src/window.ts @@ -141,11 +141,13 @@ export function createWindow( // Make it consistent with Chrome on Windows, instead of SimSun. // ref: [[Feature Request]: Add possibility to change DevTools font · Issue #42055 · electron/electron](https://github.com/electron/electron/issues/42055) window.webContents.on("devtools-opened", () => { + // source-code-font: For code such as Elements panel + // monospace-font: For sidebar such as Event Listener Panel const css = ` :root { - --source-code-font-family: consolas; // For code such as Elements panel + --source-code-font-family: consolas; --source-code-font-size: 13px; - --monospace-font-family: consolas; // For sidebar such as Event Listener Panel + --monospace-font-family: consolas; --monospace-font-size: 13px; }` window.webContents.devToolsWebContents?.executeJavaScript(` From 22a72ac15b8aa7ae5707f68051951ea5707a4ae9 Mon Sep 17 00:00:00 2001 From: "Kaffi Y." Date: Thu, 10 Oct 2024 11:04:41 +0800 Subject: [PATCH 08/49] fix: navigating from a tts player doesn't work properly (#828) Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com> --- apps/renderer/src/atoms/player.ts | 6 +++ .../src/hooks/biz/useNavigateEntry.ts | 2 +- .../src/modules/feed-column/corner-player.tsx | 45 +++++++++++++++---- apps/renderer/src/store/entry/types.ts | 1 + 4 files changed, 44 insertions(+), 10 deletions(-) diff --git a/apps/renderer/src/atoms/player.ts b/apps/renderer/src/atoms/player.ts index cebc4a693..f09f4f4bc 100644 --- a/apps/renderer/src/atoms/player.ts +++ b/apps/renderer/src/atoms/player.ts @@ -2,6 +2,7 @@ import { noop } from "foxact/noop" import { atomWithStorage, createJSONStorage } from "jotai/utils" import type { SyncStorage } from "jotai/vanilla/utils/atomWithStorage" +import { getRouteParams } from "~/hooks/biz/useRouteParams" import { createAtomHooks } from "~/lib/jotai" import { getStorageNS } from "~/lib/ns" @@ -16,6 +17,8 @@ type PlayerAtomValue = { isMute?: boolean volume?: number playbackRate?: number + /** the listId from the route to indicate that the audio is triggered from a list */ + listId?: string } const playerInitialValue: PlayerAtomValue = { @@ -66,11 +69,14 @@ export const AudioPlayer = { return } + const routeParams = getRouteParams() + setAudioPlayerAtomValue({ ...curV, ...v, status: "loading", show: true, + listId: routeParams.listId, }) if (this.audio.src !== v.src) { diff --git a/apps/renderer/src/hooks/biz/useNavigateEntry.ts b/apps/renderer/src/hooks/biz/useNavigateEntry.ts index dc9dffc67..48179805e 100644 --- a/apps/renderer/src/hooks/biz/useNavigateEntry.ts +++ b/apps/renderer/src/hooks/biz/useNavigateEntry.ts @@ -12,7 +12,7 @@ import { } from "~/constants" import { FeedViewType } from "~/lib/enum" -type NavigateEntryOptions = Partial<{ +export type NavigateEntryOptions = Partial<{ feedId: string | null entryId: string | null view: FeedViewType diff --git a/apps/renderer/src/modules/feed-column/corner-player.tsx b/apps/renderer/src/modules/feed-column/corner-player.tsx index c272e59c6..50838fa59 100644 --- a/apps/renderer/src/modules/feed-column/corner-player.tsx +++ b/apps/renderer/src/modules/feed-column/corner-player.tsx @@ -2,7 +2,7 @@ import * as Slider from "@radix-ui/react-slider" import type { TooltipContentProps } from "@radix-ui/react-tooltip" import dayjs from "dayjs" import { AnimatePresence, m } from "framer-motion" -import { useEffect, useState } from "react" +import { useEffect, useMemo, useState } from "react" import Marquee from "react-fast-marquee" import { useHotkeys } from "react-hotkeys-hook" import { useTranslation } from "react-i18next" @@ -18,11 +18,13 @@ import { microReboundPreset } from "~/components/ui/constants/spring" import { VolumeSlider } from "~/components/ui/media/VolumeSlider" import { Tooltip, TooltipContent, TooltipTrigger } from "~/components/ui/tooltip" import { HotKeyScopeMap } from "~/constants" +import type { NavigateEntryOptions } from "~/hooks/biz/useNavigateEntry" import { useNavigateEntry } from "~/hooks/biz/useNavigateEntry" import { FeedViewType } from "~/lib/enum" import { cn } from "~/lib/utils" import { useEntry } from "~/store/entry" import { useFeedById } from "~/store/feed" +import { useListById } from "~/store/list" const handleClickPlay = () => { AudioPlayer.togglePlayAndPause() @@ -97,11 +99,13 @@ const CornerPlayerImpl = () => { const entryId = useAudioPlayerAtomSelector((v) => v.entryId) const status = useAudioPlayerAtomSelector((v) => v.status) const isMute = useAudioPlayerAtomSelector((v) => v.isMute) + const listId = useAudioPlayerAtomSelector((v) => v.listId) const playerValue = { entryId, status, isMute } const entry = useEntry(playerValue.entryId) const feed = useFeedById(entry?.feedId) + const list = useListById(listId) useHotkeys("space", handleClickPlay, { preventDefault: true, @@ -120,6 +124,31 @@ const CornerPlayerImpl = () => { const navigateToEntry = useNavigateEntry() usePlayerTracker() + const navigateOptions = useMemo(() => { + if (!entry) return null + const options: NavigateEntryOptions = { + entryId: entry.entries.id, + } + if (feed?.type === "inbox") { + Object.assign(options, { + inboxId: feed.id, + view: FeedViewType.Articles, + }) + } else if (list) { + Object.assign(options, { + listId: list.id, + view: list.view, + }) + } else if (feed) { + Object.assign(options, { + feedId: feed.id, + view: entry.view ?? FeedViewType.Audios, + }) + } else { + return null + } + return options + }, [entry, feed, list]) if (!entry || !feed) return null return ( @@ -178,13 +207,11 @@ const CornerPlayerImpl = () => { /> - navigateToEntry({ - entryId: entry.entries.id, - feedId: feed.id, - view: FeedViewType.Audios, - }) - } + onClick={() => { + if (navigateOptions) { + navigateToEntry(navigateOptions) + } + }} label={t("player.open_entry")} /> - + {label} diff --git a/apps/renderer/src/store/entry/types.ts b/apps/renderer/src/store/entry/types.ts index 892905db1..64ddc9926 100644 --- a/apps/renderer/src/store/entry/types.ts +++ b/apps/renderer/src/store/entry/types.ts @@ -9,6 +9,7 @@ type EntriesIdTable = Record export type FlatEntryModel = Omit & { feedId: FeedId + view?: number } export interface EntryState { /** From 74d801292e71ebc91b3513238f6a06321bbd8d0b Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:06:32 +0800 Subject: [PATCH 09/49] ci: use lts for lint --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4dd340684..084484a9e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [lts/*] steps: - name: Checkout code uses: actions/checkout@v4 From 9230cf71752432ab2d411ae2a83400c37c2a5f2a Mon Sep 17 00:00:00 2001 From: Jerry Wong Date: Thu, 10 Oct 2024 11:17:48 +0800 Subject: [PATCH 10/49] fix: update entry action notifications and translations (#836) --- apps/renderer/src/hooks/biz/useEntryActions.tsx | 4 ++-- locales/app/ar-DZ.json | 1 - locales/app/ar-IQ.json | 1 - locales/app/ar-KW.json | 1 - locales/app/ar-MA.json | 1 - locales/app/ar-SA.json | 1 - locales/app/ar-TN.json | 1 - locales/app/de.json | 1 - locales/app/en.json | 6 +++--- locales/app/fi.json | 1 - locales/app/fr.json | 1 - locales/app/it.json | 1 - locales/app/ja.json | 1 - locales/app/ko.json | 1 - locales/app/pt.json | 1 - locales/app/ru.json | 1 - locales/app/tr.json | 1 - locales/app/zh-CN.json | 10 ++++++++-- locales/app/zh-HK.json | 10 +++++++++- locales/app/zh-TW.json | 10 +++++++++- locales/common/zh-TW.json | 6 +++--- locales/settings/zh-CN.json | 3 +++ locales/settings/zh-HK.json | 3 +++ locales/settings/zh-TW.json | 3 +++ locales/shortcuts/en.json | 1 + locales/shortcuts/zh-CN.json | 2 ++ locales/shortcuts/zh-HK.json | 2 ++ locales/shortcuts/zh-TW.json | 2 ++ 28 files changed, 50 insertions(+), 27 deletions(-) diff --git a/apps/renderer/src/hooks/biz/useEntryActions.tsx b/apps/renderer/src/hooks/biz/useEntryActions.tsx index e63d62d55..c093b5cc9 100644 --- a/apps/renderer/src/hooks/biz/useEntryActions.tsx +++ b/apps/renderer/src/hooks/biz/useEntryActions.tsx @@ -355,7 +355,7 @@ export const useEntryActions = ({ onClick: () => { if (!populatedEntry.entries.url) return navigator.clipboard.writeText(populatedEntry.entries.url) - toast(t("entry_actions.link_copied"), { + toast(t("entry_actions.copied_notify", { which: t("words.link") }), { duration: 1000, }) }, @@ -369,7 +369,7 @@ export const useEntryActions = ({ onClick: () => { if (!populatedEntry.entries.title) return navigator.clipboard.writeText(populatedEntry.entries.title) - toast(t("entry_actions.title_copied"), { + toast(t("entry_actions.copied_notify", { which: t("words.title") }), { duration: 1000, }) }, diff --git a/locales/app/ar-DZ.json b/locales/app/ar-DZ.json index 3115b064d..905440e25 100644 --- a/locales/app/ar-DZ.json +++ b/locales/app/ar-DZ.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "فشل في الحفظ إلى Eagle.", "entry_actions.failed_to_save_to_instapaper": "فشل في الحفظ إلى Instapaper.", "entry_actions.failed_to_save_to_readwise": "فشل في الحفظ إلى Readwise.", - "entry_actions.link_copied": "تم نسخ الرابط إلى الحافظة.", "entry_actions.mark_as_read": "تحديد كمقروء", "entry_actions.mark_as_unread": "تحديد كغير مقروء", "entry_actions.open_in_browser": "فتح في المتصفح", diff --git a/locales/app/ar-IQ.json b/locales/app/ar-IQ.json index 08f346e2b..ff40bd383 100644 --- a/locales/app/ar-IQ.json +++ b/locales/app/ar-IQ.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "فشل في الحفظ إلى Eagle.", "entry_actions.failed_to_save_to_instapaper": "فشل في الحفظ إلى Instapaper.", "entry_actions.failed_to_save_to_readwise": "فشل في الحفظ إلى Readwise.", - "entry_actions.link_copied": "تم نسخ الرابط إلى الحافظة.", "entry_actions.mark_as_read": "تحديد كمقروء", "entry_actions.mark_as_unread": "تحديد كغير مقروء", "entry_actions.open_in_browser": "فتح في المتصفح", diff --git a/locales/app/ar-KW.json b/locales/app/ar-KW.json index 39e4a857c..aab60292e 100644 --- a/locales/app/ar-KW.json +++ b/locales/app/ar-KW.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "فشل في الحفظ إلى Eagle.", "entry_actions.failed_to_save_to_instapaper": "فشل في الحفظ إلى Instapaper.", "entry_actions.failed_to_save_to_readwise": "فشل في الحفظ إلى Readwise.", - "entry_actions.link_copied": "تم نسخ الرابط إلى الحافظة.", "entry_actions.mark_as_read": "وضع علامة كمقروء", "entry_actions.mark_as_unread": "وضع علامة كغير مقروء", "entry_actions.open_in_browser": "فتح في المتصفح", diff --git a/locales/app/ar-MA.json b/locales/app/ar-MA.json index 7b9a03d9b..070752538 100644 --- a/locales/app/ar-MA.json +++ b/locales/app/ar-MA.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "فشل الحفظ إلى Eagle.", "entry_actions.failed_to_save_to_instapaper": "فشل الحفظ إلى Instapaper.", "entry_actions.failed_to_save_to_readwise": "فشل الحفظ إلى Readwise.", - "entry_actions.link_copied": "تم نسخ الرابط إلى الحافظة.", "entry_actions.mark_as_read": "وضع علامة كمقروء", "entry_actions.mark_as_unread": "وضع علامة كغير مقروء", "entry_actions.open_in_browser": "فتح في المتصفح", diff --git a/locales/app/ar-SA.json b/locales/app/ar-SA.json index 2f0d6cde5..a416a4c62 100644 --- a/locales/app/ar-SA.json +++ b/locales/app/ar-SA.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "فشل في الحفظ إلى Eagle.", "entry_actions.failed_to_save_to_instapaper": "فشل في الحفظ إلى Instapaper.", "entry_actions.failed_to_save_to_readwise": "فشل في الحفظ إلى Readwise.", - "entry_actions.link_copied": "تم نسخ الرابط إلى الحافظة.", "entry_actions.mark_as_read": "تحديد كمقروء", "entry_actions.mark_as_unread": "تحديد كغير مقروء", "entry_actions.open_in_browser": "فتح في المتصفح", diff --git a/locales/app/ar-TN.json b/locales/app/ar-TN.json index 2f7eb6d1b..88b17da70 100644 --- a/locales/app/ar-TN.json +++ b/locales/app/ar-TN.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "فشل في الحفظ إلى Eagle.", "entry_actions.failed_to_save_to_instapaper": "فشل في الحفظ إلى Instapaper.", "entry_actions.failed_to_save_to_readwise": "فشل في الحفظ إلى Readwise.", - "entry_actions.link_copied": "تم نسخ الرابط إلى الحافظة.", "entry_actions.mark_as_read": "وضع علامة كمقروء", "entry_actions.mark_as_unread": "وضع علامة كغير مقروء", "entry_actions.open_in_browser": "فتح في المتصفح", diff --git a/locales/app/de.json b/locales/app/de.json index 10f310ef2..83c215425 100644 --- a/locales/app/de.json +++ b/locales/app/de.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "Speichern in Eagle fehlgeschlagen.", "entry_actions.failed_to_save_to_instapaper": "Speichern in Instapaper fehlgeschlagen.", "entry_actions.failed_to_save_to_readwise": "Speichern in Readwise fehlgeschlagen.", - "entry_actions.link_copied": "Link in die Zwischenablage kopiert.", "entry_actions.mark_as_read": "Als gelesen markieren", "entry_actions.mark_as_unread": "Als ungelesen markieren", "entry_actions.open_in_browser": "Im Browser öffnen", diff --git a/locales/app/en.json b/locales/app/en.json index 606afbd7a..59a7aaae5 100644 --- a/locales/app/en.json +++ b/locales/app/en.json @@ -51,12 +51,12 @@ "discover.target.label": "Search for", "discover.target.lists": "Lists", "early_access": "Early Access", + "entry_actions.copied_notify": "{{which}} copied to clipboard.", "entry_actions.copy_link": "Copy link", "entry_actions.copy_title": "Copy title", "entry_actions.failed_to_save_to_eagle": "Failed to save to Eagle.", "entry_actions.failed_to_save_to_instapaper": "Failed to save to Instapaper.", "entry_actions.failed_to_save_to_readwise": "Failed to save to Readwise.", - "entry_actions.link_copied": "Link copied to clipboard.", "entry_actions.mark_as_read": "Mark as read", "entry_actions.mark_as_unread": "Mark as unread", "entry_actions.open_in_browser": "Open in {{which}}", @@ -71,7 +71,6 @@ "entry_actions.star": "Star", "entry_actions.starred": "Starred.", "entry_actions.tip": "Tip", - "entry_actions.title_copied": "Title copied to clipboard.", "entry_actions.unstar": "Unstar", "entry_actions.unstarred": "Unstarred.", "entry_actions.view_source_content": "View source content", @@ -234,7 +233,6 @@ "sync_indicator.disabled": "Due to security reasons, sync is disabled.", "sync_indicator.offline": "Offline", "sync_indicator.synced": "Synced with server", - "test": "Mark as readdddd", "tip_modal.amount": "Amount", "tip_modal.claim_feed": "Claim this feed", "tip_modal.create_wallet": "Create For Free", @@ -273,6 +271,7 @@ "words.inbox": "Inbox", "words.items": "Items", "words.language": "Language", + "words.link": "Link", "words.lists": "Lists", "words.load_archived_entries": "Load archived entries", "words.login": "Login", @@ -284,6 +283,7 @@ "words.rsshub": "RSSHub", "words.search": "Search", "words.starred": "Starred", + "words.title": "Title", "words.trending": "Trending", "words.undo": "Undo", "words.unread": "Unread", diff --git a/locales/app/fi.json b/locales/app/fi.json index 66f4639fc..069dd2564 100644 --- a/locales/app/fi.json +++ b/locales/app/fi.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "Tallennus Eagleen epäonnistui.", "entry_actions.failed_to_save_to_instapaper": "Tallennus Instapaperiin epäonnistui.", "entry_actions.failed_to_save_to_readwise": "Tallennus Readwiseen epäonnistui.", - "entry_actions.link_copied": "Linkki kopioitu leikepöydälle.", "entry_actions.mark_as_read": "Merkitse luetuksi", "entry_actions.mark_as_unread": "Merkitse lukemattomaksi", "entry_actions.open_in_browser": "Avaa selaimessa", diff --git a/locales/app/fr.json b/locales/app/fr.json index c27c465af..473efb1e3 100644 --- a/locales/app/fr.json +++ b/locales/app/fr.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "Échec de l'enregistrement sur Eagle.", "entry_actions.failed_to_save_to_instapaper": "Échec de l'enregistrement sur Instapaper.", "entry_actions.failed_to_save_to_readwise": "Échec de l'enregistrement sur Readwise.", - "entry_actions.link_copied": "Lien copié dans le presse-papiers.", "entry_actions.mark_as_read": "Marquer comme lu", "entry_actions.mark_as_unread": "Marquer comme non lu", "entry_actions.open_in_browser": "Ouvrir dans le navigateur", diff --git a/locales/app/it.json b/locales/app/it.json index 64b921cb9..314b0c10b 100644 --- a/locales/app/it.json +++ b/locales/app/it.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "Salvataggio su Eagle non riuscito.", "entry_actions.failed_to_save_to_instapaper": "Salvataggio su Instapaper non riuscito.", "entry_actions.failed_to_save_to_readwise": "Salvataggio su Readwise non riuscito.", - "entry_actions.link_copied": "Link copiato negli appunti.", "entry_actions.mark_as_read": "Segna come letto", "entry_actions.mark_as_unread": "Segna come non letto", "entry_actions.open_in_browser": "Apri nel browser", diff --git a/locales/app/ja.json b/locales/app/ja.json index 750d228df..8ef02f3a2 100644 --- a/locales/app/ja.json +++ b/locales/app/ja.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "Eagle への保存に失敗しました。", "entry_actions.failed_to_save_to_instapaper": "Instapaper への保存に失敗しました。", "entry_actions.failed_to_save_to_readwise": "Readwise への保存に失敗しました。", - "entry_actions.link_copied": "リンクがクリップボードにコピーされました。", "entry_actions.mark_as_read": "既読にする", "entry_actions.mark_as_unread": "未読にする", "entry_actions.open_in_browser": "ブラウザで開く", diff --git a/locales/app/ko.json b/locales/app/ko.json index 8ee821493..f37581a52 100644 --- a/locales/app/ko.json +++ b/locales/app/ko.json @@ -32,7 +32,6 @@ "entry_actions.failed_to_save_to_eagle": "Eagle 에 저장하지 못했습니다.", "entry_actions.failed_to_save_to_instapaper": "Instapaper 에 저장하지 못했습니다.", "entry_actions.failed_to_save_to_readwise": "Readwise 에 저장하지 못했습니다.", - "entry_actions.link_copied": "링크가 클립보드에 복사되었습니다.", "entry_actions.mark_as_read": "읽음으로 표시", "entry_actions.mark_as_unread": "읽지 않음으로 표시", "entry_actions.open_in_browser": "브라우저에서 열기", diff --git a/locales/app/pt.json b/locales/app/pt.json index 4dcde5701..1b2ab85c6 100644 --- a/locales/app/pt.json +++ b/locales/app/pt.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "Eagle への保存に失敗しました。", "entry_actions.failed_to_save_to_instapaper": "Instapaper への保存に失敗しました。", "entry_actions.failed_to_save_to_readwise": "Readwise への保存に失敗しました。", - "entry_actions.link_copied": "リンクがクリップボードにコピーされました。", "entry_actions.mark_as_read": "既読にする", "entry_actions.mark_as_unread": "未読にする", "entry_actions.open_in_browser": "ブラウザで開く", diff --git a/locales/app/ru.json b/locales/app/ru.json index e0faa5f63..c839fc092 100644 --- a/locales/app/ru.json +++ b/locales/app/ru.json @@ -19,7 +19,6 @@ "entry_actions.failed_to_save_to_eagle": "Не удалось сохранить в Eagle.", "entry_actions.failed_to_save_to_instapaper": "Не удалось сохранить в Instapaper.", "entry_actions.failed_to_save_to_readwise": "Не удалось сохранить в Readwise.", - "entry_actions.link_copied": "Ссылка скопирована в буфер обмена.", "entry_actions.mark_as_read": "Отметить как прочитанное", "entry_actions.mark_as_unread": "Отметить как непрочитанное", "entry_actions.open_in_browser": "Открыть в браузере", diff --git a/locales/app/tr.json b/locales/app/tr.json index e611f973e..a653e99d0 100644 --- a/locales/app/tr.json +++ b/locales/app/tr.json @@ -32,7 +32,6 @@ "entry_actions.failed_to_save_to_eagle": "Eagle'a kaydetme başarısız oldu.", "entry_actions.failed_to_save_to_instapaper": "Instapaper'a kaydetme başarısız oldu.", "entry_actions.failed_to_save_to_readwise": "Readwise'a kaydetme başarısız oldu.", - "entry_actions.link_copied": "Bağlantı panoya kopyalandı.", "entry_actions.mark_as_read": "Okundu olarak işaretle", "entry_actions.mark_as_unread": "Okunmadı olarak işaretle", "entry_actions.open_in_browser": "Tarayıcıda aç", diff --git a/locales/app/zh-CN.json b/locales/app/zh-CN.json index 8ef662829..1c23196e2 100644 --- a/locales/app/zh-CN.json +++ b/locales/app/zh-CN.json @@ -51,12 +51,12 @@ "discover.target.label": "搜索", "discover.target.lists": "列表", "early_access": "预览版本", + "entry_actions.copied_notify": "{{which}}已复制到剪贴板", "entry_actions.copy_link": "复制链接", "entry_actions.copy_title": "复制标题", "entry_actions.failed_to_save_to_eagle": "保存到 Eagle 失败", "entry_actions.failed_to_save_to_instapaper": "保存到 Instapaper 失败", "entry_actions.failed_to_save_to_readwise": "保存到 Readwise 失败", - "entry_actions.link_copied": "链接已复制到剪贴板", "entry_actions.mark_as_read": "标记为已读", "entry_actions.mark_as_unread": "标记为未读", "entry_actions.open_in_browser": "在{{which}}打开", @@ -71,7 +71,6 @@ "entry_actions.star": "收藏", "entry_actions.starred": "已收藏", "entry_actions.tip": "打赏", - "entry_actions.title_copied": "标题已复制到剪贴板", "entry_actions.unstar": "取消收藏", "entry_actions.unstarred": "取消收藏", "entry_actions.view_source_content": "查看原文", @@ -246,6 +245,10 @@ "tip_modal.tip_support": "⭐ 打赏表示支持!", "tip_modal.tip_title": "打赏 Power", "tip_modal.unclaimed_feed": "这个订阅源还没有被认证,收到的 Power 将存放在区块链直到源所有者完成认证", + "trending.entry": "热门条目", + "trending.feed": "热门订阅源", + "trending.list": "热门列表", + "trending.user": "热门用户", "user_button.account": "账号", "user_button.achievement": "成就", "user_button.download_desktop_app": "下载客户端", @@ -268,6 +271,7 @@ "words.inbox": "收件箱", "words.items": "内容", "words.language": "语言", + "words.link": "链接", "words.lists": "列表", "words.load_archived_entries": "加载已归档条目", "words.login": "登录", @@ -279,6 +283,8 @@ "words.rsshub": "RSSHub", "words.search": "搜索", "words.starred": "收藏", + "words.title": "标题", + "words.trending": "热门", "words.undo": "撤销", "words.unread": "未读", "words.user": "用户", diff --git a/locales/app/zh-HK.json b/locales/app/zh-HK.json index 709228c99..a4d0646de 100644 --- a/locales/app/zh-HK.json +++ b/locales/app/zh-HK.json @@ -51,11 +51,12 @@ "discover.target.label": "搜尋", "discover.target.lists": "清單", "early_access": "提前體驗", + "entry_actions.copied_notify": "{{which}}已複製到剪貼板", "entry_actions.copy_link": "複製連結", + "entry_actions.copy_title": "複製標題", "entry_actions.failed_to_save_to_eagle": "無法保存至 Eagle。", "entry_actions.failed_to_save_to_instapaper": "無法保存至 Instapaper。", "entry_actions.failed_to_save_to_readwise": "無法保存至 Readwise。", - "entry_actions.link_copied": "連結已複製到剪貼簿。", "entry_actions.mark_as_read": "標記為已讀", "entry_actions.mark_as_unread": "標記為未讀", "entry_actions.open_in_browser": "在{{which}}中開啟", @@ -244,6 +245,10 @@ "tip_modal.tip_support": "⭐ 贊助以顯示你的支持!", "tip_modal.tip_title": "贊助 Power", "tip_modal.unclaimed_feed": "目前尚未有人認領此訂閱源。收到的 Power 將安全地保留在區塊鏈合約中,直到被認領為止。", + "trending.entry": "熱門條目", + "trending.feed": "熱門資訊", + "trending.list": "熱門清單", + "trending.user": "熱門用戶", "user_button.account": "帳戶", "user_button.achievement": "成就", "user_button.download_desktop_app": "下載桌面應用", @@ -266,6 +271,7 @@ "words.inbox": "收件箱", "words.items": "項目", "words.language": "語言", + "words.link": "連結", "words.lists": "清單", "words.load_archived_entries": "加載已存檔的條目", "words.login": "登入", @@ -277,6 +283,8 @@ "words.rsshub": "RSSHub", "words.search": "搜尋", "words.starred": "收藏", + "words.title": "標題", + "words.trending": "熱門", "words.undo": "撤銷", "words.unread": "未讀", "words.user": "用戶", diff --git a/locales/app/zh-TW.json b/locales/app/zh-TW.json index c290b4572..e7daf2266 100644 --- a/locales/app/zh-TW.json +++ b/locales/app/zh-TW.json @@ -51,11 +51,12 @@ "discover.target.label": "搜尋", "discover.target.lists": "列表", "early_access": "搶先體驗", + "entry_actions.copied_notify": "{{which}}已複製到剪貼簿", "entry_actions.copy_link": "複製連結", + "entry_actions.copy_title": "複製標題", "entry_actions.failed_to_save_to_eagle": "無法儲存到 Eagle。", "entry_actions.failed_to_save_to_instapaper": "無法儲存到 Instapaper。", "entry_actions.failed_to_save_to_readwise": "無法儲存到 Readwise。", - "entry_actions.link_copied": "連結已複製到剪貼簿。", "entry_actions.mark_as_read": "標記為已讀", "entry_actions.mark_as_unread": "標記為未讀", "entry_actions.open_in_browser": "在{{which}}中打開", @@ -244,6 +245,10 @@ "tip_modal.tip_support": "⭐ 贊助以表示你的支持!", "tip_modal.tip_title": "贊助 Power", "tip_modal.unclaimed_feed": "目前尚無人認領此摘要。收到的 Power 將安全地保存在區塊鏈合約中,直到被認領為止。", + "trending.entry": "熱門條目", + "trending.feed": "熱門動態", + "trending.list": "熱門列表", + "trending.user": "熱門用戶", "user_button.account": "帳戶", "user_button.achievement": "成就", "user_button.download_desktop_app": "下載桌面應用程式", @@ -266,6 +271,7 @@ "words.inbox": "收件匣", "words.items": "內容", "words.language": "語言", + "words.link": "連結", "words.lists": "列表", "words.load_archived_entries": "載入已封存項目", "words.login": "登入", @@ -277,6 +283,8 @@ "words.rsshub": "RSSHub", "words.search": "搜尋", "words.starred": "收藏", + "words.title": "標題", + "words.trending": "熱門", "words.undo": "撤銷", "words.unread": "未讀", "words.user": "使用者", diff --git a/locales/common/zh-TW.json b/locales/common/zh-TW.json index c0b754db4..83df8fc51 100644 --- a/locales/common/zh-TW.json +++ b/locales/common/zh-TW.json @@ -20,15 +20,15 @@ "words.entry": "條目", "words.id": "識別碼", "words.items_one": "項目", - "words.items_other": "多個項目", + "words.items_other": "項目", "words.local": "本地", "words.manage": "管理", "words.record": "記錄", "words.record_one": "記錄", - "words.record_other": "多筆記錄", + "words.record_other": "記錄", "words.result": "結果", "words.result_one": "結果", - "words.result_other": "多筆結果", + "words.result_other": "結果", "words.submit": "提交", "words.update": "更新", "words.which.all": "全部" diff --git a/locales/settings/zh-CN.json b/locales/settings/zh-CN.json index 6a6ea6c1e..2af936955 100644 --- a/locales/settings/zh-CN.json +++ b/locales/settings/zh-CN.json @@ -26,6 +26,8 @@ "actions.action_card.from": "从", "actions.action_card.generate_summary": "使用 AI 生成摘要", "actions.action_card.name": "名称", + "actions.action_card.new_entry_notification": "新条目通知", + "actions.action_card.no_translation": "无翻译", "actions.action_card.operation_options.contains": "包含", "actions.action_card.operation_options.does_not_contain": "不包含", "actions.action_card.operation_options.is_equal_to": "等于", @@ -35,6 +37,7 @@ "actions.action_card.operation_options.matches_regex": "匹配正则表达式", "actions.action_card.operator": "运算符", "actions.action_card.rewrite_rules": "重写规则", + "actions.action_card.silence": "静音", "actions.action_card.then_do": "执行动作", "actions.action_card.to": "到", "actions.action_card.translate_into": "翻译成", diff --git a/locales/settings/zh-HK.json b/locales/settings/zh-HK.json index 6d4105e99..61124c83d 100644 --- a/locales/settings/zh-HK.json +++ b/locales/settings/zh-HK.json @@ -26,6 +26,8 @@ "actions.action_card.from": "從", "actions.action_card.generate_summary": "使用 AI 生成摘要", "actions.action_card.name": "名稱", + "actions.action_card.new_entry_notification": "新條目通知", + "actions.action_card.no_translation": "無翻譯", "actions.action_card.operation_options.contains": "包含", "actions.action_card.operation_options.does_not_contain": "不包含", "actions.action_card.operation_options.is_equal_to": "等於", @@ -35,6 +37,7 @@ "actions.action_card.operation_options.matches_regex": "符合正則表達式", "actions.action_card.operator": "運算子", "actions.action_card.rewrite_rules": "改寫規則", + "actions.action_card.silence": "靜音", "actions.action_card.then_do": "然後執行…", "actions.action_card.to": "到", "actions.action_card.translate_into": "翻譯成", diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json index 0561dde31..46685389b 100644 --- a/locales/settings/zh-TW.json +++ b/locales/settings/zh-TW.json @@ -26,6 +26,8 @@ "actions.action_card.from": "從", "actions.action_card.generate_summary": "使用 AI 生成摘要", "actions.action_card.name": "名稱", + "actions.action_card.new_entry_notification": "新條目通知", + "actions.action_card.no_translation": "無翻譯", "actions.action_card.operation_options.contains": "包含", "actions.action_card.operation_options.does_not_contain": "不包含", "actions.action_card.operation_options.is_equal_to": "等於", @@ -35,6 +37,7 @@ "actions.action_card.operation_options.matches_regex": "符合正規表達式", "actions.action_card.operator": "運算子", "actions.action_card.rewrite_rules": "重寫規則", + "actions.action_card.silence": "靜音", "actions.action_card.then_do": "然後執行…", "actions.action_card.to": "到", "actions.action_card.translate_into": "翻譯成", diff --git a/locales/shortcuts/en.json b/locales/shortcuts/en.json index ac2e2fe67..ddf1fa661 100644 --- a/locales/shortcuts/en.json +++ b/locales/shortcuts/en.json @@ -6,6 +6,7 @@ "keys.entries.refetch": "Refetch", "keys.entries.toggleUnreadOnly": "Toggle Unread Only", "keys.entry.copyLink": "Copy Link", + "keys.entry.copyTitle": "Copy Title", "keys.entry.openInBrowser": "Open in Browser", "keys.entry.openInNewTab": "Open in New Tab", "keys.entry.scrollDown": "Scroll Down", diff --git a/locales/shortcuts/zh-CN.json b/locales/shortcuts/zh-CN.json index b032e84b1..9a5b318aa 100644 --- a/locales/shortcuts/zh-CN.json +++ b/locales/shortcuts/zh-CN.json @@ -6,6 +6,7 @@ "keys.entries.refetch": "刷新", "keys.entries.toggleUnreadOnly": "切换仅未读", "keys.entry.copyLink": "复制链接", + "keys.entry.copyTitle": "复制标题", "keys.entry.openInBrowser": "在浏览器打开", "keys.entry.openInNewTab": "在新的标签页打开", "keys.entry.scrollDown": "向下滚动", @@ -20,6 +21,7 @@ "keys.feeds.switchToView": "切换到指定类型", "keys.layout.showShortcuts": "显示/隐藏快捷键", "keys.layout.toggleSidebar": "显示/隐藏侧边栏", + "keys.layout.toggleWideMode": "切换宽屏模式", "keys.type.audio": "音频", "keys.type.entries": "条目列表", "keys.type.entry": "条目", diff --git a/locales/shortcuts/zh-HK.json b/locales/shortcuts/zh-HK.json index e18e2fd4a..55a824792 100644 --- a/locales/shortcuts/zh-HK.json +++ b/locales/shortcuts/zh-HK.json @@ -6,6 +6,7 @@ "keys.entries.refetch": "重新抓取", "keys.entries.toggleUnreadOnly": "切換僅顯示未讀", "keys.entry.copyLink": "複製連結", + "keys.entry.copyTitle": "複製標題", "keys.entry.openInBrowser": "在瀏覽器中開啟", "keys.entry.openInNewTab": "在新分頁中開啟", "keys.entry.scrollDown": "向下滾動", @@ -20,6 +21,7 @@ "keys.feeds.switchToView": "切換到視圖", "keys.layout.showShortcuts": "顯示/隱藏快捷鍵", "keys.layout.toggleSidebar": "顯示/隱藏訂閱側邊欄", + "keys.layout.toggleWideMode": "切換寬屏模式", "keys.type.audio": "音頻", "keys.type.entries": "條目列表", "keys.type.entry": "條目", diff --git a/locales/shortcuts/zh-TW.json b/locales/shortcuts/zh-TW.json index e0f596518..dd5e2baee 100644 --- a/locales/shortcuts/zh-TW.json +++ b/locales/shortcuts/zh-TW.json @@ -6,6 +6,7 @@ "keys.entries.refetch": "重新獲取", "keys.entries.toggleUnreadOnly": "切換僅顯示未讀", "keys.entry.copyLink": "複製連結", + "keys.entry.copyTitle": "複製標題", "keys.entry.openInBrowser": "在瀏覽器中打開", "keys.entry.openInNewTab": "在新分頁中打開", "keys.entry.scrollDown": "向下捲動", @@ -20,6 +21,7 @@ "keys.feeds.switchToView": "切換到視圖", "keys.layout.showShortcuts": "顯示/隱藏快捷鍵", "keys.layout.toggleSidebar": "顯示/隱藏摘要側邊欄", + "keys.layout.toggleWideMode": "切換寬屏模式", "keys.type.audio": "音頻", "keys.type.entries": "條目列表", "keys.type.entry": "條目", From 757f335405a52c6d10545106242e42f6429ec03c Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:27:14 +0800 Subject: [PATCH 11/49] chore: update typescript --- package.json | 4 +- pnpm-lock.yaml | 333 ++++++++++++++++++++++++------------------------- 2 files changed, 162 insertions(+), 175 deletions(-) diff --git a/package.json b/package.json index 600e1b87b..db756fcd6 100644 --- a/package.json +++ b/package.json @@ -94,11 +94,11 @@ "tailwindcss-animate": "1.0.7", "tsup": "8.3.0", "tsx": "4.19.1", - "typescript": "5.4.5", + "typescript": "5.6.2", "vite": "^5.4.8", "vite-plugin-mkcert": "1.17.6", "vite-tsconfig-paths": "5.0.1", - "vitest": "2.0" + "vitest": "2.0.5" }, "pnpm": { "patchedDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9d97fd509..f900bf501 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -97,7 +97,7 @@ importers: version: 2.22.4(encoding@0.1.13) '@t3-oss/env-core': specifier: ^0.11.1 - version: 0.11.1(typescript@5.4.5)(zod@3.23.8) + version: 0.11.1(typescript@5.6.2)(zod@3.23.8) '@tailwindcss/container-queries': specifier: 0.1.1 version: 0.1.1(tailwindcss@3.4.13) @@ -151,7 +151,7 @@ importers: version: 9.11.1(jiti@2.0.0) eslint-config-hyoban: specifier: ^3.1.8 - version: 3.1.8(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0))(tailwindcss@3.4.13)(typescript@5.4.5) + version: 3.1.8(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(tailwindcss@3.4.13)(typescript@5.6.2) fake-indexeddb: specifier: 6.0.0 version: 6.0.0 @@ -196,13 +196,13 @@ importers: version: 1.0.7(tailwindcss@3.4.13) tsup: specifier: 8.3.0 - version: 8.3.0(jiti@2.0.0)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.4.5)(yaml@2.5.1) + version: 8.3.0(jiti@2.0.0)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.2)(yaml@2.5.1) tsx: specifier: 4.19.1 version: 4.19.1 typescript: - specifier: 5.4.5 - version: 5.4.5 + specifier: 5.6.2 + version: 5.6.2 vite: specifier: ^5.4.8 version: 5.4.8(@types/node@22.7.4)(terser@5.34.1) @@ -211,9 +211,9 @@ importers: version: 1.17.6(vite@5.4.8(@types/node@22.7.4)(terser@5.34.1)) vite-tsconfig-paths: specifier: 5.0.1 - version: 5.0.1(typescript@5.4.5)(vite@5.4.8(@types/node@22.7.4)(terser@5.34.1)) + version: 5.0.1(typescript@5.6.2)(vite@5.4.8(@types/node@22.7.4)(terser@5.34.1)) vitest: - specifier: '2.0' + specifier: 2.0.5 version: 2.0.5(@types/node@22.7.4)(terser@5.34.1) apps/main: @@ -8462,11 +8462,6 @@ packages: typescript: optional: true - typescript@5.4.5: - resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} - engines: {node: '>=14.17'} - hasBin: true - typescript@5.6.2: resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==} engines: {node: '>=14.17'} @@ -10386,13 +10381,13 @@ snapshots: '@eslint-community/regexpp@4.11.1': {} - '@eslint-react/ast@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@eslint-react/ast@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.4.5) - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.6.2) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) birecord: 0.1.1 string-ts: 2.2.0 ts-pattern: 5.4.0 @@ -10401,18 +10396,18 @@ snapshots: - supports-color - typescript - '@eslint-react/core@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@eslint-react/core@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) birecord: 0.1.1 short-unique-id: 5.2.0 ts-pattern: 5.4.0 @@ -10421,46 +10416,46 @@ snapshots: - supports-color - typescript - '@eslint-react/eslint-plugin@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@eslint-react/eslint-plugin@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) eslint: 9.11.1(jiti@2.0.0) - eslint-plugin-react-debug: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - eslint-plugin-react-dom: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - eslint-plugin-react-hooks-extra: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - eslint-plugin-react-naming-convention: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - eslint-plugin-react-web-api: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - eslint-plugin-react-x: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + eslint-plugin-react-debug: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-react-dom: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-react-hooks-extra: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-react-naming-convention: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-react-web-api: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-react-x: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - supports-color - '@eslint-react/jsx@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@eslint-react/jsx@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) ts-pattern: 5.4.0 transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/shared@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@eslint-react/shared@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: '@eslint-react/tools': 1.14.2 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) picomatch: 4.0.2 transitivePeerDependencies: - eslint @@ -10469,24 +10464,24 @@ snapshots: '@eslint-react/tools@1.14.2': {} - '@eslint-react/types@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@eslint-react/types@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: '@eslint-react/tools': 1.14.2 '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/var@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@eslint-react/var@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) ts-pattern: 5.4.0 transitivePeerDependencies: - eslint @@ -12305,9 +12300,9 @@ snapshots: '@sindresorhus/is@4.6.0': {} - '@stylistic/eslint-plugin@2.8.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@stylistic/eslint-plugin@2.8.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) eslint: 9.11.1(jiti@2.0.0) eslint-visitor-keys: 4.1.0 espree: 10.2.0 @@ -12325,12 +12320,6 @@ snapshots: dependencies: defer-to-connect: 2.0.1 - '@t3-oss/env-core@0.11.1(typescript@5.4.5)(zod@3.23.8)': - dependencies: - zod: 3.23.8 - optionalDependencies: - typescript: 5.4.5 - '@t3-oss/env-core@0.11.1(typescript@5.6.2)(zod@3.23.8)': dependencies: zod: 3.23.8 @@ -12556,34 +12545,34 @@ snapshots: '@types/node': 22.7.4 optional: true - '@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: '@eslint-community/regexpp': 4.11.1 - '@typescript-eslint/parser': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/parser': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/visitor-keys': 8.7.0 eslint: 9.11.1(jiti@2.0.0) graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.4.5) + ts-api-utils: 1.3.0(typescript@5.6.2) optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: '@typescript-eslint/scope-manager': 8.7.0 '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.4.5) + '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.6.2) '@typescript-eslint/visitor-keys': 8.7.0 debug: 4.3.7 eslint: 9.11.1(jiti@2.0.0) optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - supports-color @@ -12592,21 +12581,21 @@ snapshots: '@typescript-eslint/types': 8.7.0 '@typescript-eslint/visitor-keys': 8.7.0 - '@typescript-eslint/type-utils@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@typescript-eslint/type-utils@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.4.5) - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.6.2) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) debug: 4.3.7 - ts-api-utils: 1.3.0(typescript@5.4.5) + ts-api-utils: 1.3.0(typescript@5.6.2) optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - eslint - supports-color '@typescript-eslint/types@8.7.0': {} - '@typescript-eslint/typescript-estree@8.7.0(typescript@5.4.5)': + '@typescript-eslint/typescript-estree@8.7.0(typescript@5.6.2)': dependencies: '@typescript-eslint/types': 8.7.0 '@typescript-eslint/visitor-keys': 8.7.0 @@ -12615,18 +12604,18 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.4.5) + ts-api-utils: 1.3.0(typescript@5.6.2) optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@typescript-eslint/utils@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.11.1(jiti@2.0.0)) '@typescript-eslint/scope-manager': 8.7.0 '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.4.5) + '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.6.2) eslint: 9.11.1(jiti@2.0.0) transitivePeerDependencies: - supports-color @@ -12648,17 +12637,17 @@ snapshots: '@unocss/core@0.62.4': {} - '@unocss/eslint-config@0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@unocss/eslint-config@0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@unocss/eslint-plugin': 0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@unocss/eslint-plugin': 0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) transitivePeerDependencies: - eslint - supports-color - typescript - '@unocss/eslint-plugin@0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5)': + '@unocss/eslint-plugin@0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@unocss/config': 0.62.4 '@unocss/core': 0.62.4 magic-string: 0.30.11 @@ -13540,7 +13529,7 @@ snapshots: config-file-ts@0.2.8-rc1: dependencies: glob: 10.4.5 - typescript: 5.4.5 + typescript: 5.6.2 consola@3.2.3: {} @@ -14243,19 +14232,19 @@ snapshots: eslint: 9.11.1(jiti@2.0.0) find-up-simple: 1.0.0 - eslint-config-hyoban@3.1.8(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0))(tailwindcss@3.4.13)(typescript@5.4.5): + eslint-config-hyoban@3.1.8(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(tailwindcss@3.4.13)(typescript@5.6.2): dependencies: - '@eslint-react/eslint-plugin': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/eslint-plugin': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint/js': 9.11.1 - '@stylistic/eslint-plugin': 2.8.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@unocss/eslint-config': 0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@stylistic/eslint-plugin': 2.8.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@unocss/eslint-config': 0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) defu: 6.1.4 eslint: 9.11.1(jiti@2.0.0) eslint-config-flat-gitignore: 0.3.0(eslint@9.11.1(jiti@2.0.0)) eslint-plugin-antfu: 2.7.0(eslint@9.11.1(jiti@2.0.0)) eslint-plugin-command: 0.2.6(eslint@9.11.1(jiti@2.0.0)) eslint-plugin-hyoban: 0.6.1(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-import-x: 4.3.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + eslint-plugin-import-x: 4.3.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) eslint-plugin-jsonc: 2.16.0(eslint@9.11.1(jiti@2.0.0)) eslint-plugin-package-json: 0.15.3(eslint@9.11.1(jiti@2.0.0))(jsonc-eslint-parser@2.4.0) eslint-plugin-react-compiler: 0.0.0-experimental-f8a5409-20240829(eslint@9.11.1(jiti@2.0.0)) @@ -14265,14 +14254,14 @@ snapshots: eslint-plugin-simple-import-sort: 12.1.1(eslint@9.11.1(jiti@2.0.0)) eslint-plugin-tailwindcss: 3.17.4(tailwindcss@3.4.13) eslint-plugin-unicorn: 55.0.0(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0)) + eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0)) globals: 15.9.0 jsonc-eslint-parser: 2.4.0 local-pkg: 0.5.0 read-package-up: 11.0.0 - typescript-eslint: 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + typescript-eslint: 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - '@typescript-eslint/eslint-plugin' - supports-color @@ -14300,9 +14289,9 @@ snapshots: dependencies: eslint: 9.11.1(jiti@2.0.0) - eslint-plugin-import-x@4.3.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5): + eslint-plugin-import-x@4.3.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) debug: 4.3.7 doctrine: 3.0.0 eslint: 9.11.1(jiti@2.0.0) @@ -14353,63 +14342,63 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-react-debug@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5): + eslint-plugin-react-debug@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) eslint: 9.11.1(jiti@2.0.0) string-ts: 2.2.0 ts-pattern: 5.4.0 optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-dom@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5): + eslint-plugin-react-dom@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) eslint: 9.11.1(jiti@2.0.0) ts-pattern: 5.4.0 optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-hooks-extra@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5): + eslint-plugin-react-hooks-extra@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) eslint: 9.11.1(jiti@2.0.0) ts-pattern: 5.4.0 optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - supports-color @@ -14417,22 +14406,22 @@ snapshots: dependencies: eslint: 9.11.1(jiti@2.0.0) - eslint-plugin-react-naming-convention@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5): + eslint-plugin-react-naming-convention@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) eslint: 9.11.1(jiti@2.0.0) ts-pattern: 5.4.0 optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - supports-color @@ -14440,44 +14429,44 @@ snapshots: dependencies: eslint: 9.11.1(jiti@2.0.0) - eslint-plugin-react-web-api@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5): + eslint-plugin-react-web-api@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) birecord: 0.1.1 eslint: 9.11.1(jiti@2.0.0) ts-pattern: 5.4.0 optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-x@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5): + eslint-plugin-react-x@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) eslint: 9.11.1(jiti@2.0.0) - is-immutable-type: 5.0.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + is-immutable-type: 5.0.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) ts-pattern: 5.4.0 optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - supports-color @@ -14522,11 +14511,11 @@ snapshots: semver: 7.6.3 strip-indent: 3.0.0 - eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0)): dependencies: eslint: 9.11.1(jiti@2.0.0) optionalDependencies: - '@typescript-eslint/eslint-plugin': 8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/eslint-plugin': 8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) eslint-scope@8.1.0: dependencies: @@ -15500,13 +15489,13 @@ snapshots: is-hexadecimal@2.0.1: {} - is-immutable-type@5.0.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5): + is-immutable-type@5.0.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) eslint: 9.11.1(jiti@2.0.0) - ts-api-utils: 1.3.0(typescript@5.4.5) - ts-declaration-location: 1.0.4(typescript@5.4.5) - typescript: 5.4.5 + ts-api-utils: 1.3.0(typescript@5.6.2) + ts-declaration-location: 1.0.4(typescript@5.6.2) + typescript: 5.6.2 transitivePeerDependencies: - supports-color @@ -18233,26 +18222,26 @@ snapshots: dependencies: utf8-byte-length: 1.0.5 - ts-api-utils@1.3.0(typescript@5.4.5): + ts-api-utils@1.3.0(typescript@5.6.2): dependencies: - typescript: 5.4.5 + typescript: 5.6.2 - ts-declaration-location@1.0.4(typescript@5.4.5): + ts-declaration-location@1.0.4(typescript@5.6.2): dependencies: minimatch: 10.0.1 - typescript: 5.4.5 + typescript: 5.6.2 ts-interface-checker@0.1.13: {} ts-pattern@5.4.0: {} - tsconfck@3.1.1(typescript@5.4.5): + tsconfck@3.1.1(typescript@5.6.2): optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 tslib@2.7.0: {} - tsup@8.3.0(jiti@2.0.0)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.4.5)(yaml@2.5.1): + tsup@8.3.0(jiti@2.0.0)(postcss@8.4.47)(tsx@4.19.1)(typescript@5.6.2)(yaml@2.5.1): dependencies: bundle-require: 5.0.0(esbuild@0.23.1) cac: 6.7.14 @@ -18272,7 +18261,7 @@ snapshots: tree-kill: 1.2.2 optionalDependencies: postcss: 8.4.47 - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - jiti - supports-color @@ -18301,19 +18290,17 @@ snapshots: type-fest@4.26.1: {} - typescript-eslint@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5): + typescript-eslint@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@typescript-eslint/eslint-plugin': 8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5))(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@typescript-eslint/parser': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.4.5) + '@typescript-eslint/eslint-plugin': 8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/parser': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) optionalDependencies: - typescript: 5.4.5 + typescript: 5.6.2 transitivePeerDependencies: - eslint - supports-color - typescript@5.4.5: {} - typescript@5.6.2: {} ufo@1.5.4: {} @@ -18542,11 +18529,11 @@ snapshots: transitivePeerDependencies: - supports-color - vite-tsconfig-paths@5.0.1(typescript@5.4.5)(vite@5.4.8(@types/node@22.7.4)(terser@5.34.1)): + vite-tsconfig-paths@5.0.1(typescript@5.6.2)(vite@5.4.8(@types/node@22.7.4)(terser@5.34.1)): dependencies: debug: 4.3.7 globrex: 0.1.2 - tsconfck: 3.1.1(typescript@5.4.5) + tsconfck: 3.1.1(typescript@5.6.2) optionalDependencies: vite: 5.4.8(@types/node@22.7.4)(terser@5.34.1) transitivePeerDependencies: From 57e818f78388329edbea9fcb54254cccefb1c095 Mon Sep 17 00:00:00 2001 From: Przeblysk Date: Thu, 10 Oct 2024 11:28:43 +0800 Subject: [PATCH 12/49] fix: Mouse click may briefly overlap with background elements (#848) --- apps/renderer/src/components/ui/modal/stacked/overlay.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/renderer/src/components/ui/modal/stacked/overlay.tsx b/apps/renderer/src/components/ui/modal/stacked/overlay.tsx index 7b403ce40..b0aae5b90 100644 --- a/apps/renderer/src/components/ui/modal/stacked/overlay.tsx +++ b/apps/renderer/src/components/ui/modal/stacked/overlay.tsx @@ -24,7 +24,7 @@ export const ModalOverlay = forwardRef( ref={ref} id="modal-overlay" className={cn( - "pointer-events-none fixed inset-0 z-[11] rounded-[var(--fo-window-radius)] bg-zinc-50/80 dark:bg-neutral-900/80", + "fixed inset-0 z-[11] rounded-[var(--fo-window-radius)] bg-zinc-50/80 dark:bg-neutral-900/80", blur && "backdrop-blur-sm", className, )} @@ -32,6 +32,7 @@ export const ModalOverlay = forwardRef( animate={{ opacity: 1 }} exit={{ opacity: 0 }} style={{ zIndex }} + onClick={(e) => e.stopPropagation()} /> ), From 4b6ee2ad42f215aaa4b27b1836219aec5d89c374 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:57:10 +0800 Subject: [PATCH 13/49] chore: update lint --- eslint.config.mjs | 2 +- package.json | 4 +- pnpm-lock.yaml | 682 +++++++++++++++++++++++----------------------- 3 files changed, 348 insertions(+), 340 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index e6eb5022e..e8021fb40 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -16,7 +16,6 @@ export default defineConfig( "resources/**", ], preferESM: false, - // @ts-expect-error TODO: fix this in eslint-config-hyoban projectService: { allowDefaultProject: ["apps/main/preload/index.d.ts"], defaultProject: "tsconfig.json", @@ -72,6 +71,7 @@ export default defineConfig( "@stylistic/jsx-self-closing-comp": "error", }, }, + // @ts-expect-error { files: ["locales/**/*.json"], plugins: { diff --git a/package.json b/package.json index db756fcd6..e3ed3504c 100644 --- a/package.json +++ b/package.json @@ -76,8 +76,8 @@ "electron-devtools-installer": "3.2.0", "electron-packager-languages": "0.5.0", "electron-vite": "^2.3.0", - "eslint": "^9.11.1", - "eslint-config-hyoban": "^3.1.8", + "eslint": "^9.12.0", + "eslint-config-hyoban": "^3.1.10", "fake-indexeddb": "6.0.0", "hono": "4.6.3", "lint-staged": "15.2.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f900bf501..8f4b6129e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -147,11 +147,11 @@ importers: specifier: ^2.3.0 version: 2.3.0(vite@5.4.8(@types/node@22.7.4)(terser@5.34.1)) eslint: - specifier: ^9.11.1 - version: 9.11.1(jiti@2.0.0) + specifier: ^9.12.0 + version: 9.12.0(jiti@2.0.0) eslint-config-hyoban: - specifier: ^3.1.8 - version: 3.1.8(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(tailwindcss@3.4.13)(typescript@5.6.2) + specifier: ^3.1.10 + version: 3.1.10(@typescript-eslint/eslint-plugin@8.8.1(@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0))(tailwindcss@3.4.13)(typescript@5.6.2) fake-indexeddb: specifier: 6.0.0 version: 6.0.0 @@ -1833,14 +1833,14 @@ packages: resolution: {integrity: sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint-react/ast@1.14.2': - resolution: {integrity: sha512-waFjfqN9estBOSPHB2QzLm0s+10rEK86qzww/BkSLAORZLSftxQ1YrAL7vECBw+7G8RI1ehEh6s5ZFkBedUirA==} + '@eslint-react/ast@1.14.3': + resolution: {integrity: sha512-JU0619vNfl0RaqbsyyEfLJWKupJOmf5JmHt4sCAD6Y1LCW80Pi0ZbBXeCUTdCR36mA8IJxm9PoLFliQyDYj6uw==} - '@eslint-react/core@1.14.2': - resolution: {integrity: sha512-DpyKNgYB+bYrBEhvlTzqcifzNuYH9GF0y4lyIeWD8Pr72M5zjMD8NgpzT6h+2Vx0TVcW12Ej8Kd86BsEqhmZPQ==} + '@eslint-react/core@1.14.3': + resolution: {integrity: sha512-1T/Zubn9PSwJHNN+4SnXXPb6ZjL1ILl9hN2pkPClh8IyBoCTM+u/BHTfxI3aVF5I8yWLNDaiG7nkaxmxoBEOfQ==} - '@eslint-react/eslint-plugin@1.14.2': - resolution: {integrity: sha512-q8bIJYfMr4YBfLlqG+cIStp+8/J1trgSqkbZQy6C6+DVP/AtWB+Gqq3a5qshpbJ0WVbtbZ4Yed61hxhZCnxsZA==} + '@eslint-react/eslint-plugin@1.14.3': + resolution: {integrity: sha512-U06zO3F56RAYXI0ZKTEpdwyWllV+muvi2gdC1SLARwk4AOmLAV8ke+iHW5EXBfNkCJQ3SgKRan4tpQqqwfEsMA==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -1849,20 +1849,20 @@ packages: typescript: optional: true - '@eslint-react/jsx@1.14.2': - resolution: {integrity: sha512-Uu2URP5q935fK2NK59BZqjIwrRkD3zarCqmlZfig0Hy2vrllf8mileKkC7kAoIFhc8A6ilGLwaRdMWvEAVbR2A==} + '@eslint-react/jsx@1.14.3': + resolution: {integrity: sha512-LJqS63/S8koDJNIqKZ/yLuFvVk4RiK7K3emjUFx+UXHrIdKwFDMpFkksVVbxqeMX70E+toMXgMepABE0pA54ag==} - '@eslint-react/shared@1.14.2': - resolution: {integrity: sha512-VTN5QflFLgFHWKgnWwt/8sMedeT+7mn4/yrQ6ZrHhia95hDAW9fprMJtNR3AkJ30vnc/1x9I0KUisEvT1u3Cgw==} + '@eslint-react/shared@1.14.3': + resolution: {integrity: sha512-GP+mjNZBGXq2CuwyVTE2+74K3tBixxNeaG3ho3ovpQ7e8NlTD3TOZk5vZyOJaeRqaOJoJa54PURe12Qt6loCdw==} - '@eslint-react/tools@1.14.2': - resolution: {integrity: sha512-AgtqWGZEywBfECIbmrtqLeJdPRQkCsfgUzmKxEjHTgMV4nqt5nKirYVnAUxS5/HSs/OqNUM6l+awFFCnCEuLjQ==} + '@eslint-react/tools@1.14.3': + resolution: {integrity: sha512-NtewO4fWxzGtVCjAhD6NG4FwLev5Xq87KWpW92brPF+AvTzkr04abt3/14CpojJlW9L9SMK6FsX9tFVP7ZBqJQ==} - '@eslint-react/types@1.14.2': - resolution: {integrity: sha512-YPfdPYUHTXw+5KT+WgLJrRQAJcTyQ2rzUDAUq7Cl2x71J88USXzja8D7KNDFA9S+eeF5eaUVc9LJo3Uz7eq4Dw==} + '@eslint-react/types@1.14.3': + resolution: {integrity: sha512-Hi3rBCX0pAxoQs3MQYX/rt4Fxdz97U0pTjSQsm03dGUBb/BEVgrVK9SEZkCqpfPZ7NXrVhuiYudoJRUylNZyCw==} - '@eslint-react/var@1.14.2': - resolution: {integrity: sha512-OOxwTPcWoNJbpaWnULpq+QJzsdZveU/QCHZ6Lb1oNIdVPBc6nCKz3PH97hqYFpk3q+gnnNx2q6qhNIAfeu/8Ug==} + '@eslint-react/var@1.14.3': + resolution: {integrity: sha512-APJJVSyrDrvJn3t4qXBg1XpWMxmW5AEym56a9/ILzLtgOWFsDj6gJCy4o2g5UB2AZqtfS6YS5IfU5B1G/wYtiw==} '@eslint/compat@1.1.1': resolution: {integrity: sha512-lpHyRyplhGPL5mGEh6M9O5nnKk0Gz4bFI+Zu6tKlPpDUN7XshWvH9C/px4UVm87IAANE0W81CEsNGbS1KlzXpA==} @@ -1880,8 +1880,8 @@ packages: resolution: {integrity: sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.11.1': - resolution: {integrity: sha512-/qu+TWz8WwPWc7/HcIJKi+c+MOm46GdVaSlTTQcaqaL53+GsoA6MxWp5PtTx48qbSP7ylM1Kn7nhvkugfJvRSA==} + '@eslint/js@9.12.0': + resolution: {integrity: sha512-eohesHH8WFRUprDNyEREgqP6beG6htMeUYeCpkEgBCieCMme5r9zFWjzAJp//9S+Kub4rqE+jXe9Cp1a7IYIIA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/object-schema@2.1.4': @@ -1982,12 +1982,20 @@ packages: peerDependencies: react-hook-form: ^7.0.0 + '@humanfs/core@0.19.0': + resolution: {integrity: sha512-2cbWIHbZVEweE853g8jymffCA+NCMiuqeECeBBLm8dg2oFdjuGJhgN4UAbI+6v0CKbbhvtXA4qV8YR5Ji86nmw==} + engines: {node: '>=18.18.0'} + + '@humanfs/node@0.16.5': + resolution: {integrity: sha512-KSPA4umqSG4LHYRodq31VDwKAvaTF4xmVlzM8Aeh4PlU1JQ3IG0wiA8C25d3RQ9nJyM3mBHyI53K06VVL/oFFg==} + engines: {node: '>=18.18.0'} + '@humanwhocodes/module-importer@1.0.1': resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} engines: {node: '>=12.22'} - '@humanwhocodes/retry@0.3.0': - resolution: {integrity: sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==} + '@humanwhocodes/retry@0.3.1': + resolution: {integrity: sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==} engines: {node: '>=18.18'} '@hutson/parse-repository-url@5.0.0': @@ -3462,8 +3470,8 @@ packages: resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} engines: {node: '>=10'} - '@stylistic/eslint-plugin@2.8.0': - resolution: {integrity: sha512-Ufvk7hP+bf+pD35R/QfunF793XlSRIC7USr3/EdgduK9j13i2JjmsM0LUz3/foS+jDYp2fzyWZA9N44CPur0Ow==} + '@stylistic/eslint-plugin@2.9.0': + resolution: {integrity: sha512-OrDyFAYjBT61122MIY1a3SfEgy3YCMgt2vL4eoPmvTwDBwyQhAXurxNQznlRD/jESNfYWfID8Ej+31LljvF7Xg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8.40.0' @@ -3669,8 +3677,8 @@ packages: '@types/yauzl@2.10.3': resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} - '@typescript-eslint/eslint-plugin@8.7.0': - resolution: {integrity: sha512-RIHOoznhA3CCfSTFiB6kBGLQtB/sox+pJ6jeFu6FxJvqL8qRxq/FfGO/UhsGgQM9oGdXkV4xUgli+dt26biB6A==} + '@typescript-eslint/eslint-plugin@8.8.1': + resolution: {integrity: sha512-xfvdgA8AP/vxHgtgU310+WBnLB4uJQ9XdyP17RebG26rLtDrQJV3ZYrcopX91GrHmMoH8bdSwMRh2a//TiJ1jQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 @@ -3680,8 +3688,8 @@ packages: typescript: optional: true - '@typescript-eslint/parser@8.7.0': - resolution: {integrity: sha512-lN0btVpj2unxHlNYLI//BQ7nzbMJYBVQX5+pbNXvGYazdlgYonMn4AhhHifQ+J4fGRYA/m1DjaQjx+fDetqBOQ==} + '@typescript-eslint/parser@8.8.1': + resolution: {integrity: sha512-hQUVn2Lij2NAxVFEdvIGxT9gP1tq2yM83m+by3whWFsWC+1y8pxxxHUFE1UqDu2VsGi2i6RLcv4QvouM84U+ow==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -3690,12 +3698,12 @@ packages: typescript: optional: true - '@typescript-eslint/scope-manager@8.7.0': - resolution: {integrity: sha512-87rC0k3ZlDOuz82zzXRtQ7Akv3GKhHs0ti4YcbAJtaomllXoSO8hi7Ix3ccEvCd824dy9aIX+j3d2UMAfCtVpg==} + '@typescript-eslint/scope-manager@8.8.1': + resolution: {integrity: sha512-X4JdU+66Mazev/J0gfXlcC/dV6JI37h+93W9BRYXrSn0hrE64IoWgVkO9MSJgEzoWkxONgaQpICWg8vAN74wlA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/type-utils@8.7.0': - resolution: {integrity: sha512-tl0N0Mj3hMSkEYhLkjREp54OSb/FI6qyCzfiiclvJvOqre6hsZTGSnHtmFLDU8TIM62G7ygEa1bI08lcuRwEnQ==} + '@typescript-eslint/type-utils@8.8.1': + resolution: {integrity: sha512-qSVnpcbLP8CALORf0za+vjLYj1Wp8HSoiI8zYU5tHxRVj30702Z1Yw4cLwfNKhTPWp5+P+k1pjmD5Zd1nhxiZA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '*' @@ -3703,12 +3711,12 @@ packages: typescript: optional: true - '@typescript-eslint/types@8.7.0': - resolution: {integrity: sha512-LLt4BLHFwSfASHSF2K29SZ+ZCsbQOM+LuarPjRUuHm+Qd09hSe3GCeaQbcCr+Mik+0QFRmep/FyZBO6fJ64U3w==} + '@typescript-eslint/types@8.8.1': + resolution: {integrity: sha512-WCcTP4SDXzMd23N27u66zTKMuEevH4uzU8C9jf0RO4E04yVHgQgW+r+TeVTNnO1KIfrL8ebgVVYYMMO3+jC55Q==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/typescript-estree@8.7.0': - resolution: {integrity: sha512-MC8nmcGHsmfAKxwnluTQpNqceniT8SteVwd2voYlmiSWGOtjvGXdPl17dYu2797GVscK30Z04WRM28CrKS9WOg==} + '@typescript-eslint/typescript-estree@8.8.1': + resolution: {integrity: sha512-A5d1R9p+X+1js4JogdNilDuuq+EHZdsH9MjTVxXOdVFfTJXunKJR/v+fNNyO4TnoOn5HqobzfRlc70NC6HTcdg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '*' @@ -3716,32 +3724,32 @@ packages: typescript: optional: true - '@typescript-eslint/utils@8.7.0': - resolution: {integrity: sha512-ZbdUdwsl2X/s3CiyAu3gOlfQzpbuG3nTWKPoIvAu1pu5r8viiJvv2NPN2AqArL35NCYtw/lrPPfM4gxrMLNLPw==} + '@typescript-eslint/utils@8.8.1': + resolution: {integrity: sha512-/QkNJDbV0bdL7H7d0/y0qBbV2HTtf0TIyjSDTvvmQEzeVx8jEImEbLuOA4EsvE8gIgqMitns0ifb5uQhMj8d9w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 - '@typescript-eslint/visitor-keys@8.7.0': - resolution: {integrity: sha512-b1tx0orFCCh/THWPQa2ZwWzvOeyzzp36vkJYOpVg0u8UVOIsfVrnuC9FqAw9gRKn+rG2VmWQ/zDJZzkxUnj/XQ==} + '@typescript-eslint/visitor-keys@8.8.1': + resolution: {integrity: sha512-0/TdC3aeRAsW7MDvYRwEc1Uwm0TIBfzjPFgg60UU2Haj5qsCs9cc3zNgY71edqE3LbWfF/WoZQd3lJoDXFQpag==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - '@unocss/config@0.62.4': - resolution: {integrity: sha512-XKudKxxW8P44JvlIdS6HBpfE3qZA9rhbemy6/sb8HyZjKYjgeM9jx5yjk+9+4hXNma/KlwDXwjAqY29z0S0SrA==} + '@unocss/config@0.63.4': + resolution: {integrity: sha512-LfAzM8z0r2comUW94KaSo4JaaEZjPkvrfyVWfO/hyaXa+/xSVIkCTW7+lfWh77hrg1e2SUY1HEvIFBg9Jvb1xQ==} engines: {node: '>=14'} - '@unocss/core@0.62.4': - resolution: {integrity: sha512-Cc+Vo6XlaQpyVejkJrrzzWtiK9pgMWzVVBpm9VCVtwZPUjD4GSc+g7VQCPXSsr7m03tmSuRySJx72QcASmauNQ==} + '@unocss/core@0.63.4': + resolution: {integrity: sha512-VB4DJ5DsRWpX64si5tWYRXf1n5UkYQqe2s1V22qFiWmXa7Ec+Vf9s3cxWZmoWFC5P9RQiwM9kAqxdg1G+elVkQ==} - '@unocss/eslint-config@0.62.4': - resolution: {integrity: sha512-bulYXf80MhTlN2oG/d1r23/FJTNiGxK/gG+p9nl/UeJZc5NOnes7fsqVscFTXDxVQGVIFgeKfch3DRmzlxHe9Q==} + '@unocss/eslint-config@0.63.4': + resolution: {integrity: sha512-H7W6yx17t23ZTtvdJ1j+oRmPNi12k109m5H+tee6g92vjM9s82ZZmPNY/92XM0ZrObS7XaMxQkB3yF92Skw9Ew==} engines: {node: '>=14'} - '@unocss/eslint-plugin@0.62.4': - resolution: {integrity: sha512-L4pm8L96OvE99FK+fZHQBXxsu+B/yvhf471Mf5o3idaq+pzptfpZcKKRXCeQKSAYbC80IV4Fm1V5dFxOHbDdPg==} + '@unocss/eslint-plugin@0.63.4': + resolution: {integrity: sha512-RXxlQq+dP8duOv3s/dEm7TmHn4sBBDJPFErJgsiI+RDPIvIo23bh4FZoej8/pUUZ24F9meSM8pEil1kNUBqVHw==} engines: {node: '>=14'} '@use-gesture/core@10.3.1': @@ -5054,8 +5062,8 @@ packages: peerDependencies: eslint: ^9.5.0 - eslint-config-hyoban@3.1.8: - resolution: {integrity: sha512-YRvuuQgzzrNw8+2Xmqbdrvx4BYeG06HeeU4AvAm5OBq5x31ShWY1s3Zu7AVVIoLGJCbDNECq8ViLtdS6yJtWug==} + eslint-config-hyoban@3.1.10: + resolution: {integrity: sha512-TgzHQ6mR9oDphfm2wRLExSlQQyxXwk8rg1ZkjSmTzIJMr8LpvMSy/8g8imksCnK1Kvmmvy6Yh3ALm5J35p+xOw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^9.0.0 @@ -5082,8 +5090,8 @@ packages: peerDependencies: eslint: '*' - eslint-plugin-import-x@4.3.0: - resolution: {integrity: sha512-PxGzP7gAjF2DLeRnQtbYkkgZDg1intFyYr/XS1LgTYXUDrSXMHGkXx8++6i2eDv2jMs0jfeO6G6ykyeWxiFX7w==} + eslint-plugin-import-x@4.3.1: + resolution: {integrity: sha512-5TriWkXulDl486XnYYRgsL+VQoS/7mhN/2ci02iLCuL7gdhbiWxnsuL/NTcaKY9fpMgsMFjWZBtIGW7pb+RX0g==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -5107,8 +5115,8 @@ packages: peerDependencies: eslint: '>=7' - eslint-plugin-react-debug@1.14.2: - resolution: {integrity: sha512-5DlSAx4dHhqbGpPMOyEu7lhdWExwxI1e/3MeKSJBfigQamdA0dIZi/K0ZkeVqbSS8ItU+G/Ba1ek6vYCtadNvA==} + eslint-plugin-react-debug@1.14.3: + resolution: {integrity: sha512-qEsGT5LGFtYR1Hs9nqfrCqgE8MxrTe5VA7LO7Old8epgHgpgOGIuSIdIKYu7dxlEFGAXFB3JLW7ieYJYcgobbQ==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -5117,8 +5125,8 @@ packages: typescript: optional: true - eslint-plugin-react-dom@1.14.2: - resolution: {integrity: sha512-qG1WqsOHj4BdoOBPt3gwtEbeTc43EKKqDzxcB4gRbT6euBxU0EluEMtcFO/bAy9950iehD7rRSvuLs7voE+bNg==} + eslint-plugin-react-dom@1.14.3: + resolution: {integrity: sha512-tVA7RQI6Jxomeqrckqi/y1gEmcdI29b268p7K8WjRUWNUDXbZR6vEyaLBqzI8+ykO1HsK8+QhOKUHgUKHjOZBQ==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -5127,8 +5135,8 @@ packages: typescript: optional: true - eslint-plugin-react-hooks-extra@1.14.2: - resolution: {integrity: sha512-SMDEluUIFQMPksKtmHVT2etaKqGIN7Rvcp9R/MB1bFcO1sh5ON2dDHXcZUTomZHriTEn/fm6pANe44jk20l4jQ==} + eslint-plugin-react-hooks-extra@1.14.3: + resolution: {integrity: sha512-G6mFfYiKgKbGJOUlmvcsN+n0hNiRGa9pNenv4hSlbm3TJFmlrLG+cHvOa9xe88AvaLJHfF5obgF8X/zhSekIfA==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -5143,8 +5151,8 @@ packages: peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - eslint-plugin-react-naming-convention@1.14.2: - resolution: {integrity: sha512-LWJm5kF7hWL7OcJnn+dTmC/l75RV4n7gH5QRH4kjcsVRs/Ky/kTcmBQTlC+CsaMUsy9jro6VBzj7Rk9/IO5vcQ==} + eslint-plugin-react-naming-convention@1.14.3: + resolution: {integrity: sha512-qj7XpwYQAKNCTloWA9vPNYDRMsiLa5H/jlF3mH17Is+j/pLH97NRG9CQXbh6kEdLbBFSsHwTDvyP22+CPVZhiA==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -5158,8 +5166,8 @@ packages: peerDependencies: eslint: '>=7' - eslint-plugin-react-web-api@1.14.2: - resolution: {integrity: sha512-Qq2AJmGsNaabYaWtZweLSTfVGoyPPrz+A7L+h4ecq0TzvnlfSPWFyfQF4biBsZt+V4RrkBpQ4cB9Cqn7TEsEMQ==} + eslint-plugin-react-web-api@1.14.3: + resolution: {integrity: sha512-1G/WIUe+ZIPW8px1lmn7ib5fy6LcuwoHDsnq9G92iE8MFXYPA0Pry0ZKaB2lAsjP8rUROv1L9B457QjyCpro2g==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -5168,8 +5176,8 @@ packages: typescript: optional: true - eslint-plugin-react-x@1.14.2: - resolution: {integrity: sha512-iiizpXxc//MoOwOqk6J55BMuywrDhZW2wvdM1XK1H8D5OEekyEzZQLPtOaVT0WyO+6tCdvmegKaX/J+4mVcuAg==} + eslint-plugin-react-x@1.14.3: + resolution: {integrity: sha512-VKyF4v1kWp9P6vI7JDJfonmny0HOQiS5v/rMLyldK9UC8k+efJN7dUtLE2Kt7TfxggE5gf+v4rsDB2Opvt5Tvg==} engines: {bun: '>=1.0.15', node: '>=18.18.0'} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -5189,14 +5197,14 @@ packages: peerDependencies: eslint: '>=5.0.0' - eslint-plugin-tailwindcss@3.17.4: - resolution: {integrity: sha512-gJAEHmCq2XFfUP/+vwEfEJ9igrPeZFg+skeMtsxquSQdxba9XRk5bn0Bp9jxG1VV9/wwPKi1g3ZjItu6MIjhNg==} + eslint-plugin-tailwindcss@3.17.5: + resolution: {integrity: sha512-8Mi7p7dm+mO1dHgRHHFdPu4RDTBk69Cn4P0B40vRQR+MrguUpwmKwhZy1kqYe3Km8/4nb+cyrCF+5SodOEmaow==} engines: {node: '>=18.12.0'} peerDependencies: tailwindcss: ^3.4.0 - eslint-plugin-unicorn@55.0.0: - resolution: {integrity: sha512-n3AKiVpY2/uDcGrS3+QsYDkjPfaOrNrsfQxU9nt5nitd9KuvVXrfAvgCO9DYPSfap+Gqjw9EOrXIsBp5tlHZjA==} + eslint-plugin-unicorn@56.0.0: + resolution: {integrity: sha512-aXpddVz/PQMmd69uxO98PA4iidiVNvA0xOtbpUoz1WhBd4RxOQQYqN618v68drY0hmy5uU2jy1bheKEVWBjlPw==} engines: {node: '>=18.18'} peerDependencies: eslint: '>=8.56.0' @@ -5222,8 +5230,8 @@ packages: resolution: {integrity: sha512-Q7lok0mqMUSf5a/AdAZkA5a/gHcO6snwQClVNNvFKCAVlxXucdU8pKydU5ZVZjBx5xr37vGbFFWtLQYreLzrZg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint@9.11.1: - resolution: {integrity: sha512-MobhYKIoAO1s1e4VUrgx1l1Sk2JBR/Gqjjgw8+mfgoLE2xwsHur4gdfTxyTgShrhvdVFTaJSgMiQBl1jv/AWxg==} + eslint@9.12.0: + resolution: {integrity: sha512-UVIOlTEWxwIopRL1wgSQYdnVDcEvs2wyaO6DGo5mXqe3r16IoCNWkR29iHhyaP4cICWjbgbmFUGAhh0GJRuGZw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true peerDependencies: @@ -5628,8 +5636,8 @@ packages: resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} engines: {node: '>=18'} - globals@15.9.0: - resolution: {integrity: sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==} + globals@15.11.0: + resolution: {integrity: sha512-yeyNSjdbyVaWurlwCpcA6XNBrHTMIeDdj0/hnvX/OLJ9ekOXYbLsLinH/MucQyGvNnXhidTdNhTtJaffL2sMfw==} engines: {node: '>=18'} globalthis@1.0.4: @@ -5995,10 +6003,6 @@ packages: resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} engines: {node: '>=8'} - is-path-inside@3.0.3: - resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} - engines: {node: '>=8'} - is-plain-obj@1.1.0: resolution: {integrity: sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==} engines: {node: '>=0.10.0'} @@ -8453,8 +8457,8 @@ packages: resolution: {integrity: sha512-yOGpmOAL7CkKe/91I5O3gPICmJNLJ1G4zFYVAsRHg7M64biSnPtRj0WNQt++bRkjYOqjWXrhnUw1utzmVErAdg==} engines: {node: '>=16'} - typescript-eslint@8.7.0: - resolution: {integrity: sha512-nEHbEYJyHwsuf7c3V3RS7Saq+1+la3i0ieR3qP0yjqWSzVmh8Drp47uOl9LjbPANac4S7EFSqvcYIKXUUwIfIQ==} + typescript-eslint@8.8.1: + resolution: {integrity: sha512-R0dsXFt6t4SAFjUSKFjMh4pXDtq04SsFKCVGDP3ZOzNP7itF0jBcZYU4fMsZr4y7O7V7Nc751dDeESbe4PbQMQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '*' @@ -10374,20 +10378,20 @@ snapshots: '@esbuild/win32-x64@0.23.1': optional: true - '@eslint-community/eslint-utils@4.4.0(eslint@9.11.1(jiti@2.0.0))': + '@eslint-community/eslint-utils@4.4.0(eslint@9.12.0(jiti@2.0.0))': dependencies: - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.11.1': {} - '@eslint-react/ast@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@eslint-react/ast@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.6.2) - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/typescript-estree': 8.8.1(typescript@5.6.2) + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) birecord: 0.1.1 string-ts: 2.2.0 ts-pattern: 5.4.0 @@ -10396,18 +10400,18 @@ snapshots: - supports-color - typescript - '@eslint-react/core@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@eslint-react/core@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/ast': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/type-utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) birecord: 0.1.1 short-unique-id: 5.2.0 ts-pattern: 5.4.0 @@ -10416,72 +10420,72 @@ snapshots: - supports-color - typescript - '@eslint-react/eslint-plugin@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@eslint-react/eslint-plugin@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint: 9.11.1(jiti@2.0.0) - eslint-plugin-react-debug: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint-plugin-react-dom: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint-plugin-react-hooks-extra: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint-plugin-react-naming-convention: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint-plugin-react-web-api: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint-plugin-react-x: 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/type-utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint: 9.12.0(jiti@2.0.0) + eslint-plugin-react-debug: 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-react-dom: 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-react-hooks-extra: 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-react-naming-convention: 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-react-web-api: 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-react-x: 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: - supports-color - '@eslint-react/jsx@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@eslint-react/jsx@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/ast': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) ts-pattern: 5.4.0 transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/shared@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@eslint-react/shared@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/tools': 1.14.2 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) picomatch: 4.0.2 transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/tools@1.14.2': {} + '@eslint-react/tools@1.14.3': {} - '@eslint-react/types@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@eslint-react/types@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/tools': 1.14.2 - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) transitivePeerDependencies: - eslint - supports-color - typescript - '@eslint-react/var@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@eslint-react/var@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/ast': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) ts-pattern: 5.4.0 transitivePeerDependencies: - eslint @@ -10514,7 +10518,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@9.11.1': {} + '@eslint/js@9.12.0': {} '@eslint/object-schema@2.1.4': {} @@ -10618,9 +10622,16 @@ snapshots: dependencies: react-hook-form: 7.53.0(react@18.3.1) + '@humanfs/core@0.19.0': {} + + '@humanfs/node@0.16.5': + dependencies: + '@humanfs/core': 0.19.0 + '@humanwhocodes/retry': 0.3.1 + '@humanwhocodes/module-importer@1.0.1': {} - '@humanwhocodes/retry@0.3.0': {} + '@humanwhocodes/retry@0.3.1': {} '@hutson/parse-repository-url@5.0.0': {} @@ -12300,10 +12311,10 @@ snapshots: '@sindresorhus/is@4.6.0': {} - '@stylistic/eslint-plugin@2.8.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@stylistic/eslint-plugin@2.9.0(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint: 9.11.1(jiti@2.0.0) + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint: 9.12.0(jiti@2.0.0) eslint-visitor-keys: 4.1.0 espree: 10.2.0 estraverse: 5.3.0 @@ -12425,7 +12436,7 @@ snapshots: '@types/estree-jsx@1.0.5': dependencies: - '@types/estree': 1.0.5 + '@types/estree': 1.0.6 '@types/estree@1.0.5': {} @@ -12545,15 +12556,15 @@ snapshots: '@types/node': 22.7.4 optional: true - '@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@typescript-eslint/eslint-plugin@8.8.1(@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: '@eslint-community/regexpp': 4.11.1 - '@typescript-eslint/parser': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/visitor-keys': 8.7.0 - eslint: 9.11.1(jiti@2.0.0) + '@typescript-eslint/parser': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/type-utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/visitor-keys': 8.8.1 + eslint: 9.12.0(jiti@2.0.0) graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 @@ -12563,28 +12574,28 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.6.2) - '@typescript-eslint/visitor-keys': 8.7.0 + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/typescript-estree': 8.8.1(typescript@5.6.2) + '@typescript-eslint/visitor-keys': 8.8.1 debug: 4.3.7 - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@8.7.0': + '@typescript-eslint/scope-manager@8.8.1': dependencies: - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/visitor-keys': 8.7.0 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/visitor-keys': 8.8.1 - '@typescript-eslint/type-utils@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@typescript-eslint/type-utils@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.6.2) - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/typescript-estree': 8.8.1(typescript@5.6.2) + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) debug: 4.3.7 ts-api-utils: 1.3.0(typescript@5.6.2) optionalDependencies: @@ -12593,12 +12604,12 @@ snapshots: - eslint - supports-color - '@typescript-eslint/types@8.7.0': {} + '@typescript-eslint/types@8.8.1': {} - '@typescript-eslint/typescript-estree@8.7.0(typescript@5.6.2)': + '@typescript-eslint/typescript-estree@8.8.1(typescript@5.6.2)': dependencies: - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/visitor-keys': 8.7.0 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/visitor-keys': 8.8.1 debug: 4.3.7 fast-glob: 3.3.2 is-glob: 4.0.3 @@ -12610,46 +12621,46 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@typescript-eslint/utils@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.11.1(jiti@2.0.0)) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/typescript-estree': 8.7.0(typescript@5.6.2) - eslint: 9.11.1(jiti@2.0.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.12.0(jiti@2.0.0)) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/typescript-estree': 8.8.1(typescript@5.6.2) + eslint: 9.12.0(jiti@2.0.0) transitivePeerDependencies: - supports-color - typescript - '@typescript-eslint/visitor-keys@8.7.0': + '@typescript-eslint/visitor-keys@8.8.1': dependencies: - '@typescript-eslint/types': 8.7.0 + '@typescript-eslint/types': 8.8.1 eslint-visitor-keys: 3.4.3 '@ungap/structured-clone@1.2.0': {} - '@unocss/config@0.62.4': + '@unocss/config@0.63.4': dependencies: - '@unocss/core': 0.62.4 + '@unocss/core': 0.63.4 unconfig: 0.5.5 transitivePeerDependencies: - supports-color - '@unocss/core@0.62.4': {} + '@unocss/core@0.63.4': {} - '@unocss/eslint-config@0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@unocss/eslint-config@0.63.4(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@unocss/eslint-plugin': 0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@unocss/eslint-plugin': 0.63.4(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) transitivePeerDependencies: - eslint - supports-color - typescript - '@unocss/eslint-plugin@0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2)': + '@unocss/eslint-plugin@0.63.4(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2)': dependencies: - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@unocss/config': 0.62.4 - '@unocss/core': 0.62.4 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@unocss/config': 0.63.4 + '@unocss/core': 0.63.4 magic-string: 0.30.11 synckit: 0.9.1 transitivePeerDependencies: @@ -14221,45 +14232,46 @@ snapshots: escape-string-regexp@5.0.0: {} - eslint-compat-utils@0.5.1(eslint@9.11.1(jiti@2.0.0)): + eslint-compat-utils@0.5.1(eslint@9.12.0(jiti@2.0.0)): dependencies: - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) semver: 7.6.3 - eslint-config-flat-gitignore@0.3.0(eslint@9.11.1(jiti@2.0.0)): + eslint-config-flat-gitignore@0.3.0(eslint@9.12.0(jiti@2.0.0)): dependencies: '@eslint/compat': 1.1.1 - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) find-up-simple: 1.0.0 - eslint-config-hyoban@3.1.8(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(tailwindcss@3.4.13)(typescript@5.6.2): + eslint-config-hyoban@3.1.10(@typescript-eslint/eslint-plugin@8.8.1(@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0))(tailwindcss@3.4.13)(typescript@5.6.2): dependencies: - '@eslint-react/eslint-plugin': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint/js': 9.11.1 - '@stylistic/eslint-plugin': 2.8.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@unocss/eslint-config': 0.62.4(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/eslint-plugin': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint/js': 9.12.0 + '@stylistic/eslint-plugin': 2.9.0(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/types': 8.8.1 + '@unocss/eslint-config': 0.63.4(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) defu: 6.1.4 - eslint: 9.11.1(jiti@2.0.0) - eslint-config-flat-gitignore: 0.3.0(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-antfu: 2.7.0(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-command: 0.2.6(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-hyoban: 0.6.1(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-import-x: 4.3.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint-plugin-jsonc: 2.16.0(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-package-json: 0.15.3(eslint@9.11.1(jiti@2.0.0))(jsonc-eslint-parser@2.4.0) - eslint-plugin-react-compiler: 0.0.0-experimental-f8a5409-20240829(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-react-hooks: 5.1.0-rc-fb9a90fa48-20240614(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-react-refresh: 0.4.12(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-regexp: 2.6.0(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-simple-import-sort: 12.1.1(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-tailwindcss: 3.17.4(tailwindcss@3.4.13) - eslint-plugin-unicorn: 55.0.0(eslint@9.11.1(jiti@2.0.0)) - eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0)) - globals: 15.9.0 + eslint: 9.12.0(jiti@2.0.0) + eslint-config-flat-gitignore: 0.3.0(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-antfu: 2.7.0(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-command: 0.2.6(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-hyoban: 0.6.1(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-import-x: 4.3.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint-plugin-jsonc: 2.16.0(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-package-json: 0.15.3(eslint@9.12.0(jiti@2.0.0))(jsonc-eslint-parser@2.4.0) + eslint-plugin-react-compiler: 0.0.0-experimental-f8a5409-20240829(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-react-hooks: 5.1.0-rc-fb9a90fa48-20240614(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-react-refresh: 0.4.12(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-regexp: 2.6.0(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-simple-import-sort: 12.1.1(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-tailwindcss: 3.17.5(tailwindcss@3.4.13) + eslint-plugin-unicorn: 56.0.0(eslint@9.12.0(jiti@2.0.0)) + eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.8.1(@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0)) + globals: 15.11.0 jsonc-eslint-parser: 2.4.0 local-pkg: 0.5.0 read-package-up: 11.0.0 - typescript-eslint: 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + typescript-eslint: 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: @@ -14275,26 +14287,26 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-antfu@2.7.0(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-antfu@2.7.0(eslint@9.12.0(jiti@2.0.0)): dependencies: '@antfu/utils': 0.7.10 - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) - eslint-plugin-command@0.2.6(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-command@0.2.6(eslint@9.12.0(jiti@2.0.0)): dependencies: '@es-joy/jsdoccomment': 0.48.0 - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) - eslint-plugin-hyoban@0.6.1(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-hyoban@0.6.1(eslint@9.12.0(jiti@2.0.0)): dependencies: - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) - eslint-plugin-import-x@4.3.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): + eslint-plugin-import-x@4.3.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) debug: 4.3.7 doctrine: 3.0.0 - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) eslint-import-resolver-node: 0.3.9 get-tsconfig: 4.8.1 is-glob: 4.0.3 @@ -14306,23 +14318,23 @@ snapshots: - supports-color - typescript - eslint-plugin-jsonc@2.16.0(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-jsonc@2.16.0(eslint@9.12.0(jiti@2.0.0)): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.11.1(jiti@2.0.0)) - eslint: 9.11.1(jiti@2.0.0) - eslint-compat-utils: 0.5.1(eslint@9.11.1(jiti@2.0.0)) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.12.0(jiti@2.0.0)) + eslint: 9.12.0(jiti@2.0.0) + eslint-compat-utils: 0.5.1(eslint@9.12.0(jiti@2.0.0)) espree: 9.6.1 graphemer: 1.4.0 jsonc-eslint-parser: 2.4.0 natural-compare: 1.4.0 synckit: 0.6.2 - eslint-plugin-package-json@0.15.3(eslint@9.11.1(jiti@2.0.0))(jsonc-eslint-parser@2.4.0): + eslint-plugin-package-json@0.15.3(eslint@9.12.0(jiti@2.0.0))(jsonc-eslint-parser@2.4.0): dependencies: '@altano/repository-tools': 0.1.1 detect-indent: 6.1.0 detect-newline: 3.1.0 - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) jsonc-eslint-parser: 2.4.0 package-json-validator: 0.6.5 semver: 7.6.3 @@ -14330,32 +14342,32 @@ snapshots: sort-package-json: 1.57.0 validate-npm-package-name: 5.0.1 - eslint-plugin-react-compiler@0.0.0-experimental-f8a5409-20240829(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-react-compiler@0.0.0-experimental-f8a5409-20240829(eslint@9.12.0(jiti@2.0.0)): dependencies: '@babel/core': 7.25.2 '@babel/parser': 7.25.6 '@babel/plugin-proposal-private-methods': 7.18.6(@babel/core@7.25.2) - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) hermes-parser: 0.20.1 zod: 3.23.8 zod-validation-error: 3.4.0(zod@3.23.8) transitivePeerDependencies: - supports-color - eslint-plugin-react-debug@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): + eslint-plugin-react-debug@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint: 9.11.1(jiti@2.0.0) + '@eslint-react/ast': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/type-utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint: 9.12.0(jiti@2.0.0) string-ts: 2.2.0 ts-pattern: 5.4.0 optionalDependencies: @@ -14363,144 +14375,144 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-react-dom@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): + eslint-plugin-react-dom@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint: 9.11.1(jiti@2.0.0) + '@eslint-react/ast': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint: 9.12.0(jiti@2.0.0) ts-pattern: 5.4.0 optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-hooks-extra@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): + eslint-plugin-react-hooks-extra@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint: 9.11.1(jiti@2.0.0) + '@eslint-react/ast': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/type-utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint: 9.12.0(jiti@2.0.0) ts-pattern: 5.4.0 optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-hooks@5.1.0-rc-fb9a90fa48-20240614(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-react-hooks@5.1.0-rc-fb9a90fa48-20240614(eslint@9.12.0(jiti@2.0.0)): dependencies: - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) - eslint-plugin-react-naming-convention@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): + eslint-plugin-react-naming-convention@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint: 9.11.1(jiti@2.0.0) + '@eslint-react/ast': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/type-utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint: 9.12.0(jiti@2.0.0) ts-pattern: 5.4.0 optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-refresh@0.4.12(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-react-refresh@0.4.12(eslint@9.12.0(jiti@2.0.0)): dependencies: - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) - eslint-plugin-react-web-api@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): + eslint-plugin-react-web-api@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/ast': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) birecord: 0.1.1 - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) ts-pattern: 5.4.0 optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: - supports-color - eslint-plugin-react-x@1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): + eslint-plugin-react-x@1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@eslint-react/ast': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/core': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/jsx': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/shared': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/tools': 1.14.2 - '@eslint-react/types': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@eslint-react/var': 1.14.2(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/scope-manager': 8.7.0 - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/types': 8.7.0 - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint: 9.11.1(jiti@2.0.0) - is-immutable-type: 5.0.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/ast': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/core': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/jsx': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/shared': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/tools': 1.14.3 + '@eslint-react/types': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@eslint-react/var': 1.14.3(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/scope-manager': 8.8.1 + '@typescript-eslint/type-utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/types': 8.8.1 + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint: 9.12.0(jiti@2.0.0) + is-immutable-type: 5.0.0(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) ts-pattern: 5.4.0 optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: - supports-color - eslint-plugin-regexp@2.6.0(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-regexp@2.6.0(eslint@9.12.0(jiti@2.0.0)): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.11.1(jiti@2.0.0)) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.12.0(jiti@2.0.0)) '@eslint-community/regexpp': 4.11.1 comment-parser: 1.4.1 - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) jsdoc-type-pratt-parser: 4.1.0 refa: 0.12.1 regexp-ast-analysis: 0.7.1 scslre: 0.3.0 - eslint-plugin-simple-import-sort@12.1.1(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-simple-import-sort@12.1.1(eslint@9.12.0(jiti@2.0.0)): dependencies: - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) - eslint-plugin-tailwindcss@3.17.4(tailwindcss@3.4.13): + eslint-plugin-tailwindcss@3.17.5(tailwindcss@3.4.13): dependencies: fast-glob: 3.3.2 postcss: 8.4.47 tailwindcss: 3.4.13 - eslint-plugin-unicorn@55.0.0(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-unicorn@56.0.0(eslint@9.12.0(jiti@2.0.0)): dependencies: '@babel/helper-validator-identifier': 7.24.7 - '@eslint-community/eslint-utils': 4.4.0(eslint@9.11.1(jiti@2.0.0)) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.12.0(jiti@2.0.0)) ci-info: 4.0.0 clean-regexp: 1.0.0 core-js-compat: 3.38.1 - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) esquery: 1.6.0 - globals: 15.9.0 + globals: 15.11.0 indent-string: 4.0.0 is-builtin-module: 3.2.1 jsesc: 3.0.2 @@ -14511,11 +14523,11 @@ snapshots: semver: 7.6.3 strip-indent: 3.0.0 - eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0)): + eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.8.1(@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0)): dependencies: - eslint: 9.11.1(jiti@2.0.0) + eslint: 9.12.0(jiti@2.0.0) optionalDependencies: - '@typescript-eslint/eslint-plugin': 8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/eslint-plugin': 8.8.1(@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) eslint-scope@8.1.0: dependencies: @@ -14526,18 +14538,18 @@ snapshots: eslint-visitor-keys@4.1.0: {} - eslint@9.11.1(jiti@2.0.0): + eslint@9.12.0(jiti@2.0.0): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.11.1(jiti@2.0.0)) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.12.0(jiti@2.0.0)) '@eslint-community/regexpp': 4.11.1 '@eslint/config-array': 0.18.0 '@eslint/core': 0.6.0 '@eslint/eslintrc': 3.1.0 - '@eslint/js': 9.11.1 + '@eslint/js': 9.12.0 '@eslint/plugin-kit': 0.2.0 + '@humanfs/node': 0.16.5 '@humanwhocodes/module-importer': 1.0.1 - '@humanwhocodes/retry': 0.3.0 - '@nodelib/fs.walk': 1.2.8 + '@humanwhocodes/retry': 0.3.1 '@types/estree': 1.0.6 '@types/json-schema': 7.0.15 ajv: 6.12.6 @@ -14557,13 +14569,11 @@ snapshots: ignore: 5.3.2 imurmurhash: 0.1.4 is-glob: 4.0.3 - is-path-inside: 3.0.3 json-stable-stringify-without-jsonify: 1.0.1 lodash.merge: 4.6.2 minimatch: 3.1.2 natural-compare: 1.4.0 optionator: 0.9.4 - strip-ansi: 6.0.1 text-table: 0.2.0 optionalDependencies: jiti: 2.0.0 @@ -15045,7 +15055,7 @@ snapshots: globals@14.0.0: {} - globals@15.9.0: {} + globals@15.11.0: {} globalthis@1.0.4: dependencies: @@ -15489,10 +15499,10 @@ snapshots: is-hexadecimal@2.0.1: {} - is-immutable-type@5.0.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): + is-immutable-type@5.0.0(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@typescript-eslint/type-utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - eslint: 9.11.1(jiti@2.0.0) + '@typescript-eslint/type-utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + eslint: 9.12.0(jiti@2.0.0) ts-api-utils: 1.3.0(typescript@5.6.2) ts-declaration-location: 1.0.4(typescript@5.6.2) typescript: 5.6.2 @@ -15519,8 +15529,6 @@ snapshots: is-obj@2.0.0: {} - is-path-inside@3.0.3: {} - is-plain-obj@1.1.0: {} is-plain-obj@2.1.0: {} @@ -18290,11 +18298,11 @@ snapshots: type-fest@4.26.1: {} - typescript-eslint@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2): + typescript-eslint@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2): dependencies: - '@typescript-eslint/eslint-plugin': 8.7.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2))(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/parser': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) - '@typescript-eslint/utils': 8.7.0(eslint@9.11.1(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/eslint-plugin': 8.8.1(@typescript-eslint/parser@8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2))(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/parser': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) + '@typescript-eslint/utils': 8.8.1(eslint@9.12.0(jiti@2.0.0))(typescript@5.6.2) optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: From f023d6296aa3b64318bdb4ff9b0bc8056cbcd186 Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Oct 2024 11:59:46 +0800 Subject: [PATCH 14/49] chore: simply code Signed-off-by: Innei --- apps/renderer/src/components/ui/modal/stacked/overlay.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/renderer/src/components/ui/modal/stacked/overlay.tsx b/apps/renderer/src/components/ui/modal/stacked/overlay.tsx index b0aae5b90..f47a66014 100644 --- a/apps/renderer/src/components/ui/modal/stacked/overlay.tsx +++ b/apps/renderer/src/components/ui/modal/stacked/overlay.tsx @@ -2,6 +2,7 @@ import type { ForwardedRef } from "react" import { forwardRef } from "react" import { m } from "~/components/common/Motion" +import { stopPropagation } from "~/lib/dom" import { cn } from "~/lib/utils" import { RootPortal } from "../../portal" @@ -32,7 +33,7 @@ export const ModalOverlay = forwardRef( animate={{ opacity: 1 }} exit={{ opacity: 0 }} style={{ zIndex }} - onClick={(e) => e.stopPropagation()} + onClick={stopPropagation} /> ), From 59e12da7e1658209a6ef6570dabed80a461b8c85 Mon Sep 17 00:00:00 2001 From: Cesaryuan <35998162+cesaryuan@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:02:07 +0800 Subject: [PATCH 15/49] refactor: simplify context menu handling and add options (#845) --- apps/main/src/init.ts | 14 ++++++- apps/main/src/lib/context-menu.ts | 69 ------------------------------- apps/main/src/window.ts | 3 -- 3 files changed, 13 insertions(+), 73 deletions(-) delete mode 100644 apps/main/src/lib/context-menu.ts diff --git a/apps/main/src/init.ts b/apps/main/src/init.ts index b98019074..b7d28879d 100644 --- a/apps/main/src/init.ts +++ b/apps/main/src/init.ts @@ -78,7 +78,7 @@ export const registerMenuAndContextMenu = () => { showCopyImageAddress: true, showCopyImage: true, showInspectElement: isDev, - showSelectAll: false, + showSelectAll: true, showCopyVideoAddress: true, showSaveVideoAs: true, @@ -119,6 +119,18 @@ export const registerMenuAndContextMenu = () => { shell.openExternal(params.linkURL) }, }, + { + role: "undo", + label: t("menu.undo"), + accelerator: "CmdOrCtrl+Z", + visible: params.isEditable, + }, + { + role: "redo", + label: t("menu.redo"), + accelerator: "CmdOrCtrl+Shift+Z", + visible: params.isEditable, + }, ] }, }) diff --git a/apps/main/src/lib/context-menu.ts b/apps/main/src/lib/context-menu.ts deleted file mode 100644 index d146e300d..000000000 --- a/apps/main/src/lib/context-menu.ts +++ /dev/null @@ -1,69 +0,0 @@ -import type { BrowserWindow } from "electron" -import { clipboard, Menu } from "electron" - -import { t } from "./i18n" - -export const registerContextMenu = (window: BrowserWindow) => { - const handler = (_event: Electron.Event, props: Electron.ContextMenuParams) => { - const { selectionText, isEditable, linkURL } = props - - if (isEditable) { - const inputMenu = Menu.buildFromTemplate([ - { role: "undo", label: t("menu.undo"), accelerator: "CmdOrCtrl+Z" }, - { - role: "redo", - label: t("menu.redo"), - accelerator: "CmdOrCtrl+Shift+Z", - }, - { type: "separator" }, - { - role: "cut", - label: t("menu.cut"), - accelerator: "CmdOrCtrl+X", - }, - { - role: "copy", - label: t("menu.copy"), - accelerator: "CmdOrCtrl+C", - }, - { - role: "paste", - label: t("menu.paste"), - accelerator: "CmdOrCtrl+V", - }, - { - type: "separator", - }, - { role: "selectAll", label: t("menu.selectAll"), accelerator: "CmdOrCtrl+A" }, - ]) - inputMenu.popup({ - window, - }) - } else if (linkURL) { - const linkMenu = Menu.buildFromTemplate([ - { role: "copy", label: t("menu.copy"), accelerator: "CmdOrCtrl+C" }, - // Copy link - { - label: t("contextMenu.copyLink"), - accelerator: "CmdOrCtrl+Shift+C", - click: () => { - clipboard.writeText(linkURL) - }, - }, - ]) - linkMenu.popup({ window }) - } else if (selectionText && selectionText.trim() !== "") { - const selectionMenu = Menu.buildFromTemplate([ - { role: "copy", label: t("menu.copy"), accelerator: "CmdOrCtrl+C" }, - { type: "separator" }, - { role: "selectAll", label: t("menu.selectAll"), accelerator: "CmdOrCtrl+A" }, - ]) - selectionMenu.popup({ window }) - } - } - window.webContents.on("context-menu", handler) - - return () => { - window.webContents.removeListener("context-menu", handler) - } -} diff --git a/apps/main/src/window.ts b/apps/main/src/window.ts index 128433587..1635c1190 100644 --- a/apps/main/src/window.ts +++ b/apps/main/src/window.ts @@ -9,7 +9,6 @@ import { BrowserWindow, screen, shell } from "electron" import { isDev, isMacOS, isWindows, isWindows11 } from "./env" import { getIconPath } from "./helper" -import { registerContextMenu } from "./lib/context-menu" import { store } from "./lib/store" import { logger } from "./logger" import { cancelPollingUpdateUnreadCount, pollingUpdateUnreadCount } from "./tipc/dock" @@ -159,8 +158,6 @@ export function createWindow( }) } - registerContextMenu(window) - return window } export const windowStateStoreKey = "windowState" From 25a505a221f51d6cb70c0d2832b0cd5bbc62e26d Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Oct 2024 13:11:04 +0800 Subject: [PATCH 16/49] fix: generate invite code modal power icon style Signed-off-by: Innei --- apps/renderer/src/i18n.ts | 10 +++++++--- .../renderer/src/modules/settings/tabs/invitations.tsx | 9 +++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/apps/renderer/src/i18n.ts b/apps/renderer/src/i18n.ts index 377f055a8..956b1e4f4 100644 --- a/apps/renderer/src/i18n.ts +++ b/apps/renderer/src/i18n.ts @@ -7,6 +7,7 @@ import { EventBus } from "~/lib/event-bus" import { defaultNS, ns } from "./@types/constants" import { defaultResources } from "./@types/default-resource" import { getGeneralSettings } from "./atoms/settings/general" +import { isDev } from "./constants" import { Chain } from "./lib/chain" import { jotaiStore } from "./lib/jotai" import { getStorageNS } from "./lib/ns" @@ -42,14 +43,17 @@ export const initI18n = async () => { const i18next = jotaiStore.get(i18nAtom) const lang = getGeneralSettings().language - const cache = LocaleCache.shared.get(lang) const mergedResources = { ...defaultResources, } - if (cache) { - mergedResources[lang] = cache + let cache = null as any + if (!isDev) { + cache = LocaleCache.shared.get(lang) + if (cache) { + mergedResources[lang] = cache + } } await i18next.use(initReactI18next).init({ diff --git a/apps/renderer/src/modules/settings/tabs/invitations.tsx b/apps/renderer/src/modules/settings/tabs/invitations.tsx index b6fabb14b..ef44dc097 100644 --- a/apps/renderer/src/modules/settings/tabs/invitations.tsx +++ b/apps/renderer/src/modules/settings/tabs/invitations.tsx @@ -49,7 +49,9 @@ export const SettingInvitations = () => { INVITATION_PRICE, }} components={{ - PowerIcon: , + PowerIcon: ( + + ), }} i18nKey="invitation.generateCost" /> @@ -182,10 +184,9 @@ const ConfirmModalContent = ({ dismiss }: { dismiss: () => void }) => { INVITATION_PRICE, }} components={{ - PowerIcon: , - div:
, + PowerIcon: , }} - i18nKey="invitation.confirmModal.message" + i18nKey="invitation.generateCost" />
{t("invitation.confirmModal.confirm")}
From 8ff4343c46543d2b4901a28123c2ef494a879f2a Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Oct 2024 13:35:50 +0800 Subject: [PATCH 17/49] chore(ui): optimize user avatar transition Signed-off-by: Innei --- apps/renderer/src/components/user-button.tsx | 80 ++++++++++++-------- 1 file changed, 47 insertions(+), 33 deletions(-) diff --git a/apps/renderer/src/components/user-button.tsx b/apps/renderer/src/components/user-button.tsx index 8e4777df5..a35ea4a3e 100644 --- a/apps/renderer/src/components/user-button.tsx +++ b/apps/renderer/src/components/user-button.tsx @@ -1,14 +1,13 @@ import { repository } from "@pkg" -import { m } from "framer-motion" import type { FC } from "react" -import { memo } from "react" +import { forwardRef, memo, useState } from "react" import { useTranslation } from "react-i18next" import { Link } from "react-router-dom" import { useWhoami } from "~/atoms/user" import { Avatar, AvatarFallback, AvatarImage } from "~/components/ui/avatar" import { useSignOut } from "~/hooks/biz/useSignOut" -import { useAuthQuery } from "~/hooks/common" +import { useAuthQuery, useMeasure } from "~/hooks/common" import { apiClient } from "~/lib/api-fetch" import { defineQuery } from "~/lib/defineQuery" import { nextFrame } from "~/lib/dom" @@ -34,6 +33,7 @@ import { } from "./ui/dropdown-menu/dropdown-menu" import { PlainModal } from "./ui/modal/stacked/custom-modal" import { useModalStack } from "./ui/modal/stacked/hooks" +import { RootPortal } from "./ui/portal" interface LoginProps { method?: "redirect" | "modal" @@ -73,32 +73,38 @@ export const ProfileButton: FC = memo((props) => { const presentUserProfile = usePresentUserProfileModal("dialog") const presentAchievement = useAchievementModal() const { t } = useTranslation() + const [ref, { x, y }] = useMeasure() + const [dropdown, setDropdown] = useState(false) if (status !== "authenticated") { return } return ( - + - + + + + + - - - - -
{user?.name}
@@ -111,7 +117,7 @@ export const ProfileButton: FC = memo((props) => { nextFrame(() => settingModalPresent("wallet")) }} > -
+
@@ -120,6 +126,7 @@ export const ProfileButton: FC = memo((props) => { { presentUserProfile(user?.id) }} @@ -129,6 +136,7 @@ export const ProfileButton: FC = memo((props) => { { presentAchievement() }} @@ -139,6 +147,7 @@ export const ProfileButton: FC = memo((props) => { { nextFrame(settingModalPresent) }} @@ -150,6 +159,7 @@ export const ProfileButton: FC = memo((props) => { {!window.electron && ( <> { window.open(`${repository.url}/releases`) }} @@ -160,7 +170,11 @@ export const ProfileButton: FC = memo((props) => { )} - }> + } + > {t("user_button.log_out")} @@ -169,20 +183,17 @@ export const ProfileButton: FC = memo((props) => { }) ProfileButton.displayName = "ProfileButton" -export function UserAvatar({ - className, - avatarClassName, - hideName, - userId, - enableModal, - ...props -}: { - className?: string - avatarClassName?: string - hideName?: boolean - userId?: string - enableModal?: boolean -} & LoginProps) { +export const UserAvatar = forwardRef< + HTMLDivElement, + { + className?: string + avatarClassName?: string + hideName?: boolean + userId?: string + enableModal?: boolean + style?: React.CSSProperties + } & LoginProps +>(({ className, avatarClassName, hideName, userId, enableModal, style, ...props }, ref) => { const { session, status } = useSession({ enabled: !userId, }) @@ -207,6 +218,8 @@ export function UserAvatar({ const renderUserData = userId ? profile.data : session?.user return (
{renderUserData?.name}
}
) -} +}) +UserAvatar.displayName = "UserAvatar" function PowerButton() { const user = useWhoami() const wallet = useWallet({ userId: user?.id }) From e09dce467b4c13fc585646a944e8b77a1903d4d7 Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Oct 2024 13:44:12 +0800 Subject: [PATCH 18/49] fix: trending icon Signed-off-by: Innei --- apps/renderer/src/components/icons/crown.tsx | 17 ----------------- apps/renderer/src/modules/trending/index.tsx | 9 ++++++--- icons/mgc/VIP_2_cute_re.svg | 1 + 3 files changed, 7 insertions(+), 20 deletions(-) delete mode 100644 apps/renderer/src/components/icons/crown.tsx create mode 100644 icons/mgc/VIP_2_cute_re.svg diff --git a/apps/renderer/src/components/icons/crown.tsx b/apps/renderer/src/components/icons/crown.tsx deleted file mode 100644 index 0bf2fbb10..000000000 --- a/apps/renderer/src/components/icons/crown.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import type { SVGProps } from "react" -import React from "react" - -export function IconoirBrightCrown(props: SVGProps) { - return ( - - - - ) -} diff --git a/apps/renderer/src/modules/trending/index.tsx b/apps/renderer/src/modules/trending/index.tsx index 43453c75b..ea5304e74 100644 --- a/apps/renderer/src/modules/trending/index.tsx +++ b/apps/renderer/src/modules/trending/index.tsx @@ -5,7 +5,6 @@ import { useTranslation } from "react-i18next" import { getTrendingAggregates } from "~/api/trending" import { FeedIcon } from "~/components/feed-icon" -import { IconoirBrightCrown } from "~/components/icons/crown" import { PhUsersBold } from "~/components/icons/users" import { Avatar, AvatarFallback, AvatarImage } from "~/components/ui/avatar" import { ActionButton, Button } from "~/components/ui/button" @@ -171,8 +170,12 @@ const TrendingUsers: FC<{ data: User[] }> = ({ data }) => {

{t("trending.user")}

-
- +
+ +
+ +
+
{data.slice(0, 3).map((user, index: number) => ( diff --git a/icons/mgc/VIP_2_cute_re.svg b/icons/mgc/VIP_2_cute_re.svg new file mode 100644 index 000000000..de0f1906b --- /dev/null +++ b/icons/mgc/VIP_2_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file From 2aa4fe118e850fe57ac5cd201f5e7efe4c25a22f Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Oct 2024 14:06:09 +0800 Subject: [PATCH 19/49] chore: split achievement code Signed-off-by: Innei --- apps/renderer/src/components/user-button.tsx | 28 +- .../achievement/AchievementModalContent.tsx | 283 ++++++++++++++++++ .../src/modules/achievement/hooks.tsx | 283 +----------------- 3 files changed, 300 insertions(+), 294 deletions(-) create mode 100644 apps/renderer/src/modules/achievement/AchievementModalContent.tsx diff --git a/apps/renderer/src/components/user-button.tsx b/apps/renderer/src/components/user-button.tsx index a35ea4a3e..6fccb16ca 100644 --- a/apps/renderer/src/components/user-button.tsx +++ b/apps/renderer/src/components/user-button.tsx @@ -87,19 +87,21 @@ export const ProfileButton: FC = memo((props) => { - - - + {x !== 0 && y !== 0 && ( + + + + )} = { + [AchievementsActionIdMap.FIRST_CLAIM_FEED]: { + title: "achievement.first_claim_feed", + description: "achievement.first_claim_feed_description", + }, +} + +export const AchievementModalContent: FC = () => { + const jotaiStore = useStore() + const queryClient = useQueryClient() + + const defaultAchievements = useSingleton(buildDefaultAchievements) + + const _achievementType = apiClient.achievement.$get({ + query: { + type: "all", + }, + }) + type Achievement = Awaited["data"] + const { + data: achievements, + isLoading, + refetch, + } = useQuery({ + queryKey: ["achievements"], + meta: { + persist: true, + }, + queryFn: async () => { + const res = await apiClient.achievement.$get({ + query: { + type: "all", + }, + }) + + jotaiStore.set(achievementsDataAtom.current, res.data) + return res.data + }, + initialData: defaultAchievements.current as Achievement, + }) + + useEffect(() => { + if (!achievements) return + let shouldPolling = false + const pollingChain = new Chain() + for (const achievement of achievements) { + if (achievement.type === "checking") { + shouldPolling = true + break + } + } + + if (shouldPolling) { + pollingChain.wait(2000).next(() => { + refetch() + }) + } + + return () => { + pollingChain.abort() + } + }, [achievements, refetch]) + + const { mutateAsync: mintAchievement, isPending: isMinting } = useMutation({ + mutationFn: async (actionId: number) => { + return apiClient.achievement.$put({ + json: { + actionId, + }, + }) + }, + }) + const achievementsDataAtom = useSingleton(() => atom()) + const { mutateAsync: checkAchievement, isPending: checkPending } = useMutation({ + mutationFn: async (actionId: number) => { + return apiClient.achievement.check.$post({ + json: { + actionId, + }, + }) + }, + onSuccess: () => { + refetch() + }, + }) + const t = useI18n() + + return ( +
+ + +
{t("words.achievement")}
+ + + + {t("words.power")} + + + ), + }} + /> + + +
    + {isLoading ? ( +
    + } size="large" /> +
    + ) : ( + achievements?.map((achievement) => { + const copy = achievementActionIdCopyMap[achievement.actionId] + if (!copy) return null + + return ( +
  • +
    +
    + {t(copy.title)} + + {achievement.power && ( + + {achievement.power} + + + )} +
    +
    + {t(copy.description)} +
    +
    + + {achievement.type === "checking" && ( +
    + + {t("words.mint")} +
    + )} + + {achievement.type === "incomplete" && ( + + )} + + {achievement.type === "received" && ( +
    + + {t("achievement.all_done")} +
    + )} + {achievement.type === "completed" && ( + + )} +
  • + ) + }) + )} +
+
+ ) +} + +const buildDefaultAchievements = () => { + return [ + { + id: nanoid(), + actionId: AchievementsActionIdMap.FIRST_CLAIM_FEED, + type: "checking", + progress: 0, + progressMax: 0, + }, + ] +} diff --git a/apps/renderer/src/modules/achievement/hooks.tsx b/apps/renderer/src/modules/achievement/hooks.tsx index f64af8224..709e1f098 100644 --- a/apps/renderer/src/modules/achievement/hooks.tsx +++ b/apps/renderer/src/modules/achievement/hooks.tsx @@ -1,38 +1,9 @@ -import { DotLottieReact } from "@lottiefiles/dotlottie-react" -import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query" -import { useSingleton } from "foxact/use-singleton" -import { atom, useStore } from "jotai" -import { nanoid } from "nanoid" -import type { FC } from "react" -import { useCallback, useEffect } from "react" -import { Trans } from "react-i18next" +import { useCallback } from "react" -import { Button } from "~/components/ui/button" -import { styledButtonVariant } from "~/components/ui/button/variants" -import { LoadingCircle, LoadingWithIcon } from "~/components/ui/loading" import { useModalStack } from "~/components/ui/modal" import { SlideUpModal } from "~/components/ui/modal/stacked/custom-modal" -import { useI18n } from "~/hooks/common" -import { apiClient } from "~/lib/api-fetch" -import { Chain } from "~/lib/chain" -import { cn } from "~/lib/utils" -import achievementAnimationUri from "~/lottie/achievement.lottie?url" -const absoluteachievementAnimationUri = new URL(achievementAnimationUri, import.meta.url).href - -enum AchievementsActionIdMap { - FIRST_CLAIM_FEED = 0, -} - -const achievementActionIdCopyMap: Record< - AchievementsActionIdMap, - { title: I18nKeys; description: I18nKeys } -> = { - [AchievementsActionIdMap.FIRST_CLAIM_FEED]: { - title: "achievement.first_claim_feed", - description: "achievement.first_claim_feed_description", - }, -} +import { AchievementModalContent } from "./AchievementModalContent" export const useAchievementModal = () => { const { present } = useModalStack() @@ -47,253 +18,3 @@ export const useAchievementModal = () => { }) }, [present]) } - -const buildDefaultAchievements = () => { - return [ - { - id: nanoid(), - actionId: AchievementsActionIdMap.FIRST_CLAIM_FEED, - type: "checking", - progress: 0, - progressMax: 0, - }, - ] -} -export const AchievementModalContent: FC = () => { - const jotaiStore = useStore() - const queryClient = useQueryClient() - - const defaultAchievements = useSingleton(buildDefaultAchievements) - - const _achievementType = apiClient.achievement.$get({ - query: { - type: "all", - }, - }) - type Achievement = Awaited["data"] - const { - data: achievements, - isLoading, - refetch, - } = useQuery({ - queryKey: ["achievements"], - meta: { - persist: true, - }, - queryFn: async () => { - const res = await apiClient.achievement.$get({ - query: { - type: "all", - }, - }) - - jotaiStore.set(achievementsDataAtom.current, res.data) - return res.data - }, - initialData: defaultAchievements.current as Achievement, - }) - - useEffect(() => { - if (!achievements) return - let shouldPolling = false - const pollingChain = new Chain() - for (const achievement of achievements) { - if (achievement.type === "checking") { - shouldPolling = true - break - } - } - - if (shouldPolling) { - pollingChain.wait(2000).next(() => { - refetch() - }) - } - - return () => { - pollingChain.abort() - } - }, [achievements, refetch]) - - const { mutateAsync: mintAchievement, isPending: isMinting } = useMutation({ - mutationFn: async (actionId: number) => { - return apiClient.achievement.$put({ - json: { - actionId, - }, - }) - }, - }) - const achievementsDataAtom = useSingleton(() => atom()) - const { mutateAsync: checkAchievement, isPending: checkPending } = useMutation({ - mutationFn: async (actionId: number) => { - return apiClient.achievement.check.$post({ - json: { - actionId, - }, - }) - }, - onSuccess: () => { - refetch() - }, - }) - const t = useI18n() - - return ( -
- - -
{t("words.achievement")}
- - - - {t("words.power")} - - - ), - }} - /> - - -
    - {isLoading ? ( -
    - } size="large" /> -
    - ) : ( - achievements?.map((achievement) => { - const copy = achievementActionIdCopyMap[achievement.actionId] - if (!copy) return null - - return ( -
  • -
    -
    - {t(copy.title)} - - {achievement.power && ( - - {achievement.power} - - - )} -
    -
    - {t(copy.description)} -
    -
    - - {achievement.type === "checking" && ( -
    - - {t("words.mint")} -
    - )} - - {achievement.type === "incomplete" && ( - - )} - - {achievement.type === "received" && ( -
    - - {t("achievement.all_done")} -
    - )} - {achievement.type === "completed" && ( - - )} -
  • - ) - }) - )} -
-
- ) -} From 86ce16571751c19b64def3dac972f9a5ce37f130 Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Oct 2024 14:34:57 +0800 Subject: [PATCH 20/49] fix: code language detection more approximate Signed-off-by: Innei --- .../src/modules/language-detection/index.ts | 115 ++++++++++++++++++ apps/main/src/tipc/reader.ts | 28 +++-- .../ui/code-highlighter/shiki/Shiki.tsx | 13 +- 3 files changed, 140 insertions(+), 16 deletions(-) create mode 100644 apps/main/src/modules/language-detection/index.ts diff --git a/apps/main/src/modules/language-detection/index.ts b/apps/main/src/modules/language-detection/index.ts new file mode 100644 index 000000000..9e683d5f0 --- /dev/null +++ b/apps/main/src/modules/language-detection/index.ts @@ -0,0 +1,115 @@ +// @see https://github.dev/microsoft/vscode/blob/main/src/vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker.ts +import { createRequire } from "node:module" + +import type { ModelResult } from "vscode-languagedetection" +import type vsld from "vscode-languagedetection" + +import { logger } from "~/logger" + +const expectedRelativeConfidence = 0.1 +const positiveConfidenceCorrectionBucket1 = 0.05 +const positiveConfidenceCorrectionBucket2 = 0.025 +const negativeConfidenceCorrection = 0.5 + +const adjustLanguageConfidence = (modelResult: vsld.ModelResult): vsld.ModelResult => { + switch (modelResult.languageId) { + // For the following languages, we increase the confidence because + // these are commonly used languages in VS Code and supported + // by the model. + case "js": + case "html": + case "json": + case "ts": + case "css": + case "py": + case "xml": + case "php": { + modelResult.confidence += positiveConfidenceCorrectionBucket1 + break + } + // case 'yaml': // YAML has been know to cause incorrect language detection because the language is pretty simple. We don't want to increase the confidence for this. + case "cpp": + case "sh": + case "java": + case "cs": + case "c": { + modelResult.confidence += positiveConfidenceCorrectionBucket2 + break + } + + // For the following languages, we need to be extra confident that the language is correct because + // we've had issues like #131912 that caused incorrect guesses. To enforce this, we subtract the + // negativeConfidenceCorrection from the confidence. + + // languages that are provided by default in VS Code + case "bat": + case "ini": + case "makefile": + case "sql": + case "csv": + case "toml": { + // Other considerations for negativeConfidenceCorrection that + // aren't built in but suportted by the model include: + // * Assembly, TeX - These languages didn't have clear language modes in the community + // * Markdown, Dockerfile - These languages are simple but they embed other languages + modelResult.confidence -= negativeConfidenceCorrection + break + } + + default: { + break + } + } + return modelResult +} +const require = createRequire(import.meta.url) + +export const detectCodeStringLanguage = async function* (codeString: string) { + const { ModelOperations } = + require("vscode-languagedetection") as typeof import("vscode-languagedetection") + const modelOperations = new ModelOperations() + const modelResults = await modelOperations.runModel(codeString) + if (modelResults.length === 0) { + logger.debug("no model results", codeString) + return + } + const firstModelResult = adjustLanguageConfidence(modelResults[0]) + if (firstModelResult.confidence < expectedRelativeConfidence) { + logger.debug("first model result confidence is less than expected relative confidence") + return + } + + const possibleLanguages: ModelResult[] = [firstModelResult] + + for (let current of modelResults) { + if (current === firstModelResult) { + continue + } + + current = adjustLanguageConfidence(current) + const currentHighest = possibleLanguages.at(-1) + if (!currentHighest) { + logger.debug("no current highest") + continue + } + + if (currentHighest.confidence - current.confidence >= expectedRelativeConfidence) { + while (possibleLanguages.length > 0) { + yield possibleLanguages.shift()! + } + if (current.confidence > expectedRelativeConfidence) { + possibleLanguages.push(current) + continue + } + return + } else { + if (current.confidence > expectedRelativeConfidence) { + possibleLanguages.push(current) + continue + } + return + } + } + + return possibleLanguages +} diff --git a/apps/main/src/tipc/reader.ts b/apps/main/src/tipc/reader.ts index d21aa085c..63646694e 100644 --- a/apps/main/src/tipc/reader.ts +++ b/apps/main/src/tipc/reader.ts @@ -1,15 +1,16 @@ import fs from "node:fs" -import { createRequire } from "node:module" import path from "node:path" import { callWindowExpose } from "@follow/shared/bridge" import { app, BrowserWindow } from "electron" import { MsEdgeTTS, OUTPUT_FORMAT } from "msedge-tts" +import type { ModelResult } from "vscode-languagedetection" + +import { detectCodeStringLanguage } from "~/modules/language-detection" import { readability } from "../lib/readability" import { t } from "./_instance" -const require = createRequire(import.meta.url) const tts = new MsEdgeTTS() export const readerRoute = { @@ -54,7 +55,7 @@ export const readerRoute = { if (!window) { return } - callWindowExpose(window).toast.error(error.message, { + return callWindowExpose(window).toast.error(error.message, { duration: 1000, }) } @@ -67,7 +68,7 @@ export const readerRoute = { } await tts.setMetadata(input, OUTPUT_FORMAT.WEBM_24KHZ_16BIT_MONO_OPUS).catch((error) => { - callWindowExpose(window).toast.error(error.message, { + return callWindowExpose(window).toast.error(error.message, { duration: 1000, }) }) @@ -76,9 +77,20 @@ export const readerRoute = { detectCodeStringLanguage: t.procedure .input<{ codeString: string }>() .action(async ({ input }) => { - const { ModelOperations } = require("vscode-languagedetection") - const modelOperations = new ModelOperations() - const result = await modelOperations.runModel(input.codeString) - return result + const { codeString } = input + const languages = detectCodeStringLanguage(codeString) + + let finalLanguage: ModelResult | undefined + for await (const language of languages) { + if (!finalLanguage) { + finalLanguage = language + continue + } + if (language.confidence > finalLanguage.confidence) { + finalLanguage = language + } + } + + return finalLanguage }), } diff --git a/apps/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx b/apps/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx index 4254e6ebb..9ce4199fe 100644 --- a/apps/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx +++ b/apps/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx @@ -45,23 +45,20 @@ export const ShikiHighLighter: FC = (props) => { if (language || !isElectronBuild) return if (!bundledLanguagesKeysSet) { - import("shiki/langs") + void import("shiki/langs") .then(({ bundledLanguages }) => { langModule = bundledLanguages bundledLanguagesKeysSet = new Set(Object.keys(bundledLanguages)) }) .then(guessLanguage) } else { - guessLanguage() + void guessLanguage() } function guessLanguage() { - tipcClient?.detectCodeStringLanguage({ codeString: code }).then((result) => { - for (const item of result) { - if (bundledLanguagesKeysSet?.has(item.languageId)) { - setCurrentLanguage(item.languageId) - break - } + return tipcClient?.detectCodeStringLanguage({ codeString: code }).then((result) => { + if (bundledLanguagesKeysSet?.has(result.languageId)) { + setCurrentLanguage(result.languageId) } }) } From afb7997de2601495a643d8d7cc897adea05081b5 Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Oct 2024 14:39:41 +0800 Subject: [PATCH 21/49] fix: type error Signed-off-by: Innei --- apps/main/src/tipc/reader.ts | 2 +- .../src/components/ui/code-highlighter/shiki/Shiki.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/main/src/tipc/reader.ts b/apps/main/src/tipc/reader.ts index 63646694e..47b0bbb50 100644 --- a/apps/main/src/tipc/reader.ts +++ b/apps/main/src/tipc/reader.ts @@ -55,7 +55,7 @@ export const readerRoute = { if (!window) { return } - return callWindowExpose(window).toast.error(error.message, { + void callWindowExpose(window).toast.error(error.message, { duration: 1000, }) } diff --git a/apps/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx b/apps/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx index 9ce4199fe..2cb6b82ae 100644 --- a/apps/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx +++ b/apps/renderer/src/components/ui/code-highlighter/shiki/Shiki.tsx @@ -57,6 +57,9 @@ export const ShikiHighLighter: FC = (props) => { function guessLanguage() { return tipcClient?.detectCodeStringLanguage({ codeString: code }).then((result) => { + if (!result) { + return + } if (bundledLanguagesKeysSet?.has(result.languageId)) { setCurrentLanguage(result.languageId) } From f11eb198157f26861b3d69965f051c2a5b02886e Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Oct 2024 14:50:11 +0800 Subject: [PATCH 22/49] fix: context menu item title should use title case Signed-off-by: Innei --- .../src/hooks/biz/useEntryActions.tsx | 2 +- locales/app/en.json | 72 +++++++++---------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/apps/renderer/src/hooks/biz/useEntryActions.tsx b/apps/renderer/src/hooks/biz/useEntryActions.tsx index c093b5cc9..1b2c006c2 100644 --- a/apps/renderer/src/hooks/biz/useEntryActions.tsx +++ b/apps/renderer/src/hooks/biz/useEntryActions.tsx @@ -364,7 +364,7 @@ export const useEntryActions = ({ key: "copyTitle", name: t("entry_actions.copy_title"), className: tw`i-mgc-copy-cute-re`, - hide: !populatedEntry.entries.title, + hide: !populatedEntry.entries.title || type === "toolbar", shortcut: shortcuts.entry.copyTitle.key, onClick: () => { if (!populatedEntry.entries.title) return diff --git a/locales/app/en.json b/locales/app/en.json index 59a7aaae5..a34d7e520 100644 --- a/locales/app/en.json +++ b/locales/app/en.json @@ -52,28 +52,28 @@ "discover.target.lists": "Lists", "early_access": "Early Access", "entry_actions.copied_notify": "{{which}} copied to clipboard.", - "entry_actions.copy_link": "Copy link", - "entry_actions.copy_title": "Copy title", + "entry_actions.copy_link": "Copy Link", + "entry_actions.copy_title": "Copy Title", "entry_actions.failed_to_save_to_eagle": "Failed to save to Eagle.", "entry_actions.failed_to_save_to_instapaper": "Failed to save to Instapaper.", "entry_actions.failed_to_save_to_readwise": "Failed to save to Readwise.", - "entry_actions.mark_as_read": "Mark as read", - "entry_actions.mark_as_unread": "Mark as unread", - "entry_actions.open_in_browser": "Open in {{which}}", + "entry_actions.mark_as_read": "Mark as Read", + "entry_actions.mark_as_unread": "Mark as Unread", + "entry_actions.open_in_browser": "Open In {{which}}", "entry_actions.recent_reader": "Recent reader:", - "entry_actions.save_media_to_eagle": "Save media to Eagle", - "entry_actions.save_to_instapaper": "Save to Instapaper", - "entry_actions.save_to_readwise": "Save to Readwise", - "entry_actions.saved_to_eagle": "Saved to Eagle.", - "entry_actions.saved_to_instapaper": "Saved to Instapaper.", - "entry_actions.saved_to_readwise": "Saved to Readwise.", + "entry_actions.save_media_to_eagle": "Save Media To Eagle", + "entry_actions.save_to_instapaper": "Save To Instapaper", + "entry_actions.save_to_readwise": "Save To Readwise", + "entry_actions.saved_to_eagle": "Saved To Eagle.", + "entry_actions.saved_to_instapaper": "Saved To Instapaper.", + "entry_actions.saved_to_readwise": "Saved To Readwise.", "entry_actions.share": "Share", "entry_actions.star": "Star", "entry_actions.starred": "Starred.", "entry_actions.tip": "Tip", "entry_actions.unstar": "Unstar", "entry_actions.unstarred": "Unstarred.", - "entry_actions.view_source_content": "View source content", + "entry_actions.view_source_content": "View Source Content", "entry_column.filtered_content_tip": "You have filtered content hidden.", "entry_column.filtered_content_tip_2": "In addition to the entries shown above, there is also filtered content.", "entry_column.refreshing": "Refreshing new entries...", @@ -199,33 +199,33 @@ "sidebar.category_remove_dialog.title": "Remove Category", "sidebar.feed_actions.claim": "Claim", "sidebar.feed_actions.claim_feed": "Claim Feed", - "sidebar.feed_actions.copy_email_address": "Copy email address", - "sidebar.feed_actions.copy_feed_id": "Copy feed ID", - "sidebar.feed_actions.copy_feed_url": "Copy feed URL", - "sidebar.feed_actions.copy_list_id": "Copy list ID", - "sidebar.feed_actions.copy_list_url": "Copy list URL", - "sidebar.feed_actions.create_list": "Create New list", + "sidebar.feed_actions.copy_email_address": "Copy Email Address", + "sidebar.feed_actions.copy_feed_id": "Copy Feed ID", + "sidebar.feed_actions.copy_feed_url": "Copy Feed URL", + "sidebar.feed_actions.copy_list_id": "Copy List ID", + "sidebar.feed_actions.copy_list_url": "Copy List URL", + "sidebar.feed_actions.create_list": "Create New List", "sidebar.feed_actions.edit": "Edit", - "sidebar.feed_actions.edit_feed": "Edit feed", - "sidebar.feed_actions.edit_inbox": "Edit inbox", - "sidebar.feed_actions.edit_list": "Edit list", + "sidebar.feed_actions.edit_feed": "Edit Feed", + "sidebar.feed_actions.edit_inbox": "Edit Inbox", + "sidebar.feed_actions.edit_list": "Edit List", "sidebar.feed_actions.feed_owned_by_you": "This feed is owned by you", - "sidebar.feed_actions.list_owned_by_you": "This list is owned by you", - "sidebar.feed_actions.mark_all_as_read": "Mark all as read", - "sidebar.feed_actions.navigate_to_feed": "Navigate to feed", - "sidebar.feed_actions.navigate_to_list": "Navigate to list", - "sidebar.feed_actions.new_inbox": "New inbox", - "sidebar.feed_actions.open_feed_in_browser": "Open feed in {{which}}", - "sidebar.feed_actions.open_list_in_browser": "Open list in {{which}}", - "sidebar.feed_actions.open_site_in_browser": "Open site in {{which}}", + "sidebar.feed_actions.list_owned_by_you": "This List is owned by you", + "sidebar.feed_actions.mark_all_as_read": "Mark All as Read", + "sidebar.feed_actions.navigate_to_feed": "Navigate to Feed", + "sidebar.feed_actions.navigate_to_list": "Navigate to List", + "sidebar.feed_actions.new_inbox": "New Inbox", + "sidebar.feed_actions.open_feed_in_browser": "Open Feed in {{which}}", + "sidebar.feed_actions.open_list_in_browser": "Open List in {{which}}", + "sidebar.feed_actions.open_site_in_browser": "Open Site in {{which}}", "sidebar.feed_actions.unfollow": "Unfollow", - "sidebar.feed_actions.unfollow_feed": "Unfollow feed", - "sidebar.feed_column.context_menu.add_feeds_to_list": "Add feeds to list", - "sidebar.feed_column.context_menu.change_to_other_view": "Switch to another view", - "sidebar.feed_column.context_menu.delete_category": "Delete category", - "sidebar.feed_column.context_menu.delete_category_confirmation": "Delete category {{folderName}}?", - "sidebar.feed_column.context_menu.mark_as_read": "Mark as read", - "sidebar.feed_column.context_menu.rename_category": "Rename category", + "sidebar.feed_actions.unfollow_feed": "Unfollow Feed", + "sidebar.feed_column.context_menu.add_feeds_to_list": "Add Feeds to List", + "sidebar.feed_column.context_menu.change_to_other_view": "Switch to Another View", + "sidebar.feed_column.context_menu.delete_category": "Delete Category", + "sidebar.feed_column.context_menu.delete_category_confirmation": "Delete Category {{folderName}}?", + "sidebar.feed_column.context_menu.mark_as_read": "Mark as Read", + "sidebar.feed_column.context_menu.rename_category": "Rename Category", "sidebar.select_sort_method": "Select a sort method", "signin.continue_with_github": "Continue with GitHub", "signin.continue_with_google": "Continue with Google", From 81ca589c95ac3b8d9d5cdfbf15faaa8d954fb7d4 Mon Sep 17 00:00:00 2001 From: Johnny <765042894@qq.com> Date: Thu, 10 Oct 2024 15:04:54 +0800 Subject: [PATCH 23/49] fix: avatar element masking button (#852) --- .../src/modules/entry-content/components/EntryReadHistory.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/entry-content/components/EntryReadHistory.tsx b/apps/renderer/src/modules/entry-content/components/EntryReadHistory.tsx index 92de0a1f7..df6d73b13 100644 --- a/apps/renderer/src/modules/entry-content/components/EntryReadHistory.tsx +++ b/apps/renderer/src/modules/entry-content/components/EntryReadHistory.tsx @@ -61,7 +61,7 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({ entryId }) => +
*/} +
+ ) +} diff --git a/apps/renderer/src/modules/power/hooks.tsx b/apps/renderer/src/modules/power/hooks.tsx new file mode 100644 index 000000000..57ec1e8bb --- /dev/null +++ b/apps/renderer/src/modules/power/hooks.tsx @@ -0,0 +1,19 @@ +import { t } from "i18next" +import { useCallback } from "react" + +import { useModalStack } from "~/components/ui/modal" +import { SlideUpModal } from "~/components/ui/modal/stacked/custom-modal" + +import { PowerModalContent } from "./PowerModalContent" + +export const usePowerModal = () => { + const { present } = useModalStack() + + return useCallback(() => { + return present({ + title: t("settings:titles.power"), + content: () => , + CustomModalComponent: SlideUpModal.class(tw`aspect-[7/8]`), + }) + }, [present]) +} diff --git a/apps/renderer/src/modules/settings/tabs/wallet/my-wallet-section/claim-daily-reward.tsx b/apps/renderer/src/modules/power/my-wallet-section/claim-daily-reward.tsx similarity index 100% rename from apps/renderer/src/modules/settings/tabs/wallet/my-wallet-section/claim-daily-reward.tsx rename to apps/renderer/src/modules/power/my-wallet-section/claim-daily-reward.tsx diff --git a/apps/renderer/src/modules/settings/tabs/wallet/my-wallet-section/create-wallet.tsx b/apps/renderer/src/modules/power/my-wallet-section/create-wallet.tsx similarity index 100% rename from apps/renderer/src/modules/settings/tabs/wallet/my-wallet-section/create-wallet.tsx rename to apps/renderer/src/modules/power/my-wallet-section/create-wallet.tsx diff --git a/apps/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx b/apps/renderer/src/modules/power/my-wallet-section/index.tsx similarity index 98% rename from apps/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx rename to apps/renderer/src/modules/power/my-wallet-section/index.tsx index 24129b733..67cc6e586 100644 --- a/apps/renderer/src/modules/settings/tabs/wallet/my-wallet-section/index.tsx +++ b/apps/renderer/src/modules/power/my-wallet-section/index.tsx @@ -4,7 +4,6 @@ import { Trans, useTranslation } from "react-i18next" import { useWhoami } from "~/atoms/user" import { Button } from "~/components/ui/button" import { CopyButton } from "~/components/ui/code-highlighter" -import { Divider } from "~/components/ui/divider" import { LoadingWithIcon } from "~/components/ui/loading" import { Tooltip, TooltipContent, TooltipPortal, TooltipTrigger } from "~/components/ui/tooltip" import { DAILY_CLAIM_AMOUNT } from "~/constants" @@ -125,7 +124,6 @@ export const MyWalletSection = () => {
- ) } diff --git a/apps/renderer/src/modules/settings/tabs/wallet/my-wallet-section/withdraw.tsx b/apps/renderer/src/modules/power/my-wallet-section/withdraw.tsx similarity index 100% rename from apps/renderer/src/modules/settings/tabs/wallet/my-wallet-section/withdraw.tsx rename to apps/renderer/src/modules/power/my-wallet-section/withdraw.tsx diff --git a/apps/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx b/apps/renderer/src/modules/power/transaction-section/index.tsx similarity index 96% rename from apps/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx rename to apps/renderer/src/modules/power/transaction-section/index.tsx index bdb85c762..93117943a 100644 --- a/apps/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx +++ b/apps/renderer/src/modules/power/transaction-section/index.tsx @@ -23,7 +23,7 @@ import { SettingSectionTitle } from "~/modules/settings/section" import { Balance } from "~/modules/wallet/balance" import { useWallet, useWalletTransactions } from "~/queries/wallet" -export const TransactionsSection = () => { +export const TransactionsSection: Component = ({ className }) => { const { t } = useTranslation("settings") const user = useWhoami() const wallet = useWallet({ userId: user?.id }) @@ -35,7 +35,7 @@ export const TransactionsSection = () => { if (transactions.isLoading) { return ( -
+
) @@ -45,9 +45,9 @@ export const TransactionsSection = () => {
-
+
- + {t("wallet.transactions.type")} diff --git a/apps/renderer/src/modules/settings/tabs/general.tsx b/apps/renderer/src/modules/settings/tabs/general.tsx index 2af1f0fdd..f21170432 100644 --- a/apps/renderer/src/modules/settings/tabs/general.tsx +++ b/apps/renderer/src/modules/settings/tabs/general.tsx @@ -133,7 +133,7 @@ export const SettingGeneral = () => { }), { label: t("general.rebuild_database.label"), - action: async () => { + action: () => { present({ title: t("general.rebuild_database.title"), clickOutsideToDismiss: true, @@ -143,7 +143,7 @@ export const SettingGeneral = () => {

{t("general.rebuild_database.warning.line2")}

- - - {t("wallet.transactions.type")} - - - {t("wallet.transactions.amount")} - - - {t("wallet.transactions.from")} - - - {t("wallet.transactions.to")} - - - {t("wallet.transactions.date")} - - - {t("wallet.transactions.tx")} - + + {t("wallet.transactions.type")} + {t("wallet.transactions.amount")} + {t("wallet.transactions.from")} + {t("wallet.transactions.to")} + {t("wallet.transactions.date")} + {t("wallet.transactions.tx")} {transactions.data?.map((row) => ( - + - + - + - + - + - + - {row.hash.slice(0, 6)}... + {row.hash.slice(0, 10)}... @@ -125,19 +113,7 @@ const TypeRenderer = ({ type: NonNullable["data"]>[number]["type"] }) => { const { t } = useTranslation("settings") - return ( -
- {t(`wallet.transactions.types.${type}`)} -
- ) + return
{t(`wallet.transactions.types.${type}`)}
} const BalanceRenderer = ({ @@ -148,7 +124,7 @@ const BalanceRenderer = ({ amount: NonNullable["data"]>[number]["powerToken"] }) => (
-
{t("words.discover")}
+
+
{t("words.discover")}
{ @@ -83,7 +83,7 @@ export function Component() { ))} - +
) } diff --git a/apps/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx b/apps/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx index c523d1782..113774171 100644 --- a/apps/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx +++ b/apps/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx @@ -67,7 +67,7 @@ export function Component() { flex ref={setRef} rootClassName="w-full" - viewportClassName="pb-10 pt-40 [&>div]:items-center [&>div]:gap-8" + viewportClassName="pb-10 pt-28 [&>div]:items-center" > diff --git a/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx b/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx new file mode 100644 index 000000000..e595ad053 --- /dev/null +++ b/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx @@ -0,0 +1,19 @@ +import { useTranslation } from "react-i18next" + +import { MyWalletSection } from "~/modules/settings/tabs/wallet/my-wallet-section" +import { TransactionsSection } from "~/modules/settings/tabs/wallet/transaction-section" + +export function Component() { + const { t } = useTranslation() + + return ( +
+
+ + {t("words.power")} +
+ + +
+ ) +} diff --git a/apps/renderer/src/pages/settings/(settings)/wallet.tsx b/apps/renderer/src/pages/settings/(settings)/wallet.tsx deleted file mode 100644 index 00d795c9a..000000000 --- a/apps/renderer/src/pages/settings/(settings)/wallet.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { SettingWallet } from "~/modules/settings/tabs/wallet" -import { defineSettingPageData } from "~/modules/settings/utils" - -const iconName = `i-mgc-power-outline` -const priority = 1040 - -export const loader = defineSettingPageData({ - iconName, - name: "titles.power", - priority, - headerIcon: `i-mgc-power text-accent`, -}) - -export function Component() { - return -} From 80f1b0fd287e38c9cfe82e2ec9099c21fe863bf1 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 10 Oct 2024 18:00:36 +0800 Subject: [PATCH 30/49] feat: remove power modal --- .../src/modules/power/PowerModalContent.tsx | 29 ------------------- apps/renderer/src/modules/power/hooks.tsx | 19 ------------ .../src/modules/user/ProfileButton.tsx | 6 ++-- .../(main)/(layer)/(subview)/power/index.tsx | 12 +++++--- 4 files changed, 11 insertions(+), 55 deletions(-) delete mode 100644 apps/renderer/src/modules/power/PowerModalContent.tsx delete mode 100644 apps/renderer/src/modules/power/hooks.tsx diff --git a/apps/renderer/src/modules/power/PowerModalContent.tsx b/apps/renderer/src/modules/power/PowerModalContent.tsx deleted file mode 100644 index c68fe2f57..000000000 --- a/apps/renderer/src/modules/power/PowerModalContent.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { Divider } from "~/components/ui/divider" - -import { MyWalletSection } from "./my-wallet-section" -import { TransactionsSection } from "./transaction-section" - -export const PowerModalContent = () => { - // const [tab, setTab] = useState<"power" | "transaction">("power") - return ( -
-
- -
- - - - - - - {/* {tab === "power" && } - {tab === "transaction" && } */} - - {/*
- -
*/} -
- ) -} diff --git a/apps/renderer/src/modules/power/hooks.tsx b/apps/renderer/src/modules/power/hooks.tsx deleted file mode 100644 index 57ec1e8bb..000000000 --- a/apps/renderer/src/modules/power/hooks.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { t } from "i18next" -import { useCallback } from "react" - -import { useModalStack } from "~/components/ui/modal" -import { SlideUpModal } from "~/components/ui/modal/stacked/custom-modal" - -import { PowerModalContent } from "./PowerModalContent" - -export const usePowerModal = () => { - const { present } = useModalStack() - - return useCallback(() => { - return present({ - title: t("settings:titles.power"), - content: () => , - CustomModalComponent: SlideUpModal.class(tw`aspect-[7/8]`), - }) - }, [present]) -} diff --git a/apps/renderer/src/modules/user/ProfileButton.tsx b/apps/renderer/src/modules/user/ProfileButton.tsx index 615248f68..a703d2c79 100644 --- a/apps/renderer/src/modules/user/ProfileButton.tsx +++ b/apps/renderer/src/modules/user/ProfileButton.tsx @@ -2,6 +2,7 @@ import { repository } from "@pkg" import type { FC } from "react" import { memo, useState } from "react" import { useTranslation } from "react-i18next" +import { useNavigate } from "react-router-dom" import { useWhoami } from "~/atoms/user" import { useSignOut } from "~/hooks/biz/useSignOut" @@ -9,7 +10,6 @@ import { useMeasure } from "~/hooks/common" import { nextFrame } from "~/lib/dom" import { cn } from "~/lib/utils" import { useAchievementModal } from "~/modules/achievement/hooks" -import { usePowerModal } from "~/modules/power/hooks" import { usePresentUserProfileModal } from "~/modules/profile/hooks" import { useSettingModal } from "~/modules/settings/modal/hooks" import { Balance } from "~/modules/wallet/balance" @@ -41,7 +41,7 @@ export const ProfileButton: FC = memo((props) => { const [ref, { x, y }] = useMeasure() const [dropdown, setDropdown] = useState(false) - const presentPowerModal = usePowerModal() + const navigate = useNavigate() if (status !== "authenticated") { return @@ -70,7 +70,7 @@ export const ProfileButton: FC = memo((props) => { { - nextFrame(presentPowerModal) + navigate("/power") }} >
diff --git a/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx b/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx index e595ad053..2171398c4 100644 --- a/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx +++ b/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx @@ -1,18 +1,22 @@ import { useTranslation } from "react-i18next" -import { MyWalletSection } from "~/modules/settings/tabs/wallet/my-wallet-section" -import { TransactionsSection } from "~/modules/settings/tabs/wallet/transaction-section" +import { Divider } from "~/components/ui/divider" +import { MyWalletSection } from "~/modules/power/my-wallet-section" +import { TransactionsSection } from "~/modules/power/transaction-section" export function Component() { const { t } = useTranslation() return (
-
- +
+
+ +
{t("words.power")}
+
) From b19fc2be2e0a4a7b49b61619c42170be0d6d100b Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 10 Oct 2024 18:35:11 +0800 Subject: [PATCH 31/49] feat: remove userId query for wallet get --- .../src/modules/power/my-wallet-section/index.tsx | 4 +--- .../modules/power/my-wallet-section/withdraw.tsx | 4 +--- .../src/modules/power/transaction-section/index.tsx | 2 +- apps/renderer/src/modules/user/ProfileButton.tsx | 4 +--- apps/renderer/src/modules/wallet/tip-modal.tsx | 4 +--- .../pages/(main)/(layer)/(subview)/power/index.tsx | 2 +- apps/renderer/src/queries/wallet.tsx | 3 +-- packages/shared/src/hono.ts | 13 ++++--------- 8 files changed, 11 insertions(+), 25 deletions(-) diff --git a/apps/renderer/src/modules/power/my-wallet-section/index.tsx b/apps/renderer/src/modules/power/my-wallet-section/index.tsx index 67cc6e586..57d22b583 100644 --- a/apps/renderer/src/modules/power/my-wallet-section/index.tsx +++ b/apps/renderer/src/modules/power/my-wallet-section/index.tsx @@ -1,7 +1,6 @@ import { useMutation } from "@tanstack/react-query" import { Trans, useTranslation } from "react-i18next" -import { useWhoami } from "~/atoms/user" import { Button } from "~/components/ui/button" import { CopyButton } from "~/components/ui/code-highlighter" import { LoadingWithIcon } from "~/components/ui/loading" @@ -19,8 +18,7 @@ import { WithdrawButton } from "./withdraw" export const MyWalletSection = () => { const { t } = useTranslation("settings") - const user = useWhoami() - const wallet = useWallet({ userId: user?.id }) + const wallet = useWallet() const myWallet = wallet.data?.[0] const refreshMutation = useMutation({ diff --git a/apps/renderer/src/modules/power/my-wallet-section/withdraw.tsx b/apps/renderer/src/modules/power/my-wallet-section/withdraw.tsx index ba10bc143..2a6542ff5 100644 --- a/apps/renderer/src/modules/power/my-wallet-section/withdraw.tsx +++ b/apps/renderer/src/modules/power/my-wallet-section/withdraw.tsx @@ -7,7 +7,6 @@ import { Trans, useTranslation } from "react-i18next" import { toast } from "sonner" import { z } from "zod" -import { useWhoami } from "~/atoms/user" import { Button } from "~/components/ui/button" import { Form, @@ -44,8 +43,7 @@ export const WithdrawButton = () => { const WithdrawModalContent = ({ dismiss }: { dismiss: () => void }) => { const { t } = useTranslation("settings") - const user = useWhoami() - const wallet = useWallet({ userId: user?.id }) + const wallet = useWallet() const cashablePowerTokenBigInt = [BigInt(wallet.data?.[0].cashablePowerToken || 0n), 18] as const const cashablePowerTokenNumber = toNumber(cashablePowerTokenBigInt) diff --git a/apps/renderer/src/modules/power/transaction-section/index.tsx b/apps/renderer/src/modules/power/transaction-section/index.tsx index f66857a74..f65177b2d 100644 --- a/apps/renderer/src/modules/power/transaction-section/index.tsx +++ b/apps/renderer/src/modules/power/transaction-section/index.tsx @@ -26,7 +26,7 @@ import { useWallet, useWalletTransactions } from "~/queries/wallet" export const TransactionsSection: Component = ({ className }) => { const { t } = useTranslation("settings") const user = useWhoami() - const wallet = useWallet({ userId: user?.id }) + const wallet = useWallet() const myWallet = wallet.data?.[0] const transactions = useWalletTransactions({ fromOrToUserId: user?.id }) diff --git a/apps/renderer/src/modules/user/ProfileButton.tsx b/apps/renderer/src/modules/user/ProfileButton.tsx index a703d2c79..b63005308 100644 --- a/apps/renderer/src/modules/user/ProfileButton.tsx +++ b/apps/renderer/src/modules/user/ProfileButton.tsx @@ -4,7 +4,6 @@ import { memo, useState } from "react" import { useTranslation } from "react-i18next" import { useNavigate } from "react-router-dom" -import { useWhoami } from "~/atoms/user" import { useSignOut } from "~/hooks/biz/useSignOut" import { useMeasure } from "~/hooks/common" import { nextFrame } from "~/lib/dom" @@ -157,8 +156,7 @@ export const ProfileButton: FC = memo((props) => { ProfileButton.displayName = "ProfileButton" function PowerButton() { - const user = useWhoami() - const wallet = useWallet({ userId: user?.id }) + const wallet = useWallet() const { isLoading } = wallet const myWallet = wallet.data?.[0] diff --git a/apps/renderer/src/modules/wallet/tip-modal.tsx b/apps/renderer/src/modules/wallet/tip-modal.tsx index ebf920d91..73e7a9c4e 100644 --- a/apps/renderer/src/modules/wallet/tip-modal.tsx +++ b/apps/renderer/src/modules/wallet/tip-modal.tsx @@ -2,7 +2,6 @@ import { from } from "dnum" import type { FC } from "react" import { useState } from "react" -import { useWhoami } from "~/atoms/user" import { Button } from "~/components/ui/button" import { Divider } from "~/components/ui/divider" import { LoadingWithIcon } from "~/components/ui/loading" @@ -21,8 +20,7 @@ import { Balance } from "./balance" const DEFAULT_RECOMMENDED_TIP = 10 const useMyWallet = () => { - const user = useWhoami() - const myWallet = useWallet({ userId: user?.id }) + const myWallet = useWallet() return myWallet } diff --git a/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx b/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx index 2171398c4..ab0a2bc5c 100644 --- a/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx +++ b/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx @@ -8,7 +8,7 @@ export function Component() { const { t } = useTranslation() return ( -
+
diff --git a/apps/renderer/src/queries/wallet.tsx b/apps/renderer/src/queries/wallet.tsx index 28f413014..b954dc65e 100644 --- a/apps/renderer/src/queries/wallet.tsx +++ b/apps/renderer/src/queries/wallet.tsx @@ -44,8 +44,7 @@ export const wallet = { }, } -export const useWallet = ({ userId }: { userId?: string } = {}) => - useAuthQuery(wallet.get({ userId }), { enabled: !!userId }) +export const useWallet = () => useAuthQuery(wallet.get()) export const useWalletTransactions = (query: Parameters[0] = {}) => useAuthQuery(wallet.transactions.get(query)) diff --git a/packages/shared/src/hono.ts b/packages/shared/src/hono.ts index 36560327f..9184f21f3 100644 --- a/packages/shared/src/hono.ts +++ b/packages/shared/src/hono.ts @@ -3968,15 +3968,15 @@ declare const walletsOpenAPISchema: zod.ZodObject<{ }, zod.UnknownKeysParam, zod.ZodTypeAny, { createdAt: string; userId: string; - address: string | null; addressIndex: number; + address: string | null; dailyPowerToken: string; cashablePowerToken: string; }, { createdAt: string; userId: string; - address: string | null; addressIndex: number; + address: string | null; dailyPowerToken: string; cashablePowerToken: string; }>; @@ -4895,19 +4895,14 @@ declare const _routes: hono_hono_base.HonoBase Date: Thu, 10 Oct 2024 19:22:57 +0800 Subject: [PATCH 32/49] feat: tx types filter --- apps/renderer/src/models/types.ts | 2 ++ .../power/transaction-section/index.tsx | 31 ++++++++++++------- locales/settings/en.json | 11 ++++--- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/apps/renderer/src/models/types.ts b/apps/renderer/src/models/types.ts index a28aca883..47b2cb1b9 100644 --- a/apps/renderer/src/models/types.ts +++ b/apps/renderer/src/models/types.ts @@ -114,3 +114,5 @@ export type ActionsInput = { webhooks?: string[] } }[] + +export const TransactionTypes = ["mint", "purchase", "tip", "withdraw"] as const diff --git a/apps/renderer/src/modules/power/transaction-section/index.tsx b/apps/renderer/src/modules/power/transaction-section/index.tsx index f65177b2d..104a9c14f 100644 --- a/apps/renderer/src/modules/power/transaction-section/index.tsx +++ b/apps/renderer/src/modules/power/transaction-section/index.tsx @@ -1,3 +1,4 @@ +import { useState } from "react" import { useTranslation } from "react-i18next" import { useWhoami } from "~/atoms/user" @@ -5,7 +6,6 @@ import { Logo } from "~/components/icons/logo" import { Avatar, AvatarFallback, AvatarImage } from "~/components/ui/avatar" import { MotionButtonBase } from "~/components/ui/button" import { RelativeTime } from "~/components/ui/datetime" -import { LoadingCircle } from "~/components/ui/loading" import { Table, TableBody, @@ -14,37 +14,46 @@ import { TableHeader, TableRow, } from "~/components/ui/table" +import { Tabs, TabsList, TabsTrigger } from "~/components/ui/tabs" import { Tooltip, TooltipContent, TooltipPortal, TooltipTrigger } from "~/components/ui/tooltip" import { EllipsisHorizontalTextWithTooltip } from "~/components/ui/typography" import { replaceImgUrlIfNeed } from "~/lib/img-proxy" import { cn } from "~/lib/utils" +import { TransactionTypes } from "~/models/types" import { usePresentUserProfileModal } from "~/modules/profile/hooks" import { SettingSectionTitle } from "~/modules/settings/section" import { Balance } from "~/modules/wallet/balance" import { useWallet, useWalletTransactions } from "~/queries/wallet" +const tabs = ["all", ...TransactionTypes] as const + export const TransactionsSection: Component = ({ className }) => { const { t } = useTranslation("settings") const user = useWhoami() const wallet = useWallet() const myWallet = wallet.data?.[0] - const transactions = useWalletTransactions({ fromOrToUserId: user?.id }) + const [type, setType] = useState("all") + + const transactions = useWalletTransactions({ + fromOrToUserId: user?.id, + type: type === "all" ? undefined : type, + }) if (!myWallet) return null - if (transactions.isLoading) { - return ( -
- -
- ) - } - return (
- + setType(val)}> + + {tabs.map((tab) => ( + + {t(`wallet.transactions.types.${tab}`)} + + ))} + +
diff --git a/locales/settings/en.json b/locales/settings/en.json index 576d8d58f..e405e9a5e 100644 --- a/locales/settings/en.json +++ b/locales/settings/en.json @@ -228,11 +228,12 @@ "wallet.transactions.to": "To", "wallet.transactions.tx": "Tx", "wallet.transactions.type": "Type", - "wallet.transactions.types.burn": "burn", - "wallet.transactions.types.mint": "mint", - "wallet.transactions.types.purchase": "purchase", - "wallet.transactions.types.tip": "tip", - "wallet.transactions.types.withdraw": "withdraw", + "wallet.transactions.types.all": "All", + "wallet.transactions.types.burn": "Burn", + "wallet.transactions.types.mint": "Mint", + "wallet.transactions.types.purchase": "Purchase", + "wallet.transactions.types.tip": "Tip", + "wallet.transactions.types.withdraw": "Withdraw", "wallet.transactions.you": "You", "wallet.withdraw.addressLabel": "Your Ethereum Address", "wallet.withdraw.amountLabel": "Amount", From 58d251e6e40f3b41d99528411d2a90e65bd519da Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 10 Oct 2024 19:28:14 +0800 Subject: [PATCH 33/49] fix: translation tooltip width part of #811 --- .../src/modules/entry-column/layouts/EntryListHeader.tsx | 2 ++ apps/renderer/src/modules/entry-column/translation.tsx | 1 - .../src/modules/entry-content/components/EntryTitle.tsx | 6 +++++- .../src/pages/(main)/(layer)/feeds/[feedId]/layout.tsx | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx b/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx index 9996a980e..c76d45653 100644 --- a/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx +++ b/apps/renderer/src/modules/entry-column/layouts/EntryListHeader.tsx @@ -248,6 +248,8 @@ const WideModeButton = () => { shortcut={shortcuts.layout.toggleWideMode.key} onClick={() => { setUISetting("wideMode", !isWideMode) + // TODO: Remove this after useMeasure can get bounds in time + window.dispatchEvent(new Event("resize")) window.posthog?.capture("Switch to Wide Mode", { wideMode: !isWideMode ? 1 : 0, click: 1, diff --git a/apps/renderer/src/modules/entry-column/translation.tsx b/apps/renderer/src/modules/entry-column/translation.tsx index 7671c70a5..e99e10766 100644 --- a/apps/renderer/src/modules/entry-column/translation.tsx +++ b/apps/renderer/src/modules/entry-column/translation.tsx @@ -65,7 +65,6 @@ export const EntryTranslation: Component<{ "shadow-modal rounded-xl border bg-background p-2", "group-data-[side=top]:top-0", "group-data-[side=bottom]:top-full", - "max-w-[30ch]", )} viewportClassName="max-h-[12ch]" > diff --git a/apps/renderer/src/modules/entry-content/components/EntryTitle.tsx b/apps/renderer/src/modules/entry-content/components/EntryTitle.tsx index 2c0586cf5..72b3915ca 100644 --- a/apps/renderer/src/modules/entry-content/components/EntryTitle.tsx +++ b/apps/renderer/src/modules/entry-content/components/EntryTitle.tsx @@ -79,7 +79,11 @@ export const EntryTitle = ({ entryId, compact }: EntryLinkProps) => { rel="noreferrer" >
- +
{getPreferredTitle(feed)}
diff --git a/apps/renderer/src/pages/(main)/(layer)/feeds/[feedId]/layout.tsx b/apps/renderer/src/pages/(main)/(layer)/feeds/[feedId]/layout.tsx index 064bb2b72..7d3692bce 100644 --- a/apps/renderer/src/pages/(main)/(layer)/feeds/[feedId]/layout.tsx +++ b/apps/renderer/src/pages/(main)/(layer)/feeds/[feedId]/layout.tsx @@ -29,6 +29,8 @@ export function Component() { containerRef, onResizeEnd({ position }) { setUISetting("entryColWidth", position) + // TODO: Remove this after useMeasure can get bounds in time + window.dispatchEvent(new Event("resize")) }, }) From 3edee63a5a9f691481c8532ba524d541ca09c539 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 10 Oct 2024 19:49:18 +0800 Subject: [PATCH 34/49] fix: profile category overflow part of #811 https://github.com/radix-ui/primitives/issues/2722 --- apps/renderer/src/components/ui/scroll-area/ScrollArea.tsx | 5 ++++- apps/renderer/src/modules/profile/user-profile-modal.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/renderer/src/components/ui/scroll-area/ScrollArea.tsx b/apps/renderer/src/components/ui/scroll-area/ScrollArea.tsx index 7080bc8b5..48f7fc437 100644 --- a/apps/renderer/src/components/ui/scroll-area/ScrollArea.tsx +++ b/apps/renderer/src/components/ui/scroll-area/ScrollArea.tsx @@ -137,7 +137,10 @@ export const ScrollArea = React.forwardRef< div]:!flex [&>div]:!flex-col" : "", viewportClassName)} + className={cn( + flex ? "[&>div]:!flex [&>div]:!flex-col" : "[&>div]:!block", + viewportClassName, + )} mask={mask} > {children} diff --git a/apps/renderer/src/modules/profile/user-profile-modal.tsx b/apps/renderer/src/modules/profile/user-profile-modal.tsx index d8a300325..55a0715b0 100644 --- a/apps/renderer/src/modules/profile/user-profile-modal.tsx +++ b/apps/renderer/src/modules/profile/user-profile-modal.tsx @@ -332,7 +332,7 @@ const SubscriptionGroup: FC<{ className="mb-2 mt-8 flex w-full items-center justify-between text-2xl font-bold" type="button" > -

{category}

+

{category}

Date: Thu, 10 Oct 2024 19:09:27 +0800 Subject: [PATCH 35/49] chore: power page subview title Signed-off-by: Innei --- .../modules/power/my-wallet-section/index.tsx | 11 +++++++++-- .../pages/(main)/(layer)/(subview)/hooks.ts | 13 +++++++++---- .../pages/(main)/(layer)/(subview)/layout.tsx | 2 +- .../(main)/(layer)/(subview)/power/index.tsx | 18 ++++++++++++------ 4 files changed, 31 insertions(+), 13 deletions(-) diff --git a/apps/renderer/src/modules/power/my-wallet-section/index.tsx b/apps/renderer/src/modules/power/my-wallet-section/index.tsx index 57d22b583..94901d853 100644 --- a/apps/renderer/src/modules/power/my-wallet-section/index.tsx +++ b/apps/renderer/src/modules/power/my-wallet-section/index.tsx @@ -3,6 +3,7 @@ import { Trans, useTranslation } from "react-i18next" import { Button } from "~/components/ui/button" import { CopyButton } from "~/components/ui/code-highlighter" +import { Divider } from "~/components/ui/divider" import { LoadingWithIcon } from "~/components/ui/loading" import { Tooltip, TooltipContent, TooltipPortal, TooltipTrigger } from "~/components/ui/tooltip" import { DAILY_CLAIM_AMOUNT } from "~/constants" @@ -50,6 +51,7 @@ export const MyWalletSection = () => {
+ {

{t("wallet.power.dailyClaim", { amount: DAILY_CLAIM_AMOUNT })}

-
+
@@ -122,6 +127,8 @@ export const MyWalletSection = () => {
+ + ) } diff --git a/apps/renderer/src/pages/(main)/(layer)/(subview)/hooks.ts b/apps/renderer/src/pages/(main)/(layer)/(subview)/hooks.ts index 53a8b6fdb..3788415ae 100644 --- a/apps/renderer/src/pages/(main)/(layer)/(subview)/hooks.ts +++ b/apps/renderer/src/pages/(main)/(layer)/(subview)/hooks.ts @@ -1,13 +1,18 @@ import { atom, useAtomValue } from "jotai" import { useHydrateAtoms } from "jotai/utils" +import type { ReactNode } from "react" import { useI18n, useTitle } from "~/hooks/common" -const titleAtom = atom(null) -export const useSubViewTitle = (title: I18nKeys) => { +const titleAtom = atom(null) + +export function useSubViewTitle(title: I18nKeys): void +export function useSubViewTitle(title: ReactNode, fallbackTitleString: string): void + +export function useSubViewTitle(title: I18nKeys | ReactNode, fallbackTitleString?: string) { const t = useI18n() - useTitle(t(title)) - useHydrateAtoms([[titleAtom, t(title)]]) + useTitle(typeof title === "string" ? t(title as I18nKeys) : fallbackTitleString) + useHydrateAtoms([[titleAtom, typeof title === "string" ? t(title as I18nKeys) : title]]) } export const useSubViewTitleValue = () => useAtomValue(titleAtom) diff --git a/apps/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx b/apps/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx index 113774171..00c0c0d9d 100644 --- a/apps/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx +++ b/apps/renderer/src/pages/(main)/(layer)/(subview)/layout.tsx @@ -33,7 +33,7 @@ export function Component() { return () => { $scroll.removeEventListener("scroll", handler) } - }, [scrollRef, title]) + }, [scrollRef]) const { t } = useTranslation() return ( diff --git a/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx b/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx index ab0a2bc5c..e0b33fae5 100644 --- a/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx +++ b/apps/renderer/src/pages/(main)/(layer)/(subview)/power/index.tsx @@ -1,22 +1,28 @@ import { useTranslation } from "react-i18next" -import { Divider } from "~/components/ui/divider" import { MyWalletSection } from "~/modules/power/my-wallet-section" import { TransactionsSection } from "~/modules/power/transaction-section" +import { useSubViewTitle } from "../hooks" + export function Component() { const { t } = useTranslation() - + useSubViewTitle( +
+ + {t("words.power")} +
, + t("words.power"), + ) return (
-
+
- +
- {t("words.power")}
- +
) From 3af93e37760aabbf9ffb0e112febb3708576bb9a Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 10 Oct 2024 19:53:04 +0800 Subject: [PATCH 36/49] fix: fake profile avatar position when resize Signed-off-by: Innei --- .../ui/dropdown-menu/dropdown-menu.tsx | 49 ++++++--- apps/renderer/src/constants/hotkeys.ts | 1 + .../src/hooks/common/useSwitchHotkeyScope.ts | 38 ++++++- .../src/modules/user/ProfileButton.tsx | 59 ++++++++-- apps/renderer/src/modules/user/UserAvatar.tsx | 101 ++++++++++-------- 5 files changed, 175 insertions(+), 73 deletions(-) diff --git a/apps/renderer/src/components/ui/dropdown-menu/dropdown-menu.tsx b/apps/renderer/src/components/ui/dropdown-menu/dropdown-menu.tsx index e9aa770b9..74105a6d9 100644 --- a/apps/renderer/src/components/ui/dropdown-menu/dropdown-menu.tsx +++ b/apps/renderer/src/components/ui/dropdown-menu/dropdown-menu.tsx @@ -1,9 +1,26 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu" import * as React from "react" +import { useHotkeyScope, useTypeScriptHappyCallback } from "~/hooks/common" import { cn } from "~/lib/utils" -const DropdownMenu = DropdownMenuPrimitive.Root +const DropdownMenu: typeof DropdownMenuPrimitive.Root = (props) => { + const [open, setOpen] = React.useState(!!props.open) + useHotkeyScope("DropdownMenu", open) + + return ( + { + setOpen(open) + props.onOpenChange?.(open) + }, + [props.onOpenChange], + )} + /> + ) +} const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger @@ -54,20 +71,22 @@ DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayNam const DropdownMenuContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef ->(({ className, sideOffset = 4, ...props }, ref) => ( - - - -)) +>(({ className, sideOffset = 4, ...props }, ref) => { + return ( + + + + ) +}) DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName const DropdownMenuItem = React.forwardRef< diff --git a/apps/renderer/src/constants/hotkeys.ts b/apps/renderer/src/constants/hotkeys.ts index b0d21aaba..90a797b8b 100644 --- a/apps/renderer/src/constants/hotkeys.ts +++ b/apps/renderer/src/constants/hotkeys.ts @@ -2,4 +2,5 @@ export const HotKeyScopeMap = { Home: ["home"], Menu: ["menu"], Modal: ["modal"], + DropdownMenu: ["dropdown-menu"], } diff --git a/apps/renderer/src/hooks/common/useSwitchHotkeyScope.ts b/apps/renderer/src/hooks/common/useSwitchHotkeyScope.ts index 574380aa2..46c0c7477 100644 --- a/apps/renderer/src/hooks/common/useSwitchHotkeyScope.ts +++ b/apps/renderer/src/hooks/common/useSwitchHotkeyScope.ts @@ -1,4 +1,4 @@ -import { useCallback } from "react" +import { useCallback, useLayoutEffect, useRef } from "react" import { useHotkeysContext } from "react-hotkeys-hook" import { HotKeyScopeMap } from "~/constants" @@ -18,9 +18,41 @@ export const useSwitchHotKeyScope = () => { for (const key of allScopes) { disableScope(key) } - - enableScope(nextScope[0]) + for (const key of nextScope) { + enableScope(key) + } }, [disableScope, enableScope], ) } +export const useHotkeyScopeFn = (scope: keyof typeof HotKeyScopeMap) => { + const { enableScope, disableScope, enabledScopes } = useHotkeysContext() + const currentScopeRef = useRef(enabledScopes) + + return useCallback(() => { + const currentScope = currentScopeRef.current + for (const key of allScopes) { + disableScope(key) + } + for (const key of scope) { + enableScope(key) + } + return () => { + for (const key of scope) { + disableScope(key) + } + for (const scope of currentScope) { + enableScope(scope) + } + } + }, [enableScope, disableScope, scope]) +} + +export const useHotkeyScope = (scope: keyof typeof HotKeyScopeMap, when: boolean) => { + const fn = useHotkeyScopeFn(scope) + useLayoutEffect(() => { + if (when) { + return fn() + } + }, [fn, when]) +} diff --git a/apps/renderer/src/modules/user/ProfileButton.tsx b/apps/renderer/src/modules/user/ProfileButton.tsx index b63005308..6b17be689 100644 --- a/apps/renderer/src/modules/user/ProfileButton.tsx +++ b/apps/renderer/src/modules/user/ProfileButton.tsx @@ -1,6 +1,6 @@ import { repository } from "@pkg" import type { FC } from "react" -import { memo, useState } from "react" +import { forwardRef, memo, useCallback, useLayoutEffect, useState } from "react" import { useTranslation } from "react-i18next" import { useNavigate } from "react-router-dom" @@ -37,7 +37,7 @@ export const ProfileButton: FC = memo((props) => { const presentUserProfile = usePresentUserProfileModal("dialog") const presentAchievement = useAchievementModal() const { t } = useTranslation() - const [ref, { x, y }] = useMeasure() + const [dropdown, setDropdown] = useState(false) const navigate = useNavigate() @@ -50,9 +50,7 @@ export const ProfileButton: FC = memo((props) => { <> - - - + = memo((props) => { - {x !== 0 && y !== 0 && ( + + ) +}) +ProfileButton.displayName = "ProfileButton" + +const TransitionAvatar = forwardRef< + HTMLButtonElement, + { + stage: "zoom-in" | "" + } & React.HTMLAttributes +>(({ stage, ...props }, forwardRef) => { + const [ref, { x, y }, forceRefresh] = useMeasure() + const [avatarHovered, setAvatarHovered] = useState(false) + + const zoomIn = stage === "zoom-in" + const [currentZoomIn, setCurrentZoomIn] = useState(false) + useLayoutEffect(() => { + if (zoomIn) { + setCurrentZoomIn(true) + } + }, [zoomIn]) + + return ( + <> + { + forceRefresh() + setAvatarHovered(true) + }, [forceRefresh])} + onMouseLeave={useCallback(() => { + setAvatarHovered(false) + }, [])} + > + + + {x !== 0 && y !== 0 && (avatarHovered || zoomIn || currentZoomIn) && ( { + if (!zoomIn && currentZoomIn) { + setCurrentZoomIn(false) + } + }} /> )} ) }) -ProfileButton.displayName = "ProfileButton" function PowerButton() { const wallet = useWallet() diff --git a/apps/renderer/src/modules/user/UserAvatar.tsx b/apps/renderer/src/modules/user/UserAvatar.tsx index 503e44635..29c7cb67a 100644 --- a/apps/renderer/src/modules/user/UserAvatar.tsx +++ b/apps/renderer/src/modules/user/UserAvatar.tsx @@ -20,56 +20,67 @@ export const UserAvatar = forwardRef< hideName?: boolean userId?: string enableModal?: boolean - style?: React.CSSProperties - } & LoginProps ->(({ className, avatarClassName, hideName, userId, enableModal, style, ...props }, ref) => { - const { session, status } = useSession({ - enabled: !userId, - }) - const presentUserProfile = usePresentUserProfileModal("drawer") + } & LoginProps & + React.HTMLAttributes +>( + ( + { className, avatarClassName, hideName, userId, enableModal, style, onClick, ...props }, + ref, + ) => { + const { session, status } = useSession({ + enabled: !userId, + }) + const presentUserProfile = usePresentUserProfileModal("drawer") - const profile = useAuthQuery( - defineQuery(["profiles", userId], async () => { - const res = await apiClient.profiles.$get({ - query: { id: userId! }, - }) - return res.data - }), - { - enabled: !!userId, - }, - ) + const profile = useAuthQuery( + defineQuery(["profiles", userId], async () => { + const res = await apiClient.profiles.$get({ + query: { id: userId! }, + }) + return res.data + }), + { + enabled: !!userId, + }, + ) - if (!userId && status !== "authenticated") { - return - } + if (!userId && status !== "authenticated") { + return + } - const renderUserData = userId ? profile.data : session?.user - return ( -
presentUserProfile(userId) : undefined} - > - { + if (enableModal) { + presentUserProfile(userId) + } + onClick?.(e) + }} + {...props} className={cn( - "aspect-square h-full w-auto overflow-hidden rounded-full border bg-stone-300", - avatarClassName, + "flex h-20 items-center justify-center gap-2 px-5 py-2 font-medium text-zinc-600 dark:text-zinc-300", + className, )} > - - {renderUserData?.name?.slice(0, 2)} - - {!hideName &&
{renderUserData?.name}
} -
- ) -}) + + + {renderUserData?.name?.slice(0, 2)} + + {!hideName &&
{renderUserData?.name}
} +
+ ) + }, +) UserAvatar.displayName = "UserAvatar" From 81a35e046e8bbc4f60a17c1e5fb0ac342f20009e Mon Sep 17 00:00:00 2001 From: Brendan Dash <61053131+Debbl@users.noreply.github.com> Date: Thu, 10 Oct 2024 20:00:57 +0800 Subject: [PATCH 37/49] fix: cmdk panel layout (#854) * fix: cmdk panel layout * fix: cmdk panel changed some styles --- apps/renderer/src/modules/panel/cmdk.tsx | 135 ++++++++++++----------- 1 file changed, 70 insertions(+), 65 deletions(-) diff --git a/apps/renderer/src/modules/panel/cmdk.tsx b/apps/renderer/src/modules/panel/cmdk.tsx index 79c414331..a482f7b15 100644 --- a/apps/renderer/src/modules/panel/cmdk.tsx +++ b/apps/renderer/src/modules/panel/cmdk.tsx @@ -149,71 +149,76 @@ export const SearchCmdK: React.FC = () => { />
- - - +
+ + + - {renderedEntries.length > 0 && ( - - } - className="flex w-full min-w-0 flex-col py-2" - > - {renderedEntries.map((entry) => { - const feed = getFeedById(entry.feedId) - return ( - 0 && ( + - ) - })} - - )} - {renderedFeeds.length > 0 && ( - - } - className="py-2" - > - {renderedFeeds.map((feed) => ( - - ))} - - )} - {canLoadMore && } - - - - + } + className="flex w-full min-w-0 flex-col py-2" + > + {renderedEntries.map((entry) => { + const feed = getFeedById(entry.feedId) + return ( + + ) + })} + + )} + {renderedFeeds.length > 0 && ( + + } + className="py-2" + > + {renderedFeeds.map((feed) => ( + + ))} + + )} + {canLoadMore && } + + + +
+ + +
+
) @@ -307,7 +312,7 @@ const SearchResultCount: FC<{ return ( - + {hasKeyword ? ( {count} {t.common("words.result", { count })} @@ -339,7 +344,7 @@ const SearchOptions: Component = memo(({ children }) => { const searchInstance = React.useContext(SearchCmdKContext) return ( -
+
{t("search.options.search_type")}