mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix lint
This commit is contained in:
@@ -7,7 +7,11 @@
|
|||||||
>
|
>
|
||||||
Could not find any matching users.
|
Could not find any matching users.
|
||||||
</div>
|
</div>
|
||||||
<loading-spinner class="mx-auto mb-2" dark-color="true" v-if="isSearching" />
|
<loading-spinner
|
||||||
|
v-if="isSearching"
|
||||||
|
class="mx-auto mb-2"
|
||||||
|
dark-color="true"
|
||||||
|
/>
|
||||||
<div
|
<div
|
||||||
v-if="users.length > 0"
|
v-if="users.length > 0"
|
||||||
class="list-group"
|
class="list-group"
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<form @submit.prevent="saveHero({ hero: {
|
<form
|
||||||
|
@submit.prevent="saveHero({ hero: {
|
||||||
auth: hero.auth,
|
auth: hero.auth,
|
||||||
preferences: hero.preferences,
|
preferences: hero.preferences,
|
||||||
}, msg: 'Authentication' })">
|
}, msg: 'Authentication' })"
|
||||||
|
>
|
||||||
<div class="card mt-2">
|
<div class="card mt-2">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3
|
<h3
|
||||||
@@ -41,7 +43,10 @@
|
|||||||
<strong v-else>No</strong>
|
<strong v-else>No</strong>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="cronError" class="form-group row">
|
<div
|
||||||
|
v-if="cronError"
|
||||||
|
class="form-group row"
|
||||||
|
>
|
||||||
<label class="col-sm-3 col-form-label">lastCron value:</label>
|
<label class="col-sm-3 col-form-label">lastCron value:</label>
|
||||||
<strong>{{ hero.lastCron | formatDate }}</strong>
|
<strong>{{ hero.lastCron | formatDate }}</strong>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="col-sm-3 col-form-label"
|
<label
|
||||||
:class="color">{{ label }}</label>
|
class="col-sm-3 col-form-label"
|
||||||
|
:class="color"
|
||||||
|
>{{ label }}</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input
|
<input
|
||||||
v-bind:value="value"
|
:value="value"
|
||||||
v-on:input="$emit('input', parseInt($event.target.value, 10))"
|
|
||||||
class="form-control"
|
class="form-control"
|
||||||
type="number"
|
type="number"
|
||||||
:step="step"
|
:step="step"
|
||||||
:max="max"
|
:max="max"
|
||||||
:min="min"
|
:min="min"
|
||||||
|
@input="$emit('input', parseInt($event.target.value, 10))"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -174,8 +174,6 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapState({ user: 'user.data' }),
|
...mapState({ user: 'user.data' }),
|
||||||
statPointsIncorrect () {
|
statPointsIncorrect () {
|
||||||
this.hero.stats.int, this.hero.stats.per,
|
|
||||||
this.hero.stats.con, this.hero.stats.lvl);
|
|
||||||
return (parseInt(this.hero.stats.points, 10)
|
return (parseInt(this.hero.stats.points, 10)
|
||||||
+ parseInt(this.hero.stats.str, 10)
|
+ parseInt(this.hero.stats.str, 10)
|
||||||
+ parseInt(this.hero.stats.int, 10)
|
+ parseInt(this.hero.stats.int, 10)
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<form @submit.prevent="saveHero({ hero: {
|
<form
|
||||||
|
@submit.prevent="saveHero({ hero: {
|
||||||
_id: hero._id,
|
_id: hero._id,
|
||||||
purchased: hero.purchased
|
purchased: hero.purchased
|
||||||
}, msg: 'Subscription Perks' })">
|
}, msg: 'Subscription Perks' })"
|
||||||
|
>
|
||||||
<div class="card mt-2">
|
<div class="card mt-2">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3
|
<h3
|
||||||
|
|||||||
@@ -52,7 +52,9 @@
|
|||||||
>
|
>
|
||||||
{{ $t('timestamp') }}
|
{{ $t('timestamp') }}
|
||||||
</th>
|
</th>
|
||||||
<th v-once>Client</th>
|
<th v-once>
|
||||||
|
Client
|
||||||
|
</th>
|
||||||
<th
|
<th
|
||||||
v-once
|
v-once
|
||||||
>
|
>
|
||||||
@@ -84,9 +86,15 @@
|
|||||||
>
|
>
|
||||||
{{ $t('timestamp') }}
|
{{ $t('timestamp') }}
|
||||||
</th>
|
</th>
|
||||||
<th v-once>Client</th>
|
<th v-once>
|
||||||
<th v-once>Quest Key</th>
|
Client
|
||||||
<th v-once>Response</th>
|
</th>
|
||||||
|
<th v-once>
|
||||||
|
Quest Key
|
||||||
|
</th>
|
||||||
|
<th v-once>
|
||||||
|
Response
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr
|
||||||
v-for="entry in questInvites"
|
v-for="entry in questInvites"
|
||||||
@@ -114,7 +122,9 @@
|
|||||||
>
|
>
|
||||||
{{ $t('timestamp') }}
|
{{ $t('timestamp') }}
|
||||||
</th>
|
</th>
|
||||||
<th v-once>Client</th>
|
<th v-once>
|
||||||
|
Client
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr
|
||||||
v-for="entry in cron"
|
v-for="entry in cron"
|
||||||
@@ -169,6 +179,11 @@ import moment from 'moment';
|
|||||||
import { userStateMixin } from '../../../mixins/userState';
|
import { userStateMixin } from '../../../mixins/userState';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
filters: {
|
||||||
|
timeAgo (value) {
|
||||||
|
return moment(value).fromNow();
|
||||||
|
},
|
||||||
|
},
|
||||||
mixins: [userStateMixin],
|
mixins: [userStateMixin],
|
||||||
props: {
|
props: {
|
||||||
hero: {
|
hero: {
|
||||||
@@ -189,11 +204,6 @@ export default {
|
|||||||
cron: [],
|
cron: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
filters: {
|
|
||||||
timeAgo (value) {
|
|
||||||
return moment(value).fromNow();
|
|
||||||
},
|
|
||||||
},
|
|
||||||
watch: {
|
watch: {
|
||||||
resetCounter () {
|
resetCounter () {
|
||||||
if (this.expand) {
|
if (this.expand) {
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<form @submit.prevent="saveHero({hero: {
|
<form
|
||||||
|
@submit.prevent="saveHero({hero: {
|
||||||
_id: hero._id,
|
_id: hero._id,
|
||||||
profile: hero.profile
|
profile: hero.profile
|
||||||
}, msg: 'Users Profile'})">
|
}, msg: 'Users Profile'})"
|
||||||
|
>
|
||||||
<div class="card mt-2">
|
<div class="card mt-2">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3
|
<h3
|
||||||
|
|||||||
Reference in New Issue
Block a user