kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Porównaj commity
2 Commity
0434400726
...
b19f9d5ecc
Autor | SHA1 | Data |
---|---|---|
Manuel Kasper | b19f9d5ecc | |
Manuel Kasper | 53bff389c3 |
|
@ -1,8 +1,9 @@
|
|||
import axios from 'axios'
|
||||
import ssoauth from './ssoauth.js'
|
||||
import utils from './utils.js'
|
||||
|
||||
export default {
|
||||
mixins: [ssoauth],
|
||||
mixins: [ssoauth, utils],
|
||||
methods: {
|
||||
loadActivations (callsign) {
|
||||
return axios.get(process.env.VUE_APP_API_URL + '/activations/' + callsign)
|
||||
|
@ -11,13 +12,13 @@ export default {
|
|||
})
|
||||
},
|
||||
loadActivationDetails (activationId) {
|
||||
return this.axiosAuth.get('https://api-db.sota.org.uk/admin/secure/my_activator_log_detailed', { params: { id: this.activationId } })
|
||||
return this.axiosAuth.get('https://api-db2.sota.org.uk/logs/activation/detailed/' + this.activationId)
|
||||
.then(response => {
|
||||
return response.data[0]
|
||||
})
|
||||
},
|
||||
loadS2SLog (userId, year) {
|
||||
return this.axiosAuth.get('https://api-db.sota.org.uk/admin/secure/s2s_log_by_id', { params: { id: userId, year } })
|
||||
return this.axiosAuth.get('https://api-db2.sota.org.uk/logs/s2s/' + userId + '/' + year + '/1')
|
||||
.then(response => {
|
||||
return response.data
|
||||
})
|
||||
|
@ -56,7 +57,7 @@ export default {
|
|||
if (this.$store.state.myActivatedSummitsThisYear) {
|
||||
return Promise.resolve(this.$store.state.myActivatedSummitsThisYear)
|
||||
} else {
|
||||
return this.axiosAuth.get('https://api-db.sota.org.uk/admin/secure/my_activator_log', { params: { year: new Date().getUTCFullYear() } })
|
||||
return this.axiosAuth.get('https://api-db2.sota.org.uk/logs/activator/' + this.myUserId + '/' + new Date().getUTCFullYear() + '/1')
|
||||
.then(response => {
|
||||
let myActivatedSummitsThisYear = new Set()
|
||||
response.data.forEach(ent => {
|
||||
|
|
Ładowanie…
Reference in New Issue