11<template lang="pug">
2- MainLayout
3- v-row
4- v-col( sm ="4" md ="3" )
5- v-card( outlined )
6- v-card-title GW2 API KEY
7- v-card-text
8- ul
9- li Идем по ссылке <a href =" https://account.arena.net/applications" target =" _blank" >https://account.arena.net/applications</a >
10- li Жмем кнопочку "New Key"
11- li Вбиваем любое название в поле Name
12- li Ставим 4 галочки: account, characters, builds, pvp
13- li Жмем красную кнопку "CREATE API KEY
14- li Копируем сюда данный ключ:
15- v-text-field.pt-6 ( outlined
16- v-model ="gw2ApiKey"
17- placeholder ="GW2 API KEY"
18- @input ="showError=false"
19- )
20- v-alert(
21- dense
22- outlined
23- type ="error"
24- v-show ="showError" ) {{error}}
25-
26- v-btn(
27- @click = "saveApiKey"
28- color = "primary"
29- ) Сохранить
30- v-col( sm ="8" md ="9" )
31- v-card( outlined )
32- v-card-title Characters
33- v-btn.ml-2 (
34- @click = "updateCharacters"
35- color ="primary"
36- text
37- ) Обновить
38- v-spacer
39- v-btn( small color ="primary" @click = "logout" ) Logout
40- v-card-subtitle (Выберите активных персонажей для участия в ивентах)
41- v-card-text
42- v-container.fluid
43- v-row
44- v-col( cols sm ="6" md ="4" lg ="3" v-for ="c in characters" )
45- v-card.prof-logo ( :class ="{'visible': c.visible}" @click ="toggleActive(c)" )
46- v-card-text
47-
48- img( :src ="`/images/professions/${c.profession}_tango_icon_48px.png`" )
49- | {{c.name}}
50-
51-
2+ MainLayout
3+ v-row
4+ v-col( sm ="4" md ="3" )
5+ v-card( outlined )
6+ v-card-title GW2 API KEY
7+ v-card-text
8+ ul
9+ li Идем по ссылке <a href =" https://account.arena.net/applications" target =" _blank" >https://account.arena.net/applications</a >
10+ li Жмем кнопочку "New Key"
11+ li Вбиваем любое название в поле Name
12+ li Ставим 4 галочки: account, characters, builds, pvp
13+ li Жмем красную кнопку "CREATE API KEY
14+ li Копируем сюда данный ключ:
15+ v-text-field.pt-6 ( outlined
16+ v-model ="gw2ApiKey"
17+ placeholder ="GW2 API KEY"
18+ @input ="showError=false"
19+ )
20+ v-alert(
21+ dense
22+ outlined
23+ type ="error"
24+ v-show ="showError" ) {{error}}
25+
26+ v-btn(
27+ @click = "saveApiKey"
28+ color = "primary"
29+ ) Сохранить
30+ v-col( sm ="8" md ="9" )
31+ v-card( outlined )
32+ v-card-title Characters
33+ v-btn.ml-2 (
34+ @click = "updateCharacters"
35+ color ="primary"
36+ text
37+ ) Обновить
38+ v-spacer
39+ v-btn( small color ="primary" @click = "logout" ) Logout
40+ v-card-subtitle (Выберите активных персонажей для участия в ивентах)
41+ v-card-text
42+ v-container.fluid
43+ v-row
44+ v-col( cols sm ="6" md ="4" lg ="3" v-for ="c in characters" )
45+ v-card.prof-logo ( :class ="{'visible': c.visible}" @click ="toggleActive(c)" )
46+ v-card-text
47+
48+ img( :src ="`${assetsUrl}/professions/${c.profession}_tango_icon_48px.png`" )
49+ | {{c.name}}
5250</template >
5351<script >
5452import MainLayout from " ../layouts/MainLayout" ;
@@ -57,7 +55,8 @@ export default {
5755 data : () => ({
5856 gw2ApiKey: " " ,
5957 showError: false ,
60- error: " "
58+ error: " " ,
59+ assetsUrl: Meteor .settings .public .assetsUrl ,
6160 }),
6261 components: {
6362 MainLayout
0 commit comments