From 5ba5679d8498b55b1cbc0f7b76b44ddf0fb0fa40 Mon Sep 17 00:00:00 2001 From: Kylart Date: Mon, 14 Aug 2017 21:49:23 +0100 Subject: [PATCH] Can now play sound on magnet download! --- assets/App.vue | 14 +++++------ components/settings.vue | 42 ++++++++++++++++++++++++++------ pages/downloader.vue | 10 +++++++- pages/index.vue | 8 +++--- server/index.js | 1 + static/sounds/Nico Nico Nii.m4a | Bin 0 -> 30008 bytes static/sounds/Nyanpasu.m4a | Bin 0 -> 24476 bytes store/actions.js | 15 ++++++++++++ store/mutations.js | 1 + store/state.js | 5 ++++ 10 files changed, 77 insertions(+), 19 deletions(-) create mode 100644 static/sounds/Nico Nico Nii.m4a create mode 100644 static/sounds/Nyanpasu.m4a diff --git a/assets/App.vue b/assets/App.vue index aeb8983..c355f8a 100644 --- a/assets/App.vue +++ b/assets/App.vue @@ -23,14 +23,14 @@ v-divider v-subheader.white--text(v-else-if='item.header') {{ item.header }} v-divider(v-else-if='item.divider') - + v-system-bar.wb.dragable(dark, status, v-if='!browser') v-spacer div(v-if="$store.state.platform !== 'darwin'") v-icon.window-icon.non-dragable(@click="actOnWindow('minimize')") remove v-icon.window-icon.non-dragable(@click="actOnWindow('maximize')") check_box_outline_blank v-icon.window-icon.non-dragable(@click="actOnWindow('close')") close - + v-toolbar.mablue.tb(fixed, dark) v-toolbar-side-icon(@click.stop='toggleDrawer()') v-toolbar-title.white--text.title.hidden-xs-only かわニメ @@ -39,15 +39,15 @@ v-btn.open-in-browser(icon, v-tooltip:left="{ html: 'Open KawAnime in your browser' }", @click='openInBrowser()') v-icon open_in_new settings - + main.m transition(name='page', mode='out-in') router-view - + env(v-show='$store.state.NODE_ENV') - + info-results(v-show='$store.state.info.show') - + // Used for displaying any info v-snackbar( :timeout='5000', @@ -58,7 +58,7 @@ v-model='$store.state.infoSnackbar.show' ) {{ $store.state.infoSnackbar.text }} v-btn.pink--text(flat, @click='$store.state.infoSnackbar.show = false') Close - + v-footer.grey.darken-4 v-spacer .white--text © 2016 - 2017 Kylart diff --git a/components/settings.vue b/components/settings.vue index 4a25e25..9e257c6 100644 --- a/components/settings.vue +++ b/components/settings.vue @@ -3,7 +3,7 @@ v-btn(icon, slot='activator') v-icon settings v-card.white--text.main - v-toolbar.mablue(dark) + v-toolbar.mablue.tb(fixed dark) v-btn(icon, @click='configModal = false', dark) v-icon close v-toolbar-title.headline Settings @@ -18,11 +18,9 @@ v-list-tile.ripple(slot='item', ripple) v-list-tile-action v-icon {{ item.action }} - v-list-tile-title - | {{ item.title }} + v-list-tile-title {{ item.title }} v-list-tile-action - v-icon - | keyboard_arrow_down + v-icon keyboard_arrow_down v-list-tile.ripple( v-for='subItem in item.items', ripple, :to='subItem.href', @@ -40,6 +38,7 @@ v-icon {{ item.action }} v-list-tile-title | {{ item.title }} + v-container.container(fluid) v-layout(row, wrap, justify-center) v-flex(xs11) @@ -86,6 +85,23 @@ v-model='config.inside', dark ) + v-card.section + v-card-title#local.headline Notification + v-divider + v-layout(row, wrap, justify-center) + v-flex.section-title(xs12) Sound + v-flex(xs4) + v-select( + v-bind:items='soundChoices', + v-model='config.sound', + hint='The sound you want KawAnime to use when notifying you!', + persistent-hint, + dark, + item-value='text' + ) + v-flex(xs5) + v-btn(icon large @click="play()") + v-icon(large) play_circle_outline