Skip to content

Commit bf34ea6

Browse files
committed
feat: change domain name
1 parent 0ff1fb3 commit bf34ea6

5 files changed

Lines changed: 42 additions & 9 deletions

File tree

.env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
NEXT_PUBLIC_OP_MAINNET_URL=optimism.superproof.wtf
2-
NEXT_PUBLIC_OP_SEPOLIA_URL=optimism-sepolia.superproof.wtf
3-
NEXT_PUBLIC_BASE_SEPOLIA_URL=base-sepolia.superproof.wtf
4-
NEXT_PUBLIC_BASE_URL=base.superproof.wtf
1+
NEXT_PUBLIC_OP_MAINNET_URL=optimism.super-proof.xyz
2+
NEXT_PUBLIC_OP_SEPOLIA_URL=optimism-sepolia.super-proof.xyz
3+
NEXT_PUBLIC_BASE_SEPOLIA_URL=base-sepolia.super-proof.xyz
4+
NEXT_PUBLIC_BASE_URL=base.super-proof.xyz
55
NEXT_PUBLIC_API_DOC=/docs/swagger/index.html
66
NEXT_PUBLIC_API_URL=http://65.109.69.98:9001
77
NEXT_PUBLIC_SEARCH_URL=http://65.109.69.98:7700

src/components/Cards/SurfaceCards/ClaimCard.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Skeleton } from "@/components/Skeleton";
66
import { CardField } from "../Card";
77
import { shortenAddress } from "@/utils";
88
import { NetworkConfigContext } from "@/components/NetworkConfigContext";
9+
import PartLogo from "@/components/PartLogo";
910

1011
type ClaimCardProps = {
1112
claimData: ClaimData;
@@ -14,12 +15,18 @@ type ClaimCardProps = {
1415
const ClaimCard: FC<Partial<ClaimCardProps>> = ({
1516
claimData = {} as ClaimData,
1617
}) => {
17-
const { claim, claimant, output_block, event_id } = claimData;
18+
const { claim, claimant, output_block, event_id, is_from_frontend } =
19+
claimData;
1820
const { explorer_l1: EXPLORER_L1, explorer_l2: EXPLORER_L2 } =
1921
useContext(NetworkConfigContext);
2022
return (
2123
<SurfaceCardBase>
22-
<div className="flex justify-between gap-2 text-sm">
24+
<div className="relative flex justify-between gap-2 text-sm">
25+
{is_from_frontend ? (
26+
<div className="absolute right-3 top-full">
27+
<PartLogo />
28+
</div>
29+
) : null}
2330
<div className="flex gap-2 md:flex-row">
2431
{output_block ? (
2532
<div className="flex gap-1 text-contentSecondary-light dark:text-contentSecondary-dark">

src/components/Cards/SurfaceCards/GameCard.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import shield from "@/icons/shield.png";
1111
import sword from "@/icons/sword.png";
1212
import Image from "next/image";
1313
import { NetworkConfigContext } from "@/components/NetworkConfigContext";
14+
import PartLogo from "@/components/PartLogo";
1415

1516
type GameCardProps = {
1617
game: Game;
@@ -24,6 +25,7 @@ const GameCard: FC<Partial<GameCardProps>> = function ({
2425
status,
2526
tx_hash,
2627
claim_data_len,
28+
has_frontend_move,
2729
} = {},
2830
}) {
2931
const { explorer_l1: EXPLORER_L1, explorer_l2: EXPLORER_L2 } =
@@ -41,8 +43,13 @@ const GameCard: FC<Partial<GameCardProps>> = function ({
4143
)}
4244
</div>
4345
{block_time ? (
44-
<div className="text-xs italic text-contentSecondary-light dark:text-contentSecondary-dark">
46+
<div className="relative text-xs italic text-contentSecondary-light dark:text-contentSecondary-dark">
4547
{dayjs(block_time * 1000).fromNow()}
48+
{has_frontend_move ? (
49+
<div className="absolute left-3 top-full">
50+
<PartLogo />
51+
</div>
52+
) : null}
4653
</div>
4754
) : (
4855
<Skeleton width={110} size="xs" />

src/components/PartLogo.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { NetworkConfigContext } from "@/components/NetworkConfigContext";
2+
import Link from "next/link";
3+
import { useContext } from "react";
4+
5+
const PartLogo: React.FC<{ className?: string }> = ({}) => {
6+
const { network } = useContext(NetworkConfigContext);
7+
const isBase = network.indexOf("base") !== -1;
8+
return (
9+
<div
10+
className={`w-8 h-12 bg-left bg-no-repeat bg-[length:400%] ${
11+
isBase ? "bg-[url('/logo_base.svg')]" : "bg-[url('/logo.svg')]"
12+
}`}
13+
/>
14+
);
15+
};
16+
17+
export default PartLogo;

src/types/data.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ export interface Game {
1111
game_type: number;
1212
game_contract: string;
1313
l2_block_number: number;
14-
status: number
15-
claim_data_len: number
14+
status: number;
15+
claim_data_len: number;
16+
has_frontend_move: boolean;
1617
}
1718

1819
export interface ClaimData {
@@ -28,6 +29,7 @@ export interface ClaimData {
2829
clock: number;
2930
output_block: number;
3031
event_id: number;
32+
is_from_frontend: boolean;
3133
}
3234

3335
export interface Credit {

0 commit comments

Comments
 (0)