Fixed app documentation loading
This commit is contained in:
+12
-1
@@ -1,4 +1,4 @@
|
|||||||
# Certificate:
|
## Localhost Certificate info:
|
||||||
|
|
||||||
Creating a localhost certificate:
|
Creating a localhost certificate:
|
||||||
|
|
||||||
@@ -7,3 +7,14 @@ openssl genrsa -out privkey.pem 2048
|
|||||||
openssl req -new -key privkey.pem -out certreq.csr
|
openssl req -new -key privkey.pem -out certreq.csr
|
||||||
openssl x509 -req -days 3650 -in certreq.csr -signkey privkey.pem -out fullchain.pem
|
openssl x509 -req -days 3650 -in certreq.csr -signkey privkey.pem -out fullchain.pem
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Using your own certificate
|
||||||
|
If you have your own .crt and .key file, you can do it like this:
|
||||||
|
```
|
||||||
|
openssl x509 -in mycert.crt -out fullchain.cert.pem -outform PEM
|
||||||
|
```
|
||||||
|
|
||||||
|
The KEY file has to be named privkey.pem
|
||||||
|
```
|
||||||
|
mv cert.key privkey.pem
|
||||||
|
```
|
||||||
|
|||||||
@@ -398,8 +398,8 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const getAppDocs = (appname) => {
|
const getAppDocs = (appname, location, version) => {
|
||||||
fetch(`${globalUrl}/api/v1/docs/${appname}?location=openapi`, {
|
fetch(`${globalUrl}/api/v1/docs/${appname}?location=${location}&version=${version}`, {
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
},
|
},
|
||||||
@@ -436,10 +436,14 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (authenticationModalOpen === true && selectedAction.app_name !== undefined) {
|
if (authenticationModalOpen === true && selectedAction.app_name !== undefined) {
|
||||||
console.log(`Should get app docs for: ${selectedAction.app_name}`)
|
console.log(`Should get app docs for: ${selectedAction.app_name}`)
|
||||||
|
//console.log(selectedAction)
|
||||||
|
//console.log("APP: ", selectedApp)
|
||||||
|
|
||||||
if (selectedAction.documentation === undefined || selectedAction.documentation === null || selectedAction.documentation.length === 0) {
|
if (selectedAction.documentation === undefined || selectedAction.documentation === null || selectedAction.documentation.length === 0) {
|
||||||
// SelectedApp.documentation = Markdown? If so, it works
|
// SelectedApp.documentation = Markdown? If so, it works
|
||||||
getAppDocs(selectedAction.app_name)
|
//
|
||||||
|
const apptype = selectedApp.generated === false ? "python" : "openapi"
|
||||||
|
getAppDocs(selectedAction.app_name, apptype, selectedAction.app_version)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [authenticationModalOpen])
|
}, [authenticationModalOpen])
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME=shuffle-orborus
|
NAME=shuffle-orborus
|
||||||
VERSION=1.0.6
|
VERSION=1.0.7
|
||||||
|
|
||||||
echo "Running docker build with $NAME:$VERSION"
|
echo "Running docker build with $NAME:$VERSION"
|
||||||
#docker rmi frikky/shuffle:$NAME --force
|
#docker rmi frikky/shuffle:$NAME --force
|
||||||
|
|||||||
Reference in New Issue
Block a user