From e78dec9c4d51f2f2741edc6da6c2afa18e418f15 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Wed, 9 Jul 2025 12:45:15 +0000 Subject: (최겸) 미사용 파일 제거 (기술영업) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/[lng]/partners/(partners)/cbe-tech/page.tsx | 89 ---------------- app/[lng]/partners/(partners)/rfq-tech/page.tsx | 136 ------------------------ app/[lng]/partners/(partners)/tbe-tech/page.tsx | 88 --------------- 3 files changed, 313 deletions(-) delete mode 100644 app/[lng]/partners/(partners)/cbe-tech/page.tsx delete mode 100644 app/[lng]/partners/(partners)/rfq-tech/page.tsx delete mode 100644 app/[lng]/partners/(partners)/tbe-tech/page.tsx (limited to 'app') diff --git a/app/[lng]/partners/(partners)/cbe-tech/page.tsx b/app/[lng]/partners/(partners)/cbe-tech/page.tsx deleted file mode 100644 index b8afd1df..00000000 --- a/app/[lng]/partners/(partners)/cbe-tech/page.tsx +++ /dev/null @@ -1,89 +0,0 @@ -import { type SearchParams } from "@/types/table" -import { getValidFilters } from "@/lib/data-table" -import { getCBEbyVendorId, } from "@/lib/rfqs-tech/service" -import { searchParamsCBECache } from "@/lib/rfqs-tech/validations" -import { getServerSession } from "next-auth" -import { authOptions } from "@/app/api/auth/[...nextauth]/route" -import { TbeVendorTable } from "@/lib/tech-vendor-rfq-response/vendor-tbe-table/tbe-table" -import * as React from "react" -import { Skeleton } from "@/components/ui/skeleton" -import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton" -import { Shell } from "@/components/shell" -import { CbeVendorTable } from "@/lib/tech-vendor-rfq-response/vendor-cbe-table/cbe-table" -import { InformationButton } from "@/components/information/information-button" -interface IndexPageProps { - // Next.js 13 App Router에서 기본으로 주어지는 객체들 - params: { - lng: string - id: string - } - searchParams: Promise -} - -export default async function CBEPage(props: IndexPageProps) { - const resolvedParams = await props.params - const lng = resolvedParams.lng - - // 2) SearchParams 파싱 (Zod) - // - "filters", "page", "perPage", "sort" 등 contact 전용 컬럼 - const searchParams = await props.searchParams - const search = searchParamsCBECache.parse(searchParams) - const validFilters = getValidFilters(search.filters) - - const session = await getServerSession(authOptions) - const vendorId = session?.user.companyId - // const vendorId = "17" - - const idAsNumber = Number(vendorId) - - const promises = Promise.all([ - getCBEbyVendorId({ - ...search, - filters: validFilters, - }, - idAsNumber) - ]) - - - return ( - -
-
-
-
-

- CBE 관리 -

- -
- {/*

- CBE에 응답하고 커뮤니케이션을 할 수 있습니다.{" "} -

*/} -
-
-
- - }> - {/* */} - - - } - > - - -
- ) -} diff --git a/app/[lng]/partners/(partners)/rfq-tech/page.tsx b/app/[lng]/partners/(partners)/rfq-tech/page.tsx deleted file mode 100644 index a41a7f0c..00000000 --- a/app/[lng]/partners/(partners)/rfq-tech/page.tsx +++ /dev/null @@ -1,136 +0,0 @@ -import * as React from "react" -import { type SearchParams } from "@/types/table" -import { getValidFilters } from "@/lib/data-table" -import { Skeleton } from "@/components/ui/skeleton" -import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton" -import { Shell } from "@/components/shell" -import { searchParamsRfqsForVendorsCache } from "@/lib/rfqs-tech/validations" -import { RfqsVendorTable } from "@/lib/tech-vendor-rfq-response/vendor-rfq-table/rfqs-table" -import { getServerSession } from "next-auth" -import { authOptions } from "@/app/api/auth/[...nextauth]/route" -import Link from "next/link" -import { Button } from "@/components/ui/button" -import { LogIn } from "lucide-react" -import { getRfqResponsesForVendor } from "@/lib/tech-vendor-rfq-response/service" -import { InformationButton } from "@/components/information/information-button" -interface IndexPageProps { - searchParams: Promise -} - -export default async function IndexPage(props: IndexPageProps) { - const searchParams = await props.searchParams - const search = searchParamsRfqsForVendorsCache.parse(searchParams) - const validFilters = getValidFilters(search.filters) - - // Get session - const session = await getServerSession(authOptions) - - // Check if user is logged in - if (!session || !session.user) { - // Return login required UI instead of redirecting - return ( - -
-
-
-

