From 635699196b94bfcefac1f5c80a76f4ad6b2caaa0 Mon Sep 17 00:00:00 2001 From: RGBKnights Date: Wed, 8 Jan 2025 10:56:45 -0500 Subject: [PATCH] toast has production issues... --- src/main.ts | 2 +- src/stores/iterate.ts | 20 ++++++++------------ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/main.ts b/src/main.ts index c5d1d07..e5c5f99 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ import './style.css' -import "vue3-toastify/dist/index.css"; +//import "vue3-toastify/dist/index.css"; import { createApp } from 'vue' import { createPinia } from 'pinia' diff --git a/src/stores/iterate.ts b/src/stores/iterate.ts index ebca7ab..23fb4e0 100644 --- a/src/stores/iterate.ts +++ b/src/stores/iterate.ts @@ -1,4 +1,4 @@ -import { toast, ToastOptions } from "vue3-toastify"; +//import { toast, ToastOptions } from "vue3-toastify"; import { defineStore } from 'pinia' type State = 'Pending' | 'Running' | 'Completed' | 'Failed' | 'Terminated' @@ -6,16 +6,11 @@ type State = 'Pending' | 'Running' | 'Completed' | 'Failed' | 'Terminated' const URL_BASE = 'https://03600f7f7081.ngrok.app' //import.meta.env.VITE_API_URL const API_CODE = import.meta.env.VITE_API_CODE -const TOAST_ERROR_CONFIG = { - "theme": "auto", - "type": "error", - "transition": "slide" -} as ToastOptions; - -const TOAST_CONFIG = { - "theme": "auto", - "transition": "slide" -} as ToastOptions; +// const TOAST_ERROR_CONFIG = { +// "theme": "auto", +// "type": "error", +// "transition": "slide" +// } as ToastOptions; export const useIterateStore = defineStore('iterate', { state: () => { @@ -145,7 +140,8 @@ export const useIterateStore = defineStore('iterate', { message = 'Error: Something Unexpected.'; break; } - toast(message, TOAST_ERROR_CONFIG) + console.error('Error:', message) + //toast(message, TOAST_ERROR_CONFIG) }); }, stop() {