aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-10-05 16:53:15 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-10-05 16:53:15 +0200
commit6e5062488fc3ecbf37c11e7d111bfe6ea3b5284d (patch)
tree6b568c854674295941cc1b827b3017879e66ebe5 /templates
parentada6a68b4f25c912705542a6b03aae7ffffb5e99 (diff)
downloadcerrado-6e5062488fc3ecbf37c11e7d111bfe6ea3b5284d.tar.gz
cerrado-6e5062488fc3ecbf37c11e7d111bfe6ea3b5284d.tar.bz2
cerrado-6e5062488fc3ecbf37c11e7d111bfe6ea3b5284d.zip
feat: Remove config page
That page was created as playground and had some debug purpose. Now that is not longer used and with introduction of sensible information (hash and aes-key) that has to go.
Diffstat (limited to 'templates')
-rw-r--r--templates/config.qtpl19
-rw-r--r--templates/config.qtpl.go165
-rw-r--r--templates/navbar.qtpl1
-rw-r--r--templates/navbar.qtpl.go123
4 files changed, 59 insertions, 249 deletions
diff --git a/templates/config.qtpl b/templates/config.qtpl
deleted file mode 100644
index b3df50e..0000000
--- a/templates/config.qtpl
+++ /dev/null
@@ -1,19 +0,0 @@
-{% code
-type ConfigPage struct {
- Body []byte
-}
-%}
-
-{% func (p *ConfigPage) Title() %}Hello{% endfunc %}
-
-{% func (p *ConfigPage) Navbar() %}{%= Navbar(Config) %}{% endfunc %}
-
-{% func (p *ConfigPage) Content() %}
-<p>This is the configuration that is currently loaded</p>
-<div class="code-view">
-{%z= p.Body %}
-</div>
-{% endfunc %}
-
-{% func (p *ConfigPage) Script() %}
-{% endfunc %}
diff --git a/templates/config.qtpl.go b/templates/config.qtpl.go
deleted file mode 100644
index 975fea3..0000000
--- a/templates/config.qtpl.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by qtc from "config.qtpl". DO NOT EDIT.
-// See https://github.com/valyala/quicktemplate for details.
-
-//line templates/config.qtpl:1
-package templates
-
-//line templates/config.qtpl:1
-import (
- qtio422016 "io"
-
- qt422016 "github.com/valyala/quicktemplate"
-)
-
-//line templates/config.qtpl:1
-var (
- _ = qtio422016.Copy
- _ = qt422016.AcquireByteBuffer
-)
-
-//line templates/config.qtpl:2
-type ConfigPage struct {
- Body []byte
-}
-
-//line templates/config.qtpl:7
-func (p *ConfigPage) StreamTitle(qw422016 *qt422016.Writer) {
-//line templates/config.qtpl:7
- qw422016.N().S(`Hello`)
-//line templates/config.qtpl:7
-}
-
-//line templates/config.qtpl:7
-func (p *ConfigPage) WriteTitle(qq422016 qtio422016.Writer) {
-//line templates/config.qtpl:7
- qw422016 := qt422016.AcquireWriter(qq422016)
-//line templates/config.qtpl:7
- p.StreamTitle(qw422016)
-//line templates/config.qtpl:7
- qt422016.ReleaseWriter(qw422016)
-//line templates/config.qtpl:7
-}
-
-//line templates/config.qtpl:7
-func (p *ConfigPage) Title() string {
-//line templates/config.qtpl:7
- qb422016 := qt422016.AcquireByteBuffer()
-//line templates/config.qtpl:7
- p.WriteTitle(qb422016)
-//line templates/config.qtpl:7
- qs422016 := string(qb422016.B)
-//line templates/config.qtpl:7
- qt422016.ReleaseByteBuffer(qb422016)
-//line templates/config.qtpl:7
- return qs422016
-//line templates/config.qtpl:7
-}
-
-//line templates/config.qtpl:9
-func (p *ConfigPage) StreamNavbar(qw422016 *qt422016.Writer) {
-//line templates/config.qtpl:9
- StreamNavbar(qw422016, Config)
-//line templates/config.qtpl:9
-}
-
-//line templates/config.qtpl:9
-func (p *ConfigPage) WriteNavbar(qq422016 qtio422016.Writer) {
-//line templates/config.qtpl:9
- qw422016 := qt422016.AcquireWriter(qq422016)
-//line templates/config.qtpl:9
- p.StreamNavbar(qw422016)
-//line templates/config.qtpl:9
- qt422016.ReleaseWriter(qw422016)
-//line templates/config.qtpl:9
-}
-
-//line templates/config.qtpl:9
-func (p *ConfigPage) Navbar() string {
-//line templates/config.qtpl:9
- qb422016 := qt422016.AcquireByteBuffer()
-//line templates/config.qtpl:9
- p.WriteNavbar(qb422016)
-//line templates/config.qtpl:9
- qs422016 := string(qb422016.B)
-//line templates/config.qtpl:9
- qt422016.ReleaseByteBuffer(qb422016)
-//line templates/config.qtpl:9
- return qs422016
-//line templates/config.qtpl:9
-}
-
-//line templates/config.qtpl:11
-func (p *ConfigPage) StreamContent(qw422016 *qt422016.Writer) {
-//line templates/config.qtpl:11
- qw422016.N().S(`
-<p>This is the configuration that is currently loaded</p>
-<div class="code-view">
-`)
-//line templates/config.qtpl:14
- qw422016.N().Z(p.Body)
-//line templates/config.qtpl:14
- qw422016.N().S(`
-</div>
-`)
-//line templates/config.qtpl:16
-}
-
-//line templates/config.qtpl:16
-func (p *ConfigPage) WriteContent(qq422016 qtio422016.Writer) {
-//line templates/config.qtpl:16
- qw422016 := qt422016.AcquireWriter(qq422016)
-//line templates/config.qtpl:16
- p.StreamContent(qw422016)
-//line templates/config.qtpl:16
- qt422016.ReleaseWriter(qw422016)
-//line templates/config.qtpl:16
-}
-
-//line templates/config.qtpl:16
-func (p *ConfigPage) Content() string {
-//line templates/config.qtpl:16
- qb422016 := qt422016.AcquireByteBuffer()
-//line templates/config.qtpl:16
- p.WriteContent(qb422016)
-//line templates/config.qtpl:16
- qs422016 := string(qb422016.B)
-//line templates/config.qtpl:16
- qt422016.ReleaseByteBuffer(qb422016)
-//line templates/config.qtpl:16
- return qs422016
-//line templates/config.qtpl:16
-}
-
-//line templates/config.qtpl:18
-func (p *ConfigPage) StreamScript(qw422016 *qt422016.Writer) {
-//line templates/config.qtpl:18
- qw422016.N().S(`
-`)
-//line templates/config.qtpl:19
-}
-
-//line templates/config.qtpl:19
-func (p *ConfigPage) WriteScript(qq422016 qtio422016.Writer) {
-//line templates/config.qtpl:19
- qw422016 := qt422016.AcquireWriter(qq422016)
-//line templates/config.qtpl:19
- p.StreamScript(qw422016)
-//line templates/config.qtpl:19
- qt422016.ReleaseWriter(qw422016)
-//line templates/config.qtpl:19
-}
-
-//line templates/config.qtpl:19
-func (p *ConfigPage) Script() string {
-//line templates/config.qtpl:19
- qb422016 := qt422016.AcquireByteBuffer()
-//line templates/config.qtpl:19
- p.WriteScript(qb422016)
-//line templates/config.qtpl:19
- qs422016 := string(qb422016.B)
-//line templates/config.qtpl:19
- qt422016.ReleaseByteBuffer(qb422016)
-//line templates/config.qtpl:19
- return qs422016
-//line templates/config.qtpl:19
-}
diff --git a/templates/navbar.qtpl b/templates/navbar.qtpl
index 68b1fd8..8614181 100644
--- a/templates/navbar.qtpl
+++ b/templates/navbar.qtpl
@@ -33,7 +33,6 @@ Add this back once needed
Add this back if needed
<a class="nav-link{%= insertIfEqual(s, About) %}" href="/about/">about</a>
{% endcomment %}
- <a class="nav-link{%= insertIfEqual(s, Config) %}" href="/config">config</a>
</div>
</nav>
{% endfunc %}
diff --git a/templates/navbar.qtpl.go b/templates/navbar.qtpl.go
index 5a27bb4..ca3a320 100644
--- a/templates/navbar.qtpl.go
+++ b/templates/navbar.qtpl.go
@@ -92,157 +92,152 @@ func StreamNavbar(qw422016 *qt422016.Writer, s Selection) {
`)
//line templates/navbar.qtpl:35
qw422016.N().S(`
- <a class="nav-link`)
-//line templates/navbar.qtpl:36
- streaminsertIfEqual(qw422016, s, Config)
-//line templates/navbar.qtpl:36
- qw422016.N().S(`" href="/config">config</a>
</div>
</nav>
`)
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
}
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
func WriteNavbar(qq422016 qtio422016.Writer, s Selection) {
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
qw422016 := qt422016.AcquireWriter(qq422016)
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
StreamNavbar(qw422016, s)
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
qt422016.ReleaseWriter(qw422016)
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
}
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
func Navbar(s Selection) string {
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
qb422016 := qt422016.AcquireByteBuffer()
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
WriteNavbar(qb422016, s)
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
qs422016 := string(qb422016.B)
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
qt422016.ReleaseByteBuffer(qb422016)
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
return qs422016
-//line templates/navbar.qtpl:39
+//line templates/navbar.qtpl:38
}
-//line templates/navbar.qtpl:41
+//line templates/navbar.qtpl:40
func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelection) {
-//line templates/navbar.qtpl:41
+//line templates/navbar.qtpl:40
qw422016.N().S(`
<div class="row">
<h3 id="name">`)
-//line templates/navbar.qtpl:43
+//line templates/navbar.qtpl:42
qw422016.E().S(name)
-//line templates/navbar.qtpl:43
+//line templates/navbar.qtpl:42
qw422016.N().S(` `)
-//line templates/navbar.qtpl:43
+//line templates/navbar.qtpl:42
if ref != "" && (s == Log || s == Tree) {
-//line templates/navbar.qtpl:43
+//line templates/navbar.qtpl:42
qw422016.N().S(`@ `)
-//line templates/navbar.qtpl:43
+//line templates/navbar.qtpl:42
qw422016.E().S(ref)
-//line templates/navbar.qtpl:43
+//line templates/navbar.qtpl:42
}
-//line templates/navbar.qtpl:43
+//line templates/navbar.qtpl:42
qw422016.N().S(`</h3>
</div>
<div class="row">
<ul class="nav">
<li class="nav-item">
<a class="nav-link`)
-//line templates/navbar.qtpl:48
+//line templates/navbar.qtpl:47
streaminsertIfEqual(qw422016, s, Readme)
-//line templates/navbar.qtpl:48
+//line templates/navbar.qtpl:47
qw422016.N().S(`" aria-current="page" href="/`)
-//line templates/navbar.qtpl:48
+//line templates/navbar.qtpl:47
qw422016.E().S(name)
-//line templates/navbar.qtpl:48
+//line templates/navbar.qtpl:47
qw422016.N().S(`/about/">about</a>
</li>
<li class="nav-item">
<a class="nav-link`)
-//line templates/navbar.qtpl:51
+//line templates/navbar.qtpl:50
streaminsertIfEqual(qw422016, s, Summary)
-//line templates/navbar.qtpl:51
+//line templates/navbar.qtpl:50
qw422016.N().S(`" aria-current="page" href="/`)
-//line templates/navbar.qtpl:51
+//line templates/navbar.qtpl:50
qw422016.E().S(name)
-//line templates/navbar.qtpl:51
+//line templates/navbar.qtpl:50
qw422016.N().S(`/">summary</a>
</li>
<li class="nav-item">
<a class="nav-link`)
-//line templates/navbar.qtpl:54
+//line templates/navbar.qtpl:53
streaminsertIfEqual(qw422016, s, Refs)
-//line templates/navbar.qtpl:54
+//line templates/navbar.qtpl:53
qw422016.N().S(`" aria-current="page" href="/`)
-//line templates/navbar.qtpl:54
+//line templates/navbar.qtpl:53
qw422016.E().S(name)
-//line templates/navbar.qtpl:54
+//line templates/navbar.qtpl:53
qw422016.N().S(`/refs">refs</a>
</li>
<li class="nav-item">
<a class="nav-link`)
-//line templates/navbar.qtpl:57
+//line templates/navbar.qtpl:56
streaminsertIfEqual(qw422016, s, Log)
-//line templates/navbar.qtpl:57
+//line templates/navbar.qtpl:56
qw422016.N().S(`" aria-current="page" href="/`)
-//line templates/navbar.qtpl:57
+//line templates/navbar.qtpl:56
qw422016.E().S(name)
-//line templates/navbar.qtpl:57
+//line templates/navbar.qtpl:56
qw422016.N().S(`/log/`)
-//line templates/navbar.qtpl:57
+//line templates/navbar.qtpl:56
qw422016.E().S(ref)
-//line templates/navbar.qtpl:57
+//line templates/navbar.qtpl:56
qw422016.N().S(`/">log</a>
</li>
<li class="nav-item">
<a class="nav-link`)
-//line templates/navbar.qtpl:60
+//line templates/navbar.qtpl:59
streaminsertIfEqual(qw422016, s, Tree)
-//line templates/navbar.qtpl:60
+//line templates/navbar.qtpl:59
qw422016.N().S(`" aria-current="page" href="/`)
-//line templates/navbar.qtpl:60
+//line templates/navbar.qtpl:59
qw422016.E().S(name)
-//line templates/navbar.qtpl:60
+//line templates/navbar.qtpl:59
qw422016.N().S(`/tree/`)
-//line templates/navbar.qtpl:60
+//line templates/navbar.qtpl:59
qw422016.E().S(ref)
-//line templates/navbar.qtpl:60
+//line templates/navbar.qtpl:59
qw422016.N().S(`/">tree</a>
</li>
</ul>
</div>
`)
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
}
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
func WriteGitItemNav(qq422016 qtio422016.Writer, name, ref string, s GitSelection) {
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
qw422016 := qt422016.AcquireWriter(qq422016)
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
StreamGitItemNav(qw422016, name, ref, s)
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
qt422016.ReleaseWriter(qw422016)
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
}
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
func GitItemNav(name, ref string, s GitSelection) string {
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
qb422016 := qt422016.AcquireByteBuffer()
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
WriteGitItemNav(qb422016, name, ref, s)
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
qs422016 := string(qb422016.B)
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
qt422016.ReleaseByteBuffer(qb422016)
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
return qs422016
-//line templates/navbar.qtpl:64
+//line templates/navbar.qtpl:63
}