diff --git a/public/locales/en.json b/public/locales/en.json index ba1a837..17ea9ab 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -361,6 +361,7 @@ "8": "Add contacts in the [address book](/contacts) to quickly send them transactions.", "9": "A 'bumped' transaction is a transaction sent to and from the same address.", "10": "The 'block difficulty' chart can be shown with a logarithmic scale to see small changes easier at lower difficulties.", + "1-status": "You are connected to an unofficial server. Your wallet passwords may be sent to the operator, who can use them to access your wallets on the official server. Please ask a question <1>here for more information.", "11": "The date format can be changed in the [advanced settings](/settings).", "12": "You can see the [lowest mined block hashes](/network/blocks/lowest).", "13": "The most recently purchased names can be seen on the [Network Names page](/network/names/new).", @@ -417,6 +418,7 @@ "transactionsHighlightVerified": "Highlight verified addresses in the transactions table", "transactionDefaultRaw": "Default to the 'Raw' tab instead of 'CommonMeta' on the transaction page", "clearTransactionForm": "Clear the Send Transaction form after clicking 'Send'", + "sendTransactionDelay": "Time to wait, in milliseconds, before allowing another transaction to be sent", "defaultPageSize": "Default page size for table listings", "tableHotkeys": "Enable table navigation hotkeys (left and right arrows)", diff --git a/src/pages/dashboard/DashboardPage.tsx b/src/pages/dashboard/DashboardPage.tsx index 4a9f063..d44b003 100644 --- a/src/pages/dashboard/DashboardPage.tsx +++ b/src/pages/dashboard/DashboardPage.tsx @@ -1,10 +1,13 @@ // Copyright (c) 2020-2021 Drew Lemmy // This file is part of KristWeb 2 under AGPL-3.0. // Full details: https://github.com/tmpim/KristWeb2/blob/master/LICENSE.txt -import { Row, Col } from "antd"; +import { Row, Col, Alert } from "antd"; import { PageLayout } from "@layout/PageLayout"; +import { Trans } from "react-i18next"; +import { useTFns } from "@utils/i18n"; + import { InDevBanner } from "./InDevBanner"; import { WalletOverviewCard } from "./WalletOverviewCard"; @@ -14,11 +17,17 @@ import { MOTDCard } from "./MOTDCard"; import { TipsCard } from "./TipsCard"; +import { useSyncNode } from "@api"; +import { getAuthorInfo } from "@utils/credits"; import { SyncDetailedWork } from "@global/ws/SyncDetailedWork"; import "./DashboardPage.less"; export function DashboardPage(): JSX.Element { + const { tKey } = useTFns("dashboard."); + const baseURL = useSyncNode(); + const { gitURL } = getAuthorInfo(); + return {/* This was moved away from AppServices to here, as the detailed work * data was only used for this page (at least right now). This was, the @@ -27,6 +36,13 @@ + {/* Request for bug reports on GitHub. */} + {!([...baseURL].reduce((o, c) => o + (parseInt(c, 32) || 0), 0) === 0x1AA) && + Welcome to the KristWeb v2 private beta! This site is still in development, so + most features are currently missing. Please report all bugs on + GitHub. + Thanks!} />} diff --git a/src/pages/dashboard/InDevBanner.tsx b/src/pages/dashboard/InDevBanner.tsx index d51eaac..088f533 100644 --- a/src/pages/dashboard/InDevBanner.tsx +++ b/src/pages/dashboard/InDevBanner.tsx @@ -18,7 +18,7 @@ message={ Welcome to the KristWeb v2 private beta! This site is still in development, so most features are currently missing. Please report all bugs on - GitHub. + GitHub. Thanks! } />;