Commit Graph

166 Commits

Author SHA1 Message Date
Robin Malley 4da25d600c Fix footers not appearing on some pages
Footers were broken on some pages.
2023-03-12 05:50:46 +00:00
Robin Malley 78eb69afd0 Move search into a component
Move the search field, which appears on several pages, into it's own
"part" under the parts folder.
2023-03-12 05:50:09 +00:00
Robin Malley de63a8660c Searchs now appear latest first
When searching, stories now appear latest-first, same as the index and
author index pages.
2023-03-12 05:35:59 +00:00
Robin Malley adda5ab547 Add a title search example
Add an example to show how to searh by title into the search bar's
default text.
2023-03-12 05:30:01 +00:00
Robin Malley f83bf55d3f Fix a bug where the search pages did not show comments
When comments were added, the search page was not modified
appropriately.
2023-03-12 05:29:36 +00:00
Robin Malley 5c5637ff40 Add some better error reporting 2023-03-12 05:13:54 +00:00
Robin Malley 76c462cb60 Allow scrolling on index page 2023-03-12 03:31:08 +00:00
Robin Malley 652e673d39 Show comments
Show comments on a story's short description, and automatically load
comments when reading a story.
2023-03-01 00:41:51 +00:00
Robin Malley 443a6331e6 Continue expanding addon system 2023-02-20 05:06:36 +00:00
Robin Malley 66b48f06a4 Start using addon api 2023-02-20 04:32:37 +00:00
Robin Malley 87bccb959d Start working on addon api. 2023-02-20 02:39:42 +00:00
Robin Malley 4514a42cfc rename "idp" to "short"
rename a variable with a useless name to something more descriptive
2023-02-20 01:56:09 +00:00
Robin Malley fc7d3f9f79 Updating a story no longer updates the post time. 2023-01-17 23:16:05 +00:00
Robin Malley 39c7f2f638 Start working on documentation 2022-12-23 19:30:52 +00:00
Robin Malley 1930ade3f7 Add a border around author biographies 2022-11-25 04:07:38 +00:00
Robin Malley 8b03c78346 Fix bug where author index cache is not invalidated correctly 2022-11-25 02:25:36 +00:00
Robin Malley afe144d554 Correct wrong formatting string for coroutines. 2022-11-23 22:12:04 +00:00
Robin Malley 720e826d4d Remove extranious print 2022-11-23 22:11:40 +00:00
Robin Malley 9daf7e90cd Refactoring and bugfixes
A few bugfixes for author biographies.
Also moved a few functions that used to be in "util" into "db"
2022-11-23 21:44:46 +00:00
Robin Malley 411bcb494d Allow users to edit biographies 2022-11-21 00:32:49 +00:00
Robin Malley e25d2fd06a More work on author biographies
Start work on unit tests for author biographies
Fix a bug in the biography get endpoint
Add the biography get page to the page list
2022-11-19 23:59:50 +00:00
Robin Malley 3431daee0b Refactoring 2022-09-19 22:07:35 +00:00
Robin Malley 223cfb9e46 Work on bio editing 2022-09-19 22:03:45 +00:00
Robin Malley 49d0b0a397 Move motd into it's own file. 2022-09-19 21:16:01 +00:00
Robin Malley d5ec6d6864 Get started on author biography.
Get started on implementing author biographies, add endpoints.
2022-09-02 23:32:17 +00:00
Robin Malley f5c729bfde Finish the unit test to check anonymous posting works.
Finish up a unit test that was previously marked TODO, which tests that
a story posted anonymously appears on the home page.
2022-09-02 23:23:19 +00:00
Robin Malley f0c7ae13fe Modifications to allow biography
Start work on allowing users to modify their biography
2022-09-02 23:22:47 +00:00
Robin Malley acebec5d73 Fix code coverage
Actually generate code coverage reports.
2022-09-02 23:22:08 +00:00
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