- Todays Price
+
+
+
+
+ Price / Gallon:
+
+
+ {{ today_oil_price }}
+
-
- 3.50
+
+
+ Total Deliveries
+
+
+ {{ delivery_count }}
+
-
-
- Total Deliveries
-
-
- 100
-
-
-
diff --git a/src/pages/TodayDelivery.vue b/src/pages/TodayDelivery.vue
index 4d7b4bc..cd51ecd 100644
--- a/src/pages/TodayDelivery.vue
+++ b/src/pages/TodayDelivery.vue
@@ -1,18 +1,104 @@
-
-today
+
+
+
+
+
diff --git a/src/pages/auth/Login.vue b/src/pages/auth/Login.vue
new file mode 100644
index 0000000..76cb5cd
--- /dev/null
+++ b/src/pages/auth/Login.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
Auburn Oil
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Not reigistered? Created an Account
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/routes.ts b/src/router/routes.ts
index a789a17..6524d06 100644
--- a/src/router/routes.ts
+++ b/src/router/routes.ts
@@ -5,15 +5,21 @@ const routes: RouteRecordRaw[] = [
path: '/',
component: () => import('layouts/MainLayout.vue'),
children: [
- { path: '', component: () => import('pages/IndexPage.vue') },
- { path: '/today', name: 'today', component: () => import('pages/TodayDelivery.vue') },
- { path: '/tomorrow', name: 'tomorrow', component: () => import('pages/TomorrowDelivery.vue') },
- { path: '/automatic', name: 'automatic', component: () => import('pages/Automatics.vue') },
- { path: '/stats', name: 'stats', component: () => import('pages/DriverStats.vue') },
+ { path: '', name: 'home', component: () => import('pages/IndexPage.vue') },
+ { path: '/today', name: 'today', component: () => import('pages/TodayDelivery.vue') },
+ { path: '/tomorrow', name: 'tomorrow', component: () => import('pages/TomorrowDelivery.vue') },
+ { path: '/automatic', name: 'automatic', component: () => import('pages/Automatics.vue') },
+ { path: '/stats', name: 'stats', component: () => import('pages/DriverStats.vue') },
]
},
-
+{
+ path: '/auth',
+ component: () => import('layouts/AuthLayout.vue'),
+ children: [
+ { path: '/login', name: 'login', component: () => import('pages/auth/Login.vue') },
+ ]
+ },
// Always leave this as last one,
// but you can also remove it
diff --git a/src/services/auth.header.ts b/src/services/auth.header.ts
new file mode 100644
index 0000000..a8672c2
--- /dev/null
+++ b/src/services/auth.header.ts
@@ -0,0 +1,12 @@
+export default function authHeader (): Record
{
+
+ let user_token = localStorage.getItem('auth_user')
+ let auth_token = localStorage.getItem('auth_token')
+
+ if (user_token && auth_token) {
+ return { 'Authorization': 'bearer ' + auth_token };
+ }
+ else {
+ return {'Authorization': 'None'};
+ }
+}