- RFQ -

- -
- {/*

- RFQ를 응답하고 커뮤니케이션을 할 수 있습니다. -

*/} -
-
- -
-
-

로그인이 필요합니다

-

- RFQ를 확인하려면 먼저 로그인하세요. -

- -
-
-
- ) - } - - // User is logged in, proceed with vendor ID - const vendorId = session.user.companyId - - // Validate vendorId (should be a number) - const idAsNumber = Number(vendorId) - - if (isNaN(idAsNumber)) { - // Handle invalid vendor ID (this shouldn't happen if authentication is working properly) - return ( - -
-
-

- RFQ -

-
-
-
-
-

계정 오류

-

- 업체 정보가 올바르게 설정되지 않았습니다. 관리자에게 문의하세요. -

-
-
-
- ) - } - - // If we got here, we have a valid vendor ID - const promises = Promise.all([ - getRfqResponsesForVendor({ - ...search, - filters: validFilters, - }, idAsNumber) - ]) - - return ( - -
-
-
-

- RFQ -

-

- RFQ를 응답하고 커뮤니케이션을 할 수 있습니다. -

-
-
-
- - }> - {/* DateRangePicker can go here */} - - - - } - > - - -
- ) -} \ No newline at end of file diff --git a/app/[lng]/partners/(partners)/tbe-tech/page.tsx b/app/[lng]/partners/(partners)/tbe-tech/page.tsx deleted file mode 100644 index 2085ca36..00000000 --- a/app/[lng]/partners/(partners)/tbe-tech/page.tsx +++ /dev/null @@ -1,88 +0,0 @@ -import { type SearchParams } from "@/types/table" -import { getValidFilters } from "@/lib/data-table" -import { getTBEforVendor } from "@/lib/rfqs-tech/service" -import { searchParamsTBECache } from "@/lib/rfqs-tech/validations" -import { getServerSession } from "next-auth" -import { authOptions } from "@/app/api/auth/[...nextauth]/route" -import { TbeVendorTable } from "@/lib/tech-vendor-rfq-response/vendor-tbe-table/tbe-table" -import * as React from "react" -import { Skeleton } from "@/components/ui/skeleton" -import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton" -import { Shell } from "@/components/shell" -import { InformationButton } from "@/components/information/information-button" -interface IndexPageProps { - // Next.js 13 App Router에서 기본으로 주어지는 객체들 - params: { - lng: string - id: string - } - searchParams: Promise -} - -export default async function RfqTBEPage(props: IndexPageProps) { - const resolvedParams = await props.params - const lng = resolvedParams.lng - - // 2) SearchParams 파싱 (Zod) - // - "filters", "page", "perPage", "sort" 등 contact 전용 컬럼 - const searchParams = await props.searchParams - const search = searchParamsTBECache.parse(searchParams) - const validFilters = getValidFilters(search.filters) - - const session = await getServerSession(authOptions) - const vendorId = session?.user.companyId - // const vendorId = "17" - - const idAsNumber = Number(vendorId) - - const promises = Promise.all([ - getTBEforVendor({ - ...search, - filters: validFilters, - }, - idAsNumber) - ]) - - - return ( - -
-
-
-
-

- Technical Bid Evaluation -

- -
-

- TBE에 응답하고 커뮤니케이션을 할 수 있습니다.{" "} -

-
-
-
- - }> - {/* */} - - - } - > - - -
- ) -} -- cgit v1.2.3