diff --git a/web/dist/dist_gen.go b/web/dist/dist_gen.go index 189dd0b48..c81a66eed 100644 --- a/web/dist/dist_gen.go +++ b/web/dist/dist_gen.go @@ -136,36 +136,36 @@ func MustLookup(path string) []byte { // Index of all files var files = map[string]file{ - "/static/bundle.808a5c44050d60e33a59.js": { + "/favicon.svg": { data: file0, FileInfo: &fileInfo{ - name: "bundle.808a5c44050d60e33a59.js", - size: 374585, - modTime: time.Unix(1573591236, 0), - }, - }, - "/static/vendor.7f216335d46eed670011.js": { - data: file1, - FileInfo: &fileInfo{ - name: "vendor.7f216335d46eed670011.js", - size: 272277, - modTime: time.Unix(1573591236, 0), - }, - }, - "/favicon.png": { - data: file2, - FileInfo: &fileInfo{ - name: "favicon.png", - size: 1374, - modTime: time.Unix(1573591236, 0), + name: "favicon.svg", + size: 1728, + modTime: time.Unix(1615794884, 0), }, }, "/index.html": { - data: file3, + data: file1, FileInfo: &fileInfo{ name: "index.html", size: 388, - modTime: time.Unix(1573591236, 0), + modTime: time.Unix(1615794884, 0), + }, + }, + "/static/bundle.14b3605fca845fd47915.js": { + data: file2, + FileInfo: &fileInfo{ + name: "bundle.14b3605fca845fd47915.js", + size: 386504, + modTime: time.Unix(1615794884, 0), + }, + }, + "/static/vendor.497f1f486226ce834442.js": { + data: file3, + FileInfo: &fileInfo{ + name: "vendor.497f1f486226ce834442.js", + size: 272277, + modTime: time.Unix(1615794884, 0), }, }, } @@ -174,8 +174,171 @@ var files = map[string]file{ // embedded files. // -// /static/bundle.808a5c44050d60e33a59.js -var file0 = []byte(`webpackJsonp([0],[ +// /favicon.svg +var file0 = []byte{ + 0x3c, 0x73, 0x76, 0x67, 0x20, 0x78, 0x6d, 0x6c, 0x6e, 0x73, 0x3d, 0x22, + 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x77, + 0x33, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x32, 0x30, 0x30, 0x30, 0x2f, 0x73, + 0x76, 0x67, 0x22, 0x20, 0x77, 0x69, 0x64, 0x74, 0x68, 0x3d, 0x22, 0x32, + 0x32, 0x22, 0x20, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3d, 0x22, 0x32, + 0x32, 0x22, 0x3e, 0x3c, 0x70, 0x61, 0x74, 0x68, 0x20, 0x64, 0x3d, 0x22, + 0x4d, 0x31, 0x2e, 0x32, 0x36, 0x33, 0x20, 0x32, 0x2e, 0x37, 0x34, 0x34, + 0x43, 0x32, 0x2e, 0x34, 0x31, 0x20, 0x33, 0x2e, 0x38, 0x33, 0x32, 0x20, + 0x32, 0x2e, 0x38, 0x34, 0x35, 0x20, 0x34, 0x2e, 0x39, 0x33, 0x32, 0x20, + 0x34, 0x2e, 0x31, 0x31, 0x38, 0x20, 0x35, 0x2e, 0x30, 0x38, 0x6c, 0x2e, + 0x30, 0x33, 0x36, 0x2e, 0x30, 0x30, 0x37, 0x63, 0x2d, 0x2e, 0x35, 0x38, + 0x38, 0x2e, 0x36, 0x30, 0x36, 0x2d, 0x31, 0x2e, 0x30, 0x39, 0x20, 0x31, + 0x2e, 0x34, 0x30, 0x32, 0x2d, 0x31, 0x2e, 0x34, 0x34, 0x33, 0x20, 0x32, + 0x2e, 0x34, 0x32, 0x33, 0x2d, 0x2e, 0x33, 0x38, 0x20, 0x31, 0x2e, 0x30, + 0x39, 0x36, 0x2d, 0x2e, 0x34, 0x38, 0x38, 0x20, 0x32, 0x2e, 0x32, 0x38, + 0x35, 0x2d, 0x2e, 0x36, 0x31, 0x34, 0x20, 0x33, 0x2e, 0x36, 0x35, 0x39, + 0x2d, 0x2e, 0x31, 0x39, 0x20, 0x32, 0x2e, 0x30, 0x34, 0x36, 0x2d, 0x2e, + 0x34, 0x30, 0x31, 0x20, 0x34, 0x2e, 0x33, 0x36, 0x34, 0x2d, 0x31, 0x2e, + 0x35, 0x35, 0x36, 0x20, 0x37, 0x2e, 0x32, 0x36, 0x39, 0x2d, 0x32, 0x2e, + 0x34, 0x38, 0x36, 0x20, 0x36, 0x2e, 0x32, 0x35, 0x38, 0x2d, 0x31, 0x2e, + 0x31, 0x32, 0x20, 0x31, 0x31, 0x2e, 0x36, 0x33, 0x2e, 0x33, 0x33, 0x32, + 0x20, 0x31, 0x37, 0x2e, 0x33, 0x31, 0x37, 0x2e, 0x36, 0x36, 0x34, 0x20, + 0x32, 0x2e, 0x36, 0x30, 0x34, 0x20, 0x31, 0x2e, 0x33, 0x34, 0x38, 0x20, + 0x35, 0x2e, 0x32, 0x39, 0x37, 0x20, 0x31, 0x2e, 0x36, 0x34, 0x32, 0x20, + 0x38, 0x2e, 0x31, 0x30, 0x37, 0x61, 0x2e, 0x38, 0x35, 0x37, 0x2e, 0x38, + 0x35, 0x37, 0x20, 0x30, 0x20, 0x30, 0x30, 0x2e, 0x36, 0x33, 0x33, 0x2e, + 0x37, 0x34, 0x34, 0x2e, 0x38, 0x36, 0x2e, 0x38, 0x36, 0x20, 0x30, 0x20, + 0x30, 0x30, 0x2e, 0x39, 0x32, 0x32, 0x2d, 0x2e, 0x33, 0x32, 0x33, 0x63, + 0x2e, 0x32, 0x32, 0x37, 0x2d, 0x2e, 0x33, 0x31, 0x33, 0x2e, 0x35, 0x32, + 0x34, 0x2d, 0x2e, 0x37, 0x39, 0x37, 0x2e, 0x38, 0x36, 0x2d, 0x31, 0x2e, + 0x34, 0x32, 0x34, 0x2e, 0x38, 0x34, 0x20, 0x33, 0x2e, 0x33, 0x32, 0x33, + 0x20, 0x31, 0x2e, 0x33, 0x35, 0x35, 0x20, 0x36, 0x2e, 0x31, 0x33, 0x20, + 0x31, 0x2e, 0x37, 0x38, 0x33, 0x20, 0x38, 0x2e, 0x36, 0x39, 0x37, 0x61, + 0x2e, 0x38, 0x36, 0x36, 0x2e, 0x38, 0x36, 0x36, 0x20, 0x30, 0x20, 0x30, + 0x30, 0x31, 0x2e, 0x35, 0x31, 0x37, 0x2e, 0x34, 0x31, 0x63, 0x32, 0x2e, + 0x38, 0x38, 0x2d, 0x33, 0x2e, 0x34, 0x36, 0x33, 0x20, 0x33, 0x2e, 0x37, + 0x36, 0x33, 0x2d, 0x38, 0x2e, 0x36, 0x33, 0x36, 0x20, 0x32, 0x2e, 0x31, + 0x38, 0x34, 0x2d, 0x31, 0x32, 0x2e, 0x36, 0x37, 0x34, 0x2e, 0x34, 0x35, + 0x39, 0x2d, 0x32, 0x2e, 0x34, 0x33, 0x33, 0x20, 0x31, 0x2e, 0x34, 0x30, + 0x32, 0x2d, 0x34, 0x2e, 0x34, 0x35, 0x20, 0x32, 0x2e, 0x33, 0x39, 0x38, + 0x2d, 0x36, 0x2e, 0x35, 0x38, 0x33, 0x2e, 0x35, 0x33, 0x36, 0x2d, 0x31, + 0x2e, 0x31, 0x35, 0x20, 0x31, 0x2e, 0x30, 0x38, 0x2d, 0x32, 0x2e, 0x33, + 0x31, 0x38, 0x20, 0x31, 0x2e, 0x35, 0x35, 0x2d, 0x33, 0x2e, 0x35, 0x36, + 0x36, 0x2e, 0x32, 0x32, 0x38, 0x2d, 0x2e, 0x30, 0x38, 0x34, 0x2e, 0x35, + 0x36, 0x39, 0x2d, 0x2e, 0x33, 0x31, 0x34, 0x2e, 0x37, 0x39, 0x2d, 0x2e, + 0x34, 0x34, 0x31, 0x6c, 0x31, 0x2e, 0x37, 0x30, 0x37, 0x2d, 0x2e, 0x39, + 0x38, 0x31, 0x2d, 0x2e, 0x32, 0x35, 0x36, 0x20, 0x31, 0x2e, 0x30, 0x35, + 0x32, 0x61, 0x2e, 0x38, 0x36, 0x34, 0x2e, 0x38, 0x36, 0x34, 0x20, 0x30, + 0x20, 0x30, 0x30, 0x31, 0x2e, 0x36, 0x37, 0x38, 0x2e, 0x34, 0x30, 0x38, + 0x6c, 0x2e, 0x36, 0x38, 0x2d, 0x32, 0x2e, 0x38, 0x35, 0x38, 0x20, 0x31, + 0x2e, 0x32, 0x38, 0x35, 0x2d, 0x32, 0x2e, 0x39, 0x35, 0x61, 0x2e, 0x38, + 0x36, 0x33, 0x2e, 0x38, 0x36, 0x33, 0x20, 0x30, 0x20, 0x31, 0x30, 0x2d, + 0x31, 0x2e, 0x35, 0x38, 0x31, 0x2d, 0x2e, 0x36, 0x38, 0x37, 0x6c, 0x2d, + 0x31, 0x2e, 0x31, 0x35, 0x32, 0x20, 0x32, 0x2e, 0x36, 0x36, 0x39, 0x2d, + 0x32, 0x2e, 0x33, 0x38, 0x33, 0x20, 0x31, 0x2e, 0x33, 0x37, 0x32, 0x61, + 0x31, 0x38, 0x2e, 0x39, 0x37, 0x20, 0x31, 0x38, 0x2e, 0x39, 0x37, 0x20, + 0x30, 0x20, 0x30, 0x30, 0x2e, 0x35, 0x30, 0x38, 0x2d, 0x32, 0x2e, 0x39, + 0x38, 0x31, 0x63, 0x2e, 0x34, 0x33, 0x32, 0x2d, 0x34, 0x2e, 0x38, 0x36, + 0x2d, 0x2e, 0x37, 0x31, 0x38, 0x2d, 0x39, 0x2e, 0x30, 0x37, 0x34, 0x2d, + 0x33, 0x2e, 0x30, 0x36, 0x36, 0x2d, 0x31, 0x31, 0x2e, 0x32, 0x36, 0x36, + 0x2d, 0x2e, 0x31, 0x36, 0x33, 0x2d, 0x2e, 0x31, 0x35, 0x37, 0x2d, 0x2e, + 0x32, 0x30, 0x38, 0x2d, 0x2e, 0x32, 0x38, 0x31, 0x2d, 0x2e, 0x32, 0x34, + 0x37, 0x2d, 0x2e, 0x32, 0x36, 0x2e, 0x30, 0x39, 0x35, 0x2d, 0x2e, 0x31, + 0x32, 0x2e, 0x32, 0x34, 0x39, 0x2d, 0x2e, 0x32, 0x36, 0x2e, 0x33, 0x35, + 0x38, 0x2d, 0x2e, 0x33, 0x37, 0x34, 0x20, 0x32, 0x2e, 0x32, 0x38, 0x33, + 0x2d, 0x31, 0x2e, 0x36, 0x39, 0x33, 0x20, 0x36, 0x2e, 0x30, 0x34, 0x37, + 0x2d, 0x2e, 0x31, 0x34, 0x37, 0x20, 0x38, 0x2e, 0x33, 0x31, 0x39, 0x2e, + 0x37, 0x35, 0x2e, 0x35, 0x38, 0x39, 0x2e, 0x32, 0x33, 0x32, 0x2e, 0x38, + 0x37, 0x36, 0x2d, 0x2e, 0x33, 0x33, 0x37, 0x2e, 0x33, 0x31, 0x36, 0x2d, + 0x2e, 0x36, 0x37, 0x2d, 0x31, 0x2e, 0x39, 0x35, 0x2d, 0x31, 0x2e, 0x31, + 0x35, 0x33, 0x2d, 0x35, 0x2e, 0x39, 0x34, 0x38, 0x2d, 0x34, 0x2e, 0x31, + 0x39, 0x36, 0x2d, 0x38, 0x2e, 0x31, 0x38, 0x38, 0x2d, 0x36, 0x2e, 0x31, + 0x39, 0x33, 0x2d, 0x2e, 0x33, 0x31, 0x33, 0x2d, 0x2e, 0x32, 0x37, 0x35, + 0x2d, 0x2e, 0x35, 0x32, 0x37, 0x2d, 0x2e, 0x36, 0x30, 0x37, 0x2d, 0x2e, + 0x38, 0x39, 0x2d, 0x2e, 0x39, 0x31, 0x33, 0x43, 0x39, 0x2e, 0x38, 0x32, + 0x35, 0x2e, 0x35, 0x35, 0x35, 0x20, 0x34, 0x2e, 0x30, 0x37, 0x32, 0x20, + 0x33, 0x2e, 0x30, 0x35, 0x37, 0x20, 0x31, 0x2e, 0x33, 0x35, 0x35, 0x20, + 0x32, 0x2e, 0x35, 0x36, 0x39, 0x63, 0x2d, 0x2e, 0x31, 0x30, 0x32, 0x2d, + 0x2e, 0x30, 0x31, 0x38, 0x2d, 0x2e, 0x31, 0x36, 0x36, 0x2e, 0x31, 0x30, + 0x33, 0x2d, 0x2e, 0x30, 0x39, 0x32, 0x2e, 0x31, 0x37, 0x35, 0x6d, 0x31, + 0x30, 0x2e, 0x39, 0x38, 0x20, 0x35, 0x2e, 0x38, 0x39, 0x39, 0x63, 0x2d, + 0x2e, 0x30, 0x36, 0x20, 0x31, 0x2e, 0x32, 0x34, 0x32, 0x2d, 0x2e, 0x36, + 0x30, 0x33, 0x20, 0x31, 0x2e, 0x38, 0x2d, 0x31, 0x20, 0x32, 0x2e, 0x32, + 0x30, 0x38, 0x2d, 0x2e, 0x32, 0x31, 0x37, 0x2e, 0x32, 0x32, 0x34, 0x2d, + 0x2e, 0x34, 0x32, 0x36, 0x2e, 0x34, 0x33, 0x36, 0x2d, 0x2e, 0x35, 0x32, + 0x34, 0x2e, 0x37, 0x33, 0x38, 0x2d, 0x2e, 0x32, 0x33, 0x36, 0x2e, 0x37, + 0x31, 0x34, 0x2e, 0x30, 0x30, 0x38, 0x20, 0x31, 0x2e, 0x35, 0x31, 0x2e, + 0x36, 0x36, 0x20, 0x32, 0x2e, 0x31, 0x34, 0x33, 0x20, 0x31, 0x2e, 0x39, + 0x37, 0x34, 0x20, 0x31, 0x2e, 0x38, 0x34, 0x20, 0x32, 0x2e, 0x39, 0x32, + 0x35, 0x20, 0x35, 0x2e, 0x35, 0x32, 0x37, 0x20, 0x32, 0x2e, 0x35, 0x33, + 0x38, 0x20, 0x39, 0x2e, 0x38, 0x36, 0x2d, 0x2e, 0x32, 0x39, 0x31, 0x20, + 0x33, 0x2e, 0x32, 0x38, 0x38, 0x2d, 0x31, 0x2e, 0x34, 0x34, 0x38, 0x20, + 0x35, 0x2e, 0x37, 0x36, 0x33, 0x2d, 0x32, 0x2e, 0x36, 0x37, 0x31, 0x20, + 0x38, 0x2e, 0x33, 0x38, 0x35, 0x2d, 0x31, 0x2e, 0x30, 0x33, 0x31, 0x20, + 0x32, 0x2e, 0x32, 0x30, 0x37, 0x2d, 0x32, 0x2e, 0x30, 0x39, 0x36, 0x20, + 0x34, 0x2e, 0x34, 0x38, 0x39, 0x2d, 0x32, 0x2e, 0x35, 0x37, 0x37, 0x20, + 0x37, 0x2e, 0x32, 0x35, 0x39, 0x61, 0x2e, 0x38, 0x35, 0x33, 0x2e, 0x38, + 0x35, 0x33, 0x20, 0x30, 0x20, 0x30, 0x30, 0x2e, 0x30, 0x35, 0x36, 0x2e, + 0x34, 0x38, 0x63, 0x31, 0x2e, 0x30, 0x32, 0x20, 0x32, 0x2e, 0x34, 0x33, + 0x34, 0x20, 0x31, 0x2e, 0x31, 0x33, 0x35, 0x20, 0x36, 0x2e, 0x31, 0x39, + 0x37, 0x2d, 0x2e, 0x36, 0x37, 0x32, 0x20, 0x39, 0x2e, 0x34, 0x36, 0x61, + 0x39, 0x36, 0x2e, 0x35, 0x38, 0x36, 0x20, 0x39, 0x36, 0x2e, 0x35, 0x38, + 0x36, 0x20, 0x30, 0x20, 0x30, 0x30, 0x2d, 0x31, 0x2e, 0x39, 0x37, 0x2d, + 0x38, 0x2e, 0x37, 0x31, 0x31, 0x63, 0x31, 0x2e, 0x39, 0x36, 0x34, 0x2d, + 0x34, 0x2e, 0x34, 0x38, 0x38, 0x20, 0x34, 0x2e, 0x32, 0x30, 0x33, 0x2d, + 0x31, 0x31, 0x2e, 0x37, 0x35, 0x20, 0x32, 0x2e, 0x39, 0x31, 0x39, 0x2d, + 0x31, 0x37, 0x2e, 0x36, 0x36, 0x38, 0x2d, 0x2e, 0x33, 0x32, 0x35, 0x2d, + 0x31, 0x2e, 0x34, 0x39, 0x37, 0x2d, 0x31, 0x2e, 0x33, 0x30, 0x34, 0x2d, + 0x33, 0x2e, 0x32, 0x37, 0x36, 0x2d, 0x32, 0x2e, 0x33, 0x38, 0x37, 0x2d, + 0x34, 0x2e, 0x32, 0x30, 0x37, 0x2d, 0x2e, 0x32, 0x30, 0x38, 0x2d, 0x2e, + 0x31, 0x38, 0x2d, 0x2e, 0x34, 0x30, 0x32, 0x2d, 0x2e, 0x32, 0x33, 0x37, + 0x2d, 0x2e, 0x34, 0x39, 0x35, 0x2d, 0x2e, 0x31, 0x36, 0x37, 0x2d, 0x2e, + 0x30, 0x38, 0x34, 0x2e, 0x30, 0x36, 0x2d, 0x2e, 0x31, 0x35, 0x31, 0x2e, + 0x32, 0x33, 0x38, 0x2d, 0x2e, 0x30, 0x36, 0x32, 0x2e, 0x34, 0x34, 0x34, + 0x2e, 0x35, 0x35, 0x20, 0x31, 0x2e, 0x32, 0x36, 0x36, 0x2e, 0x38, 0x37, + 0x39, 0x20, 0x32, 0x2e, 0x35, 0x39, 0x39, 0x20, 0x31, 0x2e, 0x32, 0x32, + 0x36, 0x20, 0x34, 0x2e, 0x32, 0x37, 0x36, 0x20, 0x31, 0x2e, 0x31, 0x32, + 0x35, 0x20, 0x35, 0x2e, 0x34, 0x34, 0x33, 0x2d, 0x2e, 0x39, 0x35, 0x36, + 0x20, 0x31, 0x32, 0x2e, 0x34, 0x39, 0x2d, 0x32, 0x2e, 0x38, 0x33, 0x35, + 0x20, 0x31, 0x36, 0x2e, 0x37, 0x38, 0x32, 0x6c, 0x2d, 0x2e, 0x31, 0x31, + 0x36, 0x2e, 0x32, 0x35, 0x39, 0x2d, 0x2e, 0x34, 0x35, 0x37, 0x2e, 0x39, + 0x38, 0x32, 0x63, 0x2d, 0x2e, 0x33, 0x35, 0x36, 0x2d, 0x32, 0x2e, 0x30, + 0x31, 0x34, 0x2d, 0x2e, 0x38, 0x35, 0x2d, 0x33, 0x2e, 0x39, 0x35, 0x2d, + 0x31, 0x2e, 0x33, 0x33, 0x2d, 0x35, 0x2e, 0x38, 0x34, 0x2d, 0x31, 0x2e, + 0x33, 0x38, 0x2d, 0x35, 0x2e, 0x34, 0x30, 0x36, 0x2d, 0x32, 0x2e, 0x36, + 0x38, 0x2d, 0x31, 0x30, 0x2e, 0x35, 0x31, 0x35, 0x2d, 0x2e, 0x34, 0x30, + 0x31, 0x2d, 0x31, 0x36, 0x2e, 0x32, 0x35, 0x34, 0x20, 0x31, 0x2e, 0x32, + 0x34, 0x37, 0x2d, 0x33, 0x2e, 0x31, 0x33, 0x37, 0x20, 0x31, 0x2e, 0x34, + 0x38, 0x33, 0x2d, 0x35, 0x2e, 0x36, 0x39, 0x32, 0x20, 0x31, 0x2e, 0x36, + 0x37, 0x32, 0x2d, 0x37, 0x2e, 0x37, 0x34, 0x36, 0x2e, 0x31, 0x31, 0x36, + 0x2d, 0x31, 0x2e, 0x32, 0x36, 0x33, 0x2e, 0x32, 0x31, 0x36, 0x2d, 0x32, + 0x2e, 0x33, 0x35, 0x35, 0x2e, 0x35, 0x32, 0x36, 0x2d, 0x33, 0x2e, 0x32, + 0x35, 0x32, 0x2e, 0x39, 0x30, 0x35, 0x2d, 0x32, 0x2e, 0x36, 0x30, 0x35, + 0x20, 0x33, 0x2e, 0x30, 0x36, 0x32, 0x2d, 0x33, 0x2e, 0x31, 0x37, 0x38, + 0x20, 0x34, 0x2e, 0x37, 0x34, 0x34, 0x2d, 0x32, 0x2e, 0x38, 0x35, 0x32, + 0x20, 0x31, 0x2e, 0x36, 0x33, 0x32, 0x2e, 0x33, 0x31, 0x36, 0x20, 0x33, + 0x2e, 0x32, 0x34, 0x20, 0x31, 0x2e, 0x35, 0x39, 0x33, 0x20, 0x33, 0x2e, + 0x31, 0x35, 0x36, 0x20, 0x33, 0x2e, 0x34, 0x32, 0x7a, 0x6d, 0x2d, 0x32, + 0x2e, 0x38, 0x36, 0x38, 0x2e, 0x36, 0x32, 0x61, 0x31, 0x2e, 0x31, 0x37, + 0x37, 0x20, 0x31, 0x2e, 0x31, 0x37, 0x37, 0x20, 0x30, 0x20, 0x31, 0x30, + 0x2e, 0x37, 0x33, 0x36, 0x2d, 0x32, 0x2e, 0x32, 0x33, 0x36, 0x20, 0x31, + 0x2e, 0x31, 0x37, 0x38, 0x20, 0x31, 0x2e, 0x31, 0x37, 0x38, 0x20, 0x30, + 0x20, 0x31, 0x30, 0x2d, 0x2e, 0x37, 0x33, 0x36, 0x20, 0x32, 0x2e, 0x32, + 0x33, 0x37, 0x7a, 0x22, 0x2f, 0x3e, 0x3c, 0x2f, 0x73, 0x76, 0x67, 0x3e, +} + +// /index.html +var file1 = []byte(` + + + + + + + + + + + +`) + +// /static/bundle.14b3605fca845fd47915.js +var file2 = []byte(`webpackJsonp([0],[ /* 0 */, /* 1 */, /* 2 */, @@ -661,58 +824,58 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var drone = exports.drone = function drone(client, Component) { - // @see https://github.com/yannickcr/eslint-plugin-react/issues/512 - // eslint-disable-next-line react/display-name - var component = function (_React$Component) { - _inherits(component, _React$Component); + // @see https://github.com/yannickcr/eslint-plugin-react/issues/512 + // eslint-disable-next-line react/display-name + var component = function (_React$Component) { + _inherits(component, _React$Component); - function component() { - _classCallCheck(this, component); + function component() { + _classCallCheck(this, component); - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - component.prototype.getChildContext = function getChildContext() { - return { - drone: client - }; - }; + component.prototype.getChildContext = function getChildContext() { + return { + drone: client + }; + }; - component.prototype.render = function render() { - return _react2["default"].createElement(Component, _extends({}, this.state, this.props)); - }; + component.prototype.render = function render() { + return _react2["default"].createElement(Component, _extends({}, this.state, this.props)); + }; - return component; - }(_react2["default"].Component); + return component; + }(_react2["default"].Component); - component.childContextTypes = { - drone: function drone(props, propName) {} - }; + component.childContextTypes = { + drone: function drone(props, propName) {} + }; - return component; + return component; }; var inject = exports.inject = function inject(Component) { - // @see https://github.com/yannickcr/eslint-plugin-react/issues/512 - // eslint-disable-next-line react/display-name - var component = function (_React$Component2) { - _inherits(component, _React$Component2); + // @see https://github.com/yannickcr/eslint-plugin-react/issues/512 + // eslint-disable-next-line react/display-name + var component = function (_React$Component2) { + _inherits(component, _React$Component2); - function component() { - _classCallCheck(this, component); + function component() { + _classCallCheck(this, component); - return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments)); + } - component.prototype.render = function render() { - this.props.drone = this.context.drone; - return _react2["default"].createElement(Component, _extends({}, this.state, this.props)); - }; + component.prototype.render = function render() { + this.props.drone = this.context.drone; + return _react2["default"].createElement(Component, _extends({}, this.state, this.props)); + }; - return component; - }(_react2["default"].Component); + return component; + }(_react2["default"].Component); - return component; + return component; }; /***/ }), @@ -740,16 +903,16 @@ var _feed = __webpack_require__(126); * @param {string} name - The repository name. */ var fetchRepository = exports.fetchRepository = function fetchRepository(tree, client, owner, name) { - tree.unset(["repo", "error"]); - tree.unset(["repo", "loaded"]); + tree.unset(["repo", "error"]); + tree.unset(["repo", "loaded"]); - client.getRepo(owner, name).then(function (repo) { - tree.set(["repos", "data", repo.full_name], repo); - tree.set(["repo", "loaded"], true); - })["catch"](function (error) { - tree.set(["repo", "error"], error); - tree.set(["repo", "loaded"], true); - }); + client.getRepo(owner, name).then(function (repo) { + tree.set(["repos", "data", repo.full_name], repo); + tree.set(["repo", "loaded"], true); + })["catch"](function (error) { + tree.set(["repo", "error"], error); + tree.set(["repo", "loaded"], true); + }); }; /** @@ -760,27 +923,27 @@ var fetchRepository = exports.fetchRepository = function fetchRepository(tree, c * @param {Object} client - The drone client. */ var fetchRepostoryList = exports.fetchRepostoryList = function fetchRepostoryList(tree, client) { - tree.unset(["repos", "loaded"]); - tree.unset(["repos", "error"]); + tree.unset(["repos", "loaded"]); + tree.unset(["repos", "error"]); - client.getRepoList({ all: true }).then(function (results) { - var list = {}; - results.map(function (repo) { - list[repo.full_name] = repo; - }); + client.getRepoList({ all: true }).then(function (results) { + var list = {}; + results.map(function (repo) { + list[repo.full_name] = repo; + }); - var path = ["repos", "data"]; - if (tree.exists(path)) { - tree.deepMerge(path, list); - } else { - tree.set(path, list); - } + var path = ["repos", "data"]; + if (tree.exists(path)) { + tree.deepMerge(path, list); + } else { + tree.set(path, list); + } - tree.set(["repos", "loaded"], true); - })["catch"](function (error) { - tree.set(["repos", "loaded"], true); - tree.set(["repos", "error"], error); - }); + tree.set(["repos", "loaded"], true); + })["catch"](function (error) { + tree.set(["repos", "loaded"], true); + tree.set(["repos", "error"], error); + }); }; /** @@ -791,29 +954,29 @@ var fetchRepostoryList = exports.fetchRepostoryList = function fetchRepostoryLis * @param {Object} client - The drone client. */ var syncRepostoryList = exports.syncRepostoryList = function syncRepostoryList(tree, client) { - tree.unset(["repos", "loaded"]); - tree.unset(["repos", "error"]); + tree.unset(["repos", "loaded"]); + tree.unset(["repos", "error"]); - client.getRepoList({ all: true, flush: true }).then(function (results) { - var list = {}; - results.map(function (repo) { - list[repo.full_name] = repo; - }); + client.getRepoList({ all: true, flush: true }).then(function (results) { + var list = {}; + results.map(function (repo) { + list[repo.full_name] = repo; + }); - var path = ["repos", "data"]; - if (tree.exists(path)) { - tree.deepMerge(path, list); - } else { - tree.set(path, list); - } + var path = ["repos", "data"]; + if (tree.exists(path)) { + tree.deepMerge(path, list); + } else { + tree.set(path, list); + } - (0, _message.displayMessage)(tree, "Successfully synchronized your repository list"); - tree.set(["repos", "loaded"], true); - })["catch"](function (error) { - (0, _message.displayMessage)(tree, "Failed to synchronize your repository list"); - tree.set(["repos", "loaded"], true); - tree.set(["repos", "error"], error); - }); + (0, _message.displayMessage)(tree, "Successfully synchronized your repository list"); + tree.set(["repos", "loaded"], true); + })["catch"](function (error) { + (0, _message.displayMessage)(tree, "Failed to synchronize your repository list"); + tree.set(["repos", "loaded"], true); + tree.set(["repos", "error"], error); + }); }; /** @@ -827,12 +990,12 @@ var syncRepostoryList = exports.syncRepostoryList = function syncRepostoryList(t * @param {Object} data - The repository updates. */ var updateRepository = exports.updateRepository = function updateRepository(tree, client, owner, name, data) { - client.updateRepo(owner, name, data).then(function (repo) { - tree.set(["repos", "data", repo.full_name], repo); - (0, _message.displayMessage)(tree, "Successfully updated the repository settings"); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to update the repository settings"); - }); + client.updateRepo(owner, name, data).then(function (repo) { + tree.set(["repos", "data", repo.full_name], repo); + (0, _message.displayMessage)(tree, "Successfully updated the repository settings"); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to update the repository settings"); + }); }; /** @@ -845,13 +1008,13 @@ var updateRepository = exports.updateRepository = function updateRepository(tree * @param {string} name - The repository name. */ var enableRepository = exports.enableRepository = function enableRepository(tree, client, owner, name) { - client.activateRepo(owner, name).then(function (result) { - (0, _message.displayMessage)(tree, "Successfully activated your repository"); - tree.set(["repos", "data", result.full_name, "active"], true); - (0, _feed.fetchFeed)(tree, client); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to activate your repository"); - }); + client.activateRepo(owner, name).then(function (result) { + (0, _message.displayMessage)(tree, "Successfully activated your repository"); + tree.set(["repos", "data", result.full_name, "active"], true); + (0, _feed.fetchFeed)(tree, client); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to activate your repository"); + }); }; /** @@ -864,13 +1027,13 @@ var enableRepository = exports.enableRepository = function enableRepository(tree * @param {string} name - The repository name. */ var disableRepository = exports.disableRepository = function disableRepository(tree, client, owner, name) { - client.deleteRepo(owner, name).then(function (result) { - (0, _message.displayMessage)(tree, "Successfully disabled your repository"); - tree.set(["repos", "data", result.full_name, "active"], false); - (0, _feed.fetchFeed)(tree, client); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to disabled your repository"); - }); + client.deleteRepo(owner, name).then(function (result) { + (0, _message.displayMessage)(tree, "Successfully disabled your repository"); + tree.set(["repos", "data", result.full_name, "active"], false); + (0, _feed.fetchFeed)(tree, client); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to disabled your repository"); + }); }; /** @@ -881,9 +1044,9 @@ var disableRepository = exports.disableRepository = function disableRepository(t * @returns {number} */ var compareRepository = exports.compareRepository = function compareRepository(a, b) { - if (a.full_name < b.full_name) return -1; - if (a.full_name > b.full_name) return 1; - return 0; + if (a.full_name < b.full_name) return -1; + if (a.full_name > b.full_name) return 1; + return 0; }; /** @@ -893,7 +1056,7 @@ var compareRepository = exports.compareRepository = function compareRepository(a * @param {string} name - The process name. */ var repositorySlug = exports.repositorySlug = function repositorySlug(owner, name) { - return owner + "/" + name; + return owner + "/" + name; }; /***/ }), @@ -1141,107 +1304,107 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" var defaultIconSize = 15; var statusLabel = function statusLabel(status) { - switch (status) { - case _status.STATUS_BLOCKED: - return "Pending Approval"; - case _status.STATUS_DECLINED: - return "Declined"; - case _status.STATUS_ERROR: - return "Error"; - case _status.STATUS_FAILURE: - return "Failure"; - case _status.STATUS_KILLED: - return "Cancelled"; - case _status.STATUS_PENDING: - return "Pending"; - case _status.STATUS_RUNNING: - return "Running"; - case _status.STATUS_SKIPPED: - return "Skipped"; - case _status.STATUS_STARTED: - return "Running"; - case _status.STATUS_SUCCESS: - return "Successful"; - default: - return ""; - } + switch (status) { + case _status.STATUS_BLOCKED: + return "Pending Approval"; + case _status.STATUS_DECLINED: + return "Declined"; + case _status.STATUS_ERROR: + return "Error"; + case _status.STATUS_FAILURE: + return "Failure"; + case _status.STATUS_KILLED: + return "Cancelled"; + case _status.STATUS_PENDING: + return "Pending"; + case _status.STATUS_RUNNING: + return "Running"; + case _status.STATUS_SKIPPED: + return "Skipped"; + case _status.STATUS_STARTED: + return "Running"; + case _status.STATUS_SUCCESS: + return "Successful"; + default: + return ""; + } }; var renderIcon = function renderIcon(status, size) { - switch (status) { - case _status.STATUS_SKIPPED: - return _react2["default"].createElement(_index.RemoveIcon, { size: size }); - case _status.STATUS_PENDING: - return _react2["default"].createElement(_index.ClockIcon, { size: size }); - case _status.STATUS_RUNNING: - case _status.STATUS_STARTED: - return _react2["default"].createElement(_index.RefreshIcon, { size: size }); - case _status.STATUS_SUCCESS: - return _react2["default"].createElement(_index.CheckIcon, { size: size }); - default: - return _react2["default"].createElement(_index.CloseIcon, { size: size }); - } + switch (status) { + case _status.STATUS_SKIPPED: + return _react2["default"].createElement(_index.RemoveIcon, { size: size }); + case _status.STATUS_PENDING: + return _react2["default"].createElement(_index.ClockIcon, { size: size }); + case _status.STATUS_RUNNING: + case _status.STATUS_STARTED: + return _react2["default"].createElement(_index.RefreshIcon, { size: size }); + case _status.STATUS_SUCCESS: + return _react2["default"].createElement(_index.CheckIcon, { size: size }); + default: + return _react2["default"].createElement(_index.CloseIcon, { size: size }); + } }; var Status = function (_Component) { - _inherits(Status, _Component); + _inherits(Status, _Component); - function Status() { - _classCallCheck(this, Status); + function Status() { + _classCallCheck(this, Status); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Status.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.status !== nextProps.status; - }; + Status.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.status !== nextProps.status; + }; - Status.prototype.render = function render() { - var status = this.props.status; + Status.prototype.render = function render() { + var status = this.props.status; - var icon = renderIcon(status, defaultIconSize); - var classes = (0, _classnames2["default"])(_status3["default"].root, _status3["default"][status]); - return _react2["default"].createElement( - "div", - { className: classes }, - icon - ); - }; + var icon = renderIcon(status, defaultIconSize); + var classes = (0, _classnames2["default"])(_status3["default"].root, _status3["default"][status]); + return _react2["default"].createElement( + "div", + { className: classes }, + icon + ); + }; - return Status; + return Status; }(_react.Component); exports["default"] = Status; var StatusLabel = exports.StatusLabel = function StatusLabel(_ref) { - var status = _ref.status; + var status = _ref.status; - return _react2["default"].createElement( - "div", - { className: (0, _classnames2["default"])(_status3["default"].label, _status3["default"][status]) }, - _react2["default"].createElement( - "div", - null, - statusLabel(status) - ) - ); + return _react2["default"].createElement( + "div", + { className: (0, _classnames2["default"])(_status3["default"].label, _status3["default"][status]) }, + _react2["default"].createElement( + "div", + null, + statusLabel(status) + ) + ); }; var StatusText = exports.StatusText = function StatusText(_ref2) { - var status = _ref2.status, - text = _ref2.text; + var status = _ref2.status, + text = _ref2.text; - return _react2["default"].createElement( - "div", - { - className: (0, _classnames2["default"])(_status3["default"].label, _status3["default"][status]), - style: "text-transform: capitalize;padding: 5px 10px;" - }, - _react2["default"].createElement( - "div", - null, - text - ) - ); + return _react2["default"].createElement( + "div", + { + className: (0, _classnames2["default"])(_status3["default"].label, _status3["default"][status]), + style: "padding: 5px 10px;" + }, + _react2["default"].createElement( + "div", + null, + text + ) + ); }; /***/ }), @@ -1330,21 +1493,21 @@ exports.subscribeToFeedOnce = subscribeToFeedOnce; * @param {Object} client - The drone client. */ var fetchFeed = exports.fetchFeed = function fetchFeed(tree, client) { - client.getBuildFeed({ latest: true }).then(function (results) { - var list = {}; - var sorted = results.sort(compareFeedItem); - sorted.map(function (repo) { - list[repo.full_name] = repo; - }); - if (sorted && sorted.length > 0) { - tree.set(["feed", "latest"], sorted[0]); - } - tree.set(["feed", "loaded"], true); - tree.set(["feed", "data"], list); - })["catch"](function (error) { - tree.set(["feed", "loaded"], true); - tree.set(["feed", "error"], error); - }); + client.getBuildFeed({ latest: true }).then(function (results) { + var list = {}; + var sorted = results.sort(compareFeedItem); + sorted.map(function (repo) { + list[repo.full_name] = repo; + }); + if (sorted && sorted.length > 0) { + tree.set(["feed", "latest"], sorted[0]); + } + tree.set(["feed", "loaded"], true); + tree.set(["feed", "data"], list); + })["catch"](function (error) { + tree.set(["feed", "loaded"], true); + tree.set(["feed", "error"], error); + }); }; /** @@ -1355,11 +1518,11 @@ var fetchFeed = exports.fetchFeed = function fetchFeed(tree, client) { * @param {Object} client - The drone client. */ function fetchFeedOnce(tree, client) { - if (fetchFeedOnce.fired) { - return; - } - fetchFeedOnce.fired = true; - return fetchFeed(tree, client); + if (fetchFeedOnce.fired) { + return; + } + fetchFeedOnce.fired = true; + return fetchFeed(tree, client); } /** @@ -1370,20 +1533,20 @@ function fetchFeedOnce(tree, client) { * @param {Object} client - The drone client. */ var subscribeToFeed = exports.subscribeToFeed = function subscribeToFeed(tree, client) { - return client.on(function (data) { - var repo = data.repo, - build = data.build; + return client.on(function (data) { + var repo = data.repo, + build = data.build; - if (tree.exists("feed", "data", repo.full_name)) { - var cursor = tree.select(["feed", "data", repo.full_name]); - cursor.merge(build); - } + if (tree.exists("feed", "data", repo.full_name)) { + var cursor = tree.select(["feed", "data", repo.full_name]); + cursor.merge(build); + } - if (tree.exists("builds", "data", repo.full_name)) { - tree.set(["builds", "data", repo.full_name, build.number], build); - } - }); + if (tree.exists("builds", "data", repo.full_name)) { + tree.set(["builds", "data", repo.full_name, build.number], build); + } + }); }; /** @@ -1394,11 +1557,11 @@ var subscribeToFeed = exports.subscribeToFeed = function subscribeToFeed(tree, c * @param {Object} client - The drone client. */ function subscribeToFeedOnce(tree, client) { - if (subscribeToFeedOnce.fired) { - return; - } - subscribeToFeedOnce.fired = true; - return subscribeToFeed(tree, client); + if (subscribeToFeedOnce.fired) { + return; + } + subscribeToFeedOnce.fired = true; + return subscribeToFeed(tree, client); } /** @@ -1408,7 +1571,7 @@ function subscribeToFeedOnce(tree, client) { * @returns {number} */ var compareFeedItem = exports.compareFeedItem = function compareFeedItem(a, b) { - return (b.started_at || b.created_at || -1) - (a.started_at || a.created_at || -1); + return (b.started_at || b.created_at || -1) - (a.started_at || a.created_at || -1); }; /***/ }), @@ -1434,29 +1597,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CloseIcon = function (_Component) { - _inherits(CloseIcon, _Component); + _inherits(CloseIcon, _Component); - function CloseIcon() { - _classCallCheck(this, CloseIcon); + function CloseIcon() { + _classCallCheck(this, CloseIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - CloseIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }), - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) - ); - }; + CloseIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }), + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) + ); + }; - return CloseIcon; + return CloseIcon; }(_react.Component); exports["default"] = CloseIcon; @@ -1498,62 +1661,62 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Runtime = function (_Component) { - _inherits(Runtime, _Component); + _inherits(Runtime, _Component); - function Runtime() { - _classCallCheck(this, Runtime); + function Runtime() { + _classCallCheck(this, Runtime); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Runtime.prototype.render = function render() { - var _props = this.props, - start = _props.start, - finish = _props.finish; + Runtime.prototype.render = function render() { + var _props = this.props, + start = _props.start, + finish = _props.finish; - return _react2["default"].createElement( - "div", - { className: _build_time2["default"].host }, - _react2["default"].createElement( - "div", - { className: _build_time2["default"].row }, - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_index.ScheduleIcon, null) - ), - _react2["default"].createElement( - "div", - null, - start ? _react2["default"].createElement(_reactTimeago2["default"], { date: start * 1000 }) : _react2["default"].createElement( - "span", - null, - "--" - ) - ) - ), - _react2["default"].createElement( - "div", - { className: _build_time2["default"].row }, - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_index.TimelapseIcon, null) - ), - _react2["default"].createElement( - "div", - null, - finish ? _react2["default"].createElement(_duration2["default"], { start: start, finished: finish }) : start ? _react2["default"].createElement(_reactTimeago2["default"], { date: start * 1000 }) : _react2["default"].createElement( - "span", - null, - "--" - ) - ) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _build_time2["default"].host }, + _react2["default"].createElement( + "div", + { className: _build_time2["default"].row }, + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_index.ScheduleIcon, null) + ), + _react2["default"].createElement( + "div", + null, + start ? _react2["default"].createElement(_reactTimeago2["default"], { date: start * 1000 }) : _react2["default"].createElement( + "span", + null, + "--" + ) + ) + ), + _react2["default"].createElement( + "div", + { className: _build_time2["default"].row }, + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_index.TimelapseIcon, null) + ), + _react2["default"].createElement( + "div", + null, + finish ? _react2["default"].createElement(_duration2["default"], { start: start, finished: finish }) : start ? _react2["default"].createElement(_reactTimeago2["default"], { date: start * 1000 }) : _react2["default"].createElement( + "span", + null, + "--" + ) + ) + ) + ); + }; - return Runtime; + return Runtime; }(_react.Component); exports["default"] = Runtime; @@ -1585,23 +1748,23 @@ var _status = __webpack_require__(87); * @param {number|string} number - The build number. */ var fetchBuild = exports.fetchBuild = function fetchBuild(tree, client, owner, name, number) { - var slug = (0, _repository.repositorySlug)(owner, name); + var slug = (0, _repository.repositorySlug)(owner, name); - tree.unset(["builds", "loaded"]); - client.getBuild(owner, name, number).then(function (build) { - var path = ["builds", "data", slug, build.number]; + tree.unset(["builds", "loaded"]); + client.getBuild(owner, name, number).then(function (build) { + var path = ["builds", "data", slug, build.number]; - if (tree.exists(path)) { - tree.deepMerge(path, build); - } else { - tree.set(path, build); - } + if (tree.exists(path)) { + tree.deepMerge(path, build); + } else { + tree.set(path, build); + } - tree.set(["builds", "loaded"], true); - })["catch"](function (error) { - tree.set(["builds", "loaded"], true); - tree.set(["builds", "error"], error); - }); + tree.set(["builds", "loaded"], true); + })["catch"](function (error) { + tree.set(["builds", "loaded"], true); + tree.set(["builds", "error"], error); + }); }; /** @@ -1614,32 +1777,32 @@ var fetchBuild = exports.fetchBuild = function fetchBuild(tree, client, owner, n * @param {string} name - The repository name. */ var fetchBuildList = exports.fetchBuildList = function fetchBuildList(tree, client, owner, name) { - var page = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1; + var page = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1; - var slug = (0, _repository.repositorySlug)(owner, name); + var slug = (0, _repository.repositorySlug)(owner, name); - tree.unset(["builds", "loaded"]); - tree.unset(["builds", "error"]); + tree.unset(["builds", "loaded"]); + tree.unset(["builds", "error"]); - client.getBuildList(owner, name, { page: page }).then(function (results) { - var list = {}; - results.map(function (build) { - list[build.number] = build; - }); + client.getBuildList(owner, name, { page: page }).then(function (results) { + var list = {}; + results.map(function (build) { + list[build.number] = build; + }); - var path = ["builds", "data", slug]; - if (tree.exists(path)) { - tree.deepMerge(path, list); - } else { - tree.set(path, list); - } + var path = ["builds", "data", slug]; + if (tree.exists(path)) { + tree.deepMerge(path, list); + } else { + tree.set(path, list); + } - tree.unset(["builds", "error"]); - tree.set(["builds", "loaded"], true); - })["catch"](function (error) { - tree.set(["builds", "error"], error); - tree.set(["builds", "loaded"], true); - }); + tree.unset(["builds", "error"]); + tree.set(["builds", "loaded"], true); + })["catch"](function (error) { + tree.set(["builds", "error"], error); + tree.set(["builds", "loaded"], true); + }); }; /** @@ -1653,11 +1816,11 @@ var fetchBuildList = exports.fetchBuildList = function fetchBuildList(tree, clie * @param {number} proc - The process number. */ var cancelBuild = exports.cancelBuild = function cancelBuild(tree, client, owner, repo, build, proc) { - client.cancelBuild(owner, repo, build, proc).then(function (result) { - (0, _message.displayMessage)(tree, "Successfully cancelled your build"); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to cancel your build"); - }); + client.cancelBuild(owner, repo, build, proc).then(function (result) { + (0, _message.displayMessage)(tree, "Successfully cancelled your build"); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to cancel your build"); + }); }; /** @@ -1670,11 +1833,11 @@ var cancelBuild = exports.cancelBuild = function cancelBuild(tree, client, owner * @param {number} build - The build number. */ var restartBuild = exports.restartBuild = function restartBuild(tree, client, owner, repo, build) { - client.restartBuild(owner, repo, build, { fork: true }).then(function (result) { - (0, _message.displayMessage)(tree, "Successfully restarted your build"); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to restart your build"); - }); + client.restartBuild(owner, repo, build, { fork: true }).then(function (result) { + (0, _message.displayMessage)(tree, "Successfully restarted your build"); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to restart your build"); + }); }; /** @@ -1687,11 +1850,11 @@ var restartBuild = exports.restartBuild = function restartBuild(tree, client, ow * @param {number} build - The build number. */ var approveBuild = exports.approveBuild = function approveBuild(tree, client, owner, repo, build) { - client.approveBuild(owner, repo, build).then(function (result) { - (0, _message.displayMessage)(tree, "Successfully processed your approval decision"); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to process your approval decision"); - }); + client.approveBuild(owner, repo, build).then(function (result) { + (0, _message.displayMessage)(tree, "Successfully processed your approval decision"); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to process your approval decision"); + }); }; /** @@ -1704,11 +1867,11 @@ var approveBuild = exports.approveBuild = function approveBuild(tree, client, ow * @param {number} build - The build number. */ var declineBuild = exports.declineBuild = function declineBuild(tree, client, owner, repo, build) { - client.declineBuild(owner, repo, build).then(function (result) { - (0, _message.displayMessage)(tree, "Successfully processed your decline decision"); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to process your decline decision"); - }); + client.declineBuild(owner, repo, build).then(function (result) { + (0, _message.displayMessage)(tree, "Successfully processed your decline decision"); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to process your decline decision"); + }); }; /** @@ -1719,7 +1882,7 @@ var declineBuild = exports.declineBuild = function declineBuild(tree, client, ow * @returns {number} */ var compareBuild = exports.compareBuild = function compareBuild(a, b) { - return b.number - a.number; + return b.number - a.number; }; /** @@ -1729,7 +1892,7 @@ var compareBuild = exports.compareBuild = function compareBuild(a, b) { * @returns {boolean} */ var assertBuildFinished = exports.assertBuildFinished = function assertBuildFinished(build) { - return build.status !== _status.STATUS_RUNNING && build.status !== _status.STATUS_PENDING; + return build.status !== _status.STATUS_RUNNING && build.status !== _status.STATUS_PENDING; }; /** @@ -1739,7 +1902,7 @@ var assertBuildFinished = exports.assertBuildFinished = function assertBuildFini * @returns {boolean} */ var assertBuildMatrix = exports.assertBuildMatrix = function assertBuildMatrix(build) { - return build && build.procs && build.procs.length > 1; + return build && build.procs && build.procs.length > 1; }; /***/ }), @@ -1778,33 +1941,33 @@ var BACK_BUTTON = exports.BACK_BUTTON = _react2["default"].createElement(_index. // helper function to render a list item. var renderItem = function renderItem(element, index) { - return _react2["default"].createElement( - "li", - { key: index }, - element - ); + return _react2["default"].createElement( + "li", + { key: index }, + element + ); }; var Breadcrumb = function (_Component) { - _inherits(Breadcrumb, _Component); + _inherits(Breadcrumb, _Component); - function Breadcrumb() { - _classCallCheck(this, Breadcrumb); + function Breadcrumb() { + _classCallCheck(this, Breadcrumb); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Breadcrumb.prototype.render = function render() { - var elements = this.props.elements; + Breadcrumb.prototype.render = function render() { + var elements = this.props.elements; - return _react2["default"].createElement( - "ol", - { className: _breadcrumb2["default"].breadcrumb }, - elements.map(renderItem) - ); - }; + return _react2["default"].createElement( + "ol", + { className: _breadcrumb2["default"].breadcrumb }, + elements.map(renderItem) + ); + }; - return Breadcrumb; + return Breadcrumb; }(_react.Component); exports["default"] = Breadcrumb; @@ -1945,29 +2108,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MenuIcon = function (_Component) { - _inherits(MenuIcon, _Component); + _inherits(MenuIcon, _Component); - function MenuIcon() { - _classCallCheck(this, MenuIcon); + function MenuIcon() { + _classCallCheck(this, MenuIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - MenuIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), - _react2["default"].createElement("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" }) - ); - }; + MenuIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), + _react2["default"].createElement("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" }) + ); + }; - return MenuIcon; + return MenuIcon; }(_react.Component); exports["default"] = MenuIcon; @@ -1995,29 +2158,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var RefreshIcon = function (_Component) { - _inherits(RefreshIcon, _Component); + _inherits(RefreshIcon, _Component); - function RefreshIcon() { - _classCallCheck(this, RefreshIcon); + function RefreshIcon() { + _classCallCheck(this, RefreshIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - RefreshIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" }), - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) - ); - }; + RefreshIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" }), + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) + ); + }; - return RefreshIcon; + return RefreshIcon; }(_react.Component); exports["default"] = RefreshIcon; @@ -2073,76 +2236,76 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var BuildEvent = function (_Component) { - _inherits(BuildEvent, _Component); + _inherits(BuildEvent, _Component); - function BuildEvent() { - _classCallCheck(this, BuildEvent); + function BuildEvent() { + _classCallCheck(this, BuildEvent); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - BuildEvent.prototype.render = function render() { - var _props = this.props, - event = _props.event, - branch = _props.branch, - commit = _props.commit, - refs = _props.refs, - refspec = _props.refspec, - link = _props.link, - target = _props.target; + BuildEvent.prototype.render = function render() { + var _props = this.props, + event = _props.event, + branch = _props.branch, + commit = _props.commit, + refs = _props.refs, + refspec = _props.refspec, + link = _props.link, + target = _props.target; - return _react2["default"].createElement( - "div", - { className: _build_event2["default"].host }, - _react2["default"].createElement( - "div", - { className: _build_event2["default"].row }, - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_index.CommitIcon, null) - ), - _react2["default"].createElement( - "div", - null, - commit && commit.substr(0, 10) - ) - ), - _react2["default"].createElement( - "div", - { className: _build_event2["default"].row }, - _react2["default"].createElement( - "div", - null, - event === _events.EVENT_TAG ? _react2["default"].createElement(_index.TagIcon, null) : event === _events.EVENT_PULL_REQUEST ? _react2["default"].createElement(_index.MergeIcon, null) : event === _events.EVENT_DEPLOY ? _react2["default"].createElement(_index.DeployIcon, null) : _react2["default"].createElement(_index.BranchIcon, null) - ), - _react2["default"].createElement( - "div", - null, - event === _events.EVENT_TAG && refs ? trimTagRef(refs) : event === _events.EVENT_PULL_REQUEST && refspec ? trimMergeRef(refs) : event === _events.EVENT_DEPLOY && target ? target : branch - ) - ), - _react2["default"].createElement( - "a", - { href: link, target: "_blank" }, - _react2["default"].createElement(_index.LaunchIcon, null) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _build_event2["default"].host }, + _react2["default"].createElement( + "div", + { className: _build_event2["default"].row }, + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_index.CommitIcon, null) + ), + _react2["default"].createElement( + "div", + null, + commit && commit.substr(0, 10) + ) + ), + _react2["default"].createElement( + "div", + { className: _build_event2["default"].row }, + _react2["default"].createElement( + "div", + null, + event === _events.EVENT_TAG ? _react2["default"].createElement(_index.TagIcon, null) : event === _events.EVENT_PULL_REQUEST ? _react2["default"].createElement(_index.MergeIcon, null) : event === _events.EVENT_DEPLOY ? _react2["default"].createElement(_index.DeployIcon, null) : _react2["default"].createElement(_index.BranchIcon, null) + ), + _react2["default"].createElement( + "div", + null, + event === _events.EVENT_TAG && refs ? trimTagRef(refs) : event === _events.EVENT_PULL_REQUEST && refspec ? trimMergeRef(refs) : event === _events.EVENT_DEPLOY && target ? target : branch + ) + ), + _react2["default"].createElement( + "a", + { href: link, target: "_blank" }, + _react2["default"].createElement(_index.LaunchIcon, null) + ) + ); + }; - return BuildEvent; + return BuildEvent; }(_react.Component); exports["default"] = BuildEvent; var trimMergeRef = function trimMergeRef(ref) { - return ref.match(/\d/g) || ref; + return ref.match(/\d/g) || ref; }; var trimTagRef = function trimTagRef(ref) { - return ref.startsWith("refs/tags/") ? ref.substr(10) : ref; + return ref.startsWith("refs/tags/") ? ref.substr(10) : ref; }; // push @@ -2181,43 +2344,43 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - return { - feed: ["feed"], - user: ["user", "data"], - syncing: ["user", "syncing"] - }; + return { + feed: ["feed"], + user: ["user", "data"], + syncing: ["user", "syncing"] + }; }; var RedirectRoot = (_dec = (0, _higherOrder.branch)(binding), _dec(_class = function (_Component) { - _inherits(RedirectRoot, _Component); + _inherits(RedirectRoot, _Component); - function RedirectRoot() { - _classCallCheck(this, RedirectRoot); + function RedirectRoot() { + _classCallCheck(this, RedirectRoot); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - RedirectRoot.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - var user = nextProps.user; + RedirectRoot.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + var user = nextProps.user; - if (!user && window) { - window.location.href = "/login?url=" + window.location.href; - } - }; + if (!user && window) { + window.location.href = "/login?url=" + window.location.href; + } + }; - RedirectRoot.prototype.render = function render() { - var _props = this.props, - user = _props.user, - syncing = _props.syncing; - var _props$feed = this.props.feed, - latest = _props$feed.latest, - loaded = _props$feed.loaded; + RedirectRoot.prototype.render = function render() { + var _props = this.props, + user = _props.user, + syncing = _props.syncing; + var _props$feed = this.props.feed, + latest = _props$feed.latest, + loaded = _props$feed.loaded; - return !loaded && syncing ? _react2["default"].createElement(_sync.Message, null) : !loaded ? undefined : !user ? undefined : !latest ? _react2["default"].createElement(_reactRouterDom.Redirect, { to: "/account/repos" }) : !latest.number ? _react2["default"].createElement(_reactRouterDom.Redirect, { to: "/" + latest.full_name }) : _react2["default"].createElement(_reactRouterDom.Redirect, { to: "/" + latest.full_name + "/" + latest.number }); - }; + return !loaded && syncing ? _react2["default"].createElement(_sync.Message, null) : !loaded ? undefined : !user ? undefined : !latest ? _react2["default"].createElement(_reactRouterDom.Redirect, { to: "/account/repos" }) : !latest.number ? _react2["default"].createElement(_reactRouterDom.Redirect, { to: "/" + latest.full_name }) : _react2["default"].createElement(_reactRouterDom.Redirect, { to: "/" + latest.full_name + "/" + latest.number }); + }; - return RedirectRoot; + return RedirectRoot; }(_react.Component)) || _class); exports["default"] = RedirectRoot; @@ -2254,51 +2417,51 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Menu = function (_Component) { - _inherits(Menu, _Component); + _inherits(Menu, _Component); - function Menu() { - var _temp, _this, _ret; + function Menu() { + var _temp, _this, _ret; - _classCallCheck(this, Menu); + _classCallCheck(this, Menu); - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.propTypes = { items: _propTypes2["default"].array, right: _propTypes2["default"].any }, _temp), _possibleConstructorReturn(_this, _ret); - } + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.propTypes = { items: _propTypes2["default"].array, right: _propTypes2["default"].any }, _temp), _possibleConstructorReturn(_this, _ret); + } - Menu.prototype.render = function render() { - var items = this.props.items; - var right = this.props.right ? _react2["default"].createElement( - "div", - { className: _menu2["default"].right }, - this.props.right - ) : null; - return _react2["default"].createElement( - "section", - { className: _menu2["default"].root }, - _react2["default"].createElement( - "div", - { className: _menu2["default"].left }, - items.map(function (i) { - return _react2["default"].createElement( - _reactRouterDom.NavLink, - { - key: i.to + i.label, - to: i.to, - exact: true, - activeClassName: _menu2["default"]["link-active"] - }, - i.label - ); - }) - ), - right - ); - }; + Menu.prototype.render = function render() { + var items = this.props.items; + var right = this.props.right ? _react2["default"].createElement( + "div", + { className: _menu2["default"].right }, + this.props.right + ) : null; + return _react2["default"].createElement( + "section", + { className: _menu2["default"].root }, + _react2["default"].createElement( + "div", + { className: _menu2["default"].left }, + items.map(function (i) { + return _react2["default"].createElement( + _reactRouterDom.NavLink, + { + key: i.to + i.label, + to: i.to, + exact: true, + activeClassName: _menu2["default"]["link-active"] + }, + i.label + ); + }) + ), + right + ); + }; - return Menu; + return Menu; }(_react.Component); exports["default"] = Menu; @@ -2333,24 +2496,24 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var RepoMenu = function (_Component) { - _inherits(RepoMenu, _Component); + _inherits(RepoMenu, _Component); - function RepoMenu() { - _classCallCheck(this, RepoMenu); + function RepoMenu() { + _classCallCheck(this, RepoMenu); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - RepoMenu.prototype.render = function render() { - var _props$match$params = this.props.match.params, - owner = _props$match$params.owner, - repo = _props$match$params.repo; + RepoMenu.prototype.render = function render() { + var _props$match$params = this.props.match.params, + owner = _props$match$params.owner, + repo = _props$match$params.repo; - var menu = [{ to: "/" + owner + "/" + repo, label: "Builds" }, { to: "/" + owner + "/" + repo + "/settings/secrets", label: "Secrets" }, { to: "/" + owner + "/" + repo + "/settings/registry", label: "Registry" }, { to: "/" + owner + "/" + repo + "/settings", label: "Settings" }]; - return _react2["default"].createElement(_menu2["default"], _extends({ items: menu }, this.props)); - }; + var menu = [{ to: "/" + owner + "/" + repo, label: "Builds" }, { to: "/" + owner + "/" + repo + "/settings/secrets", label: "Secrets" }, { to: "/" + owner + "/" + repo + "/settings/registry", label: "Registry" }, { to: "/" + owner + "/" + repo + "/settings", label: "Settings" }]; + return _react2["default"].createElement(_menu2["default"], _extends({ items: menu }, this.props)); + }; - return RepoMenu; + return RepoMenu; }(_react.Component); exports["default"] = RepoMenu; @@ -2378,8 +2541,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d var root = void 0; function init() { - var App = __webpack_require__(406)["default"]; - root = (0, _reactDom.render)(_react2["default"].createElement(App, null), document.body, root); + var App = __webpack_require__(406)["default"]; + root = (0, _reactDom.render)(_react2["default"].createElement(App, null), document.body, root); } init(); @@ -2649,51 +2812,51 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" if (false) { - require("preact/devtools"); + require("preact/devtools"); } var App = function (_Component) { - _inherits(App, _Component); + _inherits(App, _Component); - function App() { - _classCallCheck(this, App); + function App() { + _classCallCheck(this, App); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - App.prototype.render = function render() { - return _react2["default"].createElement( - _reactRouterDom.BrowserRouter, - null, - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_titles2["default"], null), - _react2["default"].createElement( - _reactRouterDom.Switch, - null, - _react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: true, component: _redirect2["default"] }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/login/form", exact: true, component: _screens.LoginForm }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/login/error", exact: true, component: _screens.LoginError }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: false, component: _layout2["default"] }) - ) - ) - ); - }; + App.prototype.render = function render() { + return _react2["default"].createElement( + _reactRouterDom.BrowserRouter, + null, + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_titles2["default"], null), + _react2["default"].createElement( + _reactRouterDom.Switch, + null, + _react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: true, component: _redirect2["default"] }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/login/form", exact: true, component: _screens.LoginForm }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/login/error", exact: true, component: _screens.LoginError }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: false, component: _layout2["default"] }) + ) + ) + ); + }; - return App; + return App; }(_react.Component); if (_state2["default"].exists(["user", "data"])) { - (0, _feed.fetchFeedOnce)(_state2["default"], _client2["default"]); - (0, _feed.subscribeToFeedOnce)(_state2["default"], _client2["default"]); + (0, _feed.fetchFeedOnce)(_state2["default"], _client2["default"]); + (0, _feed.subscribeToFeedOnce)(_state2["default"], _client2["default"]); } _client2["default"].onerror = function (error) { - console.error(error); - if (error.status === 401) { - _state2["default"].unset(["user", "data"]); - } + console.error(error); + if (error.status === 401) { + _state2["default"].unset(["user", "data"]); + } }; exports["default"] = (0, _higherOrder.root)(_state2["default"], (0, _inject.drone)(_client2["default"], App)); @@ -2719,75 +2882,75 @@ var user = window.DRONE_USER; var sync = window.DRONE_SYNC; var state = { - follow: false, - language: "en-US", + follow: false, + language: "en-US", - user: { - data: user, - error: undefined, - loaded: true, - syncing: sync - }, + user: { + data: user, + error: undefined, + loaded: true, + syncing: sync + }, - feed: { - loaded: false, - error: undefined, - data: {} - }, + feed: { + loaded: false, + error: undefined, + data: {} + }, - repos: { - loaded: false, - error: undefined, - data: {} - }, + repos: { + loaded: false, + error: undefined, + data: {} + }, - secrets: { - loaded: false, - error: undefined, - data: {} - }, + secrets: { + loaded: false, + error: undefined, + data: {} + }, - registry: { - error: undefined, - loaded: false, - data: {} - }, + registry: { + error: undefined, + loaded: false, + data: {} + }, - builds: { - loaded: false, - error: undefined, - data: {} - }, + builds: { + loaded: false, + error: undefined, + data: {} + }, - logs: { - follow: false, - loading: true, - error: false, - data: {} - }, + logs: { + follow: false, + loading: true, + error: false, + data: {} + }, - token: { - value: undefined, - error: undefined, - loading: false - }, + token: { + value: undefined, + error: undefined, + loading: false + }, - message: { - show: false, - text: undefined, - error: false - }, + message: { + show: false, + text: undefined, + error: false + }, - location: { - protocol: window.location.protocol, - host: window.location.host - } + location: { + protocol: window.location.protocol, + host: window.location.host + } }; var tree = new _baobab2["default"](state); if (window) { - window.tree = tree; + window.tree = tree; } exports["default"] = tree; @@ -2852,27 +3015,27 @@ var _index2 = _interopRequireDefault(_index); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var LoginForm = function LoginForm(props) { - return _react2["default"].createElement( - "div", - { className: _index2["default"].login }, - _react2["default"].createElement( - "form", - { method: "post", action: "/authorize" }, - _react2["default"].createElement( - "p", - null, - "Login with your version control system username and password." - ), - _react2["default"].createElement("input", { - placeholder: "Username", - name: "username", - type: "text", - spellCheck: "false" - }), - _react2["default"].createElement("input", { placeholder: "Password", name: "password", type: "password" }), - _react2["default"].createElement("input", { value: "Login", type: "submit" }) - ) - ); + return _react2["default"].createElement( + "div", + { className: _index2["default"].login }, + _react2["default"].createElement( + "form", + { method: "post", action: "/authorize" }, + _react2["default"].createElement( + "p", + null, + "Login with your version control system username and password." + ), + _react2["default"].createElement("input", { + placeholder: "Username", + name: "username", + type: "text", + spellCheck: "false" + }), + _react2["default"].createElement("input", { placeholder: "Password", name: "password", type: "password" }), + _react2["default"].createElement("input", { value: "Login", type: "submit" }) + ) + ); }; exports["default"] = LoginForm; @@ -3055,46 +3218,46 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" var DEFAULT_ERROR = "The system failed to process your Login request."; var Error = function (_Component) { - _inherits(Error, _Component); + _inherits(Error, _Component); - function Error() { - _classCallCheck(this, Error); + function Error() { + _classCallCheck(this, Error); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Error.prototype.render = function render() { - var parsed = _queryString2["default"].parse(window.location.search); - var error = DEFAULT_ERROR; + Error.prototype.render = function render() { + var parsed = _queryString2["default"].parse(window.location.search); + var error = DEFAULT_ERROR; - switch (parsed.code || parsed.error) { - case "oauth_error": - break; - case "access_denied": - break; - } + switch (parsed.code || parsed.error) { + case "oauth_error": + break; + case "access_denied": + break; + } - return _react2["default"].createElement( - "div", - { className: _index2["default"].root }, - _react2["default"].createElement( - "div", - { className: _index2["default"].alert }, - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_report2["default"], null) - ), - _react2["default"].createElement( - "div", - null, - error - ) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _index2["default"].root }, + _react2["default"].createElement( + "div", + { className: _index2["default"].alert }, + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_report2["default"], null) + ), + _react2["default"].createElement( + "div", + null, + error + ) + ) + ); + }; - return Error; + return Error; }(_react.Component); exports["default"] = Error; @@ -3125,24 +3288,24 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ReportIcon = function (_Component) { - _inherits(ReportIcon, _Component); + _inherits(ReportIcon, _Component); - function ReportIcon() { - _classCallCheck(this, ReportIcon); + function ReportIcon() { + _classCallCheck(this, ReportIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - ReportIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { className: this.props.className, viewBox: "0 0 24 24" }, - _react2["default"].createElement("path", { d: "M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z" }), - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) - ); - }; + ReportIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { className: this.props.className, viewBox: "0 0 24 24" }, + _react2["default"].createElement("path", { d: "M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z" }), + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) + ); + }; - return ReportIcon; + return ReportIcon; }(_react.Component); exports["default"] = ReportIcon; @@ -3205,15 +3368,15 @@ exports.locals = { exports.__esModule = true; exports["default"] = function () { - return _react2["default"].createElement( - _reactRouterDom.Switch, - null, - _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/tokens", exact: true, component: accountTitle }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/repos", exact: true, component: accountRepos }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/login", exact: false, component: loginTitle }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", exact: false, component: repoTitle }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: false, component: defautTitle }) - ); + return _react2["default"].createElement( + _reactRouterDom.Switch, + null, + _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/tokens", exact: true, component: accountTitle }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/repos", exact: true, component: accountRepos }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/login", exact: false, component: loginTitle }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", exact: false, component: repoTitle }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: false, component: defautTitle }) + ); }; var _react = __webpack_require__(1); @@ -3229,7 +3392,7 @@ var _reactTitleComponent2 = _interopRequireDefault(_reactTitleComponent); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var accountTitle = function accountTitle() { - return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Tokens | drone" }); + return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Tokens | woodpecker" }); }; // @see https://github.com/yannickcr/eslint-plugin-react/issues/512 @@ -3237,20 +3400,20 @@ var accountTitle = function accountTitle() { var accountRepos = function accountRepos() { - return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Repositories | drone" }); + return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Repositories | woodpecker" }); }; var loginTitle = function loginTitle() { - return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Login | drone" }); + return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Login | woodpecker" }); }; var repoTitle = function repoTitle(_ref) { - var match = _ref.match; - return _react2["default"].createElement(_reactTitleComponent2["default"], { render: match.params.owner + "/" + match.params.repo + " | drone" }); + var match = _ref.match; + return _react2["default"].createElement(_reactTitleComponent2["default"], { render: match.params.owner + "/" + match.params.repo + " | woodpecker" }); }; var defautTitle = function defautTitle() { - return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Welcome | drone" }); + return _react2["default"].createElement(_reactTitleComponent2["default"], { render: "Welcome | woodpecker" }); }; /***/ }), @@ -3374,242 +3537,238 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - return { - user: ["user"], - message: ["message"], - sidebar: ["sidebar"], - menu: ["menu"] - }; + return { + user: ["user"], + message: ["message"], + sidebar: ["sidebar"], + menu: ["menu"] + }; }; var mapScreenSizeToProps = function mapScreenSizeToProps(screenSize) { - return { - isTablet: screenSize["small"], - isMobile: screenSize["mobile"], - isDesktop: screenSize["> small"] - }; + return { + isTablet: screenSize["small"], + isMobile: screenSize["mobile"], + isDesktop: screenSize["> small"] + }; }; var Default = (_dec = (0, _higherOrder.branch)(binding), _dec2 = (0, _reactScreenSize.connectScreenSize)(mapScreenSizeToProps), (0, _inject.inject)(_class = _dec(_class = _dec2(_class = function (_Component) { - _inherits(Default, _Component); + _inherits(Default, _Component); - function Default(props, context) { - _classCallCheck(this, Default); + function Default(props, context) { + _classCallCheck(this, Default); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.state = { - menu: false, - feed: false - }; + _this.state = { + menu: false, + feed: false + }; - _this.openMenu = _this.openMenu.bind(_this); - _this.closeMenu = _this.closeMenu.bind(_this); - _this.closeSnackbar = _this.closeSnackbar.bind(_this); - return _this; - } + _this.openMenu = _this.openMenu.bind(_this); + _this.closeMenu = _this.closeMenu.bind(_this); + _this.closeSnackbar = _this.closeSnackbar.bind(_this); + return _this; + } - Default.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (nextProps.location !== this.props.location) { - this.closeMenu(true); - } - }; + Default.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { + if (nextProps.location !== this.props.location) { + this.closeMenu(true); + } + }; - Default.prototype.openMenu = function openMenu() { - this.props.dispatch(function (tree) { - tree.set(["menu"], true); - }); - }; + Default.prototype.openMenu = function openMenu() { + this.props.dispatch(function (tree) { + tree.set(["menu"], true); + }); + }; - Default.prototype.closeMenu = function closeMenu() { - this.props.dispatch(function (tree) { - tree.set(["menu"], false); - }); - }; + Default.prototype.closeMenu = function closeMenu() { + this.props.dispatch(function (tree) { + tree.set(["menu"], false); + }); + }; - Default.prototype.render = function render() { - var _props = this.props, - user = _props.user, - message = _props.message, - menu = _props.menu; + Default.prototype.render = function render() { + var _props = this.props, + user = _props.user, + message = _props.message, + menu = _props.menu; - var classes = (0, _classnames2["default"])(!user || !user.data ? _layout2["default"].guest : null); - return _react2["default"].createElement( - "div", - { className: classes }, - _react2["default"].createElement( - "div", - { className: _layout2["default"].left }, - _react2["default"].createElement( - _reactRouterDom.Switch, - null, - _react2["default"].createElement(_reactRouterDom.Route, { path: "/", component: _feed2["default"] }) - ) - ), - _react2["default"].createElement( - "div", - { className: _layout2["default"].center }, - !user || !user.data ? _react2["default"].createElement( - "a", - { - href: "/login?url=" + window.location.href, - target: "_self", - className: _layout2["default"].login - }, - "Click to Login" - ) : _react2["default"].createElement("noscript", null), - _react2["default"].createElement( - "div", - { className: _layout2["default"].title }, - _react2["default"].createElement( - _reactRouterDom.Switch, - null, - _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/repos", component: _repos.UserRepoTitle }), - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/:owner/:repo/:build(\\d*)/:proc(\\d*)", - exact: true, - component: _build.BuildLogsTitle - }), - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/:owner/:repo/:build(\\d*)", - component: _build.BuildLogsTitle - }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", component: _header2["default"] }) - ), - user && user.data ? _react2["default"].createElement( - "div", - { className: _layout2["default"].avatar }, - _react2["default"].createElement("img", { src: user.data.avatar_url }) - ) : undefined, - user && user.data ? _react2["default"].createElement( - "button", - { onClick: this.openMenu }, - _react2["default"].createElement(_menu2["default"], null) - ) : _react2["default"].createElement("noscript", null) - ), - _react2["default"].createElement( - "div", - { className: _layout2["default"].menu }, - _react2["default"].createElement( - _reactRouterDom.Switch, - null, - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/account/repos", - exact: true, - component: _menu4["default"] - }), - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/account/", - exact: false, - component: undefined - }), - "BuildMenu", - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/:owner/:repo/:build(\\d*)/:proc(\\d*)", - exact: true, - component: _menu6["default"] - }), - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/:owner/:repo/:build(\\d*)", - exact: true, - component: _menu6["default"] - }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", exact: false, component: _menu8["default"] }) - ) - ), - _react2["default"].createElement( - _reactRouterDom.Switch, - null, - _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/token", exact: true, component: _tokens2["default"] }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/repos", exact: true, component: _repos2["default"] }), - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/:owner/:repo/settings/secrets", - exact: true, - component: _secrets2["default"] - }), - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/:owner/:repo/settings/registry", - exact: true, - component: _registry2["default"] - }), - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/:owner/:repo/settings", - exact: true, - component: _settings2["default"] - }), - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/:owner/:repo/:build(\\d*)", - exact: true, - component: _build2["default"] - }), - _react2["default"].createElement(_reactRouterDom.Route, { - path: "/:owner/:repo/:build(\\d*)/:proc(\\d*)", - exact: true, - component: _build2["default"] - }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", exact: true, component: _builds2["default"] }), - _react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: true, component: _redirect2["default"] }) - ) - ), - _react2["default"].createElement(_snackbar.Snackbar, { message: message.text, onClose: this.closeSnackbar }), - _react2["default"].createElement( - _drawer.Drawer, - { onClick: this.closeMenu, position: _drawer.DOCK_RIGHT, open: menu }, - _react2["default"].createElement( - "section", - null, - _react2["default"].createElement( - "ul", - null, - _react2["default"].createElement( - "li", - null, - _react2["default"].createElement( - _reactRouterDom.Link, - { to: "/account/repos" }, - "Repositories" - ) - ), - _react2["default"].createElement( - "li", - null, - _react2["default"].createElement( - _reactRouterDom.Link, - { to: "/account/token" }, - "Token" - ) - ) - ) - ), - _react2["default"].createElement( - "section", - null, - _react2["default"].createElement( - "ul", - null, - _react2["default"].createElement( - "li", - null, - _react2["default"].createElement( - "a", - { href: "/logout", target: "_self" }, - "Logout" - ) - ) - ) - ) - ) - ); - }; + var classes = (0, _classnames2["default"])(!user || !user.data ? _layout2["default"].guest : null); + return _react2["default"].createElement( + "div", + { className: classes }, + _react2["default"].createElement( + "div", + { className: _layout2["default"].left }, + _react2["default"].createElement( + _reactRouterDom.Switch, + null, + _react2["default"].createElement(_reactRouterDom.Route, { path: "/", component: _feed2["default"] }) + ) + ), + _react2["default"].createElement( + "div", + { className: _layout2["default"].center }, + !user || !user.data ? _react2["default"].createElement( + "a", + { + href: "/login?url=" + window.location.href, + target: "_self", + className: _layout2["default"].login + }, + "Click to Login" + ) : _react2["default"].createElement("noscript", null), + _react2["default"].createElement( + "div", + { className: _layout2["default"].title }, + _react2["default"].createElement( + _reactRouterDom.Switch, + null, + _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/repos", component: _repos.UserRepoTitle }), + _react2["default"].createElement(_reactRouterDom.Route, { + path: "/:owner/:repo/:build(\\d*)/:proc(\\d*)", + exact: true, + component: _build.BuildLogsTitle + }), + _react2["default"].createElement(_reactRouterDom.Route, { + path: "/:owner/:repo/:build(\\d*)", + component: _build.BuildLogsTitle + }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", component: _header2["default"] }) + ), + user && user.data ? _react2["default"].createElement( + "div", + { className: _layout2["default"].avatar }, + _react2["default"].createElement("img", { src: user.data.avatar_url }) + ) : undefined, + user && user.data ? _react2["default"].createElement( + "button", + { onClick: this.openMenu }, + _react2["default"].createElement(_menu2["default"], null) + ) : _react2["default"].createElement("noscript", null) + ), + _react2["default"].createElement( + "div", + { className: _layout2["default"].menu }, + _react2["default"].createElement( + _reactRouterDom.Switch, + null, + _react2["default"].createElement(_reactRouterDom.Route, { + path: "/account/repos", + exact: true, + component: _menu4["default"] + }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/", exact: false, component: undefined }), + "BuildMenu", + _react2["default"].createElement(_reactRouterDom.Route, { + path: "/:owner/:repo/:build(\\d*)/:proc(\\d*)", + exact: true, + component: _menu6["default"] + }), + _react2["default"].createElement(_reactRouterDom.Route, { + path: "/:owner/:repo/:build(\\d*)", + exact: true, + component: _menu6["default"] + }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", exact: false, component: _menu8["default"] }) + ) + ), + _react2["default"].createElement( + _reactRouterDom.Switch, + null, + _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/token", exact: true, component: _tokens2["default"] }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/account/repos", exact: true, component: _repos2["default"] }), + _react2["default"].createElement(_reactRouterDom.Route, { + path: "/:owner/:repo/settings/secrets", + exact: true, + component: _secrets2["default"] + }), + _react2["default"].createElement(_reactRouterDom.Route, { + path: "/:owner/:repo/settings/registry", + exact: true, + component: _registry2["default"] + }), + _react2["default"].createElement(_reactRouterDom.Route, { + path: "/:owner/:repo/settings", + exact: true, + component: _settings2["default"] + }), + _react2["default"].createElement(_reactRouterDom.Route, { + path: "/:owner/:repo/:build(\\d*)", + exact: true, + component: _build2["default"] + }), + _react2["default"].createElement(_reactRouterDom.Route, { + path: "/:owner/:repo/:build(\\d*)/:proc(\\d*)", + exact: true, + component: _build2["default"] + }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/:owner/:repo", exact: true, component: _builds2["default"] }), + _react2["default"].createElement(_reactRouterDom.Route, { path: "/", exact: true, component: _redirect2["default"] }) + ) + ), + _react2["default"].createElement(_snackbar.Snackbar, { message: message.text, onClose: this.closeSnackbar }), + _react2["default"].createElement( + _drawer.Drawer, + { onClick: this.closeMenu, position: _drawer.DOCK_RIGHT, open: menu }, + _react2["default"].createElement( + "section", + null, + _react2["default"].createElement( + "ul", + null, + _react2["default"].createElement( + "li", + null, + _react2["default"].createElement( + _reactRouterDom.Link, + { to: "/account/repos" }, + "Repositories" + ) + ), + _react2["default"].createElement( + "li", + null, + _react2["default"].createElement( + _reactRouterDom.Link, + { to: "/account/token" }, + "Token" + ) + ) + ) + ), + _react2["default"].createElement( + "section", + null, + _react2["default"].createElement( + "ul", + null, + _react2["default"].createElement( + "li", + null, + _react2["default"].createElement( + "a", + { href: "/logout", target: "_self" }, + "Logout" + ) + ) + ) + ) + ) + ); + }; - Default.prototype.closeSnackbar = function closeSnackbar() { - this.props.dispatch(function (tree) { - tree.unset(["message", "text"]); - }); - }; + Default.prototype.closeSnackbar = function closeSnackbar() { + this.props.dispatch(function (tree) { + tree.unset(["message", "text"]); + }); + }; - return Default; + return Default; }(_react.Component)) || _class) || _class) || _class); exports["default"] = Default; @@ -3660,208 +3819,208 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - return { feed: ["feed"] }; + return { feed: ["feed"] }; }; var Sidebar = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(Sidebar, _Component); + _inherits(Sidebar, _Component); - function Sidebar(props, context) { - _classCallCheck(this, Sidebar); + function Sidebar(props, context) { + _classCallCheck(this, Sidebar); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.toggleItem = function (item) { - _this.setState(function (state) { - var _ref; + _this.toggleItem = function (item) { + _this.setState(function (state) { + var _ref; - return _ref = {}, _ref[item] = !state[item], _ref; - }); + return _ref = {}, _ref[item] = !state[item], _ref; + }); - localStorage.setItem(item, _this.state[item]); - }; + localStorage.setItem(item, _this.state[item]); + }; - _this.renderFeed = function (list, renderStarred) { - return _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - _components.List, - null, - list.map(function (item) { - return _this.renderItem(item, renderStarred); - }) - ) - ); - }; + _this.renderFeed = function (list, renderStarred) { + return _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + _components.List, + null, + list.map(function (item) { + return _this.renderItem(item, renderStarred); + }) + ) + ); + }; - _this.renderItem = function (item, renderStarred) { - var starred = _this.state.starred; - if (renderStarred && !starred.includes(item.full_name)) { - return null; - } - return _react2["default"].createElement( - _reactRouterDom.Link, - { to: "/" + item.full_name, key: item.full_name }, - _react2["default"].createElement(_components.Item, { - item: item, - onFave: _this.onFave, - faved: starred.includes(item.full_name) - }) - ); - }; + _this.renderItem = function (item, renderStarred) { + var starred = _this.state.starred; + if (renderStarred && !starred.includes(item.full_name)) { + return null; + } + return _react2["default"].createElement( + _reactRouterDom.Link, + { to: "/" + item.full_name, key: item.full_name }, + _react2["default"].createElement(_components.Item, { + item: item, + onFave: _this.onFave, + faved: starred.includes(item.full_name) + }) + ); + }; - _this.onFave = function (fullName) { - if (!_this.state.starred.includes(fullName)) { - _this.setState(function (state) { - var list = state.starred.concat(fullName); - return { starred: list }; - }); - } else { - _this.setState(function (state) { - var list = state.starred.filter(function (v) { - return v !== fullName; - }); - return { starred: list }; - }); - } + _this.onFave = function (fullName) { + if (!_this.state.starred.includes(fullName)) { + _this.setState(function (state) { + var list = state.starred.concat(fullName); + return { starred: list }; + }); + } else { + _this.setState(function (state) { + var list = state.starred.filter(function (v) { + return v !== fullName; + }); + return { starred: list }; + }); + } - localStorage.setItem("starred", JSON.stringify(_this.state.starred)); - }; + localStorage.setItem("starred", JSON.stringify(_this.state.starred)); + }; - _this.setState({ - starred: JSON.parse(localStorage.getItem("starred") || "[]"), - starredOpen: (localStorage.getItem("starredOpen") || "true") === "true", - reposOpen: (localStorage.getItem("reposOpen") || "true") === "true" - }); + _this.setState({ + starred: JSON.parse(localStorage.getItem("starred") || "[]"), + starredOpen: (localStorage.getItem("starredOpen") || "true") === "true", + reposOpen: (localStorage.getItem("reposOpen") || "true") === "true" + }); - _this.handleFilter = _this.handleFilter.bind(_this); - _this.toggleStarred = _this.toggleItem.bind(_this, "starredOpen"); - _this.toggleAll = _this.toggleItem.bind(_this, "reposOpen"); - return _this; - } + _this.handleFilter = _this.handleFilter.bind(_this); + _this.toggleStarred = _this.toggleItem.bind(_this, "starredOpen"); + _this.toggleAll = _this.toggleItem.bind(_this, "reposOpen"); + return _this; + } - Sidebar.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.feed !== nextProps.feed || this.state.filter !== nextState.filter || this.state.starred.length !== nextState.starred.length; - }; + Sidebar.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.feed !== nextProps.feed || this.state.filter !== nextState.filter || this.state.starred.length !== nextState.starred.length; + }; - Sidebar.prototype.handleFilter = function handleFilter(e) { - this.setState({ - filter: e.target.value - }); - }; + Sidebar.prototype.handleFilter = function handleFilter(e) { + this.setState({ + filter: e.target.value + }); + }; - Sidebar.prototype.render = function render() { - var feed = this.props.feed; - var filter = this.state.filter; + Sidebar.prototype.render = function render() { + var feed = this.props.feed; + var filter = this.state.filter; - var list = feed.data ? Object.values(feed.data) : []; + var list = feed.data ? Object.values(feed.data) : []; - var filterFunc = function filterFunc(item) { - return !filter || item.full_name.indexOf(filter) !== -1; - }; + var filterFunc = function filterFunc(item) { + return !filter || item.full_name.indexOf(filter) !== -1; + }; - var filtered = list.filter(filterFunc).sort(_feed.compareFeedItem); - var starredOpen = this.state.starredOpen; - var reposOpen = this.state.reposOpen; - return _react2["default"].createElement( - "div", - { className: _index2["default"].feed }, - LOGO, - _react2["default"].createElement( - _reactCollapsible2["default"], - { - trigger: "Starred", - triggerTagName: "div", - transitionTime: 200, - open: starredOpen, - onOpen: this.toggleStarred, - onClose: this.toggleStarred, - triggerOpenedClassName: _index2["default"].Collapsible__trigger, - triggerClassName: _index2["default"].Collapsible__trigger - }, - feed.loaded === false ? LOADING : feed.error ? ERROR : list.length === 0 ? EMPTY : this.renderFeed(list, true) - ), - _react2["default"].createElement( - _reactCollapsible2["default"], - { - trigger: "Repos", - triggerTagName: "div", - transitionTime: 200, - open: reposOpen, - onOpen: this.toggleAll, - onClose: this.toggleAll, - triggerOpenedClassName: _index2["default"].Collapsible__trigger, - triggerClassName: _index2["default"].Collapsible__trigger - }, - _react2["default"].createElement("input", { - type: "text", - placeholder: "Search \u2026", - onChange: this.handleFilter - }), - feed.loaded === false ? LOADING : feed.error ? ERROR : list.length === 0 ? EMPTY : filtered.length > 0 ? this.renderFeed(filtered.sort(_feed.compareFeedItem), false) : NO_MATCHES - ) - ); - }; + var filtered = list.filter(filterFunc).sort(_feed.compareFeedItem); + var starredOpen = this.state.starredOpen; + var reposOpen = this.state.reposOpen; + return _react2["default"].createElement( + "div", + { className: _index2["default"].feed }, + LOGO, + _react2["default"].createElement( + _reactCollapsible2["default"], + { + trigger: "Starred", + triggerTagName: "div", + transitionTime: 200, + open: starredOpen, + onOpen: this.toggleStarred, + onClose: this.toggleStarred, + triggerOpenedClassName: _index2["default"].Collapsible__trigger, + triggerClassName: _index2["default"].Collapsible__trigger + }, + feed.loaded === false ? LOADING : feed.error ? ERROR : list.length === 0 ? EMPTY : this.renderFeed(list, true) + ), + _react2["default"].createElement( + _reactCollapsible2["default"], + { + trigger: "Repos", + triggerTagName: "div", + transitionTime: 200, + open: reposOpen, + onOpen: this.toggleAll, + onClose: this.toggleAll, + triggerOpenedClassName: _index2["default"].Collapsible__trigger, + triggerClassName: _index2["default"].Collapsible__trigger + }, + _react2["default"].createElement("input", { + type: "text", + placeholder: "Search \u2026", + onChange: this.handleFilter + }), + feed.loaded === false ? LOADING : feed.error ? ERROR : list.length === 0 ? EMPTY : filtered.length > 0 ? this.renderFeed(filtered.sort(_feed.compareFeedItem), false) : NO_MATCHES + ) + ); + }; - return Sidebar; + return Sidebar; }(_react.Component)) || _class) || _class); exports["default"] = Sidebar; var LOGO = _react2["default"].createElement( - "div", - { className: _index2["default"].brand }, - _react2["default"].createElement(_logo2["default"], null), - _react2["default"].createElement( - "p", - null, - "Woodpecker", - _react2["default"].createElement( - "span", - { style: "margin-left: 4px;" }, - window.DRONE_VERSION - ), - _react2["default"].createElement("br", null), - _react2["default"].createElement( - "span", - null, - _react2["default"].createElement( - "a", - { - href: "https://github.com/laszlocph/woodpecker/blob/master/docs/usage/pipeline.md", - target: "_blank", - rel: "noopener noreferrer" - }, - "Docs" - ) - ) - ) + "div", + { className: _index2["default"].brand }, + _react2["default"].createElement(_logo2["default"], null), + _react2["default"].createElement( + "p", + null, + "Woodpecker", + _react2["default"].createElement( + "span", + { style: "margin-left: 4px;" }, + window.DRONE_VERSION + ), + _react2["default"].createElement("br", null), + _react2["default"].createElement( + "span", + null, + _react2["default"].createElement( + "a", + { + href: "https://woodpecker.laszlo.cloud", + target: "_blank", + rel: "noopener noreferrer" + }, + "Docs" + ) + ) + ) ); var LOADING = _react2["default"].createElement( - "div", - { className: _index2["default"].message }, - "Loading" + "div", + { className: _index2["default"].message }, + "Loading" ); var EMPTY = _react2["default"].createElement( - "div", - { className: _index2["default"].message }, - "Your build feed is empty" + "div", + { className: _index2["default"].message }, + "Your build feed is empty" ); var NO_MATCHES = _react2["default"].createElement( - "div", - { className: _index2["default"].message }, - "No results found" + "div", + { className: _index2["default"].message }, + "No results found" ); var ERROR = _react2["default"].createElement( - "div", - { className: _index2["default"].message }, - "Oops. It looks like there was a problem loading your feed" + "div", + { className: _index2["default"].message }, + "Oops. It looks like there was a problem loading your feed" ); /***/ }), @@ -3887,31 +4046,31 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Logo = function (_Component) { - _inherits(Logo, _Component); + _inherits(Logo, _Component); - function Logo() { - _classCallCheck(this, Logo); + function Logo() { + _classCallCheck(this, Logo); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Logo.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { viewBox: "0 0 50 62.5", preserveAspectRatio: "xMidYMid" }, - _react2["default"].createElement( - "g", - null, - _react2["default"].createElement("path", { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M15.872,0.468c1.148,1.088,1.582,2.188,2.855,2.337l0.036,0.007c-0.588,0.606-1.089,1.402-1.443,2.423c-0.379,1.096-0.488,2.285-0.614,3.659c-0.189,2.046-0.401,4.364-1.556,7.269 c-2.486,6.258-1.119,11.631,0.332,17.317c0.664,2.604,1.348,5.297,1.642,8.107c0.035,0.355,0.287,0.652,0.633,0.744 c0.346,0.095,0.709-0.035,0.922-0.323c0.227-0.313,0.524-0.797,0.86-1.424c0.84,3.323,1.355,6.131,1.783,8.697 c0.126,0.73,1.048,0.973,1.517,0.41c2.881-3.463,3.763-8.636,2.184-12.674c0.459-2.433,1.402-4.45,2.398-6.583 c0.536-1.15,1.08-2.318,1.55-3.566c0.228-0.084,0.569-0.314,0.791-0.441l1.706-0.981l-0.256,1.052 c-0.112,0.461,0.171,0.929,0.635,1.04c0.457,0.118,0.93-0.173,1.043-0.632l0.68-2.858l1.285-2.95 c0.19-0.436-0.009-0.943-0.446-1.135c-0.44-0.189-0.947,0.01-1.135,0.448l-1.152,2.669l-2.383,1.372 c0.235-0.932,0.414-1.919,0.508-2.981c0.432-4.859-0.718-9.074-3.066-11.266c-0.163-0.157-0.208-0.281-0.247-0.26 c0.095-0.119,0.249-0.26,0.358-0.374c2.283-1.693,6.047-0.147,8.319,0.751c0.589,0.231,0.876-0.338,0.316-0.67 c-1.949-1.154-5.948-4.197-8.188-6.194c-0.313-0.275-0.527-0.607-0.89-0.913c-2.415-4.266-8.168-1.764-10.885-2.252 C15.862,0.275,15.798,0.396,15.872,0.468 M26.852,6.367c-0.059,1.242-0.603,1.8-0.999,2.208c-0.218,0.224-0.427,0.436-0.525,0.738 c-0.236,0.714,0.008,1.51,0.66,2.143c1.974,1.84,2.925,5.527,2.538,9.861c-0.291,3.287-1.448,5.762-2.671,8.384 c-1.031,2.207-2.096,4.489-2.577,7.259c-0.027,0.161-0.01,0.33,0.056,0.481c1.021,2.433,1.135,6.196-0.672,9.46 c-0.461-2.553-1.053-5.385-1.97-8.712c1.964-4.488,4.203-11.75,2.919-17.668c-0.325-1.497-1.304-3.276-2.387-4.207 c-0.208-0.179-0.402-0.237-0.495-0.167c-0.084,0.061-0.151,0.238-0.062,0.444c0.55,1.266,0.879,2.599,1.226,4.276 c1.125,5.443-0.956,12.49-2.835,16.782l-0.116,0.259l-0.457,0.982c-0.356-2.014-0.849-3.95-1.33-5.839 c-1.379-5.407-2.679-10.516-0.401-16.255c1.247-3.137,1.483-5.692,1.672-7.746c0.116-1.263,0.216-2.355,0.526-3.252 c0.905-2.605,3.062-3.178,4.744-2.852C25.328,3.262,26.936,4.539,26.852,6.367z M23.984,6.988c0.617,0.204,1.283-0.131,1.487-0.75 c0.202-0.617-0.134-1.283-0.751-1.487c-0.618-0.204-1.285,0.134-1.487,0.751C23.029,6.12,23.366,6.786,23.984,6.988z" - }) - ) - ); - }; + Logo.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { viewBox: "0 0 50 62.5", preserveAspectRatio: "xMidYMid" }, + _react2["default"].createElement( + "g", + null, + _react2["default"].createElement("path", { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M15.872,0.468c1.148,1.088,1.582,2.188,2.855,2.337l0.036,0.007c-0.588,0.606-1.089,1.402-1.443,2.423c-0.379,1.096-0.488,2.285-0.614,3.659c-0.189,2.046-0.401,4.364-1.556,7.269 c-2.486,6.258-1.119,11.631,0.332,17.317c0.664,2.604,1.348,5.297,1.642,8.107c0.035,0.355,0.287,0.652,0.633,0.744 c0.346,0.095,0.709-0.035,0.922-0.323c0.227-0.313,0.524-0.797,0.86-1.424c0.84,3.323,1.355,6.131,1.783,8.697 c0.126,0.73,1.048,0.973,1.517,0.41c2.881-3.463,3.763-8.636,2.184-12.674c0.459-2.433,1.402-4.45,2.398-6.583 c0.536-1.15,1.08-2.318,1.55-3.566c0.228-0.084,0.569-0.314,0.791-0.441l1.706-0.981l-0.256,1.052 c-0.112,0.461,0.171,0.929,0.635,1.04c0.457,0.118,0.93-0.173,1.043-0.632l0.68-2.858l1.285-2.95 c0.19-0.436-0.009-0.943-0.446-1.135c-0.44-0.189-0.947,0.01-1.135,0.448l-1.152,2.669l-2.383,1.372 c0.235-0.932,0.414-1.919,0.508-2.981c0.432-4.859-0.718-9.074-3.066-11.266c-0.163-0.157-0.208-0.281-0.247-0.26 c0.095-0.119,0.249-0.26,0.358-0.374c2.283-1.693,6.047-0.147,8.319,0.751c0.589,0.231,0.876-0.338,0.316-0.67 c-1.949-1.154-5.948-4.197-8.188-6.194c-0.313-0.275-0.527-0.607-0.89-0.913c-2.415-4.266-8.168-1.764-10.885-2.252 C15.862,0.275,15.798,0.396,15.872,0.468 M26.852,6.367c-0.059,1.242-0.603,1.8-0.999,2.208c-0.218,0.224-0.427,0.436-0.525,0.738 c-0.236,0.714,0.008,1.51,0.66,2.143c1.974,1.84,2.925,5.527,2.538,9.861c-0.291,3.287-1.448,5.762-2.671,8.384 c-1.031,2.207-2.096,4.489-2.577,7.259c-0.027,0.161-0.01,0.33,0.056,0.481c1.021,2.433,1.135,6.196-0.672,9.46 c-0.461-2.553-1.053-5.385-1.97-8.712c1.964-4.488,4.203-11.75,2.919-17.668c-0.325-1.497-1.304-3.276-2.387-4.207 c-0.208-0.179-0.402-0.237-0.495-0.167c-0.084,0.061-0.151,0.238-0.062,0.444c0.55,1.266,0.879,2.599,1.226,4.276 c1.125,5.443-0.956,12.49-2.835,16.782l-0.116,0.259l-0.457,0.982c-0.356-2.014-0.849-3.95-1.33-5.839 c-1.379-5.407-2.679-10.516-0.401-16.255c1.247-3.137,1.483-5.692,1.672-7.746c0.116-1.263,0.216-2.355,0.526-3.252 c0.905-2.605,3.062-3.178,4.744-2.852C25.328,3.262,26.936,4.539,26.852,6.367z M23.984,6.988c0.617,0.204,1.283-0.131,1.487-0.75 c0.202-0.617-0.134-1.283-0.751-1.487c-0.618-0.204-1.285,0.134-1.487,0.751C23.029,6.12,23.366,6.786,23.984,6.988z" + }) + ) + ); + }; - return Logo; + return Logo; }(_react.Component); exports["default"] = Logo; @@ -3968,74 +4127,74 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var List = exports.List = function List(_ref) { - var children = _ref.children; - return _react2["default"].createElement( - "div", - { className: _list2["default"].list }, - children - ); + var children = _ref.children; + return _react2["default"].createElement( + "div", + { className: _list2["default"].list }, + children + ); }; var Item = exports.Item = function (_Component) { - _inherits(Item, _Component); + _inherits(Item, _Component); - function Item(props) { - _classCallCheck(this, Item); + function Item(props) { + _classCallCheck(this, Item); - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - _this.handleFave = _this.handleFave.bind(_this); - return _this; - } + _this.handleFave = _this.handleFave.bind(_this); + return _this; + } - Item.prototype.handleFave = function handleFave(e) { - e.preventDefault(); - this.props.onFave(this.props.item.full_name); - }; + Item.prototype.handleFave = function handleFave(e) { + e.preventDefault(); + this.props.onFave(this.props.item.full_name); + }; - Item.prototype.render = function render() { - var _props = this.props, - item = _props.item, - faved = _props.faved; + Item.prototype.render = function render() { + var _props = this.props, + item = _props.item, + faved = _props.faved; - return _react2["default"].createElement( - "div", - { className: _list2["default"].item }, - _react2["default"].createElement( - "div", - { onClick: this.handleFave }, - _react2["default"].createElement(_index.StarIcon, { filled: faved, size: 16, className: _list2["default"].star }) - ), - _react2["default"].createElement( - "div", - { className: _list2["default"].header }, - _react2["default"].createElement( - "div", - { className: _list2["default"].title }, - item.full_name - ), - _react2["default"].createElement( - "div", - { className: _list2["default"].icon }, - item.status ? _react2["default"].createElement(_status2["default"], { status: item.status }) : _react2["default"].createElement("noscript", null) - ) - ), - _react2["default"].createElement( - "div", - { className: _list2["default"].body }, - _react2["default"].createElement(_build_time2["default"], { - start: item.started_at || item.created_at, - finish: item.finished_at - }) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _list2["default"].item }, + _react2["default"].createElement( + "div", + { onClick: this.handleFave }, + _react2["default"].createElement(_index.StarIcon, { filled: faved, size: 16, className: _list2["default"].star }) + ), + _react2["default"].createElement( + "div", + { className: _list2["default"].header }, + _react2["default"].createElement( + "div", + { className: _list2["default"].title }, + item.full_name + ), + _react2["default"].createElement( + "div", + { className: _list2["default"].icon }, + item.status ? _react2["default"].createElement(_status2["default"], { status: item.status }) : _react2["default"].createElement("noscript", null) + ) + ), + _react2["default"].createElement( + "div", + { className: _list2["default"].body }, + _react2["default"].createElement(_build_time2["default"], { + start: item.started_at || item.created_at, + finish: item.finished_at + }) + ) + ); + }; - Item.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.item !== nextProps.item || this.props.faved !== nextProps.faved; - }; + Item.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.item !== nextProps.item || this.props.faved !== nextProps.faved; + }; - return Item; + return Item; }(_react.Component); /***/ }), @@ -4121,29 +4280,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var BackIcon = function (_Component) { - _inherits(BackIcon, _Component); + _inherits(BackIcon, _Component); - function BackIcon() { - _classCallCheck(this, BackIcon); + function BackIcon() { + _classCallCheck(this, BackIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - BackIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), - _react2["default"].createElement("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" }) - ); - }; + BackIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), + _react2["default"].createElement("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" }) + ); + }; - return BackIcon; + return BackIcon; }(_react.Component); exports["default"] = BackIcon; @@ -4171,23 +4330,23 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var BranchIcon = function (_Component) { - _inherits(BranchIcon, _Component); + _inherits(BranchIcon, _Component); - function BranchIcon() { - _classCallCheck(this, BranchIcon); + function BranchIcon() { + _classCallCheck(this, BranchIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - BranchIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { viewBox: "0 0 24 24" }, - _react2["default"].createElement("path", { d: "M6,2A3,3 0 0,1 9,5C9,6.28 8.19,7.38 7.06,7.81C7.15,8.27 7.39,8.83 8,9.63C9,10.92 11,12.83 12,14.17C13,12.83 15,10.92 16,9.63C16.61,8.83 16.85,8.27 16.94,7.81C15.81,7.38 15,6.28 15,5A3,3 0 0,1 18,2A3,3 0 0,1 21,5C21,6.32 20.14,7.45 18.95,7.85C18.87,8.37 18.64,9 18,9.83C17,11.17 15,13.08 14,14.38C13.39,15.17 13.15,15.73 13.06,16.19C14.19,16.62 15,17.72 15,19A3,3 0 0,1 12,22A3,3 0 0,1 9,19C9,17.72 9.81,16.62 10.94,16.19C10.85,15.73 10.61,15.17 10,14.38C9,13.08 7,11.17 6,9.83C5.36,9 5.13,8.37 5.05,7.85C3.86,7.45 3,6.32 3,5A3,3 0 0,1 6,2M6,4A1,1 0 0,0 5,5A1,1 0 0,0 6,6A1,1 0 0,0 7,5A1,1 0 0,0 6,4M18,4A1,1 0 0,0 17,5A1,1 0 0,0 18,6A1,1 0 0,0 19,5A1,1 0 0,0 18,4M12,18A1,1 0 0,0 11,19A1,1 0 0,0 12,20A1,1 0 0,0 13,19A1,1 0 0,0 12,18Z" }) - ); - }; + BranchIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { viewBox: "0 0 24 24" }, + _react2["default"].createElement("path", { d: "M6,2A3,3 0 0,1 9,5C9,6.28 8.19,7.38 7.06,7.81C7.15,8.27 7.39,8.83 8,9.63C9,10.92 11,12.83 12,14.17C13,12.83 15,10.92 16,9.63C16.61,8.83 16.85,8.27 16.94,7.81C15.81,7.38 15,6.28 15,5A3,3 0 0,1 18,2A3,3 0 0,1 21,5C21,6.32 20.14,7.45 18.95,7.85C18.87,8.37 18.64,9 18,9.83C17,11.17 15,13.08 14,14.38C13.39,15.17 13.15,15.73 13.06,16.19C14.19,16.62 15,17.72 15,19A3,3 0 0,1 12,22A3,3 0 0,1 9,19C9,17.72 9.81,16.62 10.94,16.19C10.85,15.73 10.61,15.17 10,14.38C9,13.08 7,11.17 6,9.83C5.36,9 5.13,8.37 5.05,7.85C3.86,7.45 3,6.32 3,5A3,3 0 0,1 6,2M6,4A1,1 0 0,0 5,5A1,1 0 0,0 6,6A1,1 0 0,0 7,5A1,1 0 0,0 6,4M18,4A1,1 0 0,0 17,5A1,1 0 0,0 18,6A1,1 0 0,0 19,5A1,1 0 0,0 18,4M12,18A1,1 0 0,0 11,19A1,1 0 0,0 12,20A1,1 0 0,0 13,19A1,1 0 0,0 12,18Z" }) + ); + }; - return BranchIcon; + return BranchIcon; }(_react.Component); exports["default"] = BranchIcon; @@ -4215,29 +4374,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CheckIcon = function (_Component) { - _inherits(CheckIcon, _Component); + _inherits(CheckIcon, _Component); - function CheckIcon() { - _classCallCheck(this, CheckIcon); + function CheckIcon() { + _classCallCheck(this, CheckIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - CheckIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), - _react2["default"].createElement("path", { d: "M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" }) - ); - }; + CheckIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), + _react2["default"].createElement("path", { d: "M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" }) + ); + }; - return CheckIcon; + return CheckIcon; }(_react.Component); exports["default"] = CheckIcon; @@ -4265,29 +4424,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ClockIcon = function (_Component) { - _inherits(ClockIcon, _Component); + _inherits(ClockIcon, _Component); - function ClockIcon() { - _classCallCheck(this, ClockIcon); + function ClockIcon() { + _classCallCheck(this, ClockIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - ClockIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), - _react2["default"].createElement("path", { d: "M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z" }) - ); - }; + ClockIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), + _react2["default"].createElement("path", { d: "M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z" }) + ); + }; - return ClockIcon; + return ClockIcon; }(_react.Component); exports["default"] = ClockIcon; @@ -4315,28 +4474,28 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CommitIcon = function (_Component) { - _inherits(CommitIcon, _Component); + _inherits(CommitIcon, _Component); - function CommitIcon() { - _classCallCheck(this, CommitIcon); + function CommitIcon() { + _classCallCheck(this, CommitIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - CommitIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M17,12C17,14.42 15.28,16.44 13,16.9V21H11V16.9C8.72,16.44 7,14.42 7,12C7,9.58 8.72,7.56 11,7.1V3H13V7.1C15.28,7.56 17,9.58 17,12M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z" }) - ); - }; + CommitIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M17,12C17,14.42 15.28,16.44 13,16.9V21H11V16.9C8.72,16.44 7,14.42 7,12C7,9.58 8.72,7.56 11,7.1V3H13V7.1C15.28,7.56 17,9.58 17,12M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z" }) + ); + }; - return CommitIcon; + return CommitIcon; }(_react.Component); exports["default"] = CommitIcon; @@ -4364,23 +4523,23 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var DeployIcon = function (_Component) { - _inherits(DeployIcon, _Component); + _inherits(DeployIcon, _Component); - function DeployIcon() { - _classCallCheck(this, DeployIcon); + function DeployIcon() { + _classCallCheck(this, DeployIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - DeployIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { className: this.props.className, viewBox: "0 0 24 24" }, - _react2["default"].createElement("path", { d: "M19,18H6A4,4 0 0,1 2,14A4,4 0 0,1 6,10H6.71C7.37,7.69 9.5,6 12,6A5.5,5.5 0 0,1 17.5,11.5V12H19A3,3 0 0,1 22,15A3,3 0 0,1 19,18M19.35,10.03C18.67,6.59 15.64,4 12,4C9.11,4 6.6,5.64 5.35,8.03C2.34,8.36 0,10.9 0,14A6,6 0 0,0 6,20H19A5,5 0 0,0 24,15C24,12.36 21.95,10.22 19.35,10.03Z" }) - ); - }; + DeployIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { className: this.props.className, viewBox: "0 0 24 24" }, + _react2["default"].createElement("path", { d: "M19,18H6A4,4 0 0,1 2,14A4,4 0 0,1 6,10H6.71C7.37,7.69 9.5,6 12,6A5.5,5.5 0 0,1 17.5,11.5V12H19A3,3 0 0,1 22,15A3,3 0 0,1 19,18M19.35,10.03C18.67,6.59 15.64,4 12,4C9.11,4 6.6,5.64 5.35,8.03C2.34,8.36 0,10.9 0,14A6,6 0 0,0 6,20H19A5,5 0 0,0 24,15C24,12.36 21.95,10.22 19.35,10.03Z" }) + ); + }; - return DeployIcon; + return DeployIcon; }(_react.Component); exports["default"] = DeployIcon; @@ -4408,29 +4567,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ExpandIcon = function (_Component) { - _inherits(ExpandIcon, _Component); + _inherits(ExpandIcon, _Component); - function ExpandIcon() { - _classCallCheck(this, ExpandIcon); + function ExpandIcon() { + _classCallCheck(this, ExpandIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - ExpandIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z" }), - _react2["default"].createElement("path", { d: "M0-.75h24v24H0z", fill: "none" }) - ); - }; + ExpandIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z" }), + _react2["default"].createElement("path", { d: "M0-.75h24v24H0z", fill: "none" }) + ); + }; - return ExpandIcon; + return ExpandIcon; }(_react.Component); exports["default"] = ExpandIcon; @@ -4458,24 +4617,24 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var LaunchIcon = function (_Component) { - _inherits(LaunchIcon, _Component); + _inherits(LaunchIcon, _Component); - function LaunchIcon() { - _classCallCheck(this, LaunchIcon); + function LaunchIcon() { + _classCallCheck(this, LaunchIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - LaunchIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { className: this.props.className, viewBox: "0 0 24 24" }, - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), - _react2["default"].createElement("path", { d: "M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" }) - ); - }; + LaunchIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { className: this.props.className, viewBox: "0 0 24 24" }, + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), + _react2["default"].createElement("path", { d: "M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" }) + ); + }; - return LaunchIcon; + return LaunchIcon; }(_react.Component); exports["default"] = LaunchIcon; @@ -4503,29 +4662,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var LinkIcon = function (_Component) { - _inherits(LinkIcon, _Component); + _inherits(LinkIcon, _Component); - function LinkIcon() { - _classCallCheck(this, LinkIcon); + function LinkIcon() { + _classCallCheck(this, LinkIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - LinkIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), - _react2["default"].createElement("path", { d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z" }) - ); - }; + LinkIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), + _react2["default"].createElement("path", { d: "M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z" }) + ); + }; - return LinkIcon; + return LinkIcon; }(_react.Component); exports["default"] = LinkIcon; @@ -4553,23 +4712,23 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var MergeIcon = function (_Component) { - _inherits(MergeIcon, _Component); + _inherits(MergeIcon, _Component); - function MergeIcon() { - _classCallCheck(this, MergeIcon); + function MergeIcon() { + _classCallCheck(this, MergeIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - MergeIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { className: this.props.className, viewBox: "0 0 24 24" }, - _react2["default"].createElement("path", { d: "M5.41,21L6.12,17H2.12L2.47,15H6.47L7.53,9H3.53L3.88,7H7.88L8.59,3H10.59L9.88,7H15.88L16.59,3H18.59L17.88,7H21.88L21.53,9H17.53L16.47,15H20.47L20.12,17H16.12L15.41,21H13.41L14.12,17H8.12L7.41,21H5.41M9.53,9L8.47,15H14.47L15.53,9H9.53Z" }) - ); - }; + MergeIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { className: this.props.className, viewBox: "0 0 24 24" }, + _react2["default"].createElement("path", { d: "M5.41,21L6.12,17H2.12L2.47,15H6.47L7.53,9H3.53L3.88,7H7.88L8.59,3H10.59L9.88,7H15.88L16.59,3H18.59L17.88,7H21.88L21.53,9H17.53L16.47,15H20.47L20.12,17H16.12L15.41,21H13.41L14.12,17H8.12L7.41,21H5.41M9.53,9L8.47,15H14.47L15.53,9H9.53Z" }) + ); + }; - return MergeIcon; + return MergeIcon; }(_react.Component); // @@ -4603,29 +4762,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var PauseIcon = function (_Component) { - _inherits(PauseIcon, _Component); + _inherits(PauseIcon, _Component); - function PauseIcon() { - _classCallCheck(this, PauseIcon); + function PauseIcon() { + _classCallCheck(this, PauseIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - PauseIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M6 19h4V5H6v14zm8-14v14h4V5h-4z" }), - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) - ); - }; + PauseIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M6 19h4V5H6v14zm8-14v14h4V5h-4z" }), + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) + ); + }; - return PauseIcon; + return PauseIcon; }(_react.Component); exports["default"] = PauseIcon; @@ -4653,29 +4812,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var PlayIcon = function (_Component) { - _inherits(PlayIcon, _Component); + _inherits(PlayIcon, _Component); - function PlayIcon() { - _classCallCheck(this, PlayIcon); + function PlayIcon() { + _classCallCheck(this, PlayIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - PlayIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M8 5v14l11-7z" }), - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) - ); - }; + PlayIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M8 5v14l11-7z" }), + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) + ); + }; - return PlayIcon; + return PlayIcon; }(_react.Component); exports["default"] = PlayIcon; @@ -4703,29 +4862,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var CheckIcon = function (_Component) { - _inherits(CheckIcon, _Component); + _inherits(CheckIcon, _Component); - function CheckIcon() { - _classCallCheck(this, CheckIcon); + function CheckIcon() { + _classCallCheck(this, CheckIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - CheckIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M19 13H5v-2h14v2z" }), - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) - ); - }; + CheckIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M19 13H5v-2h14v2z" }), + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) + ); + }; - return CheckIcon; + return CheckIcon; }(_react.Component); exports["default"] = CheckIcon; @@ -4753,30 +4912,30 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ScheduleIcon = function (_Component) { - _inherits(ScheduleIcon, _Component); + _inherits(ScheduleIcon, _Component); - function ScheduleIcon() { - _classCallCheck(this, ScheduleIcon); + function ScheduleIcon() { + _classCallCheck(this, ScheduleIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - ScheduleIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), - _react2["default"].createElement("path", { d: "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z" }) - ); - }; + ScheduleIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), + _react2["default"].createElement("path", { d: "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z" }) + ); + }; - return ScheduleIcon; + return ScheduleIcon; }(_react.Component); exports["default"] = ScheduleIcon; @@ -4804,28 +4963,28 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var StarIcon = function (_Component) { - _inherits(StarIcon, _Component); + _inherits(StarIcon, _Component); - function StarIcon() { - _classCallCheck(this, StarIcon); + function StarIcon() { + _classCallCheck(this, StarIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - StarIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 512 512" - }, - this.props.filled === true ? _react2["default"].createElement("path", { d: "M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z" }) : _react2["default"].createElement("path", { d: "M458 210.409l-145.267-12.476L256 64l-56.743 133.934L54 210.409l110.192 95.524L131.161 448 256 372.686 380.83 448l-33.021-142.066L458 210.409zM272.531 345.286L256 335.312l-16.53 9.973-59.988 36.191 15.879-68.296 4.369-18.79-14.577-12.637-52.994-45.939 69.836-5.998 19.206-1.65 7.521-17.75 27.276-64.381 27.27 64.379 7.52 17.751 19.208 1.65 69.846 5.998-52.993 45.939-14.576 12.636 4.367 18.788 15.875 68.299-59.984-36.189z" }) - ); - }; + StarIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 512 512" + }, + this.props.filled === true ? _react2["default"].createElement("path", { d: "M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z" }) : _react2["default"].createElement("path", { d: "M458 210.409l-145.267-12.476L256 64l-56.743 133.934L54 210.409l110.192 95.524L131.161 448 256 372.686 380.83 448l-33.021-142.066L458 210.409zM272.531 345.286L256 335.312l-16.53 9.973-59.988 36.191 15.879-68.296 4.369-18.79-14.577-12.637-52.994-45.939 69.836-5.998 19.206-1.65 7.521-17.75 27.276-64.381 27.27 64.379 7.52 17.751 19.208 1.65 69.846 5.998-52.993 45.939-14.576 12.636 4.367 18.788 15.875 68.299-59.984-36.189z" }) + ); + }; - return StarIcon; + return StarIcon; }(_react.Component); exports["default"] = StarIcon; @@ -4853,24 +5012,24 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var SyncIcon = function (_Component) { - _inherits(SyncIcon, _Component); + _inherits(SyncIcon, _Component); - function SyncIcon() { - _classCallCheck(this, SyncIcon); + function SyncIcon() { + _classCallCheck(this, SyncIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - SyncIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { className: this.props.className, viewBox: "0 0 24 24" }, - _react2["default"].createElement("path", { d: "M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z" }), - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) - ); - }; + SyncIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { className: this.props.className, viewBox: "0 0 24 24" }, + _react2["default"].createElement("path", { d: "M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z" }), + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }) + ); + }; - return SyncIcon; + return SyncIcon; }(_react.Component); exports["default"] = SyncIcon; @@ -4898,23 +5057,23 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var TagIcon = function (_Component) { - _inherits(TagIcon, _Component); + _inherits(TagIcon, _Component); - function TagIcon() { - _classCallCheck(this, TagIcon); + function TagIcon() { + _classCallCheck(this, TagIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - TagIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { className: this.props.className, viewBox: "0 0 24 24" }, - _react2["default"].createElement("path", { d: "M5.5,7A1.5,1.5 0 0,0 7,5.5A1.5,1.5 0 0,0 5.5,4A1.5,1.5 0 0,0 4,5.5A1.5,1.5 0 0,0 5.5,7M21.41,11.58C21.77,11.94 22,12.44 22,13C22,13.55 21.78,14.05 21.41,14.41L14.41,21.41C14.05,21.77 13.55,22 13,22C12.45,22 11.95,21.77 11.58,21.41L2.59,12.41C2.22,12.05 2,11.55 2,11V4C2,2.89 2.89,2 4,2H11C11.55,2 12.05,2.22 12.41,2.58L21.41,11.58M13,20L20,13L11.5,4.5L4.5,11.5L13,20Z" }) - ); - }; + TagIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { className: this.props.className, viewBox: "0 0 24 24" }, + _react2["default"].createElement("path", { d: "M5.5,7A1.5,1.5 0 0,0 7,5.5A1.5,1.5 0 0,0 5.5,4A1.5,1.5 0 0,0 4,5.5A1.5,1.5 0 0,0 5.5,7M21.41,11.58C21.77,11.94 22,12.44 22,13C22,13.55 21.78,14.05 21.41,14.41L14.41,21.41C14.05,21.77 13.55,22 13,22C12.45,22 11.95,21.77 11.58,21.41L2.59,12.41C2.22,12.05 2,11.55 2,11V4C2,2.89 2.89,2 4,2H11C11.55,2 12.05,2.22 12.41,2.58L21.41,11.58M13,20L20,13L11.5,4.5L4.5,11.5L13,20Z" }) + ); + }; - return TagIcon; + return TagIcon; }(_react.Component); exports["default"] = TagIcon; @@ -4942,29 +5101,29 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var TimelapseIcon = function (_Component) { - _inherits(TimelapseIcon, _Component); + _inherits(TimelapseIcon, _Component); - function TimelapseIcon() { - _classCallCheck(this, TimelapseIcon); + function TimelapseIcon() { + _classCallCheck(this, TimelapseIcon); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - TimelapseIcon.prototype.render = function render() { - return _react2["default"].createElement( - "svg", - { - className: this.props.className, - width: this.props.size || 24, - height: this.props.size || 24, - viewBox: "0 0 24 24" - }, - _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), - _react2["default"].createElement("path", { d: "M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }) - ); - }; + TimelapseIcon.prototype.render = function render() { + return _react2["default"].createElement( + "svg", + { + className: this.props.className, + width: this.props.size || 24, + height: this.props.size || 24, + viewBox: "0 0 24 24" + }, + _react2["default"].createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), + _react2["default"].createElement("path", { d: "M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }) + ); + }; - return TimelapseIcon; + return TimelapseIcon; }(_react.Component); exports["default"] = TimelapseIcon; @@ -4998,28 +5157,28 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Duration = function (_React$Component) { - _inherits(Duration, _React$Component); + _inherits(Duration, _React$Component); - function Duration() { - _classCallCheck(this, Duration); + function Duration() { + _classCallCheck(this, Duration); - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - Duration.prototype.render = function render() { - var _props = this.props, - start = _props.start, - finished = _props.finished; + Duration.prototype.render = function render() { + var _props = this.props, + start = _props.start, + finished = _props.finished; - return _react2["default"].createElement( - "time", - null, - (0, _humanizeDuration2["default"])((finished - start) * 1000) - ); - }; + return _react2["default"].createElement( + "time", + null, + (0, _humanizeDuration2["default"])((finished - start) * 1000) + ); + }; - return Duration; + return Duration; }(_react2["default"].Component); exports["default"] = Duration; @@ -5541,129 +5700,129 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - var _props$match$params = props.match.params, - owner = _props$match$params.owner, - repo = _props$match$params.repo; + var _props$match$params = props.match.params, + owner = _props$match$params.owner, + repo = _props$match$params.repo; - var slug = (0, _repository.repositorySlug)(owner, repo); - return { - loaded: ["registry", "loaded"], - registries: ["registry", "data", slug] - }; + var slug = (0, _repository.repositorySlug)(owner, repo); + return { + loaded: ["registry", "loaded"], + registries: ["registry", "data", slug] + }; }; var RepoRegistry = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(RepoRegistry, _Component); + _inherits(RepoRegistry, _Component); - function RepoRegistry(props, context) { - _classCallCheck(this, RepoRegistry); + function RepoRegistry(props, context) { + _classCallCheck(this, RepoRegistry); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.handleDelete = _this.handleDelete.bind(_this); - _this.handleSave = _this.handleSave.bind(_this); - return _this; - } + _this.handleDelete = _this.handleDelete.bind(_this); + _this.handleSave = _this.handleSave.bind(_this); + return _this; + } - RepoRegistry.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.registries !== nextProps.registries; - }; + RepoRegistry.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.registries !== nextProps.registries; + }; - RepoRegistry.prototype.componentWillMount = function componentWillMount() { - var _props = this.props, - dispatch = _props.dispatch, - drone = _props.drone, - match = _props.match; - var _match$params = match.params, - owner = _match$params.owner, - repo = _match$params.repo; + RepoRegistry.prototype.componentWillMount = function componentWillMount() { + var _props = this.props, + dispatch = _props.dispatch, + drone = _props.drone, + match = _props.match; + var _match$params = match.params, + owner = _match$params.owner, + repo = _match$params.repo; - dispatch(_registry.fetchRegistryList, drone, owner, repo); - }; + dispatch(_registry.fetchRegistryList, drone, owner, repo); + }; - RepoRegistry.prototype.handleSave = function handleSave(e) { - var _props2 = this.props, - dispatch = _props2.dispatch, - drone = _props2.drone, - match = _props2.match; - var _match$params2 = match.params, - owner = _match$params2.owner, - repo = _match$params2.repo; + RepoRegistry.prototype.handleSave = function handleSave(e) { + var _props2 = this.props, + dispatch = _props2.dispatch, + drone = _props2.drone, + match = _props2.match; + var _match$params2 = match.params, + owner = _match$params2.owner, + repo = _match$params2.repo; - var registry = { - address: e.detail.address, - username: e.detail.username, - password: e.detail.password - }; + var registry = { + address: e.detail.address, + username: e.detail.username, + password: e.detail.password + }; - dispatch(_registry.createRegistry, drone, owner, repo, registry); - }; + dispatch(_registry.createRegistry, drone, owner, repo, registry); + }; - RepoRegistry.prototype.handleDelete = function handleDelete(registry) { - var _props3 = this.props, - dispatch = _props3.dispatch, - drone = _props3.drone, - match = _props3.match; - var _match$params3 = match.params, - owner = _match$params3.owner, - repo = _match$params3.repo; + RepoRegistry.prototype.handleDelete = function handleDelete(registry) { + var _props3 = this.props, + dispatch = _props3.dispatch, + drone = _props3.drone, + match = _props3.match; + var _match$params3 = match.params, + owner = _match$params3.owner, + repo = _match$params3.repo; - dispatch(_registry.deleteRegistry, drone, owner, repo, registry.address); - }; + dispatch(_registry.deleteRegistry, drone, owner, repo, registry.address); + }; - RepoRegistry.prototype.render = function render() { - var _props4 = this.props, - registries = _props4.registries, - loaded = _props4.loaded; + RepoRegistry.prototype.render = function render() { + var _props4 = this.props, + registries = _props4.registries, + loaded = _props4.loaded; - if (!loaded) { - return LOADING; - } + if (!loaded) { + return LOADING; + } - return _react2["default"].createElement( - "div", - { className: _index2["default"].root }, - _react2["default"].createElement( - "div", - { className: _index2["default"].left }, - Object.keys(registries || {}).length === 0 ? EMPTY : undefined, - _react2["default"].createElement( - _components.List, - null, - Object.values(registries || {}).map(renderRegistry.bind(this)) - ) - ), - _react2["default"].createElement( - "div", - { className: _index2["default"].right }, - _react2["default"].createElement(_components.Form, { onsubmit: this.handleSave }) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _index2["default"].root }, + _react2["default"].createElement( + "div", + { className: _index2["default"].left }, + Object.keys(registries || {}).length === 0 ? EMPTY : undefined, + _react2["default"].createElement( + _components.List, + null, + Object.values(registries || {}).map(renderRegistry.bind(this)) + ) + ), + _react2["default"].createElement( + "div", + { className: _index2["default"].right }, + _react2["default"].createElement(_components.Form, { onsubmit: this.handleSave }) + ) + ); + }; - return RepoRegistry; + return RepoRegistry; }(_react.Component)) || _class) || _class); exports["default"] = RepoRegistry; function renderRegistry(registry) { - return _react2["default"].createElement(_components.Item, { - name: registry.address, - ondelete: this.handleDelete.bind(this, registry) - }); + return _react2["default"].createElement(_components.Item, { + name: registry.address, + ondelete: this.handleDelete.bind(this, registry) + }); } var LOADING = _react2["default"].createElement( - "div", - { className: _index2["default"].loading }, - "Loading" + "div", + { className: _index2["default"].loading }, + "Loading" ); var EMPTY = _react2["default"].createElement( - "div", - { className: _index2["default"].empty }, - "There are no registry credentials for this repository." + "div", + { className: _index2["default"].empty }, + "There are no registry credentials for this repository." ); /***/ }), @@ -5690,19 +5849,19 @@ var _repository = __webpack_require__(24); * @param {string} name - The repository name. */ var fetchRegistryList = exports.fetchRegistryList = function fetchRegistryList(tree, client, owner, name) { - var slug = (0, _repository.repositorySlug)(owner, name); + var slug = (0, _repository.repositorySlug)(owner, name); - tree.unset(["registry", "loaded"]); - tree.unset(["registry", "error"]); + tree.unset(["registry", "loaded"]); + tree.unset(["registry", "error"]); - client.getRegistryList(owner, name).then(function (results) { - var list = {}; - results.map(function (registry) { - list[registry.address] = registry; - }); - tree.set(["registry", "data", slug], list); - tree.set(["registry", "loaded"], true); - }); + client.getRegistryList(owner, name).then(function (results) { + var list = {}; + results.map(function (registry) { + list[registry.address] = registry; + }); + tree.set(["registry", "data", slug], list); + tree.set(["registry", "loaded"], true); + }); }; /** @@ -5716,14 +5875,14 @@ var fetchRegistryList = exports.fetchRegistryList = function fetchRegistryList(t * @param {Object} registry - The registry hostname. */ var createRegistry = exports.createRegistry = function createRegistry(tree, client, owner, name, registry) { - var slug = (0, _repository.repositorySlug)(owner, name); + var slug = (0, _repository.repositorySlug)(owner, name); - client.createRegistry(owner, name, registry).then(function (result) { - tree.set(["registry", "data", slug, registry.address], result); - (0, _message.displayMessage)(tree, "Successfully stored the registry credentials"); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to store the registry credentials"); - }); + client.createRegistry(owner, name, registry).then(function (result) { + tree.set(["registry", "data", slug, registry.address], result); + (0, _message.displayMessage)(tree, "Successfully stored the registry credentials"); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to store the registry credentials"); + }); }; /** @@ -5737,14 +5896,14 @@ var createRegistry = exports.createRegistry = function createRegistry(tree, clie * @param {Object} registry - The registry hostname. */ var deleteRegistry = exports.deleteRegistry = function deleteRegistry(tree, client, owner, name, registry) { - var slug = (0, _repository.repositorySlug)(owner, name); + var slug = (0, _repository.repositorySlug)(owner, name); - client.deleteRegistry(owner, name, registry).then(function (result) { - tree.unset(["registry", "data", slug, registry]); - (0, _message.displayMessage)(tree, "Successfully deleted the registry credentials"); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to delete the registry credentials"); - }); + client.deleteRegistry(owner, name, registry).then(function (result) { + tree.unset(["registry", "data", slug, registry]); + (0, _message.displayMessage)(tree, "Successfully deleted the registry credentials"); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to delete the registry credentials"); + }); }; /***/ }), @@ -5792,95 +5951,95 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Form = exports.Form = function (_Component) { - _inherits(Form, _Component); + _inherits(Form, _Component); - function Form(props, context) { - _classCallCheck(this, Form); + function Form(props, context) { + _classCallCheck(this, Form); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.state = { - address: "", - username: "", - password: "" - }; + _this.state = { + address: "", + username: "", + password: "" + }; - _this._handleAddressChange = _this._handleAddressChange.bind(_this); - _this._handleUsernameChange = _this._handleUsernameChange.bind(_this); - _this._handlePasswordChange = _this._handlePasswordChange.bind(_this); - _this._handleSubmit = _this._handleSubmit.bind(_this); + _this._handleAddressChange = _this._handleAddressChange.bind(_this); + _this._handleUsernameChange = _this._handleUsernameChange.bind(_this); + _this._handlePasswordChange = _this._handlePasswordChange.bind(_this); + _this._handleSubmit = _this._handleSubmit.bind(_this); - _this.clear = _this.clear.bind(_this); - return _this; - } + _this.clear = _this.clear.bind(_this); + return _this; + } - Form.prototype._handleAddressChange = function _handleAddressChange(event) { - this.setState({ address: event.target.value }); - }; + Form.prototype._handleAddressChange = function _handleAddressChange(event) { + this.setState({ address: event.target.value }); + }; - Form.prototype._handleUsernameChange = function _handleUsernameChange(event) { - this.setState({ username: event.target.value }); - }; + Form.prototype._handleUsernameChange = function _handleUsernameChange(event) { + this.setState({ username: event.target.value }); + }; - Form.prototype._handlePasswordChange = function _handlePasswordChange(event) { - this.setState({ password: event.target.value }); - }; + Form.prototype._handlePasswordChange = function _handlePasswordChange(event) { + this.setState({ password: event.target.value }); + }; - Form.prototype._handleSubmit = function _handleSubmit() { - var onsubmit = this.props.onsubmit; + Form.prototype._handleSubmit = function _handleSubmit() { + var onsubmit = this.props.onsubmit; - var detail = { - address: this.state.address, - username: this.state.username, - password: this.state.password - }; + var detail = { + address: this.state.address, + username: this.state.username, + password: this.state.password + }; - onsubmit({ detail: detail }); - this.clear(); - }; + onsubmit({ detail: detail }); + this.clear(); + }; - Form.prototype.clear = function clear() { - this.setState({ address: "" }); - this.setState({ username: "" }); - this.setState({ password: "" }); - }; + Form.prototype.clear = function clear() { + this.setState({ address: "" }); + this.setState({ username: "" }); + this.setState({ password: "" }); + }; - Form.prototype.render = function render() { - return _react2["default"].createElement( - "div", - { className: _form2["default"].form }, - _react2["default"].createElement("input", { - type: "text", - value: this.state.address, - onChange: this._handleAddressChange, - placeholder: "Registry Address (e.g. docker.io)" - }), - _react2["default"].createElement("input", { - type: "text", - value: this.state.username, - onChange: this._handleUsernameChange, - placeholder: "Registry Username" - }), - _react2["default"].createElement("textarea", { - rows: "1", - value: this.state.password, - onChange: this._handlePasswordChange, - placeholder: "Registry Password" - }), - _react2["default"].createElement( - "div", - { className: _form2["default"].actions }, - _react2["default"].createElement( - "button", - { onClick: this._handleSubmit }, - "Save" - ) - ) - ); - }; + Form.prototype.render = function render() { + return _react2["default"].createElement( + "div", + { className: _form2["default"].form }, + _react2["default"].createElement("input", { + type: "text", + value: this.state.address, + onChange: this._handleAddressChange, + placeholder: "Registry Address (e.g. docker.io)" + }), + _react2["default"].createElement("input", { + type: "text", + value: this.state.username, + onChange: this._handleUsernameChange, + placeholder: "Registry Username" + }), + _react2["default"].createElement("textarea", { + rows: "1", + value: this.state.password, + onChange: this._handlePasswordChange, + placeholder: "Registry Password" + }), + _react2["default"].createElement( + "div", + { className: _form2["default"].actions }, + _react2["default"].createElement( + "button", + { onClick: this._handleSubmit }, + "Save" + ) + ) + ); + }; - return Form; + return Form; }(_react.Component); /***/ }), @@ -5952,33 +6111,33 @@ var _list2 = _interopRequireDefault(_list); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var List = exports.List = function List(_ref) { - var children = _ref.children; - return _react2["default"].createElement( - "div", - { className: _list2["default"].list }, - children - ); + var children = _ref.children; + return _react2["default"].createElement( + "div", + { className: _list2["default"].list }, + children + ); }; var Item = exports.Item = function Item(props) { - return _react2["default"].createElement( - "div", - { className: _list2["default"].item, key: props.name }, - _react2["default"].createElement( - "div", - null, - props.name - ), - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - "button", - { onClick: props.ondelete }, - "delete" - ) - ) - ); + return _react2["default"].createElement( + "div", + { className: _list2["default"].item, key: props.name }, + _react2["default"].createElement( + "div", + null, + props.name + ), + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "button", + { onClick: props.ondelete }, + "delete" + ) + ) + ); }; /***/ }), @@ -6117,125 +6276,125 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - var _props$match$params = props.match.params, - owner = _props$match$params.owner, - repo = _props$match$params.repo; + var _props$match$params = props.match.params, + owner = _props$match$params.owner, + repo = _props$match$params.repo; - var slug = (0, _repository.repositorySlug)(owner, repo); - return { - loaded: ["secrets", "loaded"], - secrets: ["secrets", "data", slug] - }; + var slug = (0, _repository.repositorySlug)(owner, repo); + return { + loaded: ["secrets", "loaded"], + secrets: ["secrets", "data", slug] + }; }; var RepoSecrets = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(RepoSecrets, _Component); + _inherits(RepoSecrets, _Component); - function RepoSecrets(props, context) { - _classCallCheck(this, RepoSecrets); + function RepoSecrets(props, context) { + _classCallCheck(this, RepoSecrets); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.handleSave = _this.handleSave.bind(_this); - return _this; - } + _this.handleSave = _this.handleSave.bind(_this); + return _this; + } - RepoSecrets.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.secrets !== nextProps.secrets; - }; + RepoSecrets.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.secrets !== nextProps.secrets; + }; - RepoSecrets.prototype.componentWillMount = function componentWillMount() { - var _props$match$params2 = this.props.match.params, - owner = _props$match$params2.owner, - repo = _props$match$params2.repo; + RepoSecrets.prototype.componentWillMount = function componentWillMount() { + var _props$match$params2 = this.props.match.params, + owner = _props$match$params2.owner, + repo = _props$match$params2.repo; - this.props.dispatch(_secrets.fetchSecretList, this.props.drone, owner, repo); - }; + this.props.dispatch(_secrets.fetchSecretList, this.props.drone, owner, repo); + }; - RepoSecrets.prototype.handleSave = function handleSave(e) { - var _props = this.props, - dispatch = _props.dispatch, - drone = _props.drone, - match = _props.match; - var _match$params = match.params, - owner = _match$params.owner, - repo = _match$params.repo; + RepoSecrets.prototype.handleSave = function handleSave(e) { + var _props = this.props, + dispatch = _props.dispatch, + drone = _props.drone, + match = _props.match; + var _match$params = match.params, + owner = _match$params.owner, + repo = _match$params.repo; - var secret = { - name: e.detail.name, - value: e.detail.value, - event: e.detail.event - }; + var secret = { + name: e.detail.name, + value: e.detail.value, + event: e.detail.event + }; - dispatch(_secrets.createSecret, drone, owner, repo, secret); - }; + dispatch(_secrets.createSecret, drone, owner, repo, secret); + }; - RepoSecrets.prototype.handleDelete = function handleDelete(secret) { - var _props2 = this.props, - dispatch = _props2.dispatch, - drone = _props2.drone, - match = _props2.match; - var _match$params2 = match.params, - owner = _match$params2.owner, - repo = _match$params2.repo; + RepoSecrets.prototype.handleDelete = function handleDelete(secret) { + var _props2 = this.props, + dispatch = _props2.dispatch, + drone = _props2.drone, + match = _props2.match; + var _match$params2 = match.params, + owner = _match$params2.owner, + repo = _match$params2.repo; - dispatch(_secrets.deleteSecret, drone, owner, repo, secret.name); - }; + dispatch(_secrets.deleteSecret, drone, owner, repo, secret.name); + }; - RepoSecrets.prototype.render = function render() { - var _props3 = this.props, - secrets = _props3.secrets, - loaded = _props3.loaded; + RepoSecrets.prototype.render = function render() { + var _props3 = this.props, + secrets = _props3.secrets, + loaded = _props3.loaded; - if (!loaded) { - return LOADING; - } + if (!loaded) { + return LOADING; + } - return _react2["default"].createElement( - "div", - { className: _index2["default"].root }, - _react2["default"].createElement( - "div", - { className: _index2["default"].left }, - Object.keys(secrets || {}).length === 0 ? EMPTY : undefined, - _react2["default"].createElement( - _components.List, - null, - Object.values(secrets || {}).map(renderSecret.bind(this)) - ) - ), - _react2["default"].createElement( - "div", - { className: _index2["default"].right }, - _react2["default"].createElement(_components.Form, { onsubmit: this.handleSave }) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _index2["default"].root }, + _react2["default"].createElement( + "div", + { className: _index2["default"].left }, + Object.keys(secrets || {}).length === 0 ? EMPTY : undefined, + _react2["default"].createElement( + _components.List, + null, + Object.values(secrets || {}).map(renderSecret.bind(this)) + ) + ), + _react2["default"].createElement( + "div", + { className: _index2["default"].right }, + _react2["default"].createElement(_components.Form, { onsubmit: this.handleSave }) + ) + ); + }; - return RepoSecrets; + return RepoSecrets; }(_react.Component)) || _class) || _class); exports["default"] = RepoSecrets; function renderSecret(secret) { - return _react2["default"].createElement(_components.Item, { - name: secret.name, - event: secret.event, - ondelete: this.handleDelete.bind(this, secret) - }); + return _react2["default"].createElement(_components.Item, { + name: secret.name, + event: secret.event, + ondelete: this.handleDelete.bind(this, secret) + }); } var LOADING = _react2["default"].createElement( - "div", - { className: _index2["default"].loading }, - "Loading" + "div", + { className: _index2["default"].loading }, + "Loading" ); var EMPTY = _react2["default"].createElement( - "div", - { className: _index2["default"].empty }, - "There are no secrets for this repository." + "div", + { className: _index2["default"].empty }, + "There are no secrets for this repository." ); /***/ }), @@ -6262,19 +6421,19 @@ var _repository = __webpack_require__(24); * @param {string} name - The repository name. */ var fetchSecretList = exports.fetchSecretList = function fetchSecretList(tree, client, owner, name) { - var slug = (0, _repository.repositorySlug)(owner, name); + var slug = (0, _repository.repositorySlug)(owner, name); - tree.unset(["secrets", "loaded"]); - tree.unset(["secrets", "error"]); + tree.unset(["secrets", "loaded"]); + tree.unset(["secrets", "error"]); - client.getSecretList(owner, name).then(function (results) { - var list = {}; - results.map(function (secret) { - list[secret.name] = secret; - }); - tree.set(["secrets", "data", slug], list); - tree.set(["secrets", "loaded"], true); - }); + client.getSecretList(owner, name).then(function (results) { + var list = {}; + results.map(function (secret) { + list[secret.name] = secret; + }); + tree.set(["secrets", "data", slug], list); + tree.set(["secrets", "loaded"], true); + }); }; /** @@ -6288,14 +6447,14 @@ var fetchSecretList = exports.fetchSecretList = function fetchSecretList(tree, c * @param {Object} secret - The secret object. */ var createSecret = exports.createSecret = function createSecret(tree, client, owner, name, secret) { - var slug = (0, _repository.repositorySlug)(owner, name); + var slug = (0, _repository.repositorySlug)(owner, name); - client.createSecret(owner, name, secret).then(function (result) { - tree.set(["secrets", "data", slug, secret.name], result); - (0, _message.displayMessage)(tree, "Successfully added the secret"); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to create the secret"); - }); + client.createSecret(owner, name, secret).then(function (result) { + tree.set(["secrets", "data", slug, secret.name], result); + (0, _message.displayMessage)(tree, "Successfully added the secret"); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to create the secret"); + }); }; /** @@ -6309,14 +6468,14 @@ var createSecret = exports.createSecret = function createSecret(tree, client, ow * @param {string} secret - The secret name. */ var deleteSecret = exports.deleteSecret = function deleteSecret(tree, client, owner, name, secret) { - var slug = (0, _repository.repositorySlug)(owner, name); + var slug = (0, _repository.repositorySlug)(owner, name); - client.deleteSecret(owner, name, secret).then(function (result) { - tree.unset(["secrets", "data", slug, secret]); - (0, _message.displayMessage)(tree, "Successfully removed the secret"); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to remove the secret"); - }); + client.deleteSecret(owner, name, secret).then(function (result) { + tree.unset(["secrets", "data", slug, secret]); + (0, _message.displayMessage)(tree, "Successfully removed the secret"); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to remove the secret"); + }); }; /***/ }), @@ -6366,179 +6525,179 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Form = exports.Form = function (_Component) { - _inherits(Form, _Component); + _inherits(Form, _Component); - function Form(props, context) { - _classCallCheck(this, Form); + function Form(props, context) { + _classCallCheck(this, Form); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.state = { - name: "", - value: "", - event: [_events.EVENT_PUSH, _events.EVENT_TAG, _events.EVENT_DEPLOY] - }; + _this.state = { + name: "", + value: "", + event: [_events.EVENT_PUSH, _events.EVENT_TAG, _events.EVENT_DEPLOY] + }; - _this._handleNameChange = _this._handleNameChange.bind(_this); - _this._handleValueChange = _this._handleValueChange.bind(_this); - _this._handleEventChange = _this._handleEventChange.bind(_this); - _this._handleSubmit = _this._handleSubmit.bind(_this); + _this._handleNameChange = _this._handleNameChange.bind(_this); + _this._handleValueChange = _this._handleValueChange.bind(_this); + _this._handleEventChange = _this._handleEventChange.bind(_this); + _this._handleSubmit = _this._handleSubmit.bind(_this); - _this.clear = _this.clear.bind(_this); - return _this; - } + _this.clear = _this.clear.bind(_this); + return _this; + } - Form.prototype._handleNameChange = function _handleNameChange(event) { - this.setState({ name: event.target.value }); - }; + Form.prototype._handleNameChange = function _handleNameChange(event) { + this.setState({ name: event.target.value }); + }; - Form.prototype._handleValueChange = function _handleValueChange(event) { - this.setState({ value: event.target.value }); - }; + Form.prototype._handleValueChange = function _handleValueChange(event) { + this.setState({ value: event.target.value }); + }; - Form.prototype._handleEventChange = function _handleEventChange(event) { - var selected = this.state.event; - var index = void 0; + Form.prototype._handleEventChange = function _handleEventChange(event) { + var selected = this.state.event; + var index = void 0; - if (event.target.checked) { - selected.push(event.target.value); - } else { - index = selected.indexOf(event.target.value); - selected.splice(index, 1); - } + if (event.target.checked) { + selected.push(event.target.value); + } else { + index = selected.indexOf(event.target.value); + selected.splice(index, 1); + } - this.setState({ event: selected }); - }; + this.setState({ event: selected }); + }; - Form.prototype._handleSubmit = function _handleSubmit() { - var onsubmit = this.props.onsubmit; + Form.prototype._handleSubmit = function _handleSubmit() { + var onsubmit = this.props.onsubmit; - var detail = { - name: this.state.name, - value: this.state.value, - event: this.state.event - }; + var detail = { + name: this.state.name, + value: this.state.value, + event: this.state.event + }; - onsubmit({ detail: detail }); - this.clear(); - }; + onsubmit({ detail: detail }); + this.clear(); + }; - Form.prototype.clear = function clear() { - this.setState({ name: "" }); - this.setState({ value: "" }); - this.setState({ event: [_events.EVENT_PUSH, _events.EVENT_TAG, _events.EVENT_DEPLOY] }); - }; + Form.prototype.clear = function clear() { + this.setState({ name: "" }); + this.setState({ value: "" }); + this.setState({ event: [_events.EVENT_PUSH, _events.EVENT_TAG, _events.EVENT_DEPLOY] }); + }; - Form.prototype.render = function render() { - var checked = this.state.event.reduce(function (map, event) { - map[event] = true; - return map; - }, {}); + Form.prototype.render = function render() { + var checked = this.state.event.reduce(function (map, event) { + map[event] = true; + return map; + }, {}); - return _react2["default"].createElement( - "div", - { className: _form2["default"].form }, - _react2["default"].createElement("input", { - type: "text", - name: "name", - value: this.state.name, - placeholder: "Secret Name", - onChange: this._handleNameChange - }), - _react2["default"].createElement("textarea", { - rows: "1", - name: "value", - value: this.state.value, - placeholder: "Secret Value", - onChange: this._handleValueChange - }), - _react2["default"].createElement( - "section", - null, - _react2["default"].createElement( - "h2", - null, - "Events" - ), - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: checked[_events.EVENT_PUSH], - value: _events.EVENT_PUSH, - onChange: this._handleEventChange - }), - _react2["default"].createElement( - "span", - null, - "push" - ) - ), - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: checked[_events.EVENT_TAG], - value: _events.EVENT_TAG, - onChange: this._handleEventChange - }), - _react2["default"].createElement( - "span", - null, - "tag" - ) - ), - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: checked[_events.EVENT_PULL_REQUEST], - value: _events.EVENT_PULL_REQUEST, - onChange: this._handleEventChange - }), - _react2["default"].createElement( - "span", - null, - "pull request" - ) - ), - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: checked[_events.EVENT_DEPLOY], - value: _events.EVENT_DEPLOY, - onChange: this._handleEventChange - }), - _react2["default"].createElement( - "span", - null, - "deploy" - ) - ) - ) - ), - _react2["default"].createElement( - "div", - { className: _form2["default"].actions }, - _react2["default"].createElement( - "button", - { onClick: this._handleSubmit }, - "Save" - ) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _form2["default"].form }, + _react2["default"].createElement("input", { + type: "text", + name: "name", + value: this.state.name, + placeholder: "Secret Name", + onChange: this._handleNameChange + }), + _react2["default"].createElement("textarea", { + rows: "1", + name: "value", + value: this.state.value, + placeholder: "Secret Value", + onChange: this._handleValueChange + }), + _react2["default"].createElement( + "section", + null, + _react2["default"].createElement( + "h2", + null, + "Events" + ), + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: checked[_events.EVENT_PUSH], + value: _events.EVENT_PUSH, + onChange: this._handleEventChange + }), + _react2["default"].createElement( + "span", + null, + "push" + ) + ), + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: checked[_events.EVENT_TAG], + value: _events.EVENT_TAG, + onChange: this._handleEventChange + }), + _react2["default"].createElement( + "span", + null, + "tag" + ) + ), + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: checked[_events.EVENT_PULL_REQUEST], + value: _events.EVENT_PULL_REQUEST, + onChange: this._handleEventChange + }), + _react2["default"].createElement( + "span", + null, + "pull request" + ) + ), + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: checked[_events.EVENT_DEPLOY], + value: _events.EVENT_DEPLOY, + onChange: this._handleEventChange + }), + _react2["default"].createElement( + "span", + null, + "deploy" + ) + ) + ) + ), + _react2["default"].createElement( + "div", + { className: _form2["default"].actions }, + _react2["default"].createElement( + "button", + { onClick: this._handleSubmit }, + "Save" + ) + ) + ); + }; - return Form; + return Form; }(_react.Component); /***/ }), @@ -6610,46 +6769,46 @@ var _list2 = _interopRequireDefault(_list); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var List = exports.List = function List(_ref) { - var children = _ref.children; - return _react2["default"].createElement( - "div", - null, - children - ); + var children = _ref.children; + return _react2["default"].createElement( + "div", + null, + children + ); }; var Item = exports.Item = function Item(props) { - return _react2["default"].createElement( - "div", - { className: _list2["default"].item, key: props.name }, - _react2["default"].createElement( - "div", - null, - props.name, - _react2["default"].createElement( - "ul", - null, - props.event ? props.event.map(renderEvent) : null - ) - ), - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - "button", - { onClick: props.ondelete }, - "delete" - ) - ) - ); + return _react2["default"].createElement( + "div", + { className: _list2["default"].item, key: props.name }, + _react2["default"].createElement( + "div", + null, + props.name, + _react2["default"].createElement( + "ul", + null, + props.event ? props.event.map(renderEvent) : null + ) + ), + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "button", + { onClick: props.ondelete }, + "delete" + ) + ) + ); }; var renderEvent = function renderEvent(event) { - return _react2["default"].createElement( - "li", - null, - event - ); + return _react2["default"].createElement( + "li", + null, + event + ); }; /***/ }), @@ -6786,348 +6945,348 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - var _props$match$params = props.match.params, - owner = _props$match$params.owner, - repo = _props$match$params.repo; + var _props$match$params = props.match.params, + owner = _props$match$params.owner, + repo = _props$match$params.repo; - var slug = (0, _repository.repositorySlug)(owner, repo); - return { - user: ["user", "data"], - repo: ["repos", "data", slug] - }; + var slug = (0, _repository.repositorySlug)(owner, repo); + return { + user: ["user", "data"], + repo: ["repos", "data", slug] + }; }; var Settings = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(Settings, _Component); + _inherits(Settings, _Component); - function Settings(props, context) { - _classCallCheck(this, Settings); + function Settings(props, context) { + _classCallCheck(this, Settings); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.handlePushChange = _this.handlePushChange.bind(_this); - _this.handlePullChange = _this.handlePullChange.bind(_this); - _this.handleTagChange = _this.handleTagChange.bind(_this); - _this.handleDeployChange = _this.handleDeployChange.bind(_this); - _this.handleTrustedChange = _this.handleTrustedChange.bind(_this); - _this.handleProtectedChange = _this.handleProtectedChange.bind(_this); - _this.handleVisibilityChange = _this.handleVisibilityChange.bind(_this); - _this.handleTimeoutChange = _this.handleTimeoutChange.bind(_this); - _this.handlePathChange = _this.handlePathChange.bind(_this); - _this.handleFallbackChange = _this.handleFallbackChange.bind(_this); - _this.handleChange = _this.handleChange.bind(_this); - return _this; - } + _this.handlePushChange = _this.handlePushChange.bind(_this); + _this.handlePullChange = _this.handlePullChange.bind(_this); + _this.handleTagChange = _this.handleTagChange.bind(_this); + _this.handleDeployChange = _this.handleDeployChange.bind(_this); + _this.handleTrustedChange = _this.handleTrustedChange.bind(_this); + _this.handleProtectedChange = _this.handleProtectedChange.bind(_this); + _this.handleVisibilityChange = _this.handleVisibilityChange.bind(_this); + _this.handleTimeoutChange = _this.handleTimeoutChange.bind(_this); + _this.handlePathChange = _this.handlePathChange.bind(_this); + _this.handleFallbackChange = _this.handleFallbackChange.bind(_this); + _this.handleChange = _this.handleChange.bind(_this); + return _this; + } - Settings.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.repo !== nextProps.repo; - }; + Settings.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.repo !== nextProps.repo; + }; - Settings.prototype.componentWillMount = function componentWillMount() { - var _props = this.props, - drone = _props.drone, - dispatch = _props.dispatch, - match = _props.match, - repo = _props.repo; + Settings.prototype.componentWillMount = function componentWillMount() { + var _props = this.props, + drone = _props.drone, + dispatch = _props.dispatch, + match = _props.match, + repo = _props.repo; - if (!repo) { - dispatch(_repository.fetchRepository, drone, match.params.owner, match.params.repo); - } - }; + if (!repo) { + dispatch(_repository.fetchRepository, drone, match.params.owner, match.params.repo); + } + }; - Settings.prototype.render = function render() { - var repo = this.props.repo; + Settings.prototype.render = function render() { + var repo = this.props.repo; - if (!repo) { - return undefined; - } + if (!repo) { + return undefined; + } - return _react2["default"].createElement( - "div", - { className: _index2["default"].root }, - _react2["default"].createElement( - "section", - null, - _react2["default"].createElement( - "h2", - null, - "Pipeline Path" - ), - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement("input", { - type: "text", - value: repo.config_file, - onBlur: this.handlePathChange - }), - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: repo.fallback, - onChange: this.handleFallbackChange - }), - _react2["default"].createElement( - "span", - null, - "Fallback to .drone.yml if path not exists" - ) - ) - ) - ), - _react2["default"].createElement( - "section", - null, - _react2["default"].createElement( - "h2", - null, - "Repository Hooks" - ), - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: repo.allow_push, - onChange: this.handlePushChange - }), - _react2["default"].createElement( - "span", - null, - "push" - ) - ), - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: repo.allow_pr, - onChange: this.handlePullChange - }), - _react2["default"].createElement( - "span", - null, - "pull request" - ) - ), - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: repo.allow_tags, - onChange: this.handleTagChange - }), - _react2["default"].createElement( - "span", - null, - "tag" - ) - ), - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: repo.allow_deploys, - onChange: this.handleDeployChange - }), - _react2["default"].createElement( - "span", - null, - "deployment" - ) - ) - ) - ), - _react2["default"].createElement( - "section", - null, - _react2["default"].createElement( - "h2", - null, - "Project Settings" - ), - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: repo.gated, - onChange: this.handleProtectedChange - }), - _react2["default"].createElement( - "span", - null, - "Protected" - ) - ), - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "checkbox", - checked: repo.trusted, - onChange: this.handleTrustedChange - }), - _react2["default"].createElement( - "span", - null, - "Trusted" - ) - ) - ) - ), - _react2["default"].createElement( - "section", - null, - _react2["default"].createElement( - "h2", - null, - "Project Visibility" - ), - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "radio", - name: "visibility", - value: "public", - checked: repo.visibility === _visibility.VISIBILITY_PUBLIC, - onChange: this.handleVisibilityChange - }), - _react2["default"].createElement( - "span", - null, - "Public" - ) - ), - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "radio", - name: "visibility", - value: "private", - checked: repo.visibility === _visibility.VISIBILITY_PRIVATE, - onChange: this.handleVisibilityChange - }), - _react2["default"].createElement( - "span", - null, - "Private" - ) - ), - _react2["default"].createElement( - "label", - null, - _react2["default"].createElement("input", { - type: "radio", - name: "visibility", - value: "internal", - checked: repo.visibility === _visibility.VISIBILITY_INTERNAL, - onChange: this.handleVisibilityChange - }), - _react2["default"].createElement( - "span", - null, - "Internal" - ) - ) - ) - ), - _react2["default"].createElement( - "section", - null, - _react2["default"].createElement( - "h2", - null, - "Timeout" - ), - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement("input", { - type: "number", - value: repo.timeout, - onBlur: this.handleTimeoutChange - }), - _react2["default"].createElement( - "span", - { className: _index2["default"].minutes }, - "minutes" - ) - ) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _index2["default"].root }, + _react2["default"].createElement( + "section", + null, + _react2["default"].createElement( + "h2", + null, + "Pipeline Path" + ), + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement("input", { + type: "text", + value: repo.config_file, + onBlur: this.handlePathChange + }), + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: repo.fallback, + onChange: this.handleFallbackChange + }), + _react2["default"].createElement( + "span", + null, + "Fallback to .drone.yml if path not exists" + ) + ) + ) + ), + _react2["default"].createElement( + "section", + null, + _react2["default"].createElement( + "h2", + null, + "Repository Hooks" + ), + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: repo.allow_push, + onChange: this.handlePushChange + }), + _react2["default"].createElement( + "span", + null, + "push" + ) + ), + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: repo.allow_pr, + onChange: this.handlePullChange + }), + _react2["default"].createElement( + "span", + null, + "pull request" + ) + ), + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: repo.allow_tags, + onChange: this.handleTagChange + }), + _react2["default"].createElement( + "span", + null, + "tag" + ) + ), + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: repo.allow_deploys, + onChange: this.handleDeployChange + }), + _react2["default"].createElement( + "span", + null, + "deployment" + ) + ) + ) + ), + _react2["default"].createElement( + "section", + null, + _react2["default"].createElement( + "h2", + null, + "Project Settings" + ), + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: repo.gated, + onChange: this.handleProtectedChange + }), + _react2["default"].createElement( + "span", + null, + "Protected" + ) + ), + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "checkbox", + checked: repo.trusted, + onChange: this.handleTrustedChange + }), + _react2["default"].createElement( + "span", + null, + "Trusted" + ) + ) + ) + ), + _react2["default"].createElement( + "section", + null, + _react2["default"].createElement( + "h2", + null, + "Project Visibility" + ), + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "radio", + name: "visibility", + value: "public", + checked: repo.visibility === _visibility.VISIBILITY_PUBLIC, + onChange: this.handleVisibilityChange + }), + _react2["default"].createElement( + "span", + null, + "Public" + ) + ), + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "radio", + name: "visibility", + value: "private", + checked: repo.visibility === _visibility.VISIBILITY_PRIVATE, + onChange: this.handleVisibilityChange + }), + _react2["default"].createElement( + "span", + null, + "Private" + ) + ), + _react2["default"].createElement( + "label", + null, + _react2["default"].createElement("input", { + type: "radio", + name: "visibility", + value: "internal", + checked: repo.visibility === _visibility.VISIBILITY_INTERNAL, + onChange: this.handleVisibilityChange + }), + _react2["default"].createElement( + "span", + null, + "Internal" + ) + ) + ) + ), + _react2["default"].createElement( + "section", + null, + _react2["default"].createElement( + "h2", + null, + "Timeout" + ), + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement("input", { + type: "number", + value: repo.timeout, + onBlur: this.handleTimeoutChange + }), + _react2["default"].createElement( + "span", + { className: _index2["default"].minutes }, + "minutes" + ) + ) + ) + ); + }; - Settings.prototype.handlePushChange = function handlePushChange(e) { - this.handleChange("allow_push", e.target.checked); - }; + Settings.prototype.handlePushChange = function handlePushChange(e) { + this.handleChange("allow_push", e.target.checked); + }; - Settings.prototype.handlePullChange = function handlePullChange(e) { - this.handleChange("allow_pr", e.target.checked); - }; + Settings.prototype.handlePullChange = function handlePullChange(e) { + this.handleChange("allow_pr", e.target.checked); + }; - Settings.prototype.handleTagChange = function handleTagChange(e) { - this.handleChange("allow_tag", e.target.checked); - }; + Settings.prototype.handleTagChange = function handleTagChange(e) { + this.handleChange("allow_tag", e.target.checked); + }; - Settings.prototype.handleDeployChange = function handleDeployChange(e) { - this.handleChange("allow_deploy", e.target.checked); - }; + Settings.prototype.handleDeployChange = function handleDeployChange(e) { + this.handleChange("allow_deploy", e.target.checked); + }; - Settings.prototype.handleTrustedChange = function handleTrustedChange(e) { - this.handleChange("trusted", e.target.checked); - }; + Settings.prototype.handleTrustedChange = function handleTrustedChange(e) { + this.handleChange("trusted", e.target.checked); + }; - Settings.prototype.handleProtectedChange = function handleProtectedChange(e) { - this.handleChange("gated", e.target.checked); - }; + Settings.prototype.handleProtectedChange = function handleProtectedChange(e) { + this.handleChange("gated", e.target.checked); + }; - Settings.prototype.handleVisibilityChange = function handleVisibilityChange(e) { - this.handleChange("visibility", e.target.value); - }; + Settings.prototype.handleVisibilityChange = function handleVisibilityChange(e) { + this.handleChange("visibility", e.target.value); + }; - Settings.prototype.handleTimeoutChange = function handleTimeoutChange(e) { - this.handleChange("timeout", parseInt(e.target.value)); - }; + Settings.prototype.handleTimeoutChange = function handleTimeoutChange(e) { + this.handleChange("timeout", parseInt(e.target.value)); + }; - Settings.prototype.handlePathChange = function handlePathChange(e) { - this.handleChange("config_file", e.target.value); - }; + Settings.prototype.handlePathChange = function handlePathChange(e) { + this.handleChange("config_file", e.target.value); + }; - Settings.prototype.handleFallbackChange = function handleFallbackChange(e) { - this.handleChange("fallback", e.target.checked); - }; + Settings.prototype.handleFallbackChange = function handleFallbackChange(e) { + this.handleChange("fallback", e.target.checked); + }; - Settings.prototype.handleChange = function handleChange(prop, value) { - var _props2 = this.props, - dispatch = _props2.dispatch, - drone = _props2.drone, - repo = _props2.repo; + Settings.prototype.handleChange = function handleChange(prop, value) { + var _props2 = this.props, + dispatch = _props2.dispatch, + drone = _props2.drone, + repo = _props2.repo; - var data = {}; - data[prop] = value; - dispatch(_repository.updateRepository, drone, repo.owner, repo.name, data); - }; + var data = {}; + data[prop] = value; + dispatch(_repository.updateRepository, drone, repo.owner, repo.name, data); + }; - return Settings; + return Settings; }(_react.Component)) || _class) || _class); exports["default"] = Settings; @@ -7236,149 +7395,149 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - var _props$match$params = props.match.params, - owner = _props$match$params.owner, - repo = _props$match$params.repo; + var _props$match$params = props.match.params, + owner = _props$match$params.owner, + repo = _props$match$params.repo; - var slug = (0, _repository.repositorySlug)(owner, repo); - return { - repo: ["repos", "data", slug], - builds: ["builds", "data", slug], - loaded: ["builds", "loaded"], - error: ["builds", "error"] - }; + var slug = (0, _repository.repositorySlug)(owner, repo); + return { + repo: ["repos", "data", slug], + builds: ["builds", "data", slug], + loaded: ["builds", "loaded"], + error: ["builds", "error"] + }; }; var Main = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(Main, _Component); + _inherits(Main, _Component); - function Main(props, context) { - _classCallCheck(this, Main); + function Main(props, context) { + _classCallCheck(this, Main); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.fetchNextBuildPage = _this.fetchNextBuildPage.bind(_this); - return _this; - } + _this.fetchNextBuildPage = _this.fetchNextBuildPage.bind(_this); + return _this; + } - Main.prototype.componentWillMount = function componentWillMount() { - this.synchronize(this.props); - }; + Main.prototype.componentWillMount = function componentWillMount() { + this.synchronize(this.props); + }; - Main.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.repo !== nextProps.repo || nextProps.builds !== undefined && this.props.builds !== nextProps.builds || this.props.error !== nextProps.error || this.props.loaded !== nextProps.loaded; - }; + Main.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.repo !== nextProps.repo || nextProps.builds !== undefined && this.props.builds !== nextProps.builds || this.props.error !== nextProps.error || this.props.loaded !== nextProps.loaded; + }; - Main.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { - if (this.props.match.url !== nextProps.match.url) { - this.synchronize(nextProps); - } - }; + Main.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { + if (this.props.match.url !== nextProps.match.url) { + this.synchronize(nextProps); + } + }; - Main.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { - if (this.props.location !== prevProps.location) { - window.scrollTo(0, 0); - } - }; + Main.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { + if (this.props.location !== prevProps.location) { + window.scrollTo(0, 0); + } + }; - Main.prototype.synchronize = function synchronize(props) { - var drone = props.drone, - dispatch = props.dispatch, - match = props.match, - repo = props.repo; + Main.prototype.synchronize = function synchronize(props) { + var drone = props.drone, + dispatch = props.dispatch, + match = props.match, + repo = props.repo; - if (!repo) { - dispatch(_repository.fetchRepository, drone, match.params.owner, match.params.repo); - } + if (!repo) { + dispatch(_repository.fetchRepository, drone, match.params.owner, match.params.repo); + } - dispatch(_build.fetchBuildList, drone, match.params.owner, match.params.repo); - }; + dispatch(_build.fetchBuildList, drone, match.params.owner, match.params.repo); + }; - Main.prototype.fetchNextBuildPage = function fetchNextBuildPage(buildList) { - var _props = this.props, - drone = _props.drone, - dispatch = _props.dispatch, - match = _props.match; + Main.prototype.fetchNextBuildPage = function fetchNextBuildPage(buildList) { + var _props = this.props, + drone = _props.drone, + dispatch = _props.dispatch, + match = _props.match; - var page = Math.floor(buildList.length / 50) + 1; + var page = Math.floor(buildList.length / 50) + 1; - dispatch(_build.fetchBuildList, drone, match.params.owner, match.params.repo, page); - }; + dispatch(_build.fetchBuildList, drone, match.params.owner, match.params.repo, page); + }; - Main.prototype.render = function render() { - var _this2 = this; + Main.prototype.render = function render() { + var _this2 = this; - var _props2 = this.props, - repo = _props2.repo, - builds = _props2.builds, - loaded = _props2.loaded, - error = _props2.error; + var _props2 = this.props, + repo = _props2.repo, + builds = _props2.builds, + loaded = _props2.loaded, + error = _props2.error; - var list = Object.values(builds || {}); + var list = Object.values(builds || {}); - function renderBuild(build) { - return _react2["default"].createElement( - _reactRouterDom.Link, - { to: "/" + repo.full_name + "/" + build.number, key: build.number }, - _react2["default"].createElement(_components.Item, { build: build }) - ); - } + function renderBuild(build) { + return _react2["default"].createElement( + _reactRouterDom.Link, + { to: "/" + repo.full_name + "/" + build.number, key: build.number }, + _react2["default"].createElement(_components.Item, { build: build }) + ); + } - if (error) { - return _react2["default"].createElement( - "div", - null, - "Not Found" - ); - } + if (error) { + return _react2["default"].createElement( + "div", + null, + "Not Found" + ); + } - if (!loaded && list.length === 0) { - return _react2["default"].createElement( - "div", - null, - "Loading" - ); - } + if (!loaded && list.length === 0) { + return _react2["default"].createElement( + "div", + null, + "Loading" + ); + } - if (!repo) { - return _react2["default"].createElement( - "div", - null, - "Loading" - ); - } + if (!repo) { + return _react2["default"].createElement( + "div", + null, + "Loading" + ); + } - if (list.length === 0) { - return _react2["default"].createElement( - "div", - null, - "Build list is empty" - ); - } + if (list.length === 0) { + return _react2["default"].createElement( + "div", + null, + "Build list is empty" + ); + } - return _react2["default"].createElement( - "div", - { className: _index2["default"].root }, - _react2["default"].createElement( - _components.List, - null, - list.sort(_build.compareBuild).map(renderBuild) - ), - list.length < repo.last_build && _react2["default"].createElement( - "button", - { - onClick: function onClick() { - return _this2.fetchNextBuildPage(list); - }, - className: _index2["default"].more - }, - "Show more builds" - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _index2["default"].root }, + _react2["default"].createElement( + _components.List, + null, + list.sort(_build.compareBuild).map(renderBuild) + ), + list.length < repo.last_build && _react2["default"].createElement( + "button", + { + onClick: function onClick() { + return _this2.fetchNextBuildPage(list); + }, + className: _index2["default"].more + }, + "Show more builds" + ) + ); + }; - return Main; + return Main; }(_react.Component)) || _class) || _class); exports["default"] = Main; @@ -7440,75 +7599,75 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var List = exports.List = function List(_ref) { - var children = _ref.children; - return _react2["default"].createElement( - "div", - { className: _list2["default"].list }, - children - ); + var children = _ref.children; + return _react2["default"].createElement( + "div", + { className: _list2["default"].list }, + children + ); }; var Item = exports.Item = function (_Component) { - _inherits(Item, _Component); + _inherits(Item, _Component); - function Item() { - _classCallCheck(this, Item); + function Item() { + _classCallCheck(this, Item); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Item.prototype.render = function render() { - var build = this.props.build; + Item.prototype.render = function render() { + var build = this.props.build; - return _react2["default"].createElement( - "div", - { className: _list2["default"].item }, - _react2["default"].createElement( - "div", - { className: _list2["default"].icon }, - _react2["default"].createElement("img", { src: build.author_avatar }) - ), - _react2["default"].createElement( - "div", - { className: _list2["default"].body }, - _react2["default"].createElement( - "h3", - null, - build.message.split("\n")[0] - ) - ), - _react2["default"].createElement( - "div", - { className: _list2["default"].meta }, - _react2["default"].createElement(_build_event2["default"], { - link: build.link_url, - event: build.event, - commit: build.commit, - branch: build.branch, - target: build.deploy_to, - refspec: build.refspec, - refs: build.ref - }) - ), - _react2["default"].createElement("div", { className: _list2["default"]["break"] }), - _react2["default"].createElement( - "div", - { className: _list2["default"].time }, - _react2["default"].createElement(_build_time2["default"], { - start: build.started_at || build.created_at, - finish: build.finished_at - }) - ), - _react2["default"].createElement( - "div", - { className: _list2["default"].status }, - _react2["default"].createElement(_status_number2["default"], { status: build.status, number: build.number }), - _react2["default"].createElement(_status2["default"], { status: build.status }) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _list2["default"].item }, + _react2["default"].createElement( + "div", + { className: _list2["default"].icon }, + _react2["default"].createElement("img", { src: build.author_avatar }) + ), + _react2["default"].createElement( + "div", + { className: _list2["default"].body }, + _react2["default"].createElement( + "h3", + null, + build.message.split("\n")[0] + ) + ), + _react2["default"].createElement( + "div", + { className: _list2["default"].meta }, + _react2["default"].createElement(_build_event2["default"], { + link: build.link_url, + event: build.event, + commit: build.commit, + branch: build.branch, + target: build.deploy_to, + refspec: build.refspec, + refs: build.ref + }) + ), + _react2["default"].createElement("div", { className: _list2["default"]["break"] }), + _react2["default"].createElement( + "div", + { className: _list2["default"].time }, + _react2["default"].createElement(_build_time2["default"], { + start: build.started_at || build.created_at, + finish: build.finished_at + }) + ), + _react2["default"].createElement( + "div", + { className: _list2["default"].status }, + _react2["default"].createElement(_status_number2["default"], { status: build.status, number: build.number }), + _react2["default"].createElement(_status2["default"], { status: build.status }) + ) + ); + }; - return Item; + return Item; }(_react.Component); /***/ }), @@ -7542,28 +7701,28 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var StatusNumber = function (_Component) { - _inherits(StatusNumber, _Component); + _inherits(StatusNumber, _Component); - function StatusNumber() { - _classCallCheck(this, StatusNumber); + function StatusNumber() { + _classCallCheck(this, StatusNumber); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - StatusNumber.prototype.render = function render() { - var _props = this.props, - status = _props.status, - number = _props.number; + StatusNumber.prototype.render = function render() { + var _props = this.props, + status = _props.status, + number = _props.number; - var className = (0, _classnames2["default"])(_status_number2["default"].root, _status_number2["default"][status]); - return _react2["default"].createElement( - "div", - { className: className }, - number - ); - }; + var className = (0, _classnames2["default"])(_status_number2["default"].root, _status_number2["default"][status]); + return _react2["default"].createElement( + "div", + { className: className }, + number + ); + }; - return StatusNumber; + return StatusNumber; }(_react.Component); exports["default"] = StatusNumber; @@ -7817,174 +7976,174 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - return { - repos: ["repos", "data"], - loaded: ["repos", "loaded"], - error: ["repos", "error"] - }; + return { + repos: ["repos", "data"], + loaded: ["repos", "loaded"], + error: ["repos", "error"] + }; }; var UserRepos = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(UserRepos, _Component); + _inherits(UserRepos, _Component); - function UserRepos(props, context) { - _classCallCheck(this, UserRepos); + function UserRepos(props, context) { + _classCallCheck(this, UserRepos); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.handleFilter = _this.handleFilter.bind(_this); - _this.renderItem = _this.renderItem.bind(_this); - _this.handleToggle = _this.handleToggle.bind(_this); - return _this; - } + _this.handleFilter = _this.handleFilter.bind(_this); + _this.renderItem = _this.renderItem.bind(_this); + _this.handleToggle = _this.handleToggle.bind(_this); + return _this; + } - UserRepos.prototype.handleFilter = function handleFilter(e) { - this.setState({ - search: e.target.value - }); - }; + UserRepos.prototype.handleFilter = function handleFilter(e) { + this.setState({ + search: e.target.value + }); + }; - UserRepos.prototype.handleToggle = function handleToggle(repo, e) { - var _props = this.props, - dispatch = _props.dispatch, - drone = _props.drone; + UserRepos.prototype.handleToggle = function handleToggle(repo, e) { + var _props = this.props, + dispatch = _props.dispatch, + drone = _props.drone; - if (e.target.checked) { - dispatch(_repository.enableRepository, drone, repo.owner, repo.name); - } else { - dispatch(_repository.disableRepository, drone, repo.owner, repo.name); - } - }; + if (e.target.checked) { + dispatch(_repository.enableRepository, drone, repo.owner, repo.name); + } else { + dispatch(_repository.disableRepository, drone, repo.owner, repo.name); + } + }; - UserRepos.prototype.componentWillMount = function componentWillMount() { - if (!this._dispatched) { - this._dispatched = true; - this.props.dispatch(_repository.fetchRepostoryList, this.props.drone); - } - }; + UserRepos.prototype.componentWillMount = function componentWillMount() { + if (!this._dispatched) { + this._dispatched = true; + this.props.dispatch(_repository.fetchRepostoryList, this.props.drone); + } + }; - UserRepos.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.repos !== nextProps.repos || this.state.search !== nextState.search; - }; + UserRepos.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.repos !== nextProps.repos || this.state.search !== nextState.search; + }; - UserRepos.prototype.render = function render() { - var _props2 = this.props, - repos = _props2.repos, - loaded = _props2.loaded, - error = _props2.error; - var search = this.state.search; + UserRepos.prototype.render = function render() { + var _props2 = this.props, + repos = _props2.repos, + loaded = _props2.loaded, + error = _props2.error; + var search = this.state.search; - var list = Object.values(repos || {}); + var list = Object.values(repos || {}); - if (error) { - return ERROR; - } + if (error) { + return ERROR; + } - if (!loaded) { - return LOADING; - } + if (!loaded) { + return LOADING; + } - if (list.length === 0) { - return EMPTY; - } + if (list.length === 0) { + return EMPTY; + } - var filter = function filter(repo) { - return !search || repo.full_name.indexOf(search) !== -1; - }; + var filter = function filter(repo) { + return !search || repo.full_name.indexOf(search) !== -1; + }; - var filtered = list.filter(filter); + var filtered = list.filter(filter); - return _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - "div", - { className: _index2["default"].search }, - _react2["default"].createElement("input", { - type: "text", - placeholder: "Search \u2026", - onChange: this.handleFilter - }) - ), - _react2["default"].createElement( - "div", - { className: _index2["default"].root }, - filtered.length === 0 ? NO_MATCHES : null, - _react2["default"].createElement( - _components.List, - null, - list.filter(filter).map(this.renderItem) - ) - ) - ); - }; + return _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + "div", + { className: _index2["default"].search }, + _react2["default"].createElement("input", { + type: "text", + placeholder: "Search \u2026", + onChange: this.handleFilter + }) + ), + _react2["default"].createElement( + "div", + { className: _index2["default"].root }, + filtered.length === 0 ? NO_MATCHES : null, + _react2["default"].createElement( + _components.List, + null, + list.filter(filter).map(this.renderItem) + ) + ) + ); + }; - UserRepos.prototype.renderItem = function renderItem(repo) { - return _react2["default"].createElement(_components.Item, { - key: repo.full_name, - owner: repo.owner, - name: repo.name, - active: repo.active, - link: "/" + repo.full_name, - onchange: this.handleToggle.bind(this, repo) - }); - }; + UserRepos.prototype.renderItem = function renderItem(repo) { + return _react2["default"].createElement(_components.Item, { + key: repo.full_name, + owner: repo.owner, + name: repo.name, + active: repo.active, + link: "/" + repo.full_name, + onchange: this.handleToggle.bind(this, repo) + }); + }; - return UserRepos; + return UserRepos; }(_react.Component)) || _class) || _class); exports["default"] = UserRepos; var LOADING = _react2["default"].createElement( - "div", - null, - "Loading" + "div", + null, + "Loading" ); var EMPTY = _react2["default"].createElement( - "div", - null, - "Your repository list is empty" + "div", + null, + "Your repository list is empty" ); var NO_MATCHES = _react2["default"].createElement( - "div", - null, - "No matches found" + "div", + null, + "No matches found" ); var ERROR = _react2["default"].createElement( - "div", - null, - "Error" + "div", + null, + "Error" ); /* eslint-disable react/jsx-key */ var UserRepoTitle = exports.UserRepoTitle = function (_Component2) { - _inherits(UserRepoTitle, _Component2); + _inherits(UserRepoTitle, _Component2); - function UserRepoTitle() { - _classCallCheck(this, UserRepoTitle); + function UserRepoTitle() { + _classCallCheck(this, UserRepoTitle); - return _possibleConstructorReturn(this, _Component2.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component2.apply(this, arguments)); + } - UserRepoTitle.prototype.render = function render() { - return _react2["default"].createElement(_breadcrumb2["default"], { - elements: [_react2["default"].createElement( - "span", - null, - "Account" - ), _breadcrumb.SEPARATOR, _react2["default"].createElement( - "span", - null, - "Repositories" - )] - }); - }; + UserRepoTitle.prototype.render = function render() { + return _react2["default"].createElement(_breadcrumb2["default"], { + elements: [_react2["default"].createElement( + "span", + null, + "Account" + ), _breadcrumb.SEPARATOR, _react2["default"].createElement( + "span", + null, + "Repositories" + )] + }); + }; - return UserRepoTitle; + return UserRepoTitle; }(_react.Component); /* eslint-enable react/jsx-key */ @@ -8036,63 +8195,63 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var List = exports.List = function List(_ref) { - var children = _ref.children; - return _react2["default"].createElement( - "div", - { className: _list2["default"].list }, - children - ); + var children = _ref.children; + return _react2["default"].createElement( + "div", + { className: _list2["default"].list }, + children + ); }; var Item = exports.Item = function (_Component) { - _inherits(Item, _Component); + _inherits(Item, _Component); - function Item() { - _classCallCheck(this, Item); + function Item() { + _classCallCheck(this, Item); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Item.prototype.render = function render() { - var _props = this.props, - owner = _props.owner, - name = _props.name, - active = _props.active, - link = _props.link, - onchange = _props.onchange; + Item.prototype.render = function render() { + var _props = this.props, + owner = _props.owner, + name = _props.name, + active = _props.active, + link = _props.link, + onchange = _props.onchange; - return _react2["default"].createElement( - "div", - { className: _list2["default"].item }, - _react2["default"].createElement( - "div", - null, - owner, - "/", - name - ), - _react2["default"].createElement( - "div", - { className: active ? _list2["default"].active : _list2["default"].inactive }, - _react2["default"].createElement( - _reactRouterDom.Link, - { to: link }, - _react2["default"].createElement(_icons.LaunchIcon, null) - ) - ), - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_switch.Switch, { onchange: onchange, checked: active }) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _list2["default"].item }, + _react2["default"].createElement( + "div", + null, + owner, + "/", + name + ), + _react2["default"].createElement( + "div", + { className: active ? _list2["default"].active : _list2["default"].inactive }, + _react2["default"].createElement( + _reactRouterDom.Link, + { to: link }, + _react2["default"].createElement(_icons.LaunchIcon, null) + ) + ), + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_switch.Switch, { onchange: onchange, checked: active }) + ) + ); + }; - Item.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { - return this.props.owner !== nextProps.owner || this.props.name !== nextProps.name || this.props.active !== nextProps.active; - }; + Item.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) { + return this.props.owner !== nextProps.owner || this.props.name !== nextProps.name || this.props.active !== nextProps.active; + }; - return Item; + return Item; }(_react.Component); /***/ }), @@ -8122,27 +8281,27 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Switch = exports.Switch = function (_Component) { - _inherits(Switch, _Component); + _inherits(Switch, _Component); - function Switch() { - _classCallCheck(this, Switch); + function Switch() { + _classCallCheck(this, Switch); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Switch.prototype.render = function render() { - var _props = this.props, - checked = _props.checked, - onchange = _props.onchange; + Switch.prototype.render = function render() { + var _props = this.props, + checked = _props.checked, + onchange = _props.onchange; - return _react2["default"].createElement( - "label", - { className: _switch2["default"]["switch"] }, - _react2["default"].createElement("input", { type: "checkbox", checked: checked, onChange: onchange }) - ); - }; + return _react2["default"].createElement( + "label", + { className: _switch2["default"]["switch"] }, + _react2["default"].createElement("input", { type: "checkbox", checked: checked, onChange: onchange }) + ); + }; - return Switch; + return Switch; }(_react.Component); /***/ }), @@ -8373,94 +8532,94 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - return { - location: ["location"], - token: ["token"] - }; + return { + location: ["location"], + token: ["token"] + }; }; var Tokens = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(Tokens, _Component); + _inherits(Tokens, _Component); - function Tokens() { - _classCallCheck(this, Tokens); + function Tokens() { + _classCallCheck(this, Tokens); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Tokens.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.location !== nextProps.location || this.props.token !== nextProps.token; - }; + Tokens.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.location !== nextProps.location || this.props.token !== nextProps.token; + }; - Tokens.prototype.componentWillMount = function componentWillMount() { - var _props = this.props, - drone = _props.drone, - dispatch = _props.dispatch; + Tokens.prototype.componentWillMount = function componentWillMount() { + var _props = this.props, + drone = _props.drone, + dispatch = _props.dispatch; - dispatch(_users.generateToken, drone); - }; + dispatch(_users.generateToken, drone); + }; - Tokens.prototype.render = function render() { - var _props2 = this.props, - location = _props2.location, - token = _props2.token; + Tokens.prototype.render = function render() { + var _props2 = this.props, + location = _props2.location, + token = _props2.token; - if (!location || !token) { - return _react2["default"].createElement( - "div", - null, - "Loading" - ); - } - return _react2["default"].createElement( - "div", - { className: _index2["default"].root }, - _react2["default"].createElement( - "h2", - null, - "Your Personal Token:" - ), - _react2["default"].createElement( - "pre", - null, - token - ), - _react2["default"].createElement( - "h2", - null, - "Example API Usage:" - ), - _react2["default"].createElement( - "pre", - null, - usageWithCURL(location, token) - ), - _react2["default"].createElement( - "h2", - null, - "Example CLI Usage:" - ), - _react2["default"].createElement( - "pre", - null, - usageWithCLI(location, token) - ) - ); - }; + if (!location || !token) { + return _react2["default"].createElement( + "div", + null, + "Loading" + ); + } + return _react2["default"].createElement( + "div", + { className: _index2["default"].root }, + _react2["default"].createElement( + "h2", + null, + "Your Personal Token:" + ), + _react2["default"].createElement( + "pre", + null, + token + ), + _react2["default"].createElement( + "h2", + null, + "Example API Usage:" + ), + _react2["default"].createElement( + "pre", + null, + usageWithCURL(location, token) + ), + _react2["default"].createElement( + "h2", + null, + "Example CLI Usage:" + ), + _react2["default"].createElement( + "pre", + null, + usageWithCLI(location, token) + ) + ); + }; - return Tokens; + return Tokens; }(_react.Component)) || _class) || _class); exports["default"] = Tokens; var usageWithCURL = function usageWithCURL(location, token) { - return "curl -i " + location.protocol + "//" + location.host + "/api/user -H \"Authorization: Bearer " + token + "\""; + return "curl -i " + location.protocol + "//" + location.host + "/api/user -H \"Authorization: Bearer " + token + "\""; }; var usageWithCLI = function usageWithCLI(location, token) { - return "export DRONE_SERVER=" + location.protocol + "//" + location.host + "\n\t\texport DRONE_TOKEN=" + token + "\n\n\t\tdrone info"; + return "export DRONE_SERVER=" + location.protocol + "//" + location.host + "\n\t\texport DRONE_TOKEN=" + token + "\n\n\t\tdrone info"; }; /***/ }), @@ -8476,18 +8635,18 @@ exports.generateToken = undefined; var _message = __webpack_require__(67); /** -* Generates a personal access token and stores the results in -* the state tree. + * Generates a personal access token and stores the results in + * the state tree. * * @param {Object} tree - The drone state tree. * @param {Object} client - The drone client. */ var generateToken = exports.generateToken = function generateToken(tree, client) { - client.getToken().then(function (token) { - tree.set(["token"], token); - })["catch"](function () { - (0, _message.displayMessage)(tree, "Failed to retrieve your personal access token"); - }); + client.getToken().then(function (token) { + tree.set(["token"], token); + })["catch"](function () { + (0, _message.displayMessage)(tree, "Failed to retrieve your personal access token"); + }); }; /***/ }), @@ -8562,24 +8721,24 @@ var _sync2 = _interopRequireDefault(_sync); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var Message = exports.Message = function Message() { - return _react2["default"].createElement( - "div", - { className: _sync2["default"].root }, - _react2["default"].createElement( - "div", - { className: _sync2["default"].alert }, - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_refresh2["default"], null) - ), - _react2["default"].createElement( - "div", - null, - "Account synchronization in progress" - ) - ) - ); + return _react2["default"].createElement( + "div", + { className: _sync2["default"].root }, + _react2["default"].createElement( + "div", + { className: _sync2["default"].alert }, + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_refresh2["default"], null) + ), + _react2["default"].createElement( + "div", + null, + "Account synchronization in progress" + ) + ) + ); }; /***/ }), @@ -8660,35 +8819,35 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Header = function (_Component) { - _inherits(Header, _Component); + _inherits(Header, _Component); - function Header() { - _classCallCheck(this, Header); + function Header() { + _classCallCheck(this, Header); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Header.prototype.render = function render() { - var _props$match$params = this.props.match.params, - owner = _props$match$params.owner, - repo = _props$match$params.repo; + Header.prototype.render = function render() { + var _props$match$params = this.props.match.params, + owner = _props$match$params.owner, + repo = _props$match$params.repo; - return _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_breadcrumb2["default"], { - elements: [_react2["default"].createElement( - _reactRouterDom.Link, - { to: "/" + owner + "/" + repo, key: owner + "-" + repo }, - owner, - " / ", - repo - )] - }) - ); - }; + return _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_breadcrumb2["default"], { + elements: [_react2["default"].createElement( + _reactRouterDom.Link, + { to: "/" + owner + "/" + repo, key: owner + "-" + repo }, + owner, + " / ", + repo + )] + }) + ); + }; - return Header; + return Header; }(_react.Component); exports["default"] = Header; @@ -8730,53 +8889,53 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - return { - repos: ["repos"] - }; + return { + repos: ["repos"] + }; }; var UserReposMenu = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(UserReposMenu, _Component); + _inherits(UserReposMenu, _Component); - function UserReposMenu(props, context) { - _classCallCheck(this, UserReposMenu); + function UserReposMenu(props, context) { + _classCallCheck(this, UserReposMenu); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.handleClick = _this.handleClick.bind(_this); - return _this; - } + _this.handleClick = _this.handleClick.bind(_this); + return _this; + } - UserReposMenu.prototype.handleClick = function handleClick() { - var _props = this.props, - dispatch = _props.dispatch, - drone = _props.drone; + UserReposMenu.prototype.handleClick = function handleClick() { + var _props = this.props, + dispatch = _props.dispatch, + drone = _props.drone; - dispatch(_repository.syncRepostoryList, drone); - }; + dispatch(_repository.syncRepostoryList, drone); + }; - UserReposMenu.prototype.render = function render() { - var loaded = this.props.repos.loaded; + UserReposMenu.prototype.render = function render() { + var loaded = this.props.repos.loaded; - var right = _react2["default"].createElement( - "section", - null, - _react2["default"].createElement( - "button", - { disabled: !loaded, onClick: this.handleClick }, - _react2["default"].createElement(_icons.SyncIcon, null), - _react2["default"].createElement( - "span", - null, - "Synchronize" - ) - ) - ); + var right = _react2["default"].createElement( + "section", + null, + _react2["default"].createElement( + "button", + { disabled: !loaded, onClick: this.handleClick }, + _react2["default"].createElement(_icons.SyncIcon, null), + _react2["default"].createElement( + "span", + null, + "Synchronize" + ) + ) + ); - return _react2["default"].createElement(_menu2["default"], { items: [], right: right }); - }; + return _react2["default"].createElement(_menu2["default"], { items: [], right: right }); + }; - return UserReposMenu; + return UserReposMenu; }(_react.Component)) || _class) || _class); exports["default"] = UserReposMenu; @@ -8883,281 +9042,281 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - var _props$match$params = props.match.params, - owner = _props$match$params.owner, - repo = _props$match$params.repo, - build = _props$match$params.build; + var _props$match$params = props.match.params, + owner = _props$match$params.owner, + repo = _props$match$params.repo, + build = _props$match$params.build; - var slug = owner + "/" + repo; - var number = parseInt(build); + var slug = owner + "/" + repo; + var number = parseInt(build); - return { - repo: ["repos", "data", slug], - build: ["builds", "data", slug, number] - }; + return { + repo: ["repos", "data", slug], + build: ["builds", "data", slug, number] + }; }; var BuildLogs = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(BuildLogs, _Component); + _inherits(BuildLogs, _Component); - function BuildLogs(props, context) { - _classCallCheck(this, BuildLogs); + function BuildLogs(props, context) { + _classCallCheck(this, BuildLogs); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.handleApprove = _this.handleApprove.bind(_this); - _this.handleDecline = _this.handleDecline.bind(_this); - return _this; - } + _this.handleApprove = _this.handleApprove.bind(_this); + _this.handleDecline = _this.handleDecline.bind(_this); + return _this; + } - BuildLogs.prototype.componentWillMount = function componentWillMount() { - this.synchronize(this.props); - }; + BuildLogs.prototype.componentWillMount = function componentWillMount() { + this.synchronize(this.props); + }; - BuildLogs.prototype.handleApprove = function handleApprove() { - var _props = this.props, - repo = _props.repo, - build = _props.build, - drone = _props.drone; + BuildLogs.prototype.handleApprove = function handleApprove() { + var _props = this.props, + repo = _props.repo, + build = _props.build, + drone = _props.drone; - this.props.dispatch(_build.approveBuild, drone, repo.owner, repo.name, build.number); - }; + this.props.dispatch(_build.approveBuild, drone, repo.owner, repo.name, build.number); + }; - BuildLogs.prototype.handleDecline = function handleDecline() { - var _props2 = this.props, - repo = _props2.repo, - build = _props2.build, - drone = _props2.drone; + BuildLogs.prototype.handleDecline = function handleDecline() { + var _props2 = this.props, + repo = _props2.repo, + build = _props2.build, + drone = _props2.drone; - this.props.dispatch(_build.declineBuild, drone, repo.owner, repo.name, build.number); - }; + this.props.dispatch(_build.declineBuild, drone, repo.owner, repo.name, build.number); + }; - BuildLogs.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { - if (this.props.match.url !== nextProps.match.url) { - this.synchronize(nextProps); - } - }; + BuildLogs.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { + if (this.props.match.url !== nextProps.match.url) { + this.synchronize(nextProps); + } + }; - BuildLogs.prototype.synchronize = function synchronize(props) { - if (!props.repo) { - this.props.dispatch(_repository.fetchRepository, props.drone, props.match.params.owner, props.match.params.repo); - } - if (!props.build || !props.build.procs) { - this.props.dispatch(_build.fetchBuild, props.drone, props.match.params.owner, props.match.params.repo, props.match.params.build); - } - }; + BuildLogs.prototype.synchronize = function synchronize(props) { + if (!props.repo) { + this.props.dispatch(_repository.fetchRepository, props.drone, props.match.params.owner, props.match.params.repo); + } + if (!props.build || !props.build.procs) { + this.props.dispatch(_build.fetchBuild, props.drone, props.match.params.owner, props.match.params.repo, props.match.params.build); + } + }; - BuildLogs.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props !== nextProps; - }; + BuildLogs.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props !== nextProps; + }; - BuildLogs.prototype.render = function render() { - var _props3 = this.props, - repo = _props3.repo, - build = _props3.build; + BuildLogs.prototype.render = function render() { + var _props3 = this.props, + repo = _props3.repo, + build = _props3.build; - if (!build || !repo) { - return this.renderLoading(); - } + if (!build || !repo) { + return this.renderLoading(); + } - if (build.status === _status.STATUS_DECLINED || build.status === _status.STATUS_ERROR) { - return this.renderError(); - } + if (build.status === _status.STATUS_DECLINED || build.status === _status.STATUS_ERROR) { + return this.renderError(); + } - if (build.status === _status.STATUS_BLOCKED) { - return this.renderBlocked(); - } + if (build.status === _status.STATUS_BLOCKED) { + return this.renderBlocked(); + } - if (!build.procs) { - return this.renderLoading(); - } + if (!build.procs) { + return this.renderLoading(); + } - return this.renderSimple(); - }; + return this.renderSimple(); + }; - BuildLogs.prototype.renderLoading = function renderLoading() { - return _react2["default"].createElement( - "div", - { className: _index2["default"].host }, - _react2["default"].createElement( - "div", - { className: _index2["default"].columns }, - _react2["default"].createElement( - "div", - { className: _index2["default"].right }, - "Loading ..." - ) - ) - ); - }; + BuildLogs.prototype.renderLoading = function renderLoading() { + return _react2["default"].createElement( + "div", + { className: _index2["default"].host }, + _react2["default"].createElement( + "div", + { className: _index2["default"].columns }, + _react2["default"].createElement( + "div", + { className: _index2["default"].right }, + "Loading ..." + ) + ) + ); + }; - BuildLogs.prototype.renderBlocked = function renderBlocked() { - var build = this.props.build; + BuildLogs.prototype.renderBlocked = function renderBlocked() { + var build = this.props.build; - return _react2["default"].createElement( - "div", - { className: _index2["default"].host }, - _react2["default"].createElement( - "div", - { className: _index2["default"].columns }, - _react2["default"].createElement( - "div", - { className: _index2["default"].right }, - _react2["default"].createElement(_components.Details, { build: build }) - ), - _react2["default"].createElement( - "div", - { className: _index2["default"].left }, - _react2["default"].createElement(_components.Approval, { - onapprove: this.handleApprove, - ondecline: this.handleDecline - }) - ) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _index2["default"].host }, + _react2["default"].createElement( + "div", + { className: _index2["default"].columns }, + _react2["default"].createElement( + "div", + { className: _index2["default"].right }, + _react2["default"].createElement(_components.Details, { build: build }) + ), + _react2["default"].createElement( + "div", + { className: _index2["default"].left }, + _react2["default"].createElement(_components.Approval, { + onapprove: this.handleApprove, + ondecline: this.handleDecline + }) + ) + ) + ); + }; - BuildLogs.prototype.renderError = function renderError() { - var build = this.props.build; + BuildLogs.prototype.renderError = function renderError() { + var build = this.props.build; - return _react2["default"].createElement( - "div", - { className: _index2["default"].host }, - _react2["default"].createElement( - "div", - { className: _index2["default"].columns }, - _react2["default"].createElement( - "div", - { className: _index2["default"].right }, - _react2["default"].createElement(_components.Details, { build: build }) - ), - _react2["default"].createElement( - "div", - { className: _index2["default"].left }, - _react2["default"].createElement( - "div", - { className: _index2["default"].logerror }, - build.status === _status.STATUS_ERROR ? build.error : "Pipeline execution was declined" - ) - ) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _index2["default"].host }, + _react2["default"].createElement( + "div", + { className: _index2["default"].columns }, + _react2["default"].createElement( + "div", + { className: _index2["default"].right }, + _react2["default"].createElement(_components.Details, { build: build }) + ), + _react2["default"].createElement( + "div", + { className: _index2["default"].left }, + _react2["default"].createElement( + "div", + { className: _index2["default"].logerror }, + build.status === _status.STATUS_ERROR ? build.error : "Pipeline execution was declined" + ) + ) + ) + ); + }; - BuildLogs.prototype.highlightedLine = function highlightedLine() { - if (location.hash.startsWith("#L")) { - return parseInt(location.hash.substr(2)) - 1; - } + BuildLogs.prototype.highlightedLine = function highlightedLine() { + if (location.hash.startsWith("#L")) { + return parseInt(location.hash.substr(2)) - 1; + } - return undefined; - }; + return undefined; + }; - BuildLogs.prototype.renderSimple = function renderSimple() { - // if (nextProps.build.procs[0].children !== undefined){ - // return null; - // } + BuildLogs.prototype.renderSimple = function renderSimple() { + // if (nextProps.build.procs[0].children !== undefined){ + // return null; + // } - var _props4 = this.props, - repo = _props4.repo, - build = _props4.build, - match = _props4.match; + var _props4 = this.props, + repo = _props4.repo, + build = _props4.build, + match = _props4.match; - var selectedProc = match.params.proc ? (0, _proc.findChildProcess)(build.procs, match.params.proc) : build.procs[0].children[0]; - var selectedProcParent = (0, _proc.findChildProcess)(build.procs, selectedProc.ppid); - var highlighted = this.highlightedLine(); + var selectedProc = match.params.proc ? (0, _proc.findChildProcess)(build.procs, match.params.proc) : build.procs[0].children[0]; + var selectedProcParent = (0, _proc.findChildProcess)(build.procs, selectedProc.ppid); + var highlighted = this.highlightedLine(); - return _react2["default"].createElement( - "div", - { className: _index2["default"].host }, - _react2["default"].createElement( - "div", - { className: _index2["default"].columns }, - _react2["default"].createElement( - "div", - { className: _index2["default"].right }, - _react2["default"].createElement(_components.Details, { build: build }), - _react2["default"].createElement( - "section", - { className: _index2["default"].sticky }, - build.procs.map(function (rootProc) { - return _react2["default"].createElement( - "div", - { style: "padding-bottom: 50px;", key: rootProc.pid }, - _react2["default"].createElement(_components.ProcList, { - key: rootProc.pid, - repo: repo, - build: build, - rootProc: rootProc, - selectedProc: selectedProc, - renderName: build.procs.length > 1 - }) - ); - }) - ) - ), - _react2["default"].createElement( - "div", - { className: _index2["default"].left }, - selectedProc && selectedProc.error ? _react2["default"].createElement( - "div", - { className: _index2["default"].logerror }, - selectedProc.error - ) : null, - selectedProcParent && selectedProcParent.error ? _react2["default"].createElement( - "div", - { className: _index2["default"].logerror }, - selectedProcParent.error - ) : null, - _react2["default"].createElement(_logs2["default"], { - match: this.props.match, - build: this.props.build, - proc: selectedProc, - highlighted: highlighted - }) - ) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _index2["default"].host }, + _react2["default"].createElement( + "div", + { className: _index2["default"].columns }, + _react2["default"].createElement( + "div", + { className: _index2["default"].right }, + _react2["default"].createElement(_components.Details, { build: build }), + _react2["default"].createElement( + "section", + { className: _index2["default"].sticky }, + build.procs.map(function (rootProc) { + return _react2["default"].createElement( + "div", + { style: "padding-bottom: 20px;", key: rootProc.pid }, + _react2["default"].createElement(_components.ProcList, { + key: rootProc.pid, + repo: repo, + build: build, + rootProc: rootProc, + selectedProc: selectedProc, + renderName: build.procs.length > 1 + }) + ); + }) + ) + ), + _react2["default"].createElement( + "div", + { className: _index2["default"].left }, + selectedProc && selectedProc.error ? _react2["default"].createElement( + "div", + { className: _index2["default"].logerror }, + selectedProc.error + ) : null, + selectedProcParent && selectedProcParent.error ? _react2["default"].createElement( + "div", + { className: _index2["default"].logerror }, + selectedProcParent.error + ) : null, + _react2["default"].createElement(_logs2["default"], { + match: this.props.match, + build: this.props.build, + proc: selectedProc, + highlighted: highlighted + }) + ) + ) + ); + }; - return BuildLogs; + return BuildLogs; }(_react.Component)) || _class) || _class); exports["default"] = BuildLogs; var BuildLogsTitle = exports.BuildLogsTitle = function (_Component2) { - _inherits(BuildLogsTitle, _Component2); + _inherits(BuildLogsTitle, _Component2); - function BuildLogsTitle() { - _classCallCheck(this, BuildLogsTitle); + function BuildLogsTitle() { + _classCallCheck(this, BuildLogsTitle); - return _possibleConstructorReturn(this, _Component2.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component2.apply(this, arguments)); + } - BuildLogsTitle.prototype.render = function render() { - var _props$match$params2 = this.props.match.params, - owner = _props$match$params2.owner, - repo = _props$match$params2.repo, - build = _props$match$params2.build; + BuildLogsTitle.prototype.render = function render() { + var _props$match$params2 = this.props.match.params, + owner = _props$match$params2.owner, + repo = _props$match$params2.repo, + build = _props$match$params2.build; - return _react2["default"].createElement(_breadcrumb2["default"], { - elements: [_react2["default"].createElement( - _reactRouterDom.Link, - { to: "/" + owner + "/" + repo, key: owner + "-" + repo }, - owner, - " / ", - repo - ), _breadcrumb.SEPARATOR, _react2["default"].createElement( - _reactRouterDom.Link, - { - to: "/" + owner + "/" + repo + "/" + build, - key: owner + "-" + repo + "-" + build - }, - build - )] - }); - }; + return _react2["default"].createElement(_breadcrumb2["default"], { + elements: [_react2["default"].createElement( + _reactRouterDom.Link, + { to: "/" + owner + "/" + repo, key: owner + "-" + repo }, + owner, + " / ", + repo + ), _breadcrumb.SEPARATOR, _react2["default"].createElement( + _reactRouterDom.Link, + { + to: "/" + owner + "/" + repo + "/" + build, + key: owner + "-" + repo + "-" + build + }, + build + )] + }); + }; - return BuildLogsTitle; + return BuildLogsTitle; }(_react.Component); /***/ }), @@ -9202,27 +9361,27 @@ var _approval2 = _interopRequireDefault(_approval); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var Approval = exports.Approval = function Approval(_ref) { - var onapprove = _ref.onapprove, - ondecline = _ref.ondecline; - return _react2["default"].createElement( - "div", - { className: _approval2["default"].root }, - _react2["default"].createElement( - "p", - null, - "Pipeline execution is blocked pending administrator approval" - ), - _react2["default"].createElement( - "button", - { onClick: onapprove }, - "Approve" - ), - _react2["default"].createElement( - "button", - { onClick: ondecline }, - "Decline" - ) - ); + var onapprove = _ref.onapprove, + ondecline = _ref.ondecline; + return _react2["default"].createElement( + "div", + { className: _approval2["default"].root }, + _react2["default"].createElement( + "p", + null, + "Pipeline execution is blocked pending administrator approval" + ), + _react2["default"].createElement( + "button", + { onClick: onapprove }, + "Approve" + ), + _react2["default"].createElement( + "button", + { onClick: ondecline }, + "Decline" + ) + ); }; /***/ }), @@ -9309,52 +9468,52 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Details = exports.Details = function (_Component) { - _inherits(Details, _Component); + _inherits(Details, _Component); - function Details() { - _classCallCheck(this, Details); + function Details() { + _classCallCheck(this, Details); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Details.prototype.render = function render() { - var build = this.props.build; + Details.prototype.render = function render() { + var build = this.props.build; - return _react2["default"].createElement( - "div", - { className: _details2["default"].info }, - _react2["default"].createElement(_status.StatusLabel, { status: build.status }), - _react2["default"].createElement( - "section", - { className: _details2["default"].message, style: { whiteSpace: "pre-line" } }, - build.message - ), - _react2["default"].createElement( - "section", - null, - _react2["default"].createElement(_build_time2["default"], { - start: build.started_at || build.created_at, - finish: build.finished_at - }) - ), - _react2["default"].createElement( - "section", - null, - _react2["default"].createElement(_build_event2["default"], { - link: build.link_url, - event: build.event, - commit: build.commit, - branch: build.branch, - target: build.deploy_to, - refspec: build.refspec, - refs: build.ref - }) - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: _details2["default"].info }, + _react2["default"].createElement(_status.StatusLabel, { status: build.status }), + _react2["default"].createElement( + "section", + { className: _details2["default"].message, style: { whiteSpace: "pre-line" } }, + build.message + ), + _react2["default"].createElement( + "section", + null, + _react2["default"].createElement(_build_time2["default"], { + start: build.started_at || build.created_at, + finish: build.finished_at + }) + ), + _react2["default"].createElement( + "section", + null, + _react2["default"].createElement(_build_event2["default"], { + link: build.link_url, + event: build.event, + commit: build.commit, + branch: build.branch, + target: build.deploy_to, + refspec: build.refspec, + refs: build.ref + }) + ) + ); + }; - return Details; + return Details; }(_react.Component); /***/ }), @@ -9443,107 +9602,140 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var renderEnviron = function renderEnviron(data) { - return _react2["default"].createElement( - "div", - null, - data[0], - "=", - data[1] - ); + return _react2["default"].createElement( + "div", + null, + data[0], + "=", + data[1] + ); }; -var ProcListHolder = function ProcListHolder(_ref) { - var vars = _ref.vars, - renderName = _ref.renderName, - children = _ref.children; - return _react2["default"].createElement( - "div", - { className: _procs2["default"].list }, - renderName && vars.name !== "drone" ? _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_status.StatusText, { status: vars.state, text: vars.name }) - ) : null, - vars.environ ? _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_status.StatusText, { - status: vars.state, - text: Object.entries(vars.environ).map(renderEnviron) - }) - ) : null, - children - ); -}; +var ProcListHolder = function (_Component) { + _inherits(ProcListHolder, _Component); -var ProcList = exports.ProcList = function (_Component) { - _inherits(ProcList, _Component); + function ProcListHolder(props, context) { + _classCallCheck(this, ProcListHolder); - function ProcList() { - _classCallCheck(this, ProcList); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + _this.toggleOpen = function () { + _this.setState({ open: !_this.state.open }); + }; - ProcList.prototype.render = function render() { - var _props = this.props, - repo = _props.repo, - build = _props.build, - rootProc = _props.rootProc, - selectedProc = _props.selectedProc, - renderName = _props.renderName; + _this.state = { open: !_this.props.renderName }; + return _this; + } - return _react2["default"].createElement( - ProcListHolder, - { vars: rootProc, renderName: renderName }, - this.props.rootProc.children.map(function (child) { - return _react2["default"].createElement( - _reactRouterDom.Link, - { - to: "/" + repo.full_name + "/" + build.number + "/" + child.pid, - key: repo.full_name + "-" + build.number + "-" + child.pid - }, - _react2["default"].createElement(ProcListItem, { - key: child.pid, - name: child.name, - start: child.start_time, - finish: child.end_time, - state: child.state, - selected: child.pid === selectedProc.pid - }) - ); - }) - ); - }; + ProcListHolder.prototype.render = function render() { + var _props = this.props, + vars = _props.vars, + renderName = _props.renderName, + children = _props.children; - return ProcList; + var groupExpandStatus = this.state.open ? _procs2["default"].collapsed : _procs2["default"].expanded; + + return _react2["default"].createElement( + "div", + { className: _procs2["default"].list }, + renderName && vars.name !== "drone" ? _react2["default"].createElement( + "div", + { + onClick: this.toggleOpen, + className: _procs2["default"].group + " " + groupExpandStatus + }, + _react2["default"].createElement(_status.StatusText, { status: vars.state, text: vars.name }) + ) : null, + vars.environ ? _react2["default"].createElement( + "div", + { + onClick: this.toggleOpen, + className: _procs2["default"].group + " " + groupExpandStatus + }, + _react2["default"].createElement(_status.StatusText, { + status: vars.state, + text: Object.entries(vars.environ).map(renderEnviron) + }) + ) : null, + _react2["default"].createElement( + "div", + { className: !this.state.open ? _procs2["default"].hide : "" }, + children + ) + ); + }; + + return ProcListHolder; }(_react.Component); -var ProcListItem = exports.ProcListItem = function ProcListItem(_ref2) { - var name = _ref2.name, - start = _ref2.start, - finish = _ref2.finish, - state = _ref2.state, - selected = _ref2.selected; - return _react2["default"].createElement( - "div", - { className: (0, _classnames2["default"])(_procs2["default"].item, selected ? _procs2["default"].selected : null) }, - _react2["default"].createElement( - "h3", - null, - name - ), - finish ? _react2["default"].createElement( - "time", - null, - (0, _elapsed.formatTime)(finish, start) - ) : _react2["default"].createElement(_elapsed.Elapsed, { start: start }), - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_status2["default"], { status: state }) - ) - ); +var ProcList = exports.ProcList = function (_Component2) { + _inherits(ProcList, _Component2); + + function ProcList() { + _classCallCheck(this, ProcList); + + return _possibleConstructorReturn(this, _Component2.apply(this, arguments)); + } + + ProcList.prototype.render = function render() { + var _props2 = this.props, + repo = _props2.repo, + build = _props2.build, + rootProc = _props2.rootProc, + selectedProc = _props2.selectedProc, + renderName = _props2.renderName; + + return _react2["default"].createElement( + ProcListHolder, + { vars: rootProc, renderName: renderName }, + this.props.rootProc.children.map(function (child) { + return _react2["default"].createElement( + _reactRouterDom.Link, + { + to: "/" + repo.full_name + "/" + build.number + "/" + child.pid, + key: repo.full_name + "-" + build.number + "-" + child.pid + }, + _react2["default"].createElement(ProcListItem, { + key: child.pid, + name: child.name, + start: child.start_time, + finish: child.end_time, + state: child.state, + selected: child.pid === selectedProc.pid + }) + ); + }) + ); + }; + + return ProcList; +}(_react.Component); + +var ProcListItem = exports.ProcListItem = function ProcListItem(_ref) { + var name = _ref.name, + start = _ref.start, + finish = _ref.finish, + state = _ref.state, + selected = _ref.selected; + return _react2["default"].createElement( + "div", + { className: (0, _classnames2["default"])(_procs2["default"].item, selected ? _procs2["default"].selected : null) }, + _react2["default"].createElement( + "h3", + null, + name + ), + finish ? _react2["default"].createElement( + "time", + null, + (0, _elapsed.formatTime)(finish, start) + ) : _react2["default"].createElement(_elapsed.Elapsed, { start: start }), + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_status2["default"], { status: state }) + ) + ); }; /***/ }), @@ -9569,51 +9761,51 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Elapsed = exports.Elapsed = function (_Component) { - _inherits(Elapsed, _Component); + _inherits(Elapsed, _Component); - function Elapsed(props, context) { - _classCallCheck(this, Elapsed); + function Elapsed(props, context) { + _classCallCheck(this, Elapsed); - var _this = _possibleConstructorReturn(this, _Component.call(this, props)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props)); - _this.state = { - elapsed: 0 - }; + _this.state = { + elapsed: 0 + }; - _this.tick = _this.tick.bind(_this); - return _this; - } + _this.tick = _this.tick.bind(_this); + return _this; + } - Elapsed.prototype.componentDidMount = function componentDidMount() { - this.timer = setInterval(this.tick, 1000); - }; + Elapsed.prototype.componentDidMount = function componentDidMount() { + this.timer = setInterval(this.tick, 1000); + }; - Elapsed.prototype.componentWillUnmount = function componentWillUnmount() { - clearInterval(this.timer); - }; + Elapsed.prototype.componentWillUnmount = function componentWillUnmount() { + clearInterval(this.timer); + }; - Elapsed.prototype.tick = function tick() { - var start = this.props.start; + Elapsed.prototype.tick = function tick() { + var start = this.props.start; - var stop = ~~(Date.now() / 1000); - this.setState({ - elapsed: stop - start - }); - }; + var stop = ~~(Date.now() / 1000); + this.setState({ + elapsed: stop - start + }); + }; - Elapsed.prototype.render = function render() { - var elapsed = this.state.elapsed; + Elapsed.prototype.render = function render() { + var elapsed = this.state.elapsed; - var date = new Date(null); - date.setSeconds(elapsed); - return _react2["default"].createElement( - "time", - null, - !elapsed ? undefined : elapsed > 3600 ? date.toISOString().substr(11, 8) : date.toISOString().substr(14, 5) - ); - }; + var date = new Date(null); + date.setSeconds(elapsed); + return _react2["default"].createElement( + "time", + null, + !elapsed ? undefined : elapsed > 3600 ? date.toISOString().substr(11, 8) : date.toISOString().substr(14, 5) + ); + }; - return Elapsed; + return Elapsed; }(_react.Component); /* @@ -9626,11 +9818,11 @@ var Elapsed = exports.Elapsed = function (_Component) { var formatTime = exports.formatTime = function formatTime(end, start) { - var diff = end - start; - var date = new Date(null); - date.setSeconds(diff); + var diff = end - start; + var date = new Date(null); + date.setSeconds(diff); - return diff > 3600 ? date.toISOString().substr(11, 8) : date.toISOString().substr(14, 5); + return diff > 3600 ? date.toISOString().substr(11, 8) : date.toISOString().substr(14, 5); }; /***/ }), @@ -9673,11 +9865,15 @@ exports = module.exports = __webpack_require__(3)(undefined); // module -exports.push([module.i, ".procs__list___3VmRq a {\n color: #212121;\n display: block;\n text-decoration: none;\n}\n.procs__vars___2dHa2 {\n padding: 30px 0 0 10px;\n}\n.procs__item___ZIwDZ {\n background: #ffffff;\n box-sizing: border-box;\n display: flex;\n padding: 0px 10px;\n}\n.procs__item___ZIwDZ.procs__selected___1ppPI,\n.procs__item___ZIwDZ:hover {\n background: #eceff1;\n}\n.procs__item___ZIwDZ time {\n color: #bdbdbd;\n display: inline-block;\n font-size: 13px;\n line-height: 32px;\n margin-right: 15px;\n vertical-align: middle;\n}\n.procs__item___ZIwDZ h3 {\n flex: 1 1 auto;\n font-size: 14px;\n font-weight: normal;\n line-height: 36px;\n margin: 0px;\n padding: 0px;\n vertical-align: middle;\n}\n.procs__item___ZIwDZ:last-child {\n align-items: center;\n display: flex;\n}\n", ""]); +exports.push([module.i, ".procs__list___3VmRq a {\n color: #212121;\n display: block;\n text-decoration: none;\n}\n.procs__group___1E3MP {\n cursor: pointer;\n position: relative;\n}\n.procs__expanded___3Aej5:after {\n content: \"+\";\n position: absolute;\n top: 8px;\n right: 12px;\n color: white;\n font-size: 16px;\n}\n.procs__collapsed___2ejPd:after {\n content: \"\\2014\";\n position: absolute;\n top: 8px;\n right: 12px;\n color: white;\n font-size: 16px;\n}\n.procs__hide___2G-OS {\n display: none;\n}\n.procs__vars___2dHa2 {\n padding: 30px 0 0 10px;\n}\n.procs__item___ZIwDZ {\n background: #ffffff;\n box-sizing: border-box;\n display: flex;\n padding: 0px 10px;\n}\n.procs__item___ZIwDZ.procs__selected___1ppPI,\n.procs__item___ZIwDZ:hover {\n background: #eceff1;\n}\n.procs__item___ZIwDZ time {\n color: #bdbdbd;\n display: inline-block;\n font-size: 13px;\n line-height: 32px;\n margin-right: 15px;\n vertical-align: middle;\n}\n.procs__item___ZIwDZ h3 {\n flex: 1 1 auto;\n font-size: 14px;\n font-weight: normal;\n line-height: 36px;\n margin: 0px;\n padding: 0px;\n vertical-align: middle;\n}\n.procs__item___ZIwDZ:last-child {\n align-items: center;\n display: flex;\n}\n", ""]); // exports exports.locals = { "list": "procs__list___3VmRq", + "group": "procs__group___1E3MP", + "expanded": "procs__expanded___3Aej5", + "collapsed": "procs__collapsed___2ejPd", + "hide": "procs__hide___2G-OS", "vars": "procs__vars___2dHa2", "item": "procs__item___ZIwDZ", "selected": "procs__selected___1ppPI" @@ -9730,111 +9926,111 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - var _props$match$params = props.match.params, - owner = _props$match$params.owner, - repo = _props$match$params.repo, - build = _props$match$params.build; + var _props$match$params = props.match.params, + owner = _props$match$params.owner, + repo = _props$match$params.repo, + build = _props$match$params.build; - var slug = (0, _repository.repositorySlug)(owner, repo); - var number = parseInt(build); - var pid = parseInt(props.proc.pid); + var slug = (0, _repository.repositorySlug)(owner, repo); + var number = parseInt(build); + var pid = parseInt(props.proc.pid); - return { - logs: ["logs", "data", slug, number, pid, "data"], - eof: ["logs", "data", slug, number, pid, "eof"], - loading: ["logs", "data", slug, number, pid, "loading"], - error: ["logs", "data", slug, number, pid, "error"], - follow: ["logs", "follow"] - }; + return { + logs: ["logs", "data", slug, number, pid, "data"], + eof: ["logs", "data", slug, number, pid, "eof"], + loading: ["logs", "data", slug, number, pid, "loading"], + error: ["logs", "data", slug, number, pid, "error"], + follow: ["logs", "follow"] + }; }; var Output = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(Output, _Component); + _inherits(Output, _Component); - function Output(props, context) { - _classCallCheck(this, Output); + function Output(props, context) { + _classCallCheck(this, Output); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.handleFollow = _this.handleFollow.bind(_this); - return _this; - } + _this.handleFollow = _this.handleFollow.bind(_this); + return _this; + } - Output.prototype.componentWillMount = function componentWillMount() { - if (this.props.proc) { - this.componentWillUpdate(this.props); - } - }; + Output.prototype.componentWillMount = function componentWillMount() { + if (this.props.proc) { + this.componentWillUpdate(this.props); + } + }; - Output.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { - var loading = nextProps.loading, - logs = nextProps.logs, - eof = nextProps.eof, - error = nextProps.error; + Output.prototype.componentWillUpdate = function componentWillUpdate(nextProps) { + var loading = nextProps.loading, + logs = nextProps.logs, + eof = nextProps.eof, + error = nextProps.error; - var routeChange = this.props.match.url !== nextProps.match.url; + var routeChange = this.props.match.url !== nextProps.match.url; - if (loading || error || logs && eof) { - return; - } + if (loading || error || logs && eof) { + return; + } - if ((0, _proc.assertProcFinished)(nextProps.proc)) { - return this.props.dispatch(_logs.fetchLogs, nextProps.drone, nextProps.match.params.owner, nextProps.match.params.repo, nextProps.build.number, nextProps.proc.pid); - } + if ((0, _proc.assertProcFinished)(nextProps.proc)) { + return this.props.dispatch(_logs.fetchLogs, nextProps.drone, nextProps.match.params.owner, nextProps.match.params.repo, nextProps.build.number, nextProps.proc.pid); + } - if ((0, _proc.assertProcRunning)(nextProps.proc) && (!logs || routeChange)) { - this.props.dispatch(_logs.subscribeToLogs, nextProps.drone, nextProps.match.params.owner, nextProps.match.params.repo, nextProps.build.number, nextProps.proc); - } - }; + if ((0, _proc.assertProcRunning)(nextProps.proc) && (!logs || routeChange)) { + this.props.dispatch(_logs.subscribeToLogs, nextProps.drone, nextProps.match.params.owner, nextProps.match.params.repo, nextProps.build.number, nextProps.proc); + } + }; - Output.prototype.componentDidUpdate = function componentDidUpdate() { - if (this.props.follow) { - (0, _anchor.scrollToBottom)(); - } - }; + Output.prototype.componentDidUpdate = function componentDidUpdate() { + if (this.props.follow) { + (0, _anchor.scrollToBottom)(); + } + }; - Output.prototype.handleFollow = function handleFollow() { - this.props.dispatch(_logs.toggleLogs, !this.props.follow); - }; + Output.prototype.handleFollow = function handleFollow() { + this.props.dispatch(_logs.toggleLogs, !this.props.follow); + }; - Output.prototype.render = function render() { - var _props = this.props, - logs = _props.logs, - error = _props.error, - proc = _props.proc, - loading = _props.loading, - follow = _props.follow, - highlighted = _props.highlighted; + Output.prototype.render = function render() { + var _props = this.props, + logs = _props.logs, + error = _props.error, + proc = _props.proc, + loading = _props.loading, + follow = _props.follow, + highlighted = _props.highlighted; - if (loading || !proc) { - return _react2["default"].createElement(_term2["default"].Loading, null); - } + if (loading || !proc) { + return _react2["default"].createElement(_term2["default"].Loading, null); + } - if (error) { - return _react2["default"].createElement(_term2["default"].Error, null); - } + if (error) { + return _react2["default"].createElement(_term2["default"].Error, null); + } - return _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_anchor.Top, null), - _react2["default"].createElement(_term2["default"], { - lines: logs || [], - highlighted: highlighted, - exitcode: (0, _proc.assertProcFinished)(proc) ? proc.exit_code : undefined - }), - _react2["default"].createElement(_anchor.Bottom, null), - _react2["default"].createElement(Actions, { - running: (0, _proc.assertProcRunning)(proc), - following: follow, - onfollow: this.handleFollow, - onunfollow: this.handleFollow - }) - ); - }; + return _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_anchor.Top, null), + _react2["default"].createElement(_term2["default"], { + lines: logs || [], + highlighted: highlighted, + exitcode: (0, _proc.assertProcFinished)(proc) ? proc.exit_code : undefined + }), + _react2["default"].createElement(_anchor.Bottom, null), + _react2["default"].createElement(Actions, { + running: (0, _proc.assertProcRunning)(proc), + following: follow, + onfollow: this.handleFollow, + onunfollow: this.handleFollow + }) + ); + }; - return Output; + return Output; }(_react.Component)) || _class) || _class); /** @@ -9844,34 +10040,34 @@ var Output = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_cla exports["default"] = Output; var Actions = function Actions(_ref) { - var following = _ref.following, - running = _ref.running, - onfollow = _ref.onfollow, - onunfollow = _ref.onunfollow; - return _react2["default"].createElement( - "div", - { className: _index3["default"].actions }, - running && !following ? _react2["default"].createElement( - "button", - { onClick: onfollow, className: _index3["default"].follow }, - _react2["default"].createElement(_index.PlayIcon, null) - ) : null, - running && following ? _react2["default"].createElement( - "button", - { onClick: onunfollow, className: _index3["default"].unfollow }, - _react2["default"].createElement(_index.PauseIcon, null) - ) : null, - _react2["default"].createElement( - "button", - { onClick: _anchor.scrollToTop, className: _index3["default"].bottom }, - _react2["default"].createElement(_index.ExpandIcon, null) - ), - _react2["default"].createElement( - "button", - { onClick: _anchor.scrollToBottom, className: _index3["default"].top }, - _react2["default"].createElement(_index.ExpandIcon, null) - ) - ); + var following = _ref.following, + running = _ref.running, + onfollow = _ref.onfollow, + onunfollow = _ref.onunfollow; + return _react2["default"].createElement( + "div", + { className: _index3["default"].actions }, + running && !following ? _react2["default"].createElement( + "button", + { onClick: onfollow, className: _index3["default"].follow }, + _react2["default"].createElement(_index.PlayIcon, null) + ) : null, + running && following ? _react2["default"].createElement( + "button", + { onClick: onunfollow, className: _index3["default"].unfollow }, + _react2["default"].createElement(_index.PauseIcon, null) + ) : null, + _react2["default"].createElement( + "button", + { onClick: _anchor.scrollToTop, className: _index3["default"].bottom }, + _react2["default"].createElement(_index.ExpandIcon, null) + ), + _react2["default"].createElement( + "button", + { onClick: _anchor.scrollToBottom, className: _index3["default"].top }, + _react2["default"].createElement(_index.ExpandIcon, null) + ) + ); }; /***/ }), @@ -9889,38 +10085,38 @@ exports.fetchLogs = fetchLogs; var _repository = __webpack_require__(24); function subscribeToLogs(tree, client, owner, repo, build, proc) { - if (subscribeToLogs.ws) { - subscribeToLogs.ws.close(); - } - var slug = (0, _repository.repositorySlug)(owner, repo); - var init = { data: [] }; + if (subscribeToLogs.ws) { + subscribeToLogs.ws.close(); + } + var slug = (0, _repository.repositorySlug)(owner, repo); + var init = { data: [] }; - tree.set(["logs", "data", slug, build, proc.pid], init); + tree.set(["logs", "data", slug, build, proc.pid], init); - subscribeToLogs.ws = client.stream(owner, repo, build, proc.ppid, function (item) { - if (item.proc === proc.name) { - tree.push(["logs", "data", slug, build, proc.pid, "data"], item); - } - }); + subscribeToLogs.ws = client.stream(owner, repo, build, proc.ppid, function (item) { + if (item.proc === proc.name) { + tree.push(["logs", "data", slug, build, proc.pid, "data"], item); + } + }); } function fetchLogs(tree, client, owner, repo, build, proc) { - var slug = (0, _repository.repositorySlug)(owner, repo); - var init = { - data: [], - loading: true - }; + var slug = (0, _repository.repositorySlug)(owner, repo); + var init = { + data: [], + loading: true + }; - tree.set(["logs", "data", slug, build, proc], init); + tree.set(["logs", "data", slug, build, proc], init); - client.getLogs(owner, repo, build, proc).then(function (results) { - tree.set(["logs", "data", slug, build, proc, "data"], results || []); - tree.set(["logs", "data", slug, build, proc, "loading"], false); - tree.set(["logs", "data", slug, build, proc, "eof"], true); - })["catch"](function () { - tree.set(["logs", "data", slug, build, proc, "loading"], false); - tree.set(["logs", "data", slug, build, proc, "eof"], true); - }); + client.getLogs(owner, repo, build, proc).then(function (results) { + tree.set(["logs", "data", slug, build, proc, "data"], results || []); + tree.set(["logs", "data", slug, build, proc, "loading"], false); + tree.set(["logs", "data", slug, build, proc, "eof"], true); + })["catch"](function () { + tree.set(["logs", "data", slug, build, proc, "loading"], false); + tree.set(["logs", "data", slug, build, proc, "eof"], true); + }); } /** @@ -9930,7 +10126,7 @@ function fetchLogs(tree, client, owner, repo, build, proc) { * @param {boolean} follow - Follow the logs. */ var toggleLogs = exports.toggleLogs = function toggleLogs(tree, follow) { - tree.set(["logs", "follow"], follow); + tree.set(["logs", "follow"], follow); }; /***/ }), @@ -9970,132 +10166,132 @@ var formatter = new _ansi_up2["default"](); formatter.use_classes = true; var Term = function (_Component) { - _inherits(Term, _Component); + _inherits(Term, _Component); - function Term() { - _classCallCheck(this, Term); + function Term() { + _classCallCheck(this, Term); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Term.prototype.render = function render() { - var _props = this.props, - lines = _props.lines, - exitcode = _props.exitcode, - highlighted = _props.highlighted; + Term.prototype.render = function render() { + var _props = this.props, + lines = _props.lines, + exitcode = _props.exitcode, + highlighted = _props.highlighted; - return _react2["default"].createElement( - "div", - { className: _term2["default"].term }, - lines.map(function (line) { - return renderTermLine(line, highlighted); - }), - exitcode !== undefined ? renderExitCode(exitcode) : undefined - ); - }; + return _react2["default"].createElement( + "div", + { className: _term2["default"].term }, + lines.map(function (line) { + return renderTermLine(line, highlighted); + }), + exitcode !== undefined ? renderExitCode(exitcode) : undefined + ); + }; - Term.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.lines !== nextProps.lines || this.props.exitcode !== nextProps.exitcode || this.props.highlighted !== nextProps.highlighted; - }; + Term.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.lines !== nextProps.lines || this.props.exitcode !== nextProps.exitcode || this.props.highlighted !== nextProps.highlighted; + }; - return Term; + return Term; }(_react.Component); var TermLine = function (_Component2) { - _inherits(TermLine, _Component2); + _inherits(TermLine, _Component2); - function TermLine() { - _classCallCheck(this, TermLine); + function TermLine() { + _classCallCheck(this, TermLine); - return _possibleConstructorReturn(this, _Component2.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component2.apply(this, arguments)); + } - TermLine.prototype.render = function render() { - var _this3 = this; + TermLine.prototype.render = function render() { + var _this3 = this; - var _props2 = this.props, - line = _props2.line, - highlighted = _props2.highlighted; + var _props2 = this.props, + line = _props2.line, + highlighted = _props2.highlighted; - return _react2["default"].createElement( - "div", - { - className: highlighted === line.pos ? _term2["default"].highlight : _term2["default"].line, - key: line.pos, - ref: highlighted === line.pos ? function (ref) { - return _this3.ref = ref; - } : null - }, - _react2["default"].createElement( - "div", - null, - _react2["default"].createElement( - _reactRouterDom.Link, - { to: "#L" + (line.pos + 1), key: line.pos + 1 }, - line.pos + 1 - ) - ), - _react2["default"].createElement("div", { dangerouslySetInnerHTML: { __html: this.colored } }), - _react2["default"].createElement( - "div", - null, - line.time || 0, - "s" - ) - ); - }; + return _react2["default"].createElement( + "div", + { + className: highlighted === line.pos ? _term2["default"].highlight : _term2["default"].line, + key: line.pos, + ref: highlighted === line.pos ? function (ref) { + return _this3.ref = ref; + } : null + }, + _react2["default"].createElement( + "div", + null, + _react2["default"].createElement( + _reactRouterDom.Link, + { to: "#L" + (line.pos + 1), key: line.pos + 1 }, + line.pos + 1 + ) + ), + _react2["default"].createElement("div", { dangerouslySetInnerHTML: { __html: this.colored } }), + _react2["default"].createElement( + "div", + null, + line.time || 0, + "s" + ) + ); + }; - TermLine.prototype.componentDidMount = function componentDidMount() { - if (this.ref !== undefined) { - scrollToRef(this.ref); - } - }; + TermLine.prototype.componentDidMount = function componentDidMount() { + if (this.ref !== undefined) { + scrollToRef(this.ref); + } + }; - TermLine.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { - return this.props.line.out !== nextProps.line.out || this.props.highlighted !== nextProps.highlighted; - }; + TermLine.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) { + return this.props.line.out !== nextProps.line.out || this.props.highlighted !== nextProps.highlighted; + }; - _createClass(TermLine, [{ - key: "colored", - get: function get() { - return formatter.ansi_to_html(this.props.line.out || ""); - } - }]); + _createClass(TermLine, [{ + key: "colored", + get: function get() { + return formatter.ansi_to_html(this.props.line.out || ""); + } + }]); - return TermLine; + return TermLine; }(_react.Component); var renderTermLine = function renderTermLine(line, highlighted) { - return _react2["default"].createElement(TermLine, { line: line, highlighted: highlighted }); + return _react2["default"].createElement(TermLine, { line: line, highlighted: highlighted }); }; var renderExitCode = function renderExitCode(code) { - return _react2["default"].createElement( - "div", - { className: _term2["default"].exitcode }, - "exit code ", - code - ); + return _react2["default"].createElement( + "div", + { className: _term2["default"].exitcode }, + "exit code ", + code + ); }; var TermError = function TermError() { - return _react2["default"].createElement( - "div", - { className: _term2["default"].error }, - "Oops. There was a problem loading the logs." - ); + return _react2["default"].createElement( + "div", + { className: _term2["default"].error }, + "Oops. There was a problem loading the logs." + ); }; var TermLoading = function TermLoading() { - return _react2["default"].createElement( - "div", - { className: _term2["default"].loading }, - "Loading ..." - ); + return _react2["default"].createElement( + "div", + { className: _term2["default"].loading }, + "Loading ..." + ); }; var scrollToRef = function scrollToRef(ref) { - return window.scrollTo(0, ref.offsetTop - 100); + return window.scrollTo(0, ref.offsetTop - 100); }; Term.Line = TermLine; @@ -10177,19 +10373,19 @@ var _anchor2 = _interopRequireDefault(_anchor); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var Top = exports.Top = function Top() { - return _react2["default"].createElement("div", { className: _anchor2["default"].top }); + return _react2["default"].createElement("div", { className: _anchor2["default"].top }); }; var Bottom = exports.Bottom = function Bottom() { - return _react2["default"].createElement("div", { className: _anchor2["default"].bottom }); + return _react2["default"].createElement("div", { className: _anchor2["default"].bottom }); }; var scrollToTop = exports.scrollToTop = function scrollToTop() { - document.querySelector("." + _anchor2["default"].top).scrollIntoView(); + document.querySelector("." + _anchor2["default"].top).scrollIntoView(); }; var scrollToBottom = exports.scrollToBottom = function scrollToBottom() { - document.querySelector("." + _anchor2["default"].bottom).scrollIntoView(); + document.querySelector("." + _anchor2["default"].bottom).scrollIntoView(); }; /***/ }), @@ -10391,91 +10587,91 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var binding = function binding(props, context) { - var _props$match$params = props.match.params, - owner = _props$match$params.owner, - repo = _props$match$params.repo, - build = _props$match$params.build; + var _props$match$params = props.match.params, + owner = _props$match$params.owner, + repo = _props$match$params.repo, + build = _props$match$params.build; - var slug = (0, _repository.repositorySlug)(owner, repo); - var number = parseInt(build); - return { - repo: ["repos", "data", slug], - build: ["builds", "data", slug, number] - }; + var slug = (0, _repository.repositorySlug)(owner, repo); + var number = parseInt(build); + return { + repo: ["repos", "data", slug], + build: ["builds", "data", slug, number] + }; }; var BuildMenu = (_dec = (0, _higherOrder.branch)(binding), (0, _inject.inject)(_class = _dec(_class = function (_Component) { - _inherits(BuildMenu, _Component); + _inherits(BuildMenu, _Component); - function BuildMenu(props, context) { - _classCallCheck(this, BuildMenu); + function BuildMenu(props, context) { + _classCallCheck(this, BuildMenu); - var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); + var _this = _possibleConstructorReturn(this, _Component.call(this, props, context)); - _this.handleCancel = _this.handleCancel.bind(_this); - _this.handleRestart = _this.handleRestart.bind(_this); - return _this; - } + _this.handleCancel = _this.handleCancel.bind(_this); + _this.handleRestart = _this.handleRestart.bind(_this); + return _this; + } - BuildMenu.prototype.handleRestart = function handleRestart() { - var _props = this.props, - dispatch = _props.dispatch, - drone = _props.drone, - repo = _props.repo, - build = _props.build; + BuildMenu.prototype.handleRestart = function handleRestart() { + var _props = this.props, + dispatch = _props.dispatch, + drone = _props.drone, + repo = _props.repo, + build = _props.build; - dispatch(_build.restartBuild, drone, repo.owner, repo.name, build.number); - }; + dispatch(_build.restartBuild, drone, repo.owner, repo.name, build.number); + }; - BuildMenu.prototype.handleCancel = function handleCancel() { - var _props2 = this.props, - dispatch = _props2.dispatch, - drone = _props2.drone, - repo = _props2.repo, - build = _props2.build, - match = _props2.match; + BuildMenu.prototype.handleCancel = function handleCancel() { + var _props2 = this.props, + dispatch = _props2.dispatch, + drone = _props2.drone, + repo = _props2.repo, + build = _props2.build, + match = _props2.match; - var proc = (0, _proc.findChildProcess)(build.procs, match.params.proc || 2); + var proc = (0, _proc.findChildProcess)(build.procs, match.params.proc || 2); - dispatch(_build.cancelBuild, drone, repo.owner, repo.name, build.number, proc.ppid); - }; + dispatch(_build.cancelBuild, drone, repo.owner, repo.name, build.number, proc.ppid); + }; - BuildMenu.prototype.render = function render() { - var build = this.props.build; + BuildMenu.prototype.render = function render() { + var build = this.props.build; - var rightSide = !build ? undefined : _react2["default"].createElement( - "section", - null, - build.status === "pending" || build.status === "running" ? _react2["default"].createElement( - "button", - { onClick: this.handleCancel }, - _react2["default"].createElement(_icons.CloseIcon, null), - _react2["default"].createElement( - "span", - null, - "Cancel" - ) - ) : _react2["default"].createElement( - "button", - { onClick: this.handleRestart }, - _react2["default"].createElement(_icons.RefreshIcon, null), - _react2["default"].createElement( - "span", - null, - "Restart Build" - ) - ) - ); + var rightSide = !build ? undefined : _react2["default"].createElement( + "section", + null, + build.status === "pending" || build.status === "running" ? _react2["default"].createElement( + "button", + { onClick: this.handleCancel }, + _react2["default"].createElement(_icons.CloseIcon, null), + _react2["default"].createElement( + "span", + null, + "Cancel" + ) + ) : _react2["default"].createElement( + "button", + { onClick: this.handleRestart }, + _react2["default"].createElement(_icons.RefreshIcon, null), + _react2["default"].createElement( + "span", + null, + "Restart Build" + ) + ) + ); - return _react2["default"].createElement( - "div", - null, - _react2["default"].createElement(_menu2["default"], _extends({}, this.props, { right: rightSide })) - ); - }; + return _react2["default"].createElement( + "div", + null, + _react2["default"].createElement(_menu2["default"], _extends({}, this.props, { right: rightSide })) + ); + }; - return BuildMenu; + return BuildMenu; }(_react.Component)) || _class) || _class); exports["default"] = BuildMenu; @@ -10512,55 +10708,55 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Snackbar = exports.Snackbar = function (_React$Component) { - _inherits(Snackbar, _React$Component); + _inherits(Snackbar, _React$Component); - function Snackbar() { - _classCallCheck(this, Snackbar); + function Snackbar() { + _classCallCheck(this, Snackbar); - return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); + } - Snackbar.prototype.render = function render() { - var message = this.props.message; + Snackbar.prototype.render = function render() { + var message = this.props.message; - var classes = [_snackbar2["default"].snackbar]; - if (message) { - classes.push(_snackbar2["default"].open); - } + var classes = [_snackbar2["default"].snackbar]; + if (message) { + classes.push(_snackbar2["default"].open); + } - var content = message ? _react2["default"].createElement( - "div", - { className: classes.join(" "), key: message }, - _react2["default"].createElement( - "div", - null, - message - ), - _react2["default"].createElement( - "button", - { onClick: this.props.onClose }, - _react2["default"].createElement(_close2["default"], null) - ) - ) : null; + var content = message ? _react2["default"].createElement( + "div", + { className: classes.join(" "), key: message }, + _react2["default"].createElement( + "div", + null, + message + ), + _react2["default"].createElement( + "button", + { onClick: this.props.onClose }, + _react2["default"].createElement(_close2["default"], null) + ) + ) : null; - return _react2["default"].createElement( - _reactTransitionGroup.CSSTransitionGroup, - { - transitionName: "slideup", - transitionEnterTimeout: 200, - transitionLeaveTimeout: 200, - transitionAppearTimeout: 200, - transitionAppear: true, - transitionEnter: true, - transitionLeave: true, - className: classes.root - }, - content - ); - }; + return _react2["default"].createElement( + _reactTransitionGroup.CSSTransitionGroup, + { + transitionName: "slideup", + transitionEnterTimeout: 200, + transitionLeaveTimeout: 200, + transitionAppearTimeout: 200, + transitionAppear: true, + transitionEnter: true, + transitionLeave: true, + className: classes.root + }, + content + ); + }; - return Snackbar; + return Snackbar; }(_react2["default"].Component); // const SnackbarContent = ({ children, ...props }) => { @@ -10665,95 +10861,95 @@ var DOCK_LEFT = exports.DOCK_LEFT = _drawer2["default"].left; var DOCK_RIGHT = exports.DOCK_RIGHT = _drawer2["default"].right; var Drawer = exports.Drawer = function (_Component) { - _inherits(Drawer, _Component); + _inherits(Drawer, _Component); - function Drawer() { - _classCallCheck(this, Drawer); + function Drawer() { + _classCallCheck(this, Drawer); - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); + } - Drawer.prototype.render = function render() { - var _props = this.props, - open = _props.open, - position = _props.position; + Drawer.prototype.render = function render() { + var _props = this.props, + open = _props.open, + position = _props.position; - var classes = [_drawer2["default"].drawer]; - if (open) { - classes.push(_drawer2["default"].open); - } - if (position) { - classes.push(position); - } + var classes = [_drawer2["default"].drawer]; + if (open) { + classes.push(_drawer2["default"].open); + } + if (position) { + classes.push(position); + } - var child = open ? _react2["default"].createElement("div", { key: 0, onClick: this.props.onClick, className: _drawer2["default"].backdrop }) : null; + var child = open ? _react2["default"].createElement("div", { key: 0, onClick: this.props.onClick, className: _drawer2["default"].backdrop }) : null; - return _react2["default"].createElement( - "div", - { className: classes.join(" ") }, - _react2["default"].createElement( - _reactTransitionGroup.CSSTransitionGroup, - { - transitionName: "fade", - transitionEnterTimeout: 150, - transitionLeaveTimeout: 150, - transitionAppearTimeout: 150, - transitionAppear: true, - transitionEnter: true, - transitionLeave: true - }, - child - ), - _react2["default"].createElement( - "div", - { className: _drawer2["default"].inner }, - this.props.children - ) - ); - }; + return _react2["default"].createElement( + "div", + { className: classes.join(" ") }, + _react2["default"].createElement( + _reactTransitionGroup.CSSTransitionGroup, + { + transitionName: "fade", + transitionEnterTimeout: 150, + transitionLeaveTimeout: 150, + transitionAppearTimeout: 150, + transitionAppear: true, + transitionEnter: true, + transitionLeave: true + }, + child + ), + _react2["default"].createElement( + "div", + { className: _drawer2["default"].inner }, + this.props.children + ) + ); + }; - return Drawer; + return Drawer; }(_react.Component); var CloseButton = exports.CloseButton = function (_Component2) { - _inherits(CloseButton, _Component2); + _inherits(CloseButton, _Component2); - function CloseButton() { - _classCallCheck(this, CloseButton); + function CloseButton() { + _classCallCheck(this, CloseButton); - return _possibleConstructorReturn(this, _Component2.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component2.apply(this, arguments)); + } - CloseButton.prototype.render = function render() { - return _react2["default"].createElement( - "button", - { className: _drawer2["default"].close, onClick: this.props.onClick }, - _react2["default"].createElement(_close2["default"], null) - ); - }; + CloseButton.prototype.render = function render() { + return _react2["default"].createElement( + "button", + { className: _drawer2["default"].close, onClick: this.props.onClick }, + _react2["default"].createElement(_close2["default"], null) + ); + }; - return CloseButton; + return CloseButton; }(_react.Component); var MenuButton = exports.MenuButton = function (_Component3) { - _inherits(MenuButton, _Component3); + _inherits(MenuButton, _Component3); - function MenuButton() { - _classCallCheck(this, MenuButton); + function MenuButton() { + _classCallCheck(this, MenuButton); - return _possibleConstructorReturn(this, _Component3.apply(this, arguments)); - } + return _possibleConstructorReturn(this, _Component3.apply(this, arguments)); + } - MenuButton.prototype.render = function render() { - return _react2["default"].createElement( - "button", - { className: _drawer2["default"].close, onClick: this.props.onClick }, - "Show Menu" - ); - }; + MenuButton.prototype.render = function render() { + return _react2["default"].createElement( + "button", + { className: _drawer2["default"].close, onClick: this.props.onClick }, + "Show Menu" + ); + }; - return MenuButton; + return MenuButton; }(_react.Component); /***/ }), @@ -10908,139 +11104,5 @@ exports.push([module.i, " {\n}\ndiv,\nspan {\n font-family: 'Roboto';\n font-s /***/ }) ],[201]);`) -// /static/vendor.7f216335d46eed670011.js -var file1 = []byte(`!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,i,a){for(var u,c,s,f=0,l=[];r.length>f;f++)c=r[f],o[c]&&l.push(o[c][0]),o[c]=0;for(u in i)Object.prototype.hasOwnProperty.call(i,u)&&(t[u]=i[u]);for(n&&n(r,i,a);l.length;)l.shift()();if(a)for(f=0;a.length>f;f++)s=e(e.s=a[f]);return s};var r={},o={1:0};e.e=function(t){function n(){u.onerror=u.onload=null,clearTimeout(c);var e=o[t];0!==e&&(e&&e[1](Error("Loading chunk "+t+" failed.")),o[t]=void 0)}var r=o[t];if(0===r)return new Promise(function(t){t()});if(r)return r[2];var i=new Promise(function(e,n){r=o[t]=[e,n]});r[2]=i;var a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript",u.charset="utf-8",u.async=!0,u.timeout=12e4,e.nc&&u.setAttribute("nonce",e.nc),u.src=e.p+""+t+".static/bundle."+{0:"808a5c44050d60e33a59"}[t]+".js";var c=setTimeout(n,12e4);return u.onerror=u.onload=n,a.appendChild(u),i},e.m=t,e.c=r,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e.oe=function(t){throw t},e(e.s=584)}([function(t,e,n){var r=n(5),o=n(32),i=n(18),a=n(19),u=n(28),c=function(t,e,n){var s,f,l,p,h=t&c.F,d=t&c.G,v=t&c.S,y=t&c.P,m=t&c.B,g=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=d?o:o[e]||(o[e]={}),_=b.prototype||(b.prototype={});d&&(n=e);for(s in n)f=!h&&g&&void 0!==g[s],l=(f?g:n)[s],p=m&&f?u(l,r):y&&"function"==typeof l?u(Function.call,l):l,g&&a(g,s,l,t&c.U),b[s]!=l&&i(b,s,p),y&&_[s]!=l&&(_[s]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){(function(e){!function(e,r){t.exports=r(n(12),n(118))}(0,function(t,n){function r(){return null}function o(t){var e=t.nodeName,n=t.attributes;t.attributes={},e.defaultProps&&w(t.attributes,e.defaultProps),n&&w(t.attributes,n)}function i(t,e){var n,r,o;if(e){for(o in e)if(n=B.test(o))break;if(n){r=t.attributes={};for(o in e)e.hasOwnProperty(o)&&(r[B.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=e[o])}}}function a(t,e,r){var o=e&&e._preactCompatRendered&&e._preactCompatRendered.base;o&&o.parentNode!==e&&(o=null),!o&&e&&(o=e.firstElementChild);for(var i=e.childNodes.length;i--;)e.childNodes[i]!==o&&e.removeChild(e.childNodes[i]);var a=n.render(t,e,o);return e&&(e._preactCompatRendered=a&&(a._component||{base:a})),"function"==typeof r&&r(),a&&a._component||a}function u(t,e,r,o){var i=n.h(Y,{context:t.context},e),u=a(i,r),c=u._component||u.base;return o&&o.call(c,u),c}function c(t){var e=t._preactCompatRendered&&t._preactCompatRendered.base;return!(!e||e.parentNode!==t)&&(n.render(n.h(r),t,e),!0)}function s(t){return d.bind(null,t)}function f(t,e){for(var n=e||0;t.length>n;n++){var r=t[n];Array.isArray(r)?f(r):r&&"object"==typeof r&&!m(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(t[n]=d(r.type||r.nodeName,r.props||r.attributes,r.children))}}function l(t){return"function"==typeof t&&!(t.prototype&&t.prototype.render)}function p(t){return E({displayName:t.displayName||t.name,render:function(){return t(this.props,this.context)}})}function h(t){var e=t[U];return e?!0===e?t:e:(e=p(t),Object.defineProperty(e,U,{configurable:!0,value:!0}),e.displayName=t.displayName,e.propTypes=t.propTypes,e.defaultProps=t.defaultProps,Object.defineProperty(t,U,{configurable:!0,value:e}),e)}function d(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return f(t,2),v(n.h.apply(void 0,t))}function v(t){t.preactCompatNormalized=!0,_(t),l(t.nodeName)&&(t.nodeName=h(t.nodeName));var e=t.attributes.ref,n=e&&typeof e;return!$||"string"!==n&&"number"!==n||(t.attributes.ref=g(e,$)),b(t),t}function y(t,e){for(var r=[],o=arguments.length-2;o-- >0;)r[o]=arguments[o+2];if(!m(t))return t;var i=t.attributes||t.props,a=n.h(t.nodeName||t.type,i,t.children||i&&i.children),u=[a,e];return r&&r.length?u.push(r):e&&e.children&&u.push(e.children),v(n.cloneElement.apply(void 0,u))}function m(t){return t&&(t instanceof V||t.$$typeof===D)}function g(t,e){return e._refProxies[t]||(e._refProxies[t]=function(n){e&&e.refs&&(e.refs[t]=n,null===n&&(delete e._refProxies[t],e=null))})}function b(t){var e=t.nodeName,n=t.attributes;if(n&&"string"==typeof e){var r={};for(var o in n)r[o.toLowerCase()]=o;if(r.ondoubleclick&&(n.ondblclick=n[r.ondoubleclick],delete n[r.ondoubleclick]),r.onchange&&("textarea"===e||"input"===e.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var i=r.oninput||"oninput";n[i]||(n[i]=C([n[i],n[r.onchange]]),delete n[r.onchange])}}}function _(t){var e=t.attributes||(t.attributes={});Z.enumerable="className"in e,e.className&&(e.class=e.className),Object.defineProperty(e,"className",Z)}function w(t){for(var e=arguments,n=1,r=void 0;arguments.length>n;n++)if(r=e[n])for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);return t}function O(t,e){for(var n in t)if(!(n in e))return!0;for(var r in e)if(t[r]!==e[r])return!0;return!1}function x(t){return t&&t.base||t}function P(){}function E(t){function e(t,e){S(this),L.call(this,t,e,z),M.call(this,t,e)}return t=w({constructor:e},t),t.mixins&&j(t,k(t.mixins)),t.statics&&w(e,t.statics),t.propTypes&&(e.propTypes=t.propTypes),t.defaultProps&&(e.defaultProps=t.defaultProps),t.getDefaultProps&&(e.defaultProps=t.getDefaultProps()),P.prototype=L.prototype,e.prototype=w(new P,t),e.displayName=t.displayName||"Component",e}function k(t){for(var e={},n=0;t.length>n;n++){var r=t[n];for(var o in r)r.hasOwnProperty(o)&&"function"==typeof r[o]&&(e[o]||(e[o]=[])).push(r[o])}return e}function j(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=C(e[n].concat(t[n]||K),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}function S(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||W.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}function T(t,e,n){if("string"==typeof e&&(e=t.constructor.prototype[e]),"function"==typeof e)return e.apply(t,n)}function C(t,e){return function(){for(var n,r=arguments,o=this,i=0;t.length>i;i++){var a=T(o,t[i],r);if(e&&null!=a){n||(n={});for(var u in a)a.hasOwnProperty(u)&&(n[u]=a[u])}else void 0!==a&&(n=a)}return n}}function M(t,e){N.call(this,t,e),this.componentWillReceiveProps=C([N,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=C([N,R,this.render||"render",A])}function N(e){if(e){var n=e.children;if(n&&Array.isArray(n)&&1===n.length&&("string"==typeof n[0]||"function"==typeof n[0]||n[0]instanceof V)&&(e.children=n[0])&&"object"==typeof e.children&&(e.children.length=1,e.children[0]=e.children),q){var r="function"==typeof this?this:this.constructor,o=this.propTypes||r.propTypes,i=this.displayName||r.name;o&&t.checkPropTypes(o,e,"prop",i)}}}function R(){$=this}function A(){$===this&&($=null)}function L(t,e,r){n.Component.call(this,t,e),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},r!==z&&M.call(this,t,e)}function I(t,e){L.call(this,t,e)}t="default"in t?t.default:t;var F="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),D="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,U="undefined"!=typeof Symbol?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",W={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},B=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,z={},q=void 0===e||!e.env||"production"!==e.env.NODE_ENV,V=n.h("a",null).constructor;V.prototype.$$typeof=D,V.prototype.preactCompatUpgraded=!1,V.prototype.preactCompatNormalized=!1,Object.defineProperty(V.prototype,"type",{get:function(){return this.nodeName},set:function(t){this.nodeName=t},configurable:!0}),Object.defineProperty(V.prototype,"props",{get:function(){return this.attributes},set:function(t){this.attributes=t},configurable:!0});var G=n.options.event;n.options.event=function(t){return G&&(t=G(t)),t.persist=Object,t.nativeEvent=t,t};var H=n.options.vnode;n.options.vnode=function(t){if(!t.preactCompatUpgraded){t.preactCompatUpgraded=!0;var e=t.nodeName,n=t.attributes=w({},t.attributes);"function"==typeof e?(!0===e[U]||e.prototype&&"isReactComponent"in e.prototype)&&(t.children&&t.children+""==""&&(t.children=void 0),t.children&&(n.children=t.children),t.preactCompatNormalized||v(t),o(t)):(t.children&&t.children+""==""&&(t.children=void 0),t.children&&(n.children=t.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),i(t,n))}H&&H(t)};var Y=function(){};Y.prototype.getChildContext=function(){return this.props.context},Y.prototype.render=function(t){return t.children[0]};for(var $,K=[],J={map:function(t,e,n){return null==t?null:(t=J.toArray(t),n&&n!==t&&(e=e.bind(n)),t.map(e))},forEach:function(t,e,n){if(null==t)return null;t=J.toArray(t),n&&n!==t&&(e=e.bind(n)),t.forEach(e)},count:function(t){return t&&t.length||0},only:function(t){if(t=J.toArray(t),1!==t.length)throw Error("Children.only() expects only one child.");return t[0]},toArray:function(t){return null==t?[]:K.concat(t)}},Q={},X=F.length;X--;)Q[F[X]]=s(F[X]);var Z={configurable:!0,get:function(){return this.class},set:function(t){this.class=t}};return w(L.prototype=new n.Component,{constructor:L,isReactComponent:{},replaceState:function(t,e){var n=this;this.setState(t,e);for(var r in n.state)r in t||delete n.state[r]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),P.prototype=L.prototype,I.prototype=new P,I.prototype.isPureReactComponent=!0,I.prototype.shouldComponentUpdate=function(t,e){return O(this.props,t)||O(this.state,e)},{version:"15.1.0",DOM:Q,PropTypes:t,Children:J,render:a,createClass:E,createFactory:s,createElement:d,cloneElement:y,isValidElement:m,findDOMNode:x,unmountComponentAtNode:c,Component:L,PureComponent:I,unstable_renderSubtreeIntoContainer:u,__spread:w}})}).call(e,n(21))},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},,,function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(68)("wks"),o=n(44),i=n(5).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(2),o=n(134),i=n(33),a=Object.defineProperty;e.f=n(9)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(35),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r};t.exports=n(403)(o,!0)}else t.exports=n(405)()}).call(e,n(21))},function(t,e,n){var r=n(34);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";(function(e){var n=function(){};"production"!==e.env.NODE_ENV&&(n=function(t,e,n){var r=arguments.length;n=Array(r>2?r-2:0);for(var o=2;r>o;o++)n[o-2]=arguments[o];if(void 0===e)throw Error("` + "`" + `warning(condition, format, ...args)` + "`" + ` requires a warning message argument");if(10>e.length||/^[s\W]*$/.test(e))throw Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(!t){var i=0,a="Warning: "+e.replace(/%s/g,function(){return n[i++]});try{throw Error(a)}catch(t){}}}),t.exports=n}).call(e,n(21))},function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(407);e.root=r.root,e.branch=r.branch},function(t){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,e,n){var r=n(10),o=n(43);t.exports=n(9)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(5),o=n(18),i=n(17),a=n(44)("src"),u=Function.toString,c=(""+u).split("toString");n(32).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(e+""))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e,n){var r=n(0),o=n(6),i=n(34),a=/"/g,u=function(t,e,n,r){var o=i(t)+"",u="<"+e;return""!==n&&(u+=" "+n+'="'+(r+"").replace(a,""")+'"'),u+">"+o+""};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t){function e(){throw Error("setTimeout has not been defined")}function n(){throw Error("clearTimeout has not been defined")}function r(t){if(s===setTimeout)return setTimeout(t,0);if((s===e||!s)&&setTimeout)return s=setTimeout,setTimeout(t,0);try{return s(t,0)}catch(e){try{return s.call(null,t,0)}catch(e){return s.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function i(){d&&p&&(d=!1,p.length?h=p.concat(h):v=-1,h.length&&a())}function a(){if(!d){var t=r(i);d=!0;for(var e=h.length;e;){for(p=h,h=[];++v1)for(var n=1;arguments.length>n;n++)e[n-1]=arguments[n];h.push(new u(t,e)),1!==h.length||d||r(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=c,l.addListener=c,l.once=c,l.off=c,l.removeListener=c,l.removeAllListeners=c,l.emit=c,l.prependListener=c,l.prependOnceListener=c,l.listeners=function(){return[]},l.binding=function(){throw Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(){throw Error("process.chdir is not supported")},l.umask=function(){return 0}},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(424);n.d(e,"BrowserRouter",function(){return r.a});var o=n(426);n.d(e,"HashRouter",function(){return o.a});var i=n(177);n.d(e,"Link",function(){return i.a});var a=n(428);n.d(e,"MemoryRouter",function(){return a.a});var u=n(430);n.d(e,"NavLink",function(){return u.a});var c=n(433);n.d(e,"Prompt",function(){return c.a});var s=n(434);n.d(e,"Redirect",function(){return s.a});var f=n(179);n.d(e,"Route",function(){return f.a});var l=n(123);n.d(e,"Router",function(){return l.a});var p=n(439);n.d(e,"StaticRouter",function(){return p.a});var h=n(440);n.d(e,"Switch",function(){return h.a});var d=n(441);n.d(e,"matchPath",function(){return d.a});var v=n(442);n.d(e,"withRouter",function(){return v.a})},,function(t,e,n){var r=n(59),o=n(34);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(60),o=n(43),i=n(25),a=n(33),u=n(17),c=n(134),s=Object.getOwnPropertyDescriptor;e.f=n(9)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(17),o=n(13),i=n(91)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(15);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";(function(e){t.exports=function(t,n,r,o,i,a,u,c){if("production"!==e.env.NODE_ENV&&void 0===n)throw Error("invariant requires an error message argument");if(!t){var s;if(void 0===n)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[r,o,i,a,u,c],l=0;s=Error(n.replace(/%s/g,function(){return f[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}}).call(e,n(21))},function(t){var e=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=e)},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},function(t,e,n){var r=n(0),o=n(32),i=n(6);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(28),o=n(59),i=n(13),a=n(11),u=n(108);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,h=e||u;return function(e,u,d){for(var v,y,m=i(e),g=o(m),b=r(u,d,3),_=a(g.length),w=0,O=n?h(e,_):c?h(e,0):void 0;_>w;w++)if((p||w in g)&&(v=g[w],y=b(v,w,m),t))if(n)O[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:O.push(v)}else if(f)return!1;return l?-1:s||f?f:O}}},function(t,e,n){"use strict";if(n(9)){var r=n(45),o=n(5),i=n(6),a=n(0),u=n(78),c=n(114),s=n(28),f=n(51),l=n(43),p=n(18),h=n(53),d=n(35),v=n(11),y=n(160),m=n(47),g=n(33),b=n(17),_=n(61),w=n(7),O=n(13),x=n(105),P=n(48),E=n(27),k=n(49).f,j=n(107),S=n(44),T=n(8),C=n(37),M=n(69),N=n(76),R=n(110),A=n(56),L=n(73),I=n(50),F=n(109),D=n(150),U=n(10),W=n(26),B=U.f,z=W.f,q=o.RangeError,V=o.TypeError,G=o.Uint8Array,H=Array.prototype,Y=c.ArrayBuffer,$=c.DataView,K=C(0),J=C(2),Q=C(3),X=C(4),Z=C(5),tt=C(6),et=M(!0),nt=M(!1),rt=R.values,ot=R.keys,it=R.entries,at=H.lastIndexOf,ut=H.reduce,ct=H.reduceRight,st=H.join,ft=H.sort,lt=H.slice,pt=H.toString,ht=H.toLocaleString,dt=T("iterator"),vt=T("toStringTag"),yt=S("typed_constructor"),mt=S("def_constructor"),gt=u.CONSTR,bt=u.TYPED,_t=u.VIEW,wt=C(1,function(t,e){return kt(N(t,t[mt]),e)}),Ot=i(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),xt=!!G&&!!G.prototype.set&&i(function(){new G(1).set({})}),Pt=function(t,e){var n=d(t);if(0>n||n%e)throw q("Wrong offset!");return n},Et=function(t){if(w(t)&&bt in t)return t;throw V(t+" is not a typed array!")},kt=function(t,e){if(!(w(t)&&yt in t))throw V("It is not a typed array constructor!");return new t(e)},jt=function(t,e){return St(N(t,t[mt]),e)},St=function(t,e){for(var n=0,r=e.length,o=kt(t,r);r>n;)o[n]=e[n++];return o},Tt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Ct=function(t){var e,n,r,o,i,a,u=O(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,p=j(u);if(void 0!=p&&!x(p)){for(a=p.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(l&&c>2&&(f=s(f,arguments[2],2)),e=0,n=v(u.length),o=kt(this,n);n>e;e++)o[e]=l?f(u[e],e):u[e];return o},Mt=function(){for(var t=0,e=arguments.length,n=kt(this,e);e>t;)n[t]=arguments[t++];return n},Nt=!!G&&i(function(){ht.call(new G(1))}),Rt=function(){return ht.apply(Nt?lt.call(Et(this)):Et(this),arguments)},At={copyWithin:function(t,e){return D.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return X(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(){return F.apply(Et(this),arguments)},filter:function(t){return jt(this,J(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(){return st.apply(Et(this),arguments)},lastIndexOf:function(){return at.apply(Et(this),arguments)},map:function(t){return wt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(){return ut.apply(Et(this),arguments)},reduceRight:function(){return ct.apply(Et(this),arguments)},reverse:function(){for(var t,e=this,n=Et(e).length,r=Math.floor(n/2),o=0;r>o;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ft.call(Et(this),t)},subarray:function(t,e){var n=Et(this),r=n.length,o=m(t,r);return new(N(n,n[mt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:m(e,r))-o))}},Lt=function(t,e){return jt(this,lt.call(Et(this),t,e))},It=function(t){Et(this);var e=Pt(arguments[1],1),n=this.length,r=O(t),o=v(r.length),i=0;if(o+e>n)throw q("Wrong length!");for(;o>i;)this[e+i]=r[i++]},Ft={entries:function(){return it.call(Et(this))},keys:function(){return ot.call(Et(this))},values:function(){return rt.call(Et(this))}},Dt=function(t,e){return w(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&+e+""==e+""},Ut=function(t,e){return Dt(t,e=g(e,!0))?l(2,t[e]):z(t,e)},Wt=function(t,e,n){return!(Dt(t,e=g(e,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};gt||(W.f=Ut,U.f=Wt),a(a.S+a.F*!gt,"Object",{getOwnPropertyDescriptor:Ut,defineProperty:Wt}),i(function(){pt.call({})})&&(pt=ht=function(){return st.call(this)});var Bt=h({},At);h(Bt,Ft),p(Bt,dt,Ft.values),h(Bt,{slice:Lt,set:It,constructor:function(){},toString:pt,toLocaleString:Rt}),Tt(Bt,"buffer","b"),Tt(Bt,"byteOffset","o"),Tt(Bt,"byteLength","l"),Tt(Bt,"length","e"),B(Bt,vt,{get:function(){return this[bt]}}),t.exports=function(t,e,n,c){c=!!c;var s=t+(c?"Clamped":"")+"Array",l="get"+t,h="set"+t,d=o[s],m=d||{},g=d&&E(d),b=!d||!u.ABV,O={},x=d&&d.prototype,j=function(t,n){var r=t._d;return r.v[l](n*e+r.o,Ot)},S=function(t,n,r){var o=t._d;c&&(r=0>(r=Math.round(r))?0:r>255?255:255&r),o.v[h](n*e+o.o,r,Ot)},T=function(t,e){B(t,e,{get:function(){return j(this,e)},set:function(t){return S(this,e,t)},enumerable:!0})};b?(d=n(function(t,n,r,o){f(t,d,s,"_d");var i,a,u,c,l=0,h=0;if(w(n)){if(!(n instanceof Y||"ArrayBuffer"==(c=_(n))||"SharedArrayBuffer"==c))return bt in n?St(d,n):Ct.call(d,n);i=n,h=Pt(r,e);var m=n.byteLength;if(void 0===o){if(m%e)throw q("Wrong length!");if(0>(a=m-h))throw q("Wrong length!")}else if((a=v(o)*e)+h>m)throw q("Wrong length!");u=a/e}else u=y(n),a=u*e,i=new Y(a);for(p(t,"_d",{b:i,o:h,l:a,e:u,v:new $(i)});u>l;)T(t,l++)}),x=d.prototype=P(Bt),p(x,"constructor",d)):i(function(){d(1)})&&i(function(){new d(-1)})&&L(function(t){new d,new d(null),new d(1.5),new d(t)},!0)||(d=n(function(t,n,r,o){f(t,d,s);var i;return w(n)?n instanceof Y||"ArrayBuffer"==(i=_(n))||"SharedArrayBuffer"==i?void 0!==o?new m(n,Pt(r,e),o):void 0!==r?new m(n,Pt(r,e)):new m(n):bt in n?St(d,n):Ct.call(d,n):new m(y(n))}),K(g!==Function.prototype?k(m).concat(k(g)):k(m),function(t){t in d||p(d,t,m[t])}),d.prototype=x,r||(x.constructor=d));var C=x[dt],M=!!C&&("values"==C.name||void 0==C.name),N=Ft.values;p(d,yt,!0),p(x,bt,s),p(x,_t,!0),p(x,mt,d),(c?new d(1)[vt]==s:vt in x)||B(x,vt,{get:function(){return s}}),O[s]=d,a(a.G+a.W+a.F*(d!=m),O),a(a.S,s,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*i(function(){m.of.call(d,1)}),s,{from:Ct,of:Mt}),"BYTES_PER_ELEMENT"in x||p(x,"BYTES_PER_ELEMENT",e),a(a.P,s,At),I(s),a(a.P+a.F*xt,s,{set:It}),a(a.P+a.F*!M,s,Ft),r||x.toString==pt||(x.toString=pt),a(a.P+a.F*i(function(){new d(1).slice()}),s,{slice:Lt}),a(a.P+a.F*(i(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!i(function(){x.toLocaleString.call([1,2])})),s,{toLocaleString:Rt}),A[s]=M?C:N,r||M||p(x,dt,N)}}else t.exports=function(){}},function(t,e,n){var r=n(155),o=n(0),i=n(68)("metadata"),a=i.store||(i.store=new(n(158))),u=function(t,e,n){var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i};t.exports={store:a,map:u,has:function(t,e,n){var r=u(e,n,!1);return void 0!==r&&r.has(t)},get:function(t,e,n){var r=u(e,n,!1);return void 0===r?void 0:r.get(t)},set:function(t,e,n,r){u(n,r,!0).set(t,e)},keys:function(t,e){var n=u(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},key:function(t){return void 0===t||"symbol"==typeof t?t:t+""},exp:function(t){o(o.S,"Reflect",t)}}},,function(t,e,n){var r=n(44)("meta"),o=n(7),i=n(17),a=n(10).f,u=0,c=Object.isExtensible||function(){return!0},s=!n(6)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return s&&d.NEED&&c(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){var r=n(8)("unscopables"),o=Array.prototype;void 0==o[r]&&n(18)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},function(t){t.exports=!1},function(t,e,n){var r=n(136),o=n(92);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(35),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),0>t?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(2),o=n(137),i=n(92),a=n(91)("IE_PROTO"),u=function(){},c=function(){var t,e=n(89)("iframe"),r=i.length;for(e.style.display="none",n(93).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(" - - - - - - - - - -`) +// /static/vendor.497f1f486226ce834442.js +var file3 = []byte(`!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,i,a){for(var u,c,s,f=0,l=[];r.length>f;f++)c=r[f],o[c]&&l.push(o[c][0]),o[c]=0;for(u in i)Object.prototype.hasOwnProperty.call(i,u)&&(t[u]=i[u]);for(n&&n(r,i,a);l.length;)l.shift()();if(a)for(f=0;a.length>f;f++)s=e(e.s=a[f]);return s};var r={},o={1:0};e.e=function(t){function n(){u.onerror=u.onload=null,clearTimeout(c);var e=o[t];0!==e&&(e&&e[1](Error("Loading chunk "+t+" failed.")),o[t]=void 0)}var r=o[t];if(0===r)return new Promise(function(t){t()});if(r)return r[2];var i=new Promise(function(e,n){r=o[t]=[e,n]});r[2]=i;var a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript",u.charset="utf-8",u.async=!0,u.timeout=12e4,e.nc&&u.setAttribute("nonce",e.nc),u.src=e.p+""+t+".static/bundle."+{0:"14b3605fca845fd47915"}[t]+".js";var c=setTimeout(n,12e4);return u.onerror=u.onload=n,a.appendChild(u),i},e.m=t,e.c=r,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e.oe=function(t){throw t},e(e.s=584)}([function(t,e,n){var r=n(5),o=n(32),i=n(18),a=n(19),u=n(28),c=function(t,e,n){var s,f,l,p,h=t&c.F,d=t&c.G,v=t&c.S,y=t&c.P,m=t&c.B,g=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=d?o:o[e]||(o[e]={}),_=b.prototype||(b.prototype={});d&&(n=e);for(s in n)f=!h&&g&&void 0!==g[s],l=(f?g:n)[s],p=m&&f?u(l,r):y&&"function"==typeof l?u(Function.call,l):l,g&&a(g,s,l,t&c.U),b[s]!=l&&i(b,s,p),y&&_[s]!=l&&(_[s]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){(function(e){!function(e,r){t.exports=r(n(12),n(118))}(0,function(t,n){function r(){return null}function o(t){var e=t.nodeName,n=t.attributes;t.attributes={},e.defaultProps&&w(t.attributes,e.defaultProps),n&&w(t.attributes,n)}function i(t,e){var n,r,o;if(e){for(o in e)if(n=B.test(o))break;if(n){r=t.attributes={};for(o in e)e.hasOwnProperty(o)&&(r[B.test(o)?o.replace(/([A-Z0-9])/,"-$1").toLowerCase():o]=e[o])}}}function a(t,e,r){var o=e&&e._preactCompatRendered&&e._preactCompatRendered.base;o&&o.parentNode!==e&&(o=null),!o&&e&&(o=e.firstElementChild);for(var i=e.childNodes.length;i--;)e.childNodes[i]!==o&&e.removeChild(e.childNodes[i]);var a=n.render(t,e,o);return e&&(e._preactCompatRendered=a&&(a._component||{base:a})),"function"==typeof r&&r(),a&&a._component||a}function u(t,e,r,o){var i=n.h(Y,{context:t.context},e),u=a(i,r),c=u._component||u.base;return o&&o.call(c,u),c}function c(t){var e=t._preactCompatRendered&&t._preactCompatRendered.base;return!(!e||e.parentNode!==t)&&(n.render(n.h(r),t,e),!0)}function s(t){return d.bind(null,t)}function f(t,e){for(var n=e||0;t.length>n;n++){var r=t[n];Array.isArray(r)?f(r):r&&"object"==typeof r&&!m(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(t[n]=d(r.type||r.nodeName,r.props||r.attributes,r.children))}}function l(t){return"function"==typeof t&&!(t.prototype&&t.prototype.render)}function p(t){return E({displayName:t.displayName||t.name,render:function(){return t(this.props,this.context)}})}function h(t){var e=t[U];return e?!0===e?t:e:(e=p(t),Object.defineProperty(e,U,{configurable:!0,value:!0}),e.displayName=t.displayName,e.propTypes=t.propTypes,e.defaultProps=t.defaultProps,Object.defineProperty(t,U,{configurable:!0,value:e}),e)}function d(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return f(t,2),v(n.h.apply(void 0,t))}function v(t){t.preactCompatNormalized=!0,_(t),l(t.nodeName)&&(t.nodeName=h(t.nodeName));var e=t.attributes.ref,n=e&&typeof e;return!$||"string"!==n&&"number"!==n||(t.attributes.ref=g(e,$)),b(t),t}function y(t,e){for(var r=[],o=arguments.length-2;o-- >0;)r[o]=arguments[o+2];if(!m(t))return t;var i=t.attributes||t.props,a=n.h(t.nodeName||t.type,i,t.children||i&&i.children),u=[a,e];return r&&r.length?u.push(r):e&&e.children&&u.push(e.children),v(n.cloneElement.apply(void 0,u))}function m(t){return t&&(t instanceof V||t.$$typeof===D)}function g(t,e){return e._refProxies[t]||(e._refProxies[t]=function(n){e&&e.refs&&(e.refs[t]=n,null===n&&(delete e._refProxies[t],e=null))})}function b(t){var e=t.nodeName,n=t.attributes;if(n&&"string"==typeof e){var r={};for(var o in n)r[o.toLowerCase()]=o;if(r.ondoubleclick&&(n.ondblclick=n[r.ondoubleclick],delete n[r.ondoubleclick]),r.onchange&&("textarea"===e||"input"===e.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var i=r.oninput||"oninput";n[i]||(n[i]=C([n[i],n[r.onchange]]),delete n[r.onchange])}}}function _(t){var e=t.attributes||(t.attributes={});Z.enumerable="className"in e,e.className&&(e.class=e.className),Object.defineProperty(e,"className",Z)}function w(t){for(var e=arguments,n=1,r=void 0;arguments.length>n;n++)if(r=e[n])for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);return t}function O(t,e){for(var n in t)if(!(n in e))return!0;for(var r in e)if(t[r]!==e[r])return!0;return!1}function x(t){return t&&t.base||t}function P(){}function E(t){function e(t,e){S(this),L.call(this,t,e,z),M.call(this,t,e)}return t=w({constructor:e},t),t.mixins&&j(t,k(t.mixins)),t.statics&&w(e,t.statics),t.propTypes&&(e.propTypes=t.propTypes),t.defaultProps&&(e.defaultProps=t.defaultProps),t.getDefaultProps&&(e.defaultProps=t.getDefaultProps()),P.prototype=L.prototype,e.prototype=w(new P,t),e.displayName=t.displayName||"Component",e}function k(t){for(var e={},n=0;t.length>n;n++){var r=t[n];for(var o in r)r.hasOwnProperty(o)&&"function"==typeof r[o]&&(e[o]||(e[o]=[])).push(r[o])}return e}function j(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=C(e[n].concat(t[n]||K),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}function S(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||W.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}function T(t,e,n){if("string"==typeof e&&(e=t.constructor.prototype[e]),"function"==typeof e)return e.apply(t,n)}function C(t,e){return function(){for(var n,r=arguments,o=this,i=0;t.length>i;i++){var a=T(o,t[i],r);if(e&&null!=a){n||(n={});for(var u in a)a.hasOwnProperty(u)&&(n[u]=a[u])}else void 0!==a&&(n=a)}return n}}function M(t,e){N.call(this,t,e),this.componentWillReceiveProps=C([N,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=C([N,R,this.render||"render",A])}function N(e){if(e){var n=e.children;if(n&&Array.isArray(n)&&1===n.length&&("string"==typeof n[0]||"function"==typeof n[0]||n[0]instanceof V)&&(e.children=n[0])&&"object"==typeof e.children&&(e.children.length=1,e.children[0]=e.children),q){var r="function"==typeof this?this:this.constructor,o=this.propTypes||r.propTypes,i=this.displayName||r.name;o&&t.checkPropTypes(o,e,"prop",i)}}}function R(){$=this}function A(){$===this&&($=null)}function L(t,e,r){n.Component.call(this,t,e),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},r!==z&&M.call(this,t,e)}function I(t,e){L.call(this,t,e)}t="default"in t?t.default:t;var F="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),D="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,U="undefined"!=typeof Symbol?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",W={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},B=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,z={},q=void 0===e||!e.env||"production"!==e.env.NODE_ENV,V=n.h("a",null).constructor;V.prototype.$$typeof=D,V.prototype.preactCompatUpgraded=!1,V.prototype.preactCompatNormalized=!1,Object.defineProperty(V.prototype,"type",{get:function(){return this.nodeName},set:function(t){this.nodeName=t},configurable:!0}),Object.defineProperty(V.prototype,"props",{get:function(){return this.attributes},set:function(t){this.attributes=t},configurable:!0});var G=n.options.event;n.options.event=function(t){return G&&(t=G(t)),t.persist=Object,t.nativeEvent=t,t};var H=n.options.vnode;n.options.vnode=function(t){if(!t.preactCompatUpgraded){t.preactCompatUpgraded=!0;var e=t.nodeName,n=t.attributes=w({},t.attributes);"function"==typeof e?(!0===e[U]||e.prototype&&"isReactComponent"in e.prototype)&&(t.children&&t.children+""==""&&(t.children=void 0),t.children&&(n.children=t.children),t.preactCompatNormalized||v(t),o(t)):(t.children&&t.children+""==""&&(t.children=void 0),t.children&&(n.children=t.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),i(t,n))}H&&H(t)};var Y=function(){};Y.prototype.getChildContext=function(){return this.props.context},Y.prototype.render=function(t){return t.children[0]};for(var $,K=[],J={map:function(t,e,n){return null==t?null:(t=J.toArray(t),n&&n!==t&&(e=e.bind(n)),t.map(e))},forEach:function(t,e,n){if(null==t)return null;t=J.toArray(t),n&&n!==t&&(e=e.bind(n)),t.forEach(e)},count:function(t){return t&&t.length||0},only:function(t){if(t=J.toArray(t),1!==t.length)throw Error("Children.only() expects only one child.");return t[0]},toArray:function(t){return null==t?[]:K.concat(t)}},Q={},X=F.length;X--;)Q[F[X]]=s(F[X]);var Z={configurable:!0,get:function(){return this.class},set:function(t){this.class=t}};return w(L.prototype=new n.Component,{constructor:L,isReactComponent:{},replaceState:function(t,e){var n=this;this.setState(t,e);for(var r in n.state)r in t||delete n.state[r]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),P.prototype=L.prototype,I.prototype=new P,I.prototype.isPureReactComponent=!0,I.prototype.shouldComponentUpdate=function(t,e){return O(this.props,t)||O(this.state,e)},{version:"15.1.0",DOM:Q,PropTypes:t,Children:J,render:a,createClass:E,createFactory:s,createElement:d,cloneElement:y,isValidElement:m,findDOMNode:x,unmountComponentAtNode:c,Component:L,PureComponent:I,unstable_renderSubtreeIntoContainer:u,__spread:w}})}).call(e,n(21))},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},,,function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(68)("wks"),o=n(44),i=n(5).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(2),o=n(134),i=n(33),a=Object.defineProperty;e.f=n(9)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(35),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r};t.exports=n(403)(o,!0)}else t.exports=n(405)()}).call(e,n(21))},function(t,e,n){var r=n(34);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";(function(e){var n=function(){};"production"!==e.env.NODE_ENV&&(n=function(t,e,n){var r=arguments.length;n=Array(r>2?r-2:0);for(var o=2;r>o;o++)n[o-2]=arguments[o];if(void 0===e)throw Error("` + "`" + `warning(condition, format, ...args)` + "`" + ` requires a warning message argument");if(10>e.length||/^[s\W]*$/.test(e))throw Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(!t){var i=0,a="Warning: "+e.replace(/%s/g,function(){return n[i++]});try{throw Error(a)}catch(t){}}}),t.exports=n}).call(e,n(21))},function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(407);e.root=r.root,e.branch=r.branch},function(t){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,e,n){var r=n(10),o=n(43);t.exports=n(9)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(5),o=n(18),i=n(17),a=n(44)("src"),u=Function.toString,c=(""+u).split("toString");n(32).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(e+""))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e,n){var r=n(0),o=n(6),i=n(34),a=/"/g,u=function(t,e,n,r){var o=i(t)+"",u="<"+e;return""!==n&&(u+=" "+n+'="'+(r+"").replace(a,""")+'"'),u+">"+o+""};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t){function e(){throw Error("setTimeout has not been defined")}function n(){throw Error("clearTimeout has not been defined")}function r(t){if(s===setTimeout)return setTimeout(t,0);if((s===e||!s)&&setTimeout)return s=setTimeout,setTimeout(t,0);try{return s(t,0)}catch(e){try{return s.call(null,t,0)}catch(e){return s.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function i(){d&&p&&(d=!1,p.length?h=p.concat(h):v=-1,h.length&&a())}function a(){if(!d){var t=r(i);d=!0;for(var e=h.length;e;){for(p=h,h=[];++v1)for(var n=1;arguments.length>n;n++)e[n-1]=arguments[n];h.push(new u(t,e)),1!==h.length||d||r(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=c,l.addListener=c,l.once=c,l.off=c,l.removeListener=c,l.removeAllListeners=c,l.emit=c,l.prependListener=c,l.prependOnceListener=c,l.listeners=function(){return[]},l.binding=function(){throw Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(){throw Error("process.chdir is not supported")},l.umask=function(){return 0}},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(424);n.d(e,"BrowserRouter",function(){return r.a});var o=n(426);n.d(e,"HashRouter",function(){return o.a});var i=n(177);n.d(e,"Link",function(){return i.a});var a=n(428);n.d(e,"MemoryRouter",function(){return a.a});var u=n(430);n.d(e,"NavLink",function(){return u.a});var c=n(433);n.d(e,"Prompt",function(){return c.a});var s=n(434);n.d(e,"Redirect",function(){return s.a});var f=n(179);n.d(e,"Route",function(){return f.a});var l=n(123);n.d(e,"Router",function(){return l.a});var p=n(439);n.d(e,"StaticRouter",function(){return p.a});var h=n(440);n.d(e,"Switch",function(){return h.a});var d=n(441);n.d(e,"matchPath",function(){return d.a});var v=n(442);n.d(e,"withRouter",function(){return v.a})},,function(t,e,n){var r=n(59),o=n(34);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(60),o=n(43),i=n(25),a=n(33),u=n(17),c=n(134),s=Object.getOwnPropertyDescriptor;e.f=n(9)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(17),o=n(13),i=n(91)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(15);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";(function(e){t.exports=function(t,n,r,o,i,a,u,c){if("production"!==e.env.NODE_ENV&&void 0===n)throw Error("invariant requires an error message argument");if(!t){var s;if(void 0===n)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[r,o,i,a,u,c],l=0;s=Error(n.replace(/%s/g,function(){return f[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}}).call(e,n(21))},function(t){var e=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=e)},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},function(t,e,n){var r=n(0),o=n(32),i=n(6);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(28),o=n(59),i=n(13),a=n(11),u=n(108);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,h=e||u;return function(e,u,d){for(var v,y,m=i(e),g=o(m),b=r(u,d,3),_=a(g.length),w=0,O=n?h(e,_):c?h(e,0):void 0;_>w;w++)if((p||w in g)&&(v=g[w],y=b(v,w,m),t))if(n)O[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:O.push(v)}else if(f)return!1;return l?-1:s||f?f:O}}},function(t,e,n){"use strict";if(n(9)){var r=n(45),o=n(5),i=n(6),a=n(0),u=n(78),c=n(114),s=n(28),f=n(51),l=n(43),p=n(18),h=n(53),d=n(35),v=n(11),y=n(160),m=n(47),g=n(33),b=n(17),_=n(61),w=n(7),O=n(13),x=n(105),P=n(48),E=n(27),k=n(49).f,j=n(107),S=n(44),T=n(8),C=n(37),M=n(69),N=n(76),R=n(110),A=n(56),L=n(73),I=n(50),F=n(109),D=n(150),U=n(10),W=n(26),B=U.f,z=W.f,q=o.RangeError,V=o.TypeError,G=o.Uint8Array,H=Array.prototype,Y=c.ArrayBuffer,$=c.DataView,K=C(0),J=C(2),Q=C(3),X=C(4),Z=C(5),tt=C(6),et=M(!0),nt=M(!1),rt=R.values,ot=R.keys,it=R.entries,at=H.lastIndexOf,ut=H.reduce,ct=H.reduceRight,st=H.join,ft=H.sort,lt=H.slice,pt=H.toString,ht=H.toLocaleString,dt=T("iterator"),vt=T("toStringTag"),yt=S("typed_constructor"),mt=S("def_constructor"),gt=u.CONSTR,bt=u.TYPED,_t=u.VIEW,wt=C(1,function(t,e){return kt(N(t,t[mt]),e)}),Ot=i(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),xt=!!G&&!!G.prototype.set&&i(function(){new G(1).set({})}),Pt=function(t,e){var n=d(t);if(0>n||n%e)throw q("Wrong offset!");return n},Et=function(t){if(w(t)&&bt in t)return t;throw V(t+" is not a typed array!")},kt=function(t,e){if(!(w(t)&&yt in t))throw V("It is not a typed array constructor!");return new t(e)},jt=function(t,e){return St(N(t,t[mt]),e)},St=function(t,e){for(var n=0,r=e.length,o=kt(t,r);r>n;)o[n]=e[n++];return o},Tt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Ct=function(t){var e,n,r,o,i,a,u=O(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,p=j(u);if(void 0!=p&&!x(p)){for(a=p.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(l&&c>2&&(f=s(f,arguments[2],2)),e=0,n=v(u.length),o=kt(this,n);n>e;e++)o[e]=l?f(u[e],e):u[e];return o},Mt=function(){for(var t=0,e=arguments.length,n=kt(this,e);e>t;)n[t]=arguments[t++];return n},Nt=!!G&&i(function(){ht.call(new G(1))}),Rt=function(){return ht.apply(Nt?lt.call(Et(this)):Et(this),arguments)},At={copyWithin:function(t,e){return D.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return X(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(){return F.apply(Et(this),arguments)},filter:function(t){return jt(this,J(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(){return st.apply(Et(this),arguments)},lastIndexOf:function(){return at.apply(Et(this),arguments)},map:function(t){return wt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(){return ut.apply(Et(this),arguments)},reduceRight:function(){return ct.apply(Et(this),arguments)},reverse:function(){for(var t,e=this,n=Et(e).length,r=Math.floor(n/2),o=0;r>o;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ft.call(Et(this),t)},subarray:function(t,e){var n=Et(this),r=n.length,o=m(t,r);return new(N(n,n[mt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:m(e,r))-o))}},Lt=function(t,e){return jt(this,lt.call(Et(this),t,e))},It=function(t){Et(this);var e=Pt(arguments[1],1),n=this.length,r=O(t),o=v(r.length),i=0;if(o+e>n)throw q("Wrong length!");for(;o>i;)this[e+i]=r[i++]},Ft={entries:function(){return it.call(Et(this))},keys:function(){return ot.call(Et(this))},values:function(){return rt.call(Et(this))}},Dt=function(t,e){return w(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&+e+""==e+""},Ut=function(t,e){return Dt(t,e=g(e,!0))?l(2,t[e]):z(t,e)},Wt=function(t,e,n){return!(Dt(t,e=g(e,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};gt||(W.f=Ut,U.f=Wt),a(a.S+a.F*!gt,"Object",{getOwnPropertyDescriptor:Ut,defineProperty:Wt}),i(function(){pt.call({})})&&(pt=ht=function(){return st.call(this)});var Bt=h({},At);h(Bt,Ft),p(Bt,dt,Ft.values),h(Bt,{slice:Lt,set:It,constructor:function(){},toString:pt,toLocaleString:Rt}),Tt(Bt,"buffer","b"),Tt(Bt,"byteOffset","o"),Tt(Bt,"byteLength","l"),Tt(Bt,"length","e"),B(Bt,vt,{get:function(){return this[bt]}}),t.exports=function(t,e,n,c){c=!!c;var s=t+(c?"Clamped":"")+"Array",l="get"+t,h="set"+t,d=o[s],m=d||{},g=d&&E(d),b=!d||!u.ABV,O={},x=d&&d.prototype,j=function(t,n){var r=t._d;return r.v[l](n*e+r.o,Ot)},S=function(t,n,r){var o=t._d;c&&(r=0>(r=Math.round(r))?0:r>255?255:255&r),o.v[h](n*e+o.o,r,Ot)},T=function(t,e){B(t,e,{get:function(){return j(this,e)},set:function(t){return S(this,e,t)},enumerable:!0})};b?(d=n(function(t,n,r,o){f(t,d,s,"_d");var i,a,u,c,l=0,h=0;if(w(n)){if(!(n instanceof Y||"ArrayBuffer"==(c=_(n))||"SharedArrayBuffer"==c))return bt in n?St(d,n):Ct.call(d,n);i=n,h=Pt(r,e);var m=n.byteLength;if(void 0===o){if(m%e)throw q("Wrong length!");if(0>(a=m-h))throw q("Wrong length!")}else if((a=v(o)*e)+h>m)throw q("Wrong length!");u=a/e}else u=y(n),a=u*e,i=new Y(a);for(p(t,"_d",{b:i,o:h,l:a,e:u,v:new $(i)});u>l;)T(t,l++)}),x=d.prototype=P(Bt),p(x,"constructor",d)):i(function(){d(1)})&&i(function(){new d(-1)})&&L(function(t){new d,new d(null),new d(1.5),new d(t)},!0)||(d=n(function(t,n,r,o){f(t,d,s);var i;return w(n)?n instanceof Y||"ArrayBuffer"==(i=_(n))||"SharedArrayBuffer"==i?void 0!==o?new m(n,Pt(r,e),o):void 0!==r?new m(n,Pt(r,e)):new m(n):bt in n?St(d,n):Ct.call(d,n):new m(y(n))}),K(g!==Function.prototype?k(m).concat(k(g)):k(m),function(t){t in d||p(d,t,m[t])}),d.prototype=x,r||(x.constructor=d));var C=x[dt],M=!!C&&("values"==C.name||void 0==C.name),N=Ft.values;p(d,yt,!0),p(x,bt,s),p(x,_t,!0),p(x,mt,d),(c?new d(1)[vt]==s:vt in x)||B(x,vt,{get:function(){return s}}),O[s]=d,a(a.G+a.W+a.F*(d!=m),O),a(a.S,s,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*i(function(){m.of.call(d,1)}),s,{from:Ct,of:Mt}),"BYTES_PER_ELEMENT"in x||p(x,"BYTES_PER_ELEMENT",e),a(a.P,s,At),I(s),a(a.P+a.F*xt,s,{set:It}),a(a.P+a.F*!M,s,Ft),r||x.toString==pt||(x.toString=pt),a(a.P+a.F*i(function(){new d(1).slice()}),s,{slice:Lt}),a(a.P+a.F*(i(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!i(function(){x.toLocaleString.call([1,2])})),s,{toLocaleString:Rt}),A[s]=M?C:N,r||M||p(x,dt,N)}}else t.exports=function(){}},function(t,e,n){var r=n(155),o=n(0),i=n(68)("metadata"),a=i.store||(i.store=new(n(158))),u=function(t,e,n){var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i};t.exports={store:a,map:u,has:function(t,e,n){var r=u(e,n,!1);return void 0!==r&&r.has(t)},get:function(t,e,n){var r=u(e,n,!1);return void 0===r?void 0:r.get(t)},set:function(t,e,n,r){u(n,r,!0).set(t,e)},keys:function(t,e){var n=u(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},key:function(t){return void 0===t||"symbol"==typeof t?t:t+""},exp:function(t){o(o.S,"Reflect",t)}}},,function(t,e,n){var r=n(44)("meta"),o=n(7),i=n(17),a=n(10).f,u=0,c=Object.isExtensible||function(){return!0},s=!n(6)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return s&&d.NEED&&c(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){var r=n(8)("unscopables"),o=Array.prototype;void 0==o[r]&&n(18)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},function(t){t.exports=!1},function(t,e,n){var r=n(136),o=n(92);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(35),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),0>t?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(2),o=n(137),i=n(92),a=n(91)("IE_PROTO"),u=function(){},c=function(){var t,e=n(89)("iframe"),r=i.length;for(e.style.display="none",n(93).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("