Ignore *.jade.go files. Fixed jade templates. Added go generate to Makefile.
This commit is contained in:
parent
4a49bf30a3
commit
d3abf5514d
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
bin/*
|
bin/*
|
||||||
!bin/.keep
|
!bin/.keep
|
||||||
.vscode
|
.vscode
|
||||||
|
*.jade.go
|
1
Makefile
1
Makefile
@ -12,6 +12,7 @@ all: ${TARGET}
|
|||||||
.PHONY: ${TARGET}
|
.PHONY: ${TARGET}
|
||||||
|
|
||||||
${TARGET}:
|
${TARGET}:
|
||||||
|
go generate web/web.go
|
||||||
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
|
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
|
||||||
go build -o bin/$@-clean ${LDFLAGS} cmd/$@-clean/main.go
|
go build -o bin/$@-clean ${LDFLAGS} cmd/$@-clean/main.go
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
:go:func Error404(mainSite string)
|
|
||||||
|
|
||||||
extends base.jade
|
extends base.jade
|
||||||
|
|
||||||
block append head
|
block head
|
||||||
|
:go:func Error404(mainSite string)
|
||||||
style(type="text/css").
|
style(type="text/css").
|
||||||
#error {
|
#error {
|
||||||
font-size: 3.5rem;
|
font-size: 3.5rem;
|
||||||
@ -12,10 +11,10 @@ block append head
|
|||||||
|
|
||||||
#error h1 { font-size: 8rem; }
|
#error h1 { font-size: 8rem; }
|
||||||
|
|
||||||
block append header
|
block header
|
||||||
h1 404
|
h1 404
|
||||||
|
|
||||||
block append body
|
block body
|
||||||
section#error
|
section#error
|
||||||
h1 404
|
h1 404
|
||||||
| Nod Found xD
|
| Nod Found xD
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
:go:func Index(mainSite string, storageCapacity, storageUsed int64, keepForHours int, fileMaxSize, storageUsedStr, storageCapacityStr, storageAvailableStr string)
|
|
||||||
|
|
||||||
extends base.jade
|
extends base.jade
|
||||||
|
|
||||||
block append header
|
block header
|
||||||
h1 Upload
|
h1 Upload
|
||||||
|
|
||||||
block body
|
block body
|
||||||
|
:go:func Index(mainSite string, storageCapacity, storageUsed int64, keepForHours int, fileMaxSize, storageUsedStr, storageCapacityStr, storageAvailableStr string)
|
||||||
section#rules.center
|
section#rules.center
|
||||||
h2 Rules
|
h2 Rules
|
||||||
ul
|
ul
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
:go:func ErrorNoSpace(mainSite string)
|
|
||||||
|
|
||||||
extends base.jade
|
extends base.jade
|
||||||
|
|
||||||
block append head
|
block head
|
||||||
|
:go:func ErrorNoSpace(mainSite string)
|
||||||
style(type="text/css").
|
style(type="text/css").
|
||||||
#error {
|
#error {
|
||||||
font-size: 3.5rem;
|
font-size: 3.5rem;
|
||||||
@ -12,9 +11,9 @@ block append head
|
|||||||
|
|
||||||
#error h1 { font-size: 6rem; }
|
#error h1 { font-size: 6rem; }
|
||||||
|
|
||||||
block append header
|
block header
|
||||||
h1 :(
|
h1 :(
|
||||||
|
|
||||||
block append body
|
block body
|
||||||
section#error
|
section#error
|
||||||
h1 Not enough space left
|
h1 Not enough space left
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
:go:func Uploaded(mainSite, site, downloadLink string, keepForHours int)
|
|
||||||
|
|
||||||
extends base.jade
|
extends base.jade
|
||||||
|
|
||||||
block append header
|
block header
|
||||||
h1 Upload
|
h1 Upload
|
||||||
|
|
||||||
block append body
|
block body
|
||||||
|
:go:func Uploaded(mainSite, site, downloadLink string, keepForHours int)
|
||||||
section#file
|
section#file
|
||||||
h2 Your link
|
h2 Your link
|
||||||
center
|
center
|
||||||
|
Loading…
Reference in New Issue
Block a user