From 31b9abe708c0ae82f2939dba479561419928dacf Mon Sep 17 00:00:00 2001 From: Son NK Date: Tue, 4 Feb 2020 16:50:47 +0700 Subject: [PATCH] use npm toastr --- static/package-lock.json | 13 +++++++++++++ static/package.json | 3 ++- templates/base.html | 4 ++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/static/package-lock.json b/static/package-lock.json index d72e2255..7cb59a4e 100644 --- a/static/package-lock.json +++ b/static/package-lock.json @@ -14,10 +14,23 @@ "resolved": "https://registry.npmjs.org/intro.js/-/intro.js-2.9.3.tgz", "integrity": "sha512-hC+EXWnEuJeA3CveGMat3XHePd2iaXNFJIVfvJh2E9IzBMGLTlhWvPIVHAgKlOpO4lNayCxEqzr4N02VmHFr9Q==" }, + "jquery": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.4.1.tgz", + "integrity": "sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw==" + }, "notie": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/notie/-/notie-4.3.1.tgz", "integrity": "sha1-DRmd4VEwJC4hZ1UHq6Y8aSngrdo=" + }, + "toastr": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/toastr/-/toastr-2.1.4.tgz", + "integrity": "sha1-i0O+ZPudDEFIcURvLbjoyk6V8YE=", + "requires": { + "jquery": ">=1.12.0" + } } } } diff --git a/static/package.json b/static/package.json index dfca3abf..a05b54f0 100644 --- a/static/package.json +++ b/static/package.json @@ -18,6 +18,7 @@ "dependencies": { "font-awesome": "^4.7.0", "intro.js": "^2.9.3", - "notie": "^4.3.1" + "notie": "^4.3.1", + "toastr": "^2.1.4" } } diff --git a/templates/base.html b/templates/base.html index fb8a8173..5b262cfa 100644 --- a/templates/base.html +++ b/templates/base.html @@ -61,8 +61,8 @@ - - + +