mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 06:13:52 +02:00
chore: bump vue to 2.7.16 (#1163)
This commit is contained in:
@@ -67,6 +67,8 @@ import _groups from './classes/groups.js';
|
||||
import _vrcRegistry from './classes/vrcRegistry.js';
|
||||
import _restoreFriendOrder from './classes/restoreFriendOrder.js';
|
||||
|
||||
import pugTemplate from './app.pug';
|
||||
|
||||
// API classes
|
||||
import _config from './classes/API/config.js';
|
||||
|
||||
@@ -152,6 +154,7 @@ console.log(`isLinux: ${LINUX}`);
|
||||
await configRepository.init();
|
||||
|
||||
const app = {
|
||||
template: pugTemplate,
|
||||
data: {
|
||||
API,
|
||||
isGameRunning: false,
|
||||
@@ -198,7 +201,10 @@ console.log(`isLinux: ${LINUX}`);
|
||||
userStatusClass: this.userStatusClass
|
||||
};
|
||||
},
|
||||
el: '#x-app',
|
||||
el: '#root',
|
||||
beforeMount() {
|
||||
this.changeThemeMode();
|
||||
},
|
||||
async mounted() {
|
||||
await this.initLanguage();
|
||||
try {
|
||||
@@ -206,7 +212,6 @@ console.log(`isLinux: ${LINUX}`);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
await this.changeThemeMode();
|
||||
await AppApi.SetUserAgent();
|
||||
this.appVersion = await AppApi.GetVersion();
|
||||
await this.compareAppVersion();
|
||||
|
||||
155
src/app.pug
Normal file
155
src/app.pug
Normal file
@@ -0,0 +1,155 @@
|
||||
doctype html
|
||||
#x-app.x-app(@dragenter.prevent @dragover.prevent @drop.prevent)
|
||||
//- login
|
||||
include ./mixins/loginPage.pug
|
||||
+loginPage
|
||||
|
||||
//- menu
|
||||
.x-menu-container
|
||||
//- download progress, update pending
|
||||
.pending-update(v-if='updateInProgress' @click='showVRCXUpdateDialog')
|
||||
el-progress(
|
||||
type='circle'
|
||||
width='50'
|
||||
stroke-width='3'
|
||||
:percentage='updateProgress'
|
||||
:format='updateProgressText')
|
||||
.pending-update(v-else-if='pendingVRCXUpdate || pendingVRCXInstall')
|
||||
el-button(
|
||||
type='default'
|
||||
@click='showVRCXUpdateDialog'
|
||||
size='mini'
|
||||
icon='el-icon-download'
|
||||
circle
|
||||
style='font-size: 14px; height: 50px; width: 50px')
|
||||
|
||||
nav-menu(ref='menu' @select='selectMenu' :menu-active-index='menuActiveIndex')
|
||||
|
||||
//- ### Tabs ###
|
||||
template(v-if='API.isLoggedIn')
|
||||
//- feed
|
||||
include ./mixins/tabs/feed.pug
|
||||
+feedTab
|
||||
|
||||
//- gameLog
|
||||
include ./mixins/tabs/gameLog.pug
|
||||
+gameLogTab
|
||||
|
||||
//- playerList
|
||||
include ./mixins/tabs/playerList.pug
|
||||
+playerListTab
|
||||
|
||||
//- search
|
||||
include ./mixins/tabs/search.pug
|
||||
+searchTab
|
||||
|
||||
//- favorite
|
||||
include ./mixins/tabs/favorites.pug
|
||||
+favoritesTab
|
||||
|
||||
//- friendLog
|
||||
include ./mixins/tabs/friendLog.pug
|
||||
+friendLogTab
|
||||
|
||||
//- moderation
|
||||
moderation-tab(
|
||||
v-if='menuActiveIndex === "moderation"'
|
||||
:table-data='playerModerationTable'
|
||||
:shift-held='shiftHeld'
|
||||
:hide-tooltips='hideTooltips')
|
||||
|
||||
//- notification
|
||||
include ./mixins/tabs/notifications.pug
|
||||
+notificationsTab
|
||||
|
||||
//- profile
|
||||
include ./mixins/tabs/profile.pug
|
||||
+profileTab
|
||||
|
||||
//- friends list
|
||||
include ./mixins/tabs/friendsList.pug
|
||||
+friendsListTab
|
||||
|
||||
//- charts
|
||||
keep-alive
|
||||
charts-tab(
|
||||
v-if='menuActiveIndex === "charts"'
|
||||
:get-world-name='getWorldName'
|
||||
:is-dark-mode='isDarkMode'
|
||||
:dt-hour12='dtHour12'
|
||||
:friends-map='friends'
|
||||
:local-favorite-friends='localFavoriteFriends'
|
||||
@open-previous-instance-info-dialog='showPreviousInstanceInfoDialog')
|
||||
|
||||
//- settings
|
||||
include ./mixins/tabs/settings.pug
|
||||
+settingsTab
|
||||
|
||||
side-bar(
|
||||
v-show='isSideBarTabShow'
|
||||
v-bind='sideBarTabProps'
|
||||
@show-group-dialog='showGroupDialog'
|
||||
@quick-search-change='quickSearchChange'
|
||||
@direct-access-paste='directAccessPaste'
|
||||
@refresh-friends-list='refreshFriendsList'
|
||||
@confirm-delete-friend='confirmDeleteFriend')
|
||||
|
||||
//- ## Dialogs ## -\\
|
||||
include ./mixins/dialogs/userDialog.pug
|
||||
+userDialog
|
||||
|
||||
include ./mixins/dialogs/worldDialog.pug
|
||||
+worldDialog
|
||||
|
||||
include ./mixins/dialogs/avatarDialog.pug
|
||||
+avatarDialog
|
||||
|
||||
include ./mixins/dialogs/groupDialog.pug
|
||||
+groupDialog
|
||||
|
||||
include ./mixins/dialogs/favoritesDialog.pug
|
||||
+favoritesDialog
|
||||
|
||||
include ./mixins/dialogs/images.pug
|
||||
+images
|
||||
|
||||
include ./mixins/dialogs/newInstance.pug
|
||||
+newInstance
|
||||
|
||||
include ./mixins/dialogs/feedFilters.pug
|
||||
+feedFilters
|
||||
|
||||
include ./mixins/dialogs/openSourceSoftwareNotice.pug
|
||||
+openSourceSoftwareNotice
|
||||
|
||||
include ./mixins/dialogs/groups.pug
|
||||
+groups
|
||||
|
||||
include ./mixins/dialogs/currentUser.pug
|
||||
+currentUser
|
||||
|
||||
include ./mixins/dialogs/invites.pug
|
||||
+invites
|
||||
|
||||
include ./mixins/dialogs/launch.pug
|
||||
+launch
|
||||
|
||||
include ./mixins/dialogs/screenshotMetadata.pug
|
||||
+screenshotMetadata
|
||||
|
||||
include ./mixins/dialogs/vrcx.pug
|
||||
+vrcx
|
||||
|
||||
include ./mixins/dialogs/settings.pug
|
||||
+settings
|
||||
|
||||
include ./mixins/dialogs/previousInstances.pug
|
||||
+previousInstances
|
||||
|
||||
include ./mixins/dialogs/tags.pug
|
||||
+tags
|
||||
|
||||
include ./mixins/dialogs/boops.pug
|
||||
+boops
|
||||
|
||||
//- el-dialog.x-dialog(:before-close="beforeDialogClose" @mousedown.native="dialogMouseDown" @mouseup.native="dialogMouseUp" ref="templateDialog" :visible.sync="templateDialog.visible" :title="$t('dialog.template_dialog.header')" width="450px")
|
||||
171
src/index.pug
171
src/index.pug
@@ -1,171 +0,0 @@
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
meta(http-equiv='Content-Type' content='text/html;charset=utf-8')
|
||||
meta(http-equiv='Cache-Control' content='no-cache')
|
||||
meta(http-equiv='referrer' content='no-referrer')
|
||||
meta(http-equiv='viewport' content='width=device-width,initial-scale=1,user-scalable=no')
|
||||
title VRCX
|
||||
link(rel='preconnect' href='https://api.vrchat.cloud')
|
||||
link(rel='preconnect' href='https://d348imysud55la.cloudfront.net')
|
||||
link(rel='stylesheet' href='app.css')
|
||||
link(rel='stylesheet' href='flags.css')
|
||||
link(rel='stylesheet' href='animated-emoji.css')
|
||||
body
|
||||
#x-app.x-app(style='display: none' @dragenter.prevent @dragover.prevent @drop.prevent)
|
||||
//- login
|
||||
include ./mixins/loginPage.pug
|
||||
+loginPage
|
||||
|
||||
//- menu
|
||||
.x-menu-container
|
||||
//- download progress, update pending
|
||||
.pending-update(v-if='updateInProgress' @click='showVRCXUpdateDialog')
|
||||
el-progress(
|
||||
type='circle'
|
||||
width='50'
|
||||
stroke-width='3'
|
||||
:percentage='updateProgress'
|
||||
:format='updateProgressText')
|
||||
.pending-update(v-else-if='pendingVRCXUpdate || pendingVRCXInstall')
|
||||
el-button(
|
||||
type='default'
|
||||
@click='showVRCXUpdateDialog'
|
||||
size='mini'
|
||||
icon='el-icon-download'
|
||||
circle
|
||||
style='font-size: 14px; height: 50px; width: 50px')
|
||||
|
||||
nav-menu(ref='menu' @select='selectMenu' :menu-active-index='menuActiveIndex')
|
||||
|
||||
//- ### Tabs ###
|
||||
template(v-if='API.isLoggedIn')
|
||||
//- feed
|
||||
include ./mixins/tabs/feed.pug
|
||||
+feedTab
|
||||
|
||||
//- gameLog
|
||||
include ./mixins/tabs/gameLog.pug
|
||||
+gameLogTab
|
||||
|
||||
//- playerList
|
||||
include ./mixins/tabs/playerList.pug
|
||||
+playerListTab
|
||||
|
||||
//- search
|
||||
include ./mixins/tabs/search.pug
|
||||
+searchTab
|
||||
|
||||
//- favorite
|
||||
include ./mixins/tabs/favorites.pug
|
||||
+favoritesTab
|
||||
|
||||
//- friendLog
|
||||
include ./mixins/tabs/friendLog.pug
|
||||
+friendLogTab
|
||||
|
||||
//- moderation
|
||||
moderation-tab(
|
||||
v-if='menuActiveIndex === "moderation"'
|
||||
:table-data='playerModerationTable'
|
||||
:shift-held='shiftHeld'
|
||||
:hide-tooltips='hideTooltips')
|
||||
|
||||
//- notification
|
||||
include ./mixins/tabs/notifications.pug
|
||||
+notificationsTab
|
||||
|
||||
//- profile
|
||||
include ./mixins/tabs/profile.pug
|
||||
+profileTab
|
||||
|
||||
//- friends list
|
||||
include ./mixins/tabs/friendsList.pug
|
||||
+friendsListTab
|
||||
|
||||
//- charts
|
||||
keep-alive
|
||||
charts-tab(
|
||||
v-if='menuActiveIndex === "charts"'
|
||||
:get-world-name='getWorldName'
|
||||
:is-dark-mode='isDarkMode'
|
||||
:dt-hour12='dtHour12'
|
||||
:friends-map='friends'
|
||||
:local-favorite-friends='localFavoriteFriends'
|
||||
@open-previous-instance-info-dialog='showPreviousInstanceInfoDialog')
|
||||
|
||||
//- settings
|
||||
include ./mixins/tabs/settings.pug
|
||||
+settingsTab
|
||||
|
||||
side-bar(
|
||||
v-show='isSideBarTabShow'
|
||||
v-bind='sideBarTabProps'
|
||||
@show-group-dialog='showGroupDialog'
|
||||
@quick-search-change='quickSearchChange'
|
||||
@direct-access-paste='directAccessPaste'
|
||||
@refresh-friends-list='refreshFriendsList'
|
||||
@confirm-delete-friend='confirmDeleteFriend')
|
||||
|
||||
//- ## Dialogs ## -\\
|
||||
include ./mixins/dialogs/userDialog.pug
|
||||
+userDialog
|
||||
|
||||
include ./mixins/dialogs/worldDialog.pug
|
||||
+worldDialog
|
||||
|
||||
include ./mixins/dialogs/avatarDialog.pug
|
||||
+avatarDialog
|
||||
|
||||
include ./mixins/dialogs/groupDialog.pug
|
||||
+groupDialog
|
||||
|
||||
include ./mixins/dialogs/favoritesDialog.pug
|
||||
+favoritesDialog
|
||||
|
||||
include ./mixins/dialogs/images.pug
|
||||
+images
|
||||
|
||||
include ./mixins/dialogs/newInstance.pug
|
||||
+newInstance
|
||||
|
||||
include ./mixins/dialogs/feedFilters.pug
|
||||
+feedFilters
|
||||
|
||||
include ./mixins/dialogs/openSourceSoftwareNotice.pug
|
||||
+openSourceSoftwareNotice
|
||||
|
||||
include ./mixins/dialogs/groups.pug
|
||||
+groups
|
||||
|
||||
include ./mixins/dialogs/currentUser.pug
|
||||
+currentUser
|
||||
|
||||
include ./mixins/dialogs/invites.pug
|
||||
+invites
|
||||
|
||||
include ./mixins/dialogs/launch.pug
|
||||
+launch
|
||||
|
||||
include ./mixins/dialogs/screenshotMetadata.pug
|
||||
+screenshotMetadata
|
||||
|
||||
include ./mixins/dialogs/vrcx.pug
|
||||
+vrcx
|
||||
|
||||
include ./mixins/dialogs/settings.pug
|
||||
+settings
|
||||
|
||||
include ./mixins/dialogs/previousInstances.pug
|
||||
+previousInstances
|
||||
|
||||
include ./mixins/dialogs/tags.pug
|
||||
+tags
|
||||
|
||||
include ./mixins/dialogs/boops.pug
|
||||
+boops
|
||||
|
||||
//- el-dialog.x-dialog(:before-close="beforeDialogClose" @mousedown.native="dialogMouseDown" @mouseup.native="dialogMouseUp" ref="templateDialog" :visible.sync="templateDialog.visible" :title="$t('dialog.template_dialog.header')" width="450px")
|
||||
|
||||
script(src='vendor.js')
|
||||
script(src='app.js')
|
||||
23
src/static/index.html
Normal file
23
src/static/index.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache" />
|
||||
<meta http-equiv="referrer" content="no-referrer" />
|
||||
<meta
|
||||
http-equiv="viewport"
|
||||
content="width=device-width,initial-scale=1,user-scalable=no"
|
||||
/>
|
||||
<title>VRCX</title>
|
||||
<link rel="preconnect" href="https://api.vrchat.cloud" />
|
||||
<link rel="preconnect" href="https://d348imysud55la.cloudfront.net" />
|
||||
<link rel="stylesheet" href="app.css" />
|
||||
<link rel="stylesheet" href="flags.css" />
|
||||
<link rel="stylesheet" href="animated-emoji.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="vendor.js"></script>
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
20
src/static/vr.html
Normal file
20
src/static/vr.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache" />
|
||||
<meta http-equiv="referrer" content="no-referrer" />
|
||||
<meta
|
||||
http-equiv="viewport"
|
||||
content="width=device-width,initial-scale=1,user-scalable=no"
|
||||
/>
|
||||
<title>VRCXVR</title>
|
||||
<link rel="stylesheet" href="vr.css" />
|
||||
<link rel="stylesheet" href="flags.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="vendor.js"></script>
|
||||
<script src="vr.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -19,6 +19,8 @@ import * as localizedStrings from './localization/localizedStrings.js';
|
||||
|
||||
import $utils from './classes/utils.js';
|
||||
|
||||
import pugTemplate from './vr.pug';
|
||||
|
||||
Vue.component('marquee-text', MarqueeText);
|
||||
|
||||
(async function () {
|
||||
@@ -124,6 +126,7 @@ Vue.component('marquee-text', MarqueeText);
|
||||
});
|
||||
|
||||
const app = {
|
||||
template: pugTemplate,
|
||||
i18n,
|
||||
data: {
|
||||
// 1 = 대시보드랑 손목에 보이는거
|
||||
@@ -169,7 +172,7 @@ Vue.component('marquee-text', MarqueeText);
|
||||
...$utils
|
||||
},
|
||||
watch: {},
|
||||
el: '#x-app',
|
||||
el: '#root',
|
||||
async mounted() {
|
||||
this.isRunningUnderWine = await AppApiVr.IsRunningUnderWine();
|
||||
await this.applyWineEmojis();
|
||||
|
||||
1582
src/vr.pug
1582
src/vr.pug
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user