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 -11
View File
@@ -1,6 +1,6 @@
import { reactive } from 'vue';
import Noty from 'noty';
import { toast } from 'vue-sonner';
import {
useFriendStore,
@@ -99,12 +99,9 @@ function connectWebSocket(token) {
};
socket.onerror = () => {
if (AppDebug.errorNoty) {
AppDebug.errorNoty.close();
toast.dismiss(AppDebug.errorNoty);
}
AppDebug.errorNoty = new Noty({
type: 'error',
text: 'WebSocket Error'
}).show();
AppDebug.errorNoty = toast.error('WebSocket Error');
socket.onclose(
new CloseEvent('close', {
code: 1006, // Abnormal Closure
@@ -190,12 +187,9 @@ function handlePipeline(args) {
if (typeof err !== 'undefined') {
console.error('PIPELINE: error', args);
if (AppDebug.errorNoty) {
AppDebug.errorNoty.close();
toast.dismiss(AppDebug.errorNoty);
}
AppDebug.errorNoty = new Noty({
type: 'error',
text: escapeTag(`WebSocket Error: ${err}`)
}).show();
AppDebug.errorNoty = toast.error(escapeTag(`WebSocket Error: ${err}`));
return;
}
if (typeof content === 'undefined') {