-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
105 lines (90 loc) · 3.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<title>Airports</title>
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/vuetify/dist/vuetify.min.css" rel="stylesheet">
<link rel="icon" href="./images/icons/icon-128x128.png">
<link rel="manifest" href="./manifest.json">
<link rel="apple-touch-icon" sizes="180x180" href="./images/icons/icon-192x192.png">
</head>
<body>
<div class="container body-content">
<div id="app" v-cloak>
<v-app>
<spa-toolbar :title="msg" :email="email"></spa-toolbar>
<router-view></router-view>
</v-app>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/moment.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/vee-validate.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="https://unpkg.com/http-vue-loader"></script>
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vuetify/dist/vuetify.min.js"></script>
<script src="./js/db.js"></script>
<script src="./js/site.js"></script>
<script src="./js/airports.js"></script>
<!-- Vue Pages and Components here -->
<script src='./pages/home.vue.js'></script>
<script src='./pages/login.vue.js'></script>
<script src='./pages/airports.vue.js'></script>
<script src='./pages/components/toolbar.vue.js'></script>
<script src='./pages/components/airportcard.vue.js'></script>
<script src='./pages/Cams/camList.vue.js'></script>
<script>
Vue.use(VueRouter);
Vue.use(VeeValidate);
const routes = [{
path: '/',
component: spahome
},
{
path: '/airports',
component: spaAirports
},
{
path: '/login',
component: spaLogin
},
{
path: '/cams',
component: spaCamList
}
]
let router = new VueRouter({
//mode: 'history',
routes // short for `routes: routes`
})
router.beforeEach((to, from, next) => {
next()
})
fbAuth.onAuthStateChanged(function (user) {
//console.log('onAuthStateChanged', user)
if (user) {
if (app) app.email = user.email
} else {
if (app) app.email = '??'
}
})
var app = new Vue({
el: '#app',
watch: {},
mounted() {
},
data: {
msg: 'Hello',
email: ''
},
methods: {},
router
})
</script>
</body>
</html>