@@ -344,14 +334,6 @@ export function PublicLayout() {
>
{t("popular")}
-
setOpen(false)}
- >
- {t("wallet")}
-
{t("footerAbout")}
-
- {t("profile")}
-
{import.meta.env.VITE_DISABLE_ADMIN !== "true" ? (
{
@@ -23,9 +20,7 @@ void (async () => {
const { default: App } = await import("./App");
ReactDOM.createRoot(root).render(
-
-
-
+
,
);
})();
diff --git a/src/pages/Wallet/index.tsx b/src/pages/Wallet/index.tsx
deleted file mode 100644
index cb75c41..0000000
--- a/src/pages/Wallet/index.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import { RainbowKitProvider, darkTheme } from "@rainbow-me/rainbowkit";
-import { WagmiProvider } from "wagmi";
-import "@rainbow-me/rainbowkit/styles.css";
-import { WalletLoginControls } from "../../components/WalletLoginControls";
-import { useI18n } from "../../i18n";
-import { wagmiConfig } from "../../wagmiConfig";
-
-export function WalletPage() {
- const { t } = useI18n();
-
- return (
-
-
{t("walletPageTitle")}
-
- {t("walletPageIntro")}
-
-
- - {t("walletStepExtension")}
- - {t("walletStepQR")}
- - {t("walletStepSign")}
-
-
- {import.meta.env.VITE_WALLETCONNECT_PROJECT_ID ? (
-
-
-
-
-
- ) : (
-
- {t("walletSetupNeeded")}
-
- )}
-
-
- );
-}
diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts
index 0724325..dfec89e 100644
--- a/src/vite-env.d.ts
+++ b/src/vite-env.d.ts
@@ -3,7 +3,6 @@
interface ImportMetaEnv {
readonly VITE_API_URL: string;
readonly VITE_API_PREFIX?: string;
- readonly VITE_WALLETCONNECT_PROJECT_ID: string;
readonly VITE_ADMIN_UI_PREFIX?: string;
/** When `"true"`, bundle admin UI only (no public pages); use with `VITE_ADMIN_UI_PREFIX` or default secret prefix. */
readonly VITE_ADMIN_ONLY?: string;
diff --git a/src/wagmiConfig.ts b/src/wagmiConfig.ts
deleted file mode 100644
index adb4267..0000000
--- a/src/wagmiConfig.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { getDefaultConfig } from "@rainbow-me/rainbowkit";
-import { arbitrum, bsc, mainnet, polygon, sepolia } from "wagmi/chains";
-
-/**
- * Get a free Project ID: https://cloud.reown.com (WalletConnect / Reown)
- * Without it, WalletConnect (mobile / QR on desktop) will not work; browser extensions may still work in some setups.
- */
-const projectId = import.meta.env.VITE_WALLETCONNECT_PROJECT_ID || "";
-
-export const wagmiConfig = getDefaultConfig({
- appName: "ARK Database",
- projectId: projectId || "00000000000000000000000000000000",
- chains: [mainnet, bsc, arbitrum, polygon, sepolia],
- ssr: false,
-});
diff --git a/src/walletToken.ts b/src/walletToken.ts
deleted file mode 100644
index 5ee579e..0000000
--- a/src/walletToken.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-const KEY = "ark_wallet_token";
-
-export function getWalletToken() {
- return localStorage.getItem(KEY) || "";
-}
-
-export function setWalletToken(t: string) {
- localStorage.setItem(KEY, t);
-}
-
-export function clearWalletToken() {
- localStorage.removeItem(KEY);
-}