Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

35 commits

Auteur SHA1 Message Date
akuma06 5991a21818 First batch of changes for the refactor (#1078)
* First batch of changes for the refactor

Added the support of gin in routes and other services/utils
Begining implementation of JetHTML

* Remove os folder

* Move scrapers to own repo

* Second batch of changes

All .jet.html are the working templates.
You can now test this PR, the index Page and upload works. If you want to complete the other html templates, you're welcome

* Move captcha to util

* Move uploadService to utils

* Use govalidator instead of regex

* Third batch of changes

All the front end should as previously.
I also fixed some minor things unrelated to the refactor (mostly style issues on static pages)
Now errors can be accessed by importing the "errors" helpers and using the `yield errors(name="xxx")` command in templates.
Same for infos.
Templates are now more hierarchized with a base template "base.jet.html" which is extended depending on the context in "index_site" or "index_admin" layouts. Those layouts are extended than in every pages.
Other helpers are captcha to render a captcha `yield captcha(captchaid="xxx")`
And also csrf, with the command `yield csrf_field()`
To translate, you don't have anymore to do `call $.T "xxx"`, you just have to do `T("xxx")`.

Pages for the website part are in folders in the folder "templates/site". Pages for the admin part are in "templates/admin". Layouts are separated in "templates/layouts". Helpers and menu are in "templates/layouts/helpers" and "templates/layouts/menu". Error pages should be put in "templates/errors"

* Added test on templates

When adding a new template, you have to tell to template_test.go, the context of the new template (if it doesn't use the common context)

* Panel admin works

Now the templating part should work. The PR can now be fully tested.

I think we should push the templating PR  and do the routes/controllers/removal of services in another branch. So we know that this one is functional

* Updated dependencies

* Fixed test for modelhelper

* Fix testing for commentlist

* Fix travis :')

* Just renamed router and removed network

* Applying same SEO fix

* Update form_validator.go

* Added back regexp package
2017-06-28 21:42:38 +10:00
tomleb 991fc73c4e Update elasticsearch index playbooks (#892)
* Update elasticsearch index swapping playbooks

* Add ansible syntax check

* Document index swapping

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml
2017-06-04 10:28:26 +10:00
akuma06 3a4feafd91 Forgot an equal sign for travis 2017-05-31 12:26:39 +02:00
akuma06 9e0424ec5e Add Build version
Main version can be set in config/default_config.yml
Build version need to be set by build command: go build -ldflags "-X
main.buildversion=$(date -u +.%Y%m%d.%H%M%S)"
Or by using package.sh
Or by using the godep command: godep go build -ldflags "-X
main.buildversion=$(date -u +.%Y%m%d.%H%M%S)"
2017-05-31 12:20:06 +02:00
akuma06 a41f938cec Add Godep support (#758)
As we have seen, dependencies version can prevent the build. We should
user lock versions on dependencies that we know work:
* Packages are vendored
* Add Godep support
* Added addtional install step in readme
* Fix travis build error
2017-05-26 13:07:22 +02:00
PantsuDev 70f87e7aac finish repo transfer 2017-05-17 15:58:40 +10:00
Atvaark b12e812b36 Add database logmode to the config
This allows users to change the default logging verbosity (errors)
to either *detailed* (prints SQL statements) or *silent*.
Also added support for using a custom logger function.

- Fixed the gorm unit test that checks the automigrations
  They will actually fail if any errors were logged now.
- Added a postgres unit test
  Currently disabled because it would need a running local
  postgres db and  a change to the .travis.yml file to work
  inside the CI build.
2017-05-11 22:28:09 +02:00
Eliot Whalan 997b92dd7e Unbork travis 2017-05-08 07:52:28 +10:00
Eliot Whalan 4cf64f259e Merge branch 'master' into travis-auto-deps 2017-05-07 20:17:28 +10:00
Eliot Whalan 716a1c1f65 Update .travis file 2017-05-07 20:12:52 +10:00
bakape 1a3acbac44 travis: Automatically download deps 2017-05-07 12:40:58 +03:00
bakape a12b177d12 Merge branch 'master' of https://github.com/ewhal/nyaa into captchas 2017-05-07 12:18:09 +03:00
bakape 5a55008a16 Merge branch 'master' of https://github.com/ewhal/nyaa into captchas 2017-05-07 12:08:44 +03:00
Eliot Whalan 7ae782f675 Fix up all go gets 2017-05-07 19:04:51 +10:00
Eliot Whalan fa6ee5ef4c Add missing depend 2017-05-07 19:01:51 +10:00
Eliot Whalan 5981f4df14 Remove unneeded step 2017-05-07 18:58:54 +10:00
Eliot Whalan 760167e8f0 Try new cross-compile package 2017-05-07 18:56:14 +10:00
bakape 8786db1540 Internal IP-specific captchas 2017-05-07 11:25:09 +03:00
Eliot Whalan 137552b61b Forgot sudo 2017-05-07 17:36:32 +10:00
Eliot Whalan 443a850827 Add in cross-compiling support? 2017-05-07 17:34:38 +10:00
Eliot Whalan a1ba91aae3 Fix travis 2017-05-07 17:17:20 +10:00
Eliot Whalan 61b98ebf0b Test releasing for all platforms 2017-05-07 17:07:23 +10:00
tomleb 6d9367222f Merge branch 'master' of https://github.com/ewhal/nyaa into deployment 2017-05-06 19:52:54 -04:00
keo 14dfbc91ca Update .travis.yml 2017-05-07 02:49:20 +03:00
tomleb 4d5adc9402 Merge branch 'master' of https://github.com/ewhal/nyaa into deployment 2017-05-06 19:02:27 -04:00
tomleb 97471bc75d Fix travis build 2017-05-06 19:02:02 -04:00
keo cae4cc6349 will this work? 2017-05-07 01:57:56 +03:00
Anthony D'Alessandro 72bb97e20d update travis file to generate 2017-05-06 18:53:48 -04:00
bakape 069fec2027 Add dependency to Travis 2017-05-07 00:40:21 +03:00
akuma06 773ce60848 Fixed Typo 2017-05-06 21:37:10 +02:00
akuma06 61ac1bb7c3 Added tool for sending emails 2017-05-06 20:07:03 +02:00
akuma06 46c0025ee3 Forgot to add go get 2017-05-05 15:13:45 +02:00
Owner 72fc788d71 Travis rss feed dependency. 2017-05-04 21:58:05 +02:00
Eliot Whalan e6abfc4df5 fix up index error and update travis deployment 2017-05-04 15:01:29 +10:00
Duc Tran 93f7135802 Add Travis CI
Add Travis CI automatically build
2017-05-04 11:06:00 +07:00