diff --git a/index.html b/index.html index 2a7b8af..840ed6b 100644 --- a/index.html +++ b/index.html @@ -3,26 +3,27 @@ - - - 테크포크 (TechFork) | 기업 테크 블로그 모음 + TechFork | 기업 기술 블로그 모음 + - - - + + @@ -30,7 +31,7 @@ property="og:image" content="https://techfork-fe.vercel.app/sub_logo.png" /> - + diff --git a/public/robots.txt b/public/robots.txt index bf2e6f9..24a1b3c 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,3 +1,13 @@ User-agent: * Allow: / + +Disallow: /login +Disallow: /auth/callback +Disallow: /onboarding +Disallow: /onboarding/tag +Disallow: /edit +Disallow: /interested +Disallow: /setting +Disallow: /ask + Sitemap: https://techfork-fe.vercel.app/sitemap.xml \ No newline at end of file diff --git a/src/features/Login/api/auth.ts b/src/features/Login/api/auth.ts index 8f739c6..90314aa 100644 --- a/src/features/Login/api/auth.ts +++ b/src/features/Login/api/auth.ts @@ -3,8 +3,6 @@ import api from "@/shared/api/api"; import { API_ENDPOINTS } from "@/shared/consts/endpoints"; -export { postRefreshToken } from "@/shared/api/auth"; - //로그아웃,쿠키 export const postLogout = async () => { const { data } = await api.post(API_ENDPOINTS.auth.logout); diff --git a/src/features/Login/index.ts b/src/features/Login/index.ts index 2f2bbd6..a65546a 100644 --- a/src/features/Login/index.ts +++ b/src/features/Login/index.ts @@ -1,3 +1,3 @@ -export { postLogout, postRefreshToken } from "./api/auth"; +export { postLogout } from "./api/auth"; export type { OAuthProvider } from "./consts/oauth"; export { getOAuthUrl } from "./lib/getOAuthUrl"; diff --git a/src/features/home/ui/PostCardList.tsx b/src/features/home/ui/PostCardList.tsx index f75fe71..1e5d1ee 100644 --- a/src/features/home/ui/PostCardList.tsx +++ b/src/features/home/ui/PostCardList.tsx @@ -5,10 +5,7 @@ import { CardItem } from "@/shared/ui/CardItem"; import { Loading } from "@/shared/ui/Loading"; import { useCompanyStore } from "../model/useCompanyStore"; import useUserStore from "@/shared/model/useUserStore"; -import type { - CardItemProps, - PostResponseDto, -} from "../api/post.types"; +import type { CardItemProps, PostResponseDto } from "../api/post.types"; import { useRef, useEffect } from "react"; interface PostCardListProps { @@ -51,18 +48,13 @@ const PostCardList = ({ selectedTab }: PostCardListProps) => { (page: PostResponseDto) => page.data.posts, ) ?? []); - // console.log(posts); - return ( <> {activeQuery?.isFetchingNextPage && } {selectedTab !== 1 &&
} diff --git a/src/shared/api/account.ts b/src/features/mypage/api/account.ts similarity index 80% rename from src/shared/api/account.ts rename to src/features/mypage/api/account.ts index 0b88d7c..fb63ae0 100644 --- a/src/shared/api/account.ts +++ b/src/features/mypage/api/account.ts @@ -1,6 +1,6 @@ +import api from "@/shared/api/api"; +import { API_ENDPOINTS } from "@/shared/consts/endpoints"; import { useMutation } from "@tanstack/react-query"; -import api from "./api"; -import { API_ENDPOINTS } from "../consts/endpoints"; export const deleteAccount = async () => { const { data } = await api.patch(API_ENDPOINTS.users.me.withdrawal); diff --git a/src/features/mypage/ui/LeaveModal.tsx b/src/features/mypage/ui/LeaveModal.tsx index 96f3959..e988d47 100644 --- a/src/features/mypage/ui/LeaveModal.tsx +++ b/src/features/mypage/ui/LeaveModal.tsx @@ -5,7 +5,7 @@ import CheckOff from "@/assets/icons/check_off.svg"; import { useState } from "react"; import useUserStore from "@/shared/model/useUserStore"; import { Button } from "@/shared/ui/button/Button"; -import { useDeleteAccount } from "@/shared/api/account"; +import { useDeleteAccount } from "@/features/mypage/api/account"; interface LeaveModalProps { onClose?: () => void; } diff --git a/src/pages/home/HomePage.tsx b/src/pages/home/HomePage.tsx index c8657bf..c2fd2eb 100644 --- a/src/pages/home/HomePage.tsx +++ b/src/pages/home/HomePage.tsx @@ -72,13 +72,22 @@ const HomePage = () => { {isSearching - ? `"${debouncedInput}" 검색 결과 | TechFork` - : `${TAB_MAP[selectedTab]} | TechFork`} + ? `"${debouncedInput}" | TechFork` + : `TechFork | ${TAB_MAP[selectedTab]}`} - + + + +
setModal(false)}> diff --git a/src/pages/login/LoginPage.tsx b/src/pages/login/LoginPage.tsx index 5aaaebd..265e64a 100644 --- a/src/pages/login/LoginPage.tsx +++ b/src/pages/login/LoginPage.tsx @@ -16,6 +16,7 @@ const LoginPage = () => { return ( <> + 로그인 하기 | TechFork { return ( <> + 문의하기 | TechFork { return ( <> + 관심사 수정 | TechFork { return ( <> + 내 활동 | TechFork { return ( <> + 계정 설정 | TechFork { return ( <> + 회원가입 | TechFork { return ( <> + 회원가입 | TechFork { export const usePostReadPost = () => { const queryClient = useQueryClient(); - const postsReadQueryKey = [SHARED_QUERY_KEY.POSTS, SHARED_QUERY_KEY.POSTS_READ] as const; + const postsQueryKey = [SHARED_QUERY_KEY.POSTS] as const; return useMutation({ mutationFn: (body: ReadPostType) => postReadPosts(body), onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: postsReadQueryKey, - }); + queryClient.invalidateQueries({ queryKey: postsQueryKey }); + }, + onError: err => { + console.log(err); }, - onError: err => console.log(err), }); }; diff --git a/src/shared/consts/queryKeys.ts b/src/shared/consts/queryKeys.ts index 0c0b32a..94030ad 100644 --- a/src/shared/consts/queryKeys.ts +++ b/src/shared/consts/queryKeys.ts @@ -1,6 +1,5 @@ export const SHARED_QUERY_KEY = { POSTS: "posts", - POSTS_READ: "read", MY: "my", MY_PROFILE: "profile", MY_INTEREST: "interest",