Remove website files that were accidentally merged back in
This commit is contained in:
@@ -1,140 +0,0 @@
|
||||
{
|
||||
"name": "@0x/website",
|
||||
"version": "0.0.88",
|
||||
"engines": {
|
||||
"node": ">=6.12"
|
||||
},
|
||||
"private": true,
|
||||
"description": "Website and 0x portal dapp",
|
||||
"scripts": {
|
||||
"build": "yarn build:dev",
|
||||
"build:prod": "node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production",
|
||||
"build:dev": "../../node_modules/.bin/webpack --mode development",
|
||||
"clean": "shx rm -f public/bundle*",
|
||||
"lint": "tslint --format stylish --project . 'ts/**/*.ts' 'ts/**/*.tsx'",
|
||||
"fix": "tslint --fix --format stylish --project . 'ts/**/*.ts' 'ts/**/*.tsx'",
|
||||
"dev": "webpack-dev-server --mode development --content-base public --https",
|
||||
"deploy_dogfood": "npm run build:prod; aws s3 sync ./public/. s3://dogfood.0xproject.com --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers",
|
||||
"deploy_staging": "npm run build:prod; aws s3 sync ./public/. s3://staging-0xproject --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers",
|
||||
"deploy_live": "DEPLOY_ROLLBAR_SOURCEMAPS=true npm run build:prod; aws s3 sync ./public/. s3://0x.org --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --exclude *.map.js"
|
||||
},
|
||||
"author": "Fabio Berger",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@0x/asset-buyer": "^6.1.12",
|
||||
"@0x/contract-addresses": "^3.1.0",
|
||||
"@0x/contract-wrappers": "^11.1.0",
|
||||
"@0x/json-schemas": "^4.0.0",
|
||||
"@0x/order-utils": "^8.3.0",
|
||||
"@0x/subproviders": "^5.0.2",
|
||||
"@0x/types": "^2.4.1",
|
||||
"@0x/typescript-typings": "^4.2.4",
|
||||
"@0x/utils": "^4.5.0",
|
||||
"@0x/web3-wrapper": "^6.0.11",
|
||||
"@reach/dialog": "^0.1.2",
|
||||
"@types/react-lazyload": "^2.3.1",
|
||||
"@types/react-loadable": "^5.4.2",
|
||||
"@types/react-syntax-highlighter": "^0.0.8",
|
||||
"@types/styled-components": "4.1.1",
|
||||
"accounting": "^0.4.1",
|
||||
"basscss": "^8.0.3",
|
||||
"blockies": "^0.0.2",
|
||||
"bowser": "^1.9.4",
|
||||
"change-case": "^3.0.2",
|
||||
"deep-equal": "^1.0.1",
|
||||
"ethereum-types": "^2.1.4",
|
||||
"ethereumjs-util": "^5.1.1",
|
||||
"find-versions": "^2.0.0",
|
||||
"is-mobile": "^0.2.2",
|
||||
"jsonschema": "^1.2.0",
|
||||
"less": "^2.7.2",
|
||||
"lodash": "^4.17.11",
|
||||
"material-ui": "^0.20.0",
|
||||
"moment": "2.21.0",
|
||||
"moment-precise-range-plugin": "^1.3.0",
|
||||
"node-sass": "^4.12.0",
|
||||
"numeral": "^2.0.6",
|
||||
"polished": "^1.9.2",
|
||||
"query-string": "^6.0.0",
|
||||
"rc-slider": "^8.6.3",
|
||||
"react": "^16.5.2",
|
||||
"react-copy-to-clipboard": "^5.0.0",
|
||||
"react-dom": "^16.5.2",
|
||||
"react-flickity-component": "^3.1.0",
|
||||
"react-headroom": "2.2.2",
|
||||
"react-helmet": "^5.2.0",
|
||||
"react-highlight": "0xproject/react-highlight#react-peer-deps",
|
||||
"react-lazyload": "^2.3.0",
|
||||
"react-loadable": "^5.5.0",
|
||||
"react-markdown": "^4.0.6",
|
||||
"react-popper": "^1.0.0-beta.6",
|
||||
"react-redux": "^5.0.3",
|
||||
"react-responsive": "^6.0.1",
|
||||
"react-router-dom": "^4.3.1",
|
||||
"react-scroll": "https://github.com/0xProject/react-scroll.git#d2afc2729dc09980e4113d8c38a1b012ba180d81",
|
||||
"react-scrollable-anchor": "^0.6.1",
|
||||
"react-syntax-highlighter": "^10.1.1",
|
||||
"react-tooltip": "^3.2.7",
|
||||
"react-transition-group": "^4.2.1",
|
||||
"react-typist": "^2.0.4",
|
||||
"redux": "^3.6.0",
|
||||
"redux-devtools-extension": "^2.13.2",
|
||||
"rollbar": "^2.4.7",
|
||||
"sass-loader": "^7.1.0",
|
||||
"semver": "5.5.0",
|
||||
"semver-sort": "0.0.4",
|
||||
"styled-components": "^4.1.1",
|
||||
"thenby": "^1.2.3",
|
||||
"truffle-contract": "2.0.1",
|
||||
"valid-url": "^1.0.9",
|
||||
"web3-provider-engine": "14.0.6",
|
||||
"xml-js": "^1.6.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@0x/tslint-config": "^3.0.1",
|
||||
"@types/accounting": "^0.4.1",
|
||||
"@types/blockies": "^0.0.0",
|
||||
"@types/deep-equal": "^1.0.0",
|
||||
"@types/find-versions": "^2.0.0",
|
||||
"@types/is-mobile": "0.3.0",
|
||||
"@types/jsonschema": "^1.1.1",
|
||||
"@types/lodash": "4.14.104",
|
||||
"@types/material-ui": "^0.20.0",
|
||||
"@types/node": "*",
|
||||
"@types/numeral": "^0.0.26",
|
||||
"@types/query-string": "^5.1.0",
|
||||
"@types/rc-slider": "^8.6.0",
|
||||
"@types/react": "^16.7.7",
|
||||
"@types/react-copy-to-clipboard": "^4.2.0",
|
||||
"@types/react-dom": "^16.0.6",
|
||||
"@types/react-helmet": "^5.0.6",
|
||||
"@types/react-redux": "^4.4.37",
|
||||
"@types/react-router-dom": "^4.0.4",
|
||||
"@types/react-scroll": "1.5.3",
|
||||
"@types/react-syntax-highlighter": "^0.0.8",
|
||||
"@types/react-tap-event-plugin": "0.0.30",
|
||||
"@types/react-transition-group": "^4.2.0",
|
||||
"@types/redux": "^3.6.0",
|
||||
"@types/valid-url": "^1.0.2",
|
||||
"@types/web3-provider-engine": "^14.0.0",
|
||||
"awesome-typescript-loader": "^5.2.1",
|
||||
"css-loader": "0.23.x",
|
||||
"less-loader": "^4.1.0",
|
||||
"make-promises-safe": "^1.1.0",
|
||||
"raw-loader": "^0.5.1",
|
||||
"react-svg-loader": "^2.1.0",
|
||||
"rollbar-sourcemap-webpack-plugin": "^2.4.0",
|
||||
"shx": "^0.2.2",
|
||||
"source-map-loader": "^0.2.4",
|
||||
"style-loader": "0.23.x",
|
||||
"terser-webpack-plugin": "^1.1.0",
|
||||
"tslint": "5.11.0",
|
||||
"tslint-config-0xproject": "^0.0.2",
|
||||
"typescript": "3.0.1",
|
||||
"uglifyjs-webpack-plugin": "^2.0.1",
|
||||
"webpack": "^4.20.2",
|
||||
"webpack-bundle-analyzer": "^3.0.3",
|
||||
"webpack-cli": "3.1.2",
|
||||
"webpack-dev-server": "^3.1.9"
|
||||
}
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
import { History, Location } from 'history';
|
||||
import * as React from 'react';
|
||||
import { match, withRouter } from 'react-router-dom';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button } from 'ts/components/button';
|
||||
import { Icon } from 'ts/components/icon';
|
||||
|
||||
interface BaseComponentProps {
|
||||
icon?: string;
|
||||
iconComponent?: React.ReactNode;
|
||||
title: string;
|
||||
linkLabel: string;
|
||||
linkUrl?: string;
|
||||
linkAction?: () => void;
|
||||
history: History;
|
||||
location: Location;
|
||||
match: match<any>;
|
||||
}
|
||||
|
||||
class BaseComponent extends React.PureComponent<BaseComponentProps> {
|
||||
public onClick = (): void => {
|
||||
const { linkAction, linkUrl } = this.props;
|
||||
|
||||
if (linkAction) {
|
||||
linkAction();
|
||||
} else {
|
||||
this.props.history.push(linkUrl);
|
||||
}
|
||||
};
|
||||
|
||||
public render(): React.ReactNode {
|
||||
const { icon, iconComponent, linkUrl, linkAction, title, linkLabel } = this.props;
|
||||
|
||||
return (
|
||||
<Wrap onClick={this.onClick}>
|
||||
<div>
|
||||
<Icon name={icon} component={iconComponent} size="large" margin={[0, 0, 'default', 0]} />
|
||||
|
||||
<Title>{title}</Title>
|
||||
|
||||
<Button isWithArrow={true} isTransparent={true} href={linkUrl} onClick={linkAction}>
|
||||
{linkLabel}
|
||||
</Button>
|
||||
</div>
|
||||
</Wrap>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export const BlockIconLink = withRouter(BaseComponent);
|
||||
|
||||
const Wrap = styled.div`
|
||||
width: calc(50% - 15px);
|
||||
height: 400px;
|
||||
padding: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
transition: background-color 0.25s;
|
||||
background-color: ${props => props.theme.lightBgColor};
|
||||
cursor: pointer;
|
||||
|
||||
a,
|
||||
button {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
width: 100%;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: #002d28;
|
||||
}
|
||||
`;
|
||||
|
||||
const Title = styled.h2`
|
||||
font-size: 20px;
|
||||
margin-bottom: 30px;
|
||||
color: ${props => props.theme.linkColor};
|
||||
`;
|
||||
Reference in New Issue
Block a user