Commit Graph

376 Commits

Author SHA1 Message Date
Robert C. Martin
26377873da Chronological sort of header tree. Slow. Should use binary search. 2022-05-16 13:33:04 -05:00
Robert C. Martin
16628a91a6 Read from more than one relay. Detect duplicates, and register which relays they arrive on. Article tree is no longer chronological, so we'll have to sort it somehow. 2022-05-15 11:19:19 -05:00
Robert C. Martin
0d7753f0b0 improve format-time and get the relay panel displayed. 2022-05-14 09:32:46 -05:00
Robert C. Martin
7a887ba0c6 Clicking on citing and root fields of the article info panel, takes you to those articles. What a pain that was. Remember to cast to the derived type (DefaultMutableTreeNode) before you call .getPath. Ugh. 2022-05-06 15:46:14 -05:00
Robert C. Martin
bdd2f32b37 Check signatures of incoming events. Move hex/num/bytes utilities from ecc to util. 2022-05-06 09:23:50 -05:00
Robert C. Martin
c94bafd84a Clean up the main-window file. Much better now. 2022-05-05 15:14:30 -05:00
Robert C. Martin
7d6945a8f7 Article info panel begins. The whole main-window file needs a dramatic cleanup. 2022-05-05 12:18:43 -05:00
Robert C. Martin
85fa99fce3 p-tag processing working properly. 2022-05-04 12:12:39 -05:00
Robert C. Martin
55a2eafa43 e-tag processing for replies is working correctly. 2022-05-03 15:46:44 -05:00
Robert C. Martin
139e3b1f0d Fixed ping/pong heartbeat for the websockets. Gotta remember to all .request after every receive. 2022-05-03 04:48:17 -05:00
Robert C. Martin
fcdc6016b5 Threading multiple references works. 2022-05-02 15:36:57 -05:00
Robert C. Martin
c0ed9cd9d4 Forgot to turn the threading on after a debug. ;-( It's on now... It's also a bit slow. I'll have to speed it up with a hashmap or something. 2022-05-02 09:34:04 -05:00
Robert C. Martin
b21203bd5d Added incremental article threading. Also added try/catch to name-event in case someone sends an ill-formatted message. 2022-05-02 09:22:09 -05:00
Robert C. Martin
c9c31633b3 Massing cleanup and deletion. Much better. 2022-04-30 13:24:45 -05:00
Robert C. Martin
4ff404553a Interim checkin with lots of cruft; but incremental load of tree is now working. Cleanup next. 2022-04-30 12:07:06 -05:00
Robert C. Martin
5f494dc71d All previous functionality has been recreated within seesaw (swing). The code is a horror scene.
I need to pull out all the quil stuff and sort out the seesaw stuff.  But it works, and I understand seesaw/swing
a lot better.
2022-04-29 11:37:22 -05:00
Robert C. Martin
36e2b00852 Use tree for header window. Render tree elements, and thread the articles. Pretty easy. 2022-04-28 12:46:01 -05:00
Robert C. Martin
855a2461ac SeeSaw replaces Swing 2022-04-27 16:04:06 -05:00
Robert C. Martin
df415f8181 Swing begins. 2022-04-27 12:07:24 -05:00
Robert C. Martin
6760ba48a8 Fixed unicode and slashes. json/write-str was escaping them. 2022-04-20 10:22:52 -05:00
Robert C. Martin
bc2b912cab Rudimentary reply is working. 2022-04-20 09:15:31 -05:00
Robert C. Martin
7afaa564c6 Copies article being replied to into edit window, prefixed with '>'. 2022-04-19 13:51:41 -05:00
Robert C. Martin
52639cb80e fixed improperly created graphics-dummy. 2022-04-18 16:13:07 -05:00
Robert C. Martin
6cbeceb035 Begin the process of replying. ^R is the reply command. So far just clears the edit window if no article is selected.
Also began creation of the object-mother.
2022-04-18 16:03:11 -05:00
Robert C. Martin
5fde839565 Clean out old elliptic_signature code that was replaced by the Schnorr java library. 2022-04-18 08:09:47 -05:00
Robert C. Martin
6ab3246d80 Kill edit window buffer after sending message. 2022-04-17 17:27:05 -05:00
Robert C. Martin
0b1da7f1ca Hitting ^S in edit window actually composes and sends the event to the relay! WOOT! 2022-04-15 10:52:11 -05:00
Robert C. Martin
6472e7ca9b Add the BIT340_Schnorr code from https://code.samourai.io/samouraidev/BIP340_Schnorr
Works.  The first message from more-speech was sent to the nostr network using the signature created by this code.
2022-04-14 16:06:09 -05:00
Robert C. Martin
beb998fc0d Implement ^s to send as a shortcut.
Format message to send.
Sign and paste message into core.
Signature verification error.
Add test to detect the error.
This one is going to take awhile.
2022-04-10 13:40:22 -05:00
Robert C. Martin
b798a9201c mend 2022-04-10 09:36:08 -05:00
Robert C. Martin
9433b71ef3 Add private to .gitignore 2022-04-10 09:33:40 -05:00
Robert C. Martin
bad0745fcc Add threading diagnosis to stories. 2022-04-09 10:04:30 -05:00
Robert C. Martin
6f767f0256 Keeps websocket open until GUI is closed; and then closes down connection nicely. 2022-04-09 09:56:37 -05:00
Robert C. Martin
0688fc35ab Added things to todo list. 2022-04-08 12:35:27 -05:00
Robert C. Martin
efe273e32b Better sorting technique, using sorted-set. I expect that will do insertions rather than continual sorting of a large collection. Also reversed the sense of the sort, so latest articles are on top. 2022-04-08 12:28:30 -05:00
Robert C. Martin
2addd2e5f7 Sort incoming events by created-time. This might be very inefficient if the number of events in large. 2022-04-08 08:21:30 -05:00
Robert C. Martin
12262b0f79 Use java.net.http.Websocket instead of 'aleph'. Works great! 2022-04-07 12:28:34 -05:00
Robert C. Martin
d0ce37dc1a Edit the gateway table. 2022-04-07 10:32:11 -05:00
Robert C. Martin
b4fd031e36 Running with nostr protocol. Sorta works with certain relays. 2022-04-05 12:48:54 -05:00
Robert C. Martin
a56eb819bb Bringing in the nostr protocol. 2022-04-05 10:12:16 -05:00
Robert C. Martin
e09addbbec Can use backspace to delete characters in edit window. 2022-04-03 10:12:37 -05:00
Robert C. Martin
e726c21f06 Can add multiple lines to edit window. Can navigate with arrows. Ignores control keys, etc. 2022-04-02 12:21:33 -05:00
Robert C. Martin
849ee68e63 Can add chars to edit window. Very primitive, but... 2022-04-02 10:13:28 -05:00
Robert C. Martin
52503bdd98 Flashing text cursor in edit window. Very preliminary. 2022-04-01 08:24:02 -05:00
Robert C. Martin
b16c8236f6 Fix threading issue by using only the first reference from an event. This prevents the same article from showing up more than once in the headers. Later we might want a menu of references; but not now. 2022-03-17 13:15:26 -05:00
Robert C. Martin
dbfce698ce :cursor on the text-frame controls which cursor will be applied. :frame-tags on the text-window merges with the text-frame. 2022-03-17 09:03:26 -05:00
Robert C. Martin
1f6273f334 Added the edit window. Non-functional. 2022-03-08 11:27:24 -06:00
Robert C. Martin
e9ce907495 Window Titles. 2022-03-07 14:44:00 -06:00
Robert C. Martin
9038199c35 Clean up author window formatting. 2022-03-07 08:23:27 -06:00
Robert C. Martin
acf4250223 Fix reformatting bug that inserted a line end before the last word. 2022-03-07 07:34:21 -06:00