Profile + Settings page

This commit is contained in:
Natsumi
2021-02-02 15:36:49 +13:00
parent ef88ad79d4
commit 352ce3cf1d
2 changed files with 102 additions and 98 deletions
+2 -2
View File
@@ -3434,7 +3434,7 @@ speechSynthesis.getVoices();
onClick: () => AppApi.OpenLink('https://github.com/pypy-vrc/VRCX/releases') onClick: () => AppApi.OpenLink('https://github.com/pypy-vrc/VRCX/releases')
} }
}).show(); }).show();
this.notifyMenu('more'); this.notifyMenu('settings');
} }
} else { } else {
this.latestAppVersion = 'Error occured'; this.latestAppVersion = 'Error occured';
@@ -5723,7 +5723,7 @@ speechSynthesis.getVoices();
}); });
}; };
// App: More // App: Profile + Settings
$app.data.configTreeData = []; $app.data.configTreeData = [];
$app.data.currentUserTreeData = []; $app.data.currentUserTreeData = [];
+43 -39
View File
@@ -62,7 +62,8 @@ html
+menuitem('friendLog', 'Friend Log', 'el-icon-notebook-2') +menuitem('friendLog', 'Friend Log', 'el-icon-notebook-2')
+menuitem('moderation', 'Moderation', 'el-icon-finished') +menuitem('moderation', 'Moderation', 'el-icon-finished')
+menuitem('notification', 'Notification', 'el-icon-bell') +menuitem('notification', 'Notification', 'el-icon-bell')
+menuitem('more', 'More', 'el-icon-s-tools') +menuitem('profile', 'Profile', 'el-icon-user')
+menuitem('settings', 'Settings', 'el-icon-s-tools')
//- feed //- feed
.x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'feed'") .x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'feed'")
@@ -389,44 +390,10 @@ html
el-button(v-if="scope.row.type === 'friendRequest'" type="text" icon="el-icon-check" size="mini" @click="acceptNotification(scope.row)") el-button(v-if="scope.row.type === 'friendRequest'" type="text" icon="el-icon-check" size="mini" @click="acceptNotification(scope.row)")
el-button(type="text" icon="el-icon-close" size="mini" @click="hideNotification(scope.row)") el-button(type="text" icon="el-icon-close" size="mini" @click="hideNotification(scope.row)")
//- more //- profile
.x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'more'") .x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'profile'")
div.options-container(style="margin-top:0") div.options-container(style="margin-top:0")
span.header VRCX span.header Profile
.x-friend-list(style="margin-top:10px")
.x-friend-item(style="cursor:default")
.detail
span.name Version
span.extra(v-text="appVersion")
.x-friend-item(@click="checkAppVersion()")
.detail
span.name Latest Version
span.extra(v-if="latestAppVersion" v-text="latestAppVersion")
span.extra(v-else) Click to refresh
.x-friend-item(@click="openExternalLink('https://github.com/pypy-vrc/VRCX')")
.detail
span.name Repository URL
span.extra https://github.com/pypy-vrc/VRCX
div.options-container
span.header Game Info
.x-friend-list(style="margin-top:10px")
.x-friend-item
.detail(@click="API.getVisits()")
span.name Online Users
span.extra(v-if="visits") {{visits}} users online.
span.extra(v-else) Click to refresh
div(style="margin-top:5px")
el-button-group
el-button(size="small" icon="el-icon-s-operation" @click="showLaunchOptions()") Launch Options
div.options-container
span.header Direct Access
div(style="margin-top:10px")
el-button-group
el-button(size="small" @click="promptUserDialog()") User
el-button(size="small" @click="promptWorldDialog()") World
el-button(size="small" @click="promptAvatarDialog()") Avatar
div.options-container
span.header My Profile
.x-friend-list(style="margin-top:10px") .x-friend-list(style="margin-top:10px")
.x-friend-item(@click="showUserDialog(API.currentUser.id)") .x-friend-item(@click="showUserDialog(API.currentUser.id)")
.avatar .avatar
@@ -446,7 +413,22 @@ html
div(style="margin-top:10px") div(style="margin-top:10px")
el-button(size="small" icon="el-icon-switch-button" @click="logout()") Logout el-button(size="small" icon="el-icon-switch-button" @click="logout()") Logout
el-button(size="small" icon="el-icon-printer" @click="showExportFriendsListDialog()") Export Friends List el-button(size="small" icon="el-icon-printer" @click="showExportFriendsListDialog()") Export Friends List
div(v-if="API.currentUser.$isVRCPlus" style="margin-top:30px") div.options-container
span.header Game Info
.x-friend-list(style="margin-top:10px")
.x-friend-item
.detail(@click="API.getVisits()")
span.name Online Users
span.extra(v-if="visits") {{visits}} users online.
span.extra(v-else) Click to refresh
div.options-container
span.header Direct Access
div(style="margin-top:10px")
el-button-group
el-button(size="small" @click="promptUserDialog()") User
el-button(size="small" @click="promptWorldDialog()") World
el-button(size="small" @click="promptAvatarDialog()") Avatar
div.options-container(v-if="API.currentUser.$isVRCPlus" style="margin-top:30px")
span.header VRCPlus Icons span.header VRCPlus Icons
el-tooltip(placement="top") el-tooltip(placement="top")
template(#content) template(#content)
@@ -506,6 +488,25 @@ html
span span
span(v-text="scope.data.key" style="font-weight:bold;margin-right:5px") span(v-text="scope.data.key" style="font-weight:bold;margin-right:5px")
span(v-if="!scope.data.children" v-text="scope.data.value") span(v-if="!scope.data.children" v-text="scope.data.value")
//- settings
.x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'settings'")
div.options-container(style="margin-top:0")
span.header Settings
.x-friend-list(style="margin-top:10px")
.x-friend-item(style="cursor:default")
.detail
span.name Version
span.extra(v-text="appVersion")
.x-friend-item(@click="checkAppVersion()")
.detail
span.name Latest Version
span.extra(v-if="latestAppVersion" v-text="latestAppVersion")
span.extra(v-else) Click to refresh
.x-friend-item(@click="openExternalLink('https://github.com/pypy-vrc/VRCX')")
.detail
span.name Repository URL
span.extra https://github.com/pypy-vrc/VRCX
div.options-container div.options-container
span.header Appearance span.header Appearance
div.options-container-item div.options-container-item
@@ -637,6 +638,9 @@ html
div.options-container-item div.options-container-item
span.name Auto login span.name Auto login
el-switch(v-model="isAutoLogin") el-switch(v-model="isAutoLogin")
div.options-container-item
el-button-group
el-button(size="small" icon="el-icon-s-operation" @click="showLaunchOptions()") Launch Options
div.options-container(style="margin-top:45px;border-top:1px solid #eee;padding-top:30px") div.options-container(style="margin-top:45px;border-top:1px solid #eee;padding-top:30px")
span.header Legal Notice span.header Legal Notice
div.options-container-item div.options-container-item