From e3fdc9aa1295dbfc5dcc07d3a69890561162645b Mon Sep 17 00:00:00 2001 From: Yana Date: Thu, 5 Dec 2024 21:21:59 +0700 Subject: [PATCH] wip --- explorer-nextjs/app/components/ExplorerCard.tsx | 6 ++++-- explorer-nextjs/app/page.tsx | 12 ------------ explorer-nextjs/docker-compose.yml | 7 +++++-- explorer-nextjs/tsconfig.json | 3 ++- explorer-nextjs/var/nym-explorer-test.db | Bin 0 -> 32768 bytes 5 files changed, 11 insertions(+), 17 deletions(-) create mode 100644 explorer-nextjs/var/nym-explorer-test.db diff --git a/explorer-nextjs/app/components/ExplorerCard.tsx b/explorer-nextjs/app/components/ExplorerCard.tsx index 0a8ce3697d..5d7bc45698 100644 --- a/explorer-nextjs/app/components/ExplorerCard.tsx +++ b/explorer-nextjs/app/components/ExplorerCard.tsx @@ -251,8 +251,10 @@ const CardChat = () => { if (typeof window !== "undefined") { // Set Remark42 configuration on the window object window.remark_config = { - host: "http://localhost:8081", - site_id: "remark42", + // host: "http://localhost:8081", + host: "https://remark.blockfend.com", + // site_id: "remark42", + site_id: "nym-explorer-test", components: ["embed", "last-comments"], max_shown_comments: 100, theme: mode === "light" ? "light" : "dark", diff --git a/explorer-nextjs/app/page.tsx b/explorer-nextjs/app/page.tsx index c0027157a5..e734af66e8 100644 --- a/explorer-nextjs/app/page.tsx +++ b/explorer-nextjs/app/page.tsx @@ -26,18 +26,6 @@ import { } from "./components/AccountStatsCard"; import TwoSidedSwitch from "./components/ExplorerSwitchButton"; -// type ContentCardProps = { -// overTitle?: string; -// title?: string; -// upDownLine?: ICardUpDownPriceLineProps; -// titlePrice?: ICardTitlePriceProps; -// dataRows?: ICardDataRowsProps; -// graph?: Array; -// progressBar?: IExplorerProgressBarProps; -// paragraph?: string; -// onClick?: ReactEventHandler; -// }; - const explorerCard: ContentCardProps = { overTitle: "SINGLE", profileImage: {}, diff --git a/explorer-nextjs/docker-compose.yml b/explorer-nextjs/docker-compose.yml index 120ac5f94b..b653b01c8e 100644 --- a/explorer-nextjs/docker-compose.yml +++ b/explorer-nextjs/docker-compose.yml @@ -22,10 +22,13 @@ services: - "443:8443" environment: - - REMARK_URL=http://localhost:8081 + # - REMARK_URL=http://localhost:8081 + - REMARK_URL=https://remark.blockfend.com - SECRET=secret-key - AUTH_ANON=true - - SITE=remark42 + # - SITE=remark42 + - SITE=nym-explorer-test + # - DEBUG=true # - AUTH_GOOGLE_CID # - AUTH_GOOGLE_CSEC diff --git a/explorer-nextjs/tsconfig.json b/explorer-nextjs/tsconfig.json index 68ef0fdf3b..701d0e6984 100644 --- a/explorer-nextjs/tsconfig.json +++ b/explorer-nextjs/tsconfig.json @@ -28,7 +28,8 @@ "../assets/*" ] }, - "moduleResolution": "node" + "moduleResolution": "node", + "target": "ES2017" }, "include": [ "next-env.d.ts", diff --git a/explorer-nextjs/var/nym-explorer-test.db b/explorer-nextjs/var/nym-explorer-test.db new file mode 100644 index 0000000000000000000000000000000000000000..7e066af1f9e4c2291cbf864ba6d175e049e01325 GIT binary patch literal 32768 zcmeI)Jx&5a7zSX(pIDGcEe(~Go$(G9HlDzsEC~_8uxNsnm+%lC!b@0s1QYD-oWUJ} z1hNeY6c5SA&bRxrOrCCb7b=y%*Iu!meAXt_IIjQSUmULN7lVUhJI#i1|EzKPeE;*E za<&8r5FkK+009C72oNAZfWY<$>=aX3wf^5-m}*+@r+oVS(Z%@c`26x@A+9ArfB*pk z1PBlyK!5-N0tB`|Ag$+%+x=TGBU2zifB*pk1PBlyK!5-N0tD7AknZoN>j3LMzw;3w zK!5-N0t5&UAV7cs0Ro#BNYC+CD~Hp`#OL{6LdDoZjauDa={aMzH1w1WyPa;A8Se(0~8|0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBly YK!5-N0t5&UAV7cs0RjXF5ZIW&FBq04%>V!Z literal 0 HcmV?d00001