mirror of
https://github.com/Luzifer/password.git
synced 2024-12-20 12:51:17 +00:00
Included web frontend into server
This commit is contained in:
parent
f612ebaceb
commit
24472f00b5
6 changed files with 744 additions and 0 deletions
12
Makefile
Normal file
12
Makefile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
default: pack
|
||||||
|
|
||||||
|
compile_coffee:
|
||||||
|
coffee -c frontend/assets/application.coffee
|
||||||
|
|
||||||
|
debug: compile_coffee
|
||||||
|
go-bindata --debug frontend/...
|
||||||
|
go run *.go serve
|
||||||
|
open http://127.0.0.1:3000/
|
||||||
|
|
||||||
|
pack: compile_coffee
|
||||||
|
go-bindata frontend/...
|
410
bindata.go
Normal file
410
bindata.go
Normal file
|
@ -0,0 +1,410 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"compress/gzip"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func bindata_read(data []byte, name string) ([]byte, error) {
|
||||||
|
gz, err := gzip.NewReader(bytes.NewBuffer(data))
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
||||||
|
}
|
||||||
|
|
||||||
|
var buf bytes.Buffer
|
||||||
|
_, err = io.Copy(&buf, gz)
|
||||||
|
gz.Close()
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
||||||
|
}
|
||||||
|
|
||||||
|
return buf.Bytes(), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func frontend_assets_application_coffee() ([]byte, error) {
|
||||||
|
return bindata_read([]byte{
|
||||||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0x94, 0x55,
|
||||||
|
0x4d, 0x6f, 0xdb, 0x30, 0x0c, 0xbd, 0xeb, 0x57, 0x08, 0x69, 0x36, 0xdb,
|
||||||
|
0x43, 0xe2, 0x7e, 0xec, 0x56, 0x20, 0xdd, 0x65, 0x97, 0x0e, 0xdd, 0x5a,
|
||||||
|
0x2c, 0xbb, 0x0d, 0x3b, 0xa8, 0x36, 0xed, 0x08, 0x55, 0x6c, 0x43, 0x92,
|
||||||
|
0x63, 0x14, 0x45, 0xfe, 0xfb, 0x48, 0x59, 0x8e, 0xed, 0xc6, 0x69, 0xb7,
|
||||||
|
0x5e, 0x6a, 0x91, 0x8f, 0x8f, 0xe4, 0x23, 0xa5, 0xc8, 0x8c, 0x37, 0xb2,
|
||||||
|
0x48, 0xcb, 0x26, 0x5e, 0xdb, 0x52, 0x8b, 0x1c, 0xb8, 0x28, 0xd2, 0xce,
|
||||||
|
0xf4, 0x6d, 0x7d, 0xff, 0x83, 0xf1, 0xee, 0x34, 0x37, 0x1e, 0xb1, 0xe2,
|
||||||
|
0xe1, 0x13, 0x3c, 0x47, 0x7c, 0x79, 0x83, 0x4e, 0xce, 0x0d, 0xd8, 0x6b,
|
||||||
|
0x1e, 0xee, 0x84, 0xaa, 0xe1, 0x60, 0xe3, 0x5c, 0x95, 0x89, 0x50, 0x9e,
|
||||||
|
0x33, 0x46, 0xc8, 0xad, 0x85, 0x2d, 0x85, 0x2d, 0x38, 0xb1, 0xc6, 0xc6,
|
||||||
|
0x6a, 0x59, 0xe4, 0x32, 0x7b, 0xf6, 0x81, 0x91, 0x0b, 0xcb, 0x89, 0xea,
|
||||||
|
0x40, 0x21, 0x31, 0x04, 0x93, 0x8d, 0x98, 0xf2, 0x9e, 0x29, 0xf2, 0x30,
|
||||||
|
0xc7, 0x57, 0x09, 0x6d, 0x20, 0xa4, 0x88, 0x88, 0x63, 0x4f, 0xf4, 0xc1,
|
||||||
|
0xd8, 0xbc, 0xe5, 0xf2, 0xf5, 0x2b, 0x61, 0xec, 0x5d, 0x29, 0x52, 0xa4,
|
||||||
|
0x2c, 0xca, 0x26, 0x8c, 0x7a, 0x8f, 0x86, 0x4c, 0x83, 0xd9, 0x3c, 0x08,
|
||||||
|
0x63, 0x9a, 0x52, 0x13, 0xe0, 0xf3, 0x05, 0xfe, 0xf5, 0x00, 0x2b, 0x93,
|
||||||
|
0x27, 0xd0, 0xb7, 0x85, 0x05, 0x8d, 0xe5, 0xa2, 0xff, 0x0a, 0xbd, 0xaf,
|
||||||
|
0xdd, 0x68, 0xa6, 0x3e, 0x3b, 0x10, 0x19, 0x17, 0xd3, 0x04, 0x18, 0x39,
|
||||||
|
0x0f, 0x83, 0xb3, 0xac, 0x4c, 0x6a, 0x03, 0xe9, 0x6d, 0x51, 0xd5, 0x36,
|
||||||
|
0x88, 0xe2, 0x47, 0x84, 0xf2, 0x20, 0x51, 0x08, 0x0d, 0x16, 0x1c, 0xc5,
|
||||||
|
0xae, 0x7e, 0xb6, 0x75, 0xbd, 0x05, 0x7f, 0x54, 0xb5, 0x46, 0x34, 0xc2,
|
||||||
|
0xac, 0xd0, 0x76, 0x1c, 0x50, 0x56, 0x56, 0x96, 0xc5, 0x5a, 0xec, 0xe0,
|
||||||
|
0x98, 0x1d, 0x8d, 0xf7, 0xce, 0x6d, 0xa8, 0x0f, 0x85, 0xb2, 0xf8, 0xa3,
|
||||||
|
0xd3, 0x85, 0xce, 0x9d, 0x1a, 0x68, 0x60, 0xa8, 0x17, 0x4d, 0xdd, 0x8f,
|
||||||
|
0xd7, 0x29, 0x08, 0x0d, 0xff, 0x2a, 0x2c, 0x38, 0x78, 0x4a, 0x63, 0xf9,
|
||||||
|
0x25, 0xb7, 0x74, 0x62, 0x83, 0xc2, 0x07, 0x31, 0x89, 0x02, 0x71, 0xe8,
|
||||||
|
0x3f, 0x1c, 0xa9, 0x12, 0x4d, 0xf7, 0x67, 0x40, 0x41, 0x62, 0x1d, 0x7f,
|
||||||
|
0x26, 0x94, 0x01, 0xc6, 0xc6, 0x4d, 0x0e, 0xc8, 0xdf, 0x1d, 0xf0, 0x7f,
|
||||||
|
0x0f, 0x88, 0x21, 0xf0, 0x41, 0x97, 0x39, 0x26, 0x32, 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 0xcc, 0xf7, 0x32, 0x15, 0x0a, 0x21, 0x5b, 0xfa, 0x1f,
|
||||||
|
0x06, 0x1b, 0x99, 0xe2, 0x55, 0x99, 0xd8, 0xff, 0xc1, 0x94, 0x26, 0xa7,
|
||||||
|
0xf8, 0xcf, 0xb5, 0xe0, 0x4c, 0x5d, 0xbf, 0xf8, 0x44, 0x1d, 0xa2, 0x57,
|
||||||
|
0xbc, 0x2e, 0x52, 0xc8, 0x64, 0x81, 0x7d, 0x91, 0x12, 0x63, 0x31, 0x8f,
|
||||||
|
0xe5, 0xbc, 0xba, 0xf0, 0x8e, 0xa1, 0x64, 0xed, 0x15, 0xe1, 0xef, 0x69,
|
||||||
|
0x3d, 0xbd, 0x3e, 0x9d, 0x2c, 0x6f, 0x6a, 0x8e, 0x6d, 0x1e, 0xaf, 0x56,
|
||||||
|
0xaf, 0x02, 0x63, 0x74, 0x85, 0x86, 0xaf, 0x84, 0xcc, 0xb2, 0x6e, 0x6f,
|
||||||
|
0xf8, 0xf2, 0xf5, 0x46, 0x21, 0x80, 0x6e, 0x09, 0xe1, 0x4f, 0x3c, 0xc2,
|
||||||
|
0x4b, 0xc7, 0x10, 0xf1, 0xf3, 0x53, 0xaf, 0xf4, 0x27, 0x7e, 0xe9, 0xde,
|
||||||
|
0xe8, 0xe1, 0x55, 0x25, 0xce, 0x56, 0x5e, 0x97, 0xfe, 0x66, 0x75, 0x22,
|
||||||
|
0x98, 0xb5, 0x3f, 0x51, 0xa3, 0x29, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff,
|
||||||
|
0x19, 0x94, 0x55, 0x68, 0x0b, 0x07, 0x00, 0x00,
|
||||||
|
},
|
||||||
|
"frontend/assets/application.coffee",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
func frontend_assets_application_js() ([]byte, error) {
|
||||||
|
return bindata_read([]byte{
|
||||||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xa4, 0x56,
|
||||||
|
0x4d, 0x6f, 0xdb, 0x38, 0x10, 0xbd, 0xfb, 0x57, 0x10, 0x5e, 0x6f, 0x24,
|
||||||
|
0xed, 0x2a, 0xb2, 0x9d, 0x3d, 0x2c, 0x10, 0xc3, 0xbb, 0x87, 0x16, 0x28,
|
||||||
|
0x52, 0xa4, 0x4d, 0x50, 0xf7, 0x56, 0xf4, 0x40, 0x4b, 0x94, 0x4d, 0x44,
|
||||||
|
0x11, 0x05, 0x92, 0xb6, 0x11, 0x14, 0xfa, 0xef, 0x1d, 0x7e, 0x88, 0x22,
|
||||||
|
0xe5, 0x8f, 0xf4, 0x23, 0x17, 0x8b, 0xe4, 0x70, 0xe6, 0xf1, 0xbd, 0xc7,
|
||||||
|
0x61, 0xa6, 0x53, 0xf4, 0x8e, 0xd4, 0x84, 0x63, 0x49, 0x0a, 0xb4, 0x7e,
|
||||||
|
0x41, 0x6f, 0x58, 0x59, 0x12, 0xb2, 0xca, 0x39, 0x6d, 0x24, 0x9a, 0x67,
|
||||||
|
0xff, 0x66, 0xf3, 0x51, 0x5c, 0xee, 0xea, 0x5c, 0x52, 0x56, 0xc7, 0x09,
|
||||||
|
0xfa, 0x36, 0x42, 0x68, 0x8f, 0x39, 0xaa, 0x18, 0x2e, 0x1e, 0x1a, 0x35,
|
||||||
|
0x29, 0x52, 0x3d, 0x78, 0xc4, 0x42, 0x1c, 0x18, 0x2f, 0x52, 0x54, 0xb3,
|
||||||
|
0x43, 0x8a, 0x38, 0x11, 0x12, 0x73, 0xf9, 0x89, 0x94, 0xf0, 0xb5, 0x4d,
|
||||||
|
0x91, 0xc0, 0x7b, 0xe2, 0xe2, 0x05, 0x91, 0x8f, 0x9c, 0x6d, 0x60, 0x45,
|
||||||
|
0x0d, 0x24, 0x6b, 0x5c, 0x98, 0xa4, 0xf9, 0xd3, 0x62, 0x04, 0x35, 0x68,
|
||||||
|
0x89, 0xe2, 0x03, 0xad, 0x0b, 0x76, 0xc8, 0x56, 0x92, 0x71, 0xbc, 0x21,
|
||||||
|
0xe8, 0xea, 0x0a, 0xd9, 0x99, 0xf7, 0xab, 0x87, 0x8f, 0x06, 0x0a, 0xea,
|
||||||
|
0xa6, 0x26, 0xc2, 0x46, 0x2d, 0x91, 0x43, 0xfb, 0x44, 0x5e, 0xba, 0x28,
|
||||||
|
0x04, 0x80, 0xe4, 0x8e, 0xd7, 0x6e, 0x88, 0x14, 0x88, 0xdb, 0x3e, 0x76,
|
||||||
|
0x8f, 0xab, 0x1d, 0x49, 0xbc, 0x65, 0xb7, 0xa3, 0x62, 0x39, 0xae, 0x2c,
|
||||||
|
0x86, 0x0c, 0x36, 0xdd, 0x49, 0xf2, 0xac, 0x52, 0xa7, 0x48, 0xc1, 0xc8,
|
||||||
|
0x84, 0xe4, 0xb4, 0xde, 0xd0, 0xf2, 0xc5, 0xa6, 0x48, 0x16, 0x2e, 0x45,
|
||||||
|
0x9b, 0xba, 0xcf, 0x4d, 0x50, 0x2c, 0xac, 0xa3, 0xe8, 0xa4, 0x90, 0x74,
|
||||||
|
0xe1, 0xcd, 0xa9, 0x31, 0x1c, 0x25, 0xa8, 0xbd, 0xe9, 0x6b, 0x27, 0x41,
|
||||||
|
0x2c, 0x50, 0xa5, 0xe2, 0xc3, 0xac, 0x0e, 0xbf, 0x46, 0xd9, 0x60, 0x2e,
|
||||||
|
0x88, 0x89, 0xf2, 0xb7, 0xb6, 0xa3, 0xe1, 0x57, 0x6b, 0x96, 0xf5, 0x4f,
|
||||||
|
0xab, 0x84, 0x98, 0x0c, 0xd5, 0x77, 0x94, 0x57, 0x58, 0xc8, 0x7b, 0x50,
|
||||||
|
0x1e, 0x70, 0x82, 0xe4, 0xb1, 0x4d, 0x6c, 0x17, 0xb9, 0x51, 0xb4, 0x73,
|
||||||
|
0x05, 0xc4, 0xfc, 0x33, 0x83, 0xbf, 0x20, 0x46, 0x89, 0x4d, 0xf8, 0x5d,
|
||||||
|
0x2d, 0x09, 0x07, 0xee, 0x20, 0xe4, 0xe6, 0x64, 0x00, 0x2c, 0x28, 0xda,
|
||||||
|
0x6d, 0x58, 0xac, 0x26, 0xd3, 0xd3, 0x29, 0x2c, 0x84, 0x49, 0x1c, 0xfd,
|
||||||
|
0x51, 0xb2, 0x7c, 0x27, 0x48, 0x71, 0x57, 0x37, 0x3b, 0x19, 0x25, 0xd9,
|
||||||
|
0x1a, 0xc2, 0xe3, 0x28, 0xaf, 0x20, 0x3c, 0x0a, 0x2c, 0xf7, 0xda, 0x96,
|
||||||
|
0x75, 0xb5, 0xe3, 0xd1, 0xd0, 0xce, 0xde, 0x26, 0xa6, 0x3d, 0xbd, 0x02,
|
||||||
|
0x77, 0x1f, 0x57, 0xe9, 0x2d, 0x6f, 0x37, 0x78, 0x97, 0xa6, 0xa3, 0xcb,
|
||||||
|
0x99, 0xac, 0xbf, 0x41, 0x66, 0xa9, 0x4d, 0xf4, 0x3d, 0x00, 0x66, 0x7d,
|
||||||
|
0x4b, 0x77, 0x12, 0x28, 0xcf, 0x14, 0x26, 0x83, 0xe6, 0x9f, 0x1c, 0xd0,
|
||||||
|
0x5b, 0xb8, 0xc1, 0x83, 0xac, 0x85, 0xf2, 0xcc, 0x67, 0xfa, 0x6c, 0xe7,
|
||||||
|
0x5b, 0x9d, 0xd1, 0x3b, 0xfc, 0xa9, 0xcc, 0x79, 0x45, 0xb0, 0x23, 0x34,
|
||||||
|
0x0e, 0x68, 0x3e, 0xcf, 0x95, 0x20, 0x15, 0xc9, 0xe5, 0xa0, 0x7a, 0x89,
|
||||||
|
0x2b, 0x41, 0xfa, 0xba, 0x21, 0x85, 0xa7, 0x4a, 0x5f, 0xf4, 0x95, 0x4d,
|
||||||
|
0xfa, 0x3b, 0xce, 0xb0, 0xe7, 0xef, 0x9b, 0x8f, 0x0f, 0xa2, 0x21, 0x3c,
|
||||||
|
0xef, 0x80, 0xd8, 0x5a, 0x70, 0xd0, 0xac, 0xb1, 0xa1, 0xd7, 0x6b, 0xcc,
|
||||||
|
0xe1, 0xa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0x23, 0x21, 0x3e,
|
||||||
|
0xb0, 0x02, 0x57, 0x10, 0xf5, 0xac, 0x7e, 0xe3, 0x68, 0x4b, 0x0b, 0xe8,
|
||||||
|
0x1a, 0xaf, 0xf5, 0x01, 0x67, 0xa8, 0x5f, 0xe3, 0xec, 0x87, 0xa1, 0x2b,
|
||||||
|
0x73, 0x59, 0x30, 0xea, 0x45, 0x71, 0x19, 0x96, 0x4b, 0xb4, 0x67, 0xb4,
|
||||||
|
0x40, 0xb3, 0xde, 0x15, 0xc7, 0x8a, 0x1c, 0x6b, 0x72, 0x33, 0xeb, 0x5f,
|
||||||
|
0x3f, 0x9f, 0x77, 0xdd, 0x15, 0x06, 0x8f, 0x8d, 0x23, 0xea, 0x82, 0x88,
|
||||||
|
0xa7, 0xbd, 0xed, 0x91, 0x7c, 0x51, 0x4c, 0x80, 0x7a, 0xec, 0xfa, 0x80,
|
||||||
|
0x79, 0x8f, 0x3e, 0x43, 0xb9, 0x6a, 0x20, 0x67, 0x5b, 0x2f, 0x2d, 0xcb,
|
||||||
|
0x54, 0x5f, 0x7d, 0xdb, 0x83, 0x61, 0xdc, 0x19, 0x1e, 0x5d, 0x0f, 0xaf,
|
||||||
|
0x82, 0x89, 0xd1, 0x8d, 0x62, 0xe9, 0xfe, 0xab, 0x19, 0x3e, 0x90, 0xd7,
|
||||||
|
0x3a, 0x49, 0x82, 0xa6, 0xe7, 0x5e, 0xd0, 0xbf, 0xd0, 0xbc, 0x7b, 0x1e,
|
||||||
|
0xbd, 0x16, 0x66, 0xfa, 0x56, 0x2f, 0x9b, 0x46, 0xf2, 0xdf, 0xf2, 0x4c,
|
||||||
|
0x92, 0xa3, 0x7f, 0x87, 0x8e, 0xfd, 0x66, 0xe4, 0x50, 0x14, 0xb4, 0xd0,
|
||||||
|
0xee, 0x70, 0x05, 0x6d, 0x75, 0x4b, 0x95, 0x99, 0xbf, 0x07, 0x00, 0x00,
|
||||||
|
0xff, 0xff, 0x75, 0xeb, 0x78, 0x8c, 0x29, 0x0a, 0x00, 0x00,
|
||||||
|
},
|
||||||
|
"frontend/assets/application.js",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
func frontend_index_html() ([]byte, error) {
|
||||||
|
return bindata_read([]byte{
|
||||||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x00, 0xff, 0xbc, 0x58,
|
||||||
|
0xff, 0x72, 0xdc, 0xb6, 0xf1, 0xff, 0xdf, 0x4f, 0xb1, 0xa6, 0xe7, 0x3b,
|
||||||
|
0x49, 0x3c, 0x26, 0x69, 0x49, 0xce, 0xb7, 0xae, 0x7c, 0xa7, 0x8e, 0xeb,
|
||||||
|
0xb8, 0xb1, 0x32, 0x4e, 0x9c, 0x44, 0xce, 0xb4, 0x99, 0x4c, 0xfe, 0x00,
|
||||||
|
0xc9, 0x25, 0x09, 0x09, 0x04, 0x60, 0x00, 0xbc, 0xd3, 0x35, 0xd3, 0xe7,
|
||||||
|
0xe8, 0x03, 0xf5, 0xc5, 0xba, 0x00, 0x7f, 0x1c, 0xef, 0x8e, 0x67, 0xc9,
|
||||||
|
0x6d, 0xa6, 0xe3, 0x39, 0x8b, 0x00, 0x17, 0x8b, 0xfd, 0xf9, 0xd9, 0x5d,
|
||||||
|
0x2e, 0x1e, 0x7e, 0xf5, 0xee, 0xd5, 0xfb, 0x9f, 0xbf, 0x7f, 0x0d, 0xb5,
|
||||||
|
0x6b, 0xc4, 0xc5, 0x83, 0x85, 0xff, 0x03, 0x82, 0xc9, 0x6a, 0x19, 0xa1,
|
||||||
|
0x8c, 0x2e, 0x1e, 0x00, 0x2c, 0x6a, 0x64, 0x85, 0x7f, 0xa0, 0xc7, 0x06,
|
||||||
|
0x1d, 0x83, 0xbc, 0x66, 0xc6, 0xa2, 0x5b, 0x46, 0xad, 0x2b, 0xe3, 0xe7,
|
||||||
|
0xd1, 0xf4, 0x55, 0xed, 0x9c, 0x8e, 0xf1, 0x43, 0xcb, 0x57, 0xcb, 0xe8,
|
||||||
|
0x6f, 0xf1, 0x4f, 0x2f, 0xe3, 0x57, 0xaa, 0xd1, 0xcc, 0xf1, 0x4c, 0x60,
|
||||||
|
0x04, 0xb9, 0x92, 0x0e, 0x25, 0x9d, 0xbb, 0x7c, 0xbd, 0xc4, 0xa2, 0xc2,
|
||||||
|
0x9d, 0x93, 0x92, 0x35, 0xb8, 0x8c, 0x56, 0x1c, 0xd7, 0x5a, 0x19, 0x37,
|
||||||
|
0x21, 0x5e, 0xf3, 0xc2, 0xd5, 0xcb, 0x02, 0x57, 0x3c, 0xc7, 0x38, 0x2c,
|
||||||
|
0x9e, 0x00, 0x97, 0xdc, 0x71, 0x26, 0x62, 0x9b, 0x33, 0x81, 0xcb, 0x93,
|
||||||
|
0x27, 0xd0, 0xb0, 0x5b, 0xde, 0xb4, 0xcd, 0x76, 0xa3, 0xb5, 0x68, 0xc2,
|
||||||
|
0x8a, 0xd1, 0xd5, 0x4b, 0xa9, 0x86, 0xbb, 0x1e, 0xc6, 0x31, 0xbc, 0xaf,
|
||||||
|
0x11, 0x58, 0xa6, 0x56, 0x08, 0x67, 0x10, 0xee, 0x76, 0xac, 0xb2, 0xf0,
|
||||||
|
0xb8, 0x69, 0xad, 0x7b, 0x4c, 0xf7, 0x36, 0x08, 0x25, 0x37, 0xd6, 0xd1,
|
||||||
|
0x2d, 0xe0, 0x88, 0xd4, 0xab, 0xff, 0x02, 0x98, 0xdc, 0x80, 0xa2, 0xa5,
|
||||||
|
0x09, 0xeb, 0x41, 0x3c, 0xf0, 0x87, 0xba, 0x33, 0x8f, 0x59, 0xe9, 0xd0,
|
||||||
|
0x3c, 0xf6, 0x47, 0x2c, 0x76, 0x2c, 0xe3, 0xb8, 0xbf, 0xd5, 0x71, 0x27,
|
||||||
|
0xf0, 0xe2, 0x0a, 0xf3, 0xd6, 0x20, 0x7c, 0xcf, 0xac, 0x5d, 0x2b, 0x53,
|
||||||
|
0x2c, 0xd2, 0x6e, 0xfb, 0xc1, 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
|
||||||
|
0xcd, 0x2a, 0xa4, 0x15, 0x23, 0xf7, 0x0a, 0x24, 0x75, 0x76, 0xd8, 0xfd,
|
||||||
|
0x42, 0xd4, 0xc2, 0x91, 0x44, 0xf0, 0xc7, 0x5f, 0xbb, 0x5d, 0xda, 0xb7,
|
||||||
|
0xb9, 0xe1, 0xda, 0x81, 0x35, 0xf9, 0xd6, 0xd8, 0xca, 0xda, 0xa4, 0x37,
|
||||||
|
0xb8, 0x37, 0x82, 0xcf, 0x97, 0x2f, 0x49, 0xbf, 0x15, 0xd9, 0xf8, 0x0f,
|
||||||
|
0xc9, 0xe9, 0x76, 0x1d, 0xcc, 0x71, 0x4d, 0xd6, 0x58, 0xa4, 0x1d, 0x9b,
|
||||||
|
0x4f, 0xe1, 0x6a, 0x3a, 0x95, 0xd2, 0x93, 0xe4, 0x19, 0xf1, 0xec, 0x57,
|
||||||
|
0x47, 0x38, 0x2e, 0x1e, 0xfe, 0x82, 0xb2, 0xe0, 0xe5, 0xaf, 0xa3, 0x3a,
|
||||||
|
0xc1, 0x81, 0xc3, 0x75, 0x99, 0x2a, 0x36, 0xf0, 0x1b, 0x64, 0x2c, 0xbf,
|
||||||
|
0xa9, 0x8c, 0x6a, 0x65, 0x11, 0xe7, 0x4a, 0x28, 0x73, 0x0e, 0x8f, 0xf0,
|
||||||
|
0xd4, 0xff, 0x7b, 0x01, 0xff, 0xe8, 0x29, 0x93, 0x75, 0xcd, 0x1d, 0xce,
|
||||||
|
0xd3, 0x96, 0x65, 0x39, 0x21, 0xcc, 0xc9, 0x3f, 0x94, 0x09, 0xbf, 0x81,
|
||||||
|
0xc3, 0x5b, 0x17, 0x33, 0xc1, 0x2b, 0x79, 0x0e, 0xdd, 0xe6, 0x84, 0xaa,
|
||||||
|
0x64, 0x1f, 0x88, 0xa4, 0x61, 0xa6, 0xe2, 0x32, 0x76, 0x4a, 0x9f, 0xc3,
|
||||||
|
0x19, 0x36, 0x93, 0xf7, 0xda, 0xa8, 0x8a, 0x54, 0xb3, 0x5b, 0xa2, 0x4c,
|
||||||
|
0x39, 0xa7, 0x9a, 0x73, 0x78, 0xaa, 0x6f, 0x27, 0x74, 0xd7, 0x6d, 0x43,
|
||||||
|
0x2f, 0x8c, 0x92, 0xa0, 0x67, 0x48, 0x07, 0x42, 0x32, 0xca, 0xa0, 0xf6,
|
||||||
|
0x22, 0x1d, 0x20, 0x6b, 0xe1, 0xb5, 0xef, 0xad, 0x22, 0xd9, 0x0a, 0x72,
|
||||||
|
0x41, 0xc9, 0xb7, 0x8c, 0xe8, 0x31, 0x63, 0x06, 0xba, 0x3f, 0x71, 0x81,
|
||||||
|
0x25, 0x6b, 0x85, 0x8b, 0x46, 0x07, 0x15, 0x7c, 0xa4, 0xf4, 0x79, 0xce,
|
||||||
|
0xb8, 0x24, 0x30, 0x29, 0x45, 0xcb, 0x8b, 0x91, 0x66, 0x48, 0x58, 0xe3,
|
||||||
|
0x83, 0xd4, 0xff, 0x9c, 0xaa, 0x2a, 0x81, 0x50, 0xa1, 0x03, 0x6f, 0x3a,
|
||||||
|
0x8d, 0x45, 0x88, 0xf0, 0x0c, 0x9d, 0xb7, 0x54, 0xa3, 0x32, 0x8a, 0x39,
|
||||||
|
0x28, 0xb8, 0xd5, 0x82, 0x6d, 0xc6, 0xc0, 0xdb, 0xbf, 0xad, 0x17, 0xc8,
|
||||||
|
0x4b, 0x8f, 0x66, 0x72, 0x97, 0x57, 0xa4, 0x25, 0x7d, 0x09, 0x90, 0x36,
|
||||||
|
0x9a, 0x60, 0xb2, 0x5b, 0x44, 0x7b, 0xc7, 0x3a, 0x11, 0x22, 0x28, 0x98,
|
||||||
|
0x63, 0xfd, 0x62, 0x19, 0x35, 0xaa, 0x60, 0x62, 0xd8, 0x23, 0xd3, 0x79,
|
||||||
|
0xdc, 0x7e, 0x44, 0xe8, 0xed, 0xb8, 0xac, 0xec, 0xb7, 0xe1, 0xe5, 0xf4,
|
||||||
|
0x1e, 0x1f, 0x3d, 0x9a, 0xc9, 0x81, 0x73, 0x25, 0x36, 0xba, 0xe6, 0x64,
|
||||||
|
0x04, 0x18, 0x9f, 0x28, 0x24, 0xaa, 0x08, 0x98, 0xe1, 0x2c, 0xae, 0x79,
|
||||||
|
0x51, 0xa0, 0x5c, 0x46, 0xce, 0xb4, 0x18, 0xa2, 0x92, 0x4e, 0xee, 0x08,
|
||||||
|
0x9d, 0x76, 0x82, 0xee, 0xec, 0xb1, 0x3d, 0xa9, 0x33, 0x6f, 0xc2, 0x01,
|
||||||
|
0x68, 0x1e, 0x45, 0x87, 0x28, 0xc9, 0x26, 0xb6, 0x4a, 0xc9, 0x58, 0xf3,
|
||||||
|
0xa6, 0xa3, 0x40, 0x15, 0x4c, 0x13, 0xf2, 0xf6, 0x6c, 0x87, 0x75, 0x04,
|
||||||
|
0xbc, 0x20, 0x83, 0xd9, 0x18, 0x6f, 0x59, 0xa3, 0x05, 0xc6, 0x7b, 0xef,
|
||||||
|
0xe3, 0x93, 0x5d, 0x3b, 0xb7, 0x62, 0x22, 0xdf, 0xc0, 0x6c, 0xf2, 0x68,
|
||||||
|
0x78, 0x55, 0xbb, 0x7d, 0x93, 0x09, 0xbe, 0xbb, 0x71, 0x87, 0xbf, 0x32,
|
||||||
|
0x27, 0x81, 0x7e, 0x43, 0xe0, 0x0d, 0xac, 0x69, 0xeb, 0xbf, 0x75, 0xde,
|
||||||
|
0xef, 0xe1, 0x40, 0xb8, 0xea, 0x2f, 0xd8, 0x57, 0x69, 0xc6, 0x9b, 0x7e,
|
||||||
|
0x77, 0x57, 0xf9, 0x45, 0xda, 0x8a, 0x23, 0x0e, 0x9b, 0x2c, 0x16, 0x29,
|
||||||
|
0xe9, 0x3c, 0x3d, 0xf6, 0xe0, 0xd0, 0x9f, 0x7d, 0xe2, 0xcd, 0xa6, 0xa5,
|
||||||
|
0x51, 0xeb, 0xe8, 0x68, 0x1c, 0xc4, 0xb7, 0x36, 0x3e, 0x39, 0x05, 0xff,
|
||||||
|
0x64, 0x9b, 0xf8, 0xf9, 0xf0, 0xa0, 0xca, 0x92, 0x4c, 0x17, 0x77, 0x2f,
|
||||||
|
0x9a, 0x22, 0xfe, 0xff, 0xe1, 0xa1, 0x7f, 0x71, 0x36, 0x14, 0xae, 0x43,
|
||||||
|
0xa6, 0x23, 0x02, 0xed, 0x3b, 0x5e, 0x8f, 0xd7, 0x06, 0xf0, 0x3b, 0xf0,
|
||||||
|
0xc6, 0x25, 0xac, 0xb9, 0x10, 0x84, 0x0a, 0xa4, 0x08, 0x23, 0x6c, 0xa5,
|
||||||
|
0x3e, 0x87, 0x8a, 0x91, 0xed, 0x42, 0x5c, 0xf7, 0x21, 0x0e, 0xb8, 0x42,
|
||||||
|
0xb3, 0x81, 0xb3, 0xa7, 0xfe, 0x05, 0xe1, 0xbc, 0x4d, 0xe0, 0x9b, 0xd0,
|
||||||
|
0x56, 0x08, 0x9e, 0xdf, 0xf4, 0x95, 0xab, 0xa7, 0x74, 0x0a, 0x6e, 0x10,
|
||||||
|
0x75, 0xd8, 0x24, 0x1e, 0xc6, 0xb7, 0x20, 0x4a, 0x62, 0x02, 0x7b, 0x3e,
|
||||||
|
0xd1, 0xbb, 0x2e, 0x09, 0x76, 0x3f, 0xa2, 0x1b, 0xb9, 0x1c, 0x05, 0x84,
|
||||||
|
0xff, 0x0f, 0x90, 0xf0, 0x08, 0x75, 0x00, 0x28, 0x8a, 0x90, 0x03, 0x75,
|
||||||
|
0x7f, 0x56, 0xad, 0x19, 0x85, 0xdd, 0x13, 0x69, 0x27, 0x73, 0xe7, 0xd9,
|
||||||
|
0x7a, 0xb0, 0x3e, 0xe0, 0x39, 0x25, 0x23, 0x44, 0x6d, 0xe2, 0x00, 0xaf,
|
||||||
|
0x73, 0x71, 0xcf, 0xa5, 0x6e, 0xdd, 0x0e, 0xa9, 0x0f, 0x22, 0xa3, 0x44,
|
||||||
|
0x5f, 0x9a, 0x3a, 0x28, 0x28, 0x55, 0x4e, 0xcd, 0x61, 0x71, 0xe9, 0x89,
|
||||||
|
0xa3, 0x3e, 0x3f, 0x7d, 0x19, 0x8b, 0x60, 0xc5, 0x44, 0x4b, 0x8b, 0x24,
|
||||||
|
0x49, 0x0e, 0x85, 0x98, 0x11, 0xff, 0x3e, 0x1a, 0x95, 0xd4, 0x1c, 0xcd,
|
||||||
|
0x84, 0xc5, 0x0e, 0x61, 0x5f, 0x05, 0xe7, 0x34, 0x9a, 0x21, 0x8b, 0x09,
|
||||||
|
0x29, 0x22, 0x08, 0xa5, 0xae, 0xef, 0x8d, 0xcf, 0xe1, 0xe4, 0xe9, 0xd3,
|
||||||
|
0xff, 0x7b, 0xe1, 0xf3, 0xf7, 0x40, 0xa2, 0xfb, 0x49, 0xfe, 0xbf, 0x0b,
|
||||||
|
0x90, 0xbf, 0xbc, 0xfc, 0xe1, 0xf7, 0x0a, 0x8b, 0x29, 0xcc, 0x8c, 0x9b,
|
||||||
|
0x84, 0x45, 0xd4, 0xfd, 0x50, 0xa2, 0x56, 0x17, 0x5f, 0xa9, 0xd0, 0xfd,
|
||||||
|
0x59, 0xa7, 0x28, 0xd5, 0x9a, 0xcd, 0x18, 0x96, 0x7f, 0xf2, 0x8d, 0x42,
|
||||||
|
0xa0, 0x58, 0x64, 0xe6, 0x90, 0x05, 0x85, 0x30, 0x14, 0x98, 0xf3, 0x02,
|
||||||
|
0x81, 0xda, 0xa1, 0xbc, 0xf6, 0xe9, 0xe5, 0xd3, 0xce, 0xb1, 0x1b, 0x0c,
|
||||||
|
0x85, 0x7e, 0x8d, 0x5d, 0x4e, 0x4b, 0xe5, 0x7a, 0xe6, 0x61, 0x34, 0x28,
|
||||||
|
0x43, 0x4e, 0x0e, 0x89, 0x5e, 0x8c, 0xd7, 0x51, 0x32, 0xbf, 0xaf, 0x19,
|
||||||
|
0x75, 0xa4, 0x54, 0xf6, 0xbd, 0x3c, 0x39, 0x61, 0x73, 0x86, 0xd4, 0xf5,
|
||||||
|
0xd2, 0x41, 0x25, 0x45, 0xb7, 0x79, 0x23, 0xd5, 0xba, 0xbf, 0x6e, 0x4c,
|
||||||
|
0xf5, 0x40, 0x5c, 0x2b, 0x8b, 0xc9, 0xa1, 0x9a, 0xe9, 0x61, 0xc1, 0xd9,
|
||||||
|
0x55, 0xfe, 0x8d, 0x1a, 0x51, 0x86, 0xd1, 0xaf, 0x9b, 0x49, 0x46, 0x91,
|
||||||
|
0xee, 0x30, 0xc1, 0x4b, 0x21, 0xb6, 0xb4, 0xe1, 0x7c, 0x5e, 0x63, 0x7e,
|
||||||
|
0x43, 0x4a, 0xb1, 0x8a, 0x20, 0x99, 0x90, 0x89, 0x11, 0xf3, 0xd0, 0xb1,
|
||||||
|
0x9b, 0x96, 0x26, 0x05, 0x6f, 0x1e, 0x94, 0x41, 0x23, 0xba, 0x68, 0x13,
|
||||||
|
0x9a, 0xf0, 0x60, 0x9e, 0x1e, 0xc3, 0x89, 0x99, 0x6f, 0x82, 0xa4, 0xed,
|
||||||
|
0x55, 0x5c, 0xab, 0x56, 0x50, 0x67, 0xef, 0x0d, 0xca, 0x1d, 0x20, 0xb3,
|
||||||
|
0x9b, 0xd0, 0x2a, 0x85, 0x08, 0x67, 0x4d, 0x60, 0x57, 0xb5, 0xbe, 0x2f,
|
||||||
|
0x9c, 0x42, 0xdf, 0x7f, 0x62, 0x85, 0x57, 0x64, 0xeb, 0x4b, 0x9a, 0x69,
|
||||||
|
0x68, 0x5e, 0xf3, 0xac, 0x2c, 0xa1, 0x53, 0x4e, 0xca, 0xa8, 0x02, 0xef,
|
||||||
|
0xb0, 0xc0, 0xbb, 0x92, 0xa8, 0x5a, 0x1a, 0x72, 0x07, 0x97, 0x25, 0x70,
|
||||||
|
0xe9, 0x3e, 0xb3, 0xa0, 0xdb, 0x4c, 0x70, 0x9a, 0x8c, 0x0a, 0x72, 0x9d,
|
||||||
|
0xef, 0x64, 0x76, 0xc7, 0xb0, 0x8a, 0xbb, 0xba, 0xcd, 0x42, 0xff, 0xfe,
|
||||||
|
0xb6, 0xfd, 0x3b, 0x2f, 0x69, 0x38, 0x1a, 0xa4, 0x8f, 0x2e, 0xbe, 0xe6,
|
||||||
|
0xee, 0x4d, 0x9b, 0xf9, 0x6e, 0xc6, 0xb7, 0x8a, 0x18, 0x26, 0xc9, 0x35,
|
||||||
|
0x1d, 0x20, 0x5b, 0x3a, 0x24, 0x93, 0xda, 0xd6, 0xf7, 0xde, 0x3b, 0x96,
|
||||||
|
0xdc, 0x73, 0x82, 0x65, 0xe5, 0x3d, 0x63, 0x61, 0xb7, 0x06, 0x77, 0x3b,
|
||||||
|
0x77, 0xa4, 0xfc, 0xf1, 0x42, 0xbd, 0xa5, 0x9b, 0x66, 0x66, 0xdf, 0x99,
|
||||||
|
0x78, 0x40, 0x9d, 0xef, 0x47, 0x0e, 0x88, 0x63, 0x1a, 0xe4, 0x84, 0xaa,
|
||||||
|
0x8e, 0x94, 0xed, 0x8e, 0xa4, 0x9f, 0xaa, 0x77, 0x3b, 0xb2, 0x03, 0xaa,
|
||||||
|
0x99, 0xf6, 0xf8, 0x8e, 0x86, 0x2b, 0x17, 0xca, 0x0e, 0x8d, 0x31, 0xf5,
|
||||||
|
0xe0, 0x0d, 0x9f, 0xa8, 0x30, 0xd3, 0x08, 0xfd, 0xeb, 0x9f, 0x47, 0x7a,
|
||||||
|
0x9d, 0xfa, 0xd9, 0xae, 0x24, 0x61, 0x80, 0xf7, 0x2d, 0x6b, 0x67, 0x01,
|
||||||
|
0x9a, 0x3b, 0x9e, 0xcd, 0x18, 0xf9, 0x63, 0xba, 0xcc, 0x60, 0xdb, 0x3d,
|
||||||
|
0x0b, 0xde, 0x42, 0xb0, 0x8c, 0x70, 0x99, 0x28, 0x3c, 0x4e, 0x76, 0x81,
|
||||||
|
0xf2, 0x16, 0x65, 0xe5, 0xea, 0x77, 0xda, 0xf1, 0xa9, 0xf2, 0x5d, 0x11,
|
||||||
|
0x8c, 0x03, 0x7d, 0x74, 0x31, 0x34, 0xd6, 0x20, 0x02, 0xf1, 0x39, 0x05,
|
||||||
|
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7, 0xec, 0x36, 0xa9, 0x94,
|
||||||
|
0xa2, 0x69, 0x89, 0x69, 0x6e, 0x03, 0xf6, 0xfa, 0x3d, 0x02, 0xc5, 0xcc,
|
||||||
|
0xa6, 0xd7, 0xfe, 0xbb, 0xd1, 0x26, 0x3d, 0x49, 0x4e, 0x4e, 0x92, 0xd3,
|
||||||
|
0x7e, 0x75, 0xf4, 0x23, 0x0a, 0x09, 0x78, 0x29, 0x73, 0xd1, 0x52, 0xe1,
|
||||||
|
0x67, 0x54, 0x00, 0x89, 0x93, 0xa6, 0x91, 0xbd, 0x18, 0x04, 0x81, 0xcf,
|
||||||
|
0x29, 0x18, 0xd4, 0xfa, 0x8b, 0x27, 0x40, 0x32, 0xf3, 0x9e, 0x90, 0x4b,
|
||||||
|
0x52, 0x91, 0x17, 0x2d, 0xc5, 0x91, 0xff, 0xa6, 0x44, 0x38, 0x4d, 0x85,
|
||||||
|
0x0f, 0xb1, 0xa0, 0x63, 0x1f, 0x15, 0xfb, 0xbe, 0x1f, 0xec, 0xae, 0xf7,
|
||||||
|
0xbf, 0xd7, 0xcd, 0x08, 0x3e, 0xe5, 0x4f, 0xfe, 0x45, 0x67, 0x53, 0xa6,
|
||||||
|
0x35, 0x8d, 0x0e, 0xcc, 0x7b, 0xf4, 0xe0, 0x04, 0x39, 0x34, 0x7c, 0x12,
|
||||||
|
0x59, 0xa4, 0xdd, 0x07, 0xdf, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x71,
|
||||||
|
0x11, 0x2a, 0x1c, 0x01, 0x16, 0x00, 0x00,
|
||||||
|
},
|
||||||
|
"frontend/index.html",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Asset loads and returns the asset for the given name.
|
||||||
|
// It returns an error if the asset could not be found or
|
||||||
|
// could not be loaded.
|
||||||
|
func Asset(name string) ([]byte, error) {
|
||||||
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
||||||
|
if f, ok := _bindata[cannonicalName]; ok {
|
||||||
|
return f()
|
||||||
|
}
|
||||||
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||||||
|
}
|
||||||
|
|
||||||
|
// AssetNames returns the names of the assets.
|
||||||
|
func AssetNames() []string {
|
||||||
|
names := make([]string, 0, len(_bindata))
|
||||||
|
for name := range _bindata {
|
||||||
|
names = append(names, name)
|
||||||
|
}
|
||||||
|
return names
|
||||||
|
}
|
||||||
|
|
||||||
|
// _bindata is a table, holding each asset generator, mapped to its name.
|
||||||
|
var _bindata = map[string]func() ([]byte, error){
|
||||||
|
"frontend/assets/application.coffee": frontend_assets_application_coffee,
|
||||||
|
"frontend/assets/application.js": frontend_assets_application_js,
|
||||||
|
"frontend/index.html": frontend_index_html,
|
||||||
|
}
|
||||||
|
// AssetDir returns the file names below a certain
|
||||||
|
// directory embedded in the file by go-bindata.
|
||||||
|
// For example if you run go-bindata on data/... and data contains the
|
||||||
|
// following hierarchy:
|
||||||
|
// data/
|
||||||
|
// foo.txt
|
||||||
|
// img/
|
||||||
|
// a.png
|
||||||
|
// b.png
|
||||||
|
// then AssetDir("data") would return []string{"foo.txt", "img"}
|
||||||
|
// AssetDir("data/img") would return []string{"a.png", "b.png"}
|
||||||
|
// AssetDir("foo.txt") and AssetDir("notexist") would return an error
|
||||||
|
// AssetDir("") will return []string{"data"}.
|
||||||
|
func AssetDir(name string) ([]string, error) {
|
||||||
|
node := _bintree
|
||||||
|
if len(name) != 0 {
|
||||||
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
||||||
|
pathList := strings.Split(cannonicalName, "/")
|
||||||
|
for _, p := range pathList {
|
||||||
|
node = node.Children[p]
|
||||||
|
if node == nil {
|
||||||
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if node.Func != nil {
|
||||||
|
return nil, fmt.Errorf("Asset %s not found", name)
|
||||||
|
}
|
||||||
|
rv := make([]string, 0, len(node.Children))
|
||||||
|
for name := range node.Children {
|
||||||
|
rv = append(rv, name)
|
||||||
|
}
|
||||||
|
return rv, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type _bintree_t struct {
|
||||||
|
Func func() ([]byte, error)
|
||||||
|
Children map[string]*_bintree_t
|
||||||
|
}
|
||||||
|
var _bintree = &_bintree_t{nil, map[string]*_bintree_t{
|
||||||
|
"frontend": &_bintree_t{nil, map[string]*_bintree_t{
|
||||||
|
"assets": &_bintree_t{nil, map[string]*_bintree_t{
|
||||||
|
"application.coffee": &_bintree_t{frontend_assets_application_coffee, map[string]*_bintree_t{
|
||||||
|
}},
|
||||||
|
"application.js": &_bintree_t{frontend_assets_application_js, map[string]*_bintree_t{
|
||||||
|
}},
|
||||||
|
}},
|
||||||
|
"index.html": &_bintree_t{frontend_index_html, map[string]*_bintree_t{
|
||||||
|
}},
|
||||||
|
}},
|
||||||
|
}}
|
68
frontend/assets/application.coffee
Normal file
68
frontend/assets/application.coffee
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
if window.Storage and window.JSON
|
||||||
|
window.$storage = (key) ->
|
||||||
|
set: (value) ->
|
||||||
|
localStorage.setItem(key, JSON.stringify(value))
|
||||||
|
get: ->
|
||||||
|
item = localStorage.getItem(key)
|
||||||
|
JSON.parse(item) if item
|
||||||
|
|
||||||
|
$ ->
|
||||||
|
window.lastLoad = now()
|
||||||
|
window.refreshPassword = 30000
|
||||||
|
window.tickerInterval = 200
|
||||||
|
|
||||||
|
window.ticker = setInterval tick, window.tickerInterval
|
||||||
|
$('#focusedInput').bind 'click', stopRefresh
|
||||||
|
$('#focusedInput').bind 'blur', restartRefresh
|
||||||
|
$('#optionSave').bind 'click', saveOptions
|
||||||
|
|
||||||
|
loadOptions()
|
||||||
|
loadPassword()
|
||||||
|
|
||||||
|
now = () ->
|
||||||
|
d = new Date()
|
||||||
|
d.getTime()
|
||||||
|
|
||||||
|
stopRefresh = () ->
|
||||||
|
clearInterval(window.ticker)
|
||||||
|
$('#focusedInput').select()
|
||||||
|
false
|
||||||
|
|
||||||
|
restartRefresh = () ->
|
||||||
|
window.lastLoad = now()
|
||||||
|
window.ticker = setInterval tick, window.tickerInterval
|
||||||
|
|
||||||
|
setProgress = (perc) ->
|
||||||
|
$('.progress-bar').css('width', "#{perc}%")
|
||||||
|
|
||||||
|
loadPassword = () ->
|
||||||
|
options = loadOptions()
|
||||||
|
$.get "/v1/getPassword?length=#{options.passwordLength}&special=#{options.useSpecial}", (data) ->
|
||||||
|
$('#focusedInput').val(data)
|
||||||
|
window.lastLoad = now()
|
||||||
|
|
||||||
|
saveOptions = () ->
|
||||||
|
options =
|
||||||
|
passwordLength: $('#passwordLengthOption').val()
|
||||||
|
useSpecial: $('#useSpecialOption')[0].checked
|
||||||
|
|
||||||
|
window.$storage('SecurePasswordOptions').set(options)
|
||||||
|
$('#settingsModal').modal('hide')
|
||||||
|
loadPassword()
|
||||||
|
|
||||||
|
loadOptions = () ->
|
||||||
|
options = window.$storage('SecurePasswordOptions').get()
|
||||||
|
if options == undefined
|
||||||
|
options =
|
||||||
|
passwordLength: 20
|
||||||
|
useSpecial: false
|
||||||
|
$('#passwordLengthOption').val(options.passwordLength)
|
||||||
|
$('#useSpecialOption')[0].checked = options.useSpecial
|
||||||
|
options
|
||||||
|
|
||||||
|
tick = () ->
|
||||||
|
diff = now() - window.lastLoad
|
||||||
|
perc = (window.refreshPassword - diff) / window.refreshPassword * 100
|
||||||
|
setProgress perc
|
||||||
|
if diff >= window.refreshPassword
|
||||||
|
loadPassword()
|
99
frontend/assets/application.js
Normal file
99
frontend/assets/application.js
Normal file
|
@ -0,0 +1,99 @@
|
||||||
|
// Generated by CoffeeScript 1.7.1
|
||||||
|
(function() {
|
||||||
|
var loadOptions, loadPassword, now, restartRefresh, saveOptions, setProgress, stopRefresh, tick;
|
||||||
|
|
||||||
|
if (window.Storage && window.JSON) {
|
||||||
|
window.$storage = function(key) {
|
||||||
|
return {
|
||||||
|
set: function(value) {
|
||||||
|
return localStorage.setItem(key, JSON.stringify(value));
|
||||||
|
},
|
||||||
|
get: function() {
|
||||||
|
var item;
|
||||||
|
item = localStorage.getItem(key);
|
||||||
|
if (item) {
|
||||||
|
return JSON.parse(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
window.lastLoad = now();
|
||||||
|
window.refreshPassword = 30000;
|
||||||
|
window.tickerInterval = 200;
|
||||||
|
window.ticker = setInterval(tick, window.tickerInterval);
|
||||||
|
$('#focusedInput').bind('click', stopRefresh);
|
||||||
|
$('#focusedInput').bind('blur', restartRefresh);
|
||||||
|
$('#optionSave').bind('click', saveOptions);
|
||||||
|
loadOptions();
|
||||||
|
return loadPassword();
|
||||||
|
});
|
||||||
|
|
||||||
|
now = function() {
|
||||||
|
var d;
|
||||||
|
d = new Date();
|
||||||
|
return d.getTime();
|
||||||
|
};
|
||||||
|
|
||||||
|
stopRefresh = function() {
|
||||||
|
clearInterval(window.ticker);
|
||||||
|
$('#focusedInput').select();
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
|
restartRefresh = function() {
|
||||||
|
window.lastLoad = now();
|
||||||
|
return window.ticker = setInterval(tick, window.tickerInterval);
|
||||||
|
};
|
||||||
|
|
||||||
|
setProgress = function(perc) {
|
||||||
|
return $('.progress-bar').css('width', "" + perc + "%");
|
||||||
|
};
|
||||||
|
|
||||||
|
loadPassword = function() {
|
||||||
|
var options;
|
||||||
|
options = loadOptions();
|
||||||
|
return $.get("/v1/getPassword?length=" + options.passwordLength + "&special=" + options.useSpecial, function(data) {
|
||||||
|
$('#focusedInput').val(data);
|
||||||
|
return window.lastLoad = now();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
saveOptions = function() {
|
||||||
|
var options;
|
||||||
|
options = {
|
||||||
|
passwordLength: $('#passwordLengthOption').val(),
|
||||||
|
useSpecial: $('#useSpecialOption')[0].checked
|
||||||
|
};
|
||||||
|
window.$storage('SecurePasswordOptions').set(options);
|
||||||
|
$('#settingsModal').modal('hide');
|
||||||
|
return loadPassword();
|
||||||
|
};
|
||||||
|
|
||||||
|
loadOptions = function() {
|
||||||
|
var options;
|
||||||
|
options = window.$storage('SecurePasswordOptions').get();
|
||||||
|
if (options === void 0) {
|
||||||
|
options = {
|
||||||
|
passwordLength: 20,
|
||||||
|
useSpecial: false
|
||||||
|
};
|
||||||
|
}
|
||||||
|
$('#passwordLengthOption').val(options.passwordLength);
|
||||||
|
$('#useSpecialOption')[0].checked = options.useSpecial;
|
||||||
|
return options;
|
||||||
|
};
|
||||||
|
|
||||||
|
tick = function() {
|
||||||
|
var diff, perc;
|
||||||
|
diff = now() - window.lastLoad;
|
||||||
|
perc = (window.refreshPassword - diff) / window.refreshPassword * 100;
|
||||||
|
setProgress(perc);
|
||||||
|
if (diff >= window.refreshPassword) {
|
||||||
|
return loadPassword();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}).call(this);
|
132
frontend/index.html
Normal file
132
frontend/index.html
Normal file
|
@ -0,0 +1,132 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||||
|
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||||
|
<title>Secure Password</title>
|
||||||
|
|
||||||
|
<!-- Bootstrap -->
|
||||||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
|
||||||
|
<link rel="stylesheet" href="http://bootswatch.com/paper/bootstrap.min.css">
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||||
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||||
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
<style>
|
||||||
|
body { background-color: #e2e2e2; }
|
||||||
|
.white { background-color: #fff; }
|
||||||
|
.center { text-align: center; }
|
||||||
|
.faq { margin-top: 3em; }
|
||||||
|
.progress { margin-bottom: 0px; }
|
||||||
|
.jumbotron p { margin-bottom: 0; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<nav class="navbar navbar-default">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="modal" data-target="#settingsModal">
|
||||||
|
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
|
||||||
|
</button>
|
||||||
|
<a class="navbar-brand" href="#">Secure Password</a>
|
||||||
|
</div>
|
||||||
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
<li>
|
||||||
|
<button type="button" class="btn btn-default navbar-btn" data-toggle="modal" data-target="#settingsModal">
|
||||||
|
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span> Settings
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
|
||||||
|
|
||||||
|
<div class="jumbotron">
|
||||||
|
<p class="center">
|
||||||
|
I will generate a new secure password every 30 seconds. Just click the password to keep the current one.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
Your password
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<input class="form-control center" id="focusedInput" type="text" value="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="panel-footer">
|
||||||
|
<div class="progress">
|
||||||
|
<div class="progress-bar" style="width: 100%;"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
FAQ
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<ul>
|
||||||
|
<li><strong>Do you store my password?</strong><br>
|
||||||
|
You decide which one to take and we will not store any of the generated passwords. That way you can be sure only you know which password you chose.
|
||||||
|
</li>
|
||||||
|
<li><strong>How secure are these passwords?</strong><br>
|
||||||
|
All passwords are checked against a set of rules to ensure they does not contain patterns which would make it easy for programs to guess the password.
|
||||||
|
</li>
|
||||||
|
<li><strong>Can I read the source code?</strong><br>
|
||||||
|
Of course you can. It's published on <a href="https://github.com/Luzifer/password">GitHub</a> together with a test suite to ensure the passwords are safe.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal" id="settingsModal">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
|
<h4 class="modal-title">Settings</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="passwordLengthOption" class="control-label">Password length:</label>
|
||||||
|
<input type="number" class="form-control" value="20" id="passwordLengthOption">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" id="useSpecialOption"> Use special characters
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||||
|
<button type="button" class="btn btn-primary" id="optionSave">Save changes</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
||||||
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
||||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
||||||
|
<script src="assets/application.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
23
main.go
23
main.go
|
@ -2,6 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -58,6 +59,8 @@ func main() {
|
||||||
|
|
||||||
func startAPIServer(c *cli.Context) {
|
func startAPIServer(c *cli.Context) {
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
|
r.HandleFunc("/", handleFrontend).Methods("GET")
|
||||||
|
r.PathPrefix("/assets").HandlerFunc(handleAssets).Methods("GET")
|
||||||
r.HandleFunc("/v1/getPassword", handleAPIGetPasswordv1).Methods("GET")
|
r.HandleFunc("/v1/getPassword", handleAPIGetPasswordv1).Methods("GET")
|
||||||
|
|
||||||
http.Handle("/", r)
|
http.Handle("/", r)
|
||||||
|
@ -97,3 +100,23 @@ func handleAPIGetPasswordv1(res http.ResponseWriter, r *http.Request) {
|
||||||
res.Header().Add("Cache-Control", "no-cache")
|
res.Header().Add("Cache-Control", "no-cache")
|
||||||
res.Write([]byte(password))
|
res.Write([]byte(password))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func handleFrontend(res http.ResponseWriter, r *http.Request) {
|
||||||
|
res.Header().Add("Content-Type", "text/html")
|
||||||
|
buf, err := Asset("frontend/index.html")
|
||||||
|
if err != nil {
|
||||||
|
http.Error(res, "Unable to load interface", http.StatusInternalServerError)
|
||||||
|
log.Println(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
res.Write(buf)
|
||||||
|
}
|
||||||
|
|
||||||
|
func handleAssets(res http.ResponseWriter, r *http.Request) {
|
||||||
|
buf, err := Asset(fmt.Sprintf("frontend%s", r.URL.Path))
|
||||||
|
if err != nil {
|
||||||
|
http.Error(res, "Unable to load interface", http.StatusInternalServerError)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
res.Write(buf)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue