Changeset ff641e1
- Timestamp:
- 01/24/25 00:22:25 (3 months ago)
- Branches:
- master
- Children:
- 34aa6cc
- Parents:
- d10a9aa
- Location:
- ReserveNGo-frontend/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
ReserveNGo-frontend/src/App.vue
rd10a9aa rff641e1 22 22 <RouterView />--> 23 23 24 <NavBar></NavBar> 25 <router-view/> 24 <div class="wrapper"> 25 <NavBar></NavBar> 26 <main> 27 <router-view/> 28 </main> 29 <footer> 30 <div class="container-fluid"> 31 <div class="row"> 32 <Footer_></Footer_> 33 </div> 34 </div> 35 </footer> 36 </div> 26 37 27 38 28 39 29 <Footer_></Footer_> 40 41 30 42 31 43 <!-- <Locale_listing_container></Locale_listing_container> … … 37 49 38 50 <style scoped> 51 52 .wrapper { 53 display: flex; 54 flex-direction: column; 55 min-height: 100vh; 56 } 57 58 main { 59 flex: 1; /*istrazi*/ 60 } 39 61 40 62 template{ background: #FBFFF1;} -
ReserveNGo-frontend/src/PiniaStores/restaurantStore.js
rd10a9aa rff641e1 10 10 name: '', 11 11 address: '', 12 workingHours: ' 00:50',12 workingHours: '', 13 13 availableServices: [], 14 14 averageRating: 0 … … 17 17 }, 18 18 actions: { 19 setDetails (name, address, workingHours ) {19 setDetails (name, address, workingHours, availableServices) { 20 20 this.name = name 21 21 this.address = address 22 22 this.workingHours = workingHours 23 //this.availableServices = availableServices23 this.availableServices = availableServices 24 24 } 25 25 }, -
ReserveNGo-frontend/src/components/Project/Locale_details.vue
rd10a9aa rff641e1 22 22 <p>Local details...</p> 23 23 <p>Working hours: {{restaurantStore.workingHours}}</p> 24 <ul> 25 <li>Service 1</li> 26 <li>Service 2</li> 27 <li>Service 3</li> 24 <ul v-for="service in restaurantStore.availableServices" :key="service"> 25 <li>{{service}}</li> 28 26 </ul> 29 27 <p>Average rating...</p> -
ReserveNGo-frontend/src/components/Project/Locale_listing_container.vue
rd10a9aa rff641e1 6 6 components: { Local_in_local_listing }, 7 7 8 9 data(){ 8 data() { 10 9 return { 11 locale: {10 /*locale: { 12 11 name: 'Restaurant name', 13 12 address: 'Restaurant address', 14 13 workingHours: '00:00', 15 14 availableServices: ['pet Friendly', 'WiFI'], 16 averageRating: 0 17 } 15 averageRating: 0, 16 },*/ 17 locals: [], 18 18 } 19 } 20 19 }, 20 mounted() { 21 fetch('http://localhost:8080/api/locals') 22 .then(res => res.json()) 23 .then(data => this.locals = data) 24 .catch(err => console.log(err)); 25 }, 21 26 }) 22 23 27 </script> 24 28 25 29 <template> 26 27 28 30 <div id="container" class="border"> 29 30 <div v-for="locale_ in 5" :key="locale_"> 31 32 <Local_in_local_listing :name="locale.name+locale_" :address="locale.address+locale_" :workingHours="locale.workingHours+locale_" /> 33 <!-- <Local_in_local_listing/>--> 31 <div v-for="locale in locals" :key="locale"> 32 <Local_in_local_listing 33 :local="locale"/> 34 <!-- <Local_in_local_listing/>--> 34 35 </div> 35 36 36 <!-- <Local_in_local_listing/>37 <!-- <Local_in_local_listing/> 37 38 <Local_in_local_listing/> 38 39 <Local_in_local_listing/> 39 40 <Local_in_local_listing/>--> 40 41 42 41 </div> 43 44 45 46 47 48 42 </template> 49 43 50 44 <style scoped> 51 52 45 #container { 53 54 55 56 46 } 57 58 59 47 </style> -
ReserveNGo-frontend/src/components/Project/Nav_bar_new.vue
rd10a9aa rff641e1 87 87 } 88 88 89 #component{ 90 width: 90%; 91 height: 5%; 92 } 89 93 90 nav{ 94 91 background: #8377D1; -
ReserveNGo-frontend/src/components/Project/local_in_local_listing.vue
rd10a9aa rff641e1 18 18 }, 19 19 props: { 20 name: {20 /* name: { 21 21 type: String, 22 22 required: true, … … 32 32 required: false, 33 33 default: "Working hours not provided" 34 },*/ 35 local:{ 36 required: true, 34 37 } 35 38 }, … … 40 43 let restaurantStore_ = restaurantStore() 41 44 42 restaurantStore_.setDetails(this. name, this.address, this.workingHours)45 restaurantStore_.setDetails(this.local.name, this.local.address, this.local.workingHours, this.local.availableServices) 43 46 44 47 … … 55 58 56 59 <div id="container" class="border my-3 p-2" @click="handleClick()"> 57 <h3>{{ name}}</h3>58 <h5>{{ address}}</h5>60 <h3>{{local.name}}</h3> 61 <h5>{{local.address}}</h5> 59 62 60 63 </div> -
ReserveNGo-frontend/src/components/Project/login_.vue
rd10a9aa rff641e1 11 11 12 12 <div class="col-3"> 13 <form action=" " method="POST">13 <form action="http://localhost:8080/api/auth/login" method="POST"> 14 14 15 15 <label for="email" class="form-label">Email</label> -
ReserveNGo-frontend/src/components/Project/register_.vue
rd10a9aa rff641e1 1 <script setup> 1 <script> 2 3 4 export default { 5 data() { 6 return { 7 path: '', 8 url: 'http://localhost:8080/api/auth/register/', 9 10 } 11 }, 12 13 methods: { 14 15 }, 16 /*computed: { 17 somevariabletest(){ 18 return this.url+this.path; 19 } 20 }*/ 21 22 23 } 24 25 2 26 3 27 </script> … … 9 33 10 34 <div class="col-3"> 11 <form action="" method="POST">35 <form v-bind:action="url+path" method="POST"> 12 36 <label for="name" class="form-label" >Name</label> 13 <input type="text" id="name" name=" name" class="form-control" placeholder="Name" required>37 <input type="text" id="name" name="firstName" class="form-control" placeholder="Name" required> 14 38 15 39 <label for="surname" class="form-label">Surname</label> 16 <input type="text" id="surname" name=" surname" class="form-control" placeholder="Surname" required>40 <input type="text" id="surname" name="lastName" class="form-control" placeholder="Surname" required> 17 41 18 42 <label for="phone_number" class="form-label">Phone Number</label> 19 <input type="text" id="phone_number" name="phone -number" class="form-control" required>43 <input type="text" id="phone_number" name="phoneNumber" class="form-control" required> 20 44 21 45 <label for="email" class="form-label">Email Address</label> … … 24 48 <label for="password" class="form-label">Password</label> 25 49 <input type="password" id="password" name="password" class="form-control"> 50 51 <label for="role" class="form-label">Role</label> 52 <select class="form-control" id="role" v-model="path"> 53 54 <option value="customer">Customer</option> 55 56 <option value="local-worker">Local Worker</option> 57 58 <option value="local-manager">Local Manager</option> 59 60 </select> 26 61 27 62 <button type="submit" class="btn btn-dark">Register</button>
Note:
See TracChangeset
for help on using the changeset viewer.