fixes
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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>
|
||||
<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. It’s the heart and sole
|
||||
of the service and as developers, it’s 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
|
||||
Outline’s API follows simple RPC style conventions where each API
|
||||
endpoint is a method on{' '}
|
||||
<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
|
||||
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
|
||||
there’s 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 user’s
|
||||
collections.
|
||||
</Description>
|
||||
<Arguments>
|
||||
|
||||
Reference in New Issue
Block a user