Skip to content

Commit c2abd3f

Browse files
committed
Merge branch 'staging' into entry-page
2 parents ff7e79c + ae6bb27 commit c2abd3f

File tree

344 files changed

+27108
-4005
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+27108
-4005
lines changed

.env.example

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ VITE_XAHAU_TESTNET_LINK=
1616
VITE_CUSTOMNETWORK_LINK=
1717
VITE_VALIDATOR=vl.ripple.com
1818

19+
#XRPL Environment: mainnet, testnet, devnet, amm, hooks_testnet, custom
20+
VITE_ENVIRONMENT=mainnet
21+
1922
#External data source - XRPLMeta node for token search results
2023
XRPL_META_URL=s1.xrplmeta.org
2124

22-
#XRPL Environment: mainnet, testnet, devnet, amm, hooks_testnet, custom
23-
VITE_ENVIRONMENT=mainnet
25+
#LOS enpoint url
26+
VITE_LOS_URL=https://los.dev.ripplex.io
2427

2528
#VHS endpoint url
2629
VITE_DATA_URL=https://data.xrpl.org/v1/network
2730

2831
# Whether to use ws instead of wss (boolean)
2932
# Only used locally (the deployed Explorer requires wss)
3033
VITE_INSECURE_WS=0
31-
32-
# LOS Endpoint URL
33-
VITE_LOS_URL=https://los.dev.ripplex.io

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ module.exports = {
77
'prettier',
88
],
99
plugins: ['jsx-a11y', 'prettier', 'import'],
10+
settings: {
11+
'import/resolver': {
12+
typescript: {
13+
alwaysTryTypes: true,
14+
project: './tsconfig.json',
15+
},
16+
node: {
17+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
18+
},
19+
},
20+
},
1021
env: {
1122
browser: true,
1223
node: true,

.github/dependabot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: monthly
7-
time: "15:00"
8-
open-pull-requests-limit: 10
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: monthly
7+
time: '15:00'
8+
open-pull-requests-limit: 10
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Copilot Setup Steps
2+
3+
env:
4+
NODE_VERSION: 22.x
5+
VITE_VALIDATOR: vl.ripple.com
6+
VITE_RIPPLED_WS_PORT: 51233
7+
VITE_RIPPLED_HOST: fake.rippled.example.com
8+
VITE_MAINNET_LINK: mainnet.example.com
9+
VITE_TESTNET_LINK: testnet.example.com
10+
VITE_CUSTOMNETWORK_LINK: custom.example.com
11+
VITE_DATA_URL: https://data.xrpl.org/v1/network
12+
13+
on:
14+
workflow_dispatch:
15+
push:
16+
branches: [main]
17+
pull_request:
18+
branches: [main]
19+
20+
jobs:
21+
copilot-setup:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Use Node.js ${{ env.NODE_VERSION }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ env.NODE_VERSION }}
30+
31+
- name: Cache node modules
32+
id: cache-nodemodules
33+
uses: actions/cache@v4
34+
env:
35+
cache-name: cache-node-modules
36+
with:
37+
# caching node_modules
38+
path: node_modules
39+
key: ${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
40+
restore-keys: |
41+
${{ env.NODE_VERSION }}-build-${{ env.cache-name }}-
42+
${{ env.NODE_VERSION }}-build-
43+
44+
- name: Install Dependencies
45+
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
46+
run: npm ci

.github/workflows/nodejs.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
- name: Use Node.js ${{ env.NODE_VERSION }}
1919
uses: actions/setup-node@v4
2020
with:
@@ -37,13 +37,17 @@ jobs:
3737
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
3838
run: npm ci
3939

40-
- run: npm run lint:ci
40+
- run: |
41+
npm run lint:ci
42+
43+
# This runs the pre-commit hooks defined in .pre-commit-config.yaml
44+
- uses: pre-commit/action@v3.0.1
4145

4246
test:
4347
runs-on: ubuntu-latest
4448

4549
steps:
46-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@v5
4751
- name: Use Node.js ${{ env.NODE_VERSION }}
4852
uses: actions/setup-node@v4
4953
with:
@@ -80,7 +84,7 @@ jobs:
8084
runs-on: ubuntu-latest
8185

8286
steps:
83-
- uses: actions/checkout@v4
87+
- uses: actions/checkout@v5
8488
- name: Use Node.js ${{ env.NODE_VERSION }}
8589
uses: actions/setup-node@v4
8690
with:
@@ -109,7 +113,7 @@ jobs:
109113
runs-on: ubuntu-latest
110114

111115
steps:
112-
- uses: actions/checkout@v4
116+
- uses: actions/checkout@v5
113117
- name: Use Node.js ${{ env.NODE_VERSION }}
114118
uses: actions/setup-node@v4
115119
with:

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# .pre-commit-config.yaml
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v5.0.0
5+
hooks:
6+
- id: check-case-conflict
7+
- id: check-illegal-windows-names
8+
- id: check-json
9+
- id: check-merge-conflict
10+
- id: check-symlinks
11+
- id: check-yaml
12+
- id: detect-private-key
13+
- id: end-of-file-fixer
14+
- id: fix-byte-order-marker
15+
- id: forbid-submodules
16+
- id: mixed-line-ending
17+
- id: trailing-whitespace
18+
19+
- repo: https://github.com/rbubley/mirrors-prettier
20+
rev: 5ba47274f9b181bce26a5150a725577f3c336011 # frozen: v3.6.2
21+
hooks:
22+
- id: prettier
23+
args: [--no-semi]

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
build/
22
coverage/
33
node_modules/
4-
src/**/*.{css}

.vscode/extensions.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"recommendations": [
3-
"dbaeumer.vscode-eslint",
4-
"esbenp.prettier-vscode",
5-
"stylelint.vscode-stylelint",
6-
"vespa-dev-works.jestrunit",
7-
]
8-
}
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode",
5+
"stylelint.vscode-stylelint",
6+
"vespa-dev-works.jestrunit"
7+
]
8+
}

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
1616

1717
Examples of behavior that does not contribute to creating a positive environment include:
1818

19-
* Using sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
- Using sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

docs/routing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The explorer uses some enhancements to `react-router` to provide type checking t
99
In the future these objects can provide a common way to support legacy routes.
1010

1111
ex.
12+
1213
```
1314
export const ACCOUNT_ROUTE: RouteDefinition<{
1415
id?: string
@@ -21,7 +22,7 @@ export const ACCOUNT_ROUTE: RouteDefinition<{
2122

2223
### `useRouteParams`
2324

24-
A new hook which takes a `RouteDefinition` and wraps `react-router`'s `useRouteParams`. This will derive the type of the params from the definition.
25+
A new hook which takes a `RouteDefinition` and wraps `react-router`'s `useRouteParams`. This will derive the type of the params from the definition.
2526

2627
ex. `const { id = '', assetType = 'issued' } = useRouteParams(ACCOUNT_ROUTE)`
2728

0 commit comments

Comments
 (0)