Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use yarn 4.3.1 #51

Merged
merged 3 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions components/rank/RankRow.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
"tailwindcss": "^3.1.3",
"typescript": "^5.4.5"
},
"packageManager": "yarn@4.1.1"
"packageManager": "yarn@4.3.1"
}
2 changes: 1 addition & 1 deletion pages/[network]/avatar/[address].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { NextPage, GetServerSideProps } from "next";
import { getBalance } from "../../../apiClient";
import { getBalance } from "../../../utils/apiClient";
import { getGraphQLSDK } from "../../../utils/mimirGraphQLClient";
import { getPlanetName, getNodeType } from "../../../utils/network";
import { NodeType } from "../../../constants/network";
Expand Down
47 changes: 0 additions & 47 deletions pages/[network]/rank.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion pages/[network]/raw/[address].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { NextPage, GetServerSideProps } from "next"
import { networkToSDK } from "../../../sdk";
import { networkToSDK } from "../../../utils/sdk";
import { decode } from "bencodex";
import React from "react";
import { JSONTree } from "react-json-tree";
Expand Down
2 changes: 1 addition & 1 deletion pages/[network]/stake/[address].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { NextPage, GetServerSideProps } from "next"
import { networkToSDK } from "../../../sdk";
import { networkToSDK } from "../../../utils/sdk";
import { BencodexList, decode } from "bencodex";
import React from "react";
import * as crypto from "node:crypto";
Expand Down
4 changes: 2 additions & 2 deletions apiClient.ts → utils/apiClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GraphQLClient } from "graphql-request";
import { NetworkType, NodeType } from "./constants/network";
import { PlanetName, getSdk } from "./generated/mimir/graphql-request";
import { NetworkType, NodeType } from "../constants/network";
import { PlanetName, getSdk } from "../generated/mimir/graphql-request";

export const BASE_URL = "https://mimir.nine-chronicles.dev/";
export const INTERNAL_BASE_URL = "https://mimir-internal.nine-chronicles.dev/";
Expand Down
2 changes: 1 addition & 1 deletion sdk.ts → utils/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GetServerSidePropsContext } from "next/types";
import { getSdk } from "./generated/headless/graphql-request";
import { getSdk } from "../generated/headless/graphql-request";
import { GraphQLClient } from "graphql-request"

function parseNetworkConfMap(confMapString: string): Map<string, ReturnType<typeof getSdk>> {
Expand Down