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
+3 -11
View File
@@ -3,7 +3,6 @@ import { defineStore } from 'pinia';
import { toast } from 'vue-sonner';
import { useI18n } from 'vue-i18n';
import Noty from 'noty';
import dayjs from 'dayjs';
import {
@@ -369,13 +368,9 @@ export const useNotificationStore = defineStore('Notification', () => {
.then((_args) => {
const text = `Auto invite sent to ${ref.senderUsername}`;
if (AppDebug.errorNoty) {
AppDebug.errorNoty.close();
toast.dismiss(AppDebug.errorNoty);
}
AppDebug.errorNoty = new Noty({
type: 'info',
text
});
AppDebug.errorNoty.show();
AppDebug.errorNoty = toast.info(text);
console.log(text);
notificationRequest
.hideNotification({
@@ -1341,10 +1336,7 @@ export const useNotificationStore = defineStore('Notification', () => {
console.log('Notification response', args);
if (!args.json) return;
handleNotificationV2Hide(notificationId);
new Noty({
type: 'success',
text: escapeTag(args.json)
}).show();
toast.success(escapeTag(args.json));
})
.catch(() => {
handleNotificationV2Hide(notificationId);