From 93c65abfa18c90f6eabc4b3a6c2a6951af950f54 Mon Sep 17 00:00:00 2001 From: Tucsky Date: Wed, 30 Oct 2024 23:44:08 +0100 Subject: [PATCH] feat: indicator scaleWith dropdown --- CHANGELOG.md | 9 + src/assets/sass/dialog.scss | 16 +- src/components/chart/IndicatorsOverlay.vue | 110 ++--------- src/components/chart/options.ts | 2 +- src/components/framework/BlobImage.vue | 45 +++++ src/components/framework/Dialog.vue | 1 + src/components/framework/Dropdown.vue | 28 +++ src/components/framework/PromptDialog.vue | 33 ++-- src/components/framework/editor/Editor.vue | 8 +- .../framework/editor/EditorContextMenu.vue | 46 ++++- .../framework/editor/references/README.md | 29 --- .../framework/editor/references/brokenarea.md | 171 ++++++++++++++++++ .../framework/editor/references/cloudarea.md | 36 ++++ .../framework/editor/references/option.md | 22 +-- src/components/indicators/IndicatorDetail.vue | 2 +- src/components/indicators/IndicatorDialog.vue | 144 ++++++++------- .../indicators/IndicatorDropdown.vue | 158 ++++++++++++++++ .../indicators/IndicatorPreview.vue | 21 +-- .../indicators/PriceScaleButton.vue | 79 ++++++++ .../indicators/PriceScaleDropdown.vue | 71 ++++++++ .../library/PublishResourceDialog.vue | 2 +- src/store/panesSettings/chart.ts | 9 +- src/utils/helpers.ts | 4 +- 23 files changed, 790 insertions(+), 256 deletions(-) create mode 100644 src/components/framework/BlobImage.vue delete mode 100644 src/components/framework/editor/references/README.md create mode 100644 src/components/framework/editor/references/brokenarea.md create mode 100644 src/components/framework/editor/references/cloudarea.md create mode 100644 src/components/indicators/IndicatorDropdown.vue create mode 100644 src/components/indicators/PriceScaleButton.vue create mode 100644 src/components/indicators/PriceScaleDropdown.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index 985da5c9..8db8faac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to this project will be documented here. +## [3.6.3] - 2024-10-30 + +- Reconnect closed apis when tab made visible again (& ios pwa) +- Fetch range based on indicator length +- Autocomplete local variable in script +- Zoomable indicator preview +- Markdown editor for indicators description +- Indicator scaleWith dropdown + ## [3.6.2] - 2024-09-29 - Fix Dockerfile and startup instructions diff --git a/src/assets/sass/dialog.scss b/src/assets/sass/dialog.scss index 90fde653..848d72b7 100644 --- a/src/assets/sass/dialog.scss +++ b/src/assets/sass/dialog.scss @@ -124,9 +124,12 @@ border-radius: 0.75rem 0.75rem 0 0; cursor: grab; + &-wrapper { + position: relative; + } + #{$self}--contrasted & { border-bottom: 0 !important; - padding-bottom: 0; background-color: var(--theme-base-o25); } @@ -153,10 +156,11 @@ } &__subheader { + position: relative; + z-index: 1; #{$self}--contrasted & { background-color: var(--theme-base-o25); - padding-top: 0.5rem; } } @@ -239,13 +243,7 @@ .dialog__close { text-align: center; - padding: 0.75rem; - margin: -0.75rem -0.75rem -0.75rem 0.75rem; - display: flex; - align-items: center; - justify-content: center; - align-self: stretch; - border-radius: 0 $border-radius-base 0 0; + margin: 0 -0.5rem 0 0.5rem; color: var(--theme-color-100); &:hover { diff --git a/src/components/chart/IndicatorsOverlay.vue b/src/components/chart/IndicatorsOverlay.vue index 8d6c571a..ceb2bca7 100644 --- a/src/components/chart/IndicatorsOverlay.vue +++ b/src/components/chart/IndicatorsOverlay.vue @@ -1,69 +1,11 @@ + + diff --git a/src/components/framework/Dialog.vue b/src/components/framework/Dialog.vue index 13b4b2ac..5d4dd982 100644 --- a/src/components/framework/Dialog.vue +++ b/src/components/framework/Dialog.vue @@ -30,6 +30,7 @@ @mousedown="handleDrag" @touchstart="handleDrag" > +