From 8573fe05490e68bc17c5c125ab84e7515acc38d5 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Fri, 28 Apr 2023 17:27:16 +0200 Subject: [PATCH 1/8] Added API .env and removed "Menu" from navbar --- .env.development | 1 + .env.production | 1 + src/App.vue | 2 +- src/components/GeolocRequest.vue | 21 +++++ src/components/RepInfo.vue | 45 ++++++++++ src/components/navbar/Navbar.vue | 2 +- src/models/rep.ts | 146 +++++++++++++++++++++++++++++++ src/stores/repStore.ts | 22 +++-- src/views/HomeView.vue | 55 +++++++----- 9 files changed, 264 insertions(+), 31 deletions(-) create mode 100644 .env.development create mode 100644 .env.production create mode 100644 src/components/GeolocRequest.vue create mode 100644 src/components/RepInfo.vue create mode 100644 src/models/rep.ts diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..d0026be --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +VITE_API_URL = "http://localhost:3000" \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..9fa3de8 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VITE_API_URL = "https://api-deputes.alexcreates.fr" \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index e23bcaa..e335f64 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,7 +5,7 @@ import Navbar from "./components/navbar/Navbar.vue";