diff --git a/src/Master.vue b/src/Master.vue
new file mode 100644
index 0000000..785f6c9
--- /dev/null
+++ b/src/Master.vue
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue
index e33007a..584b483 100644
--- a/src/components/Navbar.vue
+++ b/src/components/Navbar.vue
@@ -1,7 +1,7 @@
+
+
+
diff --git a/src/components/layouts/TheHeader.vue b/src/components/layouts/TheHeader.vue
new file mode 100644
index 0000000..d5ffd7e
--- /dev/null
+++ b/src/components/layouts/TheHeader.vue
@@ -0,0 +1,50 @@
+
+
+
+
Sistem Lelong
+
+
+
+
+
+
+ Utama
+
+
+ Senarai
+
+
+ Troli
+
+
+ Rekod Bidaan
+
+
+ Keputusan
+
+
+ Profil
+
+
+ Log Keluar
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/layouts/TheTemplate.vue b/src/components/layouts/TheTemplate.vue
new file mode 100644
index 0000000..6f0ac48
--- /dev/null
+++ b/src/components/layouts/TheTemplate.vue
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/list/TheList.vue b/src/components/list/TheList.vue
new file mode 100644
index 0000000..e498579
--- /dev/null
+++ b/src/components/list/TheList.vue
@@ -0,0 +1,5 @@
+
+
+ this is the list
+
+
\ No newline at end of file
diff --git a/src/components/profile/TheProfile.vue b/src/components/profile/TheProfile.vue
new file mode 100644
index 0000000..35013fc
--- /dev/null
+++ b/src/components/profile/TheProfile.vue
@@ -0,0 +1,5 @@
+
+
+ this is the profile
+
+
\ No newline at end of file
diff --git a/src/components/result/TheResult.vue b/src/components/result/TheResult.vue
new file mode 100644
index 0000000..165ff4f
--- /dev/null
+++ b/src/components/result/TheResult.vue
@@ -0,0 +1,5 @@
+
+
+ this is the result
+
+
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index cc139e8..40c0d3d 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,5 +1,6 @@
import { createApp } from 'vue'
-import App from './App.vue'
+// import App from './App.vue'
+import Master from './Master.vue'
import router from './router'
import store from './store'
// import useVuelidate from '@vuelidate/core'
@@ -8,5 +9,16 @@ import "bootstrap/dist/css/bootstrap.css"
import "bootstrap/dist/js/bootstrap.js"
import 'bootstrap-icons/font/bootstrap-icons.css'
-createApp(App).use(router).use(store).mount('#app')
+import TheTemplate from './components/layouts/TheTemplate.vue'
+import BaseCard from './components/base/BaseCard.vue'
+
+const app = createApp(Master);
+
+app.component('the-template', TheTemplate);
+app.component('base-card', BaseCard);
+
+app.use(router).use(store).mount('#app');
+
+// createApp(App).use(router).use(store).mount('#app')
+// createApp(Master).use(router).use(store).mount('#app')
// createApp(App).use(router).use(store).use(useVuelidate).mount('#app')
diff --git a/src/router/index.js b/src/router/index.js
index 78df04e..4e02c16 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,99 +1,100 @@
-import { createRouter, createWebHistory, createMemoryHistory } from "vue-router";
-import Login from '../components/Login.vue';
-import Register from '../components/Register.vue';
-import Dashboard from './../components/Dashboard.vue';
-import Cart from './../components/Cart.vue';
-import List from './../components/List.vue'
-import Pay from '../components/Pay.vue'
-import Profile from './../components/Profile.vue'
-import BidHistory from '../components/BidHistory.vue'
-import Test from "../components/Test.vue"
-import IndexPaymentHistory from '../components/IndexPaymentHistory.vue'
+import {
+ createRouter,
+ createWebHistory,
+ createMemoryHistory,
+} from "vue-router";
+import Login from "../components/Login.vue";
+import Register from "../components/Register.vue";
+import Dashboard from "./../components/Dashboard.vue";
+import Cart from "./../components/Cart.vue";
+import List from "./../components/List.vue";
+import Pay from "../components/Pay.vue";
+import Profile from "./../components/Profile.vue";
+import BidHistory from "../components/BidHistory.vue";
+import Test from "../components/Test.vue";
+import IndexPaymentHistory from "../components/IndexPaymentHistory.vue";
// import Modals from './../components/Modal.vue'
// import { Modal } from "bootstrap";
+import TheLogin from '../components/authentication/TheLogin.vue'
+import TheRegister from '../components/authentication/TheRegister.vue'
+import TheHome from '../components/home/TheHome.vue'
+import TheCart from '../components/cart/TheCart.vue'
+import TheResult from '../components/result/TheResult.vue'
+import TheProfile from '../components/profile/TheProfile.vue'
+import TheBidRecord from '../components/bidRecord/TheBidRecord.vue'
+import TheList from '../components/list/TheList.vue'
+
const routes = [
- {
- path: '/login',
- name: 'Login',
- component: Login,
- // meta: { guest: true }
- },
- {
- path: '/register',
- name: 'Register',
- component: Register,
- // meta: { guest: true }
+ {
+ path: "/login",
+ name: "login",
+ component: TheLogin,
+ },
+ {
+ path: "/register",
+ name: "register",
+ component: TheRegister,
+ },
+ {
+ path: "/home",
+ name: "home",
+ component: TheHome,
+ },
- },
- {
- path: '/',
- name: 'Dashboard',
- component: Dashboard,
- // meta: { requiresAuth: true }
- },
+ {
+ path: "/cart",
+ name: "cart",
+ component: TheCart,
+ },
+ {
+ path: "/list",
+ name: "list",
+ component: TheList,
+ },
+ {
+ path: "/pay",
+ name: "Pay",
+ component: Pay,
+ },
+ {
+ path: "/profile",
+ name: "profile",
+ component: TheProfile,
+ },
+ {
+ path: "/bid-record",
+ name: "bid-record",
+ component: TheBidRecord,
+ },
+ {
+ path: "/result",
+ name: "result",
+ component: TheResult,
- {
- path: '/cart',
- name: 'Cart',
- component: Cart,
- // meta: { requiresAuth: true }
-
- },
- {
- path: '/list',
- name: 'List',
- component: List,
- // meta: { requiresAuth: true }
-
- },
- {
- path: '/pay',
- name: 'Pay',
- component: Pay,
- // meta: { requiresAuth: true }
-
- },
- {
- path: '/profile',
- name: 'Profile',
- component: Profile,
- // meta: { requiresAuth: true }
-
- },
- {
- path: '/bid-history',
- name: 'BidHistory',
- component: BidHistory,
- // meta: { requiresAuth: true }
-
- },
- {
- path: '/payment-history',
- name: 'PaymentHistory',
- component: IndexPaymentHistory,
- // meta: { requiresAuth: true }
-
- },
- {
- path: '/test',
- name: 'test',
- component: Test,
- // meta: { requiresAuth: true }
-
- },
- // {
- // name: 'Modal',
- // component: Modals,
- // }
-
-]
+ },
+ {
+ path: "/payment-history",
+ name: "payment-history",
+ component: IndexPaymentHistory,
+ },
+ {
+ path: "/test",
+ name: "test",
+ component: Test,
+ },
+ // {
+ // name: 'Modal',
+ // component: Modals,
+ // }
+];
const router = createRouter({
- // history: createWebHistory(process.env.BASE_URL),
- history: createMemoryHistory(),
- routes,
-})
+ // history: createWebHistory(process.env.BASE_URL),
+ history: createWebHistory(),
+ // history: createMemoryHistory(),
+ routes,
+});
// function loggedIn() {
// return true;
@@ -117,4 +118,4 @@ const router = createRouter({
// }
// })
-export default router
\ No newline at end of file
+export default router;