refactor: verwijder MAOSv6 wallet referenties

- Verwijder window.maosv6 provider uit wallet discovery
- Verwijder isMAOS veld uit DetectedWallet type
- Verwijder MAOS badge uit login page
- Update titel naar 'IPFS Portal' (geen MAOS meer)
- Update foutmeldingen naar wallet-agnostisch
- Update tests naar standaard wallet fallback
- 191 tests passing
This commit is contained in:
maikrolf
2026-09-19 14:28:22 +02:00
parent 7c7854e08f
commit 361f11033d
11 changed files with 21 additions and 72 deletions
+1 -2
View File
@@ -136,8 +136,7 @@ export default function AdminPaymentPage() {
const switched = await switchToChain270(prov || undefined);
if (switched) setWrongChain(false);
}
if (window.maosv6) setWalletType('MAOS Wallet');
else if (window.ethereum?.isRabby) setWalletType('Rabby');
if (window.ethereum?.isRabby) setWalletType('Rabby');
else if (window.ethereum?.isMetaMask) setWalletType('MetaMask');
else setWalletType('Wallet');
} catch (e: unknown) {
+1 -1
View File
@@ -4,7 +4,7 @@ import Providers from '@/components/Providers';
import SWRegister from '@/components/SWRegister';
export const metadata: Metadata = {
title: 'MAOS IPFS Portal',
title: 'IPFS Portal',
description: 'Decentralized storage management for your IPFS node',
manifest: '/manifest.json',
icons: { icon: '/favicon.svg' },
+1 -6
View File
@@ -108,11 +108,6 @@ export default function LoginPage() {
<div className="flex-1 min-w-0">
<div className="text-sm font-medium text-surface-200">
{dw.name}
{dw.isMAOS && (
<span className="ml-2 text-[10px] px-1.5 py-0.5 rounded-full bg-accent-purple/20 text-accent-purple">
MAOS
</span>
)}
</div>
<div className="text-xs text-surface-500 mt-0.5">
Klik om te verbinden
@@ -143,7 +138,7 @@ export default function LoginPage() {
{/* Footer */}
<p className="text-center text-[10px] text-surface-600 mt-6">
<Shield className="w-3 h-3 inline-block mr-1" />
Verbonden met MAOS IPFS node
Verbonden met IPFS node
</p>
</div>
</div>
+2 -2
View File
@@ -38,7 +38,7 @@ export default function LandingPage() {
{/* Badge */}
<div className="inline-flex items-center gap-2 px-3 py-1 rounded-full glass text-sm text-surface-400 mb-8">
<Server className="w-3.5 h-3.5 text-accent-cyan" />
<span>MAOSv6 · IPFS Gateway</span>
<span>IPFS Gateway</span>
</div>
{/* Title */}
@@ -108,7 +108,7 @@ export default function LandingPage() {
{/* Footer */}
<div className="absolute bottom-6 text-xs text-surface-600">
MAOSv6 · Chain 270
Chain 270
</div>
</div>
);