![]()
{
const array = galleryTable.value;
@@ -801,6 +828,10 @@
});
}
+ /**
+ *
+ * @param e
+ */
function onFileChangeVRCPlusIcon(e) {
const { file, clearInput } = handleImageUploadInput(e, {
inputSelector: '#VRCPlusIconUploadButton',
@@ -833,10 +864,17 @@
});
}
+ /**
+ *
+ */
function displayVRCPlusIconUpload() {
document.getElementById('VRCPlusIconUploadButton').click();
}
+ /**
+ *
+ * @param fileId
+ */
function setVRCPlusIcon(fileId) {
if (!isLocalUserVrcPlusSupporter.value) {
toast.error(t('message.vrcplus.required'));
@@ -859,6 +897,10 @@
});
}
+ /**
+ *
+ * @param userIcon
+ */
function compareCurrentVRCPlusIcon(userIcon) {
const currentUserIcon = extractFileId(currentUser.value.userIcon);
if (userIcon === currentUserIcon) {
@@ -867,6 +909,10 @@
return false;
}
+ /**
+ *
+ * @param fileId
+ */
function deleteVRCPlusIcon(fileId) {
miscRequest.deleteFile(fileId).then((args) => {
const array = VRCPlusIconsTable.value;
@@ -881,6 +927,10 @@
});
}
+ /**
+ *
+ * @param fileName
+ */
function parseEmojiFileName(fileName) {
// remove file extension
fileName = fileName.replace(/\.[^/.]+$/, '');
@@ -904,6 +954,10 @@
}
}
+ /**
+ *
+ * @param e
+ */
function onFileChangeEmoji(e) {
const { file, clearInput } = handleImageUploadInput(e, {
inputSelector: '#EmojiUploadButton',
@@ -950,10 +1004,17 @@
});
}
+ /**
+ *
+ */
function displayEmojiUpload() {
document.getElementById('EmojiUploadButton').click();
}
+ /**
+ *
+ * @param fileId
+ */
function deleteEmoji(fileId) {
miscRequest.deleteFile(fileId).then((args) => {
const array = emojiTable.value;
@@ -968,6 +1029,10 @@
});
}
+ /**
+ *
+ * @param e
+ */
function onFileChangeSticker(e) {
const { file, clearInput } = handleImageUploadInput(e, {
inputSelector: '#StickerUploadButton',
@@ -1002,10 +1067,17 @@
});
}
+ /**
+ *
+ */
function displayStickerUpload() {
document.getElementById('StickerUploadButton').click();
}
+ /**
+ *
+ * @param fileId
+ */
function deleteSticker(fileId) {
miscRequest.deleteFile(fileId).then((args) => {
const array = stickerTable.value;
@@ -1021,6 +1093,10 @@
});
}
+ /**
+ *
+ * @param e
+ */
function onFileChangePrint(e) {
const { file, clearInput } = handleImageUploadInput(e, {
inputSelector: '#PrintUploadButton',
@@ -1063,10 +1139,17 @@
});
}
+ /**
+ *
+ */
function displayPrintUpload() {
document.getElementById('PrintUploadButton').click();
}
+ /**
+ *
+ * @param printId
+ */
function deletePrint(printId) {
vrcPlusImageRequest.deletePrint(printId).then((args) => {
const array = printTable.value;
@@ -1080,6 +1163,10 @@
});
}
+ /**
+ *
+ * @param inventoryId
+ */
async function consumeInventoryBundle(inventoryId) {
try {
await inventoryRequest.consumeInventoryBundle({
@@ -1104,6 +1191,9 @@
// inventoryItemsCreated: 0
}
+ /**
+ *
+ */
async function redeemReward() {
modalStore
.prompt({