Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9271ff9
Add main components
Hossein-ab99 Jul 11, 2022
f75fc3f
#1, Add marketInfo component
Hossein-ab99 Jul 17, 2022
3e7292b
#2, Add sideMenu
Hossein-ab99 Jul 20, 2022
8ede6c1
#3, Fix header section
Hossein-ab99 Jul 26, 2022
d9995ba
#3, Fix actionSheet component
Hossein-ab99 Jul 26, 2022
459d5e8
#4, Add swing component
Hossein-ab99 Aug 1, 2022
34adec0
Fix fullWidthError component
Hossein-ab99 Oct 17, 2022
76739ff
Fix window soft input mode
Hossein-ab99 Nov 6, 2022
4d713d6
Fix sub header expand state
Hossein-ab99 Nov 8, 2022
52977ef
Refactor styles
Hossein-ab99 Nov 8, 2022
30b773d
Add dockerfile
Hossein-ab99 Nov 9, 2022
5ecc3dc
#1, Add marketStats api
Hossein-ab99 Nov 15, 2022
2bd4c0f
#1, Add GeneralInfo component
Hossein-ab99 Nov 19, 2022
1f31741
#1, Add marketInfo api
Hossein-ab99 Nov 19, 2022
ba9e09d
Merge pull request #10 from opexdev/1/landing
Hossein-ab99 Nov 19, 2022
2e76f9c
#4, Add marketInfo component and fix swipeable list
Hossein-ab99 Nov 21, 2022
6a7c953
Merge pull request #11 from opexdev/4/market
Hossein-ab99 Nov 21, 2022
5bc230f
#5, Add lastTrades component and api
Hossein-ab99 Mar 14, 2023
d4664fd
#5, Fix react-error-overlay
Hossein-ab99 Apr 8, 2023
7104c74
#5, Add openOrder table
Hossein-ab99 Apr 9, 2023
8c12636
#5, Fix table in openOrder
Hossein-ab99 Apr 9, 2023
5cf24d4
Merge pull request #12 from opexdev/5/userPanel-market
Hossein-ab99 Apr 10, 2023
09d218f
#6, Fix reducers & actions
Hossein-ab99 Apr 10, 2023
ab71481
#6, Add walletSubMenu
Hossein-ab99 Apr 10, 2023
4caa952
#6, Add UserAssets & estimateValue in walletSubHeader
Hossein-ab99 Apr 10, 2023
72bc346
Merge pull request #13 from opexdev/6/user-panel-wallet-components
Hossein-ab99 Apr 10, 2023
d2d42c3
#6, Add redirect URL for browser view
Hossein-ab99 Apr 15, 2023
f773721
Merge pull request #14 from opexdev/6/user-panel-wallet-components
Hossein-ab99 Apr 15, 2023
d7d9d1b
Fix redirect url
Hossein-ab99 Apr 15, 2023
a43f304
close #15, Fix swipeableList
Hossein-ab99 Apr 15, 2023
b956e40
Fix translation file & ltr
Hossein-ab99 Apr 15, 2023
bd976e7
Add version
Hossein-ab99 Apr 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Push images on dev branch update

on:
push:
branches:
- develop

jobs:
build:
runs-on: ubuntu-20.04
name: OPEX mobile app build
env:
TAG: dev
steps:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Build Docker images
env:
GENERATE_SOURCEMAP: ''
run: docker-compose -f docker-compose.build.yml build
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push images to GitHub Container Registry
run: docker-compose -f docker-compose.build.yml push
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Push images on main branch update

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-20.04
name: OPEX mobile app build
env:
TAG: latest
steps:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Build Docker images
env:
GENERATE_SOURCEMAP: false
run: docker-compose -f docker-compose.build.yml build
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push images to GitHub Container Registry
run: docker-compose -f docker-compose.build.yml push
18 changes: 18 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build on pull request

on:
pull_request:
types: [ opened, synchronize, reopened ]

jobs:
build:
runs-on: ubuntu-20.04
name: OPEX mobile app build
steps:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Build Docker images
env:
TAG: latest
GENERATE_SOURCEMAP: false
run: docker-compose -f docker-compose.build.yml build
785 changes: 0 additions & 785 deletions .yarn/releases/yarn-3.2.0.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions .yarnrc.yml

This file was deleted.

9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM node:lts-fermium AS build
COPY . /web-app
WORKDIR /web-app
COPY . /mobile-app
WORKDIR /mobile-app
ENV NODE_ENV production
RUN yarn cache clean
RUN yarn install --immutable
ARG GENERATE_SOURCEMAP='false'
ENV GENERATE_SOURCEMAP $GENERATE_SOURCEMAP
RUN yarn build

