chore: steiger lint 적용(FSD)

This commit is contained in:
2025-05-08 10:16:08 +09:00
parent 3ae4504128
commit 7cfda04bc0
19 changed files with 44 additions and 21 deletions
@@ -1,4 +1,4 @@
import { ModifyPage } from "@/pages/notice";
import { ModifyPage } from "@/pages/(bbs)/notice";
export default async function PstBbsNoticePostModifyPage({
params,
@@ -1,4 +1,4 @@
import { NoticePost } from "@/pages/notice";
import { NoticePost } from "@/pages/(bbs)/notice";
export default async function PstBbsNoticePostPage({
params,
@@ -1,4 +1,4 @@
import { NoticePage } from "@/pages/notice";
import { NoticePage } from "@/pages/(bbs)/notice";
export default async function PstBbsNoticePage({
params,
@@ -1,4 +1,4 @@
import { CreatePage } from "@/pages/notice";
import { CreatePage } from "@/pages/(bbs)/notice";
export default async function PstBbsNoticeRegisterPage({
params,
@@ -0,0 +1 @@
export { MenuAuthorityApi } from "../api/menu-authority-service";
@@ -2,9 +2,9 @@
import { useEffect } from "react";
import { usePathname, useRouter } from "next/navigation";
import { MenuAuthorityApi } from "@/entities/menu-authority";
import { SITE_ID } from "@/shared/config";
import { MenuAuthorityApi } from "@/entities/menu-authority/@x/menu";
import { getCookie, useAlertStore, useMenuStore } from "@/shared/lib";
import { SITE_ID } from "@/shared/config";
import { MenuApi } from "../api/menu-service";
import { getCurrentMenu } from "./utils";
@@ -1,8 +1,5 @@
import { z } from "zod";
import {
type PageableList,
type PageableParams,
} from "@/shared/model/api-interface";
import { type PageableList, type PageableParams } from "@/shared/model";
export interface PostParams extends PageableParams {
keywordType?: string;
@@ -1,15 +1,41 @@
import { createStore } from "zustand/vanilla";
import type { MenuItem } from "@/entities/menu";
import type { PageMenuAuthority } from "@/entities/menu-authority";
interface IMenu {
menuCd: number;
menuKornNm: string;
menuEngNm: string;
parentId: number | null;
sortSeq: number;
iconNm?: string;
children: IMenu[] | null;
levelNo: number;
urlPath: string;
menuLnkgTypeCd: string;
menuLnkgSn: number;
menuPath: string;
qrcd: string;
useYn: string;
otptYn: string;
newWndwYn: string;
requiredUrlPath: boolean;
}
interface IAuthority {
mngAuthrtYn: string;
inqAuthrtYn: string;
regAuthrtYn: string;
mdfcnAuthrtYn: string;
delAuthrtYn: string;
}
export type MenuState = {
currentMenuInfo: MenuItem | null;
pageMenuAuthority: PageMenuAuthority | null;
currentMenuInfo: IMenu | null;
pageMenuAuthority: IAuthority | null;
};
export type MenuActions = {
setCurrentMenuInfo: (menu: MenuItem) => void;
setPageMenuAuthority: (authority: PageMenuAuthority) => void;
setCurrentMenuInfo: (menu: IMenu) => void;
setPageMenuAuthority: (authority: IAuthority) => void;
};
export type MenuStore = MenuState & MenuActions;
@@ -22,8 +48,8 @@ export const defaultInitState: MenuState = {
export const createMenuStore = (initState: MenuState = defaultInitState) => {
return createStore<MenuStore>()((set) => ({
...initState,
setCurrentMenuInfo: (menu: MenuItem) => set({ currentMenuInfo: menu }),
setPageMenuAuthority: (authority: PageMenuAuthority) =>
setCurrentMenuInfo: (menu: IMenu) => set({ currentMenuInfo: menu }),
setPageMenuAuthority: (authority: IAuthority) =>
set({ pageMenuAuthority: authority }),
}));
};
@@ -2,7 +2,7 @@ import { useRouter } from "next/navigation";
import { useConfirm } from "@frontend-opensource/use-react-hooks";
import { type FieldValues, type UseFormReturn } from "react-hook-form";
import { Button } from "@common/components";
import { Form } from "@/shared/ui/form";
import { Form } from "./form";
type FormWrapperProps<T extends FieldValues> = {
form: UseFormReturn<T>;
@@ -1 +0,0 @@
export { FormWrapper } from "./ui/form-wrapper";
@@ -19,13 +19,13 @@ import {
FileUploader,
Button,
} from "@common/components";
import { FormWrapper } from "@/widgets/form-wrapper";
import { CodeSelect } from "@/entities/code";
import type { Board } from "@/entities/board";
import { handleTusUpload } from "@/entities/tus";
import { AttachmentApi, type Attachment } from "@/entities/attachment";
import type { Post, PostFormData, PostUpdateFormData } from "@/entities/post";
import { FormControl, FormField, FormItem } from "@/shared/ui/form";
import { FormWrapper } from "@/shared/ui/form-wrapper";
import { useUserStore } from "@/shared/lib";
import { ENDPOINT } from "@/shared/config";