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

WIP: ts-nitro version of demo auth app #136

Closed
wants to merge 35 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3a4e806
ts-nitro version of demo auth app
telackey Apr 10, 2024
c1ed737
env
telackey Apr 19, 2024
1bd8f76
env
telackey Apr 19, 2024
5b67c06
Get PeerId
telackey Apr 22, 2024
cbe477e
Update RPC as needed
telackey Apr 22, 2024
e12d826
Support HTTP or WebSocket connections.
telackey Apr 24, 2024
59aa4b5
v0.1.16
telackey Apr 25, 2024
d98ac60
0.2.0
telackey Apr 25, 2024
68d3f99
remove .npmrc
telackey Apr 25, 2024
a9116dd
separate org
telackey Apr 25, 2024
b5fb5c7
separate org
telackey Apr 25, 2024
6859226
missing deps
telackey Apr 25, 2024
3245dad
diff org
telackey Apr 25, 2024
2be6a03
missing deps
telackey Apr 25, 2024
0e7c0a7
diff org
telackey Apr 26, 2024
06e7a9f
bump
telackey Apr 26, 2024
4b153b6
missing deps
telackey Apr 26, 2024
546334a
dep
telackey Apr 26, 2024
69b3e0e
dep
telackey Apr 26, 2024
17bcb4c
missing deps
telackey Apr 26, 2024
6be61e6
bump
telackey Apr 26, 2024
852c38a
bump
telackey Apr 26, 2024
68bc8c5
bump
telackey Apr 26, 2024
86cf954
try bundling
telackey Apr 26, 2024
155a204
try bundling
telackey Apr 26, 2024
7c87984
try bundling
telackey Apr 26, 2024
432e3d8
try bundling
telackey Apr 26, 2024
1bab4f5
try bundling
telackey Apr 26, 2024
4a049ab
How did this work before?
telackey May 11, 2024
f220895
Working transpiled
telackey May 17, 2024
cbc4126
Patch out eval statements.
telackey May 22, 2024
9fd8c33
Fix node build.
telackey May 22, 2024
982e127
remove dead config
telackey May 22, 2024
1945962
Emit TS types
telackey May 29, 2024
80c055c
Fix build now that we have types
telackey May 29, 2024
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
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true,
"version": "0.1.15"
"version": "0.2.7"
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
},
"scripts": {
"lint": "lerna run lint --stream --parallel",
"build:browser": "TARGET=browser lerna run build --stream --ignore @cerc-io/server",
"build:node": "TARGET=node lerna run build --stream --ignore @cerc-io/example-web-app",
"test:browser": "lerna run test --stream --parallel --ignore @cerc-io/server",
"test:node": "lerna run test --stream --parallel --ignore @cerc-io/example-web-app",
"build:browser": "TARGET=browser lerna run build --stream --ignore @cerc-nitro/server",
"build:node": "TARGET=node lerna run build --stream --ignore @cerc-nitro/example-web-app",
"test:browser": "lerna run test --stream --parallel --ignore @cerc-nitro/server",
"test:node": "lerna run test --stream --parallel --ignore @cerc-nitro/example-web-app",
"prepare": "husky install",
"chain": "lerna run chain --scope=@cerc-io/server",
"test:deploy-contracts": "lerna run test:deploy-contracts --scope=@cerc-io/nitro-node",
"test:copy-addresses": "lerna run test:copy-addresses --scope=@cerc-io/nitro-node",
"build:contracts": "lerna run build:contracts --scope=@cerc-io/nitro-util",
"test:deploy-token": "lerna run test:deploy-token --scope=@cerc-io/nitro-util",
"test:deploy-contracts": "lerna run test:deploy-contracts --scope=@cerc-nitro/nitro-node",
"test:copy-addresses": "lerna run test:copy-addresses --scope=@cerc-nitro/nitro-node",
"build:contracts": "lerna run build:contracts --scope=@cerc-nitro/nitro-util",
"test:deploy-token": "lerna run test:deploy-token --scope=@cerc-nitro/nitro-util",
"version:set": "lerna version --no-git-tag-version"
}
}
8 changes: 6 additions & 2 deletions packages/example-web-app/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
REACT_APP_RELAY_MULTIADDR=
REACT_APP_ASSET_ADDRESS=
REACT_APP_RPC_URL=
REACT_APP_TARGET_URL=
REACT_APP_NITRO_PK=
REACT_APP_NA_ADDRESS=
REACT_APP_VPA_ADDRESS=
REACT_APP_CA_ADDRESS=
6 changes: 3 additions & 3 deletions packages/example-web-app/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@cerc-io/example-web-app",
"version": "0.1.15",
"name": "@cerc-nitro/example-web-app",
"version": "0.2.7",
"private": true,
"dependencies": {
"@cerc-io/nitro-node": "^0.1.15",
"@cerc-nitro/nitro-node": "^0.2.7",
"@libp2p/crypto": "^1.0.4",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
Expand Down
117 changes: 91 additions & 26 deletions packages/example-web-app/src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,103 @@
.App {
text-align: center;
html {
margin: 0 auto;
padding: 2rem;
font-family: "Roboto", sans-serif;
background-color: #eeeff2;
}

.App-logo {
height: 40vmin;
pointer-events: none;
#root {
background-color: #eeeff2;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
#top-group {
background-color: white;
border-radius: 3px;
border: 3px solid #04AA6D;
padding: 0.7em;
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
#mid-group {
margin-top: 2em;
background-color: white;
border-radius: 3px;
border: 3px solid #04AADD;
padding: .7em;
}

textarea {
width: 100%;
height: 20em;
}

h2 {
margin-top: 0;
margin-bottom: 0.2em;
}

ul {
list-style: none;
}

.info-line {
padding: .2em;
}

input {
border: 0;
font-size: 15px;
font-weight: 400;
letter-spacing: 1px;
}

button {
border: none;
border-radius: 3px;
position: relative;
padding: 0.75em;
margin: 10px 1px;
font-size: 12px;
font-weight: 400;
text-transform: uppercase;
letter-spacing: 0;
will-change: box-shadow, transform;
transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1),
background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 0.4s;
background-color: #04AADD; /* Green */
color: white;
}

button:disabled {
background-color: #DDD; /* Green */
color: white;
}

button:hover {
background-color: #f8881e; /* Green */
color: white;
}

button:hover:disabled {
background-color: #DDD; /* Green */
color: white;
}

.empty {
background-color: #ec3535; /* Green */
color: white;
}

.App-link {
color: #61dafb;
.key {
padding-left: 1em;
font-size: 12px;
font-weight: 400;
text-transform: uppercase;
letter-spacing: 0;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
.value {
padding-left: 2em;
font-size: 15px;
font-weight: 400;
letter-spacing: 1px;
}
Loading