+37
-9
lines changedFilter options
+37
-9
lines changed Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1
1
dist/*
2
-
cli/serve/static.rice-box.go
2
+
cli/serve/rice-box.go
3
3
coverage.txt
4
4
profile.out
5
5
bin
Original file line number Diff line number Diff line change
@@ -7,26 +7,35 @@ export GOPROXY := off
7
7
.PHONY: all
8
8
all: bin/cfssl bin/cfssl-bundle bin/cfssl-certinfo bin/cfssl-newkey bin/cfssl-scan bin/cfssljson bin/mkbundle bin/multirootca
9
9
10
-
bin/%: $(shell find . -type f -name '*.go')
10
+
bin/%: $(shell find . -type f -name '*.go') cli/serve/rice-box.go
11
11
@mkdir -p $(dir $@)
12
12
go build -ldflags $(LDFLAGS) -o $@ ./cmd/$(@F)
13
13
14
+
cli/serve/rice-box.go: bin/rice $(shell find cli/serve/static -type f)
15
+
cli/serve/rice-box.go:
16
+
./bin/rice embed-go -i=./cli/serve
17
+
14
18
.PHONY: install
15
19
install: install-cfssl install-cfssl-bundle install-cfssl-certinfo install-cfssl-newkey install-cfssl-scan install-cfssljson install-mkbundle install-multirootca
16
20
17
21
.PHONY: install-%
18
22
install-%:
19
23
go install ./cmd/$(@F:install-%=%)
20
24
21
-
bin/rice: $(shell find . -type f -name '*.go')
25
+
.PHONY: serve
26
+
serve: bin/cfssl
27
+
serve:
28
+
./bin/cfssl serve
29
+
30
+
bin/rice: $(shell find vendor -type f -name '*.go')
22
31
@mkdir -p $(dir $@)
23
32
go build -o $@ ./vendor/github.com/GeertJohan/go.rice/rice
24
33
25
-
bin/golint: $(shell find . -type f -name '*.go')
34
+
bin/golint: $(shell find vendor -type f -name '*.go')
26
35
@mkdir -p $(dir $@)
27
36
go build -o $@ ./vendor/golang.org/x/lint/golint
28
37
29
-
bin/goose: $(shell find . -type f -name '*.go')
38
+
bin/goose: $(shell find vendor -type f -name '*.go')
30
39
@mkdir -p $(dir $@)
31
40
go build -o $@ ./vendor/bitbucket.org/liamstask/goose/cmd/goose
32
41
Original file line number Diff line number Diff line change
@@ -108,8 +108,9 @@ func (hb *httpBox) Open(name string) (http.File, error) {
108
108
// staticBox is the box containing all static assets.
109
109
var staticBox = &httpBox{
110
110
redirects: map[string]string{
111
-
"/scan": "/index.html",
112
-
"/bundle": "/index.html",
111
+
"/scan": "/index.html",
112
+
"/bundle": "/index.html",
113
+
"/packages": "/index.html",
113
114
},
114
115
}
115
116
Original file line number Diff line number Diff line change
@@ -121,7 +121,7 @@
121
121
navLink('a', '/bundle', Tformat('bundle.title'))
122
122
]),
123
123
m('ul.nav.navbar-nav.navbar-right', [
124
-
m('li', m('a[href="https://pkg.cfssl.org"]', Tformat('common.packages'))),
124
+
navLink('a', '/packages', Tformat('common.packages')),
125
125
m('li', m('a[href="https://github.com/cloudflare/cfssl"]', 'GitHub')),
126
126
])
127
127
])
@@ -237,6 +237,23 @@
237
237
}
238
238
};
239
239
240
+
var packages = {
241
+
controller: function() {
242
+
page.title(Tformat('common.packages'));
243
+
return;
244
+
},
245
+
view: function() {
246
+
return appWrapper([
247
+
m('h1.page-header', Tformat('common.packages')),
248
+
m('ul', [
249
+
m('li', m('a[href="https://github.com/cloudflare/cfssl/releases"]', 'Download binaries (GitHub)')),
250
+
m('li', m('a[href="https://hub.docker.com/r/cloudflare/cfssl"]', 'Docker images')),
251
+
m('li', m('a[href="https://pkg.cloudflare.com/"]', 'Install from apt or yum'))
252
+
])
253
+
]);
254
+
}
255
+
};
256
+
240
257
var scan = {
241
258
vm: {
242
259
init: function(domain) {
@@ -708,7 +725,8 @@
708
725
'/bundle': bundle,
709
726
'/bundle/:domain': bundle,
710
727
'/scan': scan,
711
-
'/scan/:domain': scan
728
+
'/scan/:domain': scan,
729
+
'/packages': packages
712
730
});
713
731
714
732
window.scan = scan;
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4