From be5933493e78564507b5923335f548bcd23669ab Mon Sep 17 00:00:00 2001 From: Mutasem Date: Fri, 25 Mar 2022 15:18:36 +0100 Subject: [PATCH] update main panel --- .../editor-ui/src/components/DataDisplay.vue | 73 +---------- .../src/components/DisplayWithChange.vue | 11 +- .../editor-ui/src/components/NodeSettings.vue | 120 +++++++++++++----- packages/editor-ui/src/components/RunData.vue | 19 --- packages/editor-ui/src/n8n-theme.scss | 3 - .../src/plugins/i18n/locales/en.json | 2 +- 6 files changed, 92 insertions(+), 136 deletions(-) diff --git a/packages/editor-ui/src/components/DataDisplay.vue b/packages/editor-ui/src/components/DataDisplay.vue index 49edcf8518..c7c59115d7 100644 --- a/packages/editor-ui/src/components/DataDisplay.vue +++ b/packages/editor-ui/src/components/DataDisplay.vue @@ -2,39 +2,16 @@ -
+
- -
- - -
- {{ $locale.baseText('dataDisplay.needHelp') }} {{ $locale.baseText('dataDisplay.openDocumentationFor', { interpolate: { nodeTypeDisplayName: nodeType.displayName } }) }} -
-
-
@@ -69,17 +46,6 @@ export default mixins(externalHooks, nodeHelpers, workflowHelpers).extend({ }; }, computed: { - documentationUrl (): string { - if (!this.nodeType) { - return ''; - } - - if (this.nodeType.documentationUrl && this.nodeType.documentationUrl.startsWith('http')) { - return this.nodeType.documentationUrl; - } - - return 'https://docs.n8n.io/nodes/' + (this.nodeType.documentationUrl || this.nodeType.name) + '?utm_source=n8n_app&utm_medium=node_settings_modal-credential_link&utm_campaign=' + this.nodeType.name; - }, node (): INodeUi { return this.$store.getters.activeNode; }, @@ -145,41 +111,6 @@ export default mixins(externalHooks, nodeHelpers, workflowHelpers).extend({ height: 100%; } -.doc-help-wrapper { - position: absolute; - right: 0; - transition-delay: 2s; - background-color: #fff; - margin-top: 1%; - box-sizing: border-box; - border: 1px solid #DCDFE6; - border-radius: 4px; - background-color: #FFFFFF; - box-shadow: 0 2px 7px 0 rgba(0,0,0,0.15); - min-width: 319px; - height: 40px; - float: right; - padding: 5px; - display: flex; - flex-direction: row; - padding-top: 10px; - padding-right: 12px; - - #help-logo { - flex: 1; - } - - .text { - margin-left: 5px; - flex: 9; - font-family: "Open Sans"; - font-size: 12px; - font-weight: 600; - line-height: 17px; - white-space: nowrap; - } -} - .fade-enter-active, .fade-enter-to, .fade-leave-active { transition: all .75s ease; opacity: 1; diff --git a/packages/editor-ui/src/components/DisplayWithChange.vue b/packages/editor-ui/src/components/DisplayWithChange.vue index f00d25c016..015bde4f0c 100644 --- a/packages/editor-ui/src/components/DisplayWithChange.vue +++ b/packages/editor-ui/src/components/DisplayWithChange.vue @@ -1,14 +1,5 @@ - + +