From eda886561f7ece9669f882fe28bd4168f931f51c Mon Sep 17 00:00:00 2001 From: sam55silver Date: Thu, 27 May 2021 11:15:30 -0300 Subject: [PATCH 1/4] Fixed button size of theme toggle. Made it smaller. --- navigator/navigator.css | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/navigator/navigator.css b/navigator/navigator.css index 4f4c0c5..eaa9cd1 100644 --- a/navigator/navigator.css +++ b/navigator/navigator.css @@ -11,11 +11,11 @@ [data-theme="dark"] { /* Dark style */ - --container: #212427; + --container: #212121; --border: #3c3f42; - --navigation: #151515; --font: #fff; --selected: #191a1b; + --navigation: #121212; } .flex-row { @@ -176,8 +176,8 @@ .switch { position: relative; display: inline-block; - width: 60px; - height: 34px; + width: 38px; + height: 20px; } .switch input { @@ -201,10 +201,10 @@ .slider:before { position: absolute; content: ""; - height: 26px; - width: 26px; - left: 4px; - bottom: 4px; + height: 16px; + width: 16px; + left: 2px; + bottom: 2px; background-color: white; -webkit-transition: 0.4s; transition: 0.4s; @@ -219,9 +219,9 @@ input:focus + .slider { } input:checked + .slider:before { - -webkit-transform: translateX(26px); - -ms-transform: translateX(26px); - transform: translateX(26px); + -webkit-transform: translateX(18px); + -ms-transform: translateX(18px); + transform: translateX(18px); } .slider.round { From fbdb607cf6cf8f862e356a36d00ee29890f91361 Mon Sep 17 00:00:00 2001 From: sam55silver Date: Fri, 28 May 2021 10:20:02 -0300 Subject: [PATCH 2/4] Fixed merge mistakes --- navigator/navigator.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/navigator/navigator.css b/navigator/navigator.css index c20b04f..5a830eb 100644 --- a/navigator/navigator.css +++ b/navigator/navigator.css @@ -35,8 +35,9 @@ [data-theme="dark"] { /* Dark style */ - --container: #212121; + --container: #212427; --border: #3c3f42; + --navigation: #151515; --font: #fff; --selected: #191a1b; --scrollbar-thumb: var(--container); From 3ba9b75bb616c27e412bce6e4098548bf85e250f Mon Sep 17 00:00:00 2001 From: sam55silver Date: Fri, 28 May 2021 10:55:39 -0300 Subject: [PATCH 3/4] Fixed makefile uninstall. --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 9db3e15..f94c268 100644 --- a/makefile +++ b/makefile @@ -23,7 +23,7 @@ install: cp -rpf navigator $(DESTDIR)/usr/share/cockpit uninstall: - rm -rf $(DESTDIR)/usr/share/cockpit/samba-manager + rm -rf $(DESTDIR)/usr/share/cockpit/navigator install-local: mkdir -p $(HOME)/.local/share/cockpit From 8813f14c2793a69a79e58fc4cc6d26695fb5808e Mon Sep 17 00:00:00 2001 From: sam55silver Date: Fri, 28 May 2021 10:56:37 -0300 Subject: [PATCH 4/4] Added cephfs-dir-status.py to scripts directory --- navigator/navigator.js | 2 +- navigator/scripts/{cephfs-dir-stats => cephfs-dir-stats.py} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename navigator/scripts/{cephfs-dir-stats => cephfs-dir-stats.py} (100%) diff --git a/navigator/navigator.js b/navigator/navigator.js index feac31b..c6f4d05 100644 --- a/navigator/navigator.js +++ b/navigator/navigator.js @@ -360,7 +360,7 @@ class NavDir extends NavEntry { async cephfs_dir_stats() { try { var proc = await cockpit.spawn( - ["cephfs-dir-stats", "-j", this.path_str()], + ["/usr/share/cockpit/navigator/scripts/cephfs-dir-stats.py", "-j", this.path_str()], {err: "ignore"} ); return JSON.parse(proc)[0]; diff --git a/navigator/scripts/cephfs-dir-stats b/navigator/scripts/cephfs-dir-stats.py similarity index 100% rename from navigator/scripts/cephfs-dir-stats rename to navigator/scripts/cephfs-dir-stats.py