From 116149c9f8de5dfdbb5715948ebf607710e35653 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 19 Nov 2017 18:05:35 -0800 Subject: [PATCH] fixes --- app/menus/AccountMenu.js | 15 +++++++++++---- app/scenes/Flatpage/Flatpage.js | 32 -------------------------------- app/scenes/Flatpage/index.js | 3 --- server/pages/Api.js | 12 ++++++------ 4 files changed, 17 insertions(+), 45 deletions(-) delete mode 100644 app/scenes/Flatpage/Flatpage.js delete mode 100644 app/scenes/Flatpage/index.js diff --git a/app/menus/AccountMenu.js b/app/menus/AccountMenu.js index 93969ae71..649039072 100644 --- a/app/menus/AccountMenu.js +++ b/app/menus/AccountMenu.js @@ -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 ( - - Settings + + + Settings + Keyboard shortcuts - API documentation + + API documentation + Logout ); diff --git a/app/scenes/Flatpage/Flatpage.js b/app/scenes/Flatpage/Flatpage.js deleted file mode 100644 index 58bff50e4..000000000 --- a/app/scenes/Flatpage/Flatpage.js +++ /dev/null @@ -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 ( - - - {}} - onSave={() => {}} - onCancel={() => {}} - onImageUploadStart={() => {}} - onImageUploadStop={() => {}} - readOnly - /> - - ); -}); - -export default Flatpage; diff --git a/app/scenes/Flatpage/index.js b/app/scenes/Flatpage/index.js deleted file mode 100644 index 55cdbb815..000000000 --- a/app/scenes/Flatpage/index.js +++ /dev/null @@ -1,3 +0,0 @@ -// @flow -import Flatpage from './Flatpage'; -export default Flatpage; diff --git a/server/pages/Api.js b/server/pages/Api.js index e3cb48c52..085b6e19c 100644 --- a/server/pages/Api.js +++ b/server/pages/Api.js @@ -61,8 +61,8 @@ export default function Pricing() {

Outline API

- 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.

@@ -73,10 +73,10 @@ export default function Pricing() {

Making requests

- 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{' '} https://www.getoutline.com/api/<METHOD>. Both{' '} - GET and POST methods are supported but it's + GET and POST methods are supported but it’s recommeded that you make all call using POST. Only HTTPS is supported in production.

@@ -143,7 +143,7 @@ export default function Pricing() {

All successful API requests will be returned with 200{' '} status code and ok: true 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 error message:

@@ -353,7 +353,7 @@ export default function Pricing() { - 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.