From aa20d46e89069800b77247dccda0a500865411e3 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 21 Apr 2015 13:40:13 +0200 Subject: Clean up html. --- cli/imgup/main.go | 2 +- run.sh | 2 +- templates/404.html | 2 +- templates/api.html | 2 +- templates/cli.html | 27 +++++++++++++++------------ templates/index.html | 2 +- 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/cli/imgup/main.go b/cli/imgup/main.go index 660d07c..299a09f 100644 --- a/cli/imgup/main.go +++ b/cli/imgup/main.go @@ -9,7 +9,7 @@ import ( /* TODO: Make this configurable. */ //var apiHost = "http://127.0.0.1:8080" -var apiHost = "http://images.iamfabulous.de" +var apiHost = "https://images.iamfabulous.de" var apiUrl = apiHost + "/api/v1/" func main() { diff --git a/run.sh b/run.sh index 7c20eaa..35e114a 100755 --- a/run.sh +++ b/run.sh @@ -26,6 +26,6 @@ export PORT=8087 STATIC_DIR=$(pwd)/static \ IMGUR_GO_CONF=$(pwd)/config/conf.json \ UPLOAD_DIR=$(pwd)/files \ -UPLOAD_URL=http://i.iamfabulous.de:8080 \ +UPLOAD_URL=http://i.iamfabulous.de \ ORIGIN_URL=https://images.iamfabulous.de \ ./$APP diff --git a/templates/404.html b/templates/404.html index 0be97a5..00b0397 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,4 +1,4 @@ -{{template "header.html" "Not Found"}} +{{template "header.html" "Not Found | Mandible"}} {{template "navbar.html"}}
Upload your images comfortable from the command line!
--Usage:
--
imgup [FILE] [URL]File have to be the path to a valid image file. Url must start with 'http://' or 'https://'
-
Download:
Download the precompiled binary from here:
- -Currently there is only Linux x86_64 available.
+ +Currently it is only for Linux x86_64 available.
-Compiling from source:
-You can compile imgup from source. You need a working Golang installation set up. Read here more.
+You can compile imgup from source. You need a working Golang installation already set up. Read here more.
-
cd $GOPATH
git clone https://git.iamfabulous.de/cgit.cgi/mandible
cd mandible/cli/imgup
go buildYou have a working binary now.
+You are finished. Now you can start using imgup.
-+ + +$ imgup http://i.imgur.com/s9zxmYe.jpg ++
imgup [FILE] [URL]File have to be the path to a valid image file. Url must start with 'http://' or 'https://'.
+
+Example Usage:
++$ imgup http://i.imgur.com/s9zxmYe.jpg Your image (http://i.imgur.com/s9zxmYe.jpg) was uploaded! Follow this link: http://i.iamfabulous.de:8080/i/h/M/hMKg2qS Have a nice day!