Icons from APP SCHEMA

This commit is contained in:
Luis Fernando Molina committed 2019-12-17 20:56:05 +01:00
1 parent de60d72b76
commit c37d0b2c7f
2 files changed
+16 -94

No files matched your search

+15 -18
View File
@@ -256,16 +256,7 @@ function newWorkspace () {
break
case 'Share':
{
let text
if (
payload.node.type === 'Definition' ||
payload.node.type === 'Network' ||
payload.node.type === 'Team'
) {
text = JSON.stringify(functionLibraryProtocolNode.getProtocolNode(payload.node, true, false, true, true, true))
} else {
text = JSON.stringify(functionLibraryProtocolNode.getProtocolNode(payload.node, true, false, true, true, true))
}
let text = JSON.stringify(functionLibraryProtocolNode.getProtocolNode(payload.node, true, false, true, true, true))
let nodeName = payload.node.name
if (nodeName === undefined) {
@@ -280,16 +271,22 @@ function newWorkspace () {
break
case 'Backup':
{
let text
if (
payload.node.type === 'Definition' ||
payload.node.type === 'Network' ||
payload.node.type === 'Team'
) {
text = JSON.stringify(functionLibraryProtocolNode.getProtocolNode(payload.node, false, false, true, true, true))
let text = JSON.stringify(functionLibraryProtocolNode.getProtocolNode(payload.node, false, false, true, true, true))
let nodeName = payload.node.name
if (nodeName === undefined) {
nodeName = ''
} else {
text = JSON.stringify(functionLibraryProtocolNode.getProtocolNode(payload.node, false, false, true, true, true))
nodeName = ' ' + nodeName
}
let fileName = 'Backup - ' + payload.node.type + ' - ' + nodeName + '.json'
download(fileName, text)
}
break
case 'Clone':
{
let text = JSON.stringify(functionLibraryProtocolNode.getProtocolNode(payload.node, false, false, true, true, true))
let nodeName = payload.node.name
if (nodeName === undefined) {
+1 -76
View File
@@ -35,82 +35,7 @@ function newDesignerSpace () {
}
function buildIconByUiObjectTypeMap () {
const relationshipArray = [
['Definition', 'text'],
['Network', 'network'],
['Network Node', 'network-node'],
['Social Bots', 'social-bot'],
['Telegram Bot', 'paper-plane'],
['Announcement', 'promotion'],
['Layer Manager', 'layer-manager'],
['Layer', 'attractive'],
['Task Manager', 'task'],
['Task', 'timeline'],
['Sensor Bot Instance', 'bot-sensor'],
['Indicator Bot Instance', 'bot-indicator'],
['Trading Bot Instance', 'bot-trading'],
['Process Instance', 'process'],
['Backtesting Session', 'session-backtesting'],
['Live Trading Session', 'session-live-trading'],
['Fordward Testing Session', 'session-forward-testing'],
['Paper Trading Session', 'session-paper-trading'],
['Personal Data', 'security'],
['Exchange Account', 'approve'],
['Exchange Account Asset', 'paper-plane'],
['Exchange Account Key', 'login'],
['Workspace', 'design-tool'],
['Trading System', 'analysis'],
['Parameters', 'settings'],
['Base Asset', 'loading'],
['Time Range', 'schedule'],
['Time Period', 'time-period'],
['Slippage', 'support'],
['Fee Structure', 'sitemap'],
['Strategy', 'quality'],
['Trigger Stage', 'stage-trigger'],
['Open Stage', 'stage-open'],
['Manage Stage', 'video-player'],
['Close Stage', 'stage-close'],
['Position Size', 'stage-open-position-size'],
['Position Rate', 'stage-open-postion-rate'],
['Trigger On Event', 'stage-trigger-trigger-on'],
['Trigger Off Event', 'stage-trigger-trigger-off'],
['Take Position Event', 'stage-trigger-take-position'],
['Initial Definition', 'task'],
['Open Execution', 'piggy-bank'],
['Close Execution', 'piggy-bank'],
['Stop', 'stop'],
['Take Profit', 'stage-open-take-profit'],
['Phase', 'placeholder'],
['Formula', 'pipette'],
['Next Phase Event', 'pantone'],
['Situation', 'pyramid'],
['Condition', 'testing'],
['Javascript Code', 'html'],
['Team', 'team'],
['Sensor Bot', 'bot-sensor'],
['Indicator Bot', 'bot-indicator'],
['Trading Bot', 'bot-trading'],
['Process Definition', 'process-definition'],
['Process Output', 'process-output'],
['Process Dependencies', 'process-dependencies'],
['Status Report', 'status-report'],
['Execution Started Event', 'execution-started-event'],
['Execution Finished Event', 'execution-finished-event'],
['Calculations Procedure', 'calculations-procedure'],
['Data Building Procedure', 'data-building-procedure'],
['Procedure Initialization', 'procedure-initialization'],
['Procedure Loop', 'procedure-loop'],
['Output Dataset', 'output-dataset'],
['Status Dependency', 'status-dependency'],
['Data Dependency', 'data-dependency'],
['Product Definition', 'product-definition'],
['Record Definition', 'record-definition'],
['Record Property', 'record-property'],
['Dataset Definition', 'dataset-definition'],
['Plotter', 'plotter'],
['Plotter Module', 'plotter-module']
]
const relationshipArray = []
for (let i = 0; i < relationshipArray.length; i++) {
let record = relationshipArray[i]