Move to gitlab
This commit is contained in:
parent
a1ef113ced
commit
08ccdaf27d
18 changed files with 35 additions and 53 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
trantor.git
|
||||
trantor
|
||||
/store/
|
||||
tools/adduser/adduser
|
||||
tools/update/update
|
||||
|
|
42
README
42
README
|
@ -2,9 +2,9 @@ Imperial Library of Trantor
|
|||
|
||||
The Imperial Library of Trantor (also known as Galactic Library) is a repository management system of ebooks on ePub format.
|
||||
|
||||
You can check out the main development branch from Gitorious at:
|
||||
You can check out the main development branch from GitLab at:
|
||||
|
||||
https://gitorious.org/trantor/
|
||||
https://gitlab.com/trantor/
|
||||
|
||||
(We still in pre-beta fase)
|
||||
|
||||
|
@ -34,7 +34,7 @@ Yo also need to install go dependences:
|
|||
|
||||
Now you can install Trantor itself:
|
||||
|
||||
# go get -tags prod git.gitorious.org/trantor/trantor.git
|
||||
# go get -tags prod gitlab.com/trantor/trantor
|
||||
|
||||
You can run trantor in /srv/www/trantor i.e. For this:
|
||||
|
||||
|
@ -42,51 +42,33 @@ You can run trantor in /srv/www/trantor i.e. For this:
|
|||
|
||||
# cd /srv/www/trantor
|
||||
|
||||
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/templates/ templates
|
||||
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/css/ css
|
||||
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/js/ js
|
||||
# ln -s /usr/lib/go/src/pkg/git.gitorious.org/trantor/trantor.git/img/ img
|
||||
# ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/templates/ templates
|
||||
# ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/css/ css
|
||||
# ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/js/ js
|
||||
# ln -s $GOPATH/src/pkg/gitlab.com/trantor/trantor/img/ img
|
||||
|
||||
Now you can run it:
|
||||
# /usr/lib/go/bin/trantor.git
|
||||
# $GOPATH/bin/trantor
|
||||
|
||||
Go to your browser to: http://localhost:8080
|
||||
|
||||
=== For developers ===
|
||||
|
||||
Login to gitorius: https://gitorious.org/login
|
||||
and clone your own Trantor: https://gitorious.org/trantor/trantor/clone
|
||||
|
||||
In your shell
|
||||
$ git clone git://gitorious.org/~yourname/trantor/yournames-trantor.git
|
||||
$ cd yournames-trantor
|
||||
|
||||
You can edit config.go if you want to change the port and other configuration, by default is 8080
|
||||
Edit config.go if you want to change the port and other configuration, by default is 8080
|
||||
|
||||
Now you can compile Trantor:
|
||||
$ go build -tags prod
|
||||
(remove '-tags prod' for a faster compilation without language guessing)
|
||||
|
||||
Now you can run it:
|
||||
$ ./yourname-trantor
|
||||
$ ./trantor
|
||||
|
||||
Go to your browser to: http://localhost:8080
|
||||
|
||||
== Bugs ==
|
||||
|
||||
Please, report bugs to zenow@tormail.org
|
||||
|
||||
== Patches ==
|
||||
Make your enhacements and sent it by git:
|
||||
|
||||
$ git commit -m "comment"
|
||||
$ git remote set-url --push origin git@gitorious.org:~yournames/trantor/alfinals-trantor.git
|
||||
$ git push origin master
|
||||
$ git push
|
||||
|
||||
Go to "merge-requests"
|
||||
https://gitorious.org/trantor/yournames-trantor/merge_requests/new
|
||||
|
||||
Please, report bugs in the gitlab issue tracker:
|
||||
https://gitlab.com/trantor/trantor/issues
|
||||
|
||||
== Rights ==
|
||||
|
||||
|
|
2
admin.go
2
admin.go
|
@ -7,8 +7,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.gitorious.org/trantor/trantor.git/database"
|
||||
"github.com/gorilla/mux"
|
||||
"gitlab.com/trantor/trantor/database"
|
||||
)
|
||||
|
||||
func deleteHandler(h handler) {
|
||||
|
|
4
cover.go
4
cover.go
|
@ -15,10 +15,10 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"git.gitorious.org/go-pkg/epubgo.git"
|
||||
"git.gitorious.org/trantor/trantor.git/storage"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/meskio/epubgo"
|
||||
"github.com/nfnt/resize"
|
||||
"gitlab.com/trantor/trantor/storage"
|
||||
)
|
||||
|
||||
func coverHandler(h handler) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"io/ioutil"
|
||||
"strings"
|
||||
|
||||
"git.gitorious.org/go-pkg/epubgo.git"
|
||||
"github.com/meskio/epubgo"
|
||||
"github.com/rainycape/cld2"
|
||||
)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"git.gitorious.org/go-pkg/epubgo.git"
|
||||
"github.com/meskio/epubgo"
|
||||
)
|
||||
|
||||
func GuessLang(epub *epubgo.Epub, orig_langs []string) []string {
|
||||
|
|
2
news.go
2
news.go
|
@ -3,7 +3,7 @@ package main
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"git.gitorious.org/trantor/trantor.git/database"
|
||||
"gitlab.com/trantor/trantor/database"
|
||||
)
|
||||
|
||||
type newsData struct {
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.gitorious.org/go-pkg/epubgo.git"
|
||||
"git.gitorious.org/trantor/trantor.git/database"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/meskio/epubgo"
|
||||
"gitlab.com/trantor/trantor/database"
|
||||
)
|
||||
|
||||
type chapter struct {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.gitorious.org/trantor/trantor.git/database"
|
||||
"gitlab.com/trantor/trantor/database"
|
||||
)
|
||||
|
||||
type searchData struct {
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"encoding/hex"
|
||||
"net/http"
|
||||
|
||||
"git.gitorious.org/trantor/trantor.git/database"
|
||||
"github.com/gorilla/securecookie"
|
||||
"github.com/gorilla/sessions"
|
||||
"gitlab.com/trantor/trantor/database"
|
||||
)
|
||||
|
||||
var sesStore = sessions.NewCookieStore(securecookie.GenerateRandomKey(64))
|
||||
|
|
4
stats.go
4
stats.go
|
@ -8,9 +8,9 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"git.gitorious.org/trantor/trantor.git/database"
|
||||
"git.gitorious.org/trantor/trantor.git/storage"
|
||||
"github.com/gorilla/mux"
|
||||
"gitlab.com/trantor/trantor/database"
|
||||
"gitlab.com/trantor/trantor/storage"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"time"
|
||||
|
||||
"git.gitorious.org/trantor/trantor.git/database"
|
||||
"gitlab.com/trantor/trantor/database"
|
||||
)
|
||||
|
||||
func InitTasks(db *database.DB) {
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"net/http"
|
||||
"time"
|
||||
|
||||
"git.gitorious.org/trantor/trantor.git/database"
|
||||
"gitlab.com/trantor/trantor/database"
|
||||
)
|
||||
|
||||
type Status struct {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<p>The Imperial Library of Trantor it's in beta-status. We are working to provide a good user experience, but it's still in early development.</p>
|
||||
|
||||
<p><b>Any help is welcome</b>. You can write us comments to our email address (zenow@riseup.net), upload your epubs, download our <a href="https://gitorious.org/trantor">source code</a> hack it and send us patches, ...</p>
|
||||
<p><b>Any help is welcome</b>. You can write us comments to our email address (zenow@riseup.net), upload your epubs, download our <a href="https://gitlab.com/trantor">source code</a> hack it and send us patches, ...</p>
|
||||
|
||||
<h4>Copyright</h4>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<footer class="container footer">
|
||||
<hr />
|
||||
<p><small>Chief Librarian: Las Zenow <zenow@riseup.net><br />
|
||||
Fork the source code from <a href="https://gitorious.org/trantor">gitorious</a></small>.</p>
|
||||
Fork the source code from <a href="https://gitlab.com/trantor">gitlab</a></small>.</p>
|
||||
</footer>
|
||||
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<p>With <a href="https://en.wikipedia.org/wiki/RSS">RSS</a> you can use your <a href="https://en.wikipedia.org/wiki/Comparison_of_feed_aggregators">feed reader</a> to see the lattest updates on a certain search or the news of the library. To get the RSS url of some search just click on the <img src="/img/feed.png" />.</p>
|
||||
|
||||
<h6>hummin</h6>
|
||||
<p>For the command line geeks there is a <abbr title="command line interface">cli</abbr> client: <a href="https://gitorious.org/trantor/hummin">hummin</a></p>
|
||||
<p>For the command line geeks there is a <abbr title="command line interface">cli</abbr> client: <a href="https://gitlab.com/trantor/hummin">hummin</a></p>
|
||||
|
||||
<p>To install it in a debian based system (like ubuntu) just do:
|
||||
<pre>
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
|
||||
"git.gitorious.org/trantor/trantor.git/database"
|
||||
"git.gitorious.org/trantor/trantor.git/storage"
|
||||
"github.com/gorilla/mux"
|
||||
"gitlab.com/trantor/trantor/database"
|
||||
"gitlab.com/trantor/trantor/storage"
|
||||
)
|
||||
|
||||
type statusData struct {
|
||||
|
|
|
@ -11,9 +11,9 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"git.gitorious.org/go-pkg/epubgo.git"
|
||||
"git.gitorious.org/trantor/trantor.git/database"
|
||||
"git.gitorious.org/trantor/trantor.git/storage"
|
||||
"github.com/meskio/epubgo"
|
||||
"gitlab.com/trantor/trantor/database"
|
||||
"gitlab.com/trantor/trantor/storage"
|
||||
)
|
||||
|
||||
func InitUpload(database *database.DB, store *storage.Store) {
|
||||
|
|
Reference in a new issue