Image upload widget

This commit is contained in:
space-nuko
2023-05-08 18:08:28 -05:00
parent 5feffcfa17
commit 0f50dbae87
15 changed files with 380 additions and 48 deletions

View File

@@ -4,7 +4,7 @@ import { f7 } from "framework7-svelte"
let notification;
function notifyf7(text: string, title?: string) {
function notifyf7(text: string, title?: string, type?: string) {
if (!f7)
return;
@@ -22,7 +22,7 @@ function notifyf7(text: string, title?: string) {
notification.open();
}
function notifyToast(text: string, type?: string) {
function notifyToast(text: string, title?: string, type?: string) {
const options: SvelteToastOptions = {}
if (type === "error") {
@@ -35,6 +35,6 @@ function notifyToast(text: string, type?: string) {
}
export default function notify(text: string, title?: string, type?: string) {
notifyf7(text, title);
notifyToast(text, title);
notifyf7(text, title, type);
notifyToast(text, title, type);
}