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 @@

Documentation v1.0.1

- + diff --git a/build/index.html b/build/index.html index 8d6d19c..9bbc34e 100644 --- a/build/index.html +++ b/build/index.html @@ -1,6 +1,6 @@ - + @@ -1207,5 +1207,5 @@
Thank you for sharing!
- + diff --git a/build/pages/billing.html b/build/pages/billing.html index 90c09bb..c4cfa5b 100644 --- a/build/pages/billing.html +++ b/build/pages/billing.html @@ -1,6 +1,6 @@ - + @@ -817,5 +817,5 @@
Thank you for sharing!
- + diff --git a/build/pages/dashboard.html b/build/pages/dashboard.html index 8a834f3..8409955 100644 --- a/build/pages/dashboard.html +++ b/build/pages/dashboard.html @@ -1,6 +1,6 @@ - + @@ -1208,5 +1208,5 @@
Thank you for sharing!
- + diff --git a/build/pages/profile.html b/build/pages/profile.html index 8fe6431..b301baa 100644 --- a/build/pages/profile.html +++ b/build/pages/profile.html @@ -1,6 +1,6 @@ - + @@ -898,5 +898,5 @@
Thank you for sharing!
- + diff --git a/build/pages/rtl.html b/build/pages/rtl.html index fd9a6b1..9a98134 100644 --- a/build/pages/rtl.html +++ b/build/pages/rtl.html @@ -1,6 +1,6 @@ - + @@ -1206,5 +1206,5 @@
Thank you for sharing!
- + diff --git a/build/pages/sign-in.html b/build/pages/sign-in.html index 2ce39ee..cfc207e 100644 --- a/build/pages/sign-in.html +++ b/build/pages/sign-in.html @@ -1,6 +1,6 @@ - + @@ -189,5 +189,5 @@

- + diff --git a/build/pages/sign-up.html b/build/pages/sign-up.html index f4dfef9..f0b6dea 100644 --- a/build/pages/sign-up.html +++ b/build/pages/sign-up.html @@ -1,6 +1,6 @@ - + @@ -230,5 +230,5 @@

Register with
- + diff --git a/build/pages/tables.html b/build/pages/tables.html index 952fbef..3ea713b 100644 --- a/build/pages/tables.html +++ b/build/pages/tables.html @@ -1,6 +1,6 @@ - + @@ -903,5 +903,5 @@
Thank you for sharing!
- + diff --git a/build/pages/virtual-reality.html b/build/pages/virtual-reality.html index b0695db..63eb175 100644 --- a/build/pages/virtual-reality.html +++ b/build/pages/virtual-reality.html @@ -1,6 +1,6 @@ - +
@@ -683,5 +683,5 @@
Thank you for sharing!
- + diff --git a/package.json b/package.json index d4356d8..e661875 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "soft-ui-dashboard-tailwind", - "version": "1.0.2", + "version": "1.0.3", "description": "", "scripts": { "build": "tailwindcss build -i src/styles.css -o build/assets/css/styles.css" diff --git a/src/styles.css b/src/styles.css index 700373c..c955d3e 100644 --- a/src/styles.css +++ b/src/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