From d73bcd04c1bc850b26501302ec58fb6d7b22e704 Mon Sep 17 00:00:00 2001 From: pa Date: Mon, 10 Feb 2025 03:23:49 +0900 Subject: [PATCH] UI/UX and Performance Improvement (#1122) * wip * wip * ui improve and fix * fix --- src/app.js | 5 ++ src/classes/uiComponents.js | 4 +- src/components/sidebar/GroupsSidebar.vue | 17 ++++- src/index.pug | 2 +- src/mixins/dialogs/currentUser.pug | 97 +++++++++++++----------- src/mixins/dialogs/favoritesDialog.pug | 3 +- src/mixins/dialogs/images.pug | 4 +- src/mixins/dialogs/launch.pug | 23 +++--- src/mixins/dialogs/previousInstances.pug | 4 +- src/mixins/dialogs/userDialog.pug | 19 +++-- src/mixins/friendsListSidebar.pug | 4 +- src/mixins/tabs/feed.pug | 63 +++++++-------- src/mixins/tabs/friendsList.pug | 11 ++- src/mixins/tabs/playerList.pug | 3 +- 14 files changed, 148 insertions(+), 111 deletions(-) diff --git a/src/app.js b/src/app.js index 497bcc4e..23183ee4 100644 --- a/src/app.js +++ b/src/app.js @@ -9811,6 +9811,7 @@ console.log(`isLinux: ${LINUX}`); privacy: '', shortCode: '' }, + isRepresentedGroupLoading: false, joinCount: 0, timeSpent: 0, lastSeen: '', @@ -10074,6 +10075,7 @@ console.log(`isLinux: ${LINUX}`); shortName: '', ref: {} }; + D.isRepresentedGroupLoading = true; D.representedGroup = { bannerUrl: '', description: '', @@ -10298,6 +10300,9 @@ console.log(`isLinux: ${LINUX}`); } API.getRepresentedGroup({ userId }).then((args1) => { D.representedGroup = args1.json; + if (!args1.json || !args1.json.isRepresenting) { + D.isRepresentedGroupLoading = false; + } }); D.loading = false; }); diff --git a/src/classes/uiComponents.js b/src/classes/uiComponents.js index bcfb865e..24903cbf 100644 --- a/src/classes/uiComponents.js +++ b/src/classes/uiComponents.js @@ -566,7 +566,7 @@ export default class extends baseClass { props: { userid: String, location: String, - key: Number, + forceUpdateKey: Number, hint: { type: String, default: '' @@ -603,7 +603,7 @@ export default class extends baseClass { location() { this.parse(); }, - key() { + forceUpdateKey() { this.parse(); }, userid() { diff --git a/src/components/sidebar/GroupsSidebar.vue b/src/components/sidebar/GroupsSidebar.vue index 66cd075a..b9be39b5 100644 --- a/src/components/sidebar/GroupsSidebar.vue +++ b/src/components/sidebar/GroupsSidebar.vue @@ -3,13 +3,16 @@