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)
|
||||
|
||||
## 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
|
||||
* Fix up comments display
|
||||
* custom 404 page
|
||||
* Query caching
|
||||
## Other features
|
||||
* Add support for postgres dbs
|
||||
* Report Feature and Moderation System
|
||||
* blocking upload of torrent hashes
|
||||
* API improvement
|
||||
* Scraping
|
||||
* Accounts and Registration System
|
||||
|
|
|
@ -19,7 +19,7 @@ type Config struct {
|
|||
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{
|
||||
"sqlite3": true,
|
||||
|
|
|
@ -24,8 +24,16 @@ nav#mainmenu a {
|
|||
|
||||
div#container {
|
||||
padding-top: 1.25em;
|
||||
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 {
|
||||
background-color: #ececec;
|
||||
|
|
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 "contclass"}}cont-home{{end}}
|
||||
{{define "content"}}
|
||||
<div class="blockBody">
|
||||
<nav class="torrentNav" aria-label="Page navigation">
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
<!-- top padding -->
|
||||
<div style="padding-top: 10rem"></div>
|
||||
|
||||
<div class="container" id="container">
|
||||
<div class="container {{block "contclass" .}}generic{{end}}" id="container">
|
||||
{{if not .Search.HideAdvancedSearch}}
|
||||
<div class="blockBody" style="text-align:center">
|
||||
<font size="4.5">Advanced Search</font><br />
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{{define "title"}}{{.Torrent.Name}}{{end}}
|
||||
{{define "contclass"}}cont-view{{end}}
|
||||
{{define "content"}}
|
||||
<div class="blockBody">
|
||||
{{with .Torrent}}
|
||||
|
|
Référencer dans un nouveau ticket