mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Fix file analysis object type
This commit is contained in:
@@ -498,7 +498,7 @@
|
|||||||
<vue-json-pretty :data="treeData" :deep="2" :theme="isDarkMode ? 'dark' : 'light'" show-icon />
|
<vue-json-pretty :data="treeData" :deep="2" :theme="isDarkMode ? 'dark' : 'light'" show-icon />
|
||||||
<br />
|
<br />
|
||||||
<vue-json-pretty
|
<vue-json-pretty
|
||||||
v-if="avatarDialog.fileAnalysis.length > 0"
|
v-if="Object.keys(avatarDialog.fileAnalysis).length > 0"
|
||||||
:data="avatarDialog.fileAnalysis"
|
:data="avatarDialog.fileAnalysis"
|
||||||
:deep="2"
|
:deep="2"
|
||||||
:theme="isDarkMode ? 'dark' : 'light'"
|
:theme="isDarkMode ? 'dark' : 'light'"
|
||||||
|
|||||||
@@ -667,7 +667,7 @@
|
|||||||
<vue-json-pretty :data="treeData" :deep="2" :theme="isDarkMode ? 'dark' : 'light'" show-icon />
|
<vue-json-pretty :data="treeData" :deep="2" :theme="isDarkMode ? 'dark' : 'light'" show-icon />
|
||||||
<br />
|
<br />
|
||||||
<vue-json-pretty
|
<vue-json-pretty
|
||||||
v-if="worldDialog.fileAnalysis.length > 0"
|
v-if="Object.keys(worldDialog.fileAnalysis).length > 0"
|
||||||
:data="worldDialog.fileAnalysis"
|
:data="worldDialog.fileAnalysis"
|
||||||
:deep="2"
|
:deep="2"
|
||||||
:theme="isDarkMode ? 'dark' : 'light'"
|
:theme="isDarkMode ? 'dark' : 'light'"
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
"update_available": "Update available",
|
"update_available": "Update available",
|
||||||
"update": "Update",
|
"update": "Update",
|
||||||
"custom_nav": {
|
"custom_nav": {
|
||||||
"header": "Custom Navigation",
|
"header": "Customize Navigation",
|
||||||
"dialog_title": "Customize Navigation Menu",
|
"dialog_title": "Customize Navigation Menu",
|
||||||
"add_folder": "Add Folder",
|
"add_folder": "Add Folder",
|
||||||
"folder_name_placeholder": "Folder name",
|
"folder_name_placeholder": "Folder name",
|
||||||
|
|||||||
@@ -428,8 +428,8 @@ async function getBundleDateSize(ref) {
|
|||||||
const instanceStore = useInstanceStore();
|
const instanceStore = useInstanceStore();
|
||||||
const { currentInstanceWorld, currentInstanceLocation } =
|
const { currentInstanceWorld, currentInstanceLocation } =
|
||||||
storeToRefs(instanceStore);
|
storeToRefs(instanceStore);
|
||||||
const bundleSizes = [];
|
const bundleSizes = {};
|
||||||
const bundleJson = [];
|
const bundleJson = {};
|
||||||
for (let i = ref.unityPackages.length - 1; i > -1; i--) {
|
for (let i = ref.unityPackages.length - 1; i > -1; i--) {
|
||||||
const unityPackage = ref.unityPackages[i];
|
const unityPackage = ref.unityPackages[i];
|
||||||
if (!unityPackage) {
|
if (!unityPackage) {
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
|||||||
isPC: false,
|
isPC: false,
|
||||||
isQuest: false,
|
isQuest: false,
|
||||||
isIos: false,
|
isIos: false,
|
||||||
bundleSizes: [],
|
bundleSizes: {},
|
||||||
platformInfo: {},
|
platformInfo: {},
|
||||||
galleryImages: [],
|
galleryImages: [],
|
||||||
galleryLoading: false,
|
galleryLoading: false,
|
||||||
@@ -67,7 +67,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
|||||||
cacheSize: '',
|
cacheSize: '',
|
||||||
cacheLocked: false,
|
cacheLocked: false,
|
||||||
cachePath: '',
|
cachePath: '',
|
||||||
fileAnalysis: []
|
fileAnalysis: {}
|
||||||
});
|
});
|
||||||
const avatarHistory = ref([]);
|
const avatarHistory = ref([]);
|
||||||
|
|
||||||
@@ -201,7 +201,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
|||||||
D.cacheSize = '';
|
D.cacheSize = '';
|
||||||
D.cacheLocked = false;
|
D.cacheLocked = false;
|
||||||
D.cachePath = '';
|
D.cachePath = '';
|
||||||
D.fileAnalysis = [];
|
D.fileAnalysis = {};
|
||||||
D.isQuestFallback = false;
|
D.isQuestFallback = false;
|
||||||
D.isPC = false;
|
D.isPC = false;
|
||||||
D.isQuest = false;
|
D.isQuest = false;
|
||||||
@@ -209,7 +209,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
|||||||
D.hasImposter = false;
|
D.hasImposter = false;
|
||||||
D.imposterVersion = '';
|
D.imposterVersion = '';
|
||||||
D.lastUpdated = '';
|
D.lastUpdated = '';
|
||||||
D.bundleSizes = [];
|
D.bundleSizes = {};
|
||||||
D.platformInfo = {};
|
D.platformInfo = {};
|
||||||
D.galleryImages = [];
|
D.galleryImages = [];
|
||||||
D.galleryLoading = true;
|
D.galleryLoading = true;
|
||||||
@@ -261,7 +261,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (D.bundleSizes.length === 0) {
|
if (Object.keys(D.bundleSizes).length === 0) {
|
||||||
getBundleDateSize(ref).then((bundleSizes) => {
|
getBundleDateSize(ref).then((bundleSizes) => {
|
||||||
D.bundleSizes = bundleSizes;
|
D.bundleSizes = bundleSizes;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ export const useInstanceStore = defineStore('Instance', () => {
|
|||||||
focusViewDisabled: false,
|
focusViewDisabled: false,
|
||||||
inCache: false,
|
inCache: false,
|
||||||
cacheSize: '',
|
cacheSize: '',
|
||||||
bundleSizes: [],
|
bundleSizes: {},
|
||||||
lastUpdated: ''
|
lastUpdated: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ export const useInstanceStore = defineStore('Instance', () => {
|
|||||||
focusViewDisabled: false,
|
focusViewDisabled: false,
|
||||||
inCache: false,
|
inCache: false,
|
||||||
cacheSize: '',
|
cacheSize: '',
|
||||||
bundleSizes: [],
|
bundleSizes: {},
|
||||||
lastUpdated: ''
|
lastUpdated: ''
|
||||||
};
|
};
|
||||||
currentInstanceLocation.value = {};
|
currentInstanceLocation.value = {};
|
||||||
@@ -187,7 +187,7 @@ export const useInstanceStore = defineStore('Instance', () => {
|
|||||||
focusViewDisabled: false,
|
focusViewDisabled: false,
|
||||||
inCache: false,
|
inCache: false,
|
||||||
cacheSize: '',
|
cacheSize: '',
|
||||||
bundleSizes: [],
|
bundleSizes: {},
|
||||||
lastUpdated: ''
|
lastUpdated: ''
|
||||||
};
|
};
|
||||||
L = parseLocation(instanceId);
|
L = parseLocation(instanceId);
|
||||||
|
|||||||
@@ -45,13 +45,13 @@ export const useWorldStore = defineStore('World', () => {
|
|||||||
focusViewDisabled: false,
|
focusViewDisabled: false,
|
||||||
rooms: [],
|
rooms: [],
|
||||||
treeData: {},
|
treeData: {},
|
||||||
bundleSizes: [],
|
bundleSizes: {},
|
||||||
lastUpdated: '',
|
lastUpdated: '',
|
||||||
inCache: false,
|
inCache: false,
|
||||||
cacheSize: '',
|
cacheSize: '',
|
||||||
cacheLocked: false,
|
cacheLocked: false,
|
||||||
cachePath: '',
|
cachePath: '',
|
||||||
fileAnalysis: [],
|
fileAnalysis: {},
|
||||||
lastVisit: '',
|
lastVisit: '',
|
||||||
visitCount: 0,
|
visitCount: 0,
|
||||||
timeSpent: 0,
|
timeSpent: 0,
|
||||||
@@ -101,14 +101,14 @@ export const useWorldStore = defineStore('World', () => {
|
|||||||
D.id = L.worldId;
|
D.id = L.worldId;
|
||||||
D.$location = L;
|
D.$location = L;
|
||||||
D.treeData = {};
|
D.treeData = {};
|
||||||
D.bundleSizes = [];
|
D.bundleSizes = {};
|
||||||
D.lastUpdated = '';
|
D.lastUpdated = '';
|
||||||
D.loading = true;
|
D.loading = true;
|
||||||
D.inCache = false;
|
D.inCache = false;
|
||||||
D.cacheSize = '';
|
D.cacheSize = '';
|
||||||
D.cacheLocked = false;
|
D.cacheLocked = false;
|
||||||
D.cachePath = '';
|
D.cachePath = '';
|
||||||
D.fileAnalysis = [];
|
D.fileAnalysis = {};
|
||||||
D.rooms = [];
|
D.rooms = [];
|
||||||
D.lastVisit = '';
|
D.lastVisit = '';
|
||||||
D.visitCount = 0;
|
D.visitCount = 0;
|
||||||
@@ -339,7 +339,7 @@ export const useWorldStore = defineStore('World', () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (worldDialog.bundleSizes.length === 0) {
|
if (Object.keys(worldDialog.bundleSizes).length === 0) {
|
||||||
getBundleDateSize(ref).then((bundleSizes) => {
|
getBundleDateSize(ref).then((bundleSizes) => {
|
||||||
worldDialog.bundleSizes = bundleSizes;
|
worldDialog.bundleSizes = bundleSizes;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user