mirror of https://github.com/Kylart/KawAnime.git
Fixed deleteEntry in watchList
Fixed some responsive Fixed nuxt-link to router-link
This commit is contained in:
parent
8b7490517f
commit
1d9ebc911d
|
@ -11,7 +11,7 @@
|
|||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<body style="background-color: #424242;">
|
||||
<noscript id="deferred-styles"></noscript>
|
||||
<!--vue-ssr-outlet-->
|
||||
</body>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-icon more_vert
|
||||
v-list.dark
|
||||
template(v-for="(button, i) in buttons")
|
||||
v-list-tile(@click="button.method(item, i)")
|
||||
v-list-tile(@click="button.method(item, i, index)")
|
||||
v-list-tile-action
|
||||
v-icon {{ button.action }}
|
||||
v-list-tile-title.white--text {{ button.text }}
|
||||
|
@ -52,7 +52,7 @@
|
|||
}, {
|
||||
action: 'delete_sweep',
|
||||
text: 'Delete this entry',
|
||||
method: (item, i) => vm.deleteEntry(item, i)
|
||||
method: (item, i, index) => vm.deleteEntry(item, index)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
id="name-input"
|
||||
label="Name of the anime"
|
||||
v-model="$store.state.downloaderForm.name"
|
||||
dark>
|
||||
autofocus dark>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs4></v-flex>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<template xmlns:v-tooltip="http://www.w3.org/1999/xhtml">
|
||||
<v-container id="container" fluid class="container pa-0">
|
||||
<transition name="fade" v-if="releases.length">
|
||||
<v-layout row wrap style="margin: 0 1% 0 1%;">
|
||||
<v-flex md4 sm4 xs12 class="time-container">
|
||||
<v-layout row wrap justify-center style="margin: 0 1% 0 1%;">
|
||||
<v-flex md4 sm4 xs8 class="time-container">
|
||||
<span class="update-time">Updated {{ lastUpdateTime }}.</span>
|
||||
</v-flex>
|
||||
<v-flex md4 sm1 xs0></v-flex>
|
||||
<v-flex md2 sm3 xs12>
|
||||
<v-flex md4 sm1 hidden-xs-only></v-flex>
|
||||
<v-flex md2 sm3 xs10>
|
||||
<v-select
|
||||
class="select"
|
||||
:items="fansubList"
|
||||
|
@ -18,7 +18,7 @@
|
|||
persistent-hint
|
||||
/>
|
||||
</v-flex>
|
||||
<v-flex md1 sm2 xs12>
|
||||
<v-flex md1 sm2 xs10>
|
||||
<v-select
|
||||
class="select"
|
||||
:items="qualityList"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<v-container fluid class="pa-0">
|
||||
<div v-if="files.length">
|
||||
<v-layout row wrap style="margin: 0 1% 0 1%;">
|
||||
<v-layout row wrap style="margin: 0 1%;">
|
||||
<v-flex xs12 class="menubar">
|
||||
<v-layout row wrap>
|
||||
<v-flex hidden-sm-and-up xs2></v-flex>
|
||||
|
@ -93,10 +93,10 @@
|
|||
{{ item.classification.replace('None', 'No restriction') }}
|
||||
</p>
|
||||
</v-flex>
|
||||
<v-flex xl5 lg4 md5 sm3 xs4 class="picture-container">
|
||||
<v-flex xl5 lg4 md5 xs4 class="picture-container">
|
||||
<img :src="item.picture" class="picture">
|
||||
</v-flex>
|
||||
<v-flex xl7 lg8 md7 sm9 xs8 class="bottom-right-container">
|
||||
<v-flex xl7 lg8 md7 xs8 class="bottom-right-container">
|
||||
<v-layout row wrap justify-space-between>
|
||||
<v-flex xs12>
|
||||
<div class="synopsis">{{ reduced(item.synopsis) }}</div>
|
||||
|
@ -155,9 +155,9 @@
|
|||
<v-flex xs12 class="empty-message">
|
||||
<h3 class="white--text">Wow such empty!</h3>
|
||||
<h4 class="white--text">Start downloading anime
|
||||
<nuxt-link to="/downloader" class="green--text">here</nuxt-link>
|
||||
<router-link to="/downloader" class="green--text">here</router-link>
|
||||
or
|
||||
<nuxt-link to="/" class="cyan--text">here!</nuxt-link>
|
||||
<router-link to="/" class="cyan--text">here!</router-link>
|
||||
</h4>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
|
|
@ -7,19 +7,22 @@ import {log} from './utils'
|
|||
|
||||
export default {
|
||||
async init ({commit, dispatch}) {
|
||||
console.log('[INIT]')
|
||||
// Offline
|
||||
try {
|
||||
const {data} = await axios.get('getConfig.json')
|
||||
commit('init', data.config)
|
||||
} catch (e) { void e }
|
||||
|
||||
dispatch('getEnv').catch(err => { void err })
|
||||
dispatch('releasesInit').catch(err => { void (err) })
|
||||
dispatch('seasonsInit').catch(err => { void (err) })
|
||||
dispatch('newsInit').catch(err => { void (err) })
|
||||
dispatch('localInit').catch(err => { void (err) })
|
||||
dispatch('listInit').catch(err => { void (err) })
|
||||
dispatch('getHistory').catch(err => { void (err) })
|
||||
|
||||
// Online
|
||||
// TODO check if online before launching the requests that need the Internet
|
||||
dispatch('releasesInit').catch(err => { void (err) })
|
||||
dispatch('seasonsInit').catch(err => { void (err) })
|
||||
dispatch('newsInit').catch(err => { void (err) })
|
||||
},
|
||||
async getEnv ({commit}) {
|
||||
const {data} = await axios.get('_env')
|
||||
|
@ -411,7 +414,6 @@ export default {
|
|||
commit('setInfoTerm', name)
|
||||
commit('setInfoLoading', true)
|
||||
commit('showInfo', true)
|
||||
console.log('waiting...')
|
||||
const {data, status} = await axios.get(`getInfoFromMal?term=${name}`)
|
||||
|
||||
commit('setInfoLoading', false)
|
||||
|
|
|
@ -7,6 +7,7 @@ import moment from 'moment'
|
|||
export default {
|
||||
NODE_ENV: '',
|
||||
platform: '',
|
||||
isConnected: false,
|
||||
drawer: false,
|
||||
autoRefreshReleases: true,
|
||||
fansubList: [
|
||||
|
|
Loading…
Reference in New Issue