1
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

1
.gitignore vendored
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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