mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add navbar and routes
This commit is contained in:
parent
bdbfff76e3
commit
489743b6d6
@ -1,9 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app"></div>
|
<div id="app">
|
||||||
|
<nav-bar class="wrapper-nav" />
|
||||||
|
<router-view class="wrapper p-3"></router-view>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
19
admin/src/components/NavBar.vue
Normal file
19
admin/src/components/NavBar.vue
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<div>
|
||||||
|
<b-navbar toggleable="sm" type="dark" variant="info">
|
||||||
|
<b-navbar-brand to="/">Adminbereich</b-navbar-brand>
|
||||||
|
|
||||||
|
<b-navbar-toggle target="nav-collapse"></b-navbar-toggle>
|
||||||
|
|
||||||
|
<b-collapse id="nav-collapse" is-nav>
|
||||||
|
<b-navbar-nav>
|
||||||
|
<b-nav-item to="/user">User</b-nav-item>
|
||||||
|
<b-nav-item to="/creation">Schöpfen</b-nav-item>
|
||||||
|
</b-navbar-nav>
|
||||||
|
</b-collapse>
|
||||||
|
<b-navbar-brand href="http://localhost:3000/vue/login">Profilbereich</b-navbar-brand>
|
||||||
|
</b-navbar>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
24
admin/src/components/UserTable.vue
Normal file
24
admin/src/components/UserTable.vue
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<b-table :items="items" :fields="fields" caption-top>
|
||||||
|
<template #table-caption>This is a table caption at the top.</template>
|
||||||
|
</b-table>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'UserTable',
|
||||||
|
props: {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
fields: ['first_name', 'last_name', 'age'],
|
||||||
|
items: [
|
||||||
|
{ age: 40, first_name: 'Dickerson', last_name: 'Macdonald' },
|
||||||
|
{ age: 21, first_name: 'Larsen', last_name: 'Shaw' },
|
||||||
|
{ age: 89, first_name: 'Geneva', last_name: 'Wilson' },
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -14,6 +14,8 @@ import VueApollo from 'vue-apollo'
|
|||||||
import CONFIG from './config'
|
import CONFIG from './config'
|
||||||
|
|
||||||
import { BootstrapVue } from 'bootstrap-vue'
|
import { BootstrapVue } from 'bootstrap-vue'
|
||||||
|
import 'bootstrap-vue/dist/bootstrap-vue.css'
|
||||||
|
import 'bootstrap/dist/css/bootstrap.css'
|
||||||
|
|
||||||
const httpLink = new HttpLink({ uri: CONFIG.GRAPHQL_URI })
|
const httpLink = new HttpLink({ uri: CONFIG.GRAPHQL_URI })
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,36 @@
|
|||||||
import NotFound from '@/components/NotFoundPage.vue'
|
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
|
component: () => import('@/views/Overview.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ path: '*', component: NotFound },
|
{
|
||||||
|
path: '/overview',
|
||||||
|
component: () => import('@/views/Overview.vue'),
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/user',
|
||||||
|
component: () => import('@/views/UserSearch.vue'),
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/creation',
|
||||||
|
component: () => import('@/views/Creation.vue'),
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '*',
|
||||||
|
component: () => import('@/components/NotFoundPage.vue'),
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
export default routes
|
export default routes
|
||||||
|
|||||||
9
admin/src/views/Creation.vue
Normal file
9
admin/src/views/Creation.vue
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
Schöpfen
|
||||||
|
<ul>
|
||||||
|
<li>Input Usersuche</li>
|
||||||
|
<li>Tabelle Creationen</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
21
admin/src/views/Overview.vue
Normal file
21
admin/src/views/Overview.vue
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<user-table count="5" />
|
||||||
|
|
||||||
|
Startübersicht Adminbereich
|
||||||
|
<ul>
|
||||||
|
<li>Unbestätigte E-mail Registrierung</li>
|
||||||
|
<li>offene Schöpfungen</li>
|
||||||
|
<li>letzte 10 Schöpfungen</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import UserTable from '../components/UserTable.vue'
|
||||||
|
export default {
|
||||||
|
name: 'overview',
|
||||||
|
components: {
|
||||||
|
UserTable,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
9
admin/src/views/UserSearch.vue
Normal file
9
admin/src/views/UserSearch.vue
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
Usersuche
|
||||||
|
<ul>
|
||||||
|
<li>Input Usersuche</li>
|
||||||
|
<li>Tabelle Ergenisse</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
Loading…
x
Reference in New Issue
Block a user