From a6ef74702d1eda31967eb240351aac65877d9fe9 Mon Sep 17 00:00:00 2001 From: ange Date: Thu, 16 May 2024 01:29:20 +0200 Subject: [PATCH] feat: filter css admin buttons --- compose.yaml | 7 ++++--- config/custom.css | 7 +++++++ config/custom.js | 0 config/settings.yaml | 4 +++- config/widgets.yaml | 1 + manifests/bin/deploy.sh | 1 - manifests/common/app.yaml | 3 --- 7 files changed, 15 insertions(+), 8 deletions(-) delete mode 100644 config/custom.js diff --git a/compose.yaml b/compose.yaml index 6536a73..2e38e09 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,9 +1,10 @@ --- services: - element: + homepage: image: "$IMAGEAPP" restart: unless-stopped ports: - - "8080:80" + - "8080:3000" volumes: - - ./config.json:/app/config.json:ro + - ./config/:/app/config/ + - /var/run/docker.sock:/var/run/docker.sock:ro diff --git a/config/custom.css b/config/custom.css index e69de29..832ecac 100644 --- a/config/custom.css +++ b/config/custom.css @@ -0,0 +1,7 @@ +#revalidate { + display: none; +} + +div.k8s-status { + display: none; +} diff --git a/config/custom.js b/config/custom.js deleted file mode 100644 index e69de29..0000000 diff --git a/config/settings.yaml b/config/settings.yaml index c679d6e..37d0c07 100644 --- a/config/settings.yaml +++ b/config/settings.yaml @@ -2,12 +2,14 @@ # https://gethomepage.dev/latest/configs/settings instanceName: "$INSTANCE_NAME" -headerStyle: clean target: _self +hideErrors: true layout: Kubernetes: header: false + style: row + columns: 4 quicklaunch: searchDescriptions: true diff --git a/config/widgets.yaml b/config/widgets.yaml index 8ef8da5..7dca547 100644 --- a/config/widgets.yaml +++ b/config/widgets.yaml @@ -5,4 +5,5 @@ provider: custom url: https://searx.gmoker.com/search?q= suggestionUrl: https://searx.gmoker.com/autocompleter?q= + showSearchSuggestions: true target: _self diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index 6e2f5cd..091dd3e 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -33,7 +33,6 @@ function kgcmkey() { kcreatecm homepage \ --from-file=bookmarks.yaml=<(envsubst "$(env | xargs printf '$%s ')" < config/bookmarks.yaml) \ --from-file=custom.css=<(envsubst "$(env | xargs printf '$%s ')" < config/custom.css) \ - --from-file=custom.js=<(envsubst "$(env | xargs printf '$%s ')" < config/custom.js) \ --from-file=kubernetes.yaml=<(envsubst "$(env | xargs printf '$%s ')" < config/kubernetes.yaml) \ --from-file=services.yaml=<(envsubst "$(env | xargs printf '$%s ')" < config/services.yaml) \ --from-file=settings.yaml=<(envsubst "$(env | xargs printf '$%s ')" < config/settings.yaml) \ diff --git a/manifests/common/app.yaml b/manifests/common/app.yaml index ae858c7..e7bb7cc 100644 --- a/manifests/common/app.yaml +++ b/manifests/common/app.yaml @@ -72,9 +72,6 @@ spec: - name: config mountPath: /app/config/custom.css subPath: custom.css - - name: config - mountPath: /app/config/custom.js - subPath: custom.js - name: config mountPath: /app/config/kubernetes.yaml subPath: kubernetes.yaml