From abe4d56e70550a13d90079fb7e3da2fea8823a3c Mon Sep 17 00:00:00 2001 From: Joxit Date: Sat, 7 May 2016 22:54:53 +0200 Subject: [PATCH 1/2] [taglist] Change list to table with sort feature --- index.html | 1 + style.css | 17 +++++++++++++++++ taglist.tag | 31 +++++++++++++++++++++++++------ 3 files changed, 43 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 660f360..ff3f34e 100644 --- a/index.html +++ b/index.html @@ -23,6 +23,7 @@ + Docker Registry UI diff --git a/style.css b/style.css index d23225e..1879d08 100644 --- a/style.css +++ b/style.css @@ -14,6 +14,11 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ + +html > body { + font-family: 'Roboto','Helvetica','Arial',sans-serif !important; +} + .mdl-mini-footer { padding-top: 8px; padding-bottom: 8px; @@ -26,3 +31,15 @@ .section-centerd { margin: auto; } +.mdl-data-table th { + font-size: 20px; +} + +.mdl-data-table td { + font-size: 18px; +} + +.full-table { + width: 100%; + border: none; +} diff --git a/taglist.tag b/taglist.tag index 07341e8..8592696 100644 --- a/taglist.tag +++ b/taglist.tag @@ -24,11 +24,20 @@
- + + + + + + + + + + + + + +
RepositoryTag
{ registryUI.taglist.name }{ item }
@@ -58,7 +67,7 @@ }; oReq.addEventListener('load', function () { if (this.status == 200) { - registryUI.taglist.tags = JSON.parse(this.responseText).tags; + registryUI.taglist.tags = JSON.parse(this.responseText).tags.sort(); } else if (this.status == 404) { registryUI.taglist.createSnackbar('Server not found'); } else { @@ -77,6 +86,16 @@ oReq.send(); riot.update(); } + registryUI.taglist.reverse = function (th){ + console.log(th) + if (th.className == 'mdl-data-table__header--sorted-ascending') { + th.className = 'mdl-data-table__header--sorted-descending'; + } else { + th.className = 'mdl-data-table__header--sorted-ascending'; + } + registryUI.taglist.tags.reverse(); + registryUI.taglist.instance.update(); + }; From 66b18cbf0952649e0658fd99bafd4370cb6aa363 Mon Sep 17 00:00:00 2001 From: Joxit Date: Tue, 10 May 2016 00:37:46 +0200 Subject: [PATCH 2/2] [taglist] update font size and table style --- style.css | 18 +++++++++--------- taglist.tag | 8 +++++--- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/style.css b/style.css index 1879d08..e8c6777 100644 --- a/style.css +++ b/style.css @@ -16,30 +16,30 @@ */ html > body { - font-family: 'Roboto','Helvetica','Arial',sans-serif !important; + font-family: 'Roboto','Helvetica','Arial',sans-serif !important; } .mdl-mini-footer { - padding-top: 8px; - padding-bottom: 8px; + padding-top: 8px; + padding-bottom: 8px; } .catalog, .taglist { - padding: 16px; + padding: 16px; } .section-centerd { - margin: auto; + margin: auto; } .mdl-data-table th { - font-size: 20px; + font-size: 18px; } .mdl-data-table td { - font-size: 18px; + font-size: 16px; } .full-table { - width: 100%; - border: none; + width: 100%; + border: none; } diff --git a/taglist.tag b/taglist.tag index 8592696..d7ad040 100644 --- a/taglist.tag +++ b/taglist.tag @@ -16,7 +16,7 @@ --> -
+
arrow_back @@ -24,7 +24,7 @@
- +
@@ -48,6 +48,9 @@
Repository