notification color fix for git bash; color for likes was not being closed at end . version tag a.

This commit is contained in:
Vishal 2022-12-29 10:24:26 +05:30
parent dd9e9a3c02
commit 7a168c8514
4 changed files with 35 additions and 25 deletions

View File

@ -396,6 +396,29 @@ void printProfile(Store node, String profilePubkey) {
print("");
}
void printVerifiedAccounts(Store node) {
List<dynamic> listVerified = []; // num follows, pubkey, name, nip05id
printUnderlined("NIP 05 Verified Users");
print("") ;
print("Username Num Followers pubkey Nip Id\n");
gKindONames.forEach((key, value) {
String pubkey = key;
if( value.nip05Verified) {
List<String> followers = node.getFollowers(pubkey);
listVerified.add([followers.length, pubkey, getAuthorName(pubkey), value.nip05Id]);
}
});
listVerified.sort((a, b) => a[0] > b[0]? -1: (a[0] == b[0]? 0: 1));
for(var verifiedEntry in listVerified) {
print("${verifiedEntry[2].padRight(30)} ${verifiedEntry[0].toString().padRight(4)} ${verifiedEntry[1]} ${verifiedEntry[3]}");
}
print("\nHow to use: To get best results, print the main feed a couple of times right after starting; and then check NIP verified list. This gives application time to do the verification from user's given servers.\n\n");
}
void printMenu(List<String> menuOptions) {
int longestMenuOption = 0;
@ -432,29 +455,6 @@ void printMenu(List<String> menuOptions) {
stdout.write("\n" );
}
void printVerifiedAccounts(Store node) {
List<dynamic> listVerified = []; // num follows, pubkey, name, nip05id
printUnderlined("NIP 05 Verified Users");
print("") ;
print("Username Num Followers pubkey Nip Id\n");
gKindONames.forEach((key, value) {
String pubkey = key;
if( value.nip05Verified) {
List<String> followers = node.getFollowers(pubkey);
listVerified.add([followers.length, pubkey, getAuthorName(pubkey), value.nip05Id]);
}
});
listVerified.sort((a, b) => a[0] > b[0]? -1: (a[0] == b[0]? 0: 1));
for(var verifiedEntry in listVerified) {
print("${verifiedEntry[2].padRight(30)} ${verifiedEntry[0].toString().padRight(4)} ${verifiedEntry[1]} ${verifiedEntry[3]}");
}
print("\nHow to use: To get best results, print the main feed a couple of times right after starting; and then check NIP verified list. This gives application time to do the verification from user's given servers.\n\n");
}
int showMenu(List<String> menuOptions, String menuName, [String menuInfo = ""]) {
if(menuInfo.length > 0) {
@ -747,6 +747,7 @@ Future<void> channelMenuUI(Store node) async {
stdout.write("\nType message; or type 'x' to exit, or press <enter> to refresh: ");
$tempUserInput = stdin.readLineSync(encoding: utf8);
String messageToSend = $tempUserInput??"";
print("got word: $messageToSend");
if( messageToSend != "") {
if( messageToSend == 'x') {

View File

@ -966,6 +966,12 @@ class EventData {
} // end for
// if at least one entry as colored notification was made
if( firstEntry == false) {
reactorNames += gColorEndMarker;
}
newLikes.clear();
reactorNames += "";
}

View File

@ -3,7 +3,7 @@ import 'package:logging/logging.dart';
// name of executable
const String exename = "nostr_console";
const String version = "0.3.2-beta";
const String version = "0.3.2-beta-a";
int gDebug = 0;
int gSpecificDebug = 0;

View File

@ -1,6 +1,6 @@
name: nostr_console
description: A multi-platform nostr client built for terminal/console
version: 0.3.2-beta
version: 0.3.2-beta-a
homepage: https://github.com/vishalxl/nostr_console
@ -12,6 +12,9 @@ homepage: https://github.com/vishalxl/nostr_console
# In writing events, only writing follow's events. and the ones they interact with.
# now friends have a tick; no tick for defaults
# fixed likes colors issue for notification likes
# after tag
# notification color fix for git bash; color for likes is not being closed at end
# 0.3.1
# added nostr.ch as another default relay to sync with anigma