mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
clean up noty and remove animate.css
This commit is contained in:
+5
-10
@@ -1,9 +1,8 @@
|
||||
import { reactive, ref, shallowReactive, watch } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
import { toast } from 'vue-sonner';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
import Noty from 'noty';
|
||||
|
||||
import {
|
||||
getEmojiFileName,
|
||||
getPrintFileName,
|
||||
@@ -379,9 +378,8 @@ export const useGalleryStore = defineStore('Gallery', () => {
|
||||
try {
|
||||
for (let i = 0; i < 100; i++) {
|
||||
params.offset = i * params.n;
|
||||
const args = await inventoryRequest.getCachedInventoryItems(
|
||||
params
|
||||
);
|
||||
const args =
|
||||
await inventoryRequest.getCachedInventoryItems(params);
|
||||
for (const item of args.json.data) {
|
||||
advancedSettingsStore.currentUserInventory.set(
|
||||
item.id,
|
||||
@@ -427,12 +425,9 @@ export const useGalleryStore = defineStore('Gallery', () => {
|
||||
await vrcPlusImageRequest.deletePrint(printId);
|
||||
const text = `Old print automatically deleted: ${printId}`;
|
||||
if (AppDebug.errorNoty) {
|
||||
AppDebug.errorNoty.close();
|
||||
toast.dismiss(AppDebug.errorNoty);
|
||||
}
|
||||
AppDebug.errorNoty = new Noty({
|
||||
type: 'info',
|
||||
text
|
||||
}).show();
|
||||
AppDebug.errorNoty = toast.info(text);
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Failed to delete old print:', err);
|
||||
|
||||
Reference in New Issue
Block a user