diff options
| author | James Mills <prologic@shortcircuit.net.au> | 2021-07-13 08:34:56 +1000 |
|---|---|---|
| committer | James Mills <prologic@shortcircuit.net.au> | 2021-07-13 08:34:56 +1000 |
| commit | 5c2b402a8aaa2d1693f64f2ca6576597bf28b339 (patch) | |
| tree | 72a938d57389fce3547aeb86fcbbcd3975bb80a9 /app | |
| parent | e743a9a425ee3197649aa2c4996b8566bf75896d (diff) | |
Fix import paths
Diffstat (limited to 'app')
| -rw-r--r-- | app/app.go | 6 | ||||
| -rw-r--r-- | app/bitcask_store.go | 2 | ||||
| -rw-r--r-- | app/rice-box.go | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -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", |
