From 197cc6199c4f3f1534e387cf94645a6ece58eace Mon Sep 17 00:00:00 2001 From: LukeItUp Date: Thu, 3 Sep 2020 10:51:32 +0200 Subject: [PATCH] show structure at example edit --- build/Makefile | 2 +- src/message/ske_messages.py | 2 -- src/view/modals.py | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build/Makefile b/build/Makefile index bd5ce05..ba3d85d 100644 --- a/build/Makefile +++ b/build/Makefile @@ -30,7 +30,7 @@ all: build build: copy $(CSS_FILE) bundle.js local.js transcrypt: $(RES_PY_FILE) $(TS_BUILD) - python3 -m transcrypt $(TS_FLAGS) $< + transcrypt $(TS_FLAGS) $< bundle.js: transcrypt $(CONV_FILE) cd ..; browserify $(BR_FLAGS) build/$(TS_BUILD)/main.js -o build/bundle.js diff --git a/src/message/ske_messages.py b/src/message/ske_messages.py index 7faa743..9ef6b8e 100644 --- a/src/message/ske_messages.py +++ b/src/message/ske_messages.py @@ -281,8 +281,6 @@ class SkeInsert(DataChgClickMessage): structure.append("") # Bad fix: we have to add something for structure l-gg-ggn for i in range(len(structure_name)): - console.log("current:", i, "\ngramrel:", gramrel[i], "\nstructure:", structure[i], "\nstruc_name:", structure_name[i]) - lex = ComponentLexeme() structure[i] = structure[i].replace("Inf-", "") diff --git a/src/view/modals.py b/src/view/modals.py index c6fd6c1..0df3d73 100644 --- a/src/view/modals.py +++ b/src/view/modals.py @@ -72,6 +72,9 @@ def edit_example(example, sense): return result + divs.append(h("div.flex.five.example-component", {}, [h("div.one-fifth", {}, "Struktura:"), + h("div.three-fifth", {}, example.inner.other_attributes["structureName"])])) + for idx, component in enumerate(example.components): role_txt = component.role if component.role is not None else "none" color_class = ".example-component-" + role_txt