-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* most changes * mobile nav styling * some cleanup * some code styling * connect widget rebranding * rebranding rewards * prettier * rebranding updates * missing rewards vite config change * rewards header * Feature/include connect v2 and tbtc bridge (v1) (#1052) * rebranding update * prettier * lock fix * lock fix attmpt 2 * Fix USDC.e config * Fix #1062 bug usdc only manual * Update connect * Fix usdc.e config * Remove Rewards Dashboard * partially reverted re-branding * prettier * partially reverted re-branding | left some styles * prettier * Fix chain badge style * Include rewards link * Include Rewards links * most changes * mobile nav styling * some cleanup * some code styling * connect widget rebranding * rebranding rewards * prettier * rebranding updates * missing rewards vite config change * rewards header * Feature/include connect v2 and tbtc bridge (v1) (#1052) * rebranding update * prettier * lock fix * lock fix attmpt 2 * Fix USDC.e config * Fix #1062 bug usdc only manual * Update connect * Fix usdc.e config * Remove Rewards Dashboard * partially reverted re-branding * prettier * partially reverted re-branding | left some styles * prettier * Fix chain badge style * Include rewards link * Include Rewards links * updated connect-v1 package * Rm version in footer (Rewards) * Remove links, and change BRidge to Home * Update conenct v2 * Fix build * re-added telemetry props & replaced tgz * reset connect widget styles (#1085) * reset connect widget styles * fix prettier * Update connect v2 * Update connect v2 * Update connect v2 * connect new config update * connect new config update | 2 * Fix * New connect version cdd5802 * Fix scroll privacy policies * removed bridge assets title * Fix ntt manual route name * New version of connect 9276537 * New version of connect 9276537 and update routes name * updated wh * New version of connect * New connect version npm * rm tgz * New version --------- Co-authored-by: yuli-ferna <yuliferna123@gmail.com> Co-authored-by: yuli-ferna <35125931+yuli-ferna@users.noreply.github.com> Co-authored-by: Sebastian <sebastian.scatularo@xlabs.xyz>
- Loading branch information
1 parent
cc6050e
commit 1917838
Showing
144 changed files
with
45,723 additions
and
3,154 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
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,19 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
} |
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,36 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
.idea/ | ||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.vscode | ||
.env | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# ethereum contracts | ||
/contracts | ||
/src/ethers-contracts | ||
|
||
.yalc | ||
yalc.lock | ||
public/wormhole-connect/ | ||
wormhole-connect/node_modules/ | ||
dist/ |
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,13 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": false, | ||
"quoteProps": "as-needed", | ||
"jsxSingleQuote": false, | ||
"trailingComma": "es5", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"arrowParens": "always" | ||
} |
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,69 @@ | ||
# React + TypeScript + Vite | ||
|
||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. | ||
|
||
Currently, two official plugins are available: | ||
|
||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh | ||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh | ||
|
||
## Expanding the ESLint configuration | ||
|
||
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: | ||
|
||
- Configure the top-level `parserOptions` property like this: | ||
|
||
```js | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: ['./tsconfig.json', './tsconfig.node.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
``` | ||
|
||
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` | ||
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` | ||
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list | ||
|
||
|
||
## Create a new banner | ||
|
||
Go to `apps/connect/public/data/banners.json` and add a new item with this format: | ||
|
||
``` | ||
[ | ||
{ | ||
"id": "string", | ||
"background": "red", | ||
"content": { | ||
"text": "Lorem ipsum", | ||
"color": "papayawhip", | ||
"size": "30px" | ||
}, | ||
"button": { | ||
"label": "Click here!", | ||
"background": "red", | ||
"href": "https://portalbridge.com" | ||
}, | ||
"since": "2023-12-22T01:06:52.211Z", | ||
"until": "2023-12-25T01:06:52.211Z" | ||
}, | ||
{ | ||
"id": "string", | ||
"background": "yellow", | ||
"content": { | ||
"text": "Lorem ipsum", | ||
"color": "white", | ||
"size": "15px" | ||
}, | ||
"button": { | ||
"label": "Click here!", | ||
"background": "green", | ||
"href": "https://portalbridge.com" | ||
}, | ||
"since": "2023-12-22T01:06:52.211Z", | ||
"until": "2023-12-25T01:06:52.211Z" | ||
} | ||
] | ||
``` |
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,27 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:image" content="wormhole.png" /> | ||
<meta property="og:image:alt" content="Wormhole logo" /> | ||
<meta name="twitter:site" content="@portalbridge_" /> | ||
<meta name="twitter:creator" content="@portalbridge_" /> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
<link rel="apple-touch-icon" href="logo192.png" /> | ||
<link rel="manifest" href="manifest.json" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
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,36 @@ | ||
import type { Config } from "jest"; | ||
|
||
export default { | ||
coverageProvider: "v8", | ||
verbose: true, | ||
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node", "html"], | ||
testMatch: ["<rootDir>/src/**/*.test.ts", "<rootDir>/src/**/*.test.tsx"], | ||
maxWorkers: "50%", | ||
setupFilesAfterEnv: ["<rootDir>/jest.setup.tsx"], | ||
testEnvironment: "jsdom", | ||
transform: { | ||
"^.+\\.(t|j)sx?$": "@swc/jest", | ||
}, | ||
moduleNameMapper: { | ||
"@env": "<rootDir>/src/env/index.ts", | ||
uuid: require.resolve("uuid"), | ||
}, | ||
collectCoverageFrom: [ | ||
"<rootDir>/src/**/*.{ts,tsx,js,jsx}", | ||
"!<rootDir>/src/**/*.d.ts", | ||
"!<rootDir>/src/main.tsx", | ||
"!<rootDir>/src/utils/constants.ts", | ||
"!<rootDir>/src/utils/styles.ts", | ||
"!<rootDir>/src/env/**/*.*", | ||
"!<rootDir>/src/theme/**/*.*", | ||
], | ||
coverageThreshold: { | ||
global: { | ||
// statements: 100, | ||
// branches: 100, | ||
// functions: 100, | ||
// lines: 100 | ||
}, | ||
}, | ||
coverageReporters: ["lcov", "text", "text-summary"], | ||
} as Config; |
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,12 @@ | ||
import "@testing-library/jest-dom"; | ||
import { TextEncoder, TextDecoder } from "util"; | ||
import React from "react"; | ||
|
||
window.React = global.React = React; | ||
|
||
Object.assign(global, { | ||
TextDecoder, | ||
TextEncoder, | ||
}); | ||
|
||
jest.mock("./src/env/env-vars.ts", () => ({ envVars: process.env })); |
Oops, something went wrong.