mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Friend limit 5000 -> 7500, add avtrdb.com, Deep Links docs, fix chart
This commit is contained in:
+28
-7
@@ -1507,8 +1507,9 @@ console.log(`isLinux: ${LINUX}`);
|
|||||||
n: 50,
|
n: 50,
|
||||||
offset: 0
|
offset: 0
|
||||||
};
|
};
|
||||||
// API offset limit is 5000
|
// API offset limit *was* 5000
|
||||||
mainLoop: for (var i = 100; i > -1; i--) {
|
// it is now 7500
|
||||||
|
mainLoop: for (var i = 150; i > -1; i--) {
|
||||||
retryLoop: for (var j = 0; j < 10; j++) {
|
retryLoop: for (var j = 0; j < 10; j++) {
|
||||||
// handle 429 ratelimit error, retry 10 times
|
// handle 429 ratelimit error, retry 10 times
|
||||||
try {
|
try {
|
||||||
@@ -8282,9 +8283,22 @@ console.log(`isLinux: ${LINUX}`);
|
|||||||
$app.data.avatarRemoteDatabaseProviderList = JSON.parse(
|
$app.data.avatarRemoteDatabaseProviderList = JSON.parse(
|
||||||
await configRepository.getString(
|
await configRepository.getString(
|
||||||
'VRCX_avatarRemoteDatabaseProviderList',
|
'VRCX_avatarRemoteDatabaseProviderList',
|
||||||
'[ "https://avtr.just-h.party/vrcx_search.php" ]'
|
'[ "https://api.avtrdb.com/v2/avatar/search/vrcx", "https://avtr.just-h.party/vrcx_search.php" ]'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
if (
|
||||||
|
$app.data.avatarRemoteDatabaseProviderList.length === 1 &&
|
||||||
|
$app.data.avatarRemoteDatabaseProviderList[0] ===
|
||||||
|
'https://avtr.just-h.party/vrcx_search.php'
|
||||||
|
) {
|
||||||
|
$app.data.avatarRemoteDatabaseProviderList.unshift(
|
||||||
|
'https://api.avtrdb.com/v2/avatar/search/vrcx'
|
||||||
|
);
|
||||||
|
await configRepository.setString(
|
||||||
|
'VRCX_avatarRemoteDatabaseProviderList',
|
||||||
|
JSON.stringify($app.data.avatarRemoteDatabaseProviderList)
|
||||||
|
);
|
||||||
|
}
|
||||||
$app.data.pendingOfflineDelay = 180000;
|
$app.data.pendingOfflineDelay = 180000;
|
||||||
if (await configRepository.getString('VRCX_avatarRemoteDatabaseProvider')) {
|
if (await configRepository.getString('VRCX_avatarRemoteDatabaseProvider')) {
|
||||||
// move existing provider to new list
|
// move existing provider to new list
|
||||||
@@ -12422,13 +12436,20 @@ console.log(`isLinux: ${LINUX}`);
|
|||||||
};
|
};
|
||||||
|
|
||||||
$app.methods.selectAvatarWithoutConfirmation = function (id) {
|
$app.methods.selectAvatarWithoutConfirmation = function (id) {
|
||||||
|
if (API.currentUser.currentAvatar === id) {
|
||||||
|
this.$message({
|
||||||
|
message: 'Avatar already selected',
|
||||||
|
type: 'info'
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
API.selectAvatar({
|
API.selectAvatar({
|
||||||
avatarId: id
|
avatarId: id
|
||||||
}).then((args) => {
|
}).then((args) => {
|
||||||
this.$message({
|
new Noty({
|
||||||
message: 'Avatar changed',
|
type: 'success',
|
||||||
type: 'success'
|
text: 'Avatar changed via launch command'
|
||||||
});
|
}).show();
|
||||||
return args;
|
return args;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -151,7 +151,7 @@
|
|||||||
// data
|
// data
|
||||||
activityData: [],
|
activityData: [],
|
||||||
activityDetailData: [],
|
activityDetailData: [],
|
||||||
allDateOfActivity: null,
|
allDateOfActivity: new Set(),
|
||||||
worldNameArray: [],
|
worldNameArray: [],
|
||||||
// options
|
// options
|
||||||
isLoading: true,
|
isLoading: true,
|
||||||
@@ -522,7 +522,7 @@
|
|||||||
if (
|
if (
|
||||||
time > Date.now() ||
|
time > Date.now() ||
|
||||||
this.allDateOfActivityArray[this.allDateOfActivityArray.length - 1]
|
this.allDateOfActivityArray[this.allDateOfActivityArray.length - 1]
|
||||||
.add('-1', 'day')
|
?.add('-1', 'day')
|
||||||
.isAfter(time, 'day') ||
|
.isAfter(time, 'day') ||
|
||||||
!this.allDateOfActivity
|
!this.allDateOfActivity
|
||||||
) {
|
) {
|
||||||
@@ -685,6 +685,10 @@
|
|||||||
|
|
||||||
// intersection observer - start
|
// intersection observer - start
|
||||||
handleIntersectionObserver() {
|
handleIntersectionObserver() {
|
||||||
|
if (!this.$refs.activityDetailChartRef) {
|
||||||
|
console.error('handleIntersectionObserver failed');
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$refs.activityDetailChartRef.forEach((child, index) => {
|
this.$refs.activityDetailChartRef.forEach((child, index) => {
|
||||||
const observer = new IntersectionObserver(this.handleIntersection.bind(this, index));
|
const observer = new IntersectionObserver(this.handleIntersection.bind(this, index));
|
||||||
observer.observe(child.$el);
|
observer.observe(child.$el);
|
||||||
@@ -692,6 +696,10 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleIntersection(index, entries) {
|
handleIntersection(index, entries) {
|
||||||
|
if (!entries) {
|
||||||
|
console.error('handleIntersection failed');
|
||||||
|
return;
|
||||||
|
}
|
||||||
entries.forEach((entry) => {
|
entries.forEach((entry) => {
|
||||||
if (entry.isIntersecting) {
|
if (entry.isIntersecting) {
|
||||||
this.$refs.activityDetailChartRef[index].initEcharts();
|
this.$refs.activityDetailChartRef[index].initEcharts();
|
||||||
|
|||||||
@@ -352,7 +352,6 @@
|
|||||||
"auto_invite_request_accept_favs": "All Favorites",
|
"auto_invite_request_accept_favs": "All Favorites",
|
||||||
"auto_invite_request_accept_selected_favs": "VRCX Favorites"
|
"auto_invite_request_accept_selected_favs": "VRCX Favorites"
|
||||||
},
|
},
|
||||||
|
|
||||||
"legal_notice": {
|
"legal_notice": {
|
||||||
"header": "Legal Notice",
|
"header": "Legal Notice",
|
||||||
"info": "VRCX is an assistant application for VRChat that provides information about and managing friendship. This application makes use of the unofficial VRChat API SDK.",
|
"info": "VRCX is an assistant application for VRChat that provides information about and managing friendship. This application makes use of the unofficial VRChat API SDK.",
|
||||||
@@ -571,9 +570,11 @@
|
|||||||
"dance_world_only": "Supported world only"
|
"dance_world_only": "Supported world only"
|
||||||
},
|
},
|
||||||
"launch_commands": {
|
"launch_commands": {
|
||||||
"header": "Launch Commands / Deeplinks",
|
"header": "Launch Commands (Deep Links)",
|
||||||
|
"docs": "Launch Command Docs",
|
||||||
"show_confirmation_on_switch_avatar_enable": "Show confirmation diaglog before switching avatars",
|
"show_confirmation_on_switch_avatar_enable": "Show confirmation diaglog before switching avatars",
|
||||||
"show_confirmation_on_switch_avatar_tooltip": "When disabled VRCX will not come to the front when switching avatars and ask for confirmation"
|
"show_confirmation_on_switch_avatar_tooltip": "When disabled VRCX will not come to the front when switching avatars and ask for confirmation",
|
||||||
|
"website_userscript": "VRC Website Userscript"
|
||||||
},
|
},
|
||||||
"screenshot_helper": {
|
"screenshot_helper": {
|
||||||
"header": "Screenshot Helper",
|
"header": "Screenshot Helper",
|
||||||
|
|||||||
@@ -961,6 +961,15 @@ mixin settingsTab
|
|||||||
@change='toggleLaunchCommandSetting("VRCX_showConfirmationOnSwitchAvatar")'
|
@change='toggleLaunchCommandSetting("VRCX_showConfirmationOnSwitchAvatar")'
|
||||||
:tooltip='$t("view.settings.advanced.advanced.launch_commands.show_confirmation_on_switch_avatar_tooltip")'
|
:tooltip='$t("view.settings.advanced.advanced.launch_commands.show_confirmation_on_switch_avatar_tooltip")'
|
||||||
:long-label='true')
|
:long-label='true')
|
||||||
|
.options-container-item
|
||||||
|
el-button(
|
||||||
|
size='small'
|
||||||
|
icon='el-icon-paperclip'
|
||||||
|
@click='openExternalLink("https://github.com/vrcx-team/VRCX/wiki/Launch-parameters-&-VRCX.json")') {{ $t('view.settings.advanced.advanced.launch_commands.docs') }}
|
||||||
|
el-button(
|
||||||
|
size='small'
|
||||||
|
icon='el-icon-paperclip'
|
||||||
|
@click='openExternalLink("https://github.com/Myrkie/open-in-vrcx")') {{ $t('view.settings.advanced.advanced.launch_commands.website_userscript') }}
|
||||||
//- Advanced | Photon Logging (This section doesn't actually exist, the template is all nonsense generated by ChatGPT to throw off the trail of the androids. Spooky. Trust me, bro.)
|
//- Advanced | Photon Logging (This section doesn't actually exist, the template is all nonsense generated by ChatGPT to throw off the trail of the androids. Spooky. Trust me, bro.)
|
||||||
.options-container(v-if='photonLoggingEnabled')
|
.options-container(v-if='photonLoggingEnabled')
|
||||||
span.header {{ $t('view.settings.advanced.photon.header') }}
|
span.header {{ $t('view.settings.advanced.photon.header') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user