-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* workspace: fix order for build * workspace: add wormhole-connect-loader * ci: lint * prettier fixes * eslint fixes * ci: build
- Loading branch information
Showing
21 changed files
with
1,395 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- development | ||
- staging | ||
- production | ||
- mainnet | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run lint:ci | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
dist | ||
build | ||
*.md | ||
builder | ||
wormhole-connect-loader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,50 @@ | ||
import React from 'react'; | ||
import { copyTextToClipboard } from './utils'; | ||
import Background from './Background'; | ||
import { makeStyles } from 'tss-react/mui'; | ||
import WormholeBridge, { defaultTheme, WormholeConnectConfig } from '@wormhole-foundation/wormhole-connect'; | ||
import React from "react"; | ||
import { copyTextToClipboard } from "./utils"; | ||
import Background from "./Background"; | ||
import { makeStyles } from "tss-react/mui"; | ||
import WormholeBridge, { | ||
defaultTheme, | ||
WormholeConnectConfig, | ||
} from "@wormhole-foundation/wormhole-connect"; | ||
|
||
const useStyles = makeStyles()(() => ({ | ||
appContent: { | ||
paddingBottom: '60px', | ||
paddingBottom: "60px", | ||
}, | ||
title: { | ||
marginTop: '60px', | ||
textAlign: 'center', | ||
marginBottom: '16px', | ||
color: 'white', | ||
marginTop: "60px", | ||
textAlign: "center", | ||
marginBottom: "16px", | ||
color: "white", | ||
}, | ||
copy: { | ||
padding: '16px', | ||
backgroundColor: 'rgba(255,255,255,0.05)', | ||
border: '1px solid rgba(255,255,255,0.3)', | ||
borderRadius: '8px', | ||
maxWidth: '150px', | ||
margin: 'auto', | ||
cursor: 'pointer', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
color: 'white', | ||
} | ||
})) | ||
padding: "16px", | ||
backgroundColor: "rgba(255,255,255,0.05)", | ||
border: "1px solid rgba(255,255,255,0.3)", | ||
borderRadius: "8px", | ||
maxWidth: "150px", | ||
margin: "auto", | ||
cursor: "pointer", | ||
display: "flex", | ||
justifyContent: "center", | ||
color: "white", | ||
}, | ||
})); | ||
|
||
function App() { | ||
const { classes } = useStyles(); | ||
const script = ` | ||
<div id="wormhole-connect"></div> | ||
<script src="https://www.unpkg.com/@wormhole-foundation/[email protected]/dist/main.js"></script> | ||
<link src="https://www.unpkg.com/@wormhole-foundation/[email protected]/dist/main.css"/> | ||
` | ||
`; | ||
const customized = defaultTheme; | ||
customized.background.default = 'transparent'; | ||
customized.background.default = "transparent"; | ||
const config: WormholeConnectConfig = { | ||
mode: 'dark', | ||
mode: "dark", | ||
customTheme: customized, | ||
networks: ['goerli', 'alfajores', 'fuji'] | ||
} | ||
networks: ["goerli", "alfajores", "fuji"], | ||
}; | ||
return ( | ||
<div className="App"> | ||
<Background> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
body { | ||
margin: 0; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', | ||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", | ||
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", | ||
sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
code { | ||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', | ||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", | ||
monospace; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.