|
1 | 1 | <template>
|
2 |
| - <h2 class="mt-4" v-hide="userInfo" translate="translate">Sign in</h2> |
| 2 | + <h2 v-hide="userInfo" class="mt-4" translate="translate">Sign in</h2> |
3 | 3 | <p v-hide="userInfo">
|
4 | 4 | <span translate="translate">
|
5 | 5 | In order to allow locator-tool to modify file description pages, sign in first:
|
|
18 | 18 | <button
|
19 | 19 | class="nav-link"
|
20 | 20 | translate="translate"
|
21 |
| - @click="$tab = Tab.CATEGORY" |
22 | 21 | :class="{active: $tab === Tab.CATEGORY}"
|
| 22 | + @click="$tab = Tab.CATEGORY" |
23 | 23 | >
|
24 | 24 | Category
|
25 | 25 | </button>
|
|
28 | 28 | <button
|
29 | 29 | class="nav-link"
|
30 | 30 | translate="translate"
|
31 |
| - @click="$tab = Tab.USER" |
32 | 31 | :class="{active: $tab === Tab.USER}"
|
| 32 | + @click="$tab = Tab.USER" |
33 | 33 | >
|
34 | 34 | User files
|
35 | 35 | </button>
|
|
38 | 38 | <button
|
39 | 39 | class="nav-link"
|
40 | 40 | translate="translate"
|
41 |
| - @click="$tab = Tab.FILES" |
42 | 41 | :class="{active: $tab === Tab.FILES}"
|
| 42 | + @click="$tab = Tab.FILES" |
43 | 43 | >
|
44 | 44 | File list
|
45 | 45 | </button>
|
46 | 46 | </li>
|
47 | 47 | </ul>
|
48 |
| - <form name="formUser" @submit="nextForUser()" v-show="$tab === Tab.USER"> |
| 48 | + <form v-show="$tab === Tab.USER" name="formUser" @submit="nextForUser()"> |
49 | 49 | <div class="mb-4">
|
50 | 50 | <label for="inputUser" translate="translate">User</label>
|
51 |
| - <input class="form-control" id="inputUser" v-model="user" placeholder="User:…" /> |
| 51 | + <input id="inputUser" v-model="user" class="form-control" placeholder="User:…" /> |
52 | 52 | </div>
|
53 | 53 | <div class="row">
|
54 | 54 | <div class="mb-4 col-sm-4">
|
|
59 | 59 | >
|
60 | 60 | Limit
|
61 | 61 | </label>
|
62 |
| - <input class="form-control" id="inputUserLimit" v-model="userLimit" type="number" /> |
| 62 | + <input id="inputUserLimit" v-model="userLimit" class="form-control" type="number" /> |
63 | 63 | </div>
|
64 | 64 | <div class="mb-4 col-sm-4">
|
65 | 65 | <label for="inputUserStart" translate="translate">Start timestamp</label>
|
66 |
| - <input class="form-control" id="inputUserStart" v-model="userStart" type="date" /> |
| 66 | + <input id="inputUserStart" v-model="userStart" class="form-control" type="date" /> |
67 | 67 | </div>
|
68 | 68 | <div class="mb-4 col-sm-4">
|
69 | 69 | <label for="inputUserEnd" translate="translate">End timestamp</label>
|
70 |
| - <input class="form-control" id="inputUserEnd" v-model="userEnd" type="date" /> |
| 70 | + <input id="inputUserEnd" v-model="userEnd" class="form-control" type="date" /> |
71 | 71 | </div>
|
72 | 72 | </div>
|
73 | 73 | <div class="mb-4">
|
74 |
| - <button class="btn btn-success" @click="nextForUser()" :disabled="!user"> |
| 74 | + <button class="btn btn-success" :disabled="!user" @click="nextForUser()"> |
75 | 75 | <svg class="octicon">
|
76 | 76 | <use xlink:href="#location"></use>
|
77 | 77 | </svg>
|
78 | 78 | <span translate="translate">Load User files to geolocate</span>
|
79 | 79 | </button>
|
80 |
| - <button class="btn btn-secondary" @click="nextForUser('map')" :disabled="!user"> |
| 80 | + <button class="btn btn-secondary" :disabled="!user" @click="nextForUser('map')"> |
81 | 81 | <svg class="octicon">
|
82 | 82 | <use xlink:href="#globe"></use>
|
83 | 83 | </svg>
|
84 | 84 | <span translate="translate">Show User files on map</span>
|
85 | 85 | </button>
|
86 |
| - <button class="btn btn-secondary" @click="nextForUser('gallery')" :disabled="!user"> |
| 86 | + <button class="btn btn-secondary" :disabled="!user" @click="nextForUser('gallery')"> |
87 | 87 | <svg class="octicon">
|
88 | 88 | <use xlink:href="#file-media"></use>
|
89 | 89 | </svg>
|
|
93 | 93 | </div>
|
94 | 94 | <lt-spinner v-if="getFilesForUser$q && !getFilesForUser$q.$$state.status"></lt-spinner>
|
95 | 95 | </form>
|
96 |
| - <form name="formCategory" @submit="nextForCategory()" v-show="$tab === Tab.CATEGORY"> |
| 96 | + <form v-show="$tab === Tab.CATEGORY" name="formCategory" @submit="nextForCategory()"> |
97 | 97 | <div class="row">
|
98 | 98 | <div class="mb-4 col-lg-10">
|
99 | 99 | <label for="inputCategory" translate="translate">Category</label>
|
100 | 100 | <input
|
101 |
| - class="form-control" |
102 | 101 | id="inputCategory"
|
103 |
| - list="datalistCategory" |
104 | 102 | v-model="category"
|
105 | 103 | v-model-options="{updateOn: 'default blur', debounce: {default: 500, change: 0, blur: 0}}"
|
106 |
| - @change="getCategoriesForPrefix()" |
| 104 | + class="form-control" |
| 105 | + list="datalistCategory" |
107 | 106 | placeholder="Category:…"
|
| 107 | + @change="getCategoriesForPrefix()" |
108 | 108 | />
|
109 | 109 | </div>
|
110 | 110 | <div class="mb-4 col-lg-2">
|
|
116 | 116 | >
|
117 | 117 | Depth
|
118 | 118 | </label>
|
119 |
| - <input class="form-control" id="inputCategoryDepth" type="number" v-model="categoryDepth" /> |
| 119 | + <input id="inputCategoryDepth" v-model="categoryDepth" class="form-control" type="number" /> |
120 | 120 | </div>
|
121 | 121 | </div>
|
122 | 122 | <div class="mb-4">
|
123 |
| - <button class="btn btn-success" @click="nextForCategory()" :disabled="!category"> |
| 123 | + <button class="btn btn-success" :disabled="!category" @click="nextForCategory()"> |
124 | 124 | <svg class="octicon">
|
125 | 125 | <use xlink:href="#location"></use>
|
126 | 126 | </svg>
|
127 | 127 | <span translate="translate">Load Category to geolocate</span>
|
128 | 128 | </button>
|
129 |
| - <button class="btn btn-secondary" @click="nextForCategory('map')" :disabled="!category"> |
| 129 | + <button class="btn btn-secondary" :disabled="!category" @click="nextForCategory('map')"> |
130 | 130 | <svg class="octicon">
|
131 | 131 | <use xlink:href="#globe"></use>
|
132 | 132 | </svg>
|
133 | 133 | <span translate="translate">Show Category on map</span>
|
134 | 134 | </button>
|
135 |
| - <button class="btn btn-secondary" @click="nextForCategory('gallery')" :disabled="!category"> |
| 135 | + <button class="btn btn-secondary" :disabled="!category" @click="nextForCategory('gallery')"> |
136 | 136 | <svg class="octicon">
|
137 | 137 | <use xlink:href="#file-media"></use>
|
138 | 138 | </svg>
|
|
142 | 142 | </div>
|
143 | 143 | <lt-spinner v-if="getFilesForCategory$q && !getFilesForCategory$q.$$state.status"></lt-spinner>
|
144 | 144 | <datalist id="datalistCategory">
|
145 |
| - <option v-for="i in categorySuggestions" :value="i"></option> |
| 145 | + <option v-for="i in categorySuggestions" :key="i" :value="i"></option> |
146 | 146 | </datalist>
|
147 | 147 | </form>
|
148 |
| - <form name="formTitles" v-show="$tab === Tab.FILES"> |
| 148 | + <form v-show="$tab === Tab.FILES" name="formTitles"> |
149 | 149 | <div class="mb-4">
|
150 | 150 | <label for="inputTitles" translate="translate">File list</label>
|
151 | 151 | <textarea
|
152 |
| - class="form-control" |
153 | 152 | id="inputTitles"
|
154 |
| - rows="10" |
155 | 153 | v-model="titles"
|
| 154 | + class="form-control" |
| 155 | + rows="10" |
156 | 156 | placeholder="File:…"
|
157 | 157 | @paste="onFilesPaste($event)"
|
158 | 158 | ></textarea>
|
|
0 commit comments