Commit Graph

253 Commits (master)

Author SHA1 Message Date
magical 804438f045 add bundle.py to create single-file bbj client
python is able to import modules from a zip file. if the zip file
contains __main__.py it will even run it as a script! this lets us bundle
bbj's frontend together with its sole external dependency (urwid) to
create a single executable file that'll run anywhere with python
installed, no virtualenv needed.

the only downside is that python can't import shared objects (.so) from a
zip file, so urwid can't use its C-accelerated str_util module and has
to fall back to the python version. which is slower, probably.
2022-08-10 07:09:06 +00:00
magical ab1550c09c redo mark function 2022-08-10 03:44:15 +00:00
magical 315a249ef6 check for empty post before asking for confirmation
before this change, BBJ would give the big "You are posting
anonymously!" warning even if the post body was empty (say, because you
accidentally started a post and closed the editor immediately). only
after confirming that you _really_ wanted to post anonymously would it
notice that, hey, the post body is empty and discard the post.

it makes more sense to do the checks the other way around.
2022-08-08 01:51:37 +00:00
magical 92bdd7b660 improve wipe_screen 2022-08-07 01:39:18 +00:00
magical 77d38011b5 quote file path in shell command 2022-08-07 01:25:14 +00:00
magical 4364c16625 set env in subprocess a little more cleanly 2022-08-07 01:25:14 +00:00
magical deb8d3ba4b remove unnecessary shell=True's 2022-08-07 01:25:14 +00:00
magical f63233dbb7 don't use network.request 2022-08-07 01:25:14 +00:00
magical ab42b4a27d use network.request 2022-08-07 01:25:14 +00:00
magical 8ae384b1cd make sane_value validation a little more general 2022-08-06 06:42:20 +00:00
magical 5e7168c848 rewrite some tail call loops as normal loops 2022-08-06 06:20:16 +00:00
magical 2e54939345 remove global network value 2022-08-06 06:01:25 +00:00
magical ceb4937c60 remove relog parameter 2022-08-06 05:40:25 +00:00
magical 3e4f3de2a8 pass the initial username and password to log_in explicitly 2022-08-06 05:20:39 +00:00
magical b1d1de659d import exit
The builtin exit function is added by the site package "for the
interactive interpreter" and "should not be used in programs", according
to the manual.

We want sys.exit instead. (I didn't know you could pass it a string
value, but it turns out you can.)
2022-08-06 05:10:14 +00:00
magical df9d419919 move some global code into main 2022-08-06 05:09:57 +00:00
desvox 6e30125fb8 Fix stupid typo preventing new configs being made. 2018-08-14 22:19:20 -05:00
desvox 1c296cc500 Allow admins to set server pins from client. 2018-08-05 22:25:02 -05:00
desvox cba92412a8 Allow setting server admins from server's config.json 2018-08-05 19:13:41 -05:00
desvox 826c13db98 Improve developer console. 2018-08-05 18:19:29 -05:00
desvox 33efb379ad Add basic urwid frame and divider theming support. 2018-08-05 13:14:57 -05:00
desvox aaf57cfd56 Make content refresh notification shorter. 2018-08-04 08:32:13 -05:00
desvox 7b9b49c320 Add note about environment variable usage and security. 2018-08-04 08:31:11 -05:00
desvox be24ae9dc2 Allow server to share configuration info with clients. 2018-08-04 08:21:01 -05:00
desvox 504ee3fc04 Added option to warn when posting anonymously. 2018-07-30 12:13:13 -05:00
desvox f5b06cca18 Added client-side thread pinning. 2018-07-27 22:57:48 -05:00
desvox 8044468f8b I CANNOT TYPE 2018-07-27 19:12:23 -05:00
desvox 7665d19d2f Added enviroment variable info to --help 2018-07-27 19:10:12 -05:00
desvox 92c4f4c1ae Added environment variable support for logging in. 2018-07-27 19:00:23 -05:00
desvox 6d0d10b9a7 Fix out-of-bounds crashes and added help text for thread searching. 2018-07-27 18:30:46 -05:00
desvox 22b4a5d5a5 Add basic search support (needs a little work, btw HI MODS) 2018-07-27 17:28:34 -05:00
desvox 4177c6080c Update formatting help text. 2018-07-27 07:07:53 -05:00
desvox ed8831c728 add a --help option 2018-07-27 06:57:54 -05:00
Blake DeMarcy 33dd0a361d basic ass https support 2018-02-13 22:12:56 -06:00
Blake DeMarcy e0f83592dc made linequote spacing less fucky 2017-10-11 15:13:13 +00:00
Blake DeMarcy 18426796b7 allow setting escape keys for the composers 2017-09-10 14:16:58 -05:00
Blake DeMarcy 41b7311d70 preliminary custom escape key handling in the composer 2017-09-10 13:18:26 -05:00
Blake DeMarcy 1ab36bd984 until thread searches are supported, do not show prompt on [/] 2017-09-09 18:41:09 -05:00
Blake DeMarcy a38d93edef add note to search prompt on how to reset search 2017-09-09 18:34:36 -05:00
Blake DeMarcy 30c057e6da update usermap on search; show in headerline when searching 2017-09-09 17:58:49 -05:00
Blake DeMarcy fa006d6d69 add [/]Search to index footer 2017-09-09 16:47:46 -05:00
Blake DeMarcy ea45451c4a fuckup: Merge branch 'master' of github.com:desvox/bbj 2017-09-09 16:44:38 -05:00
Blake DeMarcy f89f07432b add extremely basic thread index searching 2017-09-09 16:43:16 -05:00
Blake DeMarcy fa4174e101 fix for loop for 3.4 compat 2017-09-08 23:31:51 -05:00
Blake DeMarcy ab205c5e90 rebuild site 2017-09-06 17:06:41 -05:00
Blake DeMarcy b9b8521b8a add compat notes for python3.4 2017-09-06 17:05:19 -05:00
Blake DeMarcy ab8d530677 remove star expansion statements (3.4 compat) 2017-09-06 16:54:29 -05:00
Blake DeMarcy ab2f6ebc5b rebuild 2017-09-03 00:32:41 -05:00
Blake DeMarcy dfbdeed79c add header ref to the validation page 2017-09-03 00:27:45 -05:00
Blake DeMarcy 00f959d664 push new doc changes to html 2017-09-03 00:08:07 -05:00