From 66f0b00038433744b5e06619bdfc6d65657ee8f0 Mon Sep 17 00:00:00 2001 From: Matthew White Date: Mon, 18 Mar 2024 18:45:09 -0400 Subject: [PATCH 01/27] Add icons for pagination --- icomoon.json | 109 ++++++++++++++++++++++++++++++++----- public/fonts/icomoon.svg | 3 + public/fonts/icomoon.ttf | Bin 14896 -> 15504 bytes public/fonts/icomoon.woff | Bin 14972 -> 15580 bytes src/assets/css/icomoon.css | 17 ++++-- 5 files changed, 111 insertions(+), 18 deletions(-) diff --git a/icomoon.json b/icomoon.json index 4b328baea..6b73f8b38 100644 --- a/icomoon.json +++ b/icomoon.json @@ -1699,14 +1699,14 @@ "attrs": [], "properties": { "name": "info-circle", - "id": 89, + "id": 61, "order": 5, "prevSize": 28, "code": 61530 }, - "setIdx": 1, - "setId": 3, - "iconIdx": 89 + "setIdx": 0, + "setId": 2, + "iconIdx": 61 }, { "icon": { @@ -1726,14 +1726,14 @@ "attrs": [], "properties": { "name": "exclamation-circle", - "id": 101, + "id": 62, "order": 4, "prevSize": 28, "code": 61546 }, - "setIdx": 1, - "setId": 3, - "iconIdx": 101 + "setIdx": 0, + "setId": 2, + "iconIdx": 62 }, { "icon": { @@ -1753,14 +1753,14 @@ "attrs": [], "properties": { "name": "random", - "id": 110, + "id": 63, "order": 2, "prevSize": 28, "code": 61556 }, - "setIdx": 1, - "setId": 3, - "iconIdx": 110 + "setIdx": 0, + "setId": 2, + "iconIdx": 63 }, { "icon": { @@ -1780,14 +1780,95 @@ "attrs": [], "properties": { "name": "external-link-square", - "id": 298, + "id": 64, "order": 6, "prevSize": 28, "code": 61772 }, + "setIdx": 0, + "setId": 2, + "iconIdx": 64 + }, + { + "icon": { + "paths": [ + "M358.286 786.286c0 4.571-2.286 9.714-5.714 13.143l-28.571 28.571c-3.429 3.429-8.571 5.714-13.143 5.714s-9.714-2.286-13.143-5.714l-266.286-266.286c-3.429-3.429-5.714-8.571-5.714-13.143s2.286-9.714 5.714-13.143l266.286-266.286c3.429-3.429 8.571-5.714 13.143-5.714s9.714 2.286 13.143 5.714l28.571 28.571c3.429 3.429 5.714 8.571 5.714 13.143s-2.286 9.714-5.714 13.143l-224.571 224.571 224.571 224.571c3.429 3.429 5.714 8.571 5.714 13.143zM577.714 786.286c0 4.571-2.286 9.714-5.714 13.143l-28.571 28.571c-3.429 3.429-8.571 5.714-13.143 5.714s-9.714-2.286-13.143-5.714l-266.286-266.286c-3.429-3.429-5.714-8.571-5.714-13.143s2.286-9.714 5.714-13.143l266.286-266.286c3.429-3.429 8.571-5.714 13.143-5.714s9.714 2.286 13.143 5.714l28.571 28.571c3.429 3.429 5.714 8.571 5.714 13.143s-2.286 9.714-5.714 13.143l-224.571 224.571 224.571 224.571c3.429 3.429 5.714 8.571 5.714 13.143z" + ], + "width": 603.4285714285714, + "attrs": [], + "isMulticolor": false, + "isMulticolor2": false, + "tags": [ + "angle-double-left" + ], + "defaultCode": 61696, + "grid": 14 + }, + "attrs": [], + "properties": { + "name": "angle-double-left", + "id": 229, + "order": 3, + "prevSize": 28, + "code": 61696 + }, + "setIdx": 1, + "setId": 3, + "iconIdx": 229 + }, + { + "icon": { + "paths": [ + "M340 548.571c0 4.571-2.286 9.714-5.714 13.143l-266.286 266.286c-3.429 3.429-8.571 5.714-13.143 5.714s-9.714-2.286-13.143-5.714l-28.571-28.571c-3.429-3.429-5.714-8.571-5.714-13.143s2.286-9.714 5.714-13.143l224.571-224.571-224.571-224.571c-3.429-3.429-5.714-8.571-5.714-13.143s2.286-9.714 5.714-13.143l28.571-28.571c3.429-3.429 8.571-5.714 13.143-5.714s9.714 2.286 13.143 5.714l266.286 266.286c3.429 3.429 5.714 8.571 5.714 13.143zM559.429 548.571c0 4.571-2.286 9.714-5.714 13.143l-266.286 266.286c-3.429 3.429-8.571 5.714-13.143 5.714s-9.714-2.286-13.143-5.714l-28.571-28.571c-3.429-3.429-5.714-8.571-5.714-13.143s2.286-9.714 5.714-13.143l224.571-224.571-224.571-224.571c-3.429-3.429-5.714-8.571-5.714-13.143s2.286-9.714 5.714-13.143l28.571-28.571c3.429-3.429 8.571-5.714 13.143-5.714s9.714 2.286 13.143 5.714l266.286 266.286c3.429 3.429 5.714 8.571 5.714 13.143z" + ], + "width": 566.8571428571428, + "attrs": [], + "isMulticolor": false, + "isMulticolor2": false, + "tags": [ + "angle-double-right" + ], + "defaultCode": 61697, + "grid": 14 + }, + "attrs": [], + "properties": { + "name": "angle-double-right", + "id": 230, + "order": 4, + "prevSize": 28, + "code": 61697 + }, + "setIdx": 1, + "setId": 3, + "iconIdx": 230 + }, + { + "icon": { + "paths": [ + "M358.286 310.857c0 4.571-2.286 9.714-5.714 13.143l-224.571 224.571 224.571 224.571c3.429 3.429 5.714 8.571 5.714 13.143s-2.286 9.714-5.714 13.143l-28.571 28.571c-3.429 3.429-8.571 5.714-13.143 5.714s-9.714-2.286-13.143-5.714l-266.286-266.286c-3.429-3.429-5.714-8.571-5.714-13.143s2.286-9.714 5.714-13.143l266.286-266.286c3.429-3.429 8.571-5.714 13.143-5.714s9.714 2.286 13.143 5.714l28.571 28.571c3.429 3.429 5.714 8 5.714 13.143z" + ], + "width": 384, + "attrs": [], + "isMulticolor": false, + "isMulticolor2": false, + "tags": [ + "angle-left" + ], + "defaultCode": 61700, + "grid": 14 + }, + "attrs": [], + "properties": { + "name": "angle-left", + "id": 233, + "order": 2, + "prevSize": 28, + "code": 61700 + }, "setIdx": 1, "setId": 3, - "iconIdx": 298 + "iconIdx": 233 } ], "height": 1024, diff --git a/public/fonts/icomoon.svg b/public/fonts/icomoon.svg index 26d9e950c..260f94ac1 100644 --- a/public/fonts/icomoon.svg +++ b/public/fonts/icomoon.svg @@ -55,6 +55,9 @@ + + + diff --git a/public/fonts/icomoon.ttf b/public/fonts/icomoon.ttf index 00bd096d9d7eb2fcc34b3bc085e52064db8280fb..d3d6f177138f33c4131527713135d140a2ec0165 100644 GIT binary patch delta 808 zcma)4O=uHA6n-hmnp6p*A{wPwr0GQwU25B4lQtzew1^~l zsPv#z2SdfPpa(_Cr3Vk86zrjg9D33fOiv05?V*AQjc>CEUbGGjZ@%yS?EBun*QJHo zG7tc8Km{1|3=U~AWxtX^<}KbEBYC|reShL3014pzI<6NB$nOJS5?X0IH#_#_$G|@5kwrqv2u~4jA`WNsrJ2nXzTmiu^+LI+k<)tP&awe;B982% zygpNaVR(#q6>(@%&yPO2xc4XG&zLY*m@1aAQ9LQLkq|JJdsx5iXdo!SDcA!&{2aMV z2(OZ923rD`Xx<-JVv45trwtXw~T%R);WL z0O(R}3X#d-Lq{Uy80m{AlH?@mjkyn!PU13s9<;sx6GX-s4Kk4lBHh`hj8WpCqJTuu z1kEO824lgp#qE4&c!=GK51OFaWbBzBvcR7ntbxfvDlsO}=BIY}ZV@;mOQiN&BvEam zB~s(VqRZ|v#i1yX@IlefZPAGIftg*40)H9x@}to(*P`Jvu1u?ry3APt7O|%BuVI)& zFs1%|6tuFN5>Y?}=DOC5?nP%{=-u6k>q=@H9Bm#pI?v;tK-=;K{9kFlnrPVRRg|5? zyb7---)L73tf_W2tsjf@bX2_oZ^L)Vw{Cq1(zVI{W%3Iy Cu$#O9 delta 363 zcmbPGxuK+50V! zKyd*Epkg54NYANE3-zlv0rEK*7>rXgQWI0uQf}>HU@*%8%9~{X1vo-jW&oK>fP9sV z+>(k{S|F`vCxGUOmGCpWR8fFX!sDg%Q>29U3imzbM6(~I*r zklz8+&{mLNTmrG%3g`$11qNp3+KC6Mxq+rJm?psBTu(p3N(>=44Z1 zJipCX25uIhnG6gMBTp;C=*f31%o$xLi&$Qm{K0a)x|(o`@FL+KB0(a%MA<~kM0bfP ci7gU05-$<|C9zIYM{*N5Xk9m-vpU2G04&m6#sB~S diff --git a/public/fonts/icomoon.woff b/public/fonts/icomoon.woff index 9a817a38587f2ecb1bb4085e690246b213ff8f9a..9be8d5d7a5b8cf4ccde1682101b1ac83af37b7b1 100644 GIT binary patch delta 879 zcma)4O=uHA82x4@>Bgkl2;FSbG--nx(});p)5f1DB2uH&iW))uK|^gDY+_RyFhwN6 zLrV{Wc2Fuk3wjYG7m*%9DR}XaLl1&0WOEY~+Cv4Yw0^Uz;zjGiW9EDFX6Acu=X*h$ zRPUVa>jMJ#B{Xmt<3k`^r|P4u@s7JKe2rzJ2{Np zRe+x70-wJ1PiKbGHvtY>P}3_A{<3^4gCueZtal06QkMBlu24ko2A&@jSi#lo*dXc# z4wV65R-kroQOl)^c=2Hc>!5*)@c4E*H-uaaH%W7KMTKg3}=jGc{91| zsNp;h$G{5v`7Aj{2yc*a2CEjHqPdQktIHL2waKe;Lw+s4lxO6Od`<3mzHrU}GjhrD z6>6=VVedmF3b0wF$5|Dy4A6q`OP)Ann90);u_N|Br|a zGa6tLvq*GfjWR}wgGv@80;14$$~49TC6n9u%J3t0Qy&n8t~2(`A~FA;D|iNO4p19o zHmcVR`Bn6Ac@!8h6+0q65F#8aBX- zkr2PMr^s$9-kqh`)+nZh5EJm83GIEV+H|f?HEN)j3u3 bobW7pQ{E@7{??jrz_)B(1j)*q1B>JbL*S)w delta 399 zcmcap`KLsz+~3WOfsp|StZEpz!L$Jbr<0+6AKs^7&CzQ2?$S}80mxSY zVU7@%85y}H6$}jKB0%%O_>~p|Lr#7&P@SKJ22fEC2+uKHu_-sP0%)!QXHMfEAOfSyg1^LA#K>x(R)iDEE%*?fuc^Ip?PXO6@3=Rye40@9%F$PY4 z%2>e2Iyr(VS5lu}hhKv49p8Pvt$eHb+W1oWqWC;{m+`hue!x_`Ih6T^>gGc2*}O7q zPBtaR^V@u7;AR1u#lY||^0YFHo~&VM&geQh!Scdn8>{u|YQibPi-doO1c~etWfLtE f-6f_Zwn*GayhQw$#5zeG$xYy(cik*yeTWeNUvXiQ diff --git a/src/assets/css/icomoon.css b/src/assets/css/icomoon.css index 238279fdf..f9be7a540 100644 --- a/src/assets/css/icomoon.css +++ b/src/assets/css/icomoon.css @@ -1,9 +1,9 @@ @font-face { font-family: 'icomoon'; src: - url('/fonts/icomoon.ttf?chm9v') format('truetype'), - url('/fonts/icomoon.woff?chm9v') format('woff'), - url('/fonts/icomoon.svg?chm9v#icomoon') format('svg'); + url('/fonts/icomoon.ttf?z7okxk') format('truetype'), + url('/fonts/icomoon.woff?z7okxk') format('woff'), + url('/fonts/icomoon.svg?z7okxk#icomoon') format('svg'); font-weight: normal; font-style: normal; font-display: block; @@ -251,4 +251,13 @@ } .icon-external-link-square:before { content: "\f14c"; -} \ No newline at end of file +} +.icon-angle-double-left:before { + content: "\f100"; +} +.icon-angle-double-right:before { + content: "\f101"; +} +.icon-angle-left:before { + content: "\f104"; +} From 6ddb404b4642d0e9f9138e7606103adfbb0c65bc Mon Sep 17 00:00:00 2001 From: Matthew White Date: Mon, 18 Mar 2024 18:45:11 -0400 Subject: [PATCH 02/27] Add tables to EntityUpload --- src/assets/scss/_mixins.scss | 5 + src/assets/scss/_variables.scss | 2 - src/assets/scss/app.scss | 13 +- .../dataset/overview/connection-to-forms.vue | 2 +- src/components/dataset/summary/row.vue | 2 +- src/components/entity/list.vue | 9 +- src/components/entity/upload.vue | 109 ++++++++- src/components/entity/upload/file-select.vue | 1 + src/components/entity/upload/table.vue | 172 ++++++++++++++ src/components/file-drop-zone.vue | 2 +- src/components/form/new.vue | 2 +- src/components/modal.vue | 20 +- src/components/pagination.vue | 214 ++++++++++++++++++ src/locales/en.json5 | 9 +- src/util/odata.js | 24 +- test/components/entity/list.spec.js | 19 +- test/components/entity/upload.spec.js | 39 +++- test/components/modal.spec.js | 3 +- transifex/strings_en.json | 55 ++++- 19 files changed, 633 insertions(+), 69 deletions(-) create mode 100644 src/components/entity/upload/table.vue create mode 100644 src/components/pagination.vue diff --git a/src/assets/scss/_mixins.scss b/src/assets/scss/_mixins.scss index 5f1e59f46..c2d90fc30 100644 --- a/src/assets/scss/_mixins.scss +++ b/src/assets/scss/_mixins.scss @@ -27,6 +27,11 @@ li { margin-bottom: 5px; } } +@mixin form-control-background { + background-color: #eee; + .panel-body &, .modal-body & { background-color: #f7f7f7; } +} + @mixin clearfix { &::before, &::after { content: " "; diff --git a/src/assets/scss/_variables.scss b/src/assets/scss/_variables.scss index 0d88bc59a..d9e855336 100644 --- a/src/assets/scss/_variables.scss +++ b/src/assets/scss/_variables.scss @@ -51,8 +51,6 @@ $color-action-background-disabled: #999; $color-action-overlay: #0096c1; $color-input: #555; $color-input-inactive: #777; -$color-input-background: #eee; -$color-panel-input-background: #f7f7f7; $font-size-btn: 12px; $hpadding-btn: 10px; $padding-bottom-btn: 5px; diff --git a/src/assets/scss/app.scss b/src/assets/scss/app.scss index 9e8ff33fe..a145aa120 100644 --- a/src/assets/scss/app.scss +++ b/src/assets/scss/app.scss @@ -353,7 +353,7 @@ $form-group-padding-bottom: 15px; $form-control-z-index: 1; .form-control { - background: $color-input-background; + @include form-control-background; border: none; border-bottom: 1px solid $color-input-inactive; border-radius: 0; @@ -576,6 +576,11 @@ tr.uncommitted-change { background-color: #ffef67; } } } +.data-loading { + opacity: 0.5; + pointer-events: none; +} + .row-number { color: #999; font-size: 11px; @@ -662,12 +667,6 @@ becomes more complicated. letter-spacing: -0.02em; } } - - .panel-body { - .form-group .form-control { - background-color: $color-panel-input-background; - } - } } .panel-main { diff --git a/src/components/dataset/overview/connection-to-forms.vue b/src/components/dataset/overview/connection-to-forms.vue index c249a0029..15c052b64 100644 --- a/src/components/dataset/overview/connection-to-forms.vue +++ b/src/components/dataset/overview/connection-to-forms.vue @@ -30,7 +30,7 @@ except according to the terms contained in the LICENSE file.