mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-01 20:53:45 +02:00
clean up noty and remove animate.css
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user