From d26f7db319084dbdb50a8ca59fa9c4d8a66c7a7d Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 21 Oct 2023 14:35:47 +0200 Subject: [PATCH 01/25] fixed non working expand button in forum feed --- retroshare-gui/src/gui/feeds/GxsForumGroupItem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/feeds/GxsForumGroupItem.h b/retroshare-gui/src/gui/feeds/GxsForumGroupItem.h index 29b7851f2..bfe24f2a7 100644 --- a/retroshare-gui/src/gui/feeds/GxsForumGroupItem.h +++ b/retroshare-gui/src/gui/feeds/GxsForumGroupItem.h @@ -47,7 +47,6 @@ public: protected: /* FeedItem */ virtual void doExpand(bool open); - void toggle() override; /* GxsGroupFeedItem */ virtual QString groupName(); @@ -56,6 +55,7 @@ protected: private slots: void subscribeForum(); + void toggle() override; private: void fill(); From 168f36bc2101b5283d05378d356fad317df207fa Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 24 Oct 2023 22:44:40 +0200 Subject: [PATCH 02/25] Added colors for the output --- retroshare-service/src/retroshare-service.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/retroshare-service/src/retroshare-service.cc b/retroshare-service/src/retroshare-service.cc index 040a2012d..a8c7ec37d 100644 --- a/retroshare-service/src/retroshare-service.cc +++ b/retroshare-service/src/retroshare-service.cc @@ -60,7 +60,7 @@ public: bool /*prev_is_bad*/, std::string& password, bool& cancel ) { std::string question1 = title + - "\nPlease enter your PGP password for key:\n " + + "\033[0;32mPlease enter your PGP password for key:\n \033[0m" + question + " :"; password = RsUtil::rs_getpass(question1.c_str()) ; cancel = false ; @@ -182,9 +182,9 @@ int main(int argc, char* argv[]) while(keepRunning) { webui_pass1 = RsUtil::rs_getpass( - "Please register a password for the web interface: " ); + "\033[0;32mPlease register a password for the web interface:\033[0m" ); webui_pass2 = RsUtil::rs_getpass( - "Please enter the same password again : " ); + "\033[0;32mPlease enter the same password again :\033[0m" ); if(webui_pass1 != webui_pass2) { @@ -223,12 +223,12 @@ int main(int argc, char* argv[]) if(locations.size() == 0) { - RsErr() << "No available accounts. You cannot use option -U list" << std::endl; + RsErr() << "\033[1;33mNo available accounts. You cannot use option -U list\033[0m" << std::endl; return -RsInit::ERR_NO_AVAILABLE_ACCOUNT; } std::cout << std::endl << std::endl - << "Available accounts:" << std::endl; + << "\033[0;32mAvailable accounts:\033[0m" << std::endl; int accountCountDigits = static_cast( ceil(log(locations.size())/log(10.0)) ); @@ -244,7 +244,7 @@ int main(int argc, char* argv[]) uint32_t nacc = 0; while(keepRunning && (nacc < 1 || nacc >= locations.size())) { - std::cout << "Please enter account number: "; + std::cout << "\033[0;32mPlease enter account number: \033[0m"; std::cout.flush(); std::string inputStr; From 8814cbd9f279441eb98892e503b2af869507aa39 Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 25 Oct 2023 11:54:51 +0200 Subject: [PATCH 03/25] color improvements for accounts display --- retroshare-service/src/retroshare-service.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/retroshare-service/src/retroshare-service.cc b/retroshare-service/src/retroshare-service.cc index a8c7ec37d..afda36771 100644 --- a/retroshare-service/src/retroshare-service.cc +++ b/retroshare-service/src/retroshare-service.cc @@ -233,18 +233,18 @@ int main(int argc, char* argv[]) int accountCountDigits = static_cast( ceil(log(locations.size())/log(10.0)) ); for( uint32_t i=0; i= locations.size())) { - std::cout << "\033[0;32mPlease enter account number: \033[0m"; + std::cout << "\033[0;32mPlease enter account number:\n \033[0m"; std::cout.flush(); std::string inputStr; From 9f89ac42e739cc733027544710e7d421a4ea5ce6 Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 25 Oct 2023 12:13:15 +0200 Subject: [PATCH 04/25] Fix spacing --- retroshare-service/src/retroshare-service.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-service/src/retroshare-service.cc b/retroshare-service/src/retroshare-service.cc index afda36771..d643fc36f 100644 --- a/retroshare-service/src/retroshare-service.cc +++ b/retroshare-service/src/retroshare-service.cc @@ -244,7 +244,7 @@ int main(int argc, char* argv[]) uint32_t nacc = 0; while(keepRunning && (nacc < 1 || nacc >= locations.size())) { - std::cout << "\033[0;32mPlease enter account number:\n \033[0m"; + std::cout << "\033[0;32mPlease enter account number:\n\033[0m"; std::cout.flush(); std::string inputStr; From 36282e750de13f88bef50947d5b3ab560263f3ad Mon Sep 17 00:00:00 2001 From: defnax Date: Thu, 26 Oct 2023 18:31:37 +0200 Subject: [PATCH 05/25] update output colors --- retroshare-service/src/retroshare-service.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/retroshare-service/src/retroshare-service.cc b/retroshare-service/src/retroshare-service.cc index d643fc36f..76162647c 100644 --- a/retroshare-service/src/retroshare-service.cc +++ b/retroshare-service/src/retroshare-service.cc @@ -188,12 +188,12 @@ int main(int argc, char* argv[]) if(webui_pass1 != webui_pass2) { - std::cout << "Passwords do not match!" << std::endl; + std::cout << "\033[1;31mPasswords do not match!\033[0m" << std::endl; continue; } if(webui_pass1.empty()) { - std::cout << "Password cannot be empty!" << std::endl; + std::cout << "\033[1;31mPassword cannot be empty!\033[0m" << std::endl; continue; } @@ -223,7 +223,7 @@ int main(int argc, char* argv[]) if(locations.size() == 0) { - RsErr() << "\033[1;33mNo available accounts. You cannot use option -U list\033[0m" << std::endl; + RsErr() << "\033[1;31mNo available accounts. You cannot use option -U list\033[0m" << std::endl; return -RsInit::ERR_NO_AVAILABLE_ACCOUNT; } @@ -234,8 +234,8 @@ int main(int argc, char* argv[]) for( uint32_t i=0; i