From 253c2f2487f5a6bfd124e9b8b2a2360d09fd1ec1 Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Sun, 15 Jun 2025 04:23:06 +0800 Subject: [PATCH] update, --- 03_source/frontend/src/actions/blog.ts | 10 ++++------ 03_source/frontend/src/actions/chat.ts | 10 ++++------ 03_source/frontend/src/actions/kanban.ts | 10 ++++------ 03_source/frontend/src/actions/mail.ts | 12 +++++------- 03_source/frontend/src/actions/order.ts | 2 +- 5 files changed, 18 insertions(+), 26 deletions(-) diff --git a/03_source/frontend/src/actions/blog.ts b/03_source/frontend/src/actions/blog.ts index 2da2d87..ed261d0 100644 --- a/03_source/frontend/src/actions/blog.ts +++ b/03_source/frontend/src/actions/blog.ts @@ -1,10 +1,8 @@ -import type { SWRConfiguration } from 'swr'; -import type { IPostItem } from 'src/types/blog'; - -import useSWR from 'swr'; import { useMemo } from 'react'; - -import { fetcher, endpoints } from 'src/lib/axios'; +import { endpoints, fetcher } from 'src/lib/axios'; +import type { IPostItem } from 'src/types/blog'; +import type { SWRConfiguration } from 'swr'; +import useSWR from 'swr'; // ---------------------------------------------------------------------- diff --git a/03_source/frontend/src/actions/chat.ts b/03_source/frontend/src/actions/chat.ts index 11cd506..f27b42d 100644 --- a/03_source/frontend/src/actions/chat.ts +++ b/03_source/frontend/src/actions/chat.ts @@ -1,12 +1,10 @@ -import type { SWRConfiguration } from 'swr'; -import type { IChatMessage, IChatParticipant, IChatConversation } from 'src/types/chat'; - -import { useMemo } from 'react'; import { keyBy } from 'es-toolkit'; +import { useMemo } from 'react'; +import axios, { endpoints, fetcher } from 'src/lib/axios'; +import type { IChatConversation, IChatMessage, IChatParticipant } from 'src/types/chat'; +import type { SWRConfiguration } from 'swr'; import useSWR, { mutate } from 'swr'; -import axios, { fetcher, endpoints } from 'src/lib/axios'; - // ---------------------------------------------------------------------- const enableServer = false; diff --git a/03_source/frontend/src/actions/kanban.ts b/03_source/frontend/src/actions/kanban.ts index 901bc6a..10fd970 100644 --- a/03_source/frontend/src/actions/kanban.ts +++ b/03_source/frontend/src/actions/kanban.ts @@ -1,11 +1,9 @@ -import type { SWRConfiguration } from 'swr'; import type { UniqueIdentifier } from '@dnd-kit/core'; -import type { IKanban, IKanbanTask, IKanbanColumn } from 'src/types/kanban'; - +import { startTransition, useMemo } from 'react'; +import axios, { endpoints, fetcher } from 'src/lib/axios'; +import type { IKanban, IKanbanColumn, IKanbanTask } from 'src/types/kanban'; +import type { SWRConfiguration } from 'swr'; import useSWR, { mutate } from 'swr'; -import { useMemo, startTransition } from 'react'; - -import axios, { fetcher, endpoints } from 'src/lib/axios'; // ---------------------------------------------------------------------- diff --git a/03_source/frontend/src/actions/mail.ts b/03_source/frontend/src/actions/mail.ts index b6d0308..c9f6fe2 100644 --- a/03_source/frontend/src/actions/mail.ts +++ b/03_source/frontend/src/actions/mail.ts @@ -1,11 +1,9 @@ -import type { SWRConfiguration } from 'swr'; -import type { IMail, IMailLabel } from 'src/types/mail'; - -import useSWR from 'swr'; -import { useMemo } from 'react'; import { keyBy } from 'es-toolkit'; - -import { fetcher, endpoints } from 'src/lib/axios'; +import { useMemo } from 'react'; +import { endpoints, fetcher } from 'src/lib/axios'; +import type { IMail, IMailLabel } from 'src/types/mail'; +import type { SWRConfiguration } from 'swr'; +import useSWR from 'swr'; // ---------------------------------------------------------------------- diff --git a/03_source/frontend/src/actions/order.ts b/03_source/frontend/src/actions/order.ts index af68472..9de89fb 100644 --- a/03_source/frontend/src/actions/order.ts +++ b/03_source/frontend/src/actions/order.ts @@ -1,8 +1,8 @@ // src/actions/order.ts import { useMemo } from 'react'; import axiosInstance, { endpoints, fetcher } from 'src/lib/axios'; -import type { IProductItem } from 'src/types/product'; import type { IOrderItem } from 'src/types/order'; +import type { IProductItem } from 'src/types/product'; import type { SWRConfiguration } from 'swr'; import useSWR from 'swr';