Mina Lee uploaded new photos




From 2ddba3d72f6d647e9aaf3ab8dd4d822e569b90a0 Mon Sep 17 00:00:00 2001 From: Daniel <50356015+danny007in@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:50:10 +0530 Subject: [PATCH] path with proper links --- src/html/components/_head.astro | 3 +-- src/html/components/_scripts.astro | 3 +-- src/html/components/dashboard/_sidenav.astro | 7 ++--- src/html/components/dashboard/_topbar.astro | 2 +- src/html/pages/UI/timeline.astro | 17 ++++++------ src/html/pages/docs/color-mode.astro | 9 ++++--- src/html/pages/examples/login.astro | 8 +++--- src/html/pages/examples/register.astro | 8 +++--- src/html/pages/forms/general.astro | 9 ++++--- src/html/pages/layout/fixed-sidebar.astro | 9 ++++--- src/html/pages/layout/layout-rtl.astro | 7 ++--- src/html/pages/layout/sidebar-mini.astro | 9 ++++--- src/html/pages/layout/unfixed-sidebar.astro | 9 ++++--- src/html/pages/tables/simple.astro | 9 ++++--- src/html/pages/widgets/cards.astro | 9 ++++--- src/html/pages/widgets/info-box.astro | 9 ++++--- src/html/pages/widgets/small-box.astro | 9 ++++--- src/utils/index.js | 27 ++++++++++++++++++++ 18 files changed, 100 insertions(+), 63 deletions(-) create mode 100644 src/utils/index.js diff --git a/src/html/components/_head.astro b/src/html/components/_head.astro index 5a71c4fe6..82d24075e 100644 --- a/src/html/components/_head.astro +++ b/src/html/components/_head.astro @@ -1,6 +1,5 @@ --- const { title, path, isRtl } = Astro.props -const distPath = (path != undefined) ? path : '../../../dist' const cssPath = isRtl ? '.rtl' : '' --- @@ -29,4 +28,4 @@ const cssPath = isRtl ? '.rtl' : '' - + diff --git a/src/html/components/_scripts.astro b/src/html/components/_scripts.astro index 775345d82..53ff4da43 100644 --- a/src/html/components/_scripts.astro +++ b/src/html/components/_scripts.astro @@ -1,7 +1,6 @@ --- const { path } = Astro.props -const distPath = (path != undefined) ? path : '../../../dist' -const adminlteJsUrl = distPath + '/js/adminlte.js' +const adminlteJsUrl = path + '/js/adminlte.js' --- diff --git a/src/html/components/dashboard/_sidenav.astro b/src/html/components/dashboard/_sidenav.astro index e897415fd..21ff2d382 100644 --- a/src/html/components/dashboard/_sidenav.astro +++ b/src/html/components/dashboard/_sidenav.astro @@ -1,13 +1,14 @@ --- +import { convertPathToHtml } from '../../../utils/index.js'; const { path, mainPage, page } = Astro.props -const distPath = (path != undefined) ? path : '../../../dist' -const htmlPath = (path != undefined) ? '.' : '..' +const htmlPath = convertPathToHtml(path) --- +
+