diff --git a/CHANGELOG.md b/CHANGELOG.md index 8277a8a..cabb342 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [1.0.3] 2022-06-24 +### Bug Fixing +- update script imports + ## [1.0.2] 2022-06-14 ### Bug Fixing - fix documentation link diff --git a/README.md b/README.md index da8c2eb..f12d697 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [Soft UI Dashboard Tailwind](http://demos.creative-tim.com/soft-ui-dashboard-tailwind/pages/dashboard.html?ref=readme-sudt) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/intent/tweet?url=https://www.creative-tim.com/product/soft-ui-dashboard-tailwind&text=Check%20Soft%20UI%20Dashboard%20Tailwind%20made%20by%20@CreativeTim%20#webdesign%20#dashboard%20#softdesign%20#html%20https://www.creative-tim.com/product/soft-ui-dashboard-tailwind) [![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/FhCJCaHdQa) -![version](https://img.shields.io/badge/version-1.0.2-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/soft-ui-dashboard-tailwind.svg)](https://github.com/creativetimofficial/soft-ui-dashboard-tailwind/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/soft-ui-dashboard-tailwind.svg)](https://github.com/creativetimofficial/soft-ui-dashboard-tailwind/issues?q=is%3Aissue+is%3Aclosed) +![version](https://img.shields.io/badge/version-1.0.3-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/soft-ui-dashboard-tailwind.svg)](https://github.com/creativetimofficial/soft-ui-dashboard-tailwind/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/soft-ui-dashboard-tailwind.svg)](https://github.com/creativetimofficial/soft-ui-dashboard-tailwind/issues?q=is%3Aissue+is%3Aclosed) ![Image](https://raw.githubusercontent.com/creativetimofficial/public-assets/master/soft-ui-dashboard/soft-ui-dashboard-tailwind.jpg) diff --git a/build/assets/css/styles.css b/build/assets/css/styles.css index 56afa27..21a2b04 100644 --- a/build/assets/css/styles.css +++ b/build/assets/css/styles.css @@ -1,7 +1,7 @@ /*! ========================================================= -* Soft UI Dashboard Tailwind - v1.0.2 +* Soft UI Dashboard Tailwind - v1.0.3 ========================================================= * Product Page: https://www.creative-tim.com/product/soft-ui-dashboard-tailwind diff --git a/build/assets/css/styles.min.css b/build/assets/css/styles.min.css index 27c48de..a7ff297 100644 --- a/build/assets/css/styles.min.css +++ b/build/assets/css/styles.min.css @@ -1,7 +1,7 @@ /*! ========================================================= -* Soft UI Dashboard Tailwind - v1.0.2 +* Soft UI Dashboard Tailwind - v1.0.3 ========================================================= * Product Page: https://www.creative-tim.com/product/soft-ui-dashboard-tailwind diff --git a/build/assets/js/fixed-plugin.js b/build/assets/js/fixed-plugin.js index 84dd6ef..9b89196 100644 --- a/build/assets/js/fixed-plugin.js +++ b/build/assets/js/fixed-plugin.js @@ -1,10 +1,6 @@ -if(window.location.pathname.length > 1){ - var pageName = window.location.pathname.split("/").pop().split(".")[0]; - var sidenav_target = "../pages/" + pageName + ".html"; -} else { - var pageName = "dashboard"; - var sidenav_target = "./pages/" + pageName + ".html"; -} +var pageName = page; +var sidenav_target = to_build + "pages/" + pageName + ".html"; + var fixedPlugin = document.querySelector("[fixed-plugin]"); var fixedPluginButton = document.querySelector("[fixed-plugin-button]"); var fixedPluginButtonNav = document.querySelector("[fixed-plugin-button-nav]"); diff --git a/build/assets/js/soft-ui-dashboard-tailwind.js b/build/assets/js/soft-ui-dashboard-tailwind.js index 4c80ba0..5c705ab 100644 --- a/build/assets/js/soft-ui-dashboard-tailwind.js +++ b/build/assets/js/soft-ui-dashboard-tailwind.js @@ -1,7 +1,7 @@ /*! ========================================================= -* Soft UI Dashboard Tailwind - v1.0.2 +* Soft UI Dashboard Tailwind - v1.0.3 ========================================================= * Product Page: https://www.creative-tim.com/product/soft-ui-dashboard-tailwind @@ -26,21 +26,31 @@ if (!aux.includes("pages")) { loadStylesheet(to_build + "assets/css/perfect-scrollbar.css"); loadJS(to_build + "assets/js/perfect-scrollbar.js", true); -if (page != "sign-in" && page != "sign-up") { +if (document.querySelector("nav [navbar-trigger]")) { + loadJS(to_build + "assets/js/navbar-collapse.js", true); +} + +if (document.querySelector("[data-target='tooltip']")) { + loadJS(to_build + "assets/js/tooltips.js", true); + loadStylesheet(to_build + "assets/css/tooltips.css"); +} + +if (document.querySelector("[nav-pills]")) { + loadJS(to_build + "assets/js/nav-pills.js", true); +} + +if (document.querySelector("[dropdown-trigger]")) { + loadJS(to_build + "assets/js/dropdown.js", true); + +} + +if (document.querySelector("[fixed-plugin]")) { loadJS(to_build + "assets/js/fixed-plugin.js", true); +} + +if (document.querySelector("[navbar-main]")) { loadJS(to_build + "assets/js/sidenav-burger.js", true); - loadJS(to_build + "assets/js/dropdown.js", true); - if (page != "profile") { - loadJS(to_build + "assets/js/navbar-sticky.js", true); - } else { - loadJS(to_build + "assets/js/nav-pills.js", true); - } - if (page != "tables") { - loadJS(to_build + "assets/js/tooltips.js", true); - loadStylesheet(to_build + "assets/css/tooltips.css"); - } -} else { - loadJS(to_build + "assets/js/navbar-collapse.js", true); + loadJS(to_build + "assets/js/navbar-sticky.js", true); } if (document.querySelector("canvas")) { diff --git a/build/assets/js/soft-ui-dashboard-tailwind.min.js b/build/assets/js/soft-ui-dashboard-tailwind.min.js index 2fac417..6c9f8e5 100644 --- a/build/assets/js/soft-ui-dashboard-tailwind.min.js +++ b/build/assets/js/soft-ui-dashboard-tailwind.min.js @@ -1,7 +1,7 @@ /*! ========================================================= -* Soft UI Dashboard Tailwind - v1.0.2 +* Soft UI Dashboard Tailwind - v1.0.3 ========================================================= * Product Page: https://www.creative-tim.com/product/soft-ui-dashboard-tailwind @@ -14,4 +14,4 @@ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -*/ var page=window.location.pathname.split("/").pop().split(".")[0],aux=window.location.pathname.split("/"),to_build=aux.includes("pages")?"../":"./",root=window.location.pathname.split("/");function loadJS(b,c){let a=document.createElement("script");a.setAttribute("src",b),a.setAttribute("type","text/javascript"),a.setAttribute("async",c),document.head.appendChild(a)}function loadStylesheet(b){let a=document.createElement("link");a.setAttribute("href",b),a.setAttribute("type","text/css"),a.setAttribute("rel","stylesheet"),document.head.appendChild(a)}aux.includes("pages")||(page="dashboard"),loadStylesheet(to_build+"assets/css/perfect-scrollbar.css"),loadJS(to_build+"assets/js/perfect-scrollbar.js",!0),"sign-in"!=page&&"sign-up"!=page?(loadJS(to_build+"assets/js/fixed-plugin.js",!0),loadJS(to_build+"assets/js/sidenav-burger.js",!0),loadJS(to_build+"assets/js/dropdown.js",!0),loadJS("profile"!=page?to_build+"assets/js/navbar-sticky.js":to_build+"assets/js/nav-pills.js",!0),"tables"!=page&&(loadJS(to_build+"assets/js/tooltips.js",!0),loadStylesheet(to_build+"assets/css/tooltips.css"))):loadJS(to_build+"assets/js/navbar-collapse.js",!0),document.querySelector("canvas")&&(loadJS(to_build+"assets/js/chart-1.js",!0),loadJS(to_build+"assets/js/chart-2.js",!0)) \ No newline at end of file +*/ var page=window.location.pathname.split("/").pop().split(".")[0],aux=window.location.pathname.split("/"),to_build=aux.includes("pages")?"../":"./",root=window.location.pathname.split("/");function loadJS(b,c){let a=document.createElement("script");a.setAttribute("src",b),a.setAttribute("type","text/javascript"),a.setAttribute("async",c),document.head.appendChild(a)}function loadStylesheet(b){let a=document.createElement("link");a.setAttribute("href",b),a.setAttribute("type","text/css"),a.setAttribute("rel","stylesheet"),document.head.appendChild(a)}aux.includes("pages")||(page="dashboard"),loadStylesheet(to_build+"assets/css/perfect-scrollbar.css"),loadJS(to_build+"assets/js/perfect-scrollbar.js",!0),document.querySelector("nav [navbar-trigger]")&&loadJS(to_build+"assets/js/navbar-collapse.js",!0),document.querySelector("[data-target='tooltip']")&&(loadJS(to_build+"assets/js/tooltips.js",!0),loadStylesheet(to_build+"assets/css/tooltips.css")),document.querySelector("[nav-pills]")&&loadJS(to_build+"assets/js/nav-pills.js",!0),document.querySelector("[dropdown-trigger]")&&loadJS(to_build+"assets/js/dropdown.js",!0),document.querySelector("[fixed-plugin]")&&loadJS(to_build+"assets/js/fixed-plugin.js",!0),document.querySelector("[navbar-main]")&&(loadJS(to_build+"assets/js/sidenav-burger.js",!0),loadJS(to_build+"assets/js/navbar-sticky.js",!0)),document.querySelector("canvas")&&(loadJS(to_build+"assets/js/chart-1.js",!0),loadJS(to_build+"assets/js/chart-2.js",!0)) \ No newline at end of file diff --git a/build/docs/documentation.html b/build/docs/documentation.html index 7d070d8..1d559aa 100644 --- a/build/docs/documentation.html +++ b/build/docs/documentation.html @@ -1,6 +1,6 @@ - + @@ -216,5 +216,5 @@