diff --git a/frontend/src/AppCreator.js b/frontend/src/AppCreator.js index d7ef4242..5e85376b 100644 --- a/frontend/src/AppCreator.js +++ b/frontend/src/AppCreator.js @@ -35,6 +35,7 @@ const actionListStyle = { marginTop: "5px", backgroundColor: inputColor, display: "flex", + color: "white", } const boxStyle = { @@ -1013,7 +1014,7 @@ const AppCreator = (props) => { const actionView = -
+

Actions

Actions are the tasks performed by an app. Read more about actions and apps here. @@ -1038,7 +1039,7 @@ const AppCreator = (props) => {
const testView = -
+

Test

Test an action to see whether it performs in an expected way.  Click here to learn more about testing. @@ -1087,18 +1088,18 @@ const AppCreator = (props) => { // Random names for type & autoComplete. Didn't research :^) const landingpageDataBrowser = -
+
-

General information

+

General information

Click here to learn more about app creation -
+
{upload.click()}}> upload = ref} onChange={editHeaderImage} /> {imageInfo}
-
+
Name {
-

API information

- Base URL - leave empty if user changeable +

API information

+ Base URL - leave empty if user changeable { onChange={e => setBaseUrl(e.target.value)} /> -
Authentication
+
Authentication
{ } const appView = isLoggedIn ? -
+
-
+

Upload

-
+

Available integrations

@@ -499,7 +501,7 @@ const Apps = (props) => {
{apps.length > 0 ? filteredApps.length > 0 ? -
+
{filteredApps.map(app => { return ( appPaper(app) diff --git a/frontend/src/Docs.js b/frontend/src/Docs.js index 55c7c09c..2ac9c2f3 100644 --- a/frontend/src/Docs.js +++ b/frontend/src/Docs.js @@ -10,9 +10,9 @@ import MenuItem from '@material-ui/core/MenuItem'; import {Link} from 'react-router-dom'; const Body = { - maxWidth: '1000px', - minWidth: '768px', - margin: 'auto', + maxWidth: '1000px', + minWidth: '768px', + margin: 'auto', display: "flex", heigth: "100%", color: "white", @@ -52,7 +52,7 @@ const Docs = (props) => { if (firstrequest) { setFirstrequest(false) fetchDocList() - fetchDocs() + fetchDocs(props.match.params.key) return } @@ -142,8 +142,8 @@ const Docs = (props) => { .catch(error => {}); } - const fetchDocs = () => { - fetch(globalUrl+"/api/v1/docs/"+props.match.params.key, { + const fetchDocs = (docId) => { + fetch(globalUrl+"/api/v1/docs/"+docId, { method: 'GET', headers: { 'Content-Type': 'application/json', @@ -164,6 +164,8 @@ const Docs = (props) => { const markdownStyle = { color: "rgba(255, 255, 255, 0.65)", flex: "1", + maxWidth: 750, + overflow: "hidden", } function OuterLink(props) { @@ -196,12 +198,12 @@ const Docs = (props) => { {list.map(item => { const path = "/docs/"+item - const newname = item.charAt(0).toUpperCase()+item.substring(1) + const newname = item.charAt(0).toUpperCase()+item.substring(1).split("_").join(" ") return (
  • - + {fetchDocs(item)}}>

    {newname}

    -
    +
  • ) })} @@ -241,7 +243,7 @@ const Docs = (props) => { > {list.map(item => { const path = "/docs/"+item - const newname = item.charAt(0).toUpperCase()+item.substring(1) + const newname = item.charAt(0).toUpperCase()+item.substring(1).split("_").join(" ") return ( {window.location.pathname = path}}>{newname} )