move html, js, css and gmi files to "frontend" dir
This commit is contained in:
parent
b899c240f4
commit
4bcd168abc
14
.reuse/dep5
14
.reuse/dep5
|
@ -11,22 +11,10 @@ Files: .gitignore
|
||||||
Copyright: 2022-2023 nervuri <https://nervuri.net/contact>
|
Copyright: 2022-2023 nervuri <https://nervuri.net/contact>
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
|
|
||||||
Files: *.gmi
|
Files: frontend/*
|
||||||
Copyright: 2022-2023 nervuri <https://nervuri.net/contact>
|
Copyright: 2022-2023 nervuri <https://nervuri.net/contact>
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
|
|
||||||
Files: *.tpl
|
|
||||||
Copyright: 2022-2023 nervuri <https://nervuri.net/contact>
|
|
||||||
License: BSD-3-Clause
|
|
||||||
|
|
||||||
Files: style.css
|
|
||||||
Copyright: 2023 nervuri <https://nervuri.net/contact>
|
|
||||||
License: BSD-3-Clause
|
|
||||||
|
|
||||||
Files: script.js
|
|
||||||
Copyright: 2023 nervuri <https://nervuri.net/contact>
|
|
||||||
License: BSD-3-Clause
|
|
||||||
|
|
||||||
Files: clienthello/*.csv
|
Files: clienthello/*.csv
|
||||||
Copyright: IANA and IETF
|
Copyright: IANA and IETF
|
||||||
License: CC0-1.0
|
License: CC0-1.0
|
||||||
|
|
10
server.go
10
server.go
|
@ -54,19 +54,19 @@ func fatalError(err ...any) {
|
||||||
logger.Fatal(err...)
|
logger.Fatal(err...)
|
||||||
}
|
}
|
||||||
|
|
||||||
//go:embed index.html
|
//go:embed frontend/index.html
|
||||||
var html string
|
var html string
|
||||||
|
|
||||||
//go:embed error.html
|
//go:embed frontend/error.html
|
||||||
var htmlError string
|
var htmlError string
|
||||||
|
|
||||||
//go:embed style.css
|
//go:embed frontend/style.css
|
||||||
var css string
|
var css string
|
||||||
|
|
||||||
//go:embed script.js
|
//go:embed frontend/script.js
|
||||||
var js string
|
var js string
|
||||||
|
|
||||||
//go:embed index.gmi
|
//go:embed frontend/index.gmi
|
||||||
var gemtext string
|
var gemtext string
|
||||||
|
|
||||||
// Copy the Client Hello message before starting the TLS handshake.
|
// Copy the Client Hello message before starting the TLS handshake.
|
||||||
|
|
Loading…
Reference in New Issue