The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove some default exports

Luna 5407363e a738628f

+13 -18
+1 -1
app/(home)/commands.component.tsx
··· 11 11 uses: number; 12 12 } 13 13 14 - export default async function Commands() { 14 + export async function Commands() { 15 15 16 16 const commands = await fetch(`${process.env.NEXT_PUBLIC_API}/commands`, defaultFetchOptions) 17 17 .then((res) => res.json())
+1 -1
app/(home)/faq.component.tsx
··· 111 111 showTitle?: boolean; 112 112 } 113 113 114 - export default function Faq({ 114 + export function Faq({ 115 115 showTitle = false 116 116 }: Props) { 117 117 const cookies = useCookies();
+1 -1
app/(home)/layout.tsx
··· 1 - import Footer from "@/components/footer"; 1 + import { Footer } from "@/components/footer"; 2 2 3 3 export default async function RootLayout({ 4 4 children
+5 -11
app/(home)/page.tsx
··· 16 16 import DiscordUser from "@/components/discord/user"; 17 17 import ImageReduceMotion from "@/components/image-reduce-motion"; 18 18 import { ServerButton } from "@/components/server-button"; 19 + import { defaultFetchOptions } from "@/lib/api"; 19 20 import AiPic from "@/public/ai.webp"; 20 21 import ArrowPic from "@/public/arroww.webp"; 21 22 import CaptchaPic from "@/public/captcha.webp"; ··· 30 31 import { actor } from "@/utils/tts"; 31 32 import { getCanonicalUrl } from "@/utils/urls"; 32 33 33 - import Commands from "./commands.component"; 34 - import Faq from "./faq.component"; 35 - import Ratings from "./ratings.component"; 34 + import { Commands } from "./commands.component"; 35 + import { Faq } from "./faq.component"; 36 + import { Ratings } from "./ratings.component"; 36 37 37 38 const montserrat = Montserrat({ subsets: ["latin"] }); 38 39 const handwritten = Patrick_Hand({ subsets: ["latin"], weight: "400" }); 39 40 40 41 export const revalidate = 43200; 41 42 42 - const fetchOptions = { 43 - headers: { 44 - Authorization: process.env.API_SECRET as string 45 - }, 46 - next: { revalidate: 60 * 60 * 12 } 47 - }; 48 - 49 43 export default async function Home() { 50 - const topGuilds = await fetch(`${process.env.NEXT_PUBLIC_API}/top-guilds`, fetchOptions) 44 + const topGuilds = await fetch(`${process.env.NEXT_PUBLIC_API}/top-guilds`, defaultFetchOptions) 51 45 .then((res) => res.json()) 52 46 .catch(() => null) as ApiV1TopguildsGetResponse[] | null; 53 47
+1 -1
app/(home)/ratings.component.tsx
··· 15 15 rating: "positive" | "negative"; 16 16 } 17 17 18 - export default async function Ratings() { 18 + export async function Ratings() { 19 19 const reviews = await fetch(`${process.env.RATINGS_API}/?id=${process.env.CLIENT_ID}`, defaultFetchOptions) 20 20 .then((res) => res.json()) 21 21 .catch(() => []) as Review[];
+1 -1
app/docs/[...pathname]/layout.tsx
··· 4 4 import { BsDiscord, BsGithub } from "react-icons/bs"; 5 5 import { HiExternalLink, HiUserAdd, HiViewGridAdd } from "react-icons/hi"; 6 6 7 - import Footer from "@/components/footer"; 7 + import { Footer } from "@/components/footer"; 8 8 import metadata from "@/public/docs/meta.json"; 9 9 import { getBaseUrl, getCanonicalUrl } from "@/utils/urls"; 10 10
+1 -1
app/docs/[...pathname]/page.tsx
··· 2 2 import { readFile } from "fs/promises"; 3 3 import Image from "next/image"; 4 4 5 - import Faq from "@/app/(home)/faq.component"; 5 + import { Faq } from "@/app/(home)/faq.component"; 6 6 import BeautifyMarkdown from "@/components/markdown"; 7 7 import Notice, { NoticeType } from "@/components/notice"; 8 8 import { HomeButton, ScreenMessage, SupportButton } from "@/components/screen-message";
+2 -1
components/footer.tsx
··· 12 12 import BlahajPic from "@/public/blahaj.webp"; 13 13 import cn from "@/utils/cn"; 14 14 15 - export default async function Footer(props: HTMLProps<HTMLDivElement>) { 15 + export async function Footer(props: HTMLProps<HTMLDivElement>) { 16 16 17 + // do not change 17 18 const dev = await getUser("821472922140803112"); 18 19 19 20 return (