mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	| @@ -1,15 +1,6 @@ | ||||
| // import utils from "@/utils"; | ||||
| // import utils from "../../utils"; | ||||
| // import Vue from "vue"; | ||||
| // import Vuetify from "./plugins/vuetify"; | ||||
| import { vueApp } from "./main"; | ||||
|  | ||||
| const notifyHelpers = { | ||||
|   baseCSS: "notify-base", | ||||
|   error: "notify-error-color", | ||||
|   warning: "notify-warning-color", | ||||
|   success: "notify-success-color", | ||||
|   info: "notify-info-color", | ||||
| }; | ||||
|  | ||||
| const days = [ | ||||
|   "Sunday", | ||||
| @@ -81,28 +72,4 @@ export default { | ||||
|  | ||||
|     return `${year}-${month}-${day}`; | ||||
|   }, | ||||
|   notify: { | ||||
|     show: function(text, type = "info", title = null) { | ||||
|       vueApp.flashMessage.show({ | ||||
|         status: type, | ||||
|         title: title, | ||||
|         message: text, | ||||
|         time: 3000, | ||||
|         blockClass: `${notifyHelpers.baseCSS} ${notifyHelpers[type]}`, | ||||
|         contentClass: `${notifyHelpers.baseCSS} ${notifyHelpers[type]}`, | ||||
|       }); | ||||
|     }, | ||||
|     info: function(text, title = null) { | ||||
|       this.show(text, "info", title); | ||||
|     }, | ||||
|     success: function(text, title = null) { | ||||
|       this.show(text, "success", title); | ||||
|     }, | ||||
|     error: function(text, title = null) { | ||||
|       this.show(text, "error", title); | ||||
|     }, | ||||
|     warning: function(text, title = null) { | ||||
|       this.show(text, "warning", title); | ||||
|     }, | ||||
|   }, | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user