feat: update server hono

This commit is contained in:
DIYgod 2024-11-28 00:36:03 +08:00
parent ff6b0f780d
commit 5beaca3c77
No known key found for this signature in database
6 changed files with 2770 additions and 1979 deletions

View File

@ -23,7 +23,7 @@ export const TransactionsSection: Component = ({ className }) => {
const transactions = useWalletTransactions({
fromOrToUserId: user?.id,
type: type === "all" ? undefined : type,
type: type === "all" ? undefined : (type as (typeof TransactionTypes)[number]),
})
const serverConfigs = useServerConfigs()

View File

@ -13,6 +13,7 @@ import {
TooltipTrigger,
} from "@follow/components/ui/tooltip/index.jsx"
import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js"
import type { TransactionTypes } from "@follow/models"
import { cn } from "@follow/utils/utils"
import { useTranslation } from "react-i18next"
@ -29,7 +30,7 @@ export const TxTable = ({ className, type }: ComponentType<TxTableProps>) => {
const user = useWhoami()
const transactions = useWalletTransactions({
fromOrToUserId: user?.id,
type: type === "all" ? undefined : type,
type: type === "all" ? undefined : (type as (typeof TransactionTypes)[number]),
})
return (

View File

@ -1,4 +1,5 @@
import { Tooltip, TooltipContent, TooltipTrigger } from "@follow/components/ui/tooltip/index.js"
import type { TransactionTypes } from "@follow/models"
import dayjs from "dayjs"
import { useTranslation } from "react-i18next"
@ -33,7 +34,7 @@ export const TxTable = ({ type }: TxTableProps) => {
const user = useWhoami()
const transactions = useWalletTransactions({
fromOrToUserId: user?.id,
type: type === "all" ? undefined : type,
type: type === "all" ? undefined : (type as (typeof TransactionTypes)[number]),
})
return (
<ul className="mt-4 flex flex-col gap-2">

View File

@ -102,8 +102,8 @@ export const entries = {
}
return apiClient.entries["check-new"].$get({
query: {
insertedAfter: `${query.insertedAfter}`,
view: `${query.view}`,
insertedAfter: query.insertedAfter,
view: query.view,
feedId: query.feedId,
read: typeof query.read === "boolean" ? JSON.stringify(query.read) : undefined,
feedIdList: query.feedIdList,

View File

@ -10,8 +10,8 @@ class EntryHistoryActions {
id: entryId,
},
query: {
page: "1",
size: "100",
page: 1,
size: 100,
},
})

File diff suppressed because it is too large Load Diff