Commit graph

30 commits

Author SHA1 Message Date
Izalia Mae
9f5df5f95c update swagger docs 2024-07-04 22:58:50 -04:00
Izalia Mae
773922e263 remove tokens table and fix auth handling 2024-07-04 22:00:54 -04:00
Izalia Mae
f98ca54ab7 various changes
* Add oauth login support
* Add `HttpError` class
* Add custom error handling
* Use `blib.Date` class for (de)serializing db timestamp values
* Add `db-maintenance` command
* Rework middleware route checking
* Fix fetching post data in api endpoints
2024-07-04 20:36:04 -04:00
Izalia Mae
b22b5bbefa ensure the relay can run on python >= 3.10 2024-07-03 00:59:59 -04:00
Izalia Mae
1d72f2a254 fix ValueError when adding new instance via api 2024-06-25 16:29:58 -04:00
Izalia Mae
bdc7d41d7a update barkshark-sql to 0.2.0-rc1 and create row classes 2024-06-25 16:02:49 -04:00
Izalia Mae
c508257981 raise exceptions instead of returning None from HttpClient methods 2024-06-18 23:14:21 -04:00
Izalia Mae
058df0ac78 properly handle non-ascii domain names
* ensure domains are stored as ascii in the database
* convert domains to unicode on the frontend
2024-06-16 08:45:14 -04:00
Izalia Mae
15882f3e49 fix linter issues 2024-06-14 15:05:55 -04:00
Izalia Mae
478e21fb15 require token for /api/v1/instance 2024-06-12 13:24:44 -04:00
Izalia Mae
f7e31d9387 add cors headers to api routes 2024-03-30 05:33:26 -04:00
Izalia Mae
5c210dc20f fix linting issues 2024-03-16 01:36:20 -04:00
Izalia Mae
e1ab01e4e2 use api on login page 2024-03-15 22:14:37 -04:00
Izalia Mae
1ffc609058 add user management api endpoints and allow cookie for api auth 2024-03-15 06:46:31 -04:00
Izalia Mae
08f4f0e72d use api for admin config page 2024-03-15 04:53:43 -04:00
Izalia Mae
f775335e80 use api for instances admin page 2024-03-14 23:48:22 -04:00
Izalia Mae
aeb84d7a72 use api for software bans admin page 2024-03-14 21:58:40 -04:00
Izalia Mae
17690268bc add ability to update domain bans and re-add domain ban api endpoints 2024-03-14 21:36:47 -04:00
Izalia Mae
10ba039938 minor frontend tweaks and use javascript for managing domain bans 2024-03-14 20:58:16 -04:00
Izalia Mae
9fe6d8ad96 replace pylint with mypy and other minor changes
* ignore test*.py files
* format requirements.txt to be more readable
* only show note on home page if it is set
* allow flake8 to check for more than just unused imports
* remove a bunch of unused methods in `compat.RelayDatabase`
* turn `Config` into a dataclass
* replace database config methods with `RelayData` dataclass
* rename `loads` to `cls` in `HttpClient.get`
2024-03-13 17:43:57 -04:00
Izalia Mae
c852867636 add option to require approval for new instances 2024-03-11 01:21:46 -04:00
Izalia Mae
0e812c012e fix POST /api/token and prevent scroll bar from always showing 2024-03-05 14:05:54 -05:00
Izalia Mae
6f03e2ad4c fix linter issues 2024-02-23 20:04:31 -05:00
Izalia Mae
a2ae1bdd21 return correct types for api 2024-02-20 19:22:18 -05:00
Izalia Mae
93797b639e Replace tinysql 2024-02-21 00:00:21 +00:00
Izalia Mae
1eb93ab71a fix running via pyinstaller bin 2024-02-16 21:05:12 -05:00
Izalia Mae
c3b4d9ca98 add swagger api docs 2024-02-16 20:25:50 -05:00
Izalia Mae
afad948f85 de-uwu api message 2024-02-16 10:39:58 -05:00
Izalia Mae
aca34825b1 remove unused imports 2024-02-15 22:05:22 -05:00
Izalia Mae
097f3bc896 Add API endpoints for relay management 2024-02-14 20:29:30 +00:00