Robin Malley
872760c9ff
Refactor makefile
...
* Move SPP cli flags into it's own variable
* Remove a bunch of legacy code around settinig up a chroot environment
2022-09-02 23:06:38 +00:00
Robin Malley
040587701e
Rewrite config for kore 4.2.0
...
Kore 4.2.0 has a new format for the configuration file.
2022-06-26 23:09:28 +00:00
Robin Malley
ec6aed9866
Add a types module to help refactor type checking
...
Type checking will be performed in unit tests, but will be an
empty function at runtime.
2022-06-26 23:08:46 +00:00
Robin Malley
647e7f2ac2
Add a unit test for posting
...
Add a unit test that checks that the posting api works.
2022-06-26 23:08:03 +00:00
Robin Malley
3b1d3dd910
Add function signatures
...
Add two function signatures that are added by kore.
2022-06-26 23:07:09 +00:00
Robin Malley
e0fabca908
Better error message on failed coroutines
...
Add a full error message with traceback if the coroutine_iter_next()
function is passed a dead coroutine.
2022-06-26 23:05:24 +00:00
Robin Malley
a0c8907f71
Fix minor bug in paste_post method
...
Make a variable that was global local when an error
is thrown.
2022-06-26 22:52:58 +00:00
Robin Malley
77d8c0e66b
Typo corrections, add to roadmap
2022-02-20 00:21:50 +00:00
Robin Malley
138cf12028
Add a type system
...
Add a check_types method that can check lua types for correctness.
2022-02-20 00:17:36 +00:00
Robin Malley
87556f77cc
Less fuzzing
...
Limit the number of runs of the markup fuzzer in order to save
time.
2022-02-20 00:13:44 +00:00
Robin Malley
63e2b0b663
Make makefile self documenting
2022-02-20 00:12:52 +00:00
Robin Malley
ac3fc81741
Fix the coroutine response function
2022-02-20 00:08:07 +00:00
Robin Malley
9667aa1c3e
Pretty error message when post does not have an author
...
Replace the basic error message when a post does not have an author
with a nice looking error message page.
2022-01-23 18:19:20 +00:00
Robin Malley
16054156a1
Finished writing cacheing tests
...
Cacheing tests now make sure that logged in users don't cause
pages to cache.
Also fixed creating a logged in session automatically in the mock
environment.
2021-10-21 23:44:23 +00:00
Robin Malley
68561443a5
Mark unlisted posts
...
There was a bug where unlisted posts would not have a marker next to
them to show they are unlisted.
2021-10-11 01:01:18 +00:00
Robin Malley
069c75b72e
Add a delete button.
...
Add a delete button to posts that will show up if the user is logged in
and is the owner of a post. If javascript is enabled, the user will be
prompted for conformation before deleting a post.
2021-10-11 00:59:50 +00:00
Robin Malley
81ad49ae80
Fix warnings
...
Compileing should happen without warnings, even with extra warnings.
2021-10-11 00:57:11 +00:00
Robin Malley
680a341db5
More errors for dev builds.
2021-10-11 00:55:07 +00:00
Robin Malley
296777d3fc
Add a comment to the top of the javascript.
2021-10-11 00:54:47 +00:00
Robin Malley
1487835478
Allow assets to be templated
2021-10-11 00:54:15 +00:00
Robin Malley
e0a8b3d60a
Add code coverage
...
Add another target in the makefile to run code coverage.
2021-09-12 17:37:12 +00:00
Robin Malley
de76d31fe8
Bugfix add random generation
...
Add a file that holds all the random generation for things like
usernames and posts.
2021-09-12 16:33:29 +00:00
Robin Malley
37a9bbd63d
Use random usernames to unittest
...
Don't replace the database with a unittest database, just use
the usual database and user randomly generated usernames so we
don't have collisions.
2021-09-12 16:26:09 +00:00
Robin Malley
d5a3197262
Add logging levels for unit tests
...
Add logging levels for the mock environment for unit tests. Values
map to a string name instead of an integer like in the normal
environment.
2021-09-12 16:24:43 +00:00
Robin Malley
c00903505b
Remove debugging statement
2021-09-12 01:53:34 +00:00
Robin Malley
9dcc743199
Reset session correctly
...
Sometimes logging in doesn't work correctly, fix it.
2021-09-12 01:53:06 +00:00
Robin Malley
6398e97498
Add a logout button
...
Add a button that only shows when users are logged in, allowing
them to log out.
2021-09-12 01:47:40 +00:00
Robin Malley
4e0a23ee95
Add some files to gitignore
...
Add some files that are preprocessed with spp to the gitignore.
2021-09-11 21:51:54 +00:00
Robin Malley
1ddd446297
Add some unit tests to search parser.
...
Add some unit tests that ensure the search parser is outputting
search parameters that look correct.
2021-09-11 21:51:22 +00:00
Robin Malley
9444d300b8
Allow logged in users to use their session immediately.
...
Fix a bug where unit tests are attempting to log in and use their
session key in the same second that the session key was created.
2021-09-11 21:50:23 +00:00
Robin Malley
3bd07ebf6a
Fix search parser
...
Allow + or - in the search string as long as it is not preceeded by
a space. If it is preceeded by a space, it starts a new search
constraint.
2021-09-11 21:49:15 +00:00
Robin Malley
a16f2dfe02
Mark unit test as slow.
...
Mark a test as slow that runs fuzzing.
2021-09-11 21:46:23 +00:00
Robin Malley
ffc34295e9
Add a log in the mock environment
...
Add a function that implements `log()` in the mock environment.
2021-09-11 21:45:29 +00:00
Robin Malley
e0a8e01513
Move some tests to pending
...
Write a bunch of unit tests and mark some of them as pending.
2021-09-11 21:44:57 +00:00
Robin Malley
ab6572314e
Exclude slow tests in make test
...
Exclude tests that take a long time to run in the `make test`
to speed up automated unit testing.
2021-09-11 21:43:32 +00:00
Robin Malley
41f68f45b8
Add more tests
2021-08-27 01:09:29 +00:00
Robin Malley
d11695b5eb
Remove extra prints
2021-08-27 01:08:51 +00:00
Robin Malley
eac2a38c6c
Add a logout button
...
Add a button so users know if they're logged in.
2021-08-27 01:08:30 +00:00
Robin Malley
4913e7765e
Extra cache dirtying
...
Some pages weren't getting dirtied appropriately on change.
2021-08-27 01:08:02 +00:00
Robin Malley
f88ec0e22a
Use database from config
...
Use the database file that came from the config file.
2021-08-27 01:06:55 +00:00
Robin Malley
7e5e38c3f2
Add database to config
...
Add the database to the config file so we can override it for
unittests.
2021-08-27 01:06:24 +00:00
Robin Malley
e3468136e5
Add more stuff to cloc
...
Count etlua as html files.
2021-08-27 01:05:18 +00:00
Robin Malley
3db891800b
Improve cacheing
...
Caches domain/a and author.domain/a as the same page.
2021-07-28 00:39:04 +00:00
Robin Malley
3b6a631dc4
hotfix
2021-04-09 20:15:01 +00:00
Robin Malley
e5d1904b1f
Try to hint reader mode better.
...
Line breaks in the imageboard parser now use an empty paragraph tag
to try to hint that the page should use reader mode.
2021-04-09 20:03:24 +00:00
Robin Malley
7cc5e8d0ef
Add information to failed api requests
...
Add addition information when requests for tag suggestions fail.
2021-04-09 19:17:22 +00:00
Robin Malley
9e51de6c8e
Fix CSRF
...
Domain name was hardcoded, use the config file instead.
2021-04-09 19:16:36 +00:00
Robin Malley
fd87cf95ee
Add bookmark script.
...
Add a script that saves the position on read pages to localstorage, and
restores the page position when the page is reloaded.
2021-04-04 06:11:55 +00:00
Robin Malley
fdf0b67f3a
Remove prints.
...
Remove some extranious prints.
2021-04-04 06:11:14 +00:00
Robin Malley
33a23ef20c
Set samesite on cookies.
...
Set the SameSite attribute on all cookies issed to Lax.
2021-04-04 06:03:03 +00:00