From 492fe16e5538210e6874ae4e67a6d86aa51a1cab Mon Sep 17 00:00:00 2001 From: Yana Date: Mon, 2 Dec 2024 22:18:53 +0700 Subject: [PATCH] wip --- .../app/components/ExplorerCard.tsx | 42 ++++++- explorer-nextjs/app/layout.tsx | 14 +-- .../network-components/mixnodes/[id]/page.tsx | 104 ++++++------------ explorer-nextjs/app/page.tsx | 4 + explorer-nextjs/remark42/var/remark42.db | Bin 0 -> 65536 bytes 5 files changed, 85 insertions(+), 79 deletions(-) create mode 100644 explorer-nextjs/remark42/var/remark42.db diff --git a/explorer-nextjs/app/components/ExplorerCard.tsx b/explorer-nextjs/app/components/ExplorerCard.tsx index 7c3b8edb9e..341b60b3b5 100644 --- a/explorer-nextjs/app/components/ExplorerCard.tsx +++ b/explorer-nextjs/app/components/ExplorerCard.tsx @@ -1,4 +1,11 @@ -import { Card, CardContent, Typography, Box, IconButton } from "@mui/material"; +import { + Card, + CardContent, + Typography, + Box, + IconButton, + Button, +} from "@mui/material"; import React, { FC, ReactElement, ReactEventHandler, useEffect } from "react"; import { ExplorerLineChart, IExplorerLineChartData } from "./ExplorerLineChart"; import { @@ -17,6 +24,26 @@ import StarIcon from "@mui/icons-material/Star"; import Script from "next/script"; import { useMainContext } from "../context/main"; +declare global { + interface Window { + remark_config: { + host: string; + site_id: string; + components: string[]; + max_shown_comments: number; + theme: string; + locale: string; + show_email_subscription: boolean; + simple_view: boolean; + no_footer: boolean; + }; + REMARK42: { + createInstance: (config: typeof window.remark_config) => void; + changeTheme: (theme: "light" | "dark") => void; + }; + } +} + interface ICardUpDownPriceLineProps { percentage: number; numberWentUp: boolean; @@ -236,7 +263,6 @@ const CardChat = () => { components: ["embed", "last-comments"], max_shown_comments: 100, theme: mode === "light" ? "light" : "dark", - page_title: "My custom title for a page", locale: "en", show_email_subscription: false, simple_view: true, @@ -267,7 +293,7 @@ const CardChat = () => { return ( -
+