Skip to content

Commit ea563ec

Browse files
Feat/vite react (#1002)
* initial commit * initial commit * fix code * fix svg * ignore dist * fix http * chore: remove vitest * chore: udpate indexer url * chore: add build script * chore: update ourdir * chore: add cmd serve build file * fix: fixed error load build file * chore: remove redundant code * chore: remove redundant code * fix: import missed token * fix: import missed token * chore: update svg * fix: add bbase url for all relative url in document --------- Co-authored-by: Pham Tu <tubackkhoa@gmail.com>
1 parent d9b6a33 commit ea563ec

154 files changed

Lines changed: 1851 additions & 7391 deletions

File tree

Some content is hidden

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

.env.example

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PUBLIC_URL=https://app.oraidex.io
2-
REACT_APP_SITE_TITLE=OraiDEX
3-
REACT_APP_SITE_DESC="OraiDEX is an IBC and CosmWasm-based decentralized exchange platform with multichain interoperability, optimal speed, and a lot of liquidity options for users."
2+
VITE_APP_SITE_TITLE=OraiDEX
3+
VITE_APP_SITE_DESC="OraiDEX is an IBC and CosmWasm-based decentralized exchange platform with multichain interoperability, optimal speed, and a lot of liquidity options for users."
44

5-
REACT_APP_BASE_API_URL=https://api.oraidex.io
5+
VITE_APP_BASE_API_URL=https://api.oraidex.io
66

7-
REACT_APP_KADO_API_KEY=df0d2b3f-d829-4453-a4f6-1d6e8870e8f4
8-
REACT_APP_MIX_PANEL_ENVIRONMENT=acbafd21a85654933cbb0332c5a6f4f8
9-
REACT_APP_STRAPI_BASE_URL=https://nice-fireworks-d26703b63e.strapiapp.com
7+
VITE_APP_KADO_API_KEY=df0d2b3f-d829-4453-a4f6-1d6e8870e8f4
8+
VITE_APP_MIX_PANEL_ENVIRONMENT=acbafd21a85654933cbb0332c5a6f4f8
9+
VITE_APP_STRAPI_BASE_URL=https://nice-fireworks-d26703b63e.strapiapp.com

.github/workflows/legacy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
cp .env.example .env
3939
yarn build
4040
env:
41-
REACT_APP_SENTRY_ENVIRONMENT: staging
41+
VITE_APP_SENTRY_ENVIRONMENT: staging
4242
CI: false
4343
- name: Deploy to firebase
4444
run: yarn firebase deploy --only hosting:oraiswap-legacy --token ${{ secrets.FIREBASE_TOKEN }} -m '${{ github.event.head_commit.message }}'

.github/workflows/mainnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: yarn build
6262
env:
6363
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
64-
REACT_APP_SENTRY_ENVIRONMENT: production
64+
VITE_APP_SENTRY_ENVIRONMENT: production
6565
CI: false
6666
- name: Deploy to firebase
6767
run: yarn firebase deploy --only hosting:oraiswap --token ${{ secrets.FIREBASE_TOKEN }}

.github/workflows/pre-mainnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
cp .env.example .env
3939
yarn build
4040
env:
41-
REACT_APP_SENTRY_ENVIRONMENT: staging
41+
VITE_APP_SENTRY_ENVIRONMENT: staging
4242
CI: false
4343
- name: Deploy to firebase
4444
run: yarn firebase deploy --only hosting:oraiswap-pre-mainnet --token ${{ secrets.FIREBASE_TOKEN }} -m '${{ github.event.head_commit.message }}'

.github/workflows/staging-v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
cp .env.example .env
3939
yarn build
4040
env:
41-
REACT_APP_SENTRY_ENVIRONMENT: staging
41+
VITE_APP_SENTRY_ENVIRONMENT: staging
4242
CI: false
4343
- name: Deploy to firebase
4444
run: yarn firebase deploy --only hosting:oraiswap-staging-v1 --token ${{ secrets.FIREBASE_TOKEN }} -m '${{ github.event.head_commit.message }}'

.github/workflows/staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
rm -rf node_modules/.cache
4040
yarn build
4141
env:
42-
REACT_APP_SENTRY_ENVIRONMENT: staging
42+
VITE_APP_SENTRY_ENVIRONMENT: staging
4343
CI: false
4444
- name: Deploy to firebase
4545
run: yarn firebase deploy --only hosting:oraiswap-staging --token ${{ secrets.FIREBASE_TOKEN }} -m '${{ github.event.head_commit.message }}'

.github/workflows/test-optimize-cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ jobs:
5757
run: yarn build
5858
env:
5959
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
60-
REACT_APP_SENTRY_ENVIRONMENT: production
60+
VITE_APP_SENTRY_ENVIRONMENT: production
6161
CI: false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
# vendor
1515
vendor
16+
dist/
1617
public/vendor.*
1718

1819
# misc

.husky/pre-push

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
yarn test:ci
5-
yarn ts-check
4+

codegen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CodegenConfig } from '@graphql-codegen/cli';
22

33
// https://subql-staging.orai.io/
4-
export const endpoint_gql = `https//staging-ammv3-indexer.oraidex.io/`;
4+
export const endpoint_gql = `https//ammv3-indexer.oraidex.io/`;
55
const config: CodegenConfig = {
66
schema: endpoint_gql,
77
documents: ['src/**/*.tsx'],

0 commit comments

Comments
 (0)