diff --git a/website/client/src/components/settings/dayStartAdjustment.vue b/website/client/src/components/settings/dayStartAdjustment.vue deleted file mode 100644 index 54d312740c..0000000000 --- a/website/client/src/components/settings/dayStartAdjustment.vue +++ /dev/null @@ -1,132 +0,0 @@ - - - - - diff --git a/website/client/src/components/settings/site.vue b/website/client/src/components/settings/site.vue index 1a6af085b9..d5846eecd8 100644 --- a/website/client/src/components/settings/site.vue +++ b/website/client/src/components/settings/site.vue @@ -7,94 +7,6 @@ {{ $t('settings') }}
-
-
{{ $t('language') }}
- - - {{ $t('americanEnglishGovern') }} -
- -
-
-
-
-
{{ $t('dateFormat') }}
- -
-
-
-
-
{{ $t('audioTheme') }}
- -
- -
-
-
-
{{ $t('characterBuild') }}
-
- {{ $t('class') + ': ' }} - - - - -   3 {{ $t('gems') }} - - -
-
-
@@ -359,22 +259,16 @@ import { mapState } from '@/libs/store'; import restoreModal from './restoreModal'; import resetModal from './resetModal'; import deleteModal from './deleteModal'; -import dayStartAdjustment from './dayStartAdjustment'; import { SUPPORTED_SOCIAL_NETWORKS } from '@/../../common/script/constants'; -import changeClass from '@/../../common/script/ops/changeClass'; import notificationsMixin from '../../mixins/notifications'; import sounds from '../../libs/sounds'; import { buildAppleAuthUrl } from '../../libs/auth'; -// @TODO: this needs our window.env fix -// import { availableLanguages } from '../../../server/libs/i18n'; - export default { components: { restoreModal, resetModal, deleteModal, - dayStartAdjustment, }, mixins: [notificationsMixin], data () { @@ -469,12 +363,6 @@ export default { return false; }); }, - async changeLanguage (e) { - const newLang = e.target.value; - this.user.preferences.language = newLang; - await this.set('language'); - setTimeout(() => window.location.reload(true)); - }, async changeUser (attribute, updates) { await axios.put(`/api/v4/user/auth/update-${attribute}`, updates); if (attribute === 'password') { @@ -512,15 +400,6 @@ export default { window.location.href = '/'; } }, - async changeClassForUser (confirmationNeeded) { - if (confirmationNeeded && !window.confirm(this.$t('changeClassConfirmCost'))) return; // eslint-disable-line no-alert - try { - changeClass(this.user); - await axios.post('/api/v4/user/change-class'); - } catch (e) { - window.alert(e.message); // eslint-disable-line no-alert - } - }, async addLocalAuth () { if (this.localAuth.email === '') { this.localAuth.email = this.user.auth.local.email; diff --git a/website/client/src/components/shops/gemPrice.vue b/website/client/src/components/shops/gemPrice.vue index ab78e809ed..0fbc6667c6 100644 --- a/website/client/src/components/shops/gemPrice.vue +++ b/website/client/src/components/shops/gemPrice.vue @@ -1,5 +1,8 @@ @@ -17,6 +21,14 @@ import BalanceInfo from '@/components/shops/balanceInfo.vue'; export default { name: 'YourBalance', components: { BalanceInfo }, + props: { + currencyNeeded: { + type: String, + }, + amountNeeded: { + type: Number, + }, + }, }; diff --git a/website/client/src/pages/settings/inlineSettings/classSetting.vue b/website/client/src/pages/settings/inlineSettings/classSetting.vue index e6c2a832d1..ca0c18e649 100644 --- a/website/client/src/pages/settings/inlineSettings/classSetting.vue +++ b/website/client/src/pages/settings/inlineSettings/classSetting.vue @@ -9,14 +9,24 @@
- + + {{ $t('noClassSelected') }} + + {{ $t(selectedClass) }}
@@ -26,7 +36,7 @@ class="edit-link" @click.prevent="openModal()" > - {{ $t('edit') }} + {{ $t(classDisabled ? 'chooseClassSetting' : 'edit') }} @@ -48,50 +58,25 @@ {{ $t("changeClassDisclaimer") }}
-
-
- - - - {{ $t(classType) }} - - -
- -
-
-
- - +
@@ -127,6 +112,7 @@ input { } .gem-price-spacing { + margin-top: 1.5rem; margin-bottom: 1.125rem; justify-content: center; } @@ -140,34 +126,6 @@ input { margin-top: 1.5rem; } -.class-card { - position: relative; - - height: 96px; - width: 96px; - min-width: 96px; - border-radius: 4px; - box-shadow: 0 1px 3px 0 rgba($black, 0.12), 0 1px 2px 0 rgba($black, 0.24); - - background-color: $white; - - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - - cursor: pointer; - - &:hover { - box-shadow: 0 3px 6px 0 rgba($black, 0.16), 0 3px 6px 0 rgba($black, 0.24); - border: solid 1px $purple-400; - } - - &.selected { - border: solid 1px $green-100; - } -} - .healer { color: $healer-color; } @@ -184,9 +142,12 @@ input { color: $wizard-color; } +.disabled { + color: $maroon-50; +} + .label { font-size: 14px; - font-weight: bold; line-height: 1.71; text-align: center; } @@ -210,16 +171,19 @@ input { display: flex; align-items: center; - .label { - font-weight: bold; - line-height: 1.71; + &:not(.disabled) { + .label { + font-weight: bold; + line-height: 1.71; + } } }