summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2021-07-13 08:34:56 +1000
committerJames Mills <prologic@shortcircuit.net.au>2021-07-13 08:34:56 +1000
commit5c2b402a8aaa2d1693f64f2ca6576597bf28b339 (patch)
tree72a938d57389fce3547aeb86fcbbcd3975bb80a9
parente743a9a425ee3197649aa2c4996b8566bf75896d (diff)
Fix import paths
-rw-r--r--.goreleaser.yml2
-rw-r--r--README.md8
-rw-r--r--app/app.go6
-rw-r--r--app/bitcask_store.go2
-rw-r--r--app/rice-box.go2
-rw-r--r--go.mod6
-rw-r--r--go.sum8
-rw-r--r--importers/vimeo_importer.go2
-rw-r--r--main.go2
-rw-r--r--media/video.go2
-rw-r--r--templates/base.html2
11 files changed, 21 insertions, 21 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index edb1170..0e54a2f 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -2,7 +2,7 @@
builds:
-
flags: -tags "static_build"
- ldflags: -w -X github.com/prologic/tube/.Version={{.Version}} -X github.com/prologic/tube/.Commit={{.Commit}}
+ ldflags: -w -X git.mills.io/prologic/tube/.Version={{.Version}} -X git.mills.io/prologic/tube/.Commit={{.Commit}}
env:
- CGO_ENABLED=0
goos:
diff --git a/README.md b/README.md
index 3f48ebf..862087f 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ Open http://127.0.0.1:8000/ in your Browser!
### Using a Binary
1. Go grab the latest binary from the
- [Releases](https://github.com/prologic/tube/releases) page for your
+ [Releases](https://git.mills.io/prologic/tube/releases) page for your
platform / operating system.
2. Extract the archive.
3. Run `./tube`
@@ -57,7 +57,7 @@ Where `DOCKER_MACHINE_IP` is the IP Address of your Docker Node.
### From Source
```#!sh
-$ git clone https://github.com/prologic/tube
+$ git clone https://git.mills.io/prologic/tube
$ cd tube
$ make
$ ./tube
@@ -73,7 +73,7 @@ similiar to the one you can find in the repo: [docker-compose.yml](docker-compos
Beyond this a "Production Deployment" is out-of-scope at this time for the
documentation being provided here. Please don't hesitate to file an
-[Issue](https://github.com/prologic/tube/issues/new) however for ask for help
+[Issue](https://git.mills.io/prologic/tube/issues/new) however for ask for help
or advice or contact the author directly!
## Configuration
@@ -232,7 +232,7 @@ and even fix tiny typos in documentation! Thank you and keep contributing!
You can find an [AUTHORS](/AUTHORS) file where we keep a list of contributors
to the project. If you contriibute a PR please consider adding your name there.
-There is also Github's own [Contributors](https://github.com/prologic/tube/graphs/contributors) statistics.
+There is also Github's own [Contributors](https://git.mills.io/prologic/tube/graphs/contributors) statistics.
[![](https://sourcerer.io/fame/prologic/prologic/tube/images/0)](https://sourcerer.io/fame/prologic/prologic/tube/links/0)
[![](https://sourcerer.io/fame/prologic/prologic/tube/images/1)](https://sourcerer.io/fame/prologic/prologic/tube/links/1)
diff --git a/app/app.go b/app/app.go
index 783cd7f..26a6405 100644
--- a/app/app.go
+++ b/app/app.go
@@ -20,9 +20,9 @@ import (
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
shortuuid "github.com/lithammer/shortuuid/v3"
- "github.com/prologic/tube/importers"
- "github.com/prologic/tube/media"
- "github.com/prologic/tube/utils"
+ "git.mills.io/prologic/tube/importers"
+ "git.mills.io/prologic/tube/media"
+ "git.mills.io/prologic/tube/utils"
log "github.com/sirupsen/logrus"
)
diff --git a/app/bitcask_store.go b/app/bitcask_store.go
index 0c6e897..2c957c7 100644
--- a/app/bitcask_store.go
+++ b/app/bitcask_store.go
@@ -6,7 +6,7 @@ import (
log "github.com/sirupsen/logrus"
- "github.com/prologic/bitcask"
+ "git.mills.io/prologic/bitcask"
)
// BitcaskStore ...
diff --git a/app/rice-box.go b/app/rice-box.go
index 68b6491..4920996 100644
--- a/app/rice-box.go
+++ b/app/rice-box.go
@@ -14,7 +14,7 @@ func init() {
Filename: "base.html",
FileModTime: time.Unix(1623157014, 0),
- Content: string("{{define \"base\"}}\r\n{{ $playing := .Playing }}\r\n{{ $config := .Config }}\r\n<!DOCTYPE html>\r\n<html lang=\"en\" prefix=\"og: https://ogp.me/ns#\">\r\n <head>\r\n <meta charset=\"utf-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/static/favicon.ico\">\r\n <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/theme.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/upload.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/import.css\">\r\n\r\n {{if $playing.ID}}\r\n <meta property=\"og:title\" content=\"{{$playing.Title}}\"/>\r\n <meta property=\"og:type\" content=\"video.other\"/>\r\n <meta property=\"og:image\" content=\"/t/{{ $playing.ID}}\"/>\r\n <meta property=\"og:video\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:video:url\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:video:secure_url\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:description\" content=\"{{$playing.Description}}\"/>\r\n <meta property=\"og:site_name\" content=\"Tube\"/>\r\n <meta property=\"og:url\" content=\"/v/{{ $playing.ID }}\"/>\r\n {{end}}\r\n\r\n {{ template \"stylesheets\" . }}\r\n {{ template \"css\" . }}\r\n <title>Tube</title>\r\n </head>\r\n<body>\r\n <nav>\r\n <a href=\"/\">Tube</a>\r\n <a class=\"centered\" style=\"text-indent: 0;\" href=\"/upload\">Upload</a>\r\n </nav>\r\n <main>\r\n {{template \"content\" .}}\r\n </main>\r\n <footer>\r\n <p><a href=\"https://github.com/prologic/tube\">Tube</a> is CopyRight © 2020 <a href=\"https://github.com/prologic\">James Mills / prologic</a>. All Rights Reserved.</p>\r\n {{if .Config.Copyright.Content}}<p>{{ $config.Copyright.Content }}</p>{{end}}\r\n </footer>\r\n</body>\r\n{{ template \"scripts\" . }}\r\n</html>\r\n{{end}}\r\n{{ define \"css\" }}{{ end }}\r\n{{ define \"scripts\" }}{{ end }}\r\n{{ define \"stylesheets\" }}{{ end }}\r\n"),
+ Content: string("{{define \"base\"}}\r\n{{ $playing := .Playing }}\r\n{{ $config := .Config }}\r\n<!DOCTYPE html>\r\n<html lang=\"en\" prefix=\"og: https://ogp.me/ns#\">\r\n <head>\r\n <meta charset=\"utf-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/static/favicon.ico\">\r\n <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/theme.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/upload.css\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/import.css\">\r\n\r\n {{if $playing.ID}}\r\n <meta property=\"og:title\" content=\"{{$playing.Title}}\"/>\r\n <meta property=\"og:type\" content=\"video.other\"/>\r\n <meta property=\"og:image\" content=\"/t/{{ $playing.ID}}\"/>\r\n <meta property=\"og:video\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:video:url\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:video:secure_url\" content=\"/v/{{ $playing.ID }}.mp4\">\r\n <meta property=\"og:description\" content=\"{{$playing.Description}}\"/>\r\n <meta property=\"og:site_name\" content=\"Tube\"/>\r\n <meta property=\"og:url\" content=\"/v/{{ $playing.ID }}\"/>\r\n {{end}}\r\n\r\n {{ template \"stylesheets\" . }}\r\n {{ template \"css\" . }}\r\n <title>Tube</title>\r\n </head>\r\n<body>\r\n <nav>\r\n <a href=\"/\">Tube</a>\r\n <a class=\"centered\" style=\"text-indent: 0;\" href=\"/upload\">Upload</a>\r\n </nav>\r\n <main>\r\n {{template \"content\" .}}\r\n </main>\r\n <footer>\r\n <p><a href=\"https://git.mills.io/prologic/tube\">Tube</a> is CopyRight © 2020 <a href=\"https://git.mills.io/prologic\">James Mills / prologic</a>. All Rights Reserved.</p>\r\n {{if .Config.Copyright.Content}}<p>{{ $config.Copyright.Content }}</p>{{end}}\r\n </footer>\r\n</body>\r\n{{ template \"scripts\" . }}\r\n</html>\r\n{{end}}\r\n{{ define \"css\" }}{{ end }}\r\n{{ define \"scripts\" }}{{ end }}\r\n{{ define \"stylesheets\" }}{{ end }}\r\n"),
}
file3 := &embedded.EmbeddedFile{
Filename: "import.html",
diff --git a/go.mod b/go.mod
index 3a84cab..7aed13b 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/prologic/tube
+module git.mills.io/prologic/tube
go 1.16
@@ -11,8 +11,8 @@ require (
github.com/gorilla/handlers v1.5.1
github.com/gorilla/mux v1.8.0
github.com/lithammer/shortuuid/v3 v3.0.7
- github.com/prologic/bitcask v0.3.10
- github.com/prologic/vimeodl v0.0.0-20200328030915-d2b0e6272c23
+ git.mills.io/prologic/bitcask v0.3.10
+ git.mills.io/prologic/vimeodl v0.0.0-20200328030915-d2b0e6272c23
github.com/sirupsen/logrus v1.8.1
github.com/spf13/pflag v1.0.5
github.com/wybiral/feeds v1.1.1
diff --git a/go.sum b/go.sum
index fb6790e..c0c5791 100644
--- a/go.sum
+++ b/go.sum
@@ -175,10 +175,10 @@ github.com/plar/go-adaptive-radix-tree v1.0.4/go.mod h1:Ot8d28EII3i7Lv4PSvBlF8ej
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
-github.com/prologic/bitcask v0.3.10 h1:HXygU8zCvW5gLpZ8aQECPk5iV/YQ3hcqdg/zVeES6s0=
-github.com/prologic/bitcask v0.3.10/go.mod h1:8RKJdbHLE7HFGLYSGu9slnYXSV7DMIucwVkaIYOk9GY=
-github.com/prologic/vimeodl v0.0.0-20200328030915-d2b0e6272c23 h1:2iUEG1ZXpjBoq11gFdlWOJStBN/3aW3MlY0V5QONZas=
-github.com/prologic/vimeodl v0.0.0-20200328030915-d2b0e6272c23/go.mod h1:uG4Pdd9lZNNkvQHFr70+Qi7im3/YYnBOtUCrqyZKwlw=
+git.mills.io/prologic/bitcask v0.3.10 h1:HXygU8zCvW5gLpZ8aQECPk5iV/YQ3hcqdg/zVeES6s0=
+git.mills.io/prologic/bitcask v0.3.10/go.mod h1:8RKJdbHLE7HFGLYSGu9slnYXSV7DMIucwVkaIYOk9GY=
+git.mills.io/prologic/vimeodl v0.0.0-20200328030915-d2b0e6272c23 h1:2iUEG1ZXpjBoq11gFdlWOJStBN/3aW3MlY0V5QONZas=
+git.mills.io/prologic/vimeodl v0.0.0-20200328030915-d2b0e6272c23/go.mod h1:uG4Pdd9lZNNkvQHFr70+Qi7im3/YYnBOtUCrqyZKwlw=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso=
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
diff --git a/importers/vimeo_importer.go b/importers/vimeo_importer.go
index ad21bcc..0efec7f 100644
--- a/importers/vimeo_importer.go
+++ b/importers/vimeo_importer.go
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
- "github.com/prologic/vimeodl"
+ "git.mills.io/prologic/vimeodl"
)
type VimeoImporter struct{}
diff --git a/main.go b/main.go
index 8500645..ae23f86 100644
--- a/main.go
+++ b/main.go
@@ -4,7 +4,7 @@ import (
"fmt"
"os"
- "github.com/prologic/tube/app"
+ "git.mills.io/prologic/tube/app"
log "github.com/sirupsen/logrus"
flag "github.com/spf13/pflag"
)
diff --git a/media/video.go b/media/video.go
index 4a24eef..8bf1a05 100644
--- a/media/video.go
+++ b/media/video.go
@@ -10,7 +10,7 @@ import (
"time"
"github.com/dhowden/tag"
- "github.com/prologic/tube/utils"
+ "git.mills.io/prologic/tube/utils"
)
// Video represents metadata for a single video.
diff --git a/templates/base.html b/templates/base.html
index 8f30aad..d0ba6ef 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -37,7 +37,7 @@
{{template "content" .}}
</main>
<footer>
- <p><a href="https://github.com/prologic/tube">Tube</a> is CopyRight © 2020 <a href="https://github.com/prologic">James Mills / prologic</a>. All Rights Reserved.</p>
+ <p><a href="https://git.mills.io/prologic/tube">Tube</a> is CopyRight © 2020 <a href="https://git.mills.io/prologic">James Mills / prologic</a>. All Rights Reserved.</p>
{{if .Config.Copyright.Content}}<p>{{ $config.Copyright.Content }}</p>{{end}}
</footer>
</body>