Commit graph

475 commits

Author SHA1 Message Date
Las Zenow
1bfb377174 Don't count estimate for moderation queue 2021-05-07 07:51:57 +00:00
Las Zenow
70d032e181 Add the missing & to the list edit 2021-05-07 07:26:58 +00:00
Las Zenow
7665eae762 Use & as author separator
And set properly the separators on other fields
2021-05-07 07:10:25 +00:00
Las Zenow
867c19f97c De-jquery the javascript 2021-05-01 11:08:38 +00:00
Las Zenow
836a71b2d0 Fix the check if the book is active 2021-05-01 11:08:38 +00:00
Las Zenow
06a522231d Update dependencies 2021-05-01 11:08:38 +00:00
Las Zenow
02f711aa97 Add tokenfield tag editor 2021-05-01 11:08:38 +00:00
Las Zenow
6a3da59c75 Port the web to bootstrap5
So it is responsive in phones.
2021-05-01 11:08:35 +00:00
Las Zenow
8af2ad3758 Disable the number of title/author also on the template for moderation 2021-04-30 17:41:25 +00:00
Las Zenow
3b2688bdfc Let's not search for title/authors for moderation
We have to find a more performant solution here.
2021-04-30 17:38:20 +00:00
Las Zenow
1e56da1c01 Reduce the number of items per page on moderation
For performance issues.
2021-04-30 17:26:37 +00:00
Las Zenow
2648e8156c Don't hit the db for coverHandler 2021-04-26 18:18:44 +00:00
Las Zenow
7ec326c3ad Update the openpgp key 2021-03-15 16:36:10 +00:00
Las Zenow
c625906384 Set the content-type of the epub downloads 2021-03-15 16:33:16 +00:00
Las Zenow
68f5d95915 We need to be able to write in /tmp inside the docker 2021-03-15 16:32:55 +00:00
Las Zenow
2c535dba83 Add dockerfile 2021-02-10 17:39:18 +00:00
Las Zenow
dfc3415972 Replace gocld2 for whatlanggo 2021-02-10 15:41:20 +00:00
Las Zenow
582298ce68 Add the link to the forum into the header 2021-02-09 19:00:22 +00:00
Las Zenow
c770a4d202 Comment out most visited/download
It doesn't work and we don't display them in the front page since a
while.
2021-02-09 18:59:07 +00:00
Las Zenow
d48fffff6c Use env variables to configure 2021-02-09 18:38:15 +00:00
Las Zenow
e7a73e0859 Put only one author on the book file name
- Closes: #64
2021-02-09 17:50:51 +00:00
Las Zenow
a4b11142b2 Publish the size of the book before download
- Closes: #62
2021-02-09 17:32:13 +00:00
Las Zenow
d81f1b92cd Add prettier configuration 2021-02-09 16:49:33 +00:00
Las Zenow
08caa73680 Add info about the telegram bot 2020-12-10 15:55:56 +00:00
Las Zenow
8671c4d220 Use http.ServeContet to be able to continue downloads
- Closes: #59
2020-12-10 15:43:18 +00:00
Las Zenow
32b546a212 Factor out the download url into a function 2020-12-10 12:44:36 +00:00
Las Zenow
138eb64e52 Set SameSite to strict on the session cookie 2020-12-03 16:26:30 +00:00
Las Zenow
b89616a904 Set the session key from an env variable 2020-12-03 16:06:18 +00:00
Las Zenow
fe36b1d23c Add dev flag to indicate development runs
Used to reload the templates on each page view.
2020-12-03 12:58:37 +00:00
Las Zenow
1536d97d8d Update to use pg/v10 2020-11-30 19:03:31 +00:00
Las Zenow
94c75b1d2a Add the authors to the download filename 2020-11-18 12:00:19 +00:00
Las Zenow
c82fd09e0d Optimize submission deletion
The nested select was producing a sequential lookup into the books
table, that took hours to resolv.
2020-11-18 11:52:26 +00:00
alcortezfsoc
ccb9e6660d Update upload.html 2020-07-20 20:24:16 +00:00
Las Zenow
fa41544f14 State clearly that is an antifa space 2020-06-24 11:08:20 +00:00
Las Zenow
3399d0ef1b Do the count stimated
The DB is being overloaded by the qaueries
2020-06-24 11:07:54 +00:00
Las Zenow
b54745028a Add checksum to the json
- Closes: #54
2020-06-24 11:07:04 +00:00
Las Zenow
a1ee320eba Add hashes for each book
Check if the uploaded book is already in the library
2020-05-03 10:14:50 +00:00
Las Zenow
154867c50c Add authors to the rss feed 2020-04-23 10:54:59 +00:00
Las Zenow
497a020f9a Fix tag url in opds 2020-04-11 17:58:03 +00:00
Las Zenow
0637cb7602 Use xml marshaling to create the rss feed 2020-04-11 16:54:32 +00:00
Las Zenow
04c452853a Trim the tags 2020-04-11 16:54:03 +00:00
Las Zenow
6684e1b96a Add a mirror notice in the footer 2020-03-23 19:13:58 +00:00
Las Zenow
383214ee19 Add search by date 2020-03-23 11:35:10 +00:00
Las Zenow
3bb3cf9489 Take the hostname from the request 2020-02-20 23:56:21 +00:00
Las Zenow
3e3ba1bd7e Merge remote-tracking branch 'mr/7' 2019-12-23 19:11:03 +00:00
Las Zenow
25bed10456 Merge remote-tracking branch 'mr/8' 2019-12-23 19:09:13 +00:00
endangered
8ffec7510a Fix getVisitedBooks and getDownloadedBooks queries, preventing persistent error every five minutes when front page data is updated 2019-11-30 10:55:26 +09:30
endangered
f836f40f89 Provide command line variables for initializing an admin user. Previously to get admin access on a fresh install I had to create a user in the web interface (to make sure the password hash/salt is properly setup) then manually change the role in the database to 'admin' using a postgresql client. This was a pain in the ass, and I think there really needs to be an easy way to create the admin user on the initial deployment. This solution fixes this, and adds documentation to the README file on how to use those variables. 2019-11-25 06:58:44 +09:30
endangered
9ea77c095f Submission uploads (lib.uploadRequest.processFile) generate an error: null value in column active violates not-null constraint. This sets a default value on this column of false and columns in the visits table to zero which also have not-null constraints, ensuring errors like these are prevented 2019-11-25 06:15:28 +09:30
Las Zenow
defaa2ae0b Update to pg v9 2019-11-06 06:53:41 +00:00