Skip to content

Commit 34fecf5

Browse files
committed
Add login route
1 parent 6c0fd12 commit 34fecf5

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

main/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div id="app">
33
<router-link to="/"><img src="/static/logo-large.png" class="logo"></router-link>
4-
<a href="/admin" class="admin">Admin</a>
4+
<router-link to="login" class="admin">Admin</router-link>
55
<router-view/>
66
<footer>
77
Powered by <a href="https://pogoapp.net">Pogo</a>

main/src/components/Login.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<template>
2+
<div class="hello">
3+
<h3>Login to Pogo LAUNCHPAD</h3>
4+
<form action="login" method="post" class="setupform">
5+
<label for="username">Username</label>
6+
<input type="text" id="podcastname" name="username">
7+
<label for="userpassword">Password</label>
8+
<input type="password" id="podcasthost" name="password">
9+
<input type="submit" value="Submit">
10+
</form>
11+
</div>
12+
</template>
13+
<script>
14+
export default {
15+
name: 'Login'
16+
}
17+
</script>

main/src/router/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Vue from 'vue'
22
import Router from 'vue-router'
33
import EpisodeList from '@/components/EpisodeList'
44
import Episode from '@/components/Episode'
5+
import Login from '@/components/Login'
56

67
Vue.use(Router)
78

@@ -15,6 +16,10 @@ export default new Router({
1516
{
1617
path: '/e/:id',
1718
component: Episode
19+
},
20+
{
21+
path: '/login',
22+
component: Login
1823
}
1924
]
2025
})

0 commit comments

Comments
 (0)