From 113a70f16f95903544039f80d90cdd1352f0dd91 Mon Sep 17 00:00:00 2001 From: Jacob Ashdown Date: Thu, 1 Apr 2021 20:16:36 +0200 Subject: [PATCH 1/3] VMO-3162 - validate format strings properly --- package.json | 2 +- src/assets/messages.json | 4 ++++ .../block-editors/FormatStringEditor.vue | 19 +++++++++++++++++-- yarn.lock | 5 +++++ 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c8b34d3b7..d5f19bd65 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "scripts": { "build": "vue-cli-service build", "serve": "vue-cli-service serve", - "build": "vue-cli-service build", "build-bundle": "vue-cli-service build --target lib --name flow-builder src/lib.ts", "test:unit": "vue-cli-service test:unit", "lint": "vue-cli-service lint", @@ -44,6 +43,7 @@ "plain-draggable": "^2.5.12", "pointer-event": "^1.0.0", "popper.js": "^1.16.1", + "scanf": "^1.1.2", "vue": "^2.6.11", "vue-class-component": "^7.2.3", "vue-focus": "^2.1.0", diff --git a/src/assets/messages.json b/src/assets/messages.json index ce99ec8d1..13546e0cf 100644 --- a/src/assets/messages.json +++ b/src/assets/messages.json @@ -1,5 +1,7 @@ { "en.flow-builder": { + "format-string": "Format String", + "enter-format-string": "Enter Format String", "flow-name": "Flow name", "flow-label": "Flow label", "flow-importer": "Flow importer", @@ -1539,6 +1541,8 @@ "youre-using-floip-expressions": "It looks like you're using FLOIP expressions, nice!" }, "fr.flow-builder": { + "format-string": "Chaîne de format", + "enter-format-string": "Entrez la chaîne de format", "flow-name": "Nom du flux", "flow-label": "Libélé du flux", "flow-importer": "importateur de flux", diff --git a/src/components/interaction-designer/block-editors/FormatStringEditor.vue b/src/components/interaction-designer/block-editors/FormatStringEditor.vue index c85e72b1c..0f7697fbc 100644 --- a/src/components/interaction-designer/block-editors/FormatStringEditor.vue +++ b/src/components/interaction-designer/block-editors/FormatStringEditor.vue @@ -3,12 +3,16 @@ + + {{'flow-builder.scanf-format-string-invalid' | trans}} +