diff --git a/assets/index.template.html b/assets/index.template.html
index 184ee83..edc8085 100644
--- a/assets/index.template.html
+++ b/assets/index.template.html
@@ -11,7 +11,7 @@
-
+
diff --git a/components/listEntry.vue b/components/listEntry.vue
index 853df4b..6f94a19 100644
--- a/components/listEntry.vue
+++ b/components/listEntry.vue
@@ -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)
}
]
}
diff --git a/pages/downloader.vue b/pages/downloader.vue
index 758c057..27f6b2d 100644
--- a/pages/downloader.vue
+++ b/pages/downloader.vue
@@ -29,7 +29,7 @@
id="name-input"
label="Name of the anime"
v-model="$store.state.downloaderForm.name"
- dark>
+ autofocus dark>
diff --git a/pages/index.vue b/pages/index.vue
index 36e5a59..be2de0d 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,12 +1,12 @@
-
-
+
+
Updated {{ lastUpdateTime }}.
-
-
+
+
-
+
-
+
-
+
-
+
{{ reduced(item.synopsis) }}
@@ -155,9 +155,9 @@
Wow such empty!
Start downloading anime
- here
+ here
or
- here!
+ here!
diff --git a/store/actions.js b/store/actions.js
index 7a37e4f..90b9a35 100644
--- a/store/actions.js
+++ b/store/actions.js
@@ -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)
diff --git a/store/state.js b/store/state.js
index ae7ae7d..764c249 100644
--- a/store/state.js
+++ b/store/state.js
@@ -7,6 +7,7 @@ import moment from 'moment'
export default {
NODE_ENV: '',
platform: '',
+ isConnected: false,
drawer: false,
autoRefreshReleases: true,
fansubList: [