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

Feature/refactor6 #30

Merged
merged 2 commits into from
Aug 31, 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
2 changes: 1 addition & 1 deletion .github/workflows/build_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: BUILD_MAIN
on:
push:
branches:
- feature/print2
- main
jobs:
build:
runs-on: ubuntu-latest
Expand Down
31 changes: 0 additions & 31 deletions zbook_backend/cert.pem

This file was deleted.

2 changes: 1 addition & 1 deletion zbook_backend/statik/statik.go

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion zbook_backend/zbook_backend.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ COPY app.env .
COPY start.sh .
COPY wait-for.sh .
COPY db/migration ./db/migration
COPY cert.pem ./cert.pem

# Set timezone data
ENV TZ=Etc/UTC
Expand Down
3 changes: 1 addition & 2 deletions zbook_frontend/src/components/comments/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


```mermaid

graph TD
Expand All @@ -22,4 +21,4 @@ ListLevelTwoComment



```
```
8 changes: 5 additions & 3 deletions zbook_frontend/src/components/navbars/NavTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,27 @@ import { useTheme } from "next-themes";
import { useState, useEffect, useContext } from "react";
import { OperationContext } from "@/providers/OperationProvider";
import NavBarIcon from "./NavBarIcon";

export default function Theme() {
const { theme, setTheme } = useTheme();
const [mounted, setMounted] = useState(false);
const { setMutationToggleTheme, mutationToggleTheme } =
useContext(OperationContext);

useEffect(() => {
setMounted(true);
}, []);

return (
<NavBarIcon
Icon={theme === "dark" ? MdDarkMode : MdLightMode}
onClick={() => {
if (theme == "dark") {
if (theme === "dark") {
setTheme("light");
setMutationToggleTheme(!mutationToggleTheme);
} else {
setTheme("dark");
setMutationToggleTheme(!mutationToggleTheme);
}
setMutationToggleTheme(!mutationToggleTheme);
}}
mounted={mounted}
/>
Expand Down
2 changes: 1 addition & 1 deletion zbook_frontend/src/components/navbars/NavUserState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { signOut } from "@/auth";
import { Link } from "@/navigation";
import { RiLogoutBoxLine, RiLoginBoxLine } from "react-icons/ri";
import { auth } from "@/auth";
import { AiOutlineSearch, AiOutlineUser } from "react-icons/ai";
import { AiOutlineUser } from "react-icons/ai";
import GlobalSearchButton from "@/providers/dialogs/GlobalSearchButton";
export default async function UserState() {
const session = await auth();
Expand Down
Loading