Merge pull request #317 from Luis-Fernando-Molina/in-app-documentation
In app documentation
This commit is contained in:
5 files changed
+30
-6
No files matched your search
@@ -0,0 +1,19 @@
|
||||
|
||||
doIt()
|
||||
|
||||
async function doIt() {
|
||||
const simpleGit = require('simple-git');
|
||||
const options = {
|
||||
baseDir: process.cwd(),
|
||||
binary: 'git',
|
||||
maxConcurrentProcesses: 6,
|
||||
}
|
||||
const git = simpleGit(options)
|
||||
|
||||
let remotes = await git.getRemotes(true)
|
||||
|
||||
|
||||
|
||||
console.log('JSON remotes list: ', JSON.stringify(remotes))
|
||||
console.log('remotes list: ', remotes)
|
||||
}
|
||||
@@ -14648,7 +14648,7 @@
|
||||
"config": true
|
||||
},
|
||||
"initialValues": {
|
||||
"config": "{ \n\"backgroundColor\": \"UI_COLOR.BLACK\"\n}"
|
||||
"config": "{\"backgroundColor\":\"UI_COLOR.BLACK\",\"node\":{\"fontSize\":16,\"imageSize\":60,\"type\":{\"fontColor\":\"UI_COLOR.WHITE\"},\"name\":{\"fontColor\":\"UI_COLOR.WHITE\"},\"menuItem\":{\"backgroundColor\":\"UI_COLOR.BLACK\",\"fontColor\":\"UI_COLOR.WHITE\",\"fontSize\":14,\"imageSize\":14}}}"
|
||||
},
|
||||
"menuItems": [
|
||||
{
|
||||
@@ -14681,7 +14681,7 @@
|
||||
"config": true
|
||||
},
|
||||
"initialValues": {
|
||||
"config": "{ \n\"distanceBetweenNodes\": 500\n}"
|
||||
"config": "{\"node\":{\"distancePercentage\":60,\"radiusPercentage\":85,\"massPercentage\":100,\"animationSteps\":2,\"menuItem\":{\"widthPercentage\":100,\"heightPercentage\":60,\"radiusPercentage\":90}},\"physics\":false}"
|
||||
},
|
||||
"menuItems": [
|
||||
{
|
||||
|
||||
+3
-3
@@ -9,8 +9,8 @@
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. 2",
|
||||
"updated": 1609860582103
|
||||
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode.",
|
||||
"updated": 1609866921604
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -73,7 +73,7 @@ function newConfigEditor() {
|
||||
thisObject.payload.uiObject.uiObjectTitle.exitEditMode()
|
||||
|
||||
let textArea = document.getElementById('textArea')
|
||||
textArea.value = thisObject.payload.node.config
|
||||
textArea.value = JSON.stringify(JSON.parse(thisObject.payload.node.config), undefined, 4)
|
||||
textArea.style = 'resize: none;' +
|
||||
' border: none;' +
|
||||
' outline: none;' +
|
||||
|
||||
@@ -464,7 +464,12 @@ function newCanvas() {
|
||||
|
||||
if ((event.ctrlKey === true || event.metaKey === true) && event.altKey === true && event.shiftKey === true && event.keyCode === 123) { // Dev Tool when used with F12
|
||||
if (nodeOnFocus !== undefined) {
|
||||
console.log('Node on Focus:')
|
||||
console.log(nodeOnFocus)
|
||||
if (nodeOnFocus.config !== undefined) {
|
||||
console.log('Node on Focus Config:')
|
||||
console.log(JSON.stringify(JSON.parse(nodeOnFocus.config)).replaceAll('"', '\"'))
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user