2017-08-13 22:46:05 +00:00
|
|
|
<template lang="pug">
|
2017-10-07 18:17:47 +00:00
|
|
|
v-app(dark)
|
|
|
|
v-navigation-drawer.pb-0.main-drawer(app, temporary, v-model='$store.state.drawer')
|
2017-08-13 22:46:05 +00:00
|
|
|
v-list
|
|
|
|
v-list-tile#title(to='/')
|
|
|
|
v-list-tile-action
|
|
|
|
img(src='static/images/icon2.png', height='50')
|
2017-08-27 02:03:18 +00:00
|
|
|
v-list-tile-title.title.white--text かわニメ
|
2017-08-13 22:46:05 +00:00
|
|
|
template(v-for='item in itemGroup')
|
2017-08-28 08:09:59 +00:00
|
|
|
v-list-group(v-if='item.items', :key='item.title', :group="item.group")
|
2017-08-13 22:46:05 +00:00
|
|
|
v-list-tile.ripple(slot='item', ripple)
|
|
|
|
v-list-tile-action
|
|
|
|
v-icon {{ item.action }}
|
|
|
|
v-list-tile-title {{ item.title }}
|
|
|
|
v-list-tile-action
|
|
|
|
v-icon keyboard_arrow_down
|
2017-08-28 08:09:59 +00:00
|
|
|
v-list-tile.ripple(v-for='subItem in item.items', ripple, :to='subItem.href', :key='subItem.title', exact)
|
2017-08-13 22:46:05 +00:00
|
|
|
v-list-tile-action
|
|
|
|
v-icon {{ subItem.action }}
|
|
|
|
v-list-tile-content
|
|
|
|
v-list-tile-title {{ subItem.title }}
|
|
|
|
v-divider
|
|
|
|
v-subheader.white--text(v-else-if='item.header') {{ item.header }}
|
|
|
|
v-divider(v-else-if='item.divider')
|
2017-08-14 20:49:23 +00:00
|
|
|
|
2017-10-07 18:17:47 +00:00
|
|
|
v-system-bar.wb.dragable(app, dark, status)
|
2017-08-13 22:46:05 +00:00
|
|
|
v-spacer
|
2017-10-27 17:55:53 +00:00
|
|
|
div.window-icon.non-dragable(v-if="!isBrowser && $store.state.platform !== 'darwin'")
|
|
|
|
v-icon.not-close(@click="actOnWindow('minimize')") remove
|
|
|
|
v-icon.not-close(@click="actOnWindow('maximize')") check_box_outline_blank
|
|
|
|
v-icon.close(@click="actOnWindow('close')") close
|
2017-08-14 20:49:23 +00:00
|
|
|
|
2017-10-07 18:17:47 +00:00
|
|
|
v-toolbar.mablue.tb(app, fixed, dark)
|
2017-08-13 22:46:05 +00:00
|
|
|
v-toolbar-side-icon(@click.stop='toggleDrawer()')
|
|
|
|
v-toolbar-title.white--text.title.hidden-xs-only かわニメ
|
|
|
|
v-spacer
|
2017-09-20 14:44:58 +00:00
|
|
|
v-tooltip(left)
|
|
|
|
v-btn(icon, v-show="$store.state.update.isAvailable", @click='restartAndUpdate()', slot='activator')
|
|
|
|
v-icon.green--text file_download
|
|
|
|
span Update KawAnime
|
2017-08-13 22:46:05 +00:00
|
|
|
info-modal
|
2017-09-20 14:44:58 +00:00
|
|
|
v-tooltip(left)
|
|
|
|
v-btn(icon, @click='openInBrowser()', slot='activator')
|
|
|
|
v-icon open_in_new
|
|
|
|
span Open KawAnime in your browser
|
2017-08-13 22:46:05 +00:00
|
|
|
settings
|
2017-09-27 11:48:57 +00:00
|
|
|
logs
|
2017-08-14 20:49:23 +00:00
|
|
|
|
2017-08-13 22:46:05 +00:00
|
|
|
main.m
|
2017-10-07 18:17:47 +00:00
|
|
|
//- v-content // Apparently required. Todo
|
2017-08-13 22:46:05 +00:00
|
|
|
transition(name='page', mode='out-in')
|
|
|
|
router-view
|
2017-08-14 20:49:23 +00:00
|
|
|
|
2017-10-28 01:25:19 +00:00
|
|
|
env(v-show='$store.state.NODE_ENV === "development"')
|
2017-09-25 09:00:00 +00:00
|
|
|
magnets-modal
|
2017-09-20 08:28:08 +00:00
|
|
|
info-results(v-show='$store.state.search.info.show')
|
2017-08-14 20:49:23 +00:00
|
|
|
|
2017-08-19 18:02:02 +00:00
|
|
|
//- Used for displaying any info
|
2017-08-13 22:46:05 +00:00
|
|
|
v-snackbar(
|
|
|
|
:timeout='5000',
|
|
|
|
:top='true',
|
|
|
|
:bottom='false',
|
|
|
|
:right='false',
|
|
|
|
:left='false',
|
|
|
|
v-model='$store.state.infoSnackbar.show'
|
|
|
|
) {{ $store.state.infoSnackbar.text }}
|
|
|
|
v-btn.pink--text(flat, @click='$store.state.infoSnackbar.show = false') Close
|
2017-08-14 20:49:23 +00:00
|
|
|
|
2017-10-07 18:17:47 +00:00
|
|
|
v-footer.grey.darken-4.pr-2(app)
|
2017-08-13 22:46:05 +00:00
|
|
|
v-spacer
|
|
|
|
.white--text © 2016 - 2017 Kylart
|
2017-04-15 14:16:14 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2017-07-17 18:13:10 +00:00
|
|
|
import axios from 'axios'
|
2017-07-24 08:45:00 +00:00
|
|
|
import Meta from 'mixins/meta'
|
2017-04-26 19:16:31 +00:00
|
|
|
|
2017-04-15 14:16:14 +00:00
|
|
|
export default {
|
2017-07-24 08:45:00 +00:00
|
|
|
mixins: [Meta],
|
2017-08-19 18:02:02 +00:00
|
|
|
mounted () {
|
2017-08-20 12:43:56 +00:00
|
|
|
this.isBrowser = !window.process
|
2017-08-19 18:02:02 +00:00
|
|
|
},
|
2017-04-15 14:16:14 +00:00
|
|
|
data () {
|
|
|
|
return {
|
2017-04-16 10:57:28 +00:00
|
|
|
searchModal: false,
|
2017-07-10 19:52:22 +00:00
|
|
|
drawer: false,
|
2017-08-19 18:02:02 +00:00
|
|
|
isBrowser: false,
|
2017-07-11 05:58:46 +00:00
|
|
|
links: [
|
|
|
|
{link: 'Github', to: 'https://github.com/Kylart/KawAnime', icon: 'github-circle'},
|
|
|
|
{link: 'Updates', to: '', icon: ''}
|
|
|
|
],
|
2017-04-15 14:16:14 +00:00
|
|
|
itemGroup: [
|
2017-07-11 05:58:46 +00:00
|
|
|
{divider: true},
|
2017-04-15 14:16:14 +00:00
|
|
|
{header: 'Core'},
|
|
|
|
{
|
|
|
|
title: 'Downloading',
|
2017-06-05 10:51:10 +00:00
|
|
|
action: 'file_download',
|
2017-08-28 08:09:59 +00:00
|
|
|
group: 'core',
|
2017-04-15 14:16:14 +00:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
title: 'Downloader',
|
2017-06-05 10:51:10 +00:00
|
|
|
action: 'file_download',
|
2017-04-15 14:16:14 +00:00
|
|
|
href: '/downloader'
|
2017-07-11 05:58:46 +00:00
|
|
|
}, {
|
2017-04-15 14:16:14 +00:00
|
|
|
title: 'Latest releases',
|
2017-06-05 10:51:10 +00:00
|
|
|
action: 'access_time',
|
2017-04-15 14:16:14 +00:00
|
|
|
href: '/'
|
|
|
|
}
|
|
|
|
]
|
2017-07-10 19:52:22 +00:00
|
|
|
}, {
|
2017-04-15 14:16:14 +00:00
|
|
|
title: 'News',
|
2017-06-05 10:51:10 +00:00
|
|
|
action: 'info_outline',
|
2017-08-28 08:09:59 +00:00
|
|
|
group: 'news',
|
2017-04-15 14:16:14 +00:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
title: 'Seasons',
|
2017-06-05 10:51:10 +00:00
|
|
|
action: 'hourglass_empty',
|
2017-04-15 14:16:14 +00:00
|
|
|
href: '/seasons'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'News',
|
2017-06-05 10:51:10 +00:00
|
|
|
action: 'more',
|
2017-04-15 14:16:14 +00:00
|
|
|
href: '/news'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-07-11 05:58:46 +00:00
|
|
|
{divider: true},
|
2017-04-15 14:16:14 +00:00
|
|
|
{header: 'Local'},
|
|
|
|
{
|
|
|
|
title: 'Anime related',
|
2017-06-05 10:51:10 +00:00
|
|
|
action: 'folder_open',
|
2017-08-28 08:09:59 +00:00
|
|
|
group: 'local',
|
2017-04-15 14:16:14 +00:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
title: 'Animes',
|
2017-06-05 10:51:10 +00:00
|
|
|
action: 'tv',
|
2017-04-15 14:16:14 +00:00
|
|
|
href: '/localPage'
|
2017-07-11 05:58:46 +00:00
|
|
|
}, {
|
2017-04-15 14:16:14 +00:00
|
|
|
title: 'Watch list',
|
2017-06-05 10:51:10 +00:00
|
|
|
action: 'sort_by_alpha',
|
2017-04-15 14:16:14 +00:00
|
|
|
href: '/watchList'
|
|
|
|
}
|
|
|
|
]
|
2017-05-13 14:38:17 +00:00
|
|
|
}
|
|
|
|
// Too soon...
|
2017-04-16 19:55:47 +00:00
|
|
|
// {
|
|
|
|
// title: 'Torrenting',
|
|
|
|
// items: [
|
|
|
|
// {title: 'Current downloads'},
|
|
|
|
// {title: 'Sourcing'},
|
|
|
|
// {title: 'Create torrents'}
|
|
|
|
// ]
|
|
|
|
// }
|
2017-07-11 05:58:46 +00:00
|
|
|
]
|
2017-04-15 14:16:14 +00:00
|
|
|
}
|
|
|
|
},
|
2017-07-11 07:44:55 +00:00
|
|
|
methods: {
|
|
|
|
toggleDrawer () {
|
|
|
|
this.$store.commit('toggleDrawer')
|
2017-07-17 18:13:10 +00:00
|
|
|
},
|
|
|
|
actOnWindow (action) {
|
|
|
|
axios.get('/_win', {
|
|
|
|
params: {
|
|
|
|
action
|
|
|
|
}
|
|
|
|
})
|
2017-07-24 10:33:00 +00:00
|
|
|
},
|
|
|
|
openInBrowser () {
|
|
|
|
this.$store.dispatch('openInBrowser')
|
2017-08-22 12:59:08 +00:00
|
|
|
},
|
|
|
|
restartAndUpdate () {
|
2017-09-19 12:19:55 +00:00
|
|
|
this.$store.dispatch('update/updateApp')
|
2017-07-11 07:44:55 +00:00
|
|
|
}
|
2017-04-15 14:16:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2017-10-16 00:44:14 +00:00
|
|
|
<style lang="stylus" scoped>
|
2017-07-11 09:05:58 +00:00
|
|
|
.m
|
2017-10-16 00:44:14 +00:00
|
|
|
min-width 100%
|
|
|
|
padding-top calc(48px + 24px)
|
2017-07-11 14:49:19 +00:00
|
|
|
|
|
|
|
.wb
|
2017-10-27 17:55:53 +00:00
|
|
|
padding-right 0
|
2017-10-16 00:44:14 +00:00
|
|
|
position fixed
|
|
|
|
width 100%
|
|
|
|
background-color #303030 !important
|
2017-07-11 14:49:19 +00:00
|
|
|
|
|
|
|
.tb
|
2017-10-16 00:44:14 +00:00
|
|
|
margin-top 24px !important
|
|
|
|
max-height 48px
|
|
|
|
padding-left 1%
|
2017-07-11 14:49:19 +00:00
|
|
|
|
2017-10-07 18:17:47 +00:00
|
|
|
.main-drawer
|
2017-10-16 00:44:14 +00:00
|
|
|
width 280px !important
|
|
|
|
background-image url('/static/images/sidebar-background.png')
|
|
|
|
background-position left bottom
|
|
|
|
background-size 75%
|
2017-07-11 09:05:58 +00:00
|
|
|
|
2017-10-07 18:17:47 +00:00
|
|
|
.main-drawer ul
|
2017-10-16 00:44:14 +00:00
|
|
|
background-image none
|
2017-10-07 18:17:47 +00:00
|
|
|
|
2017-07-10 19:52:22 +00:00
|
|
|
.ripple
|
2017-10-16 00:44:14 +00:00
|
|
|
position relative
|
2017-07-10 19:52:22 +00:00
|
|
|
|
|
|
|
.window-icon
|
2017-10-16 00:44:14 +00:00
|
|
|
cursor pointer
|
2017-10-27 17:55:53 +00:00
|
|
|
height 100%
|
|
|
|
|
|
|
|
.close, .not-close
|
|
|
|
text-align center
|
|
|
|
margin 0
|
|
|
|
height 100%
|
|
|
|
width 25px
|
|
|
|
|
|
|
|
.not-close
|
|
|
|
padding-top 4px
|
|
|
|
font-size 17px
|
2017-10-28 01:25:19 +00:00
|
|
|
|
2017-10-27 17:55:53 +00:00
|
|
|
&:hover
|
|
|
|
background-color rgba(255, 255, 255, 0.25)
|
|
|
|
|
|
|
|
.close
|
|
|
|
padding-top 2px
|
|
|
|
font-size 18px
|
|
|
|
|
|
|
|
&:hover
|
|
|
|
background-color rgba(240, 71, 71, 0.7)
|
2017-07-10 19:52:22 +00:00
|
|
|
|
|
|
|
.title
|
2017-10-16 00:44:14 +00:00
|
|
|
overflow hidden
|
|
|
|
padding-left 20px
|
|
|
|
font-family 'Hiragino Mincho Pro', 'MS PMincho', serif
|
|
|
|
font-size 30px !important
|
2017-04-15 14:16:14 +00:00
|
|
|
</style>
|
2017-07-24 08:45:00 +00:00
|
|
|
|
|
|
|
<style lang="stylus">
|
2017-10-16 00:44:14 +00:00
|
|
|
@import '../node_modules/animate.css/animate.min.css'
|
|
|
|
@import './iconfont/material-icons.css'
|
2017-07-24 08:45:00 +00:00
|
|
|
@import './stylus/main'
|
|
|
|
</style>
|