This commit is contained in:
Jori Lallo
2017-11-19 18:05:35 -08:00
parent b4f7d9f61d
commit 116149c9f8
4 changed files with 17 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
// @flow
import React, { Component } from 'react';
import { Link, withRouter } from 'react-router-dom';
import { withRouter } from 'react-router-dom';
import { inject, observer } from 'mobx-react';
import UiStore from 'stores/UiStore';
import AuthStore from 'stores/AuthStore';
@@ -34,12 +34,19 @@ class AccountMenu extends Component {
render() {
return (
<DropdownMenu style={{ marginRight: 10, marginTop: -10 }} label={this.props.label}>
<DropdownMenuItem onClick={this.handleOpenSettings}>Settings</DropdownMenuItem>
<DropdownMenu
style={{ marginRight: 10, marginTop: -10 }}
label={this.props.label}
>
<DropdownMenuItem onClick={this.handleOpenSettings}>
Settings
</DropdownMenuItem>
<DropdownMenuItem onClick={this.handleOpenKeyboardShortcuts}>
Keyboard shortcuts
</DropdownMenuItem>
<DropdownMenuItem onClick={this.handleApi}>API documentation</DropdownMenuItem>
<DropdownMenuItem onClick={this.handleApi}>
API documentation
</DropdownMenuItem>
<DropdownMenuItem onClick={this.handleLogout}>Logout</DropdownMenuItem>
</DropdownMenu>
);

View File

@@ -1,32 +0,0 @@
// @flow
import React from 'react';
import { observer } from 'mobx-react';
import CenteredContent from 'components/CenteredContent';
import Editor from 'components/Editor';
import PageTitle from 'components/PageTitle';
type Props = {
title: string,
content: string,
};
const Flatpage = observer((props: Props) => {
const { title, content } = props;
return (
<CenteredContent>
<PageTitle title={title} />
<Editor
text={content}
onChange={() => {}}
onSave={() => {}}
onCancel={() => {}}
onImageUploadStart={() => {}}
onImageUploadStop={() => {}}
readOnly
/>
</CenteredContent>
);
});
export default Flatpage;

View File

@@ -1,3 +0,0 @@
// @flow
import Flatpage from './Flatpage';
export default Flatpage;

View File

@@ -61,8 +61,8 @@ export default function Pricing() {
<Container>
<h1>Outline API</h1>
<p>
First thing we build for Outline was its API. It's the heart and sole
of the service and as developers, it's our mission to make the API as
First thing we build for Outline was its API. Its the heart and sole
of the service and as developers, its our mission to make the API as
rich and easy to use as possible.
</p>
<p>
@@ -73,10 +73,10 @@ export default function Pricing() {
</p>
<h2>Making requests</h2>
<p>
Outline's API follows simple RPC style conventions where each API
Outlines API follows simple RPC style conventions where each API
endpoint is a method on{' '}
<code>https://www.getoutline.com/api/&lt;METHOD&gt;</code>. Both{' '}
<code>GET</code> and <code>POST</code> methods are supported but it's
<code>GET</code> and <code>POST</code> methods are supported but its
recommeded that you make all call using <code>POST</code>. Only HTTPS
is supported in production.
</p>
@@ -143,7 +143,7 @@ export default function Pricing() {
<p>
All successful API requests will be returned with <code>200</code>{' '}
status code and <code>ok: true</code> in the response payload. If
there's an error while making the request, appropriate status code is
theres an error while making the request, appropriate status code is
returned with the <code>error</code> message:
</p>
@@ -353,7 +353,7 @@ export default function Pricing() {
<Method method="documents.info" label="Get a document">
<Description>
Get a document with its ID or URL identifier from user's
Get a document with its ID or URL identifier from users
collections.
</Description>
<Arguments>