forked from uditbh/vuetify-material-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): complete initial structure
- Loading branch information
1 parent
4fa9c3a
commit ff39bcc
Showing
23 changed files
with
408 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,5 @@ | |
<core-drawer /> | ||
|
||
<core-view /> | ||
|
||
<core-footer /> | ||
</v-app> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,122 @@ | ||
<template> | ||
<v-navigation-drawer | ||
fixed | ||
temporary | ||
id="app-drawer" | ||
v-model="inputValue" | ||
right | ||
app | ||
class="elevation-12" | ||
dark | ||
floating | ||
persistent | ||
> | ||
<v-list> | ||
<v-list-tile> | ||
<v-spacer /> | ||
<v-btn icon @click="toggleDrawer"> | ||
<v-icon>mdi-close</v-icon> | ||
</v-btn> | ||
</v-list-tile> | ||
<v-list-tile | ||
v-for="(item, i) in items" | ||
:key="i" | ||
:to="item.to" | ||
<v-img | ||
height="100%" | ||
src="https://demos.creative-tim.com/vue-material-dashboard/img/sidebar-2.32103624.jpg" | ||
> | ||
<v-list | ||
class="pa-3 fill-height" | ||
style="background: rgba(0, 0, 0, 0.7;" | ||
> | ||
<v-list-tile-title v-text="item.text" /> | ||
</v-list-tile> | ||
</v-list> | ||
<v-list-tile avatar> | ||
<v-list-tile-avatar | ||
color="white"> | ||
<v-img | ||
src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Vue.js_Logo.svg/400px-Vue.js_Logo.svg.png" | ||
height="32" | ||
contain | ||
class="mt-1" | ||
/> | ||
</v-list-tile-avatar> | ||
<v-list-tile-title class="title font-weight-light">VUE MD</v-list-tile-title> | ||
</v-list-tile> | ||
<v-divider | ||
class="mt-2 mb-4"/> | ||
<v-list-tile | ||
v-for="(link, i) in links" | ||
:key="i" | ||
:to="link.to" | ||
active-class="primary" | ||
avatar | ||
class="mb-2" | ||
> | ||
<v-list-tile-action> | ||
<v-icon>{{ link.icon }}</v-icon> | ||
</v-list-tile-action> | ||
<v-list-tile-title | ||
class="font-weight-thin" | ||
v-text="link.text" | ||
/> | ||
</v-list-tile> | ||
</v-list> | ||
</v-img> | ||
</v-navigation-drawer> | ||
</template> | ||
|
||
<script> | ||
// Utilities | ||
import { mapMutations } from 'vuex' | ||
// Utilities | ||
import { mapMutations } from 'vuex' | ||
export default { | ||
computed: { | ||
inputValue: { | ||
get () { | ||
return this.$store.state.app.drawer | ||
}, | ||
set (val) { | ||
this.setDrawer(val) | ||
} | ||
export default { | ||
data: () => ({ | ||
links: [ | ||
{ | ||
to: '/', | ||
icon: 'mdi-view-dashboard', | ||
text: 'Dashboard' | ||
}, | ||
items () { | ||
return this.$t('Layout.View.items') | ||
{ | ||
to: '/user-profile', | ||
icon: 'mdi-account', | ||
text: 'User Profile' | ||
}, | ||
{ | ||
to: '/table-list', | ||
icon: 'mdi-clipboard-outline', | ||
text: 'Table List' | ||
}, | ||
{ | ||
to: '/typography', | ||
icon: 'mdi-format-font', | ||
text: 'Typography' | ||
}, | ||
{ | ||
to: '/icons', | ||
icon: 'mdi-chart-bubble', | ||
text: 'Icons' | ||
}, | ||
{ | ||
to: '/maps', | ||
icon: 'mdi-map-marker', | ||
text: 'Maps' | ||
}, | ||
{ | ||
to: '/notifications', | ||
icon: 'mdi-bell', | ||
text: 'Notifications' | ||
} | ||
] | ||
}), | ||
computed: { | ||
inputValue: { | ||
get () { | ||
return this.$store.state.app.drawer | ||
}, | ||
set (val) { | ||
this.setDrawer(val) | ||
} | ||
}, | ||
methods: { | ||
...mapMutations('app', ['setDrawer', 'toggleDrawer']) | ||
items () { | ||
return this.$t('Layout.View.items') | ||
} | ||
}, | ||
methods: { | ||
...mapMutations('app', ['setDrawer', 'toggleDrawer']) | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
#app-drawer .v-list__tile { | ||
border-radius: 4px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,52 @@ | ||
<template> | ||
<v-footer app inset> | ||
<v-spacer /> | ||
© <span v-text="$t('Core.Footer.footer')" /> | ||
<v-spacer /> | ||
<v-footer | ||
id="core-footer" | ||
absolute | ||
class="px-5" | ||
height="96" | ||
> | ||
<a | ||
v-for="link in links" | ||
:key="link" | ||
href="#" | ||
class="tertiary--text mr-5" | ||
v-text="link" | ||
/> | ||
<v-spacer/> | ||
<span class="subheading font-weight-thin"> | ||
© | ||
{{ (new Date()).getFullYear() }} | ||
Creative Tim, made with | ||
<v-icon | ||
color="tertiary" | ||
size="22">mdi-heart</v-icon> | ||
for a better web | ||
</span> | ||
</v-footer> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data: () => ({ | ||
links: [ | ||
'Home', | ||
'Company', | ||
'Portfolio', | ||
'Blog' | ||
] | ||
}) | ||
} | ||
</script> | ||
|
||
<style> | ||
#core-footer { | ||
border-top: 1px solid rgba(0, 0, 0, 0.12); | ||
z-index: 0; | ||
} | ||
#core-footer a { | ||
font-weight: 500; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,109 @@ | ||
<template> | ||
<v-toolbar app> | ||
<v-toolbar-title v-text="$t('Core.Toolbar.title')"/> | ||
<v-toolbar | ||
id="core-toolbar" | ||
app | ||
color="transparent" | ||
flat | ||
prominent | ||
> | ||
<v-toolbar-title | ||
class="tertiary--text font-weight-light" | ||
v-text="title" | ||
/> | ||
<v-spacer /> | ||
<v-toolbar-items> | ||
<v-btn | ||
flat | ||
href="https://community.vuetifyjs.com" | ||
target="_blank" | ||
<v-flex | ||
align-center | ||
layout | ||
py-2 | ||
> | ||
<span v-text="$t('Common.needHelp')" /> | ||
</v-btn> | ||
<v-text-field | ||
class="mr-4 mt-2" | ||
label="Search..." | ||
hide-details | ||
/> | ||
<div | ||
v-ripple | ||
class="pa-3" | ||
> | ||
<v-icon color="tertiary">mdi-view-dashboard</v-icon> | ||
</div> | ||
<v-menu | ||
bottom | ||
left | ||
offset-y | ||
transition="slide-y-transition"> | ||
<router-link | ||
v-ripple | ||
slot="activator" | ||
class="pa-3" | ||
to="/notifications" | ||
> | ||
<v-badge | ||
color="error" | ||
overlap | ||
> | ||
<template slot="badge"> | ||
{{ notifications.length }} | ||
</template> | ||
<v-icon color="tertiary">mdi-bell</v-icon> | ||
</v-badge> | ||
</router-link> | ||
<v-card> | ||
<v-list dense> | ||
<v-list-tile | ||
v-for="notification in notifications" | ||
:key="notification" | ||
@click="onClick" | ||
> | ||
<v-list-tile-title | ||
v-text="notification" | ||
/> | ||
</v-list-tile> | ||
</v-list> | ||
</v-card> | ||
</v-menu> | ||
<router-link | ||
v-ripple | ||
class="pa-3" | ||
to="/user-profile" | ||
> | ||
<v-icon color="tertiary">mdi-account</v-icon> | ||
</router-link> | ||
</v-flex> | ||
</v-toolbar-items> | ||
</v-toolbar> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data: () => ({ | ||
notifications: [ | ||
'Mike, John responded to your email', | ||
'You have 5 new tasks', | ||
'You\'re now a friend with Andrew', | ||
'Another Notification', | ||
'Another One' | ||
], | ||
title: null | ||
}), | ||
watch: { | ||
'$route' (val) { | ||
this.title = val.name | ||
} | ||
}, | ||
methods: { | ||
onClick () { | ||
// | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
#core-toolbar a { | ||
text-decoration: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
<template> | ||
<v-content> | ||
<v-fade-transition mode="out-in"> | ||
<router-view /> | ||
</v-fade-transition> | ||
<v-container | ||
fluid> | ||
<v-fade-transition mode="out-in"> | ||
<router-view /> | ||
</v-fade-transition> | ||
</v-container> | ||
<core-footer /> | ||
</v-content> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
metaInfo () { | ||
return { | ||
titleTemplate: '%s — Alpha Theme' | ||
} | ||
export default { | ||
metaInfo () { | ||
return { | ||
titleTemplate: '%s — Material Design' | ||
} | ||
} | ||
} | ||
</script> |
File renamed without changes.
File renamed without changes.
Empty file.
Oops, something went wrong.