Skip to content

Commit

Permalink
Fix code formatting and update themes
Browse files Browse the repository at this point in the history
  • Loading branch information
m7medVision committed Jan 17, 2024
1 parent 78c5c6f commit d4897e9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion islands/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default function Editor(props: EditorProps) {
try {
eval(props.testingCode);
if (isPass) {

let courseSlug: string;
// THIS FOR DEV MODE ONLY IT WILL BE REMOVED IN PRODUCTION
// if (props.slug.includes("/")) {
Expand Down
2 changes: 1 addition & 1 deletion islands/ThemeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function ThemeToggle() {

const handleThemeChange = () => {
const storedTheme = localStorage.getItem("selectedTheme");
const newTheme = storedTheme === "cmyk" ? "dracula" : "cmyk";
const newTheme = storedTheme === "cmyk" ? "night" : "cmyk";
document.documentElement.setAttribute("data-theme", newTheme);
localStorage.setItem("selectedTheme", newTheme);
updateMarkdownTheme(newTheme);
Expand Down
2 changes: 1 addition & 1 deletion routes/api/test/finsh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const handler: Handlers<FinshTest> = {
if (!sessionId) {
return new Response("no sessionId", { status: 400 })
}
const res = await addCompletedCourse(sessionId, courseslug)
const res = await addCompletedCourse(sessionId, courseslug.replace("/", "\\"))
if (!res.ok) {
return new Response("error", { status: 400 })
}
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export default {
plugins: [daisyui],
daisyui: {
log: false,
themes: ["dracula", "cmyk"],
themes: ["night", "cmyk"],
},
} satisfies Config;

0 comments on commit d4897e9

Please sign in to comment.