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