Small fixes and update League patch

This commit is contained in:
Valentin Kaelin 2019-06-21 19:51:26 +02:00
parent 2533c73660
commit 0a1f6a21fe
4 changed files with 6 additions and 9 deletions

View file

@ -14,7 +14,7 @@ Vue.config.productionTip = false
Vue.use(VueAxios, axios)
Vue.component('v-icon', Icon)
Vue.component('dot-loader', DotLoader)
Vue.prototype.$patch = '9.10.1'
Vue.prototype.$patch = '9.12.1'
new Vue({

View file

@ -232,7 +232,7 @@ export default {
console.log('API CALL FOR CHAMPIONS')
this.axios({
method: 'GET',
url: `http://ddragon.leagueoflegends.com/cdn/${this.$patch}/data/en_US/champion.json`
url: `https://ddragon.leagueoflegends.com/cdn/${this.$patch}/data/en_US/champion.json`
})
.then(response => {
return response.data
@ -250,7 +250,6 @@ export default {
return `https://ddragon.leagueoflegends.com/cdn/${this.$patch}/img/spell/${spellName}.png`;
},
redirect(summoner, region) {
// this.$router.push("/summoner/euw/" + this.search)
this.$router.push(`/summoner/${region}/${summoner}`)
},
resetLocalStorage() {

View file

@ -552,8 +552,7 @@
"on-headers": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",
"integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==",
"dev": true
"integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA=="
},
"parseurl": {
"version": "1.3.3",
@ -666,7 +665,6 @@
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/response-time/-/response-time-2.3.2.tgz",
"integrity": "sha1-/6cbq5UtYvfB1Jt0NDVfvGjf/Fo=",
"dev": true,
"requires": {
"depd": "~1.1.0",
"on-headers": "~1.0.1"

View file

@ -15,11 +15,11 @@
"dotenv": "^7.0.0",
"express": "^4.17.1",
"request": "^2.88.0",
"request-promise": "^4.2.4"
"request-promise": "^4.2.4",
"response-time": "^2.3.2"
},
"devDependencies": {
"cors": "^2.8.5",
"cross-env": "^5.2.0",
"response-time": "^2.3.2"
"cross-env": "^5.2.0"
}
}