JSON tab remove VRCX vars

This commit is contained in:
Natsumi
2026-01-12 06:28:42 +13:00
parent ee6529588d
commit d2b3c3be01
7 changed files with 62 additions and 34 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ export const useGroupStore = defineStore('Group', () => {
visible: false,
loading: false,
isGetGroupDialogGroupLoading: false,
treeData: [],
treeData: {},
id: '',
inGroup: false,
ownerDisplayName: '',
@@ -131,7 +131,7 @@ export const useGroupStore = defineStore('Group', () => {
D.id = groupId;
D.inGroup = false;
D.ownerDisplayName = '';
D.treeData = [];
D.treeData = {};
D.announcement = {};
D.posts = [];
D.postsFiltered = [];
+8 -13
View File
@@ -18,8 +18,7 @@ import {
isRealInstance,
parseLocation,
removeEmojis,
replaceBioSymbols,
textToHex
replaceBioSymbols
} from '../shared/utils';
import {
avatarRequest,
@@ -30,6 +29,7 @@ import {
import { processBulk, request } from '../service/request';
import { AppDebug } from '../service/appConfig';
import { database } from '../service/database';
import { formatJsonVars } from '../shared/utils/base/ui';
import { useAppearanceSettingsStore } from './settings/appearance';
import { useAuthStore } from './auth';
import { useAvatarStore } from './avatar';
@@ -229,7 +229,7 @@ export const useUserStore = defineStore('User', () => {
},
avatarSorting: 'update',
avatarReleaseStatus: 'all',
treeData: [],
treeData: {},
memo: '',
$avatarInfo: {
ownerId: '',
@@ -768,7 +768,7 @@ export const useUserStore = defineStore('User', () => {
}
const D = userDialog.value;
D.id = userId;
D.treeData = [];
D.treeData = {};
D.memo = '';
D.note = '';
getUserMemo(userId).then((memo) => {
@@ -1224,18 +1224,13 @@ export const useUserStore = defineStore('User', () => {
function refreshUserDialogTreeData() {
const D = userDialog.value;
if (D.id === currentUser.value.id) {
const treeData = {
D.treeData = formatJsonVars({
...currentUser.value,
...D.ref,
_hexDisplayName: textToHex(D.ref?.displayName)
};
D.treeData = treeData;
...D.ref
});
return;
}
D.treeData = {
...D.ref,
_hexDisplayName: textToHex(D.ref?.displayName)
};
D.treeData = formatJsonVars(D.ref);
}
async function lookupUser(ref) {
+2 -2
View File
@@ -36,7 +36,7 @@ export const useWorldStore = defineStore('World', () => {
avatarScalingDisabled: false,
focusViewDisabled: false,
rooms: [],
treeData: [],
treeData: {},
bundleSizes: [],
lastUpdated: '',
inCache: false,
@@ -78,7 +78,7 @@ export const useWorldStore = defineStore('World', () => {
L.shortName = shortName;
D.id = L.worldId;
D.$location = L;
D.treeData = [];
D.treeData = {};
D.bundleSizes = [];
D.lastUpdated = '';
D.visible = true;