diff --git a/@types/index.ts b/src/@types/index.ts similarity index 98% rename from @types/index.ts rename to src/@types/index.ts index c423969..be192b6 100644 --- a/@types/index.ts +++ b/src/@types/index.ts @@ -71,7 +71,7 @@ export interface Network { oceanAddress?: string } -export interface Data { +export interface Summary { component: string status: State } diff --git a/pages/_app.tsx b/src/pages/_app.tsx similarity index 100% rename from pages/_app.tsx rename to src/pages/_app.tsx diff --git a/pages/index.tsx b/src/pages/index.tsx similarity index 59% rename from pages/index.tsx rename to src/pages/index.tsx index a1710fd..9ae59d1 100644 --- a/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,6 +1,6 @@ import Head from 'next/head' import React, { ReactElement, useEffect, useState } from 'react' -import { Status, State, Summary } from '../@types' +import { State, Summary } from '../@types' import styles from '../styles/Home.module.css' import { getData, getSummary } from '../utils/getData' @@ -65,47 +65,3 @@ export default function HomePage(): ReactElement { ) } - -// <> -//
-//

{data[0].component}

-//

{data[0].status}

-//
-//
-//

Provider

-//

{statuses[network].provider.status}

-//
- -//
-//

Subgraph

-//

{statuses[network].subgraph.status}

-//
- -//
-//

Market

-//

{statuses[network].market}

-//
-//
-//

Port

-//

{statuses[network].port}

-//
-//
-//

Data Farming

-//

{statuses[network].dataFarming}

-//
-//
-//

Operator Service

-//

{statuses[network].operator.status}

-//
-// {statuses[network].faucet.status && ( -//
-//

Faucet

-//

{statuses[network].faucet.status}

-//
-// )} -//
-//

DAO Grants

-//

{statuses[network].daoGrants}

-//
-// -// } diff --git a/styles/Home.module.css b/src/styles/Home.module.css similarity index 94% rename from styles/Home.module.css rename to src/styles/Home.module.css index 102b697..c5f343b 100644 --- a/styles/Home.module.css +++ b/src/styles/Home.module.css @@ -10,6 +10,8 @@ flex-direction: column; justify-content: center; align-items: center; + font-family: 'Sharp Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', + Helvetica, Arial, sans-serif; } .footer { diff --git a/styles/globals.css b/src/styles/globals.css similarity index 100% rename from styles/globals.css rename to src/styles/globals.css diff --git a/utils/getData.ts b/src/utils/getData.ts similarity index 96% rename from utils/getData.ts rename to src/utils/getData.ts index db0de78..1c1371f 100644 --- a/utils/getData.ts +++ b/src/utils/getData.ts @@ -1,6 +1,6 @@ import axios, { AxiosResponse } from 'axios' import { Status, Summary } from '../@types' -import { statusServiceUri } from '../app.config' +import { statusServiceUri } from '../../app.config' export async function getData(): Promise { try { diff --git a/tsconfig.json b/tsconfig.json index c7cb463..4bdc6f9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,23 +1,3 @@ -// { -// "compilerOptions": { -// "target": "es5", -// "lib": ["dom", "dom.iterable", "esnext"], -// "allowJs": true, -// "skipLibCheck": true, -// "strict": true, -// "forceConsistentCasingInFileNames": true, -// "noEmit": true, -// "esModuleInterop": true, -// "module": "esnext", -// "moduleResolution": "node", -// "resolveJsonModule": true, -// "isolatedModules": true, -// "jsx": "preserve", -// "incremental": true -// }, -// "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], -// "exclude": ["node_modules"] -// } { "compilerOptions": { "target": "esnext",