6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-28 09:41:02 +00:00
Commit Graph

53 Commits

Author SHA1 Message Date
James Mills
5e22d087ee Make the service bot actually work finally (#73)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/73
Reviewed-by: xuu <xuu@noreply@mills.io>
2022-03-27 05:25:09 +00:00
James Mills
bcbf7eeedc Fix daemon name :D (#72)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/72
2022-03-27 03:04:47 +00:00
James Mills
072799a94d Code cleanup 2022-03-27 01:09:07 +10:00
xuu
38a6d71644 xuu/bot (#64)
Co-authored-by: Jon Lundy <jon@xuu.cc>
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/64
Co-authored-by: xuu <xuu@noreply@mills.io>
Co-committed-by: xuu <xuu@noreply@mills.io>
2022-03-26 14:43:05 +00:00
James Mills
323f09ff5c Add optional support for setting up a TLS listener with Let's Encrypt support (#61)
Same as https://git.mills.io/yarnsocial/yarn/pulls/785

Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/61
2022-03-26 01:42:40 +00:00
James Mills
211f725986 Fix Lookup to actually use SRV records (where available) and refactor (#62)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/62
Reviewed-by: xuu <xuu@noreply@mills.io>
2022-03-25 23:49:44 +00:00
James Mills
958ba6d9d2 Add unit tests (#55)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/55
2022-03-25 01:52:59 +00:00
mlctrez
05c44be6c0 refactor identity create/read for functional arguments to support PWA (#53)
This PR is for refactoring interaction with CreateIdentity(), GetIdentity(), and NewClient() to allow operations on the identity contents from within a PWA where a filesystem is not present.

It was suggested to use functional arguments so this pull request reflects this.

Co-authored-by: mlctrez <mlctrez@gmail.com>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/53
Co-authored-by: mlctrez <mlctrez@noreply@mills.io>
Co-committed-by: mlctrez <mlctrez@noreply@mills.io>
2022-03-24 20:21:29 +00:00
James Mills
4c9da17db6 Fix terminal detection and avoid colors when not a terminal 2022-03-24 01:41:59 +10:00
James Mills
6f9862e6f4 Fix make-user templating 2022-03-24 01:41:36 +10:00
James Mills
8569d1171e Fix make-user to spport supplying an optional custom broker endpoint (-e/--endpoint or 2nd argument) 2022-03-24 00:21:26 +10:00
James Mills
7ffefb042e Refactor Endpoint for automatic endpoint discovery and less configuration (#46)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/46
2022-03-23 12:39:31 +00:00
Phil S
03a99bdccf Fix default config path message (#45)
As per title.

Was quite a bit confusing there, but worked it out in the end!

Co-authored-by: Phil S <ullarah@noreply@mills.io>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/45
Co-authored-by: Phil S. <ullarah@noreply@mills.io>
Co-committed-by: Phil S. <ullarah@noreply@mills.io>
2022-03-23 10:28:58 +00:00
James Mills
9271665446 Add a format command for tailing and formating messages 2022-03-23 11:57:49 +10:00
James Mills
801d6b93bb Add support for client and server (broker) registration (#43)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/43
2022-03-22 22:59:09 +00:00
James Mills
b04ee521ae Fix bild issue on small machines by restructing some of the cli code and only build the cli by default 2022-03-22 23:46:44 +10:00
James Mills
bf32b5c732 Update error handling in send command 2022-03-22 22:31:25 +10:00
James Mills
a37f578544 Add support for generating ULID(s) for User's Endpoints 2022-03-22 22:14:46 +10:00
James Mills
7a5889b2f8 Log the config file we're using as Debug level logging 2022-03-22 11:54:06 +10:00
James Mills
6b678240aa Add configuration options for the store 2022-03-22 09:54:02 +10:00
James Mills
be4b4a5e9d Add a basic structure for a go-app PWA + integrated Broker (#36)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Co-authored-by: Jon Lundy <jon@xuu.cc>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/36
2022-03-21 22:27:35 +00:00
James Mills
efdd96c5d9 Fix passing hooks to cli.Read() 2022-03-22 00:58:24 +10:00
James Mills
8993981e81 Refactor the code (#38)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/38
2022-03-21 14:46:16 +00:00
James Mills
950f54708f Fix make-user properly 2022-03-21 23:53:54 +10:00
James Mills
76aae591bf Fix make-user 2022-03-21 23:45:30 +10:00
James Mills
8ba7291760 Fix passing prehook/posthook flags that 7ccd59e broke :D 2022-03-21 10:42:49 +10:00
xuu
7ccd59efc0 feat: make endpoint uniform. add profiles (#30)
Co-authored-by: Jon Lundy <jon@xuu.cc>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/30
Co-authored-by: xuu <xuu@noreply@mills.io>
Co-committed-by: xuu <xuu@noreply@mills.io>
2022-03-21 00:31:59 +00:00
James Mills
d0c5f114a7 Fix a stupid Env var bug with bad KeyReplacer :/ 2022-03-21 01:50:37 +10:00
James Mills
b9c868f971 Improve the make-user command 2022-03-20 23:54:54 +10:00
James Mills
b40ce46ddf Improve error handling for make-user 2022-03-20 23:38:51 +10:00
James Mills
b078631c2d Add support for setting the Terminal/Console title (#20)
Closes #18

Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/20
2022-03-20 08:16:36 +00:00
James Mills
663edd1bc6 Fix bugs with the TUI client 2022-03-20 13:44:22 +10:00
James Mills
e3e3e825ac Fix inbox behaviour and configurability 2022-03-20 12:37:36 +10:00
James Mills
4c7835f394 Rebuild the shitty UI using tcell/tview 2022-03-20 11:19:21 +10:00
James Mills
166a7c0847 Fix getting -u/--broker-uri flags 2022-03-20 10:14:14 +10:00
James Mills
23a51dd946 Rename the -u/--uri flag to -u/--broker-uri (SALTY_BROKER_URI) and other flags and improve a lot of the help 2022-03-20 10:02:20 +10:00
James Mills
24dee80aba Fix pre/post hook support to accept stdin 2022-03-20 09:55:20 +10:00
James Mills
2f62274265 Add spport for pre/post hooks for read command 2022-03-20 09:35:47 +10:00
xuu
d1d33e45c6 feat: hax for great justice (#14)
- Dont send message on empty
- inbox flag to override $USER
- Filter messages to only chat with partner.

NOTE: might be better to parse the message in loop to handle events outside the formatting code.

NOTE NOTE: i think we might need to revisit read recipts.. maybe including user@domain?

Co-authored-by: Jon Lundy <jon@xuu.cc>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/14
Co-authored-by: xuu <xuu@noreply@mills.io>
Co-committed-by: xuu <xuu@noreply@mills.io>
2022-03-19 21:33:03 +00:00
James Mills
2a93983603 Simplify identity creationg and management 2022-03-20 02:34:39 +10:00
James Mills
a1b00f1bd8 Fix make-user to create the identity as prologic.key (by default) 2022-03-20 02:19:12 +10:00
James Mills
25cefb9d74 Fix args for make-user 2022-03-19 22:31:19 +10:00
James Mills
8f0914ef22 Add make-user command (#9)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/9
2022-03-19 11:42:36 +00:00
James Mills
005a013753 Add support for looking for a default identity 2022-03-19 16:34:33 +10:00
James Mills
7a3f2e5159 Improve error handling for GetIdentity() and missing User address 2022-03-19 16:02:40 +10:00
James Mills
34f76e4294 Add chat command 2022-03-19 15:35:31 +10:00
James Mills
eefeb944e7 Improve display of date/time 2022-03-19 14:10:56 +10:00
James Mills
14d08150a5 Format and colorize the messages nicely 2022-03-19 13:50:12 +10:00
James Mills
7eec2da5a4 Add read command 2022-03-19 12:35:04 +10:00
James Mills
a78e5c191a Minor improvements to the send command 2022-03-19 11:06:17 +10:00