Skip to content

Commit

Permalink
Merge pull request #176 from vitelabs/buidl
Browse files Browse the repository at this point in the history
New features
  • Loading branch information
AllenLiuxt authored Apr 3, 2024
2 parents 5f0d7ca + 05ac3d8 commit 8ae3237
Show file tree
Hide file tree
Showing 474 changed files with 5,312 additions and 17,140 deletions.
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

15 changes: 15 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
VITE_WEB_WALLET_VERSION=4.1.0
VITE_NETWORK=mainnet
VITE_API_CONFIG=https://config.vite.net
VITE_SERVER=wss://node.vite.net/gvite/ws
VITE_PUSH_SERVER=wss://vitex.vite.net/websocket
VITE_DEX_SERVER=https://vitex.vite.net
VITE_CONNECT=wss://biforst.vite.net
VITE_REWARD_SERVER=https://vitex.vite.net
VITE_CROSSCHAIN_SERVER=https://crosschain.vite.net
VITE_GATEWAY=https://gateway.vite.net
VITE_ETH_SERVER=https://node.vite.net/eth/v3/caae2231051e46a1941f422df1fbcc94
VITE_ETH_EXPLORER=https://ropsten.etherscan.io
VITE_CONTRACT_ADDRESS=0x1b793e49237758dbd8b752afc9eb4b329d5da016
VITE_RECAPTCHA_TOKEN=6LdziZ0fAAAAADBzBnGli4Akjok0CoSJ388bRWtw
VITE_VIEW=https://mainnet.viteview.xyz
15 changes: 15 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
VITE_WEB_WALLET_VERSION=4.1.0
VITE_NETWORK=mainnet
VITE_API_CONFIG=https://config.vite.net
VITE_SERVER=wss://node.vite.net/gvite/ws
VITE_PUSH_SERVER=wss://vitex.vite.net/websocket
VITE_DEX_SERVER=https://vitex.vite.net
VITE_CONNECT=wss://biforst.vite.net
VITE_REWARD_SERVER=https://vitex.vite.net
VITE_CROSSCHAIN_SERVER=https://crosschain.vite.net
VITE_GATEWAY=https://gateway.vite.net
VITE_ETH_SERVER=https://node.vite.net/eth/v3/caae2231051e46a1941f422df1fbcc94
VITE_ETH_EXPLORER=https://ropsten.etherscan.io
VITE_CONTRACT_ADDRESS=0x1b793e49237758dbd8b752afc9eb4b329d5da016
VITE_RECAPTCHA_TOKEN=6LdziZ0fAAAAADBzBnGli4Akjok0CoSJ388bRWtw
VITE_VIEW=https://mainnet.viteview.xyz
15 changes: 15 additions & 0 deletions .env.staging
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
VITE_WEB_WALLET_VERSION=4.1.0
VITE_NETWORK=testnet
VITE_API_CONFIG=https://config.vite.net
VITE_SERVER=wss://buidl.vite.net/gvite/ws
VITE_PUSH_SERVER=wss://buidl.vite.net/vitex/websocket
VITE_DEX_SERVER=https://buidl.vite.net/vitex
VITE_CONNECT=wss://biforst.vite.net
VITE_REWARD_SERVER=https://vitex.vite.net
VITE_CROSSCHAIN_SERVER=https://crosschain-test.vite.net
VITE_GATEWAY=
VITE_ETH_SERVER=https://ropsten.infura.io/http
VITE_ETH_EXPLORER=https://ropsten.etherscan.io
VITE_CONTRACT_ADDRESS=0x54b716345c14ba851f1b51dcc1491abee6ba8f44
VITE_RECAPTCHA_TOKEN=6LdziZ0fAAAAADBzBnGli4Akjok0CoSJ388bRWtw
VITE_VIEW=https://budil.viteview.xyz
11 changes: 0 additions & 11 deletions .eslintignore

This file was deleted.

148 changes: 0 additions & 148 deletions .eslintrc.js

This file was deleted.

29 changes: 21 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}

Expand All @@ -36,27 +36,41 @@ jobs:
id: nvm

- name: Setup Node
uses: actions/setup-node@v2.1.2
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- uses: bahmutov/npm-install@v1

- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ubuntu-node-v${{ steps.nvm.outputs.NVMRC }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package.json')) }}

- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn

# Runs a set of commands using the runners shell
- name: Build
run: |
export DESKTOP_WALLET_VERSION=`curl -sL https://api.github.com/repos/vitelabs/vite-wallet/releases/latest | grep '"tag_name":' | cut -d'"' -f4`
yarn run build:${{ github.event.inputs.environment }}
- name: Get Build Version
if: ${{ github.event.inputs.environment == 'production' }}
id: version
run: echo "::set-output name=version::$(date +%Y%m%d%H%M)"

- name: List dist
run: tree dist

- name: Log in to Docker Hub
if: ${{ github.event.inputs.environment == 'production' }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Push to Docker Hub
if: ${{ github.event.inputs.environment == 'production' }}
uses: docker/build-push-action@v2
Expand All @@ -65,17 +79,16 @@ jobs:
context: .
file: Dockerfile
tags: vitelabs/vite-web-wallet:${{ steps.version.outputs.version }},vitelabs/vite-web-wallet:latest

- name: Deploy
uses: cloudflare/wrangler-action@1.3.0
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
environment: ${{ github.event.inputs.environment }}

- uses: Ilshidur/action-slack@2.0.2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_AVATAR: repository
with:
args: 'Action called, Environment: ${{ github.event.inputs.environment }}, Branch: ${{ github.event.inputs.branch }}, Repository: {{ GITHUB_REPOSITORY }}'

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ node_modules
dist
distH5
distAPP
static
!staticPages/**/static
.eslintcache
.idea
.vscode
.wrangler
viteJS
routes.js
.netlify
.yarnrc
package-lock.json
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v10
v20
69 changes: 0 additions & 69 deletions build/config.gypi

This file was deleted.

Loading

0 comments on commit 8ae3237

Please sign in to comment.