From ba4e17b773336aa7198560b84519dc7bf0cc6733 Mon Sep 17 00:00:00 2001 From: Kelani Tolulope Date: Fri, 12 Apr 2024 14:54:59 +0100 Subject: [PATCH] Add autocompletion to ace-editor --- .../System/CSystemEditorAuthBgScreen.vue | 9 +++ .../Settings/UI/CUIBrandingEditor.vue | 9 ++- client/web/admin/src/lib/cssAutoComplete.js | 47 +++++++++++++ .../src/components/Configurator/Delay.vue | 9 +++ .../src/components/Configurator/Error.vue | 6 ++ .../components/Configurator/Expressions.vue | 5 ++ .../src/components/Configurator/Function.vue | 9 +++ .../src/components/Configurator/Gateway.vue | 9 +++ .../src/components/ExpressionEditor.vue | 10 +++ .../src/components/ExpressionTable.vue | 9 +++ .../workflow/src/lib/editor-auto-complete.js | 70 +++++++++++++++++++ lib/vue/src/components/input/CAceEditor.vue | 50 ++++++++++++- 12 files changed, 240 insertions(+), 2 deletions(-) create mode 100644 client/web/admin/src/lib/cssAutoComplete.js create mode 100644 client/web/workflow/src/lib/editor-auto-complete.js diff --git a/client/web/admin/src/components/Settings/System/CSystemEditorAuthBgScreen.vue b/client/web/admin/src/components/Settings/System/CSystemEditorAuthBgScreen.vue index 9870a3041..adcf0837e 100644 --- a/client/web/admin/src/components/Settings/System/CSystemEditorAuthBgScreen.vue +++ b/client/web/admin/src/components/Settings/System/CSystemEditorAuthBgScreen.vue @@ -57,6 +57,8 @@ font-size="14px" show-line-numbers class="flex-fill w-100" + auto-complete + :auto-complete-suggestions="customCssAutocompleteVal" /> @@ -77,6 +79,7 @@