diff --git a/package-lock.json b/package-lock.json
index f75188b..ddb0d18 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1527,11 +1527,6 @@
"strip-indent": "^3.0.0"
}
},
- "svelte-simple-modal": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/svelte-simple-modal/-/svelte-simple-modal-1.2.0.tgz",
- "integrity": "sha512-uiKQ3/iNMepzMkaw15wHpP+GieuuB8SDg+Mm+8uiS3hQDJAyjc8ApR/YtUlZs77d779sJ3lukhao+WkmoIyxzA=="
- },
"tailwindcss": {
"version": "2.2.19",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-2.2.19.tgz",
diff --git a/package.json b/package.json
index ff7c912..314ba73 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,6 @@
"dependencies": {
"daisyui": "^1.20.0",
"sirv-cli": "^1.0.14",
- "svelte-frappe-charts": "^1.9.1",
- "svelte-simple-modal": "^1.2.0"
+ "svelte-frappe-charts": "^1.9.1"
}
}
diff --git a/src/App.svelte b/src/App.svelte
index ce27c81..097b25b 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -4,17 +4,14 @@
import { Route, router, active } from "tinro";
router.mode.hash(); // enables hash navigation method
//router.mode.memory(); // enables in-memory navigation method
+ import Chart from "svelte-frappe-charts";
import Card from "./widgets/Card.svelte";
+ import Modal from "./components/Modal.svelte";
import Input from "./widgets/Input.svelte";
import Toggle from "./widgets/Toggle.svelte";
import Anydata from "./widgets/Anydata.svelte";
- import Content from "./Content.svelte";
- import Modal from "svelte-simple-modal";
-
- import Chart from "svelte-frappe-charts";
-
//как ставить и удалять
//npm install --save svelte-simple-modal
//npm uninstall svelte-simple-modal
@@ -28,6 +25,8 @@
let myip = document.location.hostname;
let showInput = false;
+ let showModal = false;
+
//dashboard
let wigets = [];
let pages = [];
@@ -662,7 +661,11 @@
- 🎉 {message} 🍾 -
diff --git a/src/components/Modal.svelte b/src/components/Modal.svelte new file mode 100644 index 0000000..6a10002 --- /dev/null +++ b/src/components/Modal.svelte @@ -0,0 +1,38 @@ + + +Are you sure you want to deactivate your account? All of your data will be permanently removed. This action cannot be undone.
+