From d2b1042a2e0a862a0ade3c13b18ca2b78cbc7016 Mon Sep 17 00:00:00 2001 From: John Doe Date: Sun, 10 Sep 2023 17:00:23 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20for=20Next.js=20v13.2?= =?UTF-8?q?=20=F0=9F=9A=80=20Preparing=20for=20the=20next=20version=20with?= =?UTF-8?q?=20typedRoutes=20=F0=9F=9B=A0=EF=B8=8F=20Refactor=20and=20optim?= =?UTF-8?q?ize=20route=20handling=20=E2=9C=A8=20Introduce=20'Page'=20inter?= =?UTF-8?q?face=20for=20route=20configuration=20=F0=9F=93=A6=20Import=20ne?= =?UTF-8?q?cessary=20types=20and=20components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chat_history/history.sqlite | Bin 0 -> 12288 bytes src/routers/types.ts | 12 ++++++++++++ src/shared/Navigation/style.scss | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100644 %project-for-job%Chisfis_Nextjs%ChisfisNextjs/chat_history/history.sqlite create mode 100644 src/routers/types.ts create mode 100644 src/shared/Navigation/style.scss diff --git a/%project-for-job%Chisfis_Nextjs%ChisfisNextjs/chat_history/history.sqlite b/%project-for-job%Chisfis_Nextjs%ChisfisNextjs/chat_history/history.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..cf29fdc94edaba985da254166f30b4669880fa54 GIT binary patch literal 12288 zcmeI#O-sWt7zgmA6$Zl4+fIY$GT1=8c=Bc)*(ladvkLAcwT)76>u94OJNfp#ZAT~7 z*0F=9`48lU(mjnnx*b8)s!eC+x5gyNV<^rxg{rbCME~9u|Yh0Qc3FTD4yMvHo7B^+$+ba z-&I_IJaL_ctqo1%$0SgjMCvFzR{PWW*X`GzJQzt~58eE2)cx^}9!W6}Qn-CFrt(@h z3VRiZ-phhFTAdDmJ6`ISH3 DSP!Hx literal 0 HcmV?d00001 diff --git a/src/routers/types.ts b/src/routers/types.ts new file mode 100644 index 0000000..be1ac4e --- /dev/null +++ b/src/routers/types.ts @@ -0,0 +1,12 @@ +import type { Route as NextRoute } from "next"; +import { ComponentType } from "react"; + +// Get ready to update to nextjs version 13.2 with X typedRoutes +export type Route = NextRoute; +export type PathName = Route; + +export interface Page { + path: PathName; + exact?: boolean; + component: ComponentType; +} diff --git a/src/shared/Navigation/style.scss b/src/shared/Navigation/style.scss new file mode 100644 index 0000000..e84ee72 --- /dev/null +++ b/src/shared/Navigation/style.scss @@ -0,0 +1,7 @@ +.menu-item { + &:hover { + .sub-menu { + display: block; + } + } +}