Skip to content

Commit

Permalink
Merge pull request RabbyHub#2 from RabbyHub/chore/react
Browse files Browse the repository at this point in the history
chore: refactor with react
  • Loading branch information
vvvvvv1vvvvvv authored Sep 15, 2021
2 parents a519812 + 196c098 commit ae26120
Show file tree
Hide file tree
Showing 57 changed files with 6,386 additions and 2,160 deletions.
27 changes: 23 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
node_modules
dist
yarn-error
.gulp
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ server="hk-builder"

yarn build

rsync -avzz --delete dist ${server}:~/
rsync -avzz --delete build ${server}:~/

ssh ${server} 'sudo cp -r ~/dist /data/fe/rabby_prod/'
ssh ${server} 'sudo cp -r ~/build /data/fe/rabby_prod/'
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
description: 'Document for Rabby',
nextLinks: false,
prevLinks: false,
dest: path.resolve(__dirname, '../../dist/docs'),
dest: path.resolve(__dirname, '../../build/docs'),
themeConfig: {
logo: '/logo.png'
},
Expand Down
63 changes: 0 additions & 63 deletions gulpfile.js

This file was deleted.

46 changes: 28 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"name": "rabby.io",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "gulp && yarn docs:build",
"dev": "gulp dev",
"build": "react-scripts build && yarn docs:build",
"dev": "react-scripts start",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},
Expand All @@ -15,25 +14,36 @@
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/RabbyHub/rabby.io/issues"
},
"homepage": "https://github.com/RabbyHub/rabby.io#readme",
"dependencies": {
"gulp-tinypng": "^1.0.2",
"normalize.css": "^8.0.1"
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"clsx": "^1.1.1",
"normalize.css": "^8.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"web-vitals": "^1.0.1"
},
"devDependencies": {
"gulp": "3.9.1",
"gulp-clean-css": "^4.3.0",
"gulp-compile-handlebars": "^0.6.1",
"gulp-rename": "^2.0.0",
"gulp-rev": "^9.0.0",
"gulp-watch": "^5.0.1",
"run-sequence": "^2.2.1",
"vuepress": "^1.8.2"
},
"resolutions": {
"graceful-fs": "^4.2.4"
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Binary file added public/assets/images/arb.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 public/assets/images/avax.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added public/assets/images/celo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added public/assets/images/hero-4.png
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added public/assets/images/op.png
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
44 changes: 44 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
<meta name="google-site-verification" content="5Sga5VqXk5CSqDeDLW6HaFP8dMFVAqdL0ikHLzs2ak8" />
<link href="%PUBLIC_URL%/assets/images/favicon.png" rel="shortcut icon" type="image/x-icon">
<title>Rabby</title>
<meta content="A better extension wallet for DeFi users" name="description">
<meta content="A better extension wallet for DeFi users" property="twitter:description">
<meta content="https://pbs.twimg.com/media/E7N3LxGVUAMy9OG?format=jpg&name=medium" property="twitter:image">
<meta content="Rabby" property="twitter:title">
<meta content="summary_large_image" name="twitter:card">
<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=Lato:wght@300;400;700;900&display=swap" rel="stylesheet">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-199755108-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-199755108-2');
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="toast"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-scrollTo/2.1.3/jquery.scrollTo.min.js"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
18 changes: 18 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react";
import Header from "./components/Header";
import Intro from "./components/Intro";
import Footer from "./components/Footer";

function App() {
return (
<>
<div className="main">
<Header />
<Intro />
</div>
<Footer />
</>
);
}

export default App;
29 changes: 29 additions & 0 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from "react";

const Footer = () => {
return (
<footer>
<div className="left">
<div className="debank-logo">
<img src="/assets/images/logo-debank.png" alt="debank" />
</div>
<div className="rabby-logo">
<img src="/assets/images/logo.png" alt="rabby" />
</div>
</div>
<div className="right">
<div className="footer-links">
<a href="https://github.com/RabbyHub/logo" target="_blank">
Brand
</a>
<a href="https://debank.com/docs/privacy/" target="_blank">
Privacy Policy
</a>
</div>
<p className="copyright">© 2021 rabby.io All rights reserved.</p>
</div>
</footer>
);
};

export default Footer;
Loading

0 comments on commit ae26120

Please sign in to comment.