fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import React, { Component } from 'react';
|
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 { inject, observer } from 'mobx-react';
|
||||||
import UiStore from 'stores/UiStore';
|
import UiStore from 'stores/UiStore';
|
||||||
import AuthStore from 'stores/AuthStore';
|
import AuthStore from 'stores/AuthStore';
|
||||||
@@ -34,12 +34,19 @@ class AccountMenu extends Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<DropdownMenu style={{ marginRight: 10, marginTop: -10 }} label={this.props.label}>
|
<DropdownMenu
|
||||||
<DropdownMenuItem onClick={this.handleOpenSettings}>Settings</DropdownMenuItem>
|
style={{ marginRight: 10, marginTop: -10 }}
|
||||||
|
label={this.props.label}
|
||||||
|
>
|
||||||
|
<DropdownMenuItem onClick={this.handleOpenSettings}>
|
||||||
|
Settings
|
||||||
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem onClick={this.handleOpenKeyboardShortcuts}>
|
<DropdownMenuItem onClick={this.handleOpenKeyboardShortcuts}>
|
||||||
Keyboard shortcuts
|
Keyboard shortcuts
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem onClick={this.handleApi}>API documentation</DropdownMenuItem>
|
<DropdownMenuItem onClick={this.handleApi}>
|
||||||
|
API documentation
|
||||||
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem onClick={this.handleLogout}>Logout</DropdownMenuItem>
|
<DropdownMenuItem onClick={this.handleLogout}>Logout</DropdownMenuItem>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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;
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
// @flow
|
|
||||||
import Flatpage from './Flatpage';
|
|
||||||
export default Flatpage;
|
|
||||||
@@ -61,8 +61,8 @@ export default function Pricing() {
|
|||||||
<Container>
|
<Container>
|
||||||
<h1>Outline API</h1>
|
<h1>Outline API</h1>
|
||||||
<p>
|
<p>
|
||||||
First thing we build for Outline was its API. It's the heart and sole
|
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
|
of the service and as developers, it’s our mission to make the API as
|
||||||
rich and easy to use as possible.
|
rich and easy to use as possible.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@@ -73,10 +73,10 @@ export default function Pricing() {
|
|||||||
</p>
|
</p>
|
||||||
<h2>Making requests</h2>
|
<h2>Making requests</h2>
|
||||||
<p>
|
<p>
|
||||||
Outline's API follows simple RPC style conventions where each API
|
Outline’s API follows simple RPC style conventions where each API
|
||||||
endpoint is a method on{' '}
|
endpoint is a method on{' '}
|
||||||
<code>https://www.getoutline.com/api/<METHOD></code>. Both{' '}
|
<code>https://www.getoutline.com/api/<METHOD></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 it’s
|
||||||
recommeded that you make all call using <code>POST</code>. Only HTTPS
|
recommeded that you make all call using <code>POST</code>. Only HTTPS
|
||||||
is supported in production.
|
is supported in production.
|
||||||
</p>
|
</p>
|
||||||
@@ -143,7 +143,7 @@ export default function Pricing() {
|
|||||||
<p>
|
<p>
|
||||||
All successful API requests will be returned with <code>200</code>{' '}
|
All successful API requests will be returned with <code>200</code>{' '}
|
||||||
status code and <code>ok: true</code> in the response payload. If
|
status code and <code>ok: true</code> in the response payload. If
|
||||||
there's an error while making the request, appropriate status code is
|
there’s an error while making the request, appropriate status code is
|
||||||
returned with the <code>error</code> message:
|
returned with the <code>error</code> message:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -353,7 +353,7 @@ export default function Pricing() {
|
|||||||
|
|
||||||
<Method method="documents.info" label="Get a document">
|
<Method method="documents.info" label="Get a document">
|
||||||
<Description>
|
<Description>
|
||||||
Get a document with its ID or URL identifier from user's
|
Get a document with its ID or URL identifier from user’s
|
||||||
collections.
|
collections.
|
||||||
</Description>
|
</Description>
|
||||||
<Arguments>
|
<Arguments>
|
||||||
|
|||||||
Reference in New Issue
Block a user