Las Zenow
9d1f1ad5c0
Move all the code to a lib folder
2016-05-02 21:41:40 -04:00
Las Zenow
6c08f284b9
Use diferent titles per page
...
* Related: #7
2016-01-28 18:13:26 -05:00
Las Zenow
09536bd0d8
Refactor the epub parser to it's own module
2015-04-21 21:55:18 -04:00
Las Zenow
08ccdaf27d
Move to gitlab
2015-04-21 21:32:01 -04:00
Las Zenow
efcc9cdf8e
Use cld2 for language guessing
2015-01-22 23:02:00 -06:00
Las Zenow
562bc157ee
Normalize includes
2014-08-30 13:17:50 -05:00
Las Zenow
c132c0fdf6
Refactor templates to make take care of fmt
2014-08-30 01:25:16 -05:00
Las Zenow
f4690b2bba
Move files to a local folder
2014-08-21 19:57:38 -05:00
Las Zenow
93d31b53fe
Move the query parsing to the database
...
This implies to move the tokeinzation as well.
2014-07-02 20:58:00 -05:00
Las Zenow
59eaa4e2aa
Refactor database
2014-06-29 19:41:29 -05:00
Las Zenow
f3ef9b6675
Add spaces to log messages
2014-02-11 13:13:43 +01:00
Las Zenow
bbbd35e928
Use seelog instead of the default log pkg
2014-02-11 11:20:38 +01:00
Las Zenow
41b376992a
Database stops being a global variable
...
With it now every handler creates it's own copy of the session.
2013-09-23 16:27:31 +02:00
Las Zenow
9e4b92772c
Add filesize to the books collection
2013-09-18 23:56:49 +02:00
Las Zenow
18ad2a25c0
Don't fail if no cover
2013-07-23 22:41:04 +02:00
Las Zenow
9f06d24602
Check error return
2013-07-23 22:40:35 +02:00
Las Zenow
c01c465330
Store properly the book on the database
2013-07-18 21:53:35 +02:00
Las Zenow
bf0480868d
Fix upload problems
2013-07-16 22:56:48 +02:00
Las Zenow
137357cd12
Upload files on a separate goroutine
2013-05-03 00:43:26 +02:00
Las Zenow
67c90e8096
Add the epub extension
2013-04-23 01:04:06 +02:00
Las Zenow
206775fa6a
Store statistics on mongodb
2013-04-22 23:28:00 +02:00
Las Zenow
5794a1fe1b
Reset the reader to store it on gridfs
2013-04-16 03:28:05 +02:00
Las Zenow
d8bfcb2ef2
Split post and get handlers for upload
2013-04-16 02:34:15 +02:00
Las Zenow
fc50ba5fd6
Use title as filename on gridfs
2013-04-16 02:33:40 +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
66a4a2de4c
Don't hardcode paths
2013-03-03 02:39:25 +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
2e043af31a
Refactor the admin/store code
2012-10-28 17:22:23 +01:00
Las Zenow
85111946ed
Refactoring code
...
Take all the storing stuff out of upload file
2012-10-28 17:04:38 +01:00
Las Zenow
53150466a6
go fmt
2012-10-26 13:44:08 +02:00
Las Zenow
d87351d946
Clean up the code
2012-10-24 22:36:20 +02: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
de0fd4227c
Remove '/' from titles for use them on paths
2012-09-02 23:07:21 +02:00
Las Zenow
f89416fbf6
Detect image tags for cover
2012-08-25 22:02:40 +02:00
Las Zenow
e5d96ef7b7
Move constants to a config file
2012-08-22 19:48:02 +02:00
Las Zenow
710a84dcba
Clean &.*; tags
2012-08-22 10:42:15 +02:00
Las Zenow
e209901fef
Use arrays properly when known the lenght
2012-08-22 10:37:48 +02:00
Las Zenow
f35947c644
Upload multiple files
2012-08-22 10:33:57 +02:00
Las Zenow
921cea3efb
Reorganize code for the taglist
2012-08-21 11:35:06 +02:00
Las Zenow
0e0e33d364
Remove upload standalone program
...
All the functionality is move to the web page
2012-08-20 15:38:13 +02:00
Las Zenow
ff6d44d821
Moderate incoming epubs
2012-08-20 14:25:18 +02:00
Las Zenow
e68f41445e
Add notifications
2012-08-19 02:29:34 +02:00
Las Zenow
c513344169
Sessions with gorilla
2012-08-18 02:06:43 +02:00
Las Zenow
9f1204db35
Run go fmt
2012-08-15 15:12:59 +02:00
Las Zenow
3db6231762
Use clousures for the http handlers
2012-08-15 13:58:16 +02:00
Las Zenow
beb032eddb
Check if the filename exists
2012-08-15 12:29:54 +02:00
Las Zenow
6a656eca31
Inform the user if the upload was success
2012-08-15 12:11:39 +02:00
Las Zenow
b9e39cf57f
Upload documents
2012-08-15 11:40:19 +02:00