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"}}
diff --git a/templates/api.html b/templates/api.html index 2e11e55..b097225 100644 --- a/templates/api.html +++ b/templates/api.html @@ -1,4 +1,4 @@ -{{template "header.html" "Upload images from file!"}} +{{template "header.html" "API documentation | Mandible"}} {{template "navbar.html"}} {{template "modal_uploaded.html"}} {{template "modal_error.html"}} diff --git a/templates/cli.html b/templates/cli.html index 0ce7535..31a3a9c 100644 --- a/templates/cli.html +++ b/templates/cli.html @@ -1,4 +1,4 @@ -{{template "header.html" "Upload images from file!"}} +{{template "header.html" "CLI documentation | Mandible"}} {{template "navbar.html"}} {{template "modal_uploaded.html"}} {{template "modal_error.html"}} @@ -10,42 +10,45 @@

Imgup - CLI

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://'

-

Installation:

Download:

Download the precompiled binary from here:

-

bin.iamfabulous.de/imgup

-

Currently there is only Linux x86_64 available.

+

bin.iamfabulous.de/imgup

+

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 build

-

You have a working binary now.

+

You are finished. Now you can start using imgup.

-

Example Usage:

+

Usage:

-

$ 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!

+
diff --git a/templates/index.html b/templates/index.html index 2e64de8..f47e82e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,4 +1,4 @@ -{{template "header.html" "Image uploader"}} +{{template "header.html" "Image uploader | Mandible"}} {{template "navbar.html"}} {{template "modal_uploaded.html"}} {{template "modal_error.html"}} -- cgit v1.2.3