-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add admin panel and display teams #175
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Dashboard from '../views/admin/Dashboard.vue'; | ||
import Organizations from '../views/admin/Organizations.vue'; | ||
import Teams from '../views/admin/Teams.vue'; | ||
|
||
const adminRoutes = [ | ||
{ | ||
path: '', | ||
name: 'dashboard', | ||
component: Dashboard, | ||
}, | ||
{ | ||
path: 'organisations', | ||
name: 'organisations', | ||
component: Organizations, | ||
}, | ||
{ | ||
path: 'teams', | ||
name: 'teams', | ||
component: Teams, | ||
}, | ||
{ | ||
path: 'users', | ||
name: 'users', | ||
component: Dashboard, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. component Dashboard for user ? typo or waiting for a future component ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For future admin and god user ! |
||
}, | ||
]; | ||
|
||
export default adminRoutes; |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,32 @@ | ||||||
<template> | ||||||
<div class="admin"> | ||||||
<v-tabs fixed-tabs> | ||||||
<v-tab v-for="li in links" :key="li.link" :to="`/admin/${li.link}`" :disabled="li.isDisabled"> | ||||||
{{ li.label }} | ||||||
</v-tab> | ||||||
</v-tabs> | ||||||
<router-view /> | ||||||
</div> | ||||||
</template> | ||||||
|
||||||
<script> | ||||||
|
||||||
export default { | ||||||
name: 'admin', | ||||||
data() { | ||||||
return { | ||||||
links: [ | ||||||
{ link: '', label: 'Dashboard' }, | ||||||
{ link: 'organisations', label: 'Organisations', isDisabled: true }, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
{ link: 'teams', label: 'Teams', isDisabled: false }, | ||||||
{ link: 'users', label: 'Users', isDisabled: true }, | ||||||
Comment on lines
+19
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you think it is posible to reuse the array from router/admin.js to avoid rewriting this array ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure and it will be different array for admin and god |
||||||
] | ||||||
} | ||||||
}, | ||||||
components: { | ||||||
}, | ||||||
created(){ | ||||||
|
||||||
} | ||||||
Comment on lines
+26
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we delete them ? |
||||||
} | ||||||
</script> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<template> | ||
<section class="dashboard"> | ||
<v-skeleton-loader | ||
class="mx-auto" | ||
min-width="300" | ||
type="card" | ||
></v-skeleton-loader> | ||
<v-skeleton-loader | ||
class="mx-auto" | ||
min-width="300" | ||
type="card" | ||
></v-skeleton-loader> | ||
</section> | ||
</template> | ||
|
||
<script> | ||
|
||
export default { | ||
name: "dashboard", | ||
components: { | ||
}, | ||
data() { | ||
return { | ||
}; | ||
}, | ||
beforeCreate() { | ||
}, | ||
watch: { | ||
}, | ||
methods: { | ||
} | ||
Comment on lines
+20
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. useless ? |
||
} | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.dashboard { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 25px; | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,22 @@ | ||||||
<template> | ||||||
<div class="d-flex"> | ||||||
<img src="" alt="" /> | ||||||
</div> | ||||||
</template> | ||||||
|
||||||
<script> | ||||||
|
||||||
export default { | ||||||
name: "organisations", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
components: { | ||||||
}, | ||||||
data() { | ||||||
return { | ||||||
|
||||||
}; | ||||||
}, | ||||||
Comment on lines
+11
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. useless ? |
||||||
} | ||||||
</script> | ||||||
|
||||||
<style scoped lang="scss"> | ||||||
</style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.