Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update Exercise.svelte and +layout.svelte files #103

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion kubelab-ui/src/lib/components/labs/Exercise.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import { onMount } from "svelte";
import toast from "svelte-french-toast";
export let this_exercise_session: ExerciseSessionsResponse;
export let index: number;
let this_exercise: ExercisesResponse;
let confirmation = false;

Expand Down
5 changes: 2 additions & 3 deletions kubelab-ui/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@
<!-- only display nav when not on /login -->
{#if $page.route.id !== "/login" && $page.route.id !== "/" && $page.route.id !== "/signup" && $page.route.id !== "/admin/%5Bid%5D"}
<!-- also not display nav when any subpath of /admin with regex /admin\/.*$/ -->
{#if $page.route.id.match(/\/admin\/.*$/)}
{:else}
<Nav />
{#if !$page.route.id.match(/\/admin\/.*$/)}
<Nav />
{/if}
{/if}
<slot />
Expand Down
20 changes: 3 additions & 17 deletions kubelab-ui/tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,10 @@ module.exports = {
require("@tailwindcss/typography"),
require("tailwind-scrollbar"),
require("daisyui"),
require('flowbite/plugin')
require("flowbite/plugin")
],
daisyui: {
logs: false,
themes: [
{
light: {
...require("daisyui/src/theming/themes")["[data-theme=light]"],
"primary": "#1D242A",
"primary-focus": "#1D242A",
},
dark: {
...require("daisyui/src/theming/themes")["dark"],
"primary": "#fff",
"secondary": "#252E36",
"primary-focus": "#fff",
},
},
],
},
themes: ["light", "dark"],
}
};
Loading