Commit graph

368 commits

Author SHA1 Message Date
Las Zenow
5517da6a69 Refactor template loading around the handler 2017-06-06 14:18:47 +00:00
Las Zenow
d40dc21627 Cache front page results 2017-06-05 23:03:24 +00:00
Las Zenow
f4ca9e2dbc Add instrumentation with prometheus 2017-06-05 16:17:14 +00:00
Las Zenow
2a72154308 Center bitcoin qrcode 2017-06-05 08:46:41 +00:00
Las Zenow
2562f4c2c8 Fix metadata editor
Convert slices to postgres arrays.
2017-05-30 23:28:42 +00:00
Las Zenow
71d975c2f7 Keep count of downladed/viewed books 2017-05-30 22:10:21 +00:00
Las Zenow
68ffe6cf5b Use all langs for the tsquery
Close: #28
2017-05-29 12:38:35 +00:00
Las Zenow
58ed66d426 Serve static files separately
It was serving all static files returning the same last one.
2017-05-29 09:45:38 +00:00
Las Zenow
825bad4540 Fix capitalization of getDocumentById 2017-05-27 09:52:44 +00:00
Las Zenow
83ab1b461d Expose AddRaw[User|News] for scripting 2017-05-21 22:48:43 +00:00
Las Zenow
d0670c0b62 Cache the full book counter 2017-05-21 11:07:13 +00:00
Las Zenow
0c3385200e Fix tag indexing 2017-05-21 11:05:39 +00:00
Las Zenow
e0854aa001 Using master pg library 2017-05-21 11:05:37 +00:00
Las Zenow
d9a95a997c Normalize probperly the lang 2017-05-21 11:02:43 +00:00
Las Zenow
42ccf52718 trigram indexes 2017-05-21 11:02:35 +00:00
Las Zenow
b62b303995 Helper functions for the migration scripts 2017-05-21 10:59:31 +00:00
Las Zenow
fd0b9cf53d Use the right date type for news 2017-05-21 10:58:34 +00:00
Las Zenow
15e1802a00 Fix tags updater and query parser 2017-05-21 10:56:52 +00:00
Las Zenow
b7c1d74e83 Fix parse subject 2017-05-21 10:55:56 +00:00
Las Zenow
18baa2938b Remove statistics and add frequent tags in memory 2017-05-21 10:55:53 +00:00
Las Zenow
284b649b69 Update expiration date of the gpg key 2017-05-21 10:51:02 +00:00
Las Zenow
52b9882be9 Convert Id to ID 2017-05-21 10:50:59 +00:00
Las Zenow
f12114c296 Deprecate bad quality flag 2017-05-21 10:47:02 +00:00
Las Zenow
7f9c172853 Rename author to authors and subject to tags 2017-05-21 10:47:00 +00:00
Las Zenow
e72de38725 [WIP] migration to psql
TODO:
[ ] stats
[ ] indexes
2017-05-21 10:44:43 +00:00
Las Zenow
e1bd235785 Implement Read Only mode 2017-05-21 10:16:51 +00:00
Las Zenow
6464d92dd4 Check if there is any author before using the first
- Closes: #26
2017-02-05 14:14:22 +00:00
Las Zenow
ffbca5e162 Return to the previous location when saving/deleting books 2017-02-05 01:51:00 +00:00
Las Zenow
7f7cafd1c1 List of tags in the editor
* Closes: #21
2017-02-05 01:27:32 +00:00
Las Zenow
1cae0821ba Support lattest gorilla router patterns 2017-02-05 00:59:56 +00:00
Las Zenow
3592c7fc0d Add the query to next and prev pages 2017-02-05 00:59:29 +00:00
Las Zenow
bcbabce401 Use jmhodges fork of gocld2 2017-02-04 12:46:21 +00:00
Las Zenow
8e82ee3702 Add search terms to the moderation page
* Closes: #22
2017-02-04 12:45:42 +00:00
Las Zenow
fcf9b1eb8d Add ISBN to the metadata editor 2017-01-31 10:45:28 +00:00
Las Zenow
0f627dcd53 Add bitcoin QR-code 2016-12-23 02:50:11 -05:00
Las Zenow
7a0f4834a5 Reduce to 10 the books listed in the new page. 2016-10-21 14:27:26 -04:00
Las Zenow
dcc2d3b9dc Add the moderator role 2016-10-18 15:18:01 -04:00
Las Zenow
baf2b5a6a9 Use struct literal initialization 2016-05-03 10:14:26 -04:00
Las Zenow
0e8f1e7b56 Convert config.go into command line params 2016-05-03 01:03:23 -04:00
Las Zenow
9d1f1ad5c0 Move all the code to a lib folder 2016-05-02 21:41:40 -04:00
Las Zenow
e963d00014 Configure host url 2016-04-24 09:07:29 -04:00
Las Zenow
6c08f284b9 Use diferent titles per page
* Related: #7
2016-01-28 18:13:26 -05:00
Las Zenow
b0e3659956 Set a default height in the reader iframe to support non-javascript view
* Closes: #10
2016-01-28 17:43:26 -05:00
Las Zenow
97dd6934b4 Use the oficial golang.org/x/crypto lib 2016-01-28 17:14:43 -05:00
Las Zenow
fb43f2b83a Put the full public key in the about page 2015-11-16 07:32:34 -05:00
Las Zenow
bf09d3c0be Add cache header
For now we only add it to images/js/css and not for html/json/xml
generated pages.
2015-11-15 08:49:35 -05:00
Las Zenow
4ace7a687e Don't sort by text in the Iter
There is some issues with the sorting for iterators, it seems to crash
in big databases.
2015-04-28 11:29:32 -04:00
Las Zenow
b178df89b0 Check if the lang is supported by mongo
If an unsoported lang is setted in the language override the document
will fail on inserting in the database, causing it to be lost.
2015-04-27 20:54:41 -04:00
Las Zenow
804112e459 Tools are not in the repo anymore, remove them from gitignore 2015-04-27 20:33:28 -04:00
Las Zenow
4e9e0fb2a5 Add books Iter 2015-04-21 21:57:28 -04:00