clean up noty and remove animate.css

This commit is contained in:
pa
2026-03-09 17:14:20 +09:00
parent 3dadc84179
commit e5500f47be
16 changed files with 146 additions and 105 deletions
+5 -10
View File
@@ -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);