diff --git a/resources/assets/src/components/skinlib/Upload.vue b/resources/assets/src/components/skinlib/Upload.vue index 55c7bde5..b0d3d18c 100644 --- a/resources/assets/src/components/skinlib/Upload.vue +++ b/resources/assets/src/components/skinlib/Upload.vue @@ -128,14 +128,14 @@ export default { isPrivate: false, files: [], texture: '', - uploading: false + uploading: false, + textureNameRule: __bs_data__.rule, + privacyNotice: __bs_data__.privacyNotice, + scorePublic: __bs_data__.scorePublic, + scorePrivate: __bs_data__.scorePrivate, }; }, computed: { - textureNameRule: () => __bs_data__.rule, - privacyNotice: () => __bs_data__.privacyNotice, - scorePublic: () => __bs_data__.scorePublic, - scorePrivate: () => __bs_data__.scorePrivate, scoreCost() { const size = Math.round(this.files[0].size / 1024) || 1; return size * (this.isPrivate ? this.scorePrivate : this.scorePublic); diff --git a/resources/assets/src/components/user/Closet.vue b/resources/assets/src/components/user/Closet.vue index 5026c529..a07ae325 100644 --- a/resources/assets/src/components/user/Closet.vue +++ b/resources/assets/src/components/user/Closet.vue @@ -220,11 +220,9 @@ export default { capeUrl: '', players: [], selectedPlayer: 0, + linkToSkin: `${blessing.base_url}/skinlib?filter=skin`, + linkToCape: `${blessing.base_url}/skinlib?filter=cape`, }), - computed: { - linkToSkin: () => `${blessing.base_url}/skinlib?filter=skin`, - linkToCape: () => `${blessing.base_url}/skinlib?filter=cape`, - }, created() { this.search = debounce(this.loadCloset, 350); }, diff --git a/resources/assets/src/components/user/Players.vue b/resources/assets/src/components/user/Players.vue index 7deb432e..59d18074 100644 --- a/resources/assets/src/components/user/Players.vue +++ b/resources/assets/src/components/user/Players.vue @@ -281,13 +281,11 @@ export default { steve: false, alex: false, cape: false - } + }, + playerNameRule: __bs_data__.rule, + playerNameLength: __bs_data__.length }; }, - computed: { - playerNameRule: () => __bs_data__.rule, - playerNameLength: () => __bs_data__.length - }, beforeMount() { this.fetchPlayers(); }, diff --git a/resources/assets/src/components/user/Profile.vue b/resources/assets/src/components/user/Profile.vue index f451ee41..54d76669 100644 --- a/resources/assets/src/components/user/Profile.vue +++ b/resources/assets/src/components/user/Profile.vue @@ -210,11 +210,9 @@ export default { email: '', currentPassword: '', deleteConfirm: '', + siteName: blessing.site_name, + isAdmin: __bs_data__.admin }), - computed: { - siteName: () => blessing.site_name, - isAdmin: () => __bs_data__.admin - }, methods: { nl2br: str => str.replace(/\n/g, '
'), async changePassword() {