Commit graph

31 commits

Author SHA1 Message Date
Las Zenow
d51b7f935c Use the new API of epubgo 2013-06-04 21:30:37 +02:00
Las Zenow
e72fd6e4d4 Pass the session to the 404 page 2013-06-01 20:51:21 +02:00
Las Zenow
155144d86e Produce prev link only if it's not empty 2013-05-28 01:22:22 +02:00
Las Zenow
41258ee863 Check if the ObjectIds are valid. 2013-05-09 09:42:58 +02:00
Las Zenow
d0f6b83423 Add a 404 page 2013-05-09 09:42:03 +02:00
Las Zenow
206775fa6a Store statistics on mongodb 2013-04-22 23:28:00 +02:00
Las Zenow
58447a19cb Split the reader handlers 2013-04-16 03:28:38 +02:00
Las Zenow
402dbabdbd Use gorilla/mux patterns 2013-04-15 00:59:19 +02:00
Las Zenow
05b641201c Store files on GridFS 2013-04-12 01:05:40 +02:00
Las Zenow
d994d6b91f Using epubgo to handle epubs 2013-04-01 14:05:04 +02:00
Las Zenow
857dc5f57c Use http.StatusTemporaryRedirect instead of hardcoded 307 2012-10-29 21:43:55 +01:00
Las Zenow
93bd567f8d Change the paths stored on the database
The paths in the database now are relative of the config BOOKS_PATH and COVER_PATH

For updating the database this query should be use:
for (var i = db.books.find(); i.hasNext(); ) {
        var book = i.next();
        db.books.update({_id: book["_id"]}, {$set: {path: book["path"].slice(6), cover: book["cover"].slice(7), coversmall: book["coversmall"].slice(7)}});
}
2012-10-28 20:21:46 +01:00
Las Zenow
11d24f2f20 go fmt 2012-09-14 00:34:13 +02:00
Las Zenow
840fd3ed47 New database squema
The collection new is removed, now the books have a field "active" set to true
if the book was aproved.

For update the database:
db.books.update({}, {$set: {active: true}}, true, true)
2012-09-12 00:19:19 +02:00
Las Zenow
3337ffaf82 Fix reader for new books 2012-09-02 23:32:17 +02:00
Las Zenow
e7adec0988 go fmt code 2012-08-31 00:24:42 +02:00
Las Zenow
45b2d47bd5 Using iframes for reading books 2012-08-30 20:49:58 +02:00
Las Zenow
c81992de2c The pev page can be the first one 2012-08-28 16:36:54 +02:00
Las Zenow
2febea7d90 In and Out have to be arrays 2012-08-28 15:16:22 +02:00
Las Zenow
9a3e50b193 Handle the nesting properly 2012-08-28 12:24:11 +02:00
Las Zenow
de721f5ff3 Nested chapter list 2012-08-28 11:50:08 +02:00
Las Zenow
5b4e0fb02e Use the chapters for the next and prev links 2012-08-28 11:19:53 +02:00
Las Zenow
6b0c8caed3 Add chapters to book reader 2012-08-28 10:38:00 +02:00
Las Zenow
a888d1ac3a Reach the last chapter while reading 2012-08-28 10:02:44 +02:00
Las Zenow
f35947c644 Upload multiple files 2012-08-22 10:33:57 +02:00
Las Zenow
1ed4de177f Check valid user on /readnew/ 2012-08-21 21:27:19 +02:00
Las Zenow
88b4809e99 Use Ids for address no titles 2012-08-21 21:22:56 +02:00
Las Zenow
5d9093700d Read books on moderation 2012-08-21 20:54:57 +02:00
Las Zenow
3b096b4aaa Add xml to reconice extensions 2012-08-21 18:30:44 +02:00
Las Zenow
2deac073ab Reconice xhtml as html 2012-08-21 18:28:21 +02:00
Las Zenow
93003534e9 Simple epub reader 2012-08-21 18:15:21 +02:00