From 6e5062488fc3ecbf37c11e7d111bfe6ea3b5284d Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 5 Oct 2024 16:53:15 +0200 Subject: 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. --- templates/config.qtpl | 19 ------ templates/config.qtpl.go | 165 ----------------------------------------------- templates/navbar.qtpl | 1 - templates/navbar.qtpl.go | 123 +++++++++++++++++------------------ 4 files changed, 59 insertions(+), 249 deletions(-) delete mode 100644 templates/config.qtpl delete mode 100644 templates/config.qtpl.go (limited to 'templates') 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() %} -

This is the configuration that is currently loaded

-
-{%z= p.Body %} -
-{% 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(` -

This is the configuration that is currently loaded

-
-`) -//line templates/config.qtpl:14 - qw422016.N().Z(p.Body) -//line templates/config.qtpl:14 - qw422016.N().S(` -
-`) -//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 about {% endcomment %} - config {% 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(` - config `) -//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(`

`) -//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(`

`) -//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 } -- cgit v1.2.3