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
+2 -4
View File
@@ -108,8 +108,6 @@
import { useGeneralSettingsStore } from '@/stores/settings/general';
import { useI18n } from 'vue-i18n';
import Noty from 'noty';
import { escapeTag, extractFileId } from '../shared/utils';
import { useGalleryStore } from '../stores';
@@ -303,7 +301,7 @@
toast.success(t('message.image.copied_to_clipboard'));
} catch (error) {
console.error('Error downloading image:', error);
new Noty({ type: 'error', text: escapeTag(`Failed to download image. ${url}`) }).show();
toast.error(escapeTag(`Failed to download image. ${url}`));
} finally {
toast.dismiss(msg);
}
@@ -333,7 +331,7 @@
document.body.removeChild(link);
} catch (error) {
console.error('Error downloading image:', error);
new Noty({ type: 'error', text: escapeTag(`Failed to download image. ${url}`) }).show();
toast.error(escapeTag(`Failed to download image. ${url}`));
} finally {
toast.dismiss(msg);
}
@@ -104,10 +104,9 @@
import { Button } from '@/components/ui/button';
import { Check } from 'lucide-vue-next';
import { storeToRefs } from 'pinia';
import { toast } from 'vue-sonner';
import { useI18n } from 'vue-i18n';
import Noty from 'noty';
import { useFavoriteStore, useUserStore } from '../../stores';
import { favoriteRequest } from '../../api';
@@ -159,6 +158,9 @@
}
);
/**
* @returns {void}
*/
function initFavoriteDialog() {
if (favoriteDialog.value.type === 'friend') {
groups.value = favoriteFriendGroups.value;
@@ -169,6 +171,11 @@
}
}
/**
*
* @param {object} group
* @returns {void}
*/
function addFavorite(group) {
const D = favoriteDialog.value;
loading.value = true;
@@ -180,7 +187,7 @@
})
.then(() => {
isVisible.value = false;
new Noty({ type: 'success', text: 'Favorite added!' }).show();
toast.success('Favorite added!');
})
.finally(() => {
loading.value = false;