Skip to content

Commit

Permalink
update path , package
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnhan90 committed Jan 11, 2024
1 parent bdee5cf commit d51c87c
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 24 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"@types/react-phone-number-input": "^3.0.17",
"axios": "^1.6.0",
"axios-hooks": "^5.0.1",
"bootstrap": "^5.3.2",
"i18next": "^23.6.0",
"jwt-decode": "^4.0.0",
"lru-cache": "^10.0.1",
"next": "14.0.1",
"next-auth": "^4.24.4",
"next-i18next": "^15.0.0",
"next-seo": "^6.4.0",
"react": "^18",
"react-bootstrap": "^2.9.1",
"react-bootstrap": "^2.9.2",
"react-dom": "^18",
"react-hook-form": "^7.48.2",
"react-i18next": "^13.3.1",
Expand Down
Empty file added src/app/account/page.tsx
Empty file.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@/styles/bootstrap.min.scss'
import '@/styles/global.css';

export default function RootLayout({children,}: {children: React.ReactNode;}) {
return (
Expand Down
12 changes: 12 additions & 0 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Link from "next/link"
const NotFoundPage = () => (
<section className="error-page">
<div className="container">
<h1>Error 404</h1>
<p>Woops. Looks like this page doesn't exist</p>
<Link href="/homepage" className="btn btn--rounded btn--yellow">Go to home</Link>
</div>
</section>
)

export default NotFoundPage
2 changes: 1 addition & 1 deletion src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Link from "next/link";
import { useState, useEffect } from 'react';
import { useRouter } from 'next/router';
import Dropdown from 'react-bootstrap/Dropdown';
import CartModel from '@components/cart/cart_model';
import CartModel from '@components/cart/cartModel';
import CheckLogin from '@components/header/checkLogin';
import CartHeader from '@components/header/cartHeader';

Expand Down
1 change: 1 addition & 0 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "~bootstrap/scss/bootstrap";
12 changes: 1 addition & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@assets/*": ["assets/*"],
"@adapters/*": ["src/adapters/*"],
"@components/*": ["src/components/*"],
"@configs/*": ["src/configs/*"],
"@hooks/*": ["src/hooks/*"],
"@layouts/*": ["src/layouts/*"],
"@pages/*": ["src/pages/*"],
"@services/*": ["src/services/*"],
"@stores/*": ["src/stores/*"],
"@types/*": ["src/types/*"],
"@utils/*": ["src/utils/*"],
"@/*": ["src/*"]
},
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,11 @@ balanced-match@^1.0.0:
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==

bootstrap@^5.3.2:
version "5.3.2"
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-5.3.2.tgz#97226583f27aae93b2b28ab23f4c114757ff16ae"
integrity sha512-D32nmNWiQHo94BKHLmOrdjlL05q1c8oxbtBphQFb9Z5to6eGRDCm0QgeaZ4zFBHzfg2++rqa2JkqCcxDy0sH0g==

brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
Expand Down Expand Up @@ -2033,11 +2038,6 @@ next-i18next@^15.0.0:
hoist-non-react-statics "^3.3.2"
i18next-fs-backend "^2.2.0"

next-seo@^6.4.0:
version "6.4.0"
resolved "https://registry.yarnpkg.com/next-seo/-/next-seo-6.4.0.tgz#05a75b8acae881f856eb690b1f66b5e8741aa16e"
integrity sha512-XQFxkOL2hw0YE+P100HbI3EAvcludlHPxuzMgaIjKb7kPK0CvjGvLFjd9hszZFEDc5oiQkGFA8+cuWcnip7eYA==

[email protected]:
version "14.0.1"
resolved "https://registry.yarnpkg.com/next/-/next-14.0.1.tgz#1375d94c5dc7af730234af48401be270e975cb22"
Expand Down Expand Up @@ -2341,10 +2341,10 @@ queue-microtask@^1.2.2:
resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==

react-bootstrap@^2.9.1:
version "2.9.1"
resolved "https://registry.yarnpkg.com/react-bootstrap/-/react-bootstrap-2.9.1.tgz#c1ab48ae2b2cfe6d5ac957c2042eb36fcafdb1d2"
integrity sha512-ezgmh/ARCYp18LbZEqPp0ppvy+ytCmycDORqc8vXSKYV3cer4VH7OReV8uMOoKXmYzivJTxgzGHalGrHamryHA==
react-bootstrap@^2.9.2:
version "2.9.2"
resolved "https://registry.yarnpkg.com/react-bootstrap/-/react-bootstrap-2.9.2.tgz#ee2bab4cb19df628a90868fa594a3b410fe0c0be"
integrity sha512-a36B+EHsAI/aH+ZhXNILBFnqscE3zr10dWmjBmfhIb2QR7KSXJiGzYd6Faf/25G8G7/CP9TCL2B0WhUBOD2UBQ==
dependencies:
"@babel/runtime" "^7.22.5"
"@restart/hooks" "^0.4.9"
Expand Down

0 comments on commit d51c87c

Please sign in to comment.