Pin Habitica Eslint Config (#15057)
* Pin Habitica Eslint Config * fix lint
This commit is contained in:
@@ -73,11 +73,11 @@
|
||||
|
||||
<script>
|
||||
import axios from 'axios';
|
||||
import Avatar from '../avatar';
|
||||
import { mapState } from '@/libs/store';
|
||||
import percent from '@/../../common/script/libs/percent';
|
||||
import { MAX_HEALTH as maxHealth } from '@/../../common/script/constants';
|
||||
import revive from '@/../../common/script/ops/revive';
|
||||
import { mapState } from '@/libs/store';
|
||||
import Avatar from '../avatar';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
||||
@@ -96,8 +96,8 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { mapState } from '@/libs/store';
|
||||
import achievements from '@/../../common/script/content/achievements';
|
||||
import { mapState } from '@/libs/store';
|
||||
import svgClose from '@/assets/svg/close.svg';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -124,9 +124,9 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import content from '@/../../common/script/content/index';
|
||||
import { mapState } from '@/libs/store';
|
||||
import Avatar from '../avatar';
|
||||
import content from '@/../../common/script/content/index';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
||||
@@ -97,10 +97,10 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import Avatar from '../avatar';
|
||||
import { mapState } from '@/libs/store';
|
||||
import percent from '@/../../common/script/libs/percent';
|
||||
import { MAX_HEALTH as maxHealth } from '@/../../common/script/constants';
|
||||
import Avatar from '../avatar';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
||||
@@ -54,9 +54,9 @@
|
||||
<script>
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
|
||||
import { mapState } from '@/libs/store';
|
||||
import percent from '@/../../common/script/libs/percent';
|
||||
import { MAX_HEALTH as maxHealth } from '@/../../common/script/constants';
|
||||
import { mapState } from '@/libs/store';
|
||||
import QuestRewards from '../shops/quests/questRewards';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -90,9 +90,9 @@
|
||||
|
||||
<script>
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
import { mapState } from '@/libs/store';
|
||||
import percent from '@/../../common/script/libs/percent';
|
||||
import { MAX_HEALTH as maxHealth } from '@/../../common/script/constants';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
export default {
|
||||
data () {
|
||||
|
||||
@@ -95,7 +95,6 @@ function _getGearSetDescription (key) {
|
||||
return (wantSetName) ? `${setType}: ${setName}` : setType;
|
||||
}
|
||||
|
||||
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -148,8 +148,8 @@
|
||||
|
||||
<script>
|
||||
import moment from 'moment';
|
||||
import saveHero from '../mixins/saveHero';
|
||||
import { getPlanContext } from '@/../../common/script/cron';
|
||||
import saveHero from '../mixins/saveHero';
|
||||
|
||||
export default {
|
||||
mixins: [saveHero],
|
||||
|
||||
@@ -225,8 +225,8 @@
|
||||
import hello from 'hellojs';
|
||||
import debounce from 'lodash/debounce';
|
||||
import isEmail from 'validator/lib/isEmail';
|
||||
import { setUpAxios, buildAppleAuthUrl } from '@/libs/auth';
|
||||
import { MINIMUM_PASSWORD_LENGTH } from '@/../../common/script/constants';
|
||||
import { setUpAxios, buildAppleAuthUrl } from '@/libs/auth';
|
||||
import googleIcon from '@/assets/svg/google.svg';
|
||||
import appleIcon from '@/assets/svg/apple_black.svg';
|
||||
|
||||
|
||||
@@ -615,9 +615,9 @@ import hello from 'hellojs';
|
||||
import debounce from 'lodash/debounce';
|
||||
import isEmail from 'validator/lib/isEmail';
|
||||
import DOMPurify from 'dompurify';
|
||||
import { MINIMUM_PASSWORD_LENGTH } from '@/../../common/script/constants';
|
||||
import { buildAppleAuthUrl } from '../../libs/auth';
|
||||
|
||||
import { MINIMUM_PASSWORD_LENGTH } from '@/../../common/script/constants';
|
||||
import exclamation from '@/assets/svg/exclamation.svg';
|
||||
import gryphon from '@/assets/svg/gryphon.svg';
|
||||
import habiticaIcon from '@/assets/svg/habitica-logo.svg';
|
||||
|
||||
@@ -78,13 +78,13 @@
|
||||
<script>
|
||||
import groupBy from 'lodash/groupBy';
|
||||
import appearance from '@/../../common/script/content/appearance';
|
||||
import appearanceSets from '@/../../common/script/content/appearance/sets';
|
||||
import { subPageMixin } from '../../mixins/subPage';
|
||||
import { userStateMixin } from '../../mixins/userState';
|
||||
import { avatarEditorUtilies } from '../../mixins/avatarEditUtilities';
|
||||
import subMenu from './sub-menu';
|
||||
import customizeOptions from './customize-options';
|
||||
import gem from '@/assets/svg/gem.svg';
|
||||
import appearanceSets from '@/../../common/script/content/appearance/sets';
|
||||
|
||||
const hairColorBySet = groupBy(appearance.hair.color, 'set.key');
|
||||
const freeHairColorKeys = hairColorBySet[undefined].map(s => s.key);
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
<script>
|
||||
import groupBy from 'lodash/groupBy';
|
||||
import appearance from '@/../../common/script/content/appearance';
|
||||
import appearanceSets from '@/../../common/script/content/appearance/sets';
|
||||
import { subPageMixin } from '../../mixins/subPage';
|
||||
import { userStateMixin } from '../../mixins/userState';
|
||||
import { avatarEditorUtilies } from '../../mixins/avatarEditUtilities';
|
||||
import appearanceSets from '@/../../common/script/content/appearance/sets';
|
||||
import subMenu from './sub-menu';
|
||||
import customizeOptions from './customize-options';
|
||||
import gem from '@/assets/svg/gem.svg';
|
||||
|
||||
@@ -372,6 +372,7 @@ import cloneDeep from 'lodash/cloneDeep';
|
||||
import omit from 'lodash/omit';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
import taskDefaults from '@/../../common/script/libs/taskDefaults';
|
||||
import { userStateMixin } from '../../mixins/userState';
|
||||
import externalLinks from '../../mixins/externalLinks';
|
||||
import memberSearchDropdown from '@/components/members/memberSearchDropdown';
|
||||
@@ -387,7 +388,6 @@ import reportChallengeModal from './reportChallengeModal';
|
||||
import sidebarSection from '../sidebarSection';
|
||||
import userLink from '../userLink';
|
||||
import groupLink from '../groupLink';
|
||||
import taskDefaults from '@/../../common/script/libs/taskDefaults';
|
||||
|
||||
import gemIcon from '@/assets/svg/gem.svg';
|
||||
import memberIcon from '@/assets/svg/member-icon.svg';
|
||||
|
||||
@@ -276,11 +276,10 @@
|
||||
import clone from 'lodash/clone';
|
||||
import throttle from 'lodash/throttle';
|
||||
|
||||
import markdownDirective from '@/directives/markdown';
|
||||
import { userStateMixin } from '../../mixins/userState';
|
||||
|
||||
import { TAVERN_ID, MIN_SHORTNAME_SIZE_FOR_CHALLENGES, MAX_SUMMARY_SIZE_FOR_CHALLENGES } from '@/../../common/script/constants';
|
||||
import CategoryOptions from '@/../../common/script/content/categoryOptions';
|
||||
import markdownDirective from '@/directives/markdown';
|
||||
import { userStateMixin } from '../../mixins/userState';
|
||||
|
||||
export default {
|
||||
directives: {
|
||||
|
||||
@@ -87,9 +87,9 @@
|
||||
|
||||
<script>
|
||||
import throttle from 'lodash/throttle';
|
||||
import CategoryOptions from '@/../../common/script/content/categoryOptions';
|
||||
import FilterSidebar from '@/components/ui/filterSidebar';
|
||||
import FilterGroup from '@/components/ui/filterGroup';
|
||||
import CategoryOptions from '@/../../common/script/content/categoryOptions';
|
||||
|
||||
export default {
|
||||
components: { FilterGroup, FilterSidebar },
|
||||
|
||||
@@ -201,6 +201,7 @@ import moment from 'moment';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
import escapeRegExp from 'lodash/escapeRegExp';
|
||||
|
||||
import { CHAT_FLAG_LIMIT_FOR_HIDING, CHAT_FLAG_FROM_SHADOW_MUTE } from '@/../../common/script/constants';
|
||||
import renderWithMentions from '@/libs/renderWithMentions';
|
||||
import { userStateMixin } from '../../mixins/userState';
|
||||
import userLink from '../userLink';
|
||||
@@ -210,7 +211,6 @@ import copyIcon from '@/assets/svg/copy.svg';
|
||||
import likeIcon from '@/assets/svg/like.svg';
|
||||
import likedIcon from '@/assets/svg/liked.svg';
|
||||
import reportIcon from '@/assets/svg/report.svg';
|
||||
import { CHAT_FLAG_LIMIT_FOR_HIDING, CHAT_FLAG_FROM_SHADOW_MUTE } from '@/../../common/script/constants';
|
||||
|
||||
export default {
|
||||
components: { userLink },
|
||||
|
||||
@@ -44,13 +44,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import taskDefaults from '@/../../common/script/libs/taskDefaults';
|
||||
import { mapActions } from '@/libs/store';
|
||||
import markdownDirective from '@/directives/markdown';
|
||||
import notificationsMixin from '@/mixins/notifications';
|
||||
import Task from '@/components/tasks/task';
|
||||
|
||||
import taskDefaults from '@/../../common/script/libs/taskDefaults';
|
||||
|
||||
const baseUrl = 'https://habitica.com';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -1159,10 +1159,12 @@
|
||||
<script>
|
||||
import axios from 'axios';
|
||||
import map from 'lodash/map';
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
import isPinned from '@/../../common/script/libs/isPinned';
|
||||
import content from '@/../../common/script/content/index';
|
||||
import { mapState } from '@/libs/store';
|
||||
import avatar from './avatar';
|
||||
import usernameForm from './settings/usernameForm';
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
import guide from '@/mixins/guide';
|
||||
import notifications from '@/mixins/notifications';
|
||||
import PinBadge from '@/components/ui/pinBadge';
|
||||
@@ -1185,11 +1187,8 @@ import gold from '@/assets/svg/gold.svg';
|
||||
import arrowRight from '@/assets/svg/arrow_right.svg';
|
||||
import arrowLeft from '@/assets/svg/arrow_left.svg';
|
||||
import svgClose from '@/assets/svg/close.svg';
|
||||
import isPinned from '@/../../common/script/libs/isPinned';
|
||||
import { avatarEditorUtilies } from '../mixins/avatarEditUtilities';
|
||||
|
||||
import content from '@/../../common/script/content/index';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
avatar,
|
||||
|
||||
@@ -87,6 +87,7 @@
|
||||
<script>
|
||||
import debounce from 'lodash/debounce';
|
||||
|
||||
import { MAX_MESSAGE_LENGTH } from '@/../../common/script/constants';
|
||||
import externalLinks from '../../mixins/externalLinks';
|
||||
|
||||
import autocomplete from '../chat/autoComplete';
|
||||
@@ -94,7 +95,6 @@ import communityGuidelines from './communityGuidelines';
|
||||
import chatMessage from '../chat/chatMessages';
|
||||
import { mapState } from '@/libs/store';
|
||||
import markdownDirective from '@/directives/markdown';
|
||||
import { MAX_MESSAGE_LENGTH } from '@/../../common/script/constants';
|
||||
|
||||
export default {
|
||||
directives: {
|
||||
|
||||
@@ -372,14 +372,14 @@ label.custom-control-label(v-once) {{ $t('allowGuildInvitationsFromNonMembers')
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { MAX_SUMMARY_SIZE_FOR_GUILDS } from '@/../../common/script/constants';
|
||||
import CategoryOptions from '@/../../common/script/content/categoryOptions';
|
||||
import toggleSwitch from '@/components/ui/toggleSwitch';
|
||||
import markdownDirective from '@/directives/markdown';
|
||||
import gemIcon from '@/assets/svg/gem.svg';
|
||||
import informationIcon from '@/assets/svg/information.svg';
|
||||
|
||||
import { MAX_SUMMARY_SIZE_FOR_GUILDS } from '@/../../common/script/constants';
|
||||
import { userStateMixin } from '../../mixins/userState';
|
||||
import CategoryOptions from '@/../../common/script/content/categoryOptions';
|
||||
|
||||
// @TODO: Not sure the best way to pass party creating status
|
||||
// Since we need the modal in the header, passing props doesn't work
|
||||
|
||||
@@ -84,9 +84,9 @@
|
||||
|
||||
<script>
|
||||
import throttle from 'lodash/throttle';
|
||||
import CategoryOptions from '@/../../common/script/content/categoryOptions';
|
||||
import FilterSidebar from '@/components/ui/filterSidebar';
|
||||
import FilterGroup from '@/components/ui/filterGroup';
|
||||
import CategoryOptions from '@/../../common/script/content/categoryOptions';
|
||||
|
||||
// TODO use checkbox-component to add/remove entries to *Filters, but without the v-model binding
|
||||
|
||||
|
||||
@@ -213,6 +213,7 @@
|
||||
|
||||
<script>
|
||||
import moment from 'moment';
|
||||
import { MAX_SUMMARY_SIZE_FOR_GUILDS } from '@/../../common/script/constants';
|
||||
import { mapState } from '@/libs/store';
|
||||
import categoryTags from '../categories/categoryTags';
|
||||
import groupUtilities from '@/mixins/groupsUtilities';
|
||||
@@ -221,7 +222,6 @@ import gemIcon from '@/assets/svg/gem.svg';
|
||||
import goldGuildBadgeIcon from '@/assets/svg/gold-guild-badge-large.svg';
|
||||
import silverGuildBadgeIcon from '@/assets/svg/silver-guild-badge-large.svg';
|
||||
import bronzeGuildBadgeIcon from '@/assets/svg/bronze-guild-badge-large.svg';
|
||||
import { MAX_SUMMARY_SIZE_FOR_GUILDS } from '@/../../common/script/constants';
|
||||
|
||||
export default {
|
||||
directives: {
|
||||
|
||||
@@ -303,11 +303,10 @@
|
||||
|
||||
<script>
|
||||
import orderBy from 'lodash/orderBy';
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
import { mapState } from '@/libs/store';
|
||||
import * as Analytics from '@/libs/analytics';
|
||||
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
|
||||
import navigationBack from '@/assets/svg/navigation_back.svg';
|
||||
import questDialogContent from '../shops/quests/questDialogContent';
|
||||
import closeIcon from '../shared/closeIcon';
|
||||
|
||||
@@ -638,10 +638,10 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
import percent from '@/../../common/script/libs/percent';
|
||||
import { mapState } from '@/libs/store';
|
||||
import sidebarSection from '../sidebarSection';
|
||||
|
||||
import questIcon from '@/assets/svg/quest.svg';
|
||||
|
||||
@@ -746,10 +746,11 @@
|
||||
|
||||
<script>
|
||||
import find from 'lodash/find';
|
||||
import { TAVERN_ID } from '@/../../common/script/constants';
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
import { mapState } from '@/libs/store';
|
||||
import { goToModForm } from '@/libs/modform';
|
||||
|
||||
import { TAVERN_ID } from '@/../../common/script/constants';
|
||||
import worldBossInfoModal from '../world-boss/worldBossInfoModal';
|
||||
import worldBossRageModal from '../world-boss/worldBossRageModal';
|
||||
import sidebarSection from '../sidebarSection';
|
||||
@@ -775,7 +776,6 @@ import tierMod from '@/assets/svg/tier-mod.svg';
|
||||
import tierNPC from '@/assets/svg/tier-npc.svg';
|
||||
import tierStaff from '@/assets/svg/tier-staff.svg';
|
||||
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
import staffList from '../../libs/staffList';
|
||||
import reportBug from '@/mixins/reportBug.js';
|
||||
|
||||
|
||||
@@ -319,12 +319,12 @@
|
||||
|
||||
<script>
|
||||
import each from 'lodash/each';
|
||||
import markdownDirective from '@/directives/markdown';
|
||||
import styleHelper from '@/mixins/styleHelper';
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
import { mountInfo, petInfo } from '@/../../common/script/content/stable';
|
||||
import content from '@/../../common/script/content';
|
||||
import gear from '@/../../common/script/content/gear';
|
||||
import styleHelper from '@/mixins/styleHelper';
|
||||
import markdownDirective from '@/directives/markdown';
|
||||
import notifications from '@/mixins/notifications';
|
||||
import userLink from '../userLink';
|
||||
import PurchaseHistoryTable from '../ui/purchaseHistoryTable.vue';
|
||||
|
||||
@@ -39,9 +39,9 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
import BaseNotification from './base';
|
||||
import { mapState } from '@/libs/store';
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
import questInfo from '@/components/shops/quests/questInfo';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -112,9 +112,9 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { mapState, mapActions } from '@/libs/store';
|
||||
import * as quests from '@/../../common/script/content/quests';
|
||||
import { hasCompletedOnboarding } from '@/../../common/script/libs/onboarding';
|
||||
import { mapState, mapActions } from '@/libs/store';
|
||||
import notificationsIcon from '@/assets/svg/notifications.svg';
|
||||
import MenuDropdown from '../ui/customMenuDropdown';
|
||||
import MessageCount from './messageCount.functional.vue';
|
||||
|
||||
@@ -297,6 +297,7 @@ import map from 'lodash/map';
|
||||
import throttle from 'lodash/throttle';
|
||||
import _sortBy from 'lodash/sortBy';
|
||||
import _reverse from 'lodash/reverse';
|
||||
import i18n from '@/../../common/script/i18n';
|
||||
import { CONSTANTS, setLocalSetting, getLocalSetting } from '@/libs/userlocalManager';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
@@ -306,8 +307,6 @@ import ItemRows from '@/components/ui/itemRows';
|
||||
import EquipmentAttributesPopover from '@/components/inventory/equipment/attributesPopover';
|
||||
import Drawer from '@/components/ui/drawer';
|
||||
|
||||
import i18n from '@/../../common/script/i18n';
|
||||
|
||||
import EquipGearModal from './equipGearModal';
|
||||
|
||||
import FilterGroup from '@/components/ui/filterGroup';
|
||||
|
||||
@@ -80,8 +80,8 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import markdownDirective from '@/directives/markdown';
|
||||
import { mountInfo } from '@/../../common/script/content/stable';
|
||||
import markdownDirective from '@/directives/markdown';
|
||||
|
||||
export default {
|
||||
directives: {
|
||||
|
||||
@@ -184,16 +184,15 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { toNextLevel } from '@/../../common/script/statHelpers';
|
||||
import statsComputed from '@/../../common/script/libs/statsComputed';
|
||||
import percent from '@/../../common/script/libs/percent';
|
||||
import Avatar from './avatar';
|
||||
import ClassBadge from './members/classBadge';
|
||||
import { mapState } from '@/libs/store';
|
||||
import StatsBar from './ui/statsbar';
|
||||
import userLink from './userLink';
|
||||
|
||||
import { toNextLevel } from '@/../../common/script/statHelpers';
|
||||
import statsComputed from '@/../../common/script/libs/statsComputed';
|
||||
import percent from '@/../../common/script/libs/percent';
|
||||
|
||||
import buffIcon from '@/assets/svg/buff.svg';
|
||||
import healthIcon from '@/assets/svg/health.svg';
|
||||
import experienceIcon from '@/assets/svg/experience.svg';
|
||||
|
||||
@@ -226,16 +226,15 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { toNextLevel } from '@/../../common/script/statHelpers';
|
||||
import statsComputed from '@/../../common/script/libs/statsComputed';
|
||||
import percent from '@/../../common/script/libs/percent';
|
||||
import Avatar from './avatar';
|
||||
import ClassBadge from './members/classBadge';
|
||||
import { mapState } from '@/libs/store';
|
||||
import StatsBar from './ui/statsbar';
|
||||
import userLink from './userLink';
|
||||
|
||||
import { toNextLevel } from '@/../../common/script/statHelpers';
|
||||
import statsComputed from '@/../../common/script/libs/statsComputed';
|
||||
import percent from '@/../../common/script/libs/percent';
|
||||
|
||||
import buffIcon from '@/assets/svg/buff.svg';
|
||||
import healthIcon from '@/assets/svg/health.svg';
|
||||
import experienceIcon from '@/assets/svg/experience.svg';
|
||||
|
||||
@@ -729,9 +729,8 @@
|
||||
<script>
|
||||
import axios from 'axios';
|
||||
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
import Content from '@/../../common/script/content';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
export default {
|
||||
data () {
|
||||
|
||||
@@ -359,7 +359,6 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '~@/assets/scss/colors.scss';
|
||||
@import '~@/assets/scss/mixins.scss';
|
||||
@@ -788,16 +787,15 @@
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<script>
|
||||
// to check if user owns JG or not
|
||||
import content from '@/../../common/script/content/index';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
// Purchase functionality
|
||||
import buy from '@/mixins/buy';
|
||||
import notifications from '@/mixins/notifications';
|
||||
import payments from '@/mixins/payments';
|
||||
import content from '@/../../common/script/content/index';
|
||||
import amazonButton from '@/components/payments/buttons/amazon';
|
||||
|
||||
// import images
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
</div>
|
||||
<div
|
||||
v-for="(post, index) in posts"
|
||||
id="bailey"
|
||||
:key="post._id"
|
||||
class="static-view bailey"
|
||||
id="bailey"
|
||||
:class="{'bailey-last': index == (posts.length - 1)}"
|
||||
>
|
||||
<small
|
||||
|
||||
@@ -109,8 +109,8 @@ import Vue from 'vue';
|
||||
import { toNextLevel } from '@/../../common/script/statHelpers';
|
||||
import { shouldDo } from '@/../../common/script/cron';
|
||||
import { onOnboardingComplete } from '@/../../common/script/libs/onboarding';
|
||||
import { mapState } from '@/libs/store';
|
||||
import { MAX_LEVEL_HARD_CAP } from '@/../../common/script/constants';
|
||||
import { mapState } from '@/libs/store';
|
||||
import notifications from '@/mixins/notifications';
|
||||
import guide from '@/mixins/guide';
|
||||
import { CONSTANTS, setLocalSetting } from '@/libs/userlocalManager';
|
||||
|
||||
@@ -168,12 +168,12 @@ input[type="radio"] {
|
||||
import toArray from 'lodash/toArray';
|
||||
import omitBy from 'lodash/omitBy';
|
||||
import orderBy from 'lodash/orderBy';
|
||||
import { mapState } from '@/libs/store';
|
||||
import planGemLimits from '@/../../common/script/libs/planGemLimits';
|
||||
import { MAX_GIFT_MESSAGE_LENGTH } from '@/../../common/script/constants';
|
||||
import { mapState } from '@/libs/store';
|
||||
import paymentsMixin from '@/mixins/payments';
|
||||
import notificationsMixin from '@/mixins/notifications';
|
||||
import paymentsButtons from '@/components/payments/buttons/list';
|
||||
import { MAX_GIFT_MESSAGE_LENGTH } from '@/../../common/script/constants';
|
||||
|
||||
// @TODO: EMAILS.TECH_ASSISTANCE_EMAIL, load from config
|
||||
const TECH_ASSISTANCE_EMAIL = 'admin@habitica.com';
|
||||
|
||||
@@ -415,13 +415,13 @@
|
||||
|
||||
<script>
|
||||
// icons
|
||||
import subscriptionBlocks from '@/../../common/script/content/subscriptionBlocks';
|
||||
import checkIcon from '@/assets/svg/check.svg';
|
||||
import gemIcon from '@/assets/svg/gem.svg';
|
||||
import closeIcon from '@/assets/svg/close.svg';
|
||||
|
||||
// components
|
||||
import { mapState } from '@/libs/store';
|
||||
import subscriptionBlocks from '@/../../common/script/content/subscriptionBlocks';
|
||||
import selectTranslatedArray from '@/components/tasks/modal-controls/selectTranslatedArray';
|
||||
import lockableLabel from '@/components/tasks/modal-controls/lockableLabel';
|
||||
|
||||
|
||||
@@ -619,10 +619,11 @@
|
||||
<script>
|
||||
import axios from 'axios';
|
||||
import moment from 'moment';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
import subscriptionBlocks from '@/../../common/script/content/subscriptionBlocks';
|
||||
import planGemLimits from '@/../../common/script/libs/planGemLimits';
|
||||
import { getPlanContext } from '@/../../common/script/cron';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
import paymentsMixin from '../../mixins/payments';
|
||||
import notificationsMixin from '../../mixins/notifications';
|
||||
|
||||
@@ -643,7 +644,6 @@ import logo from '@/assets/svg/habitica-logo-purple.svg';
|
||||
import paypalLogo from '@/assets/svg/paypal-logo.svg';
|
||||
import subscriberGems from '@/assets/svg/subscriber-gems.svg';
|
||||
import subscriberHourglasses from '@/assets/svg/subscriber-hourglasses.svg';
|
||||
import { getPlanContext } from '@/../../common/script/cron';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
||||
@@ -133,9 +133,9 @@
|
||||
import filter from 'lodash/filter';
|
||||
import sortBy from 'lodash/sortBy';
|
||||
|
||||
import subscriptionBlocks from '@/../../common/script/content/subscriptionBlocks';
|
||||
import paymentsButtons from '@/components/payments/buttons/list';
|
||||
import paymentsMixin from '../../mixins/payments';
|
||||
import subscriptionBlocks from '@/../../common/script/content/subscriptionBlocks';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<style lang="scss">
|
||||
@import '~@/assets/scss/colors.scss';
|
||||
@import '~@/assets/scss/mixins.scss';
|
||||
|
||||
@@ -551,7 +551,6 @@
|
||||
// padding-top: 0.15rem;
|
||||
// }
|
||||
|
||||
|
||||
.gems-left {
|
||||
height: 32px;
|
||||
background-color: $green-100;
|
||||
@@ -600,8 +599,10 @@ import size from 'lodash/size';
|
||||
import reduce from 'lodash/reduce';
|
||||
import moment from 'moment';
|
||||
|
||||
import spellsMixin from '@/mixins/spells';
|
||||
import planGemLimits from '@/../../common/script/libs/planGemLimits';
|
||||
import { drops as dropEggs } from '@/../../common/script/content/eggs';
|
||||
import { drops as dropPotions } from '@/../../common/script/content/hatching-potions';
|
||||
import spellsMixin from '@/mixins/spells';
|
||||
import numberInvalid from '@/mixins/numberInvalid';
|
||||
|
||||
import svgClose from '@/assets/svg/close.svg';
|
||||
@@ -628,9 +629,6 @@ import EquipmentAttributesGrid from '../inventory/equipment/attributesGrid.vue';
|
||||
import Item from '@/components/inventory/item';
|
||||
import Avatar from '@/components/avatar';
|
||||
|
||||
import { drops as dropEggs } from '@/../../common/script/content/eggs';
|
||||
import { drops as dropPotions } from '@/../../common/script/content/hatching-potions';
|
||||
|
||||
const dropEggKeys = keys(dropEggs);
|
||||
|
||||
const amountOfDropEggs = size(dropEggs);
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import planGemLimits from '@/../../common/script/libs/planGemLimits';
|
||||
import { mapState } from '@/libs/store';
|
||||
import CountBadge from '@/components/ui/countBadge';
|
||||
|
||||
import PinBadge from '@/components/ui/pinBadge';
|
||||
import planGemLimits from '@/../../common/script/libs/planGemLimits';
|
||||
import pinUtils from '../../../mixins/pinUtils';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
import _filter from 'lodash/filter';
|
||||
import _sortBy from 'lodash/sortBy';
|
||||
import _map from 'lodash/map';
|
||||
import planGemLimits from '@/../../common/script/libs/planGemLimits';
|
||||
import { mapState } from '@/libs/store';
|
||||
import pinUtils from '@/mixins/pinUtils';
|
||||
import planGemLimits from '@/../../common/script/libs/planGemLimits';
|
||||
|
||||
import ShopItem from '../shopItem';
|
||||
import CategoryItem from './categoryItem';
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
<script>
|
||||
import _filter from 'lodash/filter';
|
||||
import _orderBy from 'lodash/orderBy';
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
import { mapState } from '@/libs/store';
|
||||
import LayoutSection from '@/components/ui/layoutSection';
|
||||
import FilterDropdown from '@/components/ui/filterDropdown';
|
||||
@@ -81,8 +82,6 @@ import ItemRows from '@/components/ui/itemRows';
|
||||
import PinBadge from '@/components/ui/pinBadge';
|
||||
import ShopItem from '../shopItem';
|
||||
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
|
||||
import svgWarrior from '@/assets/svg/warrior.svg';
|
||||
import svgWizard from '@/assets/svg/wizard.svg';
|
||||
import svgRogue from '@/assets/svg/rogue.svg';
|
||||
|
||||
@@ -150,6 +150,8 @@ import find from 'lodash/find';
|
||||
import _filter from 'lodash/filter';
|
||||
import _map from 'lodash/map';
|
||||
import _throttle from 'lodash/throttle';
|
||||
import getItemInfo from '@/../../common/script/libs/getItemInfo';
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
import KeysToKennel from './keysToKennel';
|
||||
@@ -165,8 +167,6 @@ import FilterDropdown from '@/components/ui/filterDropdown';
|
||||
import MarketFilter from './filter';
|
||||
|
||||
import SellModal from './sellModal.vue';
|
||||
import getItemInfo from '@/../../common/script/libs/getItemInfo';
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
|
||||
import notifications from '@/mixins/notifications';
|
||||
import buyMixin from '@/mixins/buy';
|
||||
|
||||
@@ -59,11 +59,10 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { beastCount, mountMasterProgress } from '@/../../common/script/count';
|
||||
import { mapState } from '@/libs/store';
|
||||
import ShopItem from '../shopItem';
|
||||
|
||||
import { beastCount, mountMasterProgress } from '@/../../common/script/count';
|
||||
|
||||
import notifications from '@/mixins/notifications';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -405,6 +405,8 @@ import _groupBy from 'lodash/groupBy';
|
||||
import _map from 'lodash/map';
|
||||
import _each from 'lodash/each';
|
||||
import * as stopword from 'stopword/dist/stopword.esm.mjs';
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
import isPinned from '@/../../common/script/libs/isPinned';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
import ShopItem from '../shopItem';
|
||||
@@ -420,9 +422,6 @@ import BuyModal from './buyQuestModal.vue';
|
||||
import PinBadge from '@/components/ui/pinBadge';
|
||||
import QuestInfo from './questInfo.vue';
|
||||
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
|
||||
import isPinned from '@/../../common/script/libs/isPinned';
|
||||
import FilterSidebar from '@/components/ui/filterSidebar';
|
||||
import FilterGroup from '@/components/ui/filterGroup';
|
||||
import SelectTranslatedArray from '@/components/tasks/modal-controls/selectTranslatedArray';
|
||||
|
||||
@@ -347,6 +347,10 @@ import _throttle from 'lodash/throttle';
|
||||
import _groupBy from 'lodash/groupBy';
|
||||
import _reverse from 'lodash/reverse';
|
||||
import _find from 'lodash/find';
|
||||
import isPinned from '@/../../common/script/libs/isPinned';
|
||||
import getOfficialPinnedItems from '@/../../common/script/libs/getOfficialPinnedItems';
|
||||
import i18n from '@/../../common/script/i18n';
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
import Checkbox from '@/components/ui/checkbox';
|
||||
@@ -362,12 +366,6 @@ import svgWizard from '@/assets/svg/wizard.svg';
|
||||
import svgRogue from '@/assets/svg/rogue.svg';
|
||||
import svgHealer from '@/assets/svg/healer.svg';
|
||||
|
||||
import isPinned from '@/../../common/script/libs/isPinned';
|
||||
import getOfficialPinnedItems from '@/../../common/script/libs/getOfficialPinnedItems';
|
||||
|
||||
import i18n from '@/../../common/script/i18n';
|
||||
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
import SelectTranslatedArray from '@/components/tasks/modal-controls/selectTranslatedArray';
|
||||
import FilterSidebar from '@/components/ui/filterSidebar';
|
||||
import FilterGroup from '@/components/ui/filterGroup';
|
||||
|
||||
@@ -274,6 +274,8 @@ import _throttle from 'lodash/throttle';
|
||||
import _groupBy from 'lodash/groupBy';
|
||||
import _map from 'lodash/map';
|
||||
import _find from 'lodash/find';
|
||||
import isPinned from '@/../../common/script/libs/isPinned';
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
import ShopItem from '../shopItem';
|
||||
@@ -287,9 +289,6 @@ import BuyQuestModal from '../quests/buyQuestModal.vue';
|
||||
|
||||
import svgHourglass from '@/assets/svg/hourglass.svg';
|
||||
|
||||
import isPinned from '@/../../common/script/libs/isPinned';
|
||||
import shops from '@/../../common/script/libs/shops';
|
||||
|
||||
import pinUtils from '@/mixins/pinUtils';
|
||||
import FilterSidebar from '@/components/ui/filterSidebar';
|
||||
import FilterGroup from '@/components/ui/filterGroup';
|
||||
|
||||
@@ -781,6 +781,7 @@
|
||||
import hello from 'hellojs';
|
||||
import debounce from 'lodash/debounce';
|
||||
import isEmail from 'validator/lib/isEmail';
|
||||
import { MINIMUM_PASSWORD_LENGTH } from '@/../../common/script/constants';
|
||||
import { buildAppleAuthUrl } from '../../libs/auth';
|
||||
import googlePlay from '@/assets/images/home/google-play-badge.svg';
|
||||
import iosAppStore from '@/assets/images/home/ios-app-store.svg';
|
||||
@@ -800,7 +801,6 @@ import kickstarter from '@/assets/images/home/kickstarter.svg';
|
||||
import lifehacker from '@/assets/images/home/lifehacker.svg';
|
||||
import makeuseof from '@/assets/images/home/make-use-of.svg';
|
||||
import thenewyorktimes from '@/assets/images/home/the-new-york-times.svg';
|
||||
import { MINIMUM_PASSWORD_LENGTH } from '@/../../common/script/constants';
|
||||
|
||||
export default {
|
||||
data () {
|
||||
|
||||
@@ -1035,7 +1035,6 @@ import calendarIcon from '@/assets/svg/calendar.svg';
|
||||
import gripIcon from '@/assets/svg/grip.svg';
|
||||
import InformationIcon from '@/components/ui/informationIcon.vue';
|
||||
|
||||
|
||||
export default {
|
||||
components: {
|
||||
InformationIcon,
|
||||
|
||||
@@ -387,6 +387,7 @@ import Vue from 'vue';
|
||||
import throttle from 'lodash/throttle';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
import draggable from 'vuedraggable';
|
||||
import taskDefaults from '@/../../common/script/libs/taskDefaults';
|
||||
import TaskColumn from './column';
|
||||
import TaskModal from './taskModal';
|
||||
import TaskSummary from './taskSummary';
|
||||
@@ -403,7 +404,6 @@ import rewardIcon from '@/assets/svg/reward.svg';
|
||||
import dragIcon from '@/assets/svg/drag_indicator.svg';
|
||||
|
||||
import { mapState, mapActions } from '@/libs/store';
|
||||
import taskDefaults from '@/../../common/script/libs/taskDefaults';
|
||||
import brokenTaskModal from './brokenTaskModal';
|
||||
|
||||
export default {
|
||||
|
||||
@@ -87,9 +87,8 @@
|
||||
|
||||
<script>
|
||||
|
||||
import styleHelper from '@/mixins/styleHelper';
|
||||
|
||||
import achievementsLib from '@/../../common/script/libs/achievements';
|
||||
import styleHelper from '@/mixins/styleHelper';
|
||||
|
||||
import tier1 from '@/assets/svg/tier-1.svg';
|
||||
import tier2 from '@/assets/svg/tier-2.svg';
|
||||
|
||||
@@ -980,13 +980,13 @@ import moment from 'moment';
|
||||
import axios from 'axios';
|
||||
import each from 'lodash/each';
|
||||
import cloneDeep from 'lodash/cloneDeep';
|
||||
import achievementsLib from '@/../../common/script/libs/achievements';
|
||||
import Content from '@/../../common/script/content';
|
||||
import toggleSwitch from '../ui/toggleSwitch';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
import MemberDetails from '../memberDetails';
|
||||
import markdown from '@/directives/markdown';
|
||||
import achievementsLib from '@/../../common/script/libs/achievements';
|
||||
import Content from '@/../../common/script/content';
|
||||
import profileStats from './profileStats';
|
||||
|
||||
import message from '@/assets/svg/message.svg';
|
||||
|
||||
@@ -96,5 +96,4 @@ export default {
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@@ -321,15 +321,15 @@
|
||||
import axios from 'axios';
|
||||
import size from 'lodash/size';
|
||||
import keys from 'lodash/keys';
|
||||
import toggleSwitch from '@/components/ui/toggleSwitch';
|
||||
import attributesGrid from '@/components/inventory/equipment/attributesGrid';
|
||||
|
||||
import { mapState } from '@/libs/store';
|
||||
import Content from '@/../../common/script/content';
|
||||
import { beastMasterProgress, mountMasterProgress } from '@/../../common/script/count';
|
||||
import autoAllocate from '@/../../common/script/fns/autoAllocate';
|
||||
import allocateBulk from '@/../../common/script/ops/stats/allocateBulk';
|
||||
import statsComputed from '@/../../common/script/libs/statsComputed';
|
||||
import { mapState } from '@/libs/store';
|
||||
import attributesGrid from '@/components/inventory/equipment/attributesGrid';
|
||||
import toggleSwitch from '@/components/ui/toggleSwitch';
|
||||
|
||||
const DROP_ANIMALS = keys(Content.pets);
|
||||
const TOTAL_NUMBER_OF_DROP_ANIMALS = DROP_ANIMALS.length;
|
||||
|
||||
@@ -442,13 +442,13 @@
|
||||
<script>
|
||||
import size from 'lodash/size';
|
||||
import keys from 'lodash/keys';
|
||||
import { mapState } from '@/libs/store';
|
||||
import Content from '@/../../common/script/content';
|
||||
import { beastMasterProgress, mountMasterProgress } from '@/../../common/script/count';
|
||||
import statsComputed from '@/../../common/script/libs/statsComputed';
|
||||
import autoAllocate from '@/../../common/script/fns/autoAllocate';
|
||||
import changeClass from '@/../../common/script/ops/changeClass';
|
||||
import allocate from '@/../../common/script/ops/stats/allocate';
|
||||
import { mapState } from '@/libs/store';
|
||||
|
||||
const DROP_ANIMALS = keys(Content.pets);
|
||||
const TOTAL_NUMBER_OF_DROP_ANIMALS = DROP_ANIMALS.length;
|
||||
|
||||
Reference in New Issue
Block a user