From 2543eb40ceb114c5e96c75427569e3d8513a5294 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 23 Jun 2016 11:42:13 +1000 Subject: [PATCH] Create assets folder --- .../css/bootstrap-material-design.css | 0 .../css/bootstrap-material-design.css.map | 0 .../css/bootstrap-material-design.min.css | 0 .../css/bootstrap-material-design.min.css.map | 0 {static => assets}/css/bootstrap-theme.css | 0 {static => assets}/css/bootstrap-theme.css.map | 0 {static => assets}/css/bootstrap-theme.min.css | 0 {static => assets}/css/bootstrap-theme.min.css.map | 0 {static => assets}/css/bootstrap.css | 0 {static => assets}/css/bootstrap.css.map | 0 {static => assets}/css/bootstrap.min.css | 0 {static => assets}/css/bootstrap.min.css.map | 0 {static => assets}/css/ripples.css | 0 {static => assets}/css/ripples.css.map | 0 {static => assets}/css/ripples.min.css | 0 {static => assets}/css/ripples.min.css.map | 0 .../fonts/glyphicons-halflings-regular.eot | Bin .../fonts/glyphicons-halflings-regular.svg | 0 .../fonts/glyphicons-halflings-regular.ttf | Bin .../fonts/glyphicons-halflings-regular.woff | Bin .../fonts/glyphicons-halflings-regular.woff2 | Bin {static => assets}/js/bootstrap.js | 0 {static => assets}/js/bootstrap.min.js | 0 {static => assets}/js/main.js | 0 {static => assets}/js/material.js | 0 {static => assets}/js/material.min.js | 0 {static => assets}/js/material.min.js.map | 0 {static => assets}/js/npm.js | 0 {static => assets}/js/ripples.js | 0 {static => assets}/js/ripples.min.js | 0 {static => assets}/js/ripples.min.js.map | 0 main.go | 4 +--- static/index.html | 10 +++++----- 33 files changed, 6 insertions(+), 8 deletions(-) rename {static => assets}/css/bootstrap-material-design.css (100%) rename {static => assets}/css/bootstrap-material-design.css.map (100%) rename {static => assets}/css/bootstrap-material-design.min.css (100%) rename {static => assets}/css/bootstrap-material-design.min.css.map (100%) rename {static => assets}/css/bootstrap-theme.css (100%) rename {static => assets}/css/bootstrap-theme.css.map (100%) rename {static => assets}/css/bootstrap-theme.min.css (100%) rename {static => assets}/css/bootstrap-theme.min.css.map (100%) rename {static => assets}/css/bootstrap.css (100%) rename {static => assets}/css/bootstrap.css.map (100%) rename {static => assets}/css/bootstrap.min.css (100%) rename {static => assets}/css/bootstrap.min.css.map (100%) rename {static => assets}/css/ripples.css (100%) rename {static => assets}/css/ripples.css.map (100%) rename {static => assets}/css/ripples.min.css (100%) rename {static => assets}/css/ripples.min.css.map (100%) rename {static => assets}/fonts/glyphicons-halflings-regular.eot (100%) rename {static => assets}/fonts/glyphicons-halflings-regular.svg (100%) rename {static => assets}/fonts/glyphicons-halflings-regular.ttf (100%) rename {static => assets}/fonts/glyphicons-halflings-regular.woff (100%) rename {static => assets}/fonts/glyphicons-halflings-regular.woff2 (100%) rename {static => assets}/js/bootstrap.js (100%) rename {static => assets}/js/bootstrap.min.js (100%) rename {static => assets}/js/main.js (100%) rename {static => assets}/js/material.js (100%) rename {static => assets}/js/material.min.js (100%) rename {static => assets}/js/material.min.js.map (100%) rename {static => assets}/js/npm.js (100%) rename {static => assets}/js/ripples.js (100%) rename {static => assets}/js/ripples.min.js (100%) rename {static => assets}/js/ripples.min.js.map (100%) diff --git a/static/css/bootstrap-material-design.css b/assets/css/bootstrap-material-design.css similarity index 100% rename from static/css/bootstrap-material-design.css rename to assets/css/bootstrap-material-design.css diff --git a/static/css/bootstrap-material-design.css.map b/assets/css/bootstrap-material-design.css.map similarity index 100% rename from static/css/bootstrap-material-design.css.map rename to assets/css/bootstrap-material-design.css.map diff --git a/static/css/bootstrap-material-design.min.css b/assets/css/bootstrap-material-design.min.css similarity index 100% rename from static/css/bootstrap-material-design.min.css rename to assets/css/bootstrap-material-design.min.css diff --git a/static/css/bootstrap-material-design.min.css.map b/assets/css/bootstrap-material-design.min.css.map similarity index 100% rename from static/css/bootstrap-material-design.min.css.map rename to assets/css/bootstrap-material-design.min.css.map diff --git a/static/css/bootstrap-theme.css b/assets/css/bootstrap-theme.css similarity index 100% rename from static/css/bootstrap-theme.css rename to assets/css/bootstrap-theme.css diff --git a/static/css/bootstrap-theme.css.map b/assets/css/bootstrap-theme.css.map similarity index 100% rename from static/css/bootstrap-theme.css.map rename to assets/css/bootstrap-theme.css.map diff --git a/static/css/bootstrap-theme.min.css b/assets/css/bootstrap-theme.min.css similarity index 100% rename from static/css/bootstrap-theme.min.css rename to assets/css/bootstrap-theme.min.css diff --git a/static/css/bootstrap-theme.min.css.map b/assets/css/bootstrap-theme.min.css.map similarity index 100% rename from static/css/bootstrap-theme.min.css.map rename to assets/css/bootstrap-theme.min.css.map diff --git a/static/css/bootstrap.css b/assets/css/bootstrap.css similarity index 100% rename from static/css/bootstrap.css rename to assets/css/bootstrap.css diff --git a/static/css/bootstrap.css.map b/assets/css/bootstrap.css.map similarity index 100% rename from static/css/bootstrap.css.map rename to assets/css/bootstrap.css.map diff --git a/static/css/bootstrap.min.css b/assets/css/bootstrap.min.css similarity index 100% rename from static/css/bootstrap.min.css rename to assets/css/bootstrap.min.css diff --git a/static/css/bootstrap.min.css.map b/assets/css/bootstrap.min.css.map similarity index 100% rename from static/css/bootstrap.min.css.map rename to assets/css/bootstrap.min.css.map diff --git a/static/css/ripples.css b/assets/css/ripples.css similarity index 100% rename from static/css/ripples.css rename to assets/css/ripples.css diff --git a/static/css/ripples.css.map b/assets/css/ripples.css.map similarity index 100% rename from static/css/ripples.css.map rename to assets/css/ripples.css.map diff --git a/static/css/ripples.min.css b/assets/css/ripples.min.css similarity index 100% rename from static/css/ripples.min.css rename to assets/css/ripples.min.css diff --git a/static/css/ripples.min.css.map b/assets/css/ripples.min.css.map similarity index 100% rename from static/css/ripples.min.css.map rename to assets/css/ripples.min.css.map diff --git a/static/fonts/glyphicons-halflings-regular.eot b/assets/fonts/glyphicons-halflings-regular.eot similarity index 100% rename from static/fonts/glyphicons-halflings-regular.eot rename to assets/fonts/glyphicons-halflings-regular.eot diff --git a/static/fonts/glyphicons-halflings-regular.svg b/assets/fonts/glyphicons-halflings-regular.svg similarity index 100% rename from static/fonts/glyphicons-halflings-regular.svg rename to assets/fonts/glyphicons-halflings-regular.svg diff --git a/static/fonts/glyphicons-halflings-regular.ttf b/assets/fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from static/fonts/glyphicons-halflings-regular.ttf rename to assets/fonts/glyphicons-halflings-regular.ttf diff --git a/static/fonts/glyphicons-halflings-regular.woff b/assets/fonts/glyphicons-halflings-regular.woff similarity index 100% rename from static/fonts/glyphicons-halflings-regular.woff rename to assets/fonts/glyphicons-halflings-regular.woff diff --git a/static/fonts/glyphicons-halflings-regular.woff2 b/assets/fonts/glyphicons-halflings-regular.woff2 similarity index 100% rename from static/fonts/glyphicons-halflings-regular.woff2 rename to assets/fonts/glyphicons-halflings-regular.woff2 diff --git a/static/js/bootstrap.js b/assets/js/bootstrap.js similarity index 100% rename from static/js/bootstrap.js rename to assets/js/bootstrap.js diff --git a/static/js/bootstrap.min.js b/assets/js/bootstrap.min.js similarity index 100% rename from static/js/bootstrap.min.js rename to assets/js/bootstrap.min.js diff --git a/static/js/main.js b/assets/js/main.js similarity index 100% rename from static/js/main.js rename to assets/js/main.js diff --git a/static/js/material.js b/assets/js/material.js similarity index 100% rename from static/js/material.js rename to assets/js/material.js diff --git a/static/js/material.min.js b/assets/js/material.min.js similarity index 100% rename from static/js/material.min.js rename to assets/js/material.min.js diff --git a/static/js/material.min.js.map b/assets/js/material.min.js.map similarity index 100% rename from static/js/material.min.js.map rename to assets/js/material.min.js.map diff --git a/static/js/npm.js b/assets/js/npm.js similarity index 100% rename from static/js/npm.js rename to assets/js/npm.js diff --git a/static/js/ripples.js b/assets/js/ripples.js similarity index 100% rename from static/js/ripples.js rename to assets/js/ripples.js diff --git a/static/js/ripples.min.js b/assets/js/ripples.min.js similarity index 100% rename from static/js/ripples.min.js rename to assets/js/ripples.min.js diff --git a/static/js/ripples.min.js.map b/assets/js/ripples.min.js.map similarity index 100% rename from static/js/ripples.min.js.map rename to assets/js/ripples.min.js.map diff --git a/main.go b/main.go index f1accab..4c53ca2 100644 --- a/main.go +++ b/main.go @@ -220,9 +220,7 @@ func main() { router.HandleFunc("/save/{output}", saveHandler) router.HandleFunc("/del/{pasteId}/{delKey}", delHandler) router.PathPrefix("/").Handler(http.StripPrefix("/", http.FileServer(http.Dir("static/")))) - router.PathPrefix("/css").Handler(http.StripPrefix("/", http.FileServer(http.Dir("static/css/")))) - router.PathPrefix("/js").Handler(http.StripPrefix("/", http.FileServer(http.Dir("static/js/")))) - router.PathPrefix("/fonts").Handler(http.StripPrefix("/", http.FileServer(http.Dir("static/fonts/")))) + router.PathPrefix("/assets").Handler(http.StripPrefix("/assets", http.FileServer(http.Dir("assets")))) err := http.ListenAndServe(PORT, router) if err != nil { log.Fatal(err) diff --git a/static/index.html b/static/index.html index c2bd26b..760468b 100644 --- a/static/index.html +++ b/static/index.html @@ -11,10 +11,10 @@ - + - - + + @@ -41,8 +41,8 @@ - - + +