Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyro3400 committed Aug 2, 2024
1 parent 97b798c commit be2e527
Show file tree
Hide file tree
Showing 39 changed files with 4,604 additions and 6,511 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
.npm
.yarn/*
.next
!.yarn/releases
!.yarn/releases
.gitconfig
2 changes: 1 addition & 1 deletion components/elements/copy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Copy: FunctionComponent<CopyProps> = ({ value, ...props }) => {
"2px solid " +
theme.fn.rgba(
theme.colorScheme === "dark" ? theme.white : theme.black,
0.5
0.5,
),
transition: "all .3s",

Expand Down
47 changes: 0 additions & 47 deletions components/elements/discord-components.config.js

This file was deleted.

8 changes: 4 additions & 4 deletions components/elements/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { useMantineTheme } from "@mantine/core";
import DarkDanbotSpaceLogo from "@public/danbot-space.svg";
import LightDanbotSpaceLogo from "@public/danbot-space-inverse.svg";
import DarkDanBotHostLogo from "@public/dbh.svg";
import LightDanBotHostLogo from "@public/dbh.svg";

export const Logo = (): any => {
const theme = useMantineTheme();

return theme.colorScheme === "dark"
? LightDanbotSpaceLogo
: DarkDanbotSpaceLogo;
? LightDanBotHostLogo
: DarkDanBotHostLogo;
};
2 changes: 1 addition & 1 deletion components/elements/redirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Redirect: FunctionComponent<RedirectProps> = ({

const pages = navLinks
.map((link: Link) =>
link.link && !link.links ? link : [link, ...link.links]
link.link && !link.links ? link : [link, ...link.links],
)
.flat();

Expand Down
8 changes: 7 additions & 1 deletion components/footer/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ export const Footer: FunctionComponent = (): ReactElement => {
<div className={classes.footer}>
<div className={classes.wrapper}>
<Container className={classes.inner}>
<Image src={Logo()} alt="Danbot Space" height={32} width={32} />
<Image src={Logo()} alt="Danbot Host" height={64} width={64} />
<a href="https://discord.gg/dbh">
<img src="https://skillicons.dev/icons?i=discord" />
</a>
<a href="https://github.com/danbot-hosting">
<img src="https://skillicons.dev/icons?i=github" />
</a>
<Group className={classes.info} ta="center">
{footerLicense}
</Group>
Expand Down
2 changes: 1 addition & 1 deletion components/footer/config.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const footerLicense = [
"Danbot Space is not affiliated with Danbot Hosting LTD.",
"DanBot Hosting Docs is coded by our Dev team and updated by staff members",
].join(" ");

export const footerLinks = [{ label: "Contribute", link: "/contribute" }];
2 changes: 1 addition & 1 deletion components/layout/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const PanelProvider: FunctionComponent<
> = ({ children, ...props }) => {
const mobile = useMediaQuery("(max-width: 900px)");
const [colorScheme, setColorScheme] = useState<ColorScheme>(
props.colorScheme
props.colorScheme,
// "dark"
);

Expand Down
2 changes: 1 addition & 1 deletion components/layout/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ export const mdxComponents = {
Redirect: Redirect,
Tip: Tip,
Copy: Copy,
};
};
4 changes: 2 additions & 2 deletions components/links/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Links: FunctionComponent<Link> = ({
const hasLinks = Array.isArray(links);
const [opened, setOpened] = useState(
initiallyOpened ||
(hasLinks ? links : []).some((item) => router.pathname === item.link)
(hasLinks ? links : []).some((item) => router.pathname === item.link),
);
const ChevronIcon = theme.dir === "ltr" ? ChevronRight : ChevronLeft;
const items = (hasLinks ? links : []).map((link) =>
Expand All @@ -45,7 +45,7 @@ export const Links: FunctionComponent<Link> = ({
>
{link.label}
</Text>
)
),
);

return (
Expand Down
6 changes: 3 additions & 3 deletions components/links/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const useStyles = createStyles((theme) => ({
textShadow:
theme.fn.rgba(
theme.colorScheme === "dark" ? theme.white : theme.black,
0.3
0.3,
) + " 0 0 5px",
},
},
Expand All @@ -37,7 +37,7 @@ export const useStyles = createStyles((theme) => ({
textShadow:
theme.fn.rgba(
theme.colorScheme === "dark" ? theme.white : theme.black,
0.3
0.3,
) + " 0 0 5px",
},

Expand Down Expand Up @@ -74,7 +74,7 @@ export const useStyles = createStyles((theme) => ({
textShadow:
theme.fn.rgba(
theme.colorScheme === "dark" ? theme.white : theme.black,
0.3
0.3,
) + " 0 0 5px",
},
},
Expand Down
2 changes: 1 addition & 1 deletion components/search/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Search: FunctionComponent<InputProps> = (props): ReactElement => {
const router = useRouter();
const pages = navLinks
.map((link: Link) =>
link.link && !link.links ? link : [link, ...link.links]
link.link && !link.links ? link : [link, ...link.links],
)
.flat();

Expand Down
6 changes: 2 additions & 4 deletions config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
WatsonHealth3DCurveManual,
Book,
Portfolio,
Terminal,
BareMetalServer,
UserMultiple,
Expand All @@ -18,24 +19,22 @@ export const navLinks: Link[] = [
link: "/introduction",
},
{ label: "Getting Started", icon: Book, link: "/getting-started" },
{ label: "Staff List", icon: Portfolio, link: "/staff-list" },
{
label: "Beginner's Guidebook",
icon: UserMultiple,
links: [
{ label: "Creating A Bot", link: "/beginner/creating-a-bot" },
{ label: "Proxying", link: "/beginner/proxying" },
{ label: "Ticket System", link: "/beginner/tickets" },
{ label: "Wordpress", link: "/beginner/wordpress" },
],
},
{
label: "Advanced Management",
icon: Terminal,
links: [
{ label: "DBH API", link: "/advanced/dbh-api" },
{ label: "SFTP Using VSCode", link: "/advanced/vscode-sftp" },
{ label: "ShareX Setup", link: "/advanced/sharex-setup" },
{ label: "Status API", link: "/advanced/status-api" },
],
},
{
Expand All @@ -52,7 +51,6 @@ export const navLinks: Link[] = [
{ label: "Development", title: true },
{ label: "All In One (AIO)", link: "/server/development/aio" },
{ label: "Code Server", link: "/server/development/code-server" },
{ label: "Java", link: "/server/development/java" },
{ label: "Node.js", link: "/server/development/nodejs" },
{ label: "Python", link: "/server/development/python" },
{ label: "Red Discord Bot", link: "/server/development/rdb" },
Expand Down
101 changes: 101 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit be2e527

Please sign in to comment.