From d91b9c59c2038038a4f28dc75d9d792261b89460 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 30 Oct 2023 22:33:32 +0500 Subject: [PATCH] replace sweetalert with Notiflix --- theme/dbd-soft-ui/dbd-soft-ui.d.ts | 2 +- theme/dbd-soft-ui/views/admin.ejs | 3 +- theme/dbd-soft-ui/views/error.ejs | 2 +- .../dbd-soft-ui/views/partials/preloader.ejs | 12 +- theme/dbd-soft-ui/views/partials/scripts.ejs | 26 +- theme/dbd-soft-ui/views/settings.ejs | 2 +- .../views/src/js/dashboard/functions.js | 6 +- .../views/src/js/dashboard/sweetalert.js | 22 - .../src/js/plugins/notiflix-aio-3.2.6.min.js | 3 + .../views/src/js/plugins/sweetalert2.js | 4252 ----------------- 10 files changed, 19 insertions(+), 4311 deletions(-) delete mode 100644 theme/dbd-soft-ui/views/src/js/dashboard/sweetalert.js create mode 100644 theme/dbd-soft-ui/views/src/js/plugins/notiflix-aio-3.2.6.min.js delete mode 100644 theme/dbd-soft-ui/views/src/js/plugins/sweetalert2.js diff --git a/theme/dbd-soft-ui/dbd-soft-ui.d.ts b/theme/dbd-soft-ui/dbd-soft-ui.d.ts index 71805a8..f0af0f7 100644 --- a/theme/dbd-soft-ui/dbd-soft-ui.d.ts +++ b/theme/dbd-soft-ui/dbd-soft-ui.d.ts @@ -128,7 +128,7 @@ declare module "dbd-soft-ui" { secretMenuCombination: string[] } }, - sweetalert: { + notify: { errors: { requirePremium: string }, diff --git a/theme/dbd-soft-ui/views/admin.ejs b/theme/dbd-soft-ui/views/admin.ejs index 9864b34..bcf9c7d 100644 --- a/theme/dbd-soft-ui/views/admin.ejs +++ b/theme/dbd-soft-ui/views/admin.ejs @@ -623,7 +623,8 @@ - - - + diff --git a/theme/dbd-soft-ui/views/settings.ejs b/theme/dbd-soft-ui/views/settings.ejs index 2dd5b38..5ffa15a 100644 --- a/theme/dbd-soft-ui/views/settings.ejs +++ b/theme/dbd-soft-ui/views/settings.ejs @@ -447,7 +447,7 @@