aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r--packages/website/ts/containers/asset_buyer_documentation.ts46
-rw-r--r--packages/website/ts/containers/connect_documentation.ts51
-rw-r--r--packages/website/ts/containers/contract_wrappers_documentation.ts46
-rw-r--r--packages/website/ts/containers/docs_home.ts32
-rw-r--r--packages/website/ts/containers/ethereum_types_documentation.ts42
-rw-r--r--packages/website/ts/containers/faq.ts28
-rw-r--r--packages/website/ts/containers/generate_order_form.ts48
-rw-r--r--packages/website/ts/containers/inputs/allowance_state_toggle.ts42
-rw-r--r--packages/website/ts/containers/inputs/eth_amount_input.ts36
-rw-r--r--packages/website/ts/containers/json_schemas_documentation.ts71
-rw-r--r--packages/website/ts/containers/migrations_documentation.ts67
-rw-r--r--packages/website/ts/containers/not_found.ts28
-rw-r--r--packages/website/ts/containers/order_utils_documentation.ts47
-rw-r--r--packages/website/ts/containers/order_watcher_documentation.ts47
-rw-r--r--packages/website/ts/containers/portal.ts93
-rw-r--r--packages/website/ts/containers/portal_onboarding_flow.ts68
-rw-r--r--packages/website/ts/containers/smart_contracts_documentation.ts97
-rw-r--r--packages/website/ts/containers/sol_compiler_documentation.ts51
-rw-r--r--packages/website/ts/containers/sol_coverage_documentation.ts44
-rw-r--r--packages/website/ts/containers/sol_profiler_documentation.ts44
-rw-r--r--packages/website/ts/containers/sol_trace_documentation.ts44
-rw-r--r--packages/website/ts/containers/subproviders_documentation.ts50
-rw-r--r--packages/website/ts/containers/web3_wrapper_documentation.ts46
-rw-r--r--packages/website/ts/containers/wiki.ts31
-rw-r--r--packages/website/ts/containers/zero_ex_js_documentation.ts78
25 files changed, 0 insertions, 1277 deletions
diff --git a/packages/website/ts/containers/asset_buyer_documentation.ts b/packages/website/ts/containers/asset_buyer_documentation.ts
deleted file mode 100644
index a75c6d861..000000000
--- a/packages/website/ts/containers/asset_buyer_documentation.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown = require('md/docs/asset_buyer/introduction');
-const InstallationMarkdown = require('md/docs/asset_buyer/installation');
-const UsageMarkdown = require('md/docs/asset_buyer/usage');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
- usage: 'usage',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.AssetBuyer,
- packageName: '@0x/asset-buyer',
- type: SupportedDocJson.TypeDoc,
- displayName: 'AssetBuyer',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/asset-buyer',
- markdownMenu: {
- introduction: [markdownSections.introduction],
- install: [markdownSections.installation],
- usage: [markdownSections.usage],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [markdownSections.introduction]: IntroMarkdown,
- [markdownSections.installation]: InstallationMarkdown,
- [markdownSections.usage]: UsageMarkdown,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/connect_documentation.ts b/packages/website/ts/containers/connect_documentation.ts
deleted file mode 100644
index 1cfc0702e..000000000
--- a/packages/website/ts/containers/connect_documentation.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown1 = require('md/docs/connect/1/introduction');
-const IntroMarkdown2 = require('md/docs/connect/2/introduction');
-const InstallationMarkdown1 = require('md/docs/connect/1/installation');
-const InstallationMarkdown3 = require('md/docs/connect/3/installation');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.Connect,
- packageName: '@0x/connect',
- type: SupportedDocJson.TypeDoc,
- displayName: '0x Connect',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/connect',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown1,
- },
- '2.0.0-rc.1': {
- [markdownSections.introduction]: IntroMarkdown2,
- [markdownSections.installation]: InstallationMarkdown1,
- },
- '3.0.2': {
- [markdownSections.introduction]: IntroMarkdown2,
- [markdownSections.installation]: InstallationMarkdown3,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/contract_wrappers_documentation.ts b/packages/website/ts/containers/contract_wrappers_documentation.ts
deleted file mode 100644
index bbabce7a7..000000000
--- a/packages/website/ts/containers/contract_wrappers_documentation.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown1 = require('md/docs/contract_wrappers/1/introduction');
-const InstallMarkdownV1 = require('md/docs/contract_wrappers/1/installation');
-const InstallMarkdownV2 = require('md/docs/contract_wrappers/2/installation');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.ContractWrappers,
- packageName: '@0x/contract-wrappers',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Contract Wrappers',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/contract-wrappers',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallMarkdownV1,
- },
- '3.0.0': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallMarkdownV2,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/docs_home.ts b/packages/website/ts/containers/docs_home.ts
deleted file mode 100644
index 2a6dac0e2..000000000
--- a/packages/website/ts/containers/docs_home.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import * as _ from 'lodash';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { Dispatch } from 'redux';
-import { DocsHome as DocsHomeComponent, DocsHomeProps } from 'ts/pages/documentation/docs_home';
-import { Dispatcher } from 'ts/redux/dispatcher';
-import { State } from 'ts/redux/reducer';
-import { ScreenWidths } from 'ts/types';
-import { Translate } from 'ts/utils/translate';
-
-interface ConnectedState {
- translate: Translate;
- screenWidth: ScreenWidths;
-}
-
-interface ConnectedDispatch {
- dispatcher: Dispatcher;
-}
-
-const mapStateToProps = (state: State, _ownProps: DocsHomeProps): ConnectedState => ({
- translate: state.translate,
- screenWidth: state.screenWidth,
-});
-
-const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
- dispatcher: new Dispatcher(dispatch),
-});
-
-export const DocsHome: React.ComponentClass<DocsHomeProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocsHomeComponent);
diff --git a/packages/website/ts/containers/ethereum_types_documentation.ts b/packages/website/ts/containers/ethereum_types_documentation.ts
deleted file mode 100644
index e6e4d4067..000000000
--- a/packages/website/ts/containers/ethereum_types_documentation.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import { constants as docConstants, DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown = require('md/docs/ethereum_types/introduction');
-const InstallationMarkdown = require('md/docs/ethereum_types/installation');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
- types: docConstants.TYPES_SECTION_NAME,
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.EthereumTypes,
- packageName: 'ethereum-types',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Ethereum Types',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/ethereum-types',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [markdownSections.introduction]: IntroMarkdown,
- [markdownSections.installation]: InstallationMarkdown,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/faq.ts b/packages/website/ts/containers/faq.ts
deleted file mode 100644
index da5b71bdd..000000000
--- a/packages/website/ts/containers/faq.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { Dispatch } from 'redux';
-import { FAQ as FAQComponent, FAQProps } from 'ts/pages/faq/faq';
-import { Dispatcher } from 'ts/redux/dispatcher';
-import { State } from 'ts/redux/reducer';
-import { Translate } from 'ts/utils/translate';
-
-interface ConnectedState {
- translate: Translate;
-}
-
-interface ConnectedDispatch {
- dispatcher: Dispatcher;
-}
-
-const mapStateToProps = (state: State, _ownProps: FAQProps): ConnectedState => ({
- translate: state.translate,
-});
-
-const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
- dispatcher: new Dispatcher(dispatch),
-});
-
-export const FAQ: React.ComponentClass<FAQProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(FAQComponent);
diff --git a/packages/website/ts/containers/generate_order_form.ts b/packages/website/ts/containers/generate_order_form.ts
deleted file mode 100644
index 98b2831ce..000000000
--- a/packages/website/ts/containers/generate_order_form.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-import { BigNumber } from '@0x/utils';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { Blockchain } from 'ts/blockchain';
-import { GenerateOrderForm as GenerateOrderFormComponent } from 'ts/components/generate_order/generate_order_form';
-import { Dispatcher } from 'ts/redux/dispatcher';
-import { State } from 'ts/redux/reducer';
-import { BlockchainErrs, HashData, SideToAssetToken, TokenByAddress } from 'ts/types';
-
-interface GenerateOrderFormProps {
- blockchain: Blockchain;
- hashData: HashData;
- dispatcher: Dispatcher;
- isFullWidth?: boolean;
- shouldHideHeader?: boolean;
-}
-
-interface ConnectedState {
- blockchainErr: BlockchainErrs;
- blockchainIsLoaded: boolean;
- orderExpiryTimestamp: BigNumber;
- orderSignature: string;
- userAddress: string;
- orderTakerAddress: string;
- orderSalt: BigNumber;
- networkId: number;
- sideToAssetToken: SideToAssetToken;
- tokenByAddress: TokenByAddress;
- lastForceTokenStateRefetch: number;
-}
-
-const mapStateToProps = (state: State, _ownProps: GenerateOrderFormProps): ConnectedState => ({
- blockchainErr: state.blockchainErr,
- blockchainIsLoaded: state.blockchainIsLoaded,
- orderExpiryTimestamp: state.orderExpiryTimestamp,
- orderSignature: state.orderSignature,
- orderTakerAddress: state.orderTakerAddress,
- orderSalt: state.orderSalt,
- networkId: state.networkId,
- sideToAssetToken: state.sideToAssetToken,
- tokenByAddress: state.tokenByAddress,
- userAddress: state.userAddress,
- lastForceTokenStateRefetch: state.lastForceTokenStateRefetch,
-});
-
-export const GenerateOrderForm: React.ComponentClass<GenerateOrderFormProps> = connect(mapStateToProps)(
- GenerateOrderFormComponent,
-);
diff --git a/packages/website/ts/containers/inputs/allowance_state_toggle.ts b/packages/website/ts/containers/inputs/allowance_state_toggle.ts
deleted file mode 100644
index 70712685e..000000000
--- a/packages/website/ts/containers/inputs/allowance_state_toggle.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { Dispatch } from 'redux';
-import { Blockchain } from 'ts/blockchain';
-import { PointerDirection } from 'ts/components/ui/pointer';
-import { State } from 'ts/redux/reducer';
-import { BalanceErrs, Token, TokenState } from 'ts/types';
-
-import { AllowanceStateToggle as AllowanceStateToggleComponent } from 'ts/components/inputs/allowance_state_toggle';
-import { Dispatcher } from 'ts/redux/dispatcher';
-
-interface AllowanceStateToggleProps {
- blockchain: Blockchain;
- onErrorOccurred?: (errType: BalanceErrs) => void;
- token: Token;
- tokenState: TokenState;
- refetchTokenStateAsync: () => Promise<void>;
- tooltipDirection?: PointerDirection;
-}
-
-interface ConnectedState {
- networkId: number;
- userAddress: string;
-}
-
-interface ConnectedDispatch {
- dispatcher: Dispatcher;
-}
-
-const mapStateToProps = (state: State, _ownProps: AllowanceStateToggleProps): ConnectedState => ({
- networkId: state.networkId,
- userAddress: state.userAddress,
-});
-
-const mapDispatchTopProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
- dispatcher: new Dispatcher(dispatch),
-});
-
-export const AllowanceStateToggle: React.ComponentClass<AllowanceStateToggleProps> = connect(
- mapStateToProps,
- mapDispatchTopProps,
-)(AllowanceStateToggleComponent);
diff --git a/packages/website/ts/containers/inputs/eth_amount_input.ts b/packages/website/ts/containers/inputs/eth_amount_input.ts
deleted file mode 100644
index 45d3ddebd..000000000
--- a/packages/website/ts/containers/inputs/eth_amount_input.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { BigNumber } from '@0x/utils';
-import { Web3Wrapper } from '@0x/web3-wrapper';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { State } from 'ts/redux/reducer';
-import { ValidatedBigNumberCallback } from 'ts/types';
-import { constants } from 'ts/utils/constants';
-
-import { EthAmountInput as EthAmountInputComponent } from 'ts/components/inputs/eth_amount_input';
-
-interface EthAmountInputProps {
- label?: string;
- amount?: BigNumber;
- hintText?: string;
- onChange: ValidatedBigNumberCallback;
- onErrorMsgChange?: (errorMsg: React.ReactNode) => void;
- shouldShowIncompleteErrs: boolean;
- shouldCheckBalance: boolean;
- shouldShowErrs?: boolean;
- shouldShowUnderline?: boolean;
- style?: React.CSSProperties;
- labelStyle?: React.CSSProperties;
- inputHintStyle?: React.CSSProperties;
-}
-
-interface ConnectedState {
- balance: BigNumber;
-}
-
-const mapStateToProps = (state: State, _ownProps: EthAmountInputProps): ConnectedState => ({
- balance: Web3Wrapper.toUnitAmount(state.userEtherBalanceInWei, constants.DECIMAL_PLACES_ETH),
-});
-
-export const EthAmountInput: React.ComponentClass<EthAmountInputProps> = connect(mapStateToProps)(
- EthAmountInputComponent,
-);
diff --git a/packages/website/ts/containers/json_schemas_documentation.ts b/packages/website/ts/containers/json_schemas_documentation.ts
deleted file mode 100644
index 1090265e7..000000000
--- a/packages/website/ts/containers/json_schemas_documentation.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown1 = require('md/docs/json_schemas/1/introduction');
-const IntroMarkdown3 = require('md/docs/json_schemas/3/introduction');
-const InstallationMarkdown1 = require('md/docs/json_schemas/1/installation');
-const InstallationMarkdown3 = require('md/docs/json_schemas/3/installation');
-const usageMarkdown1 = require('md/docs/json_schemas/1/usage');
-const usageMarkdown3 = require('md/docs/json_schemas/3/usage');
-const SchemasMarkdown1 = require('md/docs/json_schemas/1/schemas');
-const SchemasMarkdown2 = require('md/docs/json_schemas/2/schemas');
-const SchemasMarkdown3 = require('md/docs/json_schemas/3/schemas');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
- usage: 'usage',
- schemas: 'schemas',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.JSONSchemas,
- packageName: '@0x/json-schemas',
- type: SupportedDocJson.TypeDoc,
- displayName: 'JSON Schemas',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/json-schemas',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation, markdownSections.usage],
- schemas: [markdownSections.schemas],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown1,
- [markdownSections.schemas]: SchemasMarkdown1,
- [markdownSections.usage]: usageMarkdown1,
- },
- '1.0.0': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown1,
- [markdownSections.schemas]: SchemasMarkdown2,
- [markdownSections.usage]: usageMarkdown1,
- },
- '2.0.0': {
- [markdownSections.introduction]: IntroMarkdown3,
- [markdownSections.installation]: InstallationMarkdown3,
- [markdownSections.schemas]: SchemasMarkdown2,
- [markdownSections.usage]: usageMarkdown3,
- },
- '2.0.1': {
- [markdownSections.introduction]: IntroMarkdown3,
- [markdownSections.installation]: InstallationMarkdown3,
- [markdownSections.schemas]: SchemasMarkdown3,
- [markdownSections.usage]: usageMarkdown3,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/migrations_documentation.ts b/packages/website/ts/containers/migrations_documentation.ts
deleted file mode 100644
index bae84dfea..000000000
--- a/packages/website/ts/containers/migrations_documentation.ts
+++ /dev/null
@@ -1,67 +0,0 @@
-import { DocsInfo, DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { Dispatch } from 'redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { Dispatcher } from 'ts/redux/dispatcher';
-import { State } from 'ts/redux/reducer';
-import { DocPackages, ScreenWidths } from 'ts/types';
-import { Translate } from 'ts/utils/translate';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown1 = require('md/docs/migrations/1/introduction');
-const InstallationMarkdown1 = require('md/docs/migrations/1/installation');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.Migrations,
- packageName: '@0x/migrations',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Migrations',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/migrations',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation],
- },
- sectionNameToMarkdownByVersion: {
- '2.0.4': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown1,
- },
- },
- markdownSections,
-};
-const docsInfo = new DocsInfo(docsInfoConfig);
-
-interface ConnectedState {
- docsVersion: string;
- availableDocVersions: string[];
- docsInfo: DocsInfo;
- translate: Translate;
- screenWidth: ScreenWidths;
-}
-
-interface ConnectedDispatch {
- dispatcher: Dispatcher;
-}
-
-const mapStateToProps = (state: State, _ownProps: DocPageProps): ConnectedState => ({
- docsVersion: state.docsVersion,
- availableDocVersions: state.availableDocVersions,
- translate: state.translate,
- docsInfo,
- screenWidth: state.screenWidth,
-});
-
-const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
- dispatcher: new Dispatcher(dispatch),
-});
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/not_found.ts b/packages/website/ts/containers/not_found.ts
deleted file mode 100644
index 825c021ec..000000000
--- a/packages/website/ts/containers/not_found.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { Dispatch } from 'redux';
-import { NotFound as NotFoundComponent, NotFoundProps } from 'ts/pages/not_found';
-import { Dispatcher } from 'ts/redux/dispatcher';
-import { State } from 'ts/redux/reducer';
-import { Translate } from 'ts/utils/translate';
-
-interface ConnectedState {
- translate: Translate;
-}
-
-interface ConnectedDispatch {
- dispatcher: Dispatcher;
-}
-
-const mapStateToProps = (state: State, _ownProps: NotFoundProps): ConnectedState => ({
- translate: state.translate,
-});
-
-const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
- dispatcher: new Dispatcher(dispatch),
-});
-
-export const NotFound: React.ComponentClass<NotFoundProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(NotFoundComponent);
diff --git a/packages/website/ts/containers/order_utils_documentation.ts b/packages/website/ts/containers/order_utils_documentation.ts
deleted file mode 100644
index 8d83357ca..000000000
--- a/packages/website/ts/containers/order_utils_documentation.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown1 = require('md/docs/order_utils/1/introduction');
-const InstallationMarkdown1 = require('md/docs/order_utils/1/installation');
-const IntroMarkdown2 = require('md/docs/order_utils/2/introduction');
-const InstallationMarkdown2 = require('md/docs/order_utils/2/installation');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.OrderUtils,
- packageName: '@0x/order-utils',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Order utils',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/order-utils',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown1,
- },
- '2.0.0': {
- [markdownSections.introduction]: IntroMarkdown2,
- [markdownSections.installation]: InstallationMarkdown2,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/order_watcher_documentation.ts b/packages/website/ts/containers/order_watcher_documentation.ts
deleted file mode 100644
index 149ffdd2a..000000000
--- a/packages/website/ts/containers/order_watcher_documentation.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown1 = require('md/docs/order_watcher/1/introduction');
-const InstallationMarkdown1 = require('md/docs/order_watcher/1/installation');
-const IntroMarkdown2 = require('md/docs/order_watcher/2/introduction');
-const InstallationMarkdown2 = require('md/docs/order_watcher/2/installation');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.OrderWatcher,
- packageName: '@0x/order-watcher',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Order Watcher',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/order-watcher',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown1,
- },
- '2.2.0': {
- [markdownSections.introduction]: IntroMarkdown2,
- [markdownSections.installation]: InstallationMarkdown2,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/portal.ts b/packages/website/ts/containers/portal.ts
deleted file mode 100644
index db41a3ec3..000000000
--- a/packages/website/ts/containers/portal.ts
+++ /dev/null
@@ -1,93 +0,0 @@
-import { BigNumber } from '@0x/utils';
-import * as _ from 'lodash';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { Dispatch } from 'redux';
-import { Portal as PortalComponent, PortalProps as PortalComponentProps } from 'ts/components/portal/portal';
-import { Dispatcher } from 'ts/redux/dispatcher';
-import { State } from 'ts/redux/reducer';
-import { BlockchainErrs, HashData, PortalOrder, ProviderType, ScreenWidths, Side, TokenByAddress } from 'ts/types';
-import { constants } from 'ts/utils/constants';
-import { Translate } from 'ts/utils/translate';
-
-interface ConnectedState {
- blockchainErr: BlockchainErrs;
- blockchainIsLoaded: boolean;
- hashData: HashData;
- injectedProviderName: string;
- networkId: number;
- nodeVersion: string;
- orderFillAmount: BigNumber;
- providerType: ProviderType;
- tokenByAddress: TokenByAddress;
- lastForceTokenStateRefetch: number;
- userEtherBalanceInWei?: BigNumber;
- screenWidth: ScreenWidths;
- shouldBlockchainErrDialogBeOpen: boolean;
- userAddress: string;
- userSuppliedOrderCache: PortalOrder;
- flashMessage?: string | React.ReactNode;
- translate: Translate;
- isPortalOnboardingShowing: boolean;
- portalOnboardingStep: number;
-}
-
-interface ConnectedDispatch {
- dispatcher: Dispatcher;
-}
-
-const mapStateToProps = (state: State, _ownProps: PortalComponentProps): ConnectedState => {
- const receiveAssetToken = state.sideToAssetToken[Side.Receive];
- const depositAssetToken = state.sideToAssetToken[Side.Deposit];
- const receiveAddress = !_.isUndefined(receiveAssetToken.address)
- ? receiveAssetToken.address
- : constants.NULL_ADDRESS;
- const depositAddress = !_.isUndefined(depositAssetToken.address)
- ? depositAssetToken.address
- : constants.NULL_ADDRESS;
- const receiveAmount = !_.isUndefined(receiveAssetToken.amount) ? receiveAssetToken.amount : new BigNumber(0);
- const depositAmount = !_.isUndefined(depositAssetToken.amount) ? depositAssetToken.amount : new BigNumber(0);
- const hashData = {
- depositAmount,
- depositTokenContractAddr: depositAddress,
- feeRecipientAddress: constants.NULL_ADDRESS,
- makerFee: constants.MAKER_FEE,
- orderExpiryTimestamp: state.orderExpiryTimestamp,
- orderMakerAddress: state.userAddress,
- orderTakerAddress: state.orderTakerAddress !== '' ? state.orderTakerAddress : constants.NULL_ADDRESS,
- receiveAmount,
- receiveTokenContractAddr: receiveAddress,
- takerFee: constants.TAKER_FEE,
- orderSalt: state.orderSalt,
- };
- return {
- blockchainErr: state.blockchainErr,
- blockchainIsLoaded: state.blockchainIsLoaded,
- hashData,
- injectedProviderName: state.injectedProviderName,
- networkId: state.networkId,
- nodeVersion: state.nodeVersion,
- orderFillAmount: state.orderFillAmount,
- providerType: state.providerType,
- screenWidth: state.screenWidth,
- shouldBlockchainErrDialogBeOpen: state.shouldBlockchainErrDialogBeOpen,
- tokenByAddress: state.tokenByAddress,
- lastForceTokenStateRefetch: state.lastForceTokenStateRefetch,
- userAddress: state.userAddress,
- userEtherBalanceInWei: state.userEtherBalanceInWei,
- userSuppliedOrderCache: state.userSuppliedOrderCache,
- flashMessage: state.flashMessage,
- translate: state.translate,
- isPortalOnboardingShowing: state.isPortalOnboardingShowing,
- portalOnboardingStep: state.portalOnboardingStep,
- };
-};
-
-const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
- dispatcher: new Dispatcher(dispatch),
-});
-
-export const Portal: React.ComponentClass<PortalComponentProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(PortalComponent);
diff --git a/packages/website/ts/containers/portal_onboarding_flow.ts b/packages/website/ts/containers/portal_onboarding_flow.ts
deleted file mode 100644
index 66473733c..000000000
--- a/packages/website/ts/containers/portal_onboarding_flow.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-import { BigNumber } from '@0x/utils';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { Dispatch } from 'redux';
-import { Blockchain } from 'ts/blockchain';
-import { ActionTypes, ProviderType, ScreenWidths, TokenByAddress, TokenStateByAddress } from 'ts/types';
-
-import { PortalOnboardingFlow as PortalOnboardingFlowComponent } from 'ts/components/onboarding/portal_onboarding_flow';
-import { State } from 'ts/redux/reducer';
-
-interface PortalOnboardingFlowProps {
- trackedTokenStateByAddress: TokenStateByAddress;
- blockchain: Blockchain;
- refetchTokenStateAsync: (tokenAddress: string) => Promise<void>;
-}
-
-interface ConnectedState {
- networkId: number;
- stepIndex: number;
- isRunning: boolean;
- userAddress: string;
- hasBeenClosed: boolean;
- providerType: ProviderType;
- injectedProviderName: string;
- blockchainIsLoaded: boolean;
- userEtherBalanceInWei?: BigNumber;
- tokenByAddress: TokenByAddress;
- screenWidth: ScreenWidths;
-}
-
-interface ConnectedDispatch {
- updateIsRunning: (isRunning: boolean) => void;
- updateOnboardingStep: (stepIndex: number) => void;
-}
-
-const mapStateToProps = (state: State, _ownProps: PortalOnboardingFlowProps): ConnectedState => ({
- networkId: state.networkId,
- stepIndex: state.portalOnboardingStep,
- isRunning: state.isPortalOnboardingShowing,
- userAddress: state.userAddress,
- providerType: state.providerType,
- injectedProviderName: state.injectedProviderName,
- blockchainIsLoaded: state.blockchainIsLoaded,
- userEtherBalanceInWei: state.userEtherBalanceInWei,
- tokenByAddress: state.tokenByAddress,
- hasBeenClosed: state.hasPortalOnboardingBeenClosed,
- screenWidth: state.screenWidth,
-});
-
-const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
- updateIsRunning: (isRunning: boolean): void => {
- dispatch({
- type: ActionTypes.UpdatePortalOnboardingShowing,
- data: isRunning,
- });
- },
- updateOnboardingStep: (stepIndex: number): void => {
- dispatch({
- type: ActionTypes.UpdatePortalOnboardingStep,
- data: stepIndex,
- });
- },
-});
-
-export const PortalOnboardingFlow: React.ComponentClass<PortalOnboardingFlowProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(PortalOnboardingFlowComponent);
diff --git a/packages/website/ts/containers/smart_contracts_documentation.ts b/packages/website/ts/containers/smart_contracts_documentation.ts
deleted file mode 100644
index d94e285a7..000000000
--- a/packages/website/ts/containers/smart_contracts_documentation.ts
+++ /dev/null
@@ -1,97 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import { Networks } from '@0x/react-shared';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages, SmartContractDocSections as Sections } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown1 = require('md/docs/smart_contracts/1/introduction');
-const IntroMarkdown2 = require('md/docs/smart_contracts/2/introduction');
-/* tslint:enable:no-var-requires */
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.SmartContracts,
- packageName: 'contracts',
- type: SupportedDocJson.SolDoc,
- displayName: '0x Smart Contracts',
- packageUrl: 'https://github.com/0xProject/contracts',
- markdownMenu: {
- introduction: [Sections.Introduction],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [Sections.Introduction]: IntroMarkdown1,
- },
- '2.0.0': {
- [Sections.Introduction]: IntroMarkdown2,
- },
- },
- markdownSections: {
- Introduction: Sections.Introduction,
- },
- contractsByVersionByNetworkId: {
- '1.0.0': {
- [Networks.Mainnet]: {
- Exchange_v1: '0x12459c951127e0c374ff9105dda097662a027093',
- TokenTransferProxy_v1: '0x8da0d80f5007ef1e431dd2127178d224e32c2ef4',
- TokenRegistry: '0x926a74c5c36adf004c87399e65f75628b0f98d2c',
- },
- [Networks.Ropsten]: {
- Exchange_v1: '0x479cc461fecd078f766ecc58533d6f69580cf3ac',
- TokenTransferProxy_v1: '0x4e9aad8184de8833365fea970cd9149372fdf1e6',
- TokenRegistry: '0x6b1a50f0bb5a7995444bd3877b22dc89c62843ed',
- },
- [Networks.Kovan]: {
- Exchange_v1: '0x90fe2af704b34e0224bf2299c838e04d4dcf1364',
- TokenTransferProxy_v1: '0x087Eed4Bc1ee3DE49BeFbd66C662B434B15d49d4',
- TokenRegistry: '0xf18e504561f4347bea557f3d4558f559dddbae7f',
- },
- [Networks.Rinkeby]: {
- Exchange_v1: '0x1d16ef40fac01cec8adac2ac49427b9384192c05',
- TokenTransferProxy_v1: '0xa8e9fa8f91e5ae138c74648c9c304f1c75003a8d',
- TokenRegistry: '0x4e9aad8184de8833365fea970cd9149372fdf1e6',
- },
- },
- '2.0.0': {
- [Networks.Mainnet]: {
- AssetProxyOwner: '0x17992e4ffb22730138e4b62aaa6367fa9d3699a6',
- ERC20Proxy: '0x2240dab907db71e64d3e0dba4800c83b5c502d4e',
- ERC721Proxy: '0x208e41fb445f1bb1b6780d58356e81405f3e6127',
- Exchange: '0x4f833a24e1f95d70f028921e27040ca56e09ab0b',
- Forwarder: '0x7afc2d5107af94c462a194d2c21b5bdd238709d6',
- OrderValidator: '0x9463e518dea6810309563c81d5266c1b1d149138',
- WETH9: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
- ZRXToken: '0xe41d2489571d322189246dafa5ebde1f4699f498',
- },
- [Networks.Ropsten]: {
- AssetProxyOwner: '0xf5fa5b5fed2727a0e44ac67f6772e97977aa358b',
- ERC20Proxy: '0xb1408f4c245a23c31b98d2c626777d4c0d766caa',
- ERC721Proxy: '0xe654aac058bfbf9f83fcaee7793311dd82f6ddb4',
- Exchange: '0x4530c0483a1633c7a1c97d2c53721caff2caaaaf',
- Forwarder: '0x3983e204b12b3c02fb0638caf2cd406a62e0ead3',
- OrderValidator: '0x90431a90516ab49af23a0530e04e8c7836e7122f',
- WETH9: '0xc778417e063141139fce010982780140aa0cd5ab',
- ZRXToken: '0xff67881f8d12f372d91baae9752eb3631ff0ed00',
- },
- [Networks.Kovan]: {
- AssetProxyOwner: '0x2c824d2882baa668e0d5202b1e7f2922278703f8',
- ERC20Proxy: '0xf1ec01d6236d3cd881a0bf0130ea25fe4234003e',
- ERC721Proxy: '0x2a9127c745688a165106c11cd4d647d2220af821',
- Exchange: '0x35dd2932454449b14cee11a94d3674a936d5d7b2',
- Forwarder: '0xd85e2fa7e7e252b27b01bf0d65c946959d2f45b8',
- OrderValidator: '0xb389da3d204b412df2f75c6afb3d0a7ce0bc283d',
- WETH9: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
- ZRXToken: '0x2002d3812f58e35f0ea1ffbf80a75a38c32175fa',
- },
- },
- },
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/sol_compiler_documentation.ts b/packages/website/ts/containers/sol_compiler_documentation.ts
deleted file mode 100644
index 31117372b..000000000
--- a/packages/website/ts/containers/sol_compiler_documentation.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown1 = require('md/docs/sol-compiler/1/introduction');
-const InstallationMarkdown1 = require('md/docs/sol-compiler/1/installation');
-const InstallationMarkdown2 = require('md/docs/sol-compiler/2/installation');
-const UsageMarkdown1 = require('md/docs/sol-compiler/1/usage');
-const UsageMarkdown2 = require('md/docs/sol-compiler/2/usage');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
- usage: 'usage',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.SolCompiler,
- packageName: '@0x/sol-compiler',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Solidity Compiler',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/sol-compiler',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation, markdownSections.usage],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown1,
- [markdownSections.usage]: UsageMarkdown1,
- },
- '1.1.8': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown2,
- [markdownSections.usage]: UsageMarkdown2,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/sol_coverage_documentation.ts b/packages/website/ts/containers/sol_coverage_documentation.ts
deleted file mode 100644
index a9073b720..000000000
--- a/packages/website/ts/containers/sol_coverage_documentation.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown = require('md/docs/sol_coverage/introduction');
-const InstallationMarkdown = require('md/docs/sol_coverage/installation');
-const UsageMarkdown = require('md/docs/sol_coverage/usage');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
- usage: 'usage',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.SolCoverage,
- packageName: '@0x/sol-coverage',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Sol-coverage',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/sol-coverage',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation, markdownSections.usage],
- },
- sectionNameToMarkdownByVersion: {
- '1.0.0': {
- [markdownSections.introduction]: IntroMarkdown,
- [markdownSections.installation]: InstallationMarkdown,
- [markdownSections.usage]: UsageMarkdown,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/sol_profiler_documentation.ts b/packages/website/ts/containers/sol_profiler_documentation.ts
deleted file mode 100644
index 2f3936cae..000000000
--- a/packages/website/ts/containers/sol_profiler_documentation.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown = require('md/docs/sol_profiler/introduction');
-const InstallationMarkdown = require('md/docs/sol_profiler/installation');
-const UsageMarkdown = require('md/docs/sol_profiler/usage');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
- usage: 'usage',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.SolProfiler,
- packageName: '@0x/sol-profiler',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Sol-profiler',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/sol-profiler',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation, markdownSections.usage],
- },
- sectionNameToMarkdownByVersion: {
- '1.0.0': {
- [markdownSections.introduction]: IntroMarkdown,
- [markdownSections.installation]: InstallationMarkdown,
- [markdownSections.usage]: UsageMarkdown,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/sol_trace_documentation.ts b/packages/website/ts/containers/sol_trace_documentation.ts
deleted file mode 100644
index 9c2552438..000000000
--- a/packages/website/ts/containers/sol_trace_documentation.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown = require('md/docs/sol_trace/introduction');
-const InstallationMarkdown = require('md/docs/sol_trace/installation');
-const UsageMarkdown = require('md/docs/sol_trace/usage');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
- usage: 'usage',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.SolTrace,
- packageName: '@0x/sol-trace',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Sol-trace',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/sol-trace',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation, markdownSections.usage],
- },
- sectionNameToMarkdownByVersion: {
- '1.0.0': {
- [markdownSections.introduction]: IntroMarkdown,
- [markdownSections.installation]: InstallationMarkdown,
- [markdownSections.usage]: UsageMarkdown,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/subproviders_documentation.ts b/packages/website/ts/containers/subproviders_documentation.ts
deleted file mode 100644
index 2ac0360ab..000000000
--- a/packages/website/ts/containers/subproviders_documentation.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown1 = require('md/docs/subproviders/1/introduction');
-const InstallationMarkdown1 = require('md/docs/subproviders/1/installation');
-const InstallationMarkdown2 = require('md/docs/subproviders/2/installation');
-const LedgerNodeHidMarkdown1 = require('md/docs/subproviders/1/ledger_node_hid');
-/* tslint:enable:no-var-requires */
-
-const docSections = {
- introduction: 'introduction',
- installation: 'installation',
- ledgerNodeHid: 'ledger-node-hid-issue',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.Subproviders,
- packageName: '@0x/subproviders',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Subproviders',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/subproviders',
- markdownMenu: {
- 'getting-started': [docSections.introduction, docSections.installation, docSections.ledgerNodeHid],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [docSections.introduction]: IntroMarkdown1,
- [docSections.installation]: InstallationMarkdown1,
- [docSections.ledgerNodeHid]: LedgerNodeHidMarkdown1,
- },
- '2.1.0': {
- [docSections.introduction]: IntroMarkdown1,
- [docSections.installation]: InstallationMarkdown2,
- [docSections.ledgerNodeHid]: LedgerNodeHidMarkdown1,
- },
- },
- markdownSections: docSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/web3_wrapper_documentation.ts b/packages/website/ts/containers/web3_wrapper_documentation.ts
deleted file mode 100644
index 73fea90ed..000000000
--- a/packages/website/ts/containers/web3_wrapper_documentation.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdown1 = require('md/docs/web3_wrapper/1/introduction');
-const InstallationMarkdown1 = require('md/docs/web3_wrapper/1/installation');
-const InstallationMarkdown2 = require('md/docs/web3_wrapper/2/installation');
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.Web3Wrapper,
- packageName: '@0x/web3-wrapper',
- type: SupportedDocJson.TypeDoc,
- displayName: 'Web3Wrapper',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/web3-wrapper',
- markdownMenu: {
- 'getting-started': [markdownSections.introduction, markdownSections.installation],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown1,
- },
- '3.1.0': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown2,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);
diff --git a/packages/website/ts/containers/wiki.ts b/packages/website/ts/containers/wiki.ts
deleted file mode 100644
index f4f2f6ec6..000000000
--- a/packages/website/ts/containers/wiki.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { Dispatch } from 'redux';
-import { Wiki as WikiComponent, WikiProps } from 'ts/pages/wiki/wiki';
-import { Dispatcher } from 'ts/redux/dispatcher';
-import { State } from 'ts/redux/reducer';
-import { ScreenWidths } from 'ts/types';
-import { Translate } from 'ts/utils/translate';
-
-interface ConnectedState {
- translate: Translate;
- screenWidth: ScreenWidths;
-}
-
-interface ConnectedDispatch {
- dispatcher: Dispatcher;
-}
-
-const mapStateToProps = (state: State, _ownProps: WikiProps): ConnectedState => ({
- translate: state.translate,
- screenWidth: state.screenWidth,
-});
-
-const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
- dispatcher: new Dispatcher(dispatch),
-});
-
-export const Wiki: React.ComponentClass<WikiProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(WikiComponent);
diff --git a/packages/website/ts/containers/zero_ex_js_documentation.ts b/packages/website/ts/containers/zero_ex_js_documentation.ts
deleted file mode 100644
index 0e4765656..000000000
--- a/packages/website/ts/containers/zero_ex_js_documentation.ts
+++ /dev/null
@@ -1,78 +0,0 @@
-import { DocsInfoConfig, SupportedDocJson } from '@0x/react-docs';
-import * as React from 'react';
-import { connect } from 'react-redux';
-import { DocPage as DocPageComponent, DocPageProps } from 'ts/pages/documentation/doc_page';
-import { DocPackages } from 'ts/types';
-
-import { getMapStateToProps, mapDispatchToProps } from '../utils/documentation_container';
-
-/* tslint:disable:no-var-requires */
-const IntroMarkdownV0 = require('md/docs/0xjs/0.0.1/introduction');
-const InstallationMarkdownV0 = require('md/docs/0xjs/0.0.1/installation');
-const AsyncMarkdownV0 = require('md/docs/0xjs/0.0.1/async');
-const ErrorsMarkdownV0 = require('md/docs/0xjs/0.0.1/errors');
-const versioningMarkdownV0 = require('md/docs/0xjs/0.0.1/versioning');
-
-const IntroMarkdown1 = require('md/docs/0xjs/1.0.1/introduction');
-const InstallationMarkdown1 = require('md/docs/0xjs/1.0.1/installation');
-const AsyncMarkdownV1 = require('md/docs/0xjs/1.0.1/async');
-const ErrorsMarkdownV1 = ErrorsMarkdownV0;
-const versioningMarkdownV1 = require('md/docs/0xjs/1.0.1/versioning');
-
-/* tslint:enable:no-var-requires */
-
-const markdownSections = {
- introduction: 'introduction',
- installation: 'installation',
- testrpc: 'testrpc',
- async: 'async',
- errors: 'errors',
- versioning: 'versioning',
-};
-
-const docsInfoConfig: DocsInfoConfig = {
- id: DocPackages.ZeroExJs,
- packageName: '0x.js',
- type: SupportedDocJson.TypeDoc,
- displayName: '0x.js',
- packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/0x.js',
- markdownMenu: {
- 'getting-started': [
- markdownSections.introduction,
- markdownSections.installation,
- markdownSections.async,
- markdownSections.errors,
- markdownSections.versioning,
- ],
- },
- sectionNameToMarkdownByVersion: {
- '0.0.1': {
- [markdownSections.introduction]: IntroMarkdownV0,
- [markdownSections.installation]: InstallationMarkdownV0,
- [markdownSections.versioning]: versioningMarkdownV0,
- [markdownSections.async]: AsyncMarkdownV0,
- [markdownSections.errors]: ErrorsMarkdownV0,
- },
- '1.0.1': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown1,
- [markdownSections.versioning]: versioningMarkdownV1,
- [markdownSections.async]: AsyncMarkdownV1,
- [markdownSections.errors]: ErrorsMarkdownV1,
- },
- '2.0.0': {
- [markdownSections.introduction]: IntroMarkdown1,
- [markdownSections.installation]: InstallationMarkdown1,
- [markdownSections.versioning]: versioningMarkdownV1,
- [markdownSections.async]: AsyncMarkdownV1,
- [markdownSections.errors]: ErrorsMarkdownV1,
- },
- },
- markdownSections,
-};
-const mapStateToProps = getMapStateToProps(docsInfoConfig);
-
-export const Documentation: React.ComponentClass<DocPageProps> = connect(
- mapStateToProps,
- mapDispatchToProps,
-)(DocPageComponent);