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

fix: issues after rebase #7

Merged
merged 8 commits into from
Mar 11, 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
4 changes: 2 additions & 2 deletions .github/workflows/frontend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ jobs:
yarn lint --max-warnings=0
yarn prettier --check "src/**/*.(tsx|ts)"

- name: Pretend we have chains.json and run tests
run: cp public/test-file.json src/chains.json && yarn test
- name: Pretend we have data.json and run tests
run: cp public/test-file.json public/data.json && yarn test
116 changes: 0 additions & 116 deletions .github/workflows/update.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ yarn-error.log*
.idea

# Auto-generated data file for frontend
src/chains.json
public/data.json

# Rust build
target
Expand Down
4 changes: 2 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
data_file = "src/chains.json"
data_file = "public/data.json"
public_dir = "public"
qr_dir = "public/qr"

Expand All @@ -14,4 +14,4 @@ color = "#fcc367"
[[chains]]
name = "altair"
rpc_endpoint = "wss://fullnode.altair.centrifuge.io"
color = "#ffb700"
color = "#ffb700"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "metadata-portal",
"version": "0.2.0",
"homepage": "https://centrifuge.github.io/metadata-portal",
"version": "0.1.0",
"homepage": "https://centrifuge.github.io/metadata-portal/",
"private": true,
"dependencies": {
"@headlessui/react": "^1.7.10",
Expand Down
2 changes: 1 addition & 1 deletion public/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
centrifuge.github.io/metadata-portal
centrifuge.github.io/metadata-portal/
14 changes: 14 additions & 0 deletions public/portals.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parity": {
"name": "Parity",
"url": "https://metadata.parity.io/"
},
"k-factory": {
"name": "Centrifuge",
"url": "https://centrifuge.github.io/metadata-portal/"
},
"novasama": {
"name": "Novasama",
"url": "https://metadata.novasama.io/"
}
}
1 change: 1 addition & 0 deletions src/assets/icons/vault.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/components/About.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const About = () => (
<div className="text-sm bg-neutral-100 text-black opacity-70 p-4 rounded-3xl">
Metadata Portal is a self-hosted web page which shows you the latest
metadata for a given network.
</div>
);
94 changes: 0 additions & 94 deletions src/components/AddToSigner.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions src/components/App.css

This file was deleted.

9 changes: 7 additions & 2 deletions src/components/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { render } from "@testing-library/react";
import App from "./App";
import { BrowserRouter as Router } from "react-router-dom";

test("renders ok", () => {
render(<App />);
render(
<Router>
<App />
</Router>
);
});

test("data file exists", async () => {
require("../chains.json");
require("../../public/data.json");
});
Loading
Loading