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

View File

@@ -809,9 +809,9 @@
DropdownMenuTrigger
} from '../../ui/dropdown-menu';
import { favoriteRequest, miscRequest, userRequest, worldRequest } from '../../../api';
import { formatJsonVars, getNextDialogIndex } from '../../../shared/utils/base/ui';
import { Badge } from '../../ui/badge';
import { database } from '../../../service/database.js';
import { getNextDialogIndex } from '../../../shared/utils/base/ui';
const NewInstanceDialog = defineAsyncComponent(() => import('../NewInstanceDialog.vue'));
const PreviousInstancesWorldDialog = defineAsyncComponent(
@@ -835,7 +835,7 @@
const { showFullscreenImageDialog } = useGalleryStore();
const { t } = useI18n();
const treeData = ref([]);
const treeData = ref({});
const worldAllowedDomainsDialog = ref({
visible: false,
worldId: '',
@@ -963,7 +963,7 @@
}
function handleDialogOpen() {
treeData.value = [];
treeData.value = {};
}
function showChangeWorldImageDialog() {
@@ -1305,10 +1305,7 @@
nextTick(() => (D.openFlg = false));
}
function refreshWorldDialogTreeData() {
treeData.value = {
...worldDialog.value.ref,
_hexDisplayName: textToHex(worldDialog.value.ref?.displayName)
};
treeData.value = formatJsonVars(worldDialog.value.ref);
}
function copyWorldId() {
navigator.clipboard