1
0
Fork 0

Ignore *.jade.go files. Fixed jade templates. Added go generate to Makefile.

This commit is contained in:
Alexander Andreev 2023-02-23 18:28:01 +04:00
parent 4a49bf30a3
commit d3abf5514d
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
6 changed files with 21 additions and 23 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
bin/*
!bin/.keep
.vscode
.vscode
*.jade.go

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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