From c616b2da7f905c38abc53fcf571df47fd5e463ec Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Wed, 24 Sep 2025 19:40:59 +0200 Subject: [PATCH] Remove analytics --- res/template/403.html | 1 - res/template/404.html | 1 - res/template/451.html | 1 - res/template/500.html | 1 - res/template/appearance.html | 1 - res/template/apps.html | 1 - res/template/email_confirm.html | 1 - res/template/filesystem.html | 1 - res/template/fragments/analytics.html | 1 - res/template/fragments/form.html | 108 ------------------- res/template/fragments/markdown_wrapper.html | 1 - res/template/home.html | 1 - res/template/login.html | 1 - res/template/speedtest.html | 1 - res/template/status.html | 1 - res/template/user_home.html | 1 - res/template/user_logout.html | 1 - svelte/src/home_page/HomePage.svelte | 1 - web.go | 2 +- 19 files changed, 1 insertion(+), 126 deletions(-) delete mode 100644 res/template/fragments/analytics.html delete mode 100644 res/template/fragments/form.html diff --git a/res/template/403.html b/res/template/403.html index c1a4a70..14a366a 100644 --- a/res/template/403.html +++ b/res/template/403.html @@ -17,7 +17,6 @@ {{template "page_bottom" .}} - {{template "analytics"}} {{end}} diff --git a/res/template/404.html b/res/template/404.html index 8995fa4..a93162c 100644 --- a/res/template/404.html +++ b/res/template/404.html @@ -21,7 +21,6 @@ {{template "page_bottom" .}} - {{template "analytics"}} {{end}} diff --git a/res/template/451.html b/res/template/451.html index 462cc77..e90e68b 100644 --- a/res/template/451.html +++ b/res/template/451.html @@ -18,7 +18,6 @@ {{template "page_bottom" .}} - {{template "analytics"}} {{end}} diff --git a/res/template/500.html b/res/template/500.html index 5425f32..9b5b3a4 100644 --- a/res/template/500.html +++ b/res/template/500.html @@ -27,7 +27,6 @@ {{template "page_bottom" .}} - {{template "analytics"}} {{end}} diff --git a/res/template/appearance.html b/res/template/appearance.html index d9a4865..9b74a2e 100644 --- a/res/template/appearance.html +++ b/res/template/appearance.html @@ -147,7 +147,6 @@ } {{template "page_bottom" .}} - {{template "analytics"}} {{end}} diff --git a/res/template/apps.html b/res/template/apps.html index 203bbcc..8e84fe1 100644 --- a/res/template/apps.html +++ b/res/template/apps.html @@ -140,7 +140,6 @@ {{template "page_bottom" .}} - {{template "analytics"}} {{ end }} diff --git a/res/template/email_confirm.html b/res/template/email_confirm.html index e61f1a1..5211cb6 100644 --- a/res/template/email_confirm.html +++ b/res/template/email_confirm.html @@ -45,7 +45,6 @@ {{end}} {{template "page_bottom" .}} - {{template "analytics"}} {{end}} diff --git a/res/template/filesystem.html b/res/template/filesystem.html index d73f99b..1059e40 100644 --- a/res/template/filesystem.html +++ b/res/template/filesystem.html @@ -29,7 +29,6 @@ - {{template "analytics"}} diff --git a/res/template/fragments/analytics.html b/res/template/fragments/analytics.html deleted file mode 100644 index 3d97a6c..0000000 --- a/res/template/fragments/analytics.html +++ /dev/null @@ -1 +0,0 @@ -{{define "analytics"}}{{end}} diff --git a/res/template/fragments/form.html b/res/template/fragments/form.html deleted file mode 100644 index e195ffc..0000000 --- a/res/template/fragments/form.html +++ /dev/null @@ -1,108 +0,0 @@ -{{define "form"}} - {{.PreFormHTML}} -
- {{if eq .Submitted true}} - {{if eq .SubmitSuccess true}} -
- {{index .SubmitMessages 0}} -
- {{else}} -
-
    - {{range $msg := .SubmitMessages}} -
  • {{$msg}}
  • - {{end}} -
-
- {{end}} - {{end}} - - {{if ne .Username ""}} - - - {{end}} -
- {{range $field := .Fields}} - - {{if eq $field.Type "text"}} - - {{else if eq $field.Type "number"}} - - {{else if eq $field.Type "username"}} - - {{else if eq $field.Type "email"}} - - {{else if eq $field.Type "current-password"}} - - {{else if eq $field.Type "new-password"}} - - {{else if eq $field.Type "textarea"}} - - {{else if eq $field.Type "captcha"}} - -
- {{else if eq $field.Type "radio"}} - {{ range $val := $field.RadioValues}} - -
- {{ end }} - {{else if eq $field.Type "description"}} - {{$field.DefaultValue}} - {{end}} - {{if ne $field.Description ""}} -
- {{$field.Description}} -
- {{end}} - {{end}} - {{if eq .SubmitRed true}} - - {{else}} - - {{end}} -
-
- {{.PostFormHTML}} -{{end}} -{{define "form_page"}} - - - - {{template "meta_tags" .Title}} - - - - -
- {{template "page_top" .}} -
-

{{.Form.Title}}

-
- -
-
-
- {{template "form" .Form}} -
-
-
- {{template "page_bottom" .}} -
- - {{template "analytics"}} - - -{{end}} diff --git a/res/template/fragments/markdown_wrapper.html b/res/template/fragments/markdown_wrapper.html index 9691a8b..0b5a9ac 100644 --- a/res/template/fragments/markdown_wrapper.html +++ b/res/template/fragments/markdown_wrapper.html @@ -15,7 +15,6 @@ {{template "page_bottom" .}} - {{template "analytics"}} {{end}} diff --git a/res/template/home.html b/res/template/home.html index 2f800f7..4a3c532 100644 --- a/res/template/home.html +++ b/res/template/home.html @@ -14,7 +14,6 @@ {{template "menu" .}}
- {{template "analytics"}} {{end}} diff --git a/res/template/login.html b/res/template/login.html index 3815268..6ee494a 100644 --- a/res/template/login.html +++ b/res/template/login.html @@ -14,7 +14,6 @@ {{template "menu" .}}
- {{template "analytics"}} {{end}} diff --git a/res/template/speedtest.html b/res/template/speedtest.html index fb443d7..6dc5e27 100644 --- a/res/template/speedtest.html +++ b/res/template/speedtest.html @@ -14,7 +14,6 @@ {{template "menu" .}}
- {{template "analytics"}} {{end}} diff --git a/res/template/status.html b/res/template/status.html index a908bda..75dd65a 100644 --- a/res/template/status.html +++ b/res/template/status.html @@ -19,7 +19,6 @@ > {{template "page_bottom" .}} - {{template "analytics"}} {{ end }} diff --git a/res/template/user_home.html b/res/template/user_home.html index ebc9f3b..130704d 100644 --- a/res/template/user_home.html +++ b/res/template/user_home.html @@ -14,7 +14,6 @@ {{template "menu" .}}
- {{template "analytics"}} {{end}} diff --git a/res/template/user_logout.html b/res/template/user_logout.html index 4142d05..163f64c 100644 --- a/res/template/user_logout.html +++ b/res/template/user_logout.html @@ -35,7 +35,6 @@ {{template "page_bottom" .}} - {{template "analytics"}} {{end}} diff --git a/svelte/src/home_page/HomePage.svelte b/svelte/src/home_page/HomePage.svelte index ecf9b19..c9ea525 100644 --- a/svelte/src/home_page/HomePage.svelte +++ b/svelte/src/home_page/HomePage.svelte @@ -5,7 +5,6 @@ import { drop_target } from "lib/DropTarget"; import AddressReputation from "./AddressReputation.svelte"; import FeatureTable from "./FeatureTable.svelte"; import GetStarted from "./GetStarted.svelte"; -import UploadWidget from "./UploadWidget.svelte"; let upload_widget diff --git a/web.go b/web.go index 7a30b45..966c1f9 100644 --- a/web.go +++ b/web.go @@ -46,7 +46,7 @@ func Init(r *httprouter.Router, prefix string, setLogLevel bool) { var conf webcontroller.Config var _, err = config.New( DefaultConfig, - "", + "/etc/fnx", "fnx_web.toml", &conf, true,