mainsmirnov / TONSwap

Frontend for TON Contest

Home Page:https://ton.xelene.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TON Contest

Start

  1. Enter yarn or npm install in your console
  2. Enter yarn start or npm run start in your console for start project

Build

  1. Enter yarn or npm install in your console
  2. Enter yarn build or npm run build in your console for start project

Other Dependencies

Dependencies Description
react-scripts scrips for build project, present in create-react-app
redux-saga manager for requests in redux
recharts library for charts

Features

Adaptive

Dekstop Mobile
Screenshot 2022-01-31 at 15 45 42 iBmOP3kT9LA
Screenshot 2022-01-31 at 15 46 54 1mWTgmUuZZo

Skeletons

Example 1 Example 2
yUWdRdiPMfo UvenF15VB_Q

Dark and light scheme

Dark Light
Screenshot 2022-01-31 at 15 48 32 Screenshot 2022-01-31 at 15 48 58

Code

Directories

Directory Description
components very common components
enums common enums
icons all icons in project
modals all modals in project here
notifications pages notifications
pages all pages in project here, like pool, swap, add liquidity
store directory with reducers, every directory has actions, selectors and sets, sets for dispatch, actions for actions in reducer
styles very common styles, only palette with css tokens
types common types, witch uses in components types
utils common helpers

Component struct

Every component has files TComponent.ts, Component.tsx and Component.css, by the files name you can understand what is in them

Code style

I didn't add stylelint or prettier in project to avoid unnecessary dependencies

Import agreements

Absolute imports dominate relative imports. Other imports go in sequence:

react
react-* libraries
Component types
Component styles
...
icons
absolute components
relative components

About

Frontend for TON Contest

https://ton.xelene.me

License:MIT License


Languages

Language:TypeScript 78.7%Language:CSS 20.6%Language:HTML 0.6%