diff --git a/Dockerfile b/Dockerfile index a19da90..425afc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ FROM node:lts USER node +WORKDIR /home/node/.npm WORKDIR /home/node/app -RUN mkdir .npm -RUN mkdir /home/node/.npm COPY . . RUN npm install RUN npm run build diff --git a/public/assets/styles/tailwind.css b/public/assets/styles/tailwind.css index 2ce42e5..6b0064b 100644 --- a/public/assets/styles/tailwind.css +++ b/public/assets/styles/tailwind.css @@ -3501,11 +3501,6 @@ select { color: rgba(16, 185, 129, var(--tw-text-opacity)); } -.text-amber-100 { - --tw-text-opacity: 1; - color: rgba(254, 243, 199, var(--tw-text-opacity)); -} - .text-orange-500 { --tw-text-opacity: 1; color: rgba(249, 115, 22, var(--tw-text-opacity)); diff --git a/src/App.svelte b/src/App.svelte index 2085e09..eb6855d 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,27 +1,67 @@ - - - - - - - + {#if isAuthenticated == true} + + + + + + + {:else} + + {/if} diff --git a/src/components/Cards/CardTableInf.svelte b/src/components/Cards/CardTableInf.svelte index 29f7c01..a29541d 100644 --- a/src/components/Cards/CardTableInf.svelte +++ b/src/components/Cards/CardTableInf.svelte @@ -1,9 +1,11 @@
diff --git a/src/components/Utils/CookieHandler.js b/src/components/Utils/CookieHandler.js new file mode 100644 index 0000000..e5f35d5 --- /dev/null +++ b/src/components/Utils/CookieHandler.js @@ -0,0 +1,16 @@ + +export function getCookie(name) { + let cookieValue = null; + if (document.cookie && document.cookie !== '') { + const cookies = document.cookie.split(';'); + for (let i = 0; i < cookies.length; i++) { + const cookie = cookies[i].trim(); + // Does this cookie string begin with the name we want? + if (cookie.substring(0, name.length + 1) === (name + '=')) { + cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); + break; + } + } + } + return cookieValue; +} diff --git a/src/layouts/Admin.svelte b/src/layouts/Admin.svelte index 063f14c..0e73f09 100644 --- a/src/layouts/Admin.svelte +++ b/src/layouts/Admin.svelte @@ -18,25 +18,26 @@ import Maps from "views/admin/Maps.svelte"; export let location; + let collapseshow = ''; export let admin = "";
- -
- - -
- - - - - - - - - - + +
+ + +
+ + + + + + + + + + +
-
diff --git a/src/layouts/Auth.svelte b/src/layouts/Auth.svelte index f89082a..e70d529 100644 --- a/src/layouts/Auth.svelte +++ b/src/layouts/Auth.svelte @@ -22,10 +22,7 @@ class="absolute top-0 w-full h-full bg-blueGray-800 bg-no-repeat bg-full" style="background-image: url({registerBg2});" >
- - - - + diff --git a/src/views/admin/Dashboard.svelte b/src/views/admin/Dashboard.svelte index e6504b5..f8f16d2 100644 --- a/src/views/admin/Dashboard.svelte +++ b/src/views/admin/Dashboard.svelte @@ -1,6 +1,7 @@
@@ -16,42 +87,27 @@
- Sign in with + TIP Community Lab : Facility Dashboard
-
- - -

Or sign in with credentials
- +
@@ -66,6 +122,7 @@