From d31d41beef5cf0f761fabaacdd1b7314e7642168 Mon Sep 17 00:00:00 2001 From: lkrsnik Date: Sat, 11 Jan 2025 13:13:12 +0100 Subject: [PATCH] Updated visualization of results and examples. --- messages.pot | 88 ++++++++++++++---------- static/js/result.js | 10 +++ templates/result.html | 7 +- translations/en/LC_MESSAGES/messages.mo | Bin 5798 -> 5746 bytes translations/en/LC_MESSAGES/messages.po | 87 +++++++++++++---------- translations/sl/LC_MESSAGES/messages.mo | Bin 7095 -> 7258 bytes translations/sl/LC_MESSAGES/messages.po | 87 +++++++++++++---------- 7 files changed, 166 insertions(+), 113 deletions(-) diff --git a/messages.pot b/messages.pot index 93f8e90..0e4f66b 100644 --- a/messages.pot +++ b/messages.pot @@ -1,14 +1,14 @@ # Translations template for PROJECT. -# Copyright (C) 2024 ORGANIZATION +# Copyright (C) 2025 ORGANIZATION # This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2024. +# FIRST AUTHOR , 2025. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-11-04 19:24+0100\n" +"POT-Creation-Date: 2025-01-11 13:07+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,121 +17,113 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.14.0\n" -#: app.py:163 +#: app.py:145 app.py:221 msgid "Tree" msgstr "" -#: app.py:164 +#: app.py:146 app.py:222 msgid "Frequency" msgstr "" -#: app.py:165 +#: app.py:147 app.py:223 msgid "Frequency in B" msgstr "" -#: app.py:166 +#: app.py:148 app.py:224 msgid "Order" msgstr "" -#: app.py:167 +#: app.py:149 app.py:225 msgid "Number of nodes" msgstr "" -#: app.py:168 +#: app.py:150 app.py:226 msgid "Head node" msgstr "" -#: app.py:169 +#: app.py:151 app.py:227 msgid "Grew-match URL" msgstr "" -#: app.py:170 -msgid "Example subtree" -msgstr "" - -#: app.py:171 -msgid "Example ID" -msgstr "" - -#: app.py:172 +#: app.py:152 app.py:228 msgid "Ratio" msgstr "" -#: app.py:173 +#: app.py:153 app.py:229 msgid "%DIFF" msgstr "" -#: app.py:174 +#: app.py:154 app.py:230 msgid "OR" msgstr "" -#: app.py:175 +#: app.py:155 app.py:231 msgid "BIC" msgstr "" -#: app.py:176 +#: app.py:156 app.py:232 msgid "MI" msgstr "" -#: app.py:177 +#: app.py:157 app.py:233 msgid "logDice" msgstr "" -#: app.py:178 +#: app.py:158 app.py:234 msgid "t-score" msgstr "" -#: app.py:181 +#: app.py:161 app.py:237 msgid "Frequency in A" msgstr "" -#: app.py:245 app.py:246 +#: app.py:307 app.py:308 msgid "Please insert either input url or file, not both of them." msgstr "" -#: app.py:256 app.py:337 +#: app.py:318 app.py:399 msgid "Incorrect URL!" msgstr "" -#: app.py:258 app.py:259 +#: app.py:320 app.py:321 msgid "Please insert either input url or provide a file." msgstr "" -#: app.py:267 +#: app.py:329 msgid "Please select at least one node type." msgstr "" -#: app.py:272 +#: app.py:334 msgid "Node option" msgstr "" -#: app.py:272 +#: app.py:334 msgid "is not supported. Please enter valid options." msgstr "" -#: app.py:325 app.py:326 +#: app.py:387 app.py:388 msgid "Please insert either compare url or file, not both of them." msgstr "" -#: app.py:349 +#: app.py:411 msgid "Please insert an Integer." msgstr "" -#: app.py:383 +#: app.py:447 msgid "" "Processing failed! Please recheck your settings, e.g. input format or " "head node description." msgstr "" -#: app.py:392 +#: app.py:456 msgid "Frequency " msgstr "" -#: app.py:392 +#: app.py:456 msgid "Frequency in A " msgstr "" -#: app.py:393 templates/base.html:23 templates/base.html:25 +#: app.py:457 templates/base.html:23 templates/base.html:25 #: templates/index.html:8 templates/result.html:21 msgid "code" msgstr "" @@ -208,6 +200,10 @@ msgstr "" msgid "Support" msgstr "" +#: templates/examples.html:13 templates/examples.html:45 +msgid "Examples" +msgstr "" + #: templates/index.html:9 msgid "Input data" msgstr "" @@ -386,3 +382,19 @@ msgstr "" msgid "Download complete results" msgstr "" +#: templates/result.html:29 +msgid "Close" +msgstr "" + +#: templates/result.html:33 +msgid "Visualization" +msgstr "" + +#: templates/result.html:65 +msgid "See all other examples" +msgstr "" + +#: templates/result.html:65 +msgid "See examples in Grew-match" +msgstr "" + diff --git a/static/js/result.js b/static/js/result.js index 2da676b..36b0a02 100644 --- a/static/js/result.js +++ b/static/js/result.js @@ -21,6 +21,12 @@ $(document).ready(function() { $(".visualization-table").hide(); $(".table-wrapper tbody tr").click(function() { + // Reset background color for all rows + $(".table-wrapper tbody tr").css("background-color", ""); + + // Change background color of the clicked row + $(this).css("background-color", "#f0f0f0"); + $(".visualization-table").show(); var grew_url = $(this).data("href"); var subtree_hash = $(this).data("subtree-hash"); @@ -49,6 +55,10 @@ $(document).ready(function() { $(".other-examples").html("" + other_examples_text + ""); } }); + $(".close-visualization").click(function() { + $(".visualization-table").hide(); + $(".table-wrapper tbody tr").css("background-color", ""); + }); $(".th-desc").hide(); $(".th-asc").hide(); if ('order_by' in params) { diff --git a/templates/result.html b/templates/result.html index c8f426d..d0ccba1 100644 --- a/templates/result.html +++ b/templates/result.html @@ -26,6 +26,7 @@
+ @@ -41,8 +42,8 @@
- - + +
@@ -61,7 +62,7 @@ {% for i in range(content['Tree']|length) %} - + {% for col in content %} {% if not (col == 'Grew-match URL' or col == 'example_id' or col == 'example_positions' or col == 'subtree_hash') %} {{ content[col][i] }} diff --git a/translations/en/LC_MESSAGES/messages.mo b/translations/en/LC_MESSAGES/messages.mo index 29522775e06e21b27ba0cd29caf78f82f2a1483f..c776d4565b624273a859d9fa882765033ea42600 100644 GIT binary patch delta 1131 zcmYMy-%FEG9LMqRY?f^)5~@y!ee=7AERejG)?43}6i^U>rl3L@sOQwgu0i)^NeKFQXFZLe1BU1hxSzAijN!R12>S%t`J=bba7K+-Kc;ASc-R0<0es+o53*g zZJvisxQJTmE3Ct}8i2pB21C?Ui6l^4mBw8-f*St_lemIPpor))f?8m;Gl7~ng;|y6 zA`kMK^QJT79K|Z$PvCu@Sq>?RrT9n_okpFBPE-Z^P%9mC?Fl3&dy2)FM=o0kQh%-Z zo$L7E27Gkwb<~;off^U!YgytfL#?a=$;tMjR(t@JU=vb2JBd0It*(6znbJCnslPr< z)1kxF=LQa;CcceP9LGkSbFSll+IxuBj_0ufXK@(UQ1kXMiRS6&Mwbnv`tPC6#7ve4 zm1-7uVh&Z(CDfVtgv$IgYLCCT_vIX6or!&@#Li+hj-$@RbF9N<)S38$LzvvoJIrC2 ztvr66XlR3^li?wQM`?ef?yoV<#x~La6Sac+$iKZjg;liMrds^{zFYbC{&ZpJU@Y#% VJTK}c8sf?PvB0#CH*3L#z+WB;W+?yw delta 1190 zcmZwF&r8#B9LMpuI{UHtTg%F36Y??~YdLCKNM%0^^HK>#b|_p$H3-vKE7-7~hkj6& zWL<)4P)6X^Av(nH(nUH*;4KTvI@BTQ59s;A4|HjK_kDbReLwH_=f`|YHkAHUu?;JT7Qrs;!xYAF22WrWQ7PJaR00`ZO6)o+;3(GMW7N1j))U{} zQqUGnV+npmt^5au@t5oOFEMMT9!4e7i#oDv=*Oq1@sqd_=TQj+i7sQP1@3hAVp@Uw zDQIiXIftFMoDZE@Y+_svZx@+;L^j9z`B?LuMBR;xs2#k6TIsl}=TJvCg*x&XANyZM z;X4gH_J@~Nu13{MQT^4f-iW#zLDaYoXQ#6ZwZa}GH|s;K{1__HL1Z&6g*x)#GWK5$ zS7=bco2U=RP?L)YcZWU%DH0sLWSj7#mRi-Ke{97?s#1T#E(N-S~!KEU8+!8?Bh4 zzW)@32?}#q&6z%6Hn10DlcewxJE%8vue+< CmUTJ+ diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index af95736..30f3253 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-11-04 19:24+0100\n" +"POT-Creation-Date: 2025-01-11 13:07+0100\n" "PO-Revision-Date: 2024-02-14 14:36+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: en \n" @@ -18,107 +18,99 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Generated-By: Babel 2.14.0\n" -#: app.py:163 +#: app.py:145 app.py:221 msgid "Tree" msgstr "" -#: app.py:164 +#: app.py:146 app.py:222 msgid "Frequency" msgstr "" -#: app.py:165 +#: app.py:147 app.py:223 msgid "Frequency in B" msgstr "Frequency-B" -#: app.py:166 +#: app.py:148 app.py:224 msgid "Order" msgstr "" -#: app.py:167 +#: app.py:149 app.py:225 msgid "Number of nodes" msgstr "Node count" -#: app.py:168 +#: app.py:150 app.py:226 msgid "Head node" msgstr "Head" -#: app.py:169 +#: app.py:151 app.py:227 msgid "Grew-match URL" msgstr "" -#: app.py:170 -msgid "Example subtree" -msgstr "Example subtree" - -#: app.py:171 -msgid "Example ID" -msgstr "Example ID" - -#: app.py:172 +#: app.py:152 app.py:228 msgid "Ratio" msgstr "" -#: app.py:173 +#: app.py:153 app.py:229 msgid "%DIFF" msgstr "" -#: app.py:174 +#: app.py:154 app.py:230 msgid "OR" msgstr "" -#: app.py:175 +#: app.py:155 app.py:231 msgid "BIC" msgstr "" -#: app.py:176 +#: app.py:156 app.py:232 msgid "MI" msgstr "" -#: app.py:177 +#: app.py:157 app.py:233 msgid "logDice" msgstr "" -#: app.py:178 +#: app.py:158 app.py:234 msgid "t-score" msgstr "" -#: app.py:181 +#: app.py:161 app.py:237 msgid "Frequency in A" msgstr "Frequency-A" -#: app.py:245 app.py:246 +#: app.py:307 app.py:308 msgid "Please insert either input url or file, not both of them." msgstr "Please insert either a file or a URL link, not both of them." -#: app.py:256 app.py:337 +#: app.py:318 app.py:399 msgid "Incorrect URL!" msgstr "" -#: app.py:258 app.py:259 +#: app.py:320 app.py:321 msgid "Please insert either input url or provide a file." msgstr "Please insert either a file or a URL link." -#: app.py:267 +#: app.py:329 msgid "Please select at least one node type." msgstr "" -#: app.py:272 +#: app.py:334 msgid "Node option" msgstr "Node option" -#: app.py:272 +#: app.py:334 msgid "is not supported. Please enter valid options." msgstr "" -#: app.py:325 app.py:326 +#: app.py:387 app.py:388 msgid "Please insert either compare url or file, not both of them." msgstr "Please insert either a file or a URL link, not both of them." -#: app.py:349 +#: app.py:411 msgid "Please insert an Integer." msgstr "Please insert an integer number." -#: app.py:383 +#: app.py:447 msgid "" "Processing failed! Please recheck your settings, e.g. input format or head " "node description." @@ -126,15 +118,15 @@ msgstr "" "Processing failed! Please recheck your settings, e.g. input format or query " "description." -#: app.py:392 +#: app.py:456 msgid "Frequency " msgstr "" -#: app.py:392 +#: app.py:456 msgid "Frequency in A " msgstr "Frequency-A " -#: app.py:393 templates/base.html:23 templates/base.html:25 +#: app.py:457 templates/base.html:23 templates/base.html:25 #: templates/index.html:8 templates/result.html:21 msgid "code" msgstr "en" @@ -234,6 +226,10 @@ msgstr "Licence" msgid "Support" msgstr "Online support" +#: templates/examples.html:13 templates/examples.html:45 +msgid "Examples" +msgstr "Examples" + #: templates/index.html:9 msgid "Input data" msgstr "Input treebank" @@ -414,6 +410,25 @@ msgstr "Back to selected settings" msgid "Download complete results" msgstr "Download complete results" +#: templates/result.html:29 +msgid "Close" +msgstr "" + +#: templates/result.html:33 +msgid "Visualization" +msgstr "" + +#: templates/result.html:65 +msgid "See all other examples" +msgstr "" + +#: templates/result.html:65 +msgid "See examples in Grew-match" +msgstr "" + +#~ msgid "Example subtree" +#~ msgstr "Example subtree" + #~ msgid "intro_description" #~ msgstr "" #~ "Welcome to the online demo interface for STARK - a highly-customizible " diff --git a/translations/sl/LC_MESSAGES/messages.mo b/translations/sl/LC_MESSAGES/messages.mo index 9f3f56165a8e16b271ae57d2dd240f1a2b750d3d..4f5392ef90d3093fb8be5149033dfeda18ffa83d 100644 GI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FI(_-TebP@Y7 z9xtJ`__o(J?x8w-h_mo1YDE*Mj((vAh@cl$Djv0EsWwhW9l~YS6{v}nqVg({F3b+= zK~%rqV>EOIx>2P+jY{mrd3X(VdLLOs7=1Bu31(pfR^vs~cT=eRLQbA4Q;w^#5}UCP z>B_{hAN(KjniLvJC_t5@4E4b}MCgx_e z0<1!9We+aU-~V|UsXVxkr8tS|XbJm}iF>gI&tg0Nz_)mmjZDMs?9*`$TL;z?hj2jr z*o5&sUz9LCU=b%yhjA5ZtJh;9eVHvZbf_9p9d;%9MuIo^T#lSrclkWLacAcj\n" "Language-Team: sl \n" @@ -18,107 +18,99 @@ msgstr "" "n%100==4 ? 2 : 3);\n" "Generated-By: Babel 2.14.0\n" -#: app.py:163 +#: app.py:145 app.py:221 msgid "Tree" msgstr "Drevo" -#: app.py:164 +#: app.py:146 app.py:222 msgid "Frequency" msgstr "Pogostost" -#: app.py:165 +#: app.py:147 app.py:223 msgid "Frequency in B" msgstr "Pogostost v B" -#: app.py:166 +#: app.py:148 app.py:224 msgid "Order" msgstr "Besedni red" -#: app.py:167 +#: app.py:149 app.py:225 msgid "Number of nodes" msgstr "Št. vozlišč" -#: app.py:168 +#: app.py:150 app.py:226 msgid "Head node" msgstr "Jedro" -#: app.py:169 +#: app.py:151 app.py:227 msgid "Grew-match URL" msgstr "Povezava na Grew-match" -#: app.py:170 -msgid "Example subtree" -msgstr "Example subtree" - -#: app.py:171 -msgid "Example ID" -msgstr "Example ID" - -#: app.py:172 +#: app.py:152 app.py:228 msgid "Ratio" msgstr "" -#: app.py:173 +#: app.py:153 app.py:229 msgid "%DIFF" msgstr "" -#: app.py:174 +#: app.py:154 app.py:230 msgid "OR" msgstr "" -#: app.py:175 +#: app.py:155 app.py:231 msgid "BIC" msgstr "" -#: app.py:176 +#: app.py:156 app.py:232 msgid "MI" msgstr "MI" -#: app.py:177 +#: app.py:157 app.py:233 msgid "logDice" msgstr "logDice" -#: app.py:178 +#: app.py:158 app.py:234 msgid "t-score" msgstr "t-test" -#: app.py:181 +#: app.py:161 app.py:237 msgid "Frequency in A" msgstr "Pogostost v A" -#: app.py:245 app.py:246 +#: app.py:307 app.py:308 msgid "Please insert either input url or file, not both of them." msgstr "Naložite datoteko ali vnesite povezavo URL, ne pa obojega." -#: app.py:256 app.py:337 +#: app.py:318 app.py:399 msgid "Incorrect URL!" msgstr "URL ni pravilne oblike." -#: app.py:258 app.py:259 +#: app.py:320 app.py:321 msgid "Please insert either input url or provide a file." msgstr "Naložite datoteko ali vnesite povezavo URL." -#: app.py:267 +#: app.py:329 msgid "Please select at least one node type." msgstr "Izberite vsaj eno možnost (npr. besedno vrsto)." -#: app.py:272 +#: app.py:334 msgid "Node option" msgstr "Vrsta vozlišč" -#: app.py:272 +#: app.py:334 msgid "is not supported. Please enter valid options." msgstr "vmesnik ne podpira. Vnesite eno izmed veljavnih možnosti." -#: app.py:325 app.py:326 +#: app.py:387 app.py:388 msgid "Please insert either compare url or file, not both of them." msgstr "Naložite datoteko ali vnesite povezavo URL, ne pa obojega." -#: app.py:349 +#: app.py:411 msgid "Please insert an Integer." msgstr "Vnesite celo število (npr. 3)." -#: app.py:383 +#: app.py:447 msgid "" "Processing failed! Please recheck your settings, e.g. input format or head " "node description." @@ -126,15 +118,15 @@ msgstr "" "Procesiranje ni bilo uspešno! Preverite nastavitve, kot sta format ali opis " "lastnosti jedra." -#: app.py:392 +#: app.py:456 msgid "Frequency " msgstr "Pogostost " -#: app.py:392 +#: app.py:456 msgid "Frequency in A " msgstr "Pogostost v A " -#: app.py:393 templates/base.html:23 templates/base.html:25 +#: app.py:457 templates/base.html:23 templates/base.html:25 #: templates/index.html:8 templates/result.html:21 msgid "code" msgstr "sl" @@ -235,6 +227,10 @@ msgstr "Dostopnost orodja" msgid "Support" msgstr "Upravljanje vmesnika" +#: templates/examples.html:13 templates/examples.html:45 +msgid "Examples" +msgstr "Primeri" + #: templates/index.html:9 msgid "Input data" msgstr "Vhodni podatki" @@ -415,6 +411,25 @@ msgstr "Nazaj na izbrane nastavitve" msgid "Download complete results" msgstr "Prenesi datoteko s celotnimi rezultati" +#: templates/result.html:29 +msgid "Close" +msgstr "Zapri" + +#: templates/result.html:33 +msgid "Visualization" +msgstr "Vizualizacija" + +#: templates/result.html:65 +msgid "See all other examples" +msgstr "Pokaži vse ostale primere" + +#: templates/result.html:65 +msgid "See examples in Grew-match" +msgstr "Pokaži primere znotraj Grew-match" + +#~ msgid "Example subtree" +#~ msgstr "Primer poddrevesa" + #~ msgid "Please provide information about minimum and maximum tree size." #~ msgstr "Določite najmanjše in največje število vozlišč v drevesu."