bakape
7af373b849
cache: Integrate with home handler and add size flag
2017-05-10 13:06:32 +03:00
Chris MacLeod
c9b72206a5
Consistency, formatting, error checking, cleanup, and a couple bug fixes ( #245 )
...
* Checkpoint: it builds
The config, db, model, network, os, and public packages have had some
fixes to glaringly obvious flaws, dead code removed, and stylistic
changes.
* Style changes and old code removal in router
Router needs a lot of work done to its (lack of) error handling.
* Dead code removal and style changes
Now up to util/email/email.go. After I'm finished with the initial sweep
I'll go back and fix error handling and security issues. Then I'll fix
the broken API. Then I'll go through to add documentation and fix code
visibility.
* Finish dead code removal and style changes
Vendored libraries not touched. Everything still needs security fixes
and documentation. There's also one case of broken functionality.
* Fix accidental find-and-replace
* Style, error checking, saftey, bug fix changes
* Redo error checking erased during merge
* Re-add merge-erased fix. Make Safe safe.
2017-05-09 21:34:40 -05:00
PantsuDev
9e09dff4d4
Merge pull request #223 from ElegantMonkey/load-translations
...
Load translations from folder
2017-05-10 06:45:33 +10:00
ElegantMonkey
960ef9babf
Load translations from folder
2017-05-09 14:46:16 -03:00
bakape
c46c386981
Better DB error handling
2017-05-09 20:23:21 +03:00
Jeff
18d6ad3992
make rss fast again :^)
2017-05-09 11:07:42 -04:00
akuma06
be6e573465
Moved translations in appropriate directory
2017-05-09 04:12:48 +02:00
Eliot Whalan
eca5079080
Optimize sql queries
2017-05-08 23:50:18 +10:00
akuma06
efb12315a8
Merge pull request #161 from majestrate/i2p-listener
...
optionally provide i2p connectivity
2017-05-08 03:34:19 +02:00
sfan5
ae89508f23
Search case-sensitivity hotfix
2017-05-07 23:01:06 +02:00
Jeff Becker
37350a1233
add initial optional i2p connectivity
2017-05-07 15:51:37 -04:00
sfan5
9b6b25e7df
Allow storage of uploaded .torrent files (disabled by default)
2017-05-07 15:57:24 +02:00
Jeff Becker
1e567c74ca
wire up signal handlers for sighup
2017-05-07 08:07:20 -04:00
akuma06
7ffde7a8e1
Merge branch 'master' into master
2017-05-07 02:44:49 +02:00
akuma06
f88b4656a1
Fixed Typo + Added multi language support
...
Multi language for User package
2017-05-07 02:32:32 +02:00
bakape
919e6fc659
Log server start and address
...
Useful, when port or host is not the default or knowing, when the server started, with chained comands like `go build && ./nyaa`.
2017-05-07 02:58:15 +03:00
akuma06
dc050d29fc
Updated my own branch
2017-05-06 17:53:17 +02:00
ayame-git
5c4d1da8b7
fixed for good now
2017-05-06 21:27:26 +03:00
ayame-git
f7127ab3be
oops
2017-05-06 20:55:27 +03:00
ayame-git
1a509f012d
fixed parameters
2017-05-06 20:52:41 +03:00
akuma06
a456a5f9f2
Fixed parameters through command line for DB
...
config is now a singleton
can use config.GetInstance() to know the context
2017-05-06 17:37:56 +02:00
ayame-git
d6ef924fa3
basic upload
2017-05-06 11:36:37 +03:00
Eliot Whalan
377b53f33a
Merge branch 'master' of git://github.com/sazuna/nyaa into sazuna-master
2017-05-06 08:33:56 +10:00
sazuna
c007dbd368
RSS feed with common search
2017-05-05 17:48:18 -03:00
akuma06
6b1196f12c
Merge branch 'master' of https://github.com/ewhal/nyaa
...
Conflicts:
main.go
Resolved conflicts with new merge
2017-05-05 22:30:56 +02:00
keo
e270571db1
Merge pull request #67 from sfan5/style123
...
Appearance changes (mostly)
2017-05-05 22:38:41 +03:00
Lietzu
fda3a54e85
Update main.go
2017-05-05 12:46:54 -04:00
sfan5
49dbadbe5b
Add links to /view/1234 page in RSS feed
2017-05-05 18:43:48 +02:00
Lietzu
d9a510f5d5
Update main.go
2017-05-05 12:43:36 -04:00
sfan5
19d6a53b7d
Hide advanced search on FAQ page
2017-05-05 18:06:43 +02:00
akuma06
9739610311
Separated Routes and handler from Main
...
Everything is in the router folder in different file
2017-05-05 16:39:15 +02:00
Lietzu
28450fa576
Merge branch 'master' into master
2017-05-05 10:38:07 -04:00
Lietzu
62a72b0b35
Remake search is now Filter Remakes like old nyaa
2017-05-05 10:31:24 -04:00
akuma06
a70551a986
Re added templates files function for search
...
Removed them when I've resolved the conflicts
2017-05-05 15:23:49 +02:00
akuma06
ade17dad04
Merge branch 'master' of https://github.com/ewhal/nyaa
...
Conflicts:
main.go
2017-05-05 15:08:02 +02:00
akuma06
f6709f9ace
Merge branch 'master' of https://github.com/ewhal/nyaa
...
Conflicts:
main.go
models.go
2017-05-05 14:51:19 +02:00
akuma06
9586f1e731
Rearranged Files
...
Configurations are separated in files in the folder config
Connection to database by a package to import when needed
Models will be in a model package for better maintenance
Services access to the models
Utils are tools or functions that can be used anywhere
main.go cleaned a bit and other files modifications are there for the above modifications
2017-05-05 14:20:51 +02:00
Adelyne Maulideau
d505e4835a
Configuration through command line and/or a file.
...
The configuration file is in JSON. If no option is specified,
dev-friendly defaults are used.
2017-05-05 14:18:53 +02:00
Eliot Whalan
b611e5eb2a
Merge pull request #56 from chaiknees/master
...
RSS feeds for specific search queries.
2017-05-05 21:41:53 +10:00
Owner
6304c447fd
RSS feeds for specific search queries.
2017-05-05 13:37:22 +02:00
sfan5
e5247affbd
Reorder trackers
...
Many torrents (notably: HorribleSubs) use coppersurfer as their primary tracker,
knowing this it makes sense to put it first.
2017-05-05 13:07:18 +02:00
sfan5
ef9e37c3ac
Move Search to different template file
...
(also re-add accidentally deleted catimg)
2017-05-05 12:01:17 +02:00
Eliot Whalan
7b0c60f594
Merge pull request #50 from akuma06/master
...
Default Values for Search form
2017-05-05 19:07:45 +10:00
sfan5
a50c1548a7
Make search less retarded
2017-05-05 11:04:28 +02:00
akuma06
9556ea5ae2
Default Values for Search form
...
Added a new Variable SearchForm as an argument to replace the list of arguments (cat,order,status,sort,query)
Added a construction function for it so we can have default values (NewSearchForm() output a SearchForm{} with default values)
Fixed the view template so we show one torrent and not a list
Added a ViewTemplateVariables for the page
2017-05-05 10:52:08 +02:00
Duc Tran
1fd2c9eb8e
Add new tracker for nyaa
...
Add new tracker for nyaa, planning to use and maintaining it permanently
2017-05-05 14:45:10 +07:00
Eliot Whalan
6adce8eda9
Run go fmt and add swap files to gitignore
2017-05-05 14:07:45 +10:00
akuma06
6f00348cbc
Merge branch 'master' of https://github.com/ewhal/nyaa.git
...
Conflicts:
main.go
models.go
templates/index.html
Saw that some previous modifications were lost due to the previous merge :)
2017-05-05 05:04:04 +02:00
Eliot Whalan
404a5a2244
Start work on descriptions
2017-05-05 11:57:08 +10:00
akuma06
634f48a748
Big Update !
...
Design copied from NyaaTorrents
Reorganised some sql queries
Added dynamic navigation within torrents
Added nesting templates support
Added more variables/functions imported in the templates
Separated templates functions and variables in other files for more clarity
2017-05-05 03:53:38 +02:00
Eliot Whalan
a09c87dc60
fix up viewhandler struct
2017-05-05 11:34:49 +10:00
Eliot Whalan
e9d0138b73
Merge branch 'master' into master
2017-05-05 11:31:47 +10:00
ayame-git
90f33bcb7a
fixed typo
2017-05-05 07:30:30 +03:00
ayame-git
d8cfa78b4d
basic sort
2017-05-05 07:24:58 +03:00
Eliot Whalan
c513e926bb
Add view page
2017-05-05 10:54:37 +10:00
Lietzu
d273671ab0
Configured models to match ilikecats' merged db, and expanded automigration
2017-05-04 18:52:46 -04:00
Lietzu
95dfbb50e8
Configured models to match ilikecats' merged db, and expanded automigration
2017-05-04 18:44:54 -04:00
Eliot Whalan
c99f1e6331
Merge pull request #19 from chaiknees/master
...
RSS feed for home page.
2017-05-05 08:21:07 +10:00
Evan
2b677f2bbc
=Updated models to match ilikecats' merged database
2017-05-04 18:18:27 -04:00
Owner
6939a7517d
RSS feed for home page.
2017-05-04 21:48:40 +02:00
akuma06
59f820a264
Updated Models.go (simplified + orderBy param)
...
Added a new main function to get Torrents with orderBy parameter
Added a new function to get all torrents with orderBy parameter
Simplifying the other function that get torrents so they pass through one main function that manage db requests.
Commented AutoMigrate functions, it emits warning when you execute it after having migrated once
2017-05-04 17:16:20 +02:00
ayame-git
0aad251837
updated rootHandler
2017-05-04 15:14:29 +03:00
ayame-git
76b8fe9ccb
status search and typo fixes
2017-05-04 15:01:07 +03:00
Eliot Whalan
938dc20bcd
Get category search working
2017-05-04 16:53:21 +10:00
Eliot Whalan
e6abfc4df5
fix up index error and update travis deployment
2017-05-04 15:01:29 +10:00
Eliot Whalan
bfd629adb3
hardcode css and js source for now
2017-05-04 14:03:43 +10:00
Eliot Whalan
0424068f72
Merge branch 'master' of git://github.com/akuma06/nyaa into akuma06-master
2017-05-04 13:38:11 +10:00
akuma06
fcf98f7b02
Added ORM Support, Models and cleaned up a bit the code
...
Changing from plain sql queries to GORM for better maintenance and stability
Use of Models for database tables and added JSON objects
Cleaned a bit the code and added some comments in the files
2017-05-04 05:28:42 +02:00
Eliot Whalan
8a0961fdd5
get faq page working
2017-05-04 12:29:22 +10:00
Eliot Whalan
a26b0809ab
Add faq handler
2017-05-04 09:15:20 +10:00
Eliot Whalan
9447e7594a
fix typo
2017-05-04 08:55:36 +10:00
Eliot Whalan
de2ffd2976
Use checkErr more
2017-05-04 08:54:07 +10:00
Eliot Whalan
24d97345ae
hopefully actually fix it
2017-05-04 08:35:21 +10:00
Eliot Whalan
f73c4dcb5f
Hopefully fix out of range issue
2017-05-04 08:20:50 +10:00
akuma06
11b22c82dd
Rearranged static Files and add number of item per page
...
No CSS and Javascript in the index.html, more easy to maintain the design and the code.
Added a select for the number of item to show and added the new parameter to the SQL query.
Total number of item determined by the SQL query and not fixed.
2017-05-03 19:45:18 +02:00
ayame-git
141ff1c769
maybe now?
2017-05-03 14:11:16 +03:00
ayame-git
fe91c56dcb
fixed pagination
2017-05-03 13:01:20 +03:00
ayame-git
017ff90fa0
status merged
2017-05-03 10:33:39 +03:00
ayame-git
bd1609a3a5
fuck git
2017-05-03 10:16:30 +03:00
ayame-git
a3a64a0c02
status
2017-05-03 09:58:06 +03:00
ayame-git
51504ee75d
typo
2017-05-03 08:01:13 +03:00
ayame-git
d6da5c37a0
search by categories
2017-05-03 07:59:27 +03:00
ayame-git
7e2bb70669
added magnet
2017-05-03 05:15:16 +03:00
Eliot Whalan
c0ba0d8e75
introduce order by
2017-05-02 23:50:18 +10:00
Eliot Whalan
c7561fd5b9
fix up magnet links
2017-05-02 22:00:57 +10:00
Eliot Whalan
b05d7915e8
fix up pagnation
2017-05-02 21:07:04 +10:00
Eliot Whalan
17b1917f0b
initial version
2017-05-02 20:39:53 +10:00