Skip to content

Commit 74282a2

Browse files
authored
Merge pull request #149 from luannguyenQV/feat/restructor-project-folder
Restructor project folder
2 parents 9704af9 + 392cdc0 commit 74282a2

File tree

153 files changed

+105
-139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+105
-139
lines changed

apps/web/@/actions/auth/index.ts renamed to apps/web/src/actions/auth/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { Prisma } from "database"
66
import { createUser } from "database/src/users/queries"
77
import { sendEmail } from "emails"
88
import VerifyEmail from "emails/verify-email"
9-
10-
import { redirect } from "@/utils/navigation"
9+
import { redirect } from "utils/navigation"
1110

1211
import { SignUpDataOutput, signUpSchema } from "./type"
1312

File renamed without changes.

apps/web/@/actions/protect/postAction.ts renamed to apps/web/src/actions/protect/postAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { revalidatePath } from "next/cache"
44
import { redirect } from "next/navigation"
55

66
import { auth } from "configs/auth"
7+
import APP_ROUTES from "constants/routes"
78
import prisma, {
89
createPost,
910
PostOnUserType,
@@ -15,7 +16,6 @@ import prisma, {
1516
} from "database"
1617
import { toast } from "react-toastify"
1718

18-
import APP_ROUTES from "@/constants/routes"
1919
import { TUserItem, userSelect } from "@/types/users"
2020

2121
// TODO: move to database package

apps/web/app/[lang]/(auth)/signin/page.tsx renamed to apps/web/src/app/[lang]/(auth)/signin/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import React from "react"
22
import { redirect } from "next/navigation"
33

44
import { auth } from "configs/auth"
5+
import SignIn from "molecules/auth/sign-in"
56
import { getTranslations } from "next-intl/server"
67

7-
import SignIn from "@/molecules/auth/sign-in"
8-
98
export async function generateMetadata() {
109
const t = await getTranslations()
1110

apps/web/app/[lang]/(auth)/signup/page.tsx renamed to apps/web/src/app/[lang]/(auth)/signup/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
22

3-
import SignUp from "@/molecules/auth/sign-up"
3+
import SignUp from "molecules/auth/sign-up"
44

55
const RegisterPage: React.FC = () => {
66
return (

apps/web/app/[lang]/(protected)/layout.tsx renamed to apps/web/src/app/[lang]/(protected)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import SidebarItem, { SidebarItemProps } from "@/molecules/sidebar-item"
1+
import SidebarItem, { SidebarItemProps } from "molecules/sidebar-item"
22

33
const SIDE_BAR = [
44
{

apps/web/app/[lang]/(protected)/user/posts/page.tsx renamed to apps/web/src/app/[lang]/(protected)/user/posts/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { Metadata } from "next/types"
33

44
import { auth } from "configs/auth"
55
import { getUser } from "database"
6-
7-
import PageTitle from "@/molecules/page-title"
6+
import PageTitle from "molecules/page-title"
87

98
export async function generateMetadata(): Promise<Metadata> {
109
const session = await auth()

0 commit comments

Comments
 (0)