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

Application wide UI changes and partial integration of smart contract calls #17

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[default]
[profile.default]
src = 'src'
out = 'out'
libs = ['lib']
Expand Down
20 changes: 4 additions & 16 deletions frontend/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
"es2021": true,
"jest/globals": true
},
"extends": [
"plugin:react/recommended",
"standard",
"prettier",
"eslint:recommended"
],
"extends": ["plugin:react/recommended", "standard", "prettier", "eslint:recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
Expand All @@ -18,18 +13,11 @@
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"jest",
"react",
"react-hooks",
"@typescript-eslint"
],
"plugins": ["jest", "react", "react-hooks", "@typescript-eslint"],
"rules": {
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"error"
],
"@typescript-eslint/no-use-before-define": ["error"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}
}
2 changes: 1 addition & 1 deletion frontend/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid"
}
}
5 changes: 2 additions & 3 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# N3RP Frontend

***Built from [JonLuca](https://jonlu.ca/)'s [Vite Typescript SSR React boilerplate](https://github.com/jonluca/vite-typescript-ssr-react)***

**_Built from [JonLuca](https://jonlu.ca/)'s [Vite Typescript SSR React boilerplate](https://github.com/jonluca/vite-typescript-ssr-react)_**

## Development

Expand Down Expand Up @@ -41,4 +40,4 @@ yarn build will create the assets in `dist` - a `client` and `server` folder. Se

## CI

We use GitHub actions to build the app. The badge is at the top of the repo. Currently it just confirms that everything builds properly.
We use GitHub actions to build the app. The badge is at the top of the repo. Currently it just confirms that everything builds properly.
17 changes: 11 additions & 6 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,26 @@
<html lang="en">
<head>
<title>n3rp</title>
<link rel="icon" href="static/favicon.png">
<link rel="icon" href="static/favicon.png" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="width=device-width,initial-scale=1,maximum-scale=10,minimum-scale=.25,user-scalable=yes" name="viewport">
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<meta
content="width=device-width,initial-scale=1,maximum-scale=10,minimum-scale=.25,user-scalable=yes"
name="viewport"
/>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
</head>
<body>
<div id="app" style="height: 100%;width: 100%;"><!--app-html--></div>
<div id="app" style="height: 100%; width: 100%"><!--app-html--></div>
<script type="module" src="/src/client/entry-client.tsx"></script>
<script>window.global = window;</script>
<script>
window.global = window;
</script>
<script type="module">
import { Buffer } from "buffer/"; // <-- no typo here ("/")
import process from "process";
import EventEmitter from "events";

window.Buffer = Buffer;
window.process = process;
window.EventEmitter = EventEmitter;
Expand Down
Loading