Merge branch 'master' of github.com:ewhal/nyaa
Cette révision appartient à :
révision
78576c2629
7 fichiers modifiés avec 18 ajouts et 3 suppressions
|
@ -1,3 +1,5 @@
|
||||||
|
![nyanpasu~](https://a.safe.moe/dNEEh.png)
|
||||||
|
|
||||||
# Nyaa replacement [![Build Status](https://travis-ci.org/ewhal/nyaa.svg?branch=master)](https://travis-ci.org/ewhal/nyaa)
|
# Nyaa replacement [![Build Status](https://travis-ci.org/ewhal/nyaa.svg?branch=master)](https://travis-ci.org/ewhal/nyaa)
|
||||||
|
|
||||||
## Motivation
|
## Motivation
|
||||||
|
@ -40,8 +42,11 @@ The provided unit file uses options directly; if you prefer a config file, do th
|
||||||
* Make sukebei db schema compatible with current code
|
* Make sukebei db schema compatible with current code
|
||||||
* Fix up comments display
|
* Fix up comments display
|
||||||
* custom 404 page
|
* custom 404 page
|
||||||
|
* Query caching
|
||||||
## Other features
|
## Other features
|
||||||
|
* Add support for postgres dbs
|
||||||
* Report Feature and Moderation System
|
* Report Feature and Moderation System
|
||||||
|
* blocking upload of torrent hashes
|
||||||
* API improvement
|
* API improvement
|
||||||
* Scraping
|
* Scraping
|
||||||
* Accounts and Registration System
|
* Accounts and Registration System
|
||||||
|
|
|
@ -19,7 +19,7 @@ type Config struct {
|
||||||
DBParams string `json: "db_type"`
|
DBParams string `json: "db_type"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var Defaults = Config{"localhost", 9999, "sqlite3", "./nyaa.db"}
|
var Defaults = Config{"localhost", 9999, "sqlite3", "./nyaa.db?cache_size=50"}
|
||||||
|
|
||||||
var allowedDatabaseTypes = map[string]bool{
|
var allowedDatabaseTypes = map[string]bool{
|
||||||
"sqlite3": true,
|
"sqlite3": true,
|
||||||
|
|
|
@ -24,7 +24,15 @@ nav#mainmenu a {
|
||||||
|
|
||||||
div#container {
|
div#container {
|
||||||
padding-top: 1.25em;
|
padding-top: 1.25em;
|
||||||
background: white url(/img/renchon.png) no-repeat;
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#container.cont-home {
|
||||||
|
background: white url(/img/renchon.png) no-repeat;
|
||||||
|
}
|
||||||
|
div#container.cont-view {
|
||||||
|
background: white url(/img/renchon.png) no-repeat;
|
||||||
|
background-size: 61px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
BIN
img/renchon.png
BIN
img/renchon.png
Fichier binaire non affiché.
Avant Largeur: | Hauteur: | Taille: 18 Kio Après Largeur: | Hauteur: | Taille: 18 Kio |
|
@ -1,4 +1,5 @@
|
||||||
{{define "title"}}Home{{end}}
|
{{define "title"}}Home{{end}}
|
||||||
|
{{define "contclass"}}cont-home{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<div class="blockBody">
|
<div class="blockBody">
|
||||||
<nav class="torrentNav" aria-label="Page navigation">
|
<nav class="torrentNav" aria-label="Page navigation">
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
<!-- top padding -->
|
<!-- top padding -->
|
||||||
<div style="padding-top: 10rem"></div>
|
<div style="padding-top: 10rem"></div>
|
||||||
|
|
||||||
<div class="container" id="container">
|
<div class="container {{block "contclass" .}}generic{{end}}" id="container">
|
||||||
{{if not .Search.HideAdvancedSearch}}
|
{{if not .Search.HideAdvancedSearch}}
|
||||||
<div class="blockBody" style="text-align:center">
|
<div class="blockBody" style="text-align:center">
|
||||||
<font size="4.5">Advanced Search</font><br />
|
<font size="4.5">Advanced Search</font><br />
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{{define "title"}}{{.Torrent.Name}}{{end}}
|
{{define "title"}}{{.Torrent.Name}}{{end}}
|
||||||
|
{{define "contclass"}}cont-view{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<div class="blockBody">
|
<div class="blockBody">
|
||||||
{{with .Torrent}}
|
{{with .Torrent}}
|
||||||
|
|
Référencer dans un nouveau ticket