Skip to content

Commit

Permalink
ui
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanRaj1608 committed Aug 31, 2023
1 parent a58141d commit a170903
Show file tree
Hide file tree
Showing 51 changed files with 5,339 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gitignore
.dockerignore
Dockerfile
build
node_modules
README.md
24 changes: 24 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
21 changes: 21 additions & 0 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

FROM node:14

# Set working directory
WORKDIR /app

# Copy our node module specification
COPY package.json package.json
COPY yarn.lock yarn.lock

# install node modules and build assets
RUN yarn install

# Copy all files from current directory to working dir in image
# Except the one defined in '.dockerignore'
COPY . /app

# Create production build of React App
RUN yarn build
EXPOSE 8080
CMD yarn start
6 changes: 6 additions & 0 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#### Run locally

```bash
yarn
yarn run dev
```
73 changes: 73 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<title>WiseWallet</title>
<meta name="description" content="A modular wallet that helps you make any transaction process seamless" />

<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/logo.png" />
<meta name="theme-color" content="#000000" />
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" />

<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="manifest" href="/manifest.json" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Asul:wght@400;700&display=swap" rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Josefin+Slab:ital,wght@0,500;1,500&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;500&display=swap" rel="stylesheet">

<script>
window.global = window;
</script>
<script type="module">
import { Buffer } from "buffer";
window.Buffer = Buffer;
</script>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>

<style>
html,
body {
overflow-x: hidden;
min-height: 100vh;
background-color: #101124;
}

* {
box-sizing: border-box;
padding: 0;
margin: 0;
}

a {
color: inherit;
text-decoration: none;
}

.tradingview-widget-container {
height: 100%;
}

#tradingview_90191 {
height: 100%;
}

button {
font-family: 'Asul', 'Roboto', sans-serif;
}
</style>

</html>
49 changes: 49 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "wisewallet",
"version": "1.0.0",
"private": true,
"author": "@amanraj1608",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"@cosmjs/cosmwasm-stargate": "^0.30.1",
"@cosmjs/stargate": "^0.30.1",
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@mui/icons-material": "5.11.11",
"@mui/lab": "^5.0.0-alpha.123",
"@mui/material": "5.11.12",
"@mui/styles": "5.11.12",
"@types/node": "^20.5.7",
"buffer": "^6.0.3",
"chain-registry": "^1.13.0",
"crypto-browserify": "^3.12.0",
"osmojs": "^15.2.1",
"process": "^0.11.10",
"react": "18.2.0",
"react-blockies": "^1.4.1",
"react-dom": "18.2.0",
"react-router-dom": "^5.3.4",
"react-toastify": "^9.1.2",
"stream-browserify": "^3.0.0"
},
"browser": {
"crypto": false
},
"devDependencies": {
"@nibiruchain/nibijs": "^0.21.19",
"@types/node-forge": "^1.3.2",
"@types/node-jose": "^1.1.10",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/react-router-dom": "^5.3.3",
"@types/uuid": "^9.0.1",
"@vitejs/plugin-react": "3.1.0",
"typescript": "5.0.2",
"vite": "4.2.0",
"vite-tsconfig-paths": "^4.0.7"
}
}
1 change: 1 addition & 0 deletions client/public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200
111 changes: 111 additions & 0 deletions client/public/backgrounds/background-circles.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/backgrounds/thumbs-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/favicon.ico
Binary file not shown.
30 changes: 30 additions & 0 deletions client/public/img/background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/img/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/img/logo-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/img/logo_main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions client/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "wiseWallet",
"name": "wiseWallet",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions client/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
23 changes: 23 additions & 0 deletions client/public/svg/fast.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions client/public/svg/leverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions client/public/svg/powerful.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a170903

Please sign in to comment.