758dd913cc
Dont rebuild backend for css changes, move asset code into file
2024-10-15 11:35:00 +02:00
Silver-Sorbet
94a07cd7bd
Adds math parsing ( #61 )
...
* Adds LaTex parsing to HTML with KaTex
* Adds display mode
Remove commented block parser rule
* Applies Nutomic suggestions
Adds fonts to assets
Adds KaTex CSS to assets
Makes katex crate inclusion depending on build type less verbose
* Woodpecker checks
---------
Co-authored-by: Bintou Ali <bintou005@protonmail.com>
2024-10-15 09:39:29 +02:00
abd89bfdc4
Need to sort edits by date ( fixes #45 )
2024-10-14 16:45:27 +02:00
b1f9510417
Better rendering of edit history ( fixes #57 )
2024-10-14 16:30:40 +02:00
b530495acc
Remove dbg
2024-10-14 13:02:55 +02:00
3050617005
Disable markdown plugins for url shortening and smartquotes ( fixes #53 )
2024-10-14 12:43:33 +02:00
a01d6cad52
Fix compiler warning
2024-10-14 11:30:48 +02:00
8b08d99d99
Resize article edit input based on length ( fixes #51 )
2024-10-14 11:24:06 +02:00
51b5cc7d79
Dont set cookie domain on localhost
2024-10-14 10:44:50 +02:00
fdda0f584a
Upgrade deps ( #60 )
...
* Upgrade dependencies
* fix tests
* ci config
2024-10-02 14:47:44 +02:00
f35a8d2592
Another run.
2024-03-29 09:51:52 -04:00
6d7910f929
Adding leptos and taplo format checks.
2024-03-29 09:42:06 -04:00
01c0175f4c
Add follow instance button in article nav ( fixes #31 )
2024-03-15 13:59:30 +01:00
3128cbaefb
Dont allow /
in article title ( fixes #25 )
2024-03-14 10:30:18 +01:00
8188296b88
Include domain when generating diff link ( fixes #23 )
2024-03-14 10:25:47 +01:00
a057f00e24
Minor changes to create/edit article page ( fixes #24 )
2024-03-14 10:11:32 +01:00
011c641664
clippy
2024-03-12 15:42:15 +01:00
09b68d0411
Better activity id generation
2024-03-12 15:18:54 +01:00
e56e8adbdf
Fix articles created with invalid ap_id
2024-03-12 11:45:20 +01:00
0b2bfbd3ae
Fix problems with invalid apub ids
2024-03-11 13:40:03 +01:00
11c3971d9e
Add basic nodeinfo
2024-03-08 16:49:00 +01:00
31b720a15c
Add button to toggle article protection
2024-03-08 16:37:46 +01:00
c341b87d5f
Upgrade apub lib
2024-03-08 14:58:29 +01:00
97e9b42e17
Allow accessing local article with domain for simple markdown plugin
2024-03-08 14:54:50 +01:00
fab78f7911
Fix redirect after creating article
2024-03-08 14:39:47 +01:00
a39a7ae5e6
Fix markdown plugin rendering
2024-03-08 14:39:38 +01:00
1c5229430f
Never use https in SSR mode, some more bug fixes
2024-03-08 14:29:29 +01:00
d5ce966ea1
Use nightly cargo fmt for better imports formatting
2024-03-05 16:38:07 +01:00
b2b20dcd2a
Implement protect article function
2024-03-05 16:06:27 +01:00
12de5ca387
Use include_str! to allow deployment as single binary
2024-02-28 18:31:46 +01:00
4cab67e063
fix clippy
2024-02-28 15:54:34 +01:00
6dd1711e11
Get rid of unwrap usage in backend
2024-02-27 18:10:15 +01:00
d22654261f
Use db pool
2024-02-27 17:54:50 +01:00
dd56a3f0d5
Add domain checks for federation
2024-02-27 16:21:30 +01:00
41a4d18949
Use federation queue with retry for sending
2024-02-27 13:05:12 +01:00
6e09d4881f
Add markdown syntax for article links
2024-02-15 12:34:40 +01:00
5ab62aecd5
Dont hardcode http protocol
2024-02-15 11:18:38 +01:00
e325de6352
Also allow resolving federated edit conflicts
2024-02-14 16:44:48 +01:00
a15a42b977
Handle conflicts in frontend
2024-02-14 16:13:57 +01:00
8c03ec72b1
Dont allow editing main page of remote instance
2024-02-14 15:01:56 +01:00
458c2297d2
Add usage guide to readme
2024-02-14 14:45:58 +01:00
da2c382cb0
Implement fork article in frontend
2024-02-14 12:25:44 +01:00
911fadb94b
Link user profile from article history and diff view
2024-02-13 16:51:57 +01:00
47362b52da
Basic user profile page
2024-02-13 13:30:38 +01:00
a2b808ce57
Add frontend button for instance follow, add instance.domain column
2024-02-12 16:37:12 +01:00
575ef14a23
Dont allow empty search queries, error handling for search
2024-02-12 14:56:07 +01:00
05d260d463
List articles from all instances by default, add help text
2024-02-12 11:55:21 +01:00
0c247a8959
correctly link remote articles
2024-02-09 16:54:46 +01:00
e908d3da33
hide signup button if registrations closed
2024-02-09 16:04:19 +01:00
3adcd98b3f
use trunk build not watch for federation.sh, ignore invalid auth
2024-02-09 10:58:39 +01:00
efebe765f8
create edit for default article so it shows in article list
2024-02-08 17:12:42 +01:00
88dd4c69c2
local federation setup
2024-02-08 17:04:56 +01:00
0f0f83bc3a
various changes
...
- only admin can edit main page
- adjust config values
- better text for default page
2024-02-08 12:22:15 +01:00
0c45fe3eba
remove unused typedef
2024-02-08 11:49:34 +01:00
334dc3826f
add config file
2024-02-08 11:38:46 +01:00
dbd8e931a4
fix tests
2024-02-01 16:51:38 +01:00
f2180e5e0b
add basic instance details page (untested)
2024-02-01 16:46:36 +01:00
862297638f
also resolve articles/instances on search page
2024-02-01 12:55:19 +01:00
1dc984025a
add headings
2024-02-01 12:23:51 +01:00
90f174bf53
sort article list by recently edited first
2024-02-01 12:10:55 +01:00
4e53b13b70
add list of articles with local/all selection
2024-02-01 11:34:09 +01:00
a12895f9bf
create article in ui
2024-01-30 16:06:02 +01:00
98a9ca2439
add scripts for watch/federate
2024-01-30 12:32:02 +01:00
baf1fb7505
basic search input and results page
2024-01-29 17:04:22 +01:00
7a1da4fd34
remove dead code
2024-01-29 15:50:21 +01:00
117323a5e3
Setup CI ( #14 )
...
* add ci config
* fmt
* jsonwebtoken opt
* add clippy
* clippy fixes
* install postgres
* apt update
* -y
* path
* fix path
* fix
* no root
* sudo
* which
* path
* fmt
* env
* ls
* full path
* chown
* echo path
* more chown
* fix
* useradd
* x
* -r
* p
* env
* p
* a
* env
* t
* ls
* cat
* ls
* cp
* rustup
* copy
* c
* x
* cleanup
2024-01-26 14:21:59 +01:00
d7d385c051
ensure trailing newline
2024-01-25 16:42:55 +01:00
f523a2ab24
render article as markdown
2024-01-25 16:29:56 +01:00
1158cb18eb
bugfix
2024-01-25 16:12:30 +01:00
8305680fda
basic article editing and history
2024-01-24 17:12:17 +01:00
e0cc23c0bc
minor changes
2024-01-24 15:02:06 +01:00
ccde4b4666
fix conflicts between federation and frontend routes
2024-01-19 16:21:44 +01:00
469ca6f718
working login and logout
2024-01-18 15:31:32 +01:00
f41cc01ad3
fix frontend compilation
2024-01-18 12:39:52 +01:00
9f4d20494e
move all api calls to ApiClient
2024-01-18 12:23:49 +01:00
173249ea8e
move some api methods to struct
2024-01-17 17:14:16 +01:00
150415e8ad
fix integration tests
2024-01-17 16:55:12 +01:00
8ca01dee07
registration and login working
2024-01-16 16:07:01 +01:00
89a71c7fcd
register working based on leptos example
2024-01-12 16:48:24 +01:00
90d92f5391
bit of error handling
2024-01-11 16:50:57 +01:00
b6c1512479
simplify trunk setup
2024-01-11 16:21:44 +01:00
0052054a19
form wip
2024-01-09 12:41:44 +01:00
db12e5f1e9
cleanup
2024-01-05 15:53:08 +01:00
42d382d19e
basic page rendering!
2024-01-03 17:11:24 +01:00
2ceab5a23c
basic page loading
2024-01-03 13:29:25 +01:00
166426e48f
wip
2024-01-02 15:56:49 +01:00
e1c69799b8
basic frontend with fetch
2023-12-22 15:15:29 +01:00
f2c9a76d75
Rename to Ibis
2023-12-20 17:08:19 +01:00
c42556ed05
store jwt secret in db
2023-12-19 16:15:43 +01:00
5d89591894
Handle conflicts per local user
2023-12-19 15:50:07 +01:00
8ed35141b7
Add creator_id to edit
2023-12-18 16:41:18 +01:00
69d08b824e
user working and tests passing
2023-12-14 17:06:44 +01:00
e0bd8d2791
login for fork_article
2023-12-13 16:58:29 +01:00
b72cc51814
require auth for create/edit article endpoints
2023-12-13 16:40:20 +01:00
f8da5ae965
split api into separate files
2023-12-13 13:32:44 +01:00
02db60ba15
fix tests
2023-12-13 13:13:10 +01:00
446556ff1a
basic functionality
2023-12-12 16:58:23 +01:00
bda146cf05
stuff
2023-12-08 22:21:31 +01:00
dc50483e5c
initial user impl
2023-12-05 15:51:22 +01:00
98c6726b84
Use Patch
type for federation
2023-12-05 13:25:02 +01:00
5c969078a8
some cleanup
2023-12-05 13:19:50 +01:00
5d2099c17c
conflict moved to db
2023-12-05 12:05:55 +01:00
37352a3e86
all tests passing!
2023-12-04 15:56:06 +01:00
04ba1ae48d
fix duplicate article test
2023-12-04 15:15:43 +01:00
aec05ac6b5
get follows working
2023-12-04 15:10:07 +01:00
90c4fbf8e4
instance in db compiling but tests failing
2023-12-04 10:15:14 +01:00
851f30dc24
remove dbedit.local
2023-12-01 16:07:22 +01:00
d4772d35c2
all tests passing!
2023-12-01 14:05:53 +01:00
7c789a1c06
tests are running with temp db
2023-12-01 12:11:19 +01:00
9ca2558b06
tests compiling (but failing)
2023-11-30 15:55:05 +01:00
573f15b293
main code compiling
2023-11-30 15:14:30 +01:00
5f58c1823c
use objectid as db type instead of dburl
2023-11-30 13:10:42 +01:00
e030419cc5
wip: Add diesel and postgres
2023-11-30 11:46:42 +01:00
4371fc2edc
add docs for api endpoints
2023-11-28 15:37:15 +01:00
d0e163ed61
allow forking remote article to local instance, add search
2023-11-28 15:13:48 +01:00
782ddd30f3
change get_article to take ap_id instead of title param
2023-11-28 14:29:51 +01:00
80ad6aa8d6
refactoring
2023-11-28 14:22:59 +01:00
d963f2257f
make automatic conflict resolution work
2023-11-28 13:14:25 +01:00
cc8b1a9d54
all conflict tests are passing!
2023-11-28 13:04:33 +01:00
201bba2d4b
clippy
2023-11-28 11:21:52 +01:00
75f2530689
handle local conflict
2023-11-27 16:34:45 +01:00
2b0fbc6236
fix tests
2023-11-27 11:59:05 +01:00
c22df74b99
wip: separate activities for editing local/remote article
2023-11-27 11:48:12 +01:00
8a11cfed20
federate reject activity and add edit_conflicts api endpoint
2023-11-27 11:26:35 +01:00
1539795f03
dont apply edit to already updated text
2023-11-24 16:14:25 +01:00
9a5a195bfd
partial test case for edit conflict
2023-11-24 15:31:31 +01:00
abb5ee0ce4
store edits inside edit.rs, avoid code duplication
2023-11-24 14:37:25 +01:00
920ec258bc
wip: handle edit conflicts
2023-11-22 16:41:34 +01:00
61682100f2
Add test case for federating edit of remote article
2023-11-22 16:01:46 +01:00
4e458650b8
federate article updates using diffs
2023-11-22 12:44:21 +01:00
5f7837d843
generate edit on article update (without federation)
2023-11-21 16:03:25 +01:00
afbb81c0d1
edits federating, need tests and api adjustments
2023-11-20 17:04:52 +01:00
c48f26c908
wip: implemenent edits
2023-11-20 16:48:29 +01:00
f84c4f47f2
federate article create/update
2023-11-17 14:22:31 +01:00
5c1e753761
use hashmap instead of vec for unique ids
2023-11-17 12:38:26 +01:00
703f10c746
synchronize articles
2023-11-17 11:49:26 +01:00
5da26f78e4
remove some unused code
2023-11-16 14:52:23 +01:00
59c6c8d46a
add create article endpoint
2023-11-16 14:45:59 +01:00
a5da3de8c2
finish implementing instance follow
2023-11-16 12:49:50 +01:00
b72bab1c6e
api routes cleanup
2023-11-16 10:25:54 +01:00
1098ecd4a1
add basic api call with test
2023-11-15 13:05:07 +01:00
df9da3784b
add agpl license
2023-11-15 01:38:16 +01:00
de2607e531
less unwrap
2023-11-15 01:32:46 +01:00
8477c07014
actual federation types
2023-11-15 01:26:24 +01:00
9fe5d50075
reorder files, remove some unnecessary stuff
2023-11-15 01:00:17 +01:00
79df3f3837
import apub lib example with some adjustments
2023-11-15 00:16:51 +01:00
6686088f76
cargo init
2023-11-14 23:41:58 +01:00