2019-06-23 03:35:23 -07:00
|
|
|
<template>
|
|
|
|
<div class="run-data-view" v-loading="workflowRunning">
|
|
|
|
<BinaryDataDisplay :windowVisible="binaryDataDisplayVisible" :displayData="binaryDataDisplayData" @close="closeBinaryDataDisplay"/>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
v-if="node && !isReadOnly"
|
|
|
|
:disabled="workflowRunning"
|
|
|
|
@click.stop="runWorkflow(node.name)"
|
|
|
|
class="execute-node-button"
|
|
|
|
:title="`Executes node ${node.name} and all not already executed nodes before it.`"
|
|
|
|
>
|
|
|
|
<div class="run-icon-button">
|
|
|
|
<font-awesome-icon v-if="!workflowRunning" icon="play-circle"/>
|
|
|
|
<font-awesome-icon v-else icon="spinner" spin />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
Execute Node
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<div class="header">
|
|
|
|
<div class="title-text">
|
|
|
|
<strong>Results: {{ dataCount }}</strong>
|
|
|
|
<el-popover
|
|
|
|
v-if="runMetadata"
|
|
|
|
placement="right"
|
|
|
|
width="400"
|
|
|
|
trigger="hover"
|
|
|
|
>
|
|
|
|
<strong>Start Time:</strong> {{runMetadata.startTime}}<br/>
|
|
|
|
<strong>Execution Time:</strong> {{runMetadata.executionTime}} ms
|
|
|
|
<font-awesome-icon icon="info-circle" class="primary-color" slot="reference" />
|
|
|
|
</el-popover>
|
|
|
|
<span v-if="maxOutputIndex > 0">
|
|
|
|
| Output:
|
2019-06-27 05:07:45 -07:00
|
|
|
<el-select v-model="outputIndex" @click.stop>
|
|
|
|
<el-option v-for="option in (maxOutputIndex + 1)" :label="getOutputName(option-1)" :value="option -1" :key="option">
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
2019-06-23 03:35:23 -07:00
|
|
|
</span>
|
|
|
|
<span v-if="maxRunIndex > 0">
|
|
|
|
| Data of Execution:
|
2019-06-27 05:07:45 -07:00
|
|
|
<el-select v-model="runIndex" @click.stop>
|
|
|
|
<el-option v-for="option in (maxRunIndex + 1)" :label="option + '/' + (maxRunIndex+1)" :value="option-1" :key="option">
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div v-if="node && workflowRunData !== null && workflowRunData.hasOwnProperty(node.name) && !workflowRunData[node.name][runIndex].error" class="title-data-display-selector" @click.stop>
|
|
|
|
<el-radio-group v-model="displayMode" size="mini">
|
2019-10-02 06:30:51 -07:00
|
|
|
<el-radio-button label="JSON" :disabled="showData === false"></el-radio-button>
|
2019-06-23 03:35:23 -07:00
|
|
|
<el-radio-button label="Table"></el-radio-button>
|
|
|
|
<el-radio-button label="Binary" v-if="binaryData.length !== 0"></el-radio-button>
|
|
|
|
</el-radio-group>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="data-display-content">
|
|
|
|
<span v-if="node && workflowRunData !== null && workflowRunData.hasOwnProperty(node.name)">
|
|
|
|
<div v-if="workflowRunData[node.name][runIndex].error" class="error-display">
|
|
|
|
<div class="error-message">ERROR: {{workflowRunData[node.name][runIndex].error.message}}</div>
|
|
|
|
<pre><code>{{workflowRunData[node.name][runIndex].error.stack}}</code></pre>
|
|
|
|
</div>
|
|
|
|
<span v-else>
|
2019-10-02 06:30:51 -07:00
|
|
|
<div v-if="showData === false" class="to-much-data">
|
|
|
|
<h3>
|
|
|
|
Node contains large amount of data
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div class="text">
|
|
|
|
The node contains {{parseInt(dataSize/1024).toLocaleString()}} KB of data.<br />
|
2019-10-04 04:27:50 -07:00
|
|
|
Displaying it could cause problems!<br />
|
|
|
|
<br />
|
|
|
|
If you decide to display it anyway avoid the JSON view!
|
2019-10-02 06:30:51 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-button size="small" @click="displayMode = 'Table';showData = true;">
|
|
|
|
<font-awesome-icon icon="eye"/>
|
|
|
|
Display Data Anyway
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
<div v-else-if="['JSON', 'Table'].includes(displayMode)">
|
2019-06-23 03:35:23 -07:00
|
|
|
<div v-if="jsonData.length === 0" class="no-data">
|
|
|
|
No text data found
|
|
|
|
</div>
|
2019-10-04 03:34:09 -07:00
|
|
|
<div v-else-if="displayMode === 'Table'">
|
2019-06-23 03:35:23 -07:00
|
|
|
<div v-if="tableData !== null && tableData.columns.length === 0" class="no-data">
|
|
|
|
Entries exist but they do not contain any JSON data.
|
|
|
|
</div>
|
|
|
|
<table v-else-if="tableData !== null">
|
|
|
|
<tr>
|
|
|
|
<th v-for="column in tableData.columns" :key="column">{{column}}</th>
|
|
|
|
</tr>
|
|
|
|
<tr v-for="(row, index1) in tableData.data" :key="index1">
|
|
|
|
<td v-for="(data, index2) in row" :key="index2">{{ [null, undefined].includes(data) ? ' ' : data }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2019-11-23 01:23:26 -08:00
|
|
|
<json-tree
|
2019-10-02 06:30:51 -07:00
|
|
|
v-else-if="displayMode === 'JSON'"
|
2019-11-23 01:23:26 -08:00
|
|
|
:data="jsonData"
|
|
|
|
:level="10"
|
2019-10-02 06:30:51 -07:00
|
|
|
class="json-data"
|
2019-11-23 01:23:26 -08:00
|
|
|
/>
|
2019-06-23 03:35:23 -07:00
|
|
|
</div>
|
|
|
|
<div v-else-if="displayMode === 'Binary'">
|
|
|
|
<div v-if="binaryData.length === 0" class="no-data">
|
|
|
|
No binary data found
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else>
|
|
|
|
<div v-for="(binaryDataEntry, index) in binaryData" :key="index">
|
|
|
|
<div class="binary-data-row-index">
|
|
|
|
<div class="binary-data-cell-index">
|
|
|
|
{{index + 1}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="binary-data-row">
|
|
|
|
<div class="binary-data-cell" v-for="(binaryData, key) in binaryDataEntry" :key="index + '_' + key">
|
|
|
|
<div class="binary-data-information">
|
|
|
|
<div class="binary-data-cell-name">
|
|
|
|
{{key}}
|
|
|
|
</div>
|
|
|
|
<div v-if="binaryData.fileName">
|
|
|
|
<div class="label">File Name: </div>
|
|
|
|
<div class="value">{{binaryData.fileName}}</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="binaryData.fileExtension">
|
|
|
|
<div class="label">File Extension:</div>
|
|
|
|
<div class="value">{{binaryData.fileExtension}}</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="binaryData.mimeType">
|
|
|
|
<div class="label">Mime Type: </div>
|
|
|
|
<div class="value">{{binaryData.mimeType}}</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- <el-button @click="displayBinaryData(binaryData)"> -->
|
|
|
|
<div class="binary-data-show-data-button-wrapper">
|
|
|
|
<el-button size="mini" class="binary-data-show-data-button" @click="displayBinaryData(index, key)">
|
|
|
|
Show Binary Data
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<div v-else class="message">
|
|
|
|
<div>
|
|
|
|
<strong>No data</strong><br />
|
|
|
|
<br />
|
|
|
|
To display data execute the node first by pressing the execute button above.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
// @ts-ignore
|
2019-11-23 01:23:26 -08:00
|
|
|
import JsonTree from 'vue-json-tree';
|
2019-06-23 03:35:23 -07:00
|
|
|
import {
|
|
|
|
GenericValue,
|
|
|
|
IBinaryData,
|
|
|
|
IBinaryKeyData,
|
|
|
|
IDataObject,
|
|
|
|
INodeExecutionData,
|
|
|
|
IRun,
|
|
|
|
IRunData,
|
|
|
|
IRunExecutionData,
|
|
|
|
ITaskData,
|
|
|
|
ITaskDataConnections,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
import {
|
|
|
|
IBinaryDisplayData,
|
|
|
|
IExecutionResponse,
|
|
|
|
INodeUi,
|
|
|
|
ITableData,
|
|
|
|
} from '@/Interface';
|
|
|
|
|
|
|
|
import BinaryDataDisplay from '@/components/BinaryDataDisplay.vue';
|
|
|
|
|
|
|
|
import { genericHelpers } from '@/components/mixins/genericHelpers';
|
|
|
|
import { nodeHelpers } from '@/components/mixins/nodeHelpers';
|
|
|
|
import { workflowRun } from '@/components/mixins/workflowRun';
|
|
|
|
|
|
|
|
import mixins from 'vue-typed-mixins';
|
|
|
|
|
|
|
|
export default mixins(
|
|
|
|
genericHelpers,
|
|
|
|
nodeHelpers,
|
|
|
|
workflowRun,
|
|
|
|
)
|
|
|
|
.extend({
|
|
|
|
name: 'RunData',
|
|
|
|
components: {
|
|
|
|
BinaryDataDisplay,
|
2019-11-23 01:23:26 -08:00
|
|
|
JsonTree,
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
binaryDataPreviewActive: false,
|
2019-10-02 06:30:51 -07:00
|
|
|
dataSize: 0,
|
2019-06-23 03:35:23 -07:00
|
|
|
displayMode: 'Table',
|
|
|
|
runIndex: 0,
|
2019-10-02 06:30:51 -07:00
|
|
|
showData: false,
|
2019-06-23 03:35:23 -07:00
|
|
|
outputIndex: 0,
|
|
|
|
binaryDataDisplayVisible: false,
|
|
|
|
binaryDataDisplayData: null as IBinaryDisplayData | null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
workflowRunning (): boolean {
|
|
|
|
return this.$store.getters.isActionActive('workflowRunning');
|
|
|
|
},
|
|
|
|
workflowExecution (): IExecutionResponse | null {
|
|
|
|
return this.$store.getters.getWorkflowExecution;
|
|
|
|
},
|
|
|
|
workflowRunData (): IRunData | null {
|
|
|
|
if (this.workflowExecution === null) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
const executionData: IRunExecutionData = this.workflowExecution.data;
|
|
|
|
return executionData.resultData.runData;
|
|
|
|
},
|
|
|
|
node (): INodeUi | null {
|
|
|
|
return this.$store.getters.activeNode;
|
|
|
|
},
|
|
|
|
runMetadata () {
|
|
|
|
if (!this.node || this.workflowExecution === null) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
const runData = this.workflowRunData;
|
|
|
|
|
|
|
|
if (runData === null || !runData.hasOwnProperty(this.node.name)) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (runData[this.node.name].length <= this.runIndex) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
const taskData: ITaskData = runData[this.node.name][this.runIndex];
|
|
|
|
return {
|
|
|
|
executionTime: taskData.executionTime,
|
|
|
|
startTime: new Date(taskData.startTime).toLocaleString(),
|
|
|
|
};
|
|
|
|
},
|
|
|
|
dataCount (): number {
|
|
|
|
if (this.node === null) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
const runData: IRunData | null = this.workflowRunData;
|
|
|
|
|
|
|
|
if (runData === null || !runData.hasOwnProperty(this.node.name)) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (runData[this.node.name].length <= this.runIndex) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (runData[this.node.name][this.runIndex].hasOwnProperty('error')) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!runData[this.node.name][this.runIndex].hasOwnProperty('data') ||
|
|
|
|
runData[this.node.name][this.runIndex].data === undefined
|
|
|
|
) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
const inputData = this.getMainInputData(runData[this.node.name][this.runIndex].data!, this.outputIndex);
|
|
|
|
|
|
|
|
return inputData.length;
|
|
|
|
},
|
|
|
|
maxOutputIndex (): number {
|
|
|
|
if (this.node === null) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
const runData: IRunData | null = this.workflowRunData;
|
|
|
|
|
|
|
|
if (runData === null || !runData.hasOwnProperty(this.node.name)) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (runData[this.node.name].length < this.runIndex) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (runData[this.node.name][this.runIndex].data === undefined ||
|
|
|
|
runData[this.node.name][this.runIndex].data!.main === undefined
|
|
|
|
) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return runData[this.node.name][this.runIndex].data!.main.length - 1;
|
|
|
|
},
|
|
|
|
maxRunIndex (): number {
|
|
|
|
if (this.node === null) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
const runData: IRunData | null = this.workflowRunData;
|
|
|
|
|
|
|
|
if (runData === null || !runData.hasOwnProperty(this.node.name)) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (runData[this.node.name].length) {
|
|
|
|
return runData[this.node.name].length - 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
},
|
|
|
|
jsonData (): IDataObject[] {
|
|
|
|
const inputData = this.getNodeInputData(this.node, this.runIndex, this.outputIndex);
|
2019-12-23 12:54:27 -08:00
|
|
|
if (inputData.length === 0 || !Array.isArray(inputData)) {
|
2019-06-23 03:35:23 -07:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.convertToJson(inputData);
|
|
|
|
},
|
|
|
|
tableData (): ITableData | undefined {
|
|
|
|
const inputData = this.getNodeInputData(this.node, this.runIndex, this.outputIndex);
|
|
|
|
if (inputData.length === 0) {
|
|
|
|
return undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.convertToTable(inputData);
|
|
|
|
},
|
|
|
|
binaryData (): IBinaryKeyData[] {
|
|
|
|
if (this.node === null) {
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.getBinaryData(this.workflowRunData, this.node.name, this.runIndex, this.outputIndex);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
getOutputName (outputIndex: number) {
|
|
|
|
if (this.node === null) {
|
|
|
|
return outputIndex + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
const nodeType = this.$store.getters.nodeType(this.node.type);
|
|
|
|
if (!nodeType.hasOwnProperty('outputNames') || nodeType.outputNames.length <= outputIndex) {
|
|
|
|
return outputIndex + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return nodeType.outputNames[outputIndex];
|
|
|
|
},
|
|
|
|
closeBinaryDataDisplay () {
|
|
|
|
this.binaryDataDisplayVisible = false;
|
|
|
|
this.binaryDataDisplayData = null;
|
|
|
|
},
|
|
|
|
convertToJson (inputData: INodeExecutionData[]): IDataObject[] {
|
|
|
|
const returnData: IDataObject[] = [];
|
|
|
|
inputData.forEach((data) => {
|
|
|
|
if (!data.hasOwnProperty('json')) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
returnData.push(data.json);
|
|
|
|
});
|
|
|
|
|
|
|
|
return returnData;
|
|
|
|
},
|
|
|
|
convertToTable (inputData: INodeExecutionData[]): ITableData | undefined {
|
|
|
|
const tableData: GenericValue[][] = [];
|
|
|
|
const tableColumns: string[] = [];
|
|
|
|
let leftEntryColumns: string[], entryRows: GenericValue[];
|
|
|
|
// Go over all entries
|
|
|
|
let entry: IDataObject;
|
|
|
|
inputData.forEach((data) => {
|
|
|
|
if (!data.hasOwnProperty('json')) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
entry = data.json;
|
|
|
|
|
|
|
|
// Go over all keys of entry
|
|
|
|
entryRows = [];
|
|
|
|
leftEntryColumns = Object.keys(entry);
|
|
|
|
|
|
|
|
// Go over all the already existing column-keys
|
|
|
|
tableColumns.forEach((key) => {
|
|
|
|
if (entry.hasOwnProperty(key)) {
|
|
|
|
// Entry does have key so add its value
|
|
|
|
entryRows.push(entry[key]);
|
|
|
|
// Remove key so that we know that it got added
|
|
|
|
leftEntryColumns.splice(leftEntryColumns.indexOf(key), 1);
|
|
|
|
} else {
|
|
|
|
// Entry does not have key so add null
|
|
|
|
entryRows.push(null);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
// Go over all the columns the entry has but did not exist yet
|
|
|
|
leftEntryColumns.forEach((key) => {
|
|
|
|
// Add the key for all runs in the future
|
|
|
|
tableColumns.push(key);
|
|
|
|
// Add the value
|
|
|
|
entryRows.push(entry[key]);
|
|
|
|
});
|
|
|
|
|
|
|
|
// Add the data of the entry
|
|
|
|
tableData.push(entryRows);
|
|
|
|
});
|
|
|
|
|
|
|
|
// Make sure that all entry-rows have the same length
|
|
|
|
tableData.forEach((entryRows) => {
|
|
|
|
if (tableColumns.length > entryRows.length) {
|
|
|
|
// Has to less entries so add the missing ones
|
|
|
|
entryRows.push.apply(entryRows, new Array(tableColumns.length - entryRows.length));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
return {
|
|
|
|
columns: tableColumns,
|
|
|
|
data: tableData,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
clearExecutionData () {
|
|
|
|
this.$store.commit('setWorkflowExecutionData', null);
|
|
|
|
this.updateNodesExecutionIssues();
|
|
|
|
},
|
|
|
|
// displayBinaryData (binaryData: IBinaryData) {
|
|
|
|
displayBinaryData (index: number, key: string) {
|
|
|
|
this.binaryDataDisplayVisible = true;
|
|
|
|
|
|
|
|
this.binaryDataDisplayData = {
|
|
|
|
node: this.node!.name,
|
|
|
|
runIndex: this.runIndex,
|
|
|
|
outputIndex: this.outputIndex,
|
|
|
|
index,
|
|
|
|
key,
|
|
|
|
};
|
|
|
|
},
|
2019-10-04 04:27:50 -07:00
|
|
|
refreshDataSize () {
|
2019-10-02 06:30:51 -07:00
|
|
|
// Hide by default the data from being displayed
|
|
|
|
this.showData = false;
|
|
|
|
|
|
|
|
// Check how much data there is to display
|
|
|
|
const inputData = this.getNodeInputData(this.node, this.runIndex, this.outputIndex);
|
2020-05-23 14:54:56 -07:00
|
|
|
|
|
|
|
const jsonItems = inputData.map(item => item.json);
|
|
|
|
|
|
|
|
this.dataSize = JSON.stringify(jsonItems).length;
|
2019-10-04 04:27:50 -07:00
|
|
|
|
|
|
|
if (this.dataSize < 204800) {
|
|
|
|
// Data is reasonable small (< 200kb) so display it directly
|
2019-10-02 06:30:51 -07:00
|
|
|
this.showData = true;
|
|
|
|
}
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
if (this.displayMode === 'Binary' && this.binaryData.length === 0) {
|
|
|
|
this.displayMode = 'Table';
|
|
|
|
}
|
|
|
|
},
|
2019-10-04 04:27:50 -07:00
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
node (newNode, oldNode) {
|
|
|
|
// Reset the selected output index every time another node gets selected
|
|
|
|
this.outputIndex = 0;
|
|
|
|
this.refreshDataSize();
|
|
|
|
},
|
|
|
|
jsonData () {
|
|
|
|
this.refreshDataSize();
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
displayMode () {
|
|
|
|
this.closeBinaryDataDisplay();
|
|
|
|
},
|
|
|
|
maxRunIndex () {
|
|
|
|
this.runIndex = Math.min(this.runIndex, this.maxRunIndex);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted () {
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
|
|
.run-data-view {
|
|
|
|
position: relative;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
margin-left: 350px;
|
|
|
|
width: calc(100% - 350px);
|
|
|
|
height: 100%;
|
|
|
|
z-index: 100;
|
|
|
|
color: #555;
|
|
|
|
font-size: 14px;
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
|
|
|
|
.data-display-content {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
top: 50px;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
.binary-data-row {
|
|
|
|
display: inline-flex;
|
|
|
|
padding: 0.5em 1em;
|
|
|
|
|
|
|
|
.binary-data-cell {
|
|
|
|
display: inline-block;
|
|
|
|
width: 300px;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: #fff;
|
|
|
|
margin-right: 1em;
|
|
|
|
border-radius: 3px;
|
|
|
|
-webkit-box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.05);
|
|
|
|
-moz-box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.05);
|
|
|
|
box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.05);
|
|
|
|
|
|
|
|
.binary-data-information {
|
|
|
|
margin: 1em;
|
|
|
|
|
|
|
|
.binary-data-cell-name {
|
|
|
|
color: $--color-primary;
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 1.2em;
|
|
|
|
padding-bottom: 0.5em;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
|
}
|
|
|
|
|
|
|
|
.binary-data-show-data-button-wrapper {
|
|
|
|
margin-top: 1.5em;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.binary-data-show-data-button {
|
|
|
|
width: 130px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.label {
|
|
|
|
padding-top: 0.5em;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.value {
|
|
|
|
white-space: initial;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.binary-data-row-index {
|
|
|
|
display: block;
|
|
|
|
padding: 1em 1em 0.25em 1em;
|
|
|
|
|
|
|
|
.binary-data-cell-index {
|
|
|
|
display: inline-block;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
line-height: 30px;
|
|
|
|
border-radius: 5px;
|
|
|
|
text-align: center;
|
|
|
|
padding: 0 0.1em;
|
|
|
|
background-color: $--custom-header-background;
|
|
|
|
font-weight: 600;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.json-data {
|
2019-11-23 01:23:26 -08:00
|
|
|
.json-tree {
|
|
|
|
color: $--custom-input-font;
|
2019-11-16 14:36:50 -08:00
|
|
|
|
2019-11-23 01:23:26 -08:00
|
|
|
.json-tree-value-number {
|
|
|
|
color: #b03030;
|
|
|
|
}
|
|
|
|
.json-tree-value-string {
|
|
|
|
color: #8aab1a;
|
|
|
|
}
|
2019-11-16 14:36:50 -08:00
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.error-display,
|
|
|
|
.json-data,
|
|
|
|
.message,
|
|
|
|
.no-data {
|
2019-10-02 06:30:51 -07:00
|
|
|
margin: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.to-much-data {
|
|
|
|
margin: 1em;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.text {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.error-display {
|
|
|
|
.error-message {
|
|
|
|
color: #ff0000;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
text-align: left;
|
|
|
|
width: calc(100% - 1px);
|
|
|
|
border-left: 25px solid #00000000;
|
|
|
|
border-right: 25px solid #00000000;
|
|
|
|
|
|
|
|
th {
|
|
|
|
background-color: $--custom-table-background-main;
|
|
|
|
color: #fff;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
td {
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
tr:nth-child(even) {
|
|
|
|
background: #fff;;
|
|
|
|
}
|
|
|
|
tr:nth-child(odd) {
|
|
|
|
background: $--custom-table-background-alternative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.execute-node-button {
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
right: 10px;
|
|
|
|
height: 30px;
|
2019-06-27 05:07:45 -07:00
|
|
|
width: 140px;
|
2019-06-23 03:35:23 -07:00
|
|
|
padding: 7px;
|
|
|
|
border-radius: 13px;
|
|
|
|
color: $--color-primary;
|
|
|
|
border: 1px solid $--color-primary;
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
.execute-node-button:hover {
|
|
|
|
transform: scale(1.05);
|
|
|
|
}
|
|
|
|
|
|
|
|
.run-icon-button {
|
|
|
|
display: inline-block;
|
|
|
|
width: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-left: 10px;
|
|
|
|
|
|
|
|
.title-text {
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title-data-display-selector {
|
|
|
|
position: absolute;
|
|
|
|
left: calc(50% - 105px);
|
|
|
|
width: 210px;
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 30px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.entry.active {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
2019-06-27 05:07:45 -07:00
|
|
|
|
|
|
|
.el-select {
|
|
|
|
width: 80px;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
.el-input__suffix-inner {
|
|
|
|
// TODO: Not sure why I have to do that. Invesigate when I have some time
|
|
|
|
position: absolute;
|
|
|
|
top: -5px;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input.el-input__inner {
|
|
|
|
border: 1px solid $--color-primary;
|
|
|
|
height: 25px;
|
|
|
|
line-height: 25px;
|
|
|
|
}
|
|
|
|
}
|
2019-06-23 03:35:23 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|