FROM nginx:1.20.2
COPY default.conf /etc/nginx/conf.d
COPY --from=build /web-app/build /var/www/opex/html
COPY --from=build /mobile-app/build /var/www/opex/html
WORKDIR /var/www/opex/html
COPY env-map.js .
CMD cat env-map.js | envsubst > env.js && nginx -g "daemon off;"
EXPOSE 80
EXPOSE 80
4 changes: 2 additions & 2 deletions docker-compose.build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.8"
services:
web-app:
image: ghcr.io/opexdev/web-app:$TAG
mobile-app:
image: ghcr.io/opexdev/mobile-app:$TAG
build:
context: .
args:
Expand Down
16 changes: 14 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
version: "3.8"
services:
web-app:
image: ghcr.io/opexdev/web-app
mobile-app:
image: ghcr.io/opexdev/mobile-app
environment:
- ENV=$WEB_APP_ENV
- APP_TITLE=$WEB_APP_TITLE
- DESCRIPTION=$WEB_APP_DESCRIPTION
- API_BASE_URL=$API_BASE_URL
- CLIENT_ID=$CLIENT_ID
- LOGIN_CLIENT_ID=$CLIENT_LOGIN_ID
- CLIENT_SECRET=$CLIENT_SECRET
- MULTI_LANGS_SUPPORT=$MULTI_LANGS_SUPPORT
- PRELOAD_LANG=$PRELOAD_LANG
- LANGS_SUPPORT=$LANGS_SUPPORT
- DEFAULT_THEME=$DEFAULT_THEME
- REGISTER_EMAIL_ADDRESS=$REGISTER_EMAIL_ADDRESS
- REFERENCE_FIAT_CURRENCY=$WEB_APP_REFERENCE_FIAT_CURRENCY
- CALENDAR_TYPE=$WEB_APP_CALENDAR_TYPE
- BROWSER_URL=$WEB_APP_BROWSER_URL
networks:
- default
deploy:
Expand Down
17 changes: 15 additions & 2 deletions env-map.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
window.env = {
REACT_APP_ENV: "$ENV",
REACT_APP_TITLE: "$APP_TITLE",
REACT_APP_DESCRIPTION_CONTENT: "$DESCRIPTION",
REACT_APP_API_BASE_URL: "$API_BASE_URL",
REACT_APP_LOGIN_CLIENT_ID: "$CLIENT_ID",
REACT_APP_CLIENT_ID: "$CLIENT_ID",
REACT_APP_CLIENT_SECRET: "$CLIENT_SECRET"
}
REACT_APP_CLIENT_SECRET: "$CLIENT_SECRET",
REACT_APP_MULTI_LANGS_SUPPORT : "$MULTI_LANGS_SUPPORT",
REACT_APP_PRELOAD_LANG : "$PRELOAD_LANG",
REACT_APP_LANGS_SUPPORT : "$LANGS_SUPPORT",
REACT_APP_DEFAULT_THEME : "$DEFAULT_THEME",
REACT_APP_SYSTEM_EMAIL_ADDRESS : "$REGISTER_EMAIL_ADDRESS",
REACT_APP_REFERENCE_FIAT_CURRENCY : "$REFERENCE_FIAT_CURRENCY",
REACT_APP_CALENDAR_TYPE : "$CALENDAR_TYPE",
REACT_APP_BROWSER_URL : "$BROWSER_URL",

}
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "opex",
"version": "0.1.1",
"version": "v1.0.0-beta.1",
"homepage": "",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.9",
"@tanstack/react-query": "^4.16.1",
"@tanstack/react-query-devtools": "^4.16.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^11.2.5",
"@testing-library/user-event": "^12.7.4",
"axios": "^0.27.2",
Expand All @@ -13,6 +15,7 @@
"i18next": "^21.8.0",
"i18next-browser-languagedetector": "^6.1.4",
"i18next-http-backend": "^1.4.0",
"js-api-client": "https://github.com/opexdev/js-api-client.git#develop",
"jwt-decode": "^3.1.2",
"lightweight-charts": "^3.8.0",
"moment-jalaali": "^0.9.2",
Expand All @@ -30,13 +33,17 @@
"react-qr-code": "^2.0.7",
"react-redux": "^7.2.2",
"react-router-dom": "^6.3.0",
"react-scripts": "4.0.1",
"react-scripts": "^5.0.1",
"react-select": "^5.3.2",
"react-swipeable-list": "^1.7.0",
"react-tooltip": "^4.2.21",
"redux": "^4.2.0",
"redux-saga": "^1.1.3",
"web-vitals": "^0.2.4"
},
"resolutions": {
"react-error-overlay": "6.0.9"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
Expand All @@ -61,5 +68,5 @@
"last 1 safari version"
]
},
"packageManager": "yarn@3.2.0"
"packageManager": "yarn@3.2.4"
}
File renamed without changes.
Loading