mirror of https://github.com/Kylart/KawAnime.git
SnackBar and getMagnets functions fully implemented, fuu mlpo
This commit is contained in:
parent
be8d88f3c8
commit
509bf140c6
|
@ -41,7 +41,7 @@
|
|||
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="myValues">
|
||||
<value>
|
||||
<list size="21">
|
||||
<list size="22">
|
||||
<item index="0" class="java.lang.String" itemvalue="nobr" />
|
||||
<item index="1" class="java.lang.String" itemvalue="noembed" />
|
||||
<item index="2" class="java.lang.String" itemvalue="comment" />
|
||||
|
@ -63,6 +63,7 @@
|
|||
<item index="18" class="java.lang.String" itemvalue="md-radio" />
|
||||
<item index="19" class="java.lang.String" itemvalue="md-theme" />
|
||||
<item index="20" class="java.lang.String" itemvalue="p" />
|
||||
<item index="21" class="java.lang.String" itemvalue="md-snackbar" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
|
|
10
index.html
10
index.html
|
@ -135,9 +135,15 @@
|
|||
<h6>Get Magnets!</h6>
|
||||
</md-button>
|
||||
</div>
|
||||
<div class="mdl-cell mdl-cell--12-col">
|
||||
<md-snackbar :md-position="vertical + ' ' + horizontal" ref="snackbar" :md-duration="duration">
|
||||
<span>Your magnets are ready, you can open them </span>
|
||||
<md-button class="md-accent"
|
||||
md-theme="light-blue"
|
||||
@click.native="openMagnets()">Here!</md-button>
|
||||
</md-snackbar>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div id="releases" class="mdl-grid" v-if="show">
|
||||
<template v-for="release in releases">
|
||||
|
|
15
renderer.js
15
renderer.js
|
@ -280,7 +280,10 @@ let downloader = new Vue({
|
|||
quality: '720p',
|
||||
animeName: '',
|
||||
fromEp: '',
|
||||
untilEp: ''
|
||||
untilEp: '',
|
||||
vertical: 'top',
|
||||
horizontal: 'center',
|
||||
duration: '4000'
|
||||
},
|
||||
methods: {
|
||||
download: function () {
|
||||
|
@ -367,9 +370,19 @@ let downloader = new Vue({
|
|||
fs.appendFileSync(path.join(DIR, 'magnets.txt'), `${uri}\n\n`)
|
||||
}
|
||||
}
|
||||
|
||||
this.openSnackbar()
|
||||
}, 1000)
|
||||
})
|
||||
},
|
||||
openSnackbar: function () {
|
||||
this.$refs.snackbar.open();
|
||||
},
|
||||
openMagnets: function () {
|
||||
this.$refs.snackbar.close()
|
||||
|
||||
shell.openItem(path.join(DIR, 'magnets.txt'))
|
||||
},
|
||||
animeNameNext: function () {
|
||||
document.getElementById('fromEp-input').focus()
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue