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

replace unpkg.com by self hosted static files for wormhole connect #434

Merged
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ yarn-error.log*

.yalc
yalc.lock
public/wormhole-connect/
wormhole-connect/node_modules/
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xlabs/portal-bridge-ui",
"version": "0.1.81",
"version": "0.1.82",
"private": true,
"dependencies": {
"@certusone/wormhole-sdk": "^0.9.22",
Expand Down Expand Up @@ -76,6 +76,7 @@
"scripts": {
"start": "react-app-rewired start",
"build": "sed -i '/enableWorkerThreads/d' node_modules/terser-webpack-plugin/dist/index.js && react-app-rewired build",
"postinstall": "cd wormhole-connect && npm install && cd ..",
"test": "react-app-rewired test",
"eject": "react-scripts eject",
"format": "npx prettier --write ./src"
Expand Down
4 changes: 2 additions & 2 deletions public/cosmos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap"
rel="stylesheet" />
<link href="index.css" rel="stylesheet">
<link href="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.12/dist/main.css" rel="stylesheet">
<link href="../wormhole-connect/main.css" rel="stylesheet">
<title>Cosmos</title>
</head>

Expand Down Expand Up @@ -115,7 +115,7 @@
</div>
</div>

<script src="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.12/dist/main.js"></script>
<script src="../wormhole-connect/main.js"></script>
<script>
// To show Optimism option on SEPT 4th 2023
if (new Date() < new Date(2023, 8, 8)) {
Expand Down
4 changes: 2 additions & 2 deletions public/sui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
rel="stylesheet"
/>
<link href="index.css" rel="stylesheet">
<link href="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.12/dist/main.css" rel="stylesheet">
<link href="../wormhole-connect/main.css" rel="stylesheet">
<title>SUI Token Bridge</title>
</head>
<body>
Expand Down Expand Up @@ -111,7 +111,7 @@
</div>
</div>

<script src="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.12/dist/main.js"></script>
<script src="../wormhole-connect/main.js"></script>
<script>
// To show Optimism option on SEPT 4th 2023
if (new Date() < new Date(2023, 8, 8)) {
Expand Down
34 changes: 2 additions & 32 deletions public/usdc-bridge/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,14 @@
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap"
rel="stylesheet" />
<link href="index.css" rel="stylesheet">
<link href="https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.12/dist/main.css" rel="stylesheet">
<link href="../wormhole-connect/main.css" rel="stylesheet">
<title>USDC Bridge: Native Cross-Chain USDC Transfers</title>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div class="root">
<div class="container">
<div class="cosmos-banner" id="cosmos-banner" style="display: none;">
<div style="text-align: center"><span
style="color: white; font-size: 16px; font-family: Poppins; font-weight: 500; line-height: 20.02px; letter-spacing: 0.28px; word-wrap: break-word">Wormhole
Gateway is now live on mainnet!</span><span
style="color: white; font-size: 16px; font-family: Poppins; font-weight: 700; line-height: 20.02px; letter-spacing: 0.28px; word-wrap: break-word">
Bridge your assets to Osmosis today.</span></div>
<a class="cosmos-link" href="https://portalbridge.com/cosmos" target="_blank" rel="noopener noreferrer">
TRY IT NOW
</a>
</div>
<div class="cctp-banner" id="cctp-banner" style="display: none;">
<span>
Experience frictionless USDC transfers between Ethereum, Avalanche, Arbitrum, and Optimism with Circle's CCTP.
</span>
<a class="cctp-link" href="https://portalbridge.com/usdc-bridge" target="_blank" rel="noopener noreferrer">
TRY IT NOW
</a>
</div>

<header class="header">
<div class="header-inner">
<a class="logo-link" href="/">
Expand Down Expand Up @@ -132,18 +113,7 @@
</div>
</div>
<script
src="https://www.unpkg.com/@wormhole-foundation/[email protected]/dist/main.js"></script>
<script>
// To show Optimism option on SEPT 4th 2023
if (new Date() < new Date(2023, 8, 8)) {
document.getElementById("cosmos-banner").style.display = "flex";
document.getElementById("cctp-banner").style.display = "none";

} else {
document.getElementById("cosmos-banner").style.display = "none";
document.getElementById("cctp-banner").style.display = "flex";
}
</script>
src="../wormhole-connect/main.js"></script>
</body>

</html>
Loading
Loading