Changeset f9ef3e8 for ReserveNGo-frontend/src
- Timestamp:
- 01/23/25 18:48:23 (3 months ago)
- Branches:
- master
- Children:
- a0e93df
- Parents:
- 4446c6f
- Location:
- ReserveNGo-frontend/src
- Files:
-
- 2 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
ReserveNGo-frontend/src/App.vue
r4446c6f rf9ef3e8 37 37 38 38 <style scoped> 39 40 template{ background: #FBFFF1;} 39 41 /*header { 40 42 line-height: 1.5; -
ReserveNGo-frontend/src/PiniaStores/restaurantStore.js
r4446c6f rf9ef3e8 9 9 return { 10 10 name: '', 11 address: '', 12 workingHours: '00:50', 13 availableServices: [], 14 averageRating: 0 11 15 12 16 } 13 17 }, 14 18 actions: { 15 set Name (name) {19 setDetails (name, address, workingHours) { 16 20 this.name = name 21 this.address = address 22 this.workingHours = workingHours 23 //this.availableServices = availableServices 17 24 } 18 25 }, -
ReserveNGo-frontend/src/components/Project/Footer_.vue
r4446c6f rf9ef3e8 6 6 7 7 <div id="container" class="border"> 8 <footer> 8 9 Lorem ipsum dolor sit amet, consectetur adipisicing elit. Itaque, voluptatibus? 10 </footer> 9 11 </div> 10 12 … … 16 18 #container{ 17 19 height: 20vh; 20 background: #8377D1; 21 } 22 23 footer{ 24 18 25 } 19 26 -
ReserveNGo-frontend/src/components/Project/Locale_details.vue
r4446c6f rf9ef3e8 1 1 <script> 2 2 3 4 import { restaurantStore } from '@/PiniaStores/restaurantStore.js' 3 5 4 6 export default { … … 8 10 name: '', 9 11 address: '' 10 } 12 }, 13 restaurantStore: restaurantStore() 11 14 } 12 15 } … … 18 21 <div id="container" class="border px-5 py-2"> 19 22 <p>Local details...</p> 20 <p>Working hours: xx:yy-xx:yy</p>23 <p>Working hours: {{restaurantStore.workingHours}}</p> 21 24 <ul> 22 25 <li>Service 1</li> -
ReserveNGo-frontend/src/components/Project/Locale_listing_container.vue
r4446c6f rf9ef3e8 4 4 5 5 export default defineComponent({ 6 components: { Local_in_local_listing } 6 components: { Local_in_local_listing }, 7 8 9 data(){ 10 return { 11 locale: { 12 name: 'Restaurant name', 13 address: 'Restaurant address', 14 workingHours: '00:00', 15 availableServices: ['pet Friendly', 'WiFI'], 16 averageRating: 0 17 } 18 } 19 } 20 7 21 }) 8 22 … … 13 27 14 28 <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/>--> 34 </div> 35 36 <!-- <Local_in_local_listing/> 15 37 <Local_in_local_listing/> 16 38 <Local_in_local_listing/> 17 <Local_in_local_listing/> 18 <Local_in_local_listing/> 19 <Local_in_local_listing/> 39 <Local_in_local_listing/>--> 20 40 21 41 -
ReserveNGo-frontend/src/components/Project/My_reservations.vue
r4446c6f rf9ef3e8 1 1 <script setup> 2 2 3 import reservation_ from '@/components/Project/reservation_.vue' 3 4 </script> 4 5 5 6 <template> 6 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque doloribus eos facere optio quam totam, voluptate! A adipisci ducimus enim labore magni molestias nihil, quasi, quos reprehenderit saepe tenetur ullam.</p> 7 8 <div id="container " class="border container-xxl"> 9 10 <reservation_/> 11 <reservation_/> 12 <reservation_/> 13 <reservation_/> 14 15 </div> 7 16 </template> 8 17 -
ReserveNGo-frontend/src/components/Project/Nav_bar_new.vue
r4446c6f rf9ef3e8 42 42 <!-- navbar --> 43 43 44 <nav class="navbar navbar-expand-md navbar-light pt-1 pb-4 ">44 <nav class="navbar navbar-expand-md navbar-light pt-1 pb-4 "> 45 45 <div class="container-xxl"> 46 46 <!-- navbar brand / title --> … … 59 59 <ul class="navbar-nav"> 60 60 <li class="nav-item"> 61 <router-link to="/ topics" class="nav-link">Омилени Локали </router-link>61 <router-link to="/favourite_locals" class="nav-link">Омилени Локали </router-link> 62 62 </li> 63 63 <li class="nav-item"> 64 <router-link to="/my_reservations" class="nav-link"> Омилени Локали </router-link>64 <router-link to="/my_reservations" class="nav-link">Мои резервации </router-link> 65 65 </li> 66 66 <li class="nav-item ms-2 d-none d-md-inline"> 67 <router-link to="/login" >68 <a class="btn btn- secondary">Најави се</a>67 <router-link to="/login" > 68 <a class="btn btn-dark">Најави се</a> 69 69 </router-link> 70 70 <router-link to="/register"> 71 <a class="btn btn- secondaryms-2">Регистрирај се</a>71 <a class="btn btn-dark ms-2">Регистрирај се</a> 72 72 </router-link> 73 73 </li> … … 91 91 height: 5%; 92 92 } 93 nav{ 94 background: #8377D1; 95 } 96 93 97 94 98 -
ReserveNGo-frontend/src/components/Project/home_.vue
r4446c6f rf9ef3e8 37 37 <style scoped> 38 38 39 40 39 41 </style> -
ReserveNGo-frontend/src/components/Project/local_in_local_listing.vue
r4446c6f rf9ef3e8 1 1 <script> 2 2 3 4 import { restaurantStore } from '@/PiniaStores/restaurantStore.js' 3 5 4 6 export default { … … 7 9 return { 8 10 9 locale:{11 /*locale:{ 10 12 name: "Restaurant name", 11 13 address: "Restaurant address", 12 } 14 }*/ 15 16 17 } 18 }, 19 props: { 20 name: { 21 type: String, 22 required: true, 23 default: "Restaurant name" // Default value if no prop is passed 24 }, 25 address: { 26 type: String, 27 required: true, 28 default: "Restaurant address" 29 }, 30 workingHours: { 31 type: String, 32 required: false, 33 default: "Working hours not provided" 34 } 35 }, 36 37 methods: { 38 handleClick() { 39 //alert(`Clicked on ${this.name}`); 40 let restaurantStore_ = restaurantStore() 41 42 restaurantStore_.setDetails(this.name, this.address, this.workingHours) 43 13 44 14 45 } 15 46 } 16 17 47 18 48 } … … 24 54 <template> 25 55 26 <div id="container" class="border my-3 p-2" >27 <h3>{{ locale.name}}</h3>28 <h5>{{ locale.address}}</h5>56 <div id="container" class="border my-3 p-2" @click="handleClick()"> 57 <h3>{{name}}</h3> 58 <h5>{{address}}</h5> 29 59 30 60 </div> … … 38 68 39 69 70 40 71 } 41 72 -
ReserveNGo-frontend/src/components/Project/login_.vue
r4446c6f rf9ef3e8 4 4 5 5 <template> 6 <input type="email"> 7 <label for="email">Email</label> 8 <input type="password"> 9 <label for="password">Password</label> 6 7 8 <div class="container-xxl"> 9 10 <div class="row justify-content-center "> 11 12 <div class="col-3"> 13 <form action="" method="POST"> 14 15 <label for="email" class="form-label">Email</label> 16 <input name="email" id="email" class="form-control" type="email"> 17 18 <label for="password" class="form-label">Password</label> 19 <input name="password" id="password" type="password" class="form-control"> 20 21 <button type="submit" class="btn btn-dark mt-2">Login</button> 22 </form> 23 </div> 24 25 26 27 </div> 28 29 30 </div> 10 31 </template> 11 32 -
ReserveNGo-frontend/src/components/Project/register_.vue
r4446c6f rf9ef3e8 4 4 5 5 <template> 6 <input type="text" id="name"> 7 <label for="name">Name</label> 8 <input type="text" id="surname"> 9 <label for="surname">Surname</label> 10 <input type="text" id="phone_number"> 11 <label for="phone_number">Phone Number</label> 12 <input type="email" id="email"> 13 <label for="email">Email Address</label> 14 <input type="password" id="password"> 15 <label for="password">Password</label> 6 <div class="container-xxl"> 7 <div class="row justify-content-center"> 8 9 10 <div class="col-3"> 11 <form action="" method="POST"> 12 <label for="name" class="form-label" >Name</label> 13 <input type="text" id="name" name="name" class="form-control" placeholder="Name" required> 14 15 <label for="surname" class="form-label">Surname</label> 16 <input type="text" id="surname" name="surname" class="form-control" placeholder="Surname" required> 17 18 <label for="phone_number" class="form-label">Phone Number</label> 19 <input type="text" id="phone_number" name="phone-number" class="form-control" required> 20 21 <label for="email" class="form-label">Email Address</label> 22 <input type="email" id="email" name="email" class="form-control" placeholder="someone@example.com" required> 23 24 <label for="password" class="form-label">Password</label> 25 <input type="password" id="password" name="password" class="form-control"> 26 27 <button type="submit" class="btn btn-dark">Register</button> 28 </form> 29 </div> 30 31 </div> 32 33 34 </div> 35 16 36 </template> 17 37 -
ReserveNGo-frontend/src/router/index.js
r4446c6f rf9ef3e8 1 1 import { createRouter, createWebHistory } from 'vue-router' 2 2 3 import My_reservations from '@/components/Project/My_reservations.vue' 3 4 4 import home_ from '@/components/Project/home_.vue' 5 5 import login_ from '@/components/Project/login_.vue' 6 6 import register_ from '@/components/Project/register_.vue' 7 import favourite_locals from '@/components/Project/favourite_locals.vue' 8 import my_reservations from '@/components/Project/My_reservations.vue' 7 9 8 10 const router = createRouter({ … … 10 12 routes: [ 11 13 { 12 path: '/ topics',13 name: ' my_reservations',14 component: My_reservations,14 path: '/favourite_locals', 15 name: 'favourite_locals', 16 component: favourite_locals, 15 17 // route level code-splitting 16 18 // this generates a separate chunk (About.[hash].js) for this route 17 19 // which is lazy-loaded when the route is visited. 18 20 21 }, 22 { 23 path: '/my_reservations', 24 name: 'my reservations', 25 component: my_reservations, 19 26 }, 20 27 {
Note:
See TracChangeset
for help on using the changeset viewer.