From f9e807e2e41aeadd578f9eda32e242e518dadcd2 Mon Sep 17 00:00:00 2001 From: JonasGz Date: Thu, 16 May 2024 13:23:01 -0300 Subject: [PATCH] finish service routes --- package.json | 1 + pnpm-lock.yaml | 7 + src/home/components/Navigation/index.js | 2 +- src/home/components/SideMenu/index.js | 10 +- src/home/index.html | 2 +- src/home/index.js | 7 +- src/home/index.scss | 177 +++++++++--------- src/router/main-router.js | 14 ++ .../routes/cadastro-pet/cadastro-pet.js | 17 ++ .../routes/cadastro-pet/etapas/aniversario.js | 18 ++ .../routes/cadastro-pet/etapas/cadastro.js | 20 ++ src/router/routes/cadastro-pet/etapas/nome.js | 18 ++ src/router/routes/cadastro-pet/etapas/peso.js | 18 ++ .../routes/cadastro-pet/etapas/petvet.js | 18 ++ src/router/routes/cadastro-pet/etapas/raca.js | 18 ++ .../routes/cadastro-pet/etapas/tamanho.js | 18 ++ .../routes/meus-pets/etapas/meuspets.js | 18 ++ .../routes/meus-pets/etapas/petperfil.js | 18 ++ src/router/routes/meus-pets/meus-pets.js | 7 + .../rotas-principais/rotas-principais.js | 8 + .../rotas-principais/rotas/configuracoes.js | 18 ++ .../routes/rotas-principais/rotas/conta.js | 18 ++ .../routes/rotas-principais/rotas/doacoes.js | 18 ++ .../routes/rotas-principais/rotas/error.js | 18 ++ .../routes/rotas-principais/rotas/home.js | 17 ++ .../routes/rotas-principais/rotas/pet-dex.js | 18 ++ vite.config.js | 4 +- 27 files changed, 427 insertions(+), 100 deletions(-) create mode 100644 src/router/main-router.js create mode 100644 src/router/routes/cadastro-pet/cadastro-pet.js create mode 100644 src/router/routes/cadastro-pet/etapas/aniversario.js create mode 100644 src/router/routes/cadastro-pet/etapas/cadastro.js create mode 100644 src/router/routes/cadastro-pet/etapas/nome.js create mode 100644 src/router/routes/cadastro-pet/etapas/peso.js create mode 100644 src/router/routes/cadastro-pet/etapas/petvet.js create mode 100644 src/router/routes/cadastro-pet/etapas/raca.js create mode 100644 src/router/routes/cadastro-pet/etapas/tamanho.js create mode 100644 src/router/routes/meus-pets/etapas/meuspets.js create mode 100644 src/router/routes/meus-pets/etapas/petperfil.js create mode 100644 src/router/routes/meus-pets/meus-pets.js create mode 100644 src/router/routes/rotas-principais/rotas-principais.js create mode 100644 src/router/routes/rotas-principais/rotas/configuracoes.js create mode 100644 src/router/routes/rotas-principais/rotas/conta.js create mode 100644 src/router/routes/rotas-principais/rotas/doacoes.js create mode 100644 src/router/routes/rotas-principais/rotas/error.js create mode 100644 src/router/routes/rotas-principais/rotas/home.js create mode 100644 src/router/routes/rotas-principais/rotas/pet-dex.js diff --git a/package.json b/package.json index e12e07ed..499373dc 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "dayjs": "^1.11.10", "pet-dex-utilities": "^1.0.1", "reset-css": "^5.0.2", + "vanilla-routing": "0.0.4", "vite": "^5.0.12", "vite-plugin-pwa": "^0.19.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1a1b5f7e..de5143f0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ dependencies: reset-css: specifier: ^5.0.2 version: 5.0.2 + vanilla-routing: + specifier: 0.0.4 + version: 0.0.4 vite: specifier: ^5.0.12 version: 5.2.10(@types/node@20.12.7)(sass@1.75.0) @@ -9318,6 +9321,10 @@ packages: spdx-expression-parse: 3.0.1 dev: true + /vanilla-routing@0.0.4: + resolution: {integrity: sha512-I+9E+HLN4EsGsPwFBRPkQe94f1+uEHOSFnnWaRbI5CdM3nwXy6RSERhXPzLxmNNCBTxpfAeQTRJAApd7ODY/gQ==} + dev: false + /vary@1.1.2: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} diff --git a/src/home/components/Navigation/index.js b/src/home/components/Navigation/index.js index 38514d91..213395c6 100644 --- a/src/home/components/Navigation/index.js +++ b/src/home/components/Navigation/index.js @@ -19,7 +19,7 @@ const html = ` -