finish linting client

This commit is contained in:
Matteo Pagliazzi
2019-10-13 18:04:04 +02:00
parent c1ea91803c
commit a0e5a56bf2
105 changed files with 804 additions and 316 deletions
@@ -68,7 +68,10 @@
</tr>
</thead>
<tbody>
<tr v-for="(webhook, index) in user.webhooks">
<tr
v-for="(webhook, index) in user.webhooks"
:key="webhook.id"
>
<td>
<input
v-model="webhook.enabled"
@@ -38,7 +38,10 @@
<span>{{ $t('push') }}</span>
</th>
</tr>
<tr v-for="notification in notificationsIds">
<tr
v-for="notification in notificationsIds"
:key="notification"
>
<td>
<span>{{ $t(notification) }}</span>
</td>
@@ -50,7 +50,8 @@
data-for="stats.gp"
>
</div>
<!--input.form-control(type='number', step="any", data-for='stats.gp', v-model='restoreValues.stats.gp',disabled)-->
<!--input.form-control(type='number',
step="any", data-for='stats.gp', v-model='restoreValues.stats.gp',disabled)-->
</div>
<div class="form-group row">
<div class="col-sm-3">
@@ -16,6 +16,7 @@
>
<option
v-for="lang in availableLanguages"
:key="lang.code"
:value="lang.code"
>
{{ lang.name }}
@@ -37,6 +38,7 @@
>
<option
v-for="dateFormat in availableFormats"
:key="dateFormat"
:value="dateFormat"
>
{{ dateFormat }}
@@ -54,6 +56,7 @@
>
<option
v-for="sound in availableAudioThemes"
:key="sound"
:value="sound"
>
{{ $t(`audioTheme_${sound}`) }}
@@ -217,6 +220,7 @@
>
<option
v-for="option in dayStartOptions"
:key="option.value"
:value="option.value"
>
{{ option.name }}
@@ -252,7 +256,10 @@
<div class="panel-body">
<div>
<ul class="list-inline">
<li v-for="network in SOCIAL_AUTH_NETWORKS">
<li
v-for="network in SOCIAL_AUTH_NETWORKS"
:key="network.key"
>
<button
v-if="!user.auth[network.key].id"
class="btn btn-primary mb-2"
@@ -343,6 +350,7 @@
>
<div
v-for="issue in displayNameIssues"
:key="issue"
class="input-error"
>
{{ issue }}
@@ -390,6 +398,7 @@
>
<div
v-for="issue in usernameIssues"
:key="issue"
class="input-error"
>
{{ issue }}
@@ -754,10 +763,10 @@ export default {
return true;
}
return find(this.SOCIAL_AUTH_NETWORKS, network => {
return this.SOCIAL_AUTH_NETWORKS.find(network => {
if (network.key !== networkKeyToCheck) {
if (this.user.auth[network.key]) {
return this.user.auth[network.key].id;
return !!this.user.auth[network.key].id;
}
}
@@ -103,9 +103,9 @@
<span class="glyphicon glyphicon-forward"></span>
&nbsp; {{ $t('consecutiveSubscription') }}
<ul class="list-unstyled">
<li>{{ $t('consecutiveMonths') }} {{ user.purchased.plan.consecutive.count + user.purchased.plan.consecutive.offset }}</li>
<li>{{ $t('consecutiveMonths') }} {{ user.purchased.plan.consecutive.count + user.purchased.plan.consecutive.offset }}</li> <!-- eslint-disable-line max-len -->
<li>{{ $t('gemCapExtra') }} {{ user.purchased.plan.consecutive.gemCapExtra }}</li>
<li>{{ $t('mysticHourglasses') }} {{ user.purchased.plan.consecutive.trinkets }}</li>
<li>{{ $t('mysticHourglasses') }} {{ user.purchased.plan.consecutive.trinkets }}</li> <!-- eslint-disable-line max-len -->
</ul>
</td>
</tr>
@@ -115,11 +115,14 @@
{{ $t("resubscribe") }}
</h4>
<div class="form-group reduce-top-margin">
<!-- eslint-disable vue/no-use-v-if-with-v-for -->
<div
v-for="block in subscriptionBlocksOrdered"
v-if="block.target !== 'group' && block.canSubscribe === true"
:key="block.key"
class="radio"
>
<!-- eslint-enable vue/no-use-v-if-with-v-for -->
<label>
<input
v-model="subscription.key"
@@ -207,7 +210,8 @@
</button>
<amazon-button
class="payment-item"
:amazon-data="{type: 'subscription', subscription: this.subscription.key, coupon: this.subscription.coupon}"
:amazon-data="{
type: 'subscription', subscription: subscription.key, coupon: subscription.coupon}"
/>
</div>
</div>
@@ -13,7 +13,9 @@
class="form-control"
type="text"
:placeholder="$t('newDisplayName')"
:class="{'is-invalid input-invalid': displayNameInvalid, 'input-valid': displayNameValid, 'text-darker': temporaryDisplayName.length > 0}"
:class="{
'is-invalid input-invalid': displayNameInvalid,
'input-valid': displayNameValid, 'text-darker': temporaryDisplayName.length > 0}"
@blur="restoreEmptyDisplayName()"
>
</div>
@@ -25,6 +27,7 @@
>
<div
v-for="issue in displayNameIssues"
:key="issue"
class="input-error text-center"
>
{{ issue }}
@@ -45,7 +48,9 @@
class="form-control"
type="text"
:placeholder="$t('newUsername')"
:class="{'is-invalid input-invalid': usernameInvalid, 'input-valid': usernameValid, 'text-darker': temporaryUsername.length > 0}"
:class="{
'is-invalid input-invalid': usernameInvalid,
'input-valid': usernameValid, 'text-darker': temporaryUsername.length > 0}"
@blur="restoreEmptyUsername()"
>
</div>
@@ -58,6 +63,7 @@
>
<div
v-for="issue in usernameIssues"
:key="issue"
class="input-error text-center"
>
{{ issue }}