From 3d3468e47fd02b7458012f1295fd71db73e7b956 Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Wed, 28 Dec 2022 11:34:17 +0100 Subject: [PATCH] refactor: Switching to lucide icons Signed-off-by: Vincent Boutour --- README.md | 2 +- cmd/fibr/templates/files.html | 16 ++--- cmd/fibr/templates/search.html | 2 +- cmd/fibr/templates/story.html | 4 +- cmd/fibr/templates/svg.html | 91 ++++++++++++++-------------- cmd/fibr/templates/webhook-list.html | 2 +- 6 files changed, 60 insertions(+), 57 deletions(-) diff --git a/README.md b/README.md index 774f57fb..3b54f5f7 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Web File Browser and Manager. [![codecov](https://codecov.io/gh/ViBiOh/fibr/branch/main/graph/badge.svg)](https://codecov.io/gh/ViBiOh/fibr) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ViBiOh_fibr&metric=alert_status)](https://sonarcloud.io/dashboard?id=ViBiOh_fibr) -Thanks to [FontAwesome](https://fontawesome.com) for providing awesome svg. +Thanks to [FontAwesome](https://fontawesome.com) and [Lucide](https://lucide.dev) for providing awesome svg icons. I do it mostly for myself, but if you want to support me, you can star this project to give more visibility or sponsor my work (it pays server hosting, tooling, etc.). diff --git a/cmd/fibr/templates/files.html b/cmd/fibr/templates/files.html index 58284c13..3c1b8662 100644 --- a/cmd/fibr/templates/files.html +++ b/cmd/fibr/templates/files.html @@ -5,10 +5,10 @@ {{ $root := . }} - + {{ if .Request.CanEdit }} - + @@ -18,7 +18,7 @@ {{ end }} {{ if .Request.CanShare }} - + {{ template "share-directory" . }} {{ template "share-list" . }} @@ -159,7 +159,7 @@ List - Grid + Grid {{ if .HasStory }} @@ -172,16 +172,16 @@ {{ if .Request.CanEdit }} - Upload + Upload - Create folder + Create folder {{ end }} {{ if .Request.CanShare }} - Share + Share {{ end }} @@ -229,7 +229,7 @@ {{ if $root.Request.CanShare }} - Share {{ .Name }} + Share {{ .Name }} {{ end }} diff --git a/cmd/fibr/templates/search.html b/cmd/fibr/templates/search.html index 01ed8cab..fa4f8867 100644 --- a/cmd/fibr/templates/search.html +++ b/cmd/fibr/templates/search.html @@ -61,7 +61,7 @@ List - Grid + Grid diff --git a/cmd/fibr/templates/story.html b/cmd/fibr/templates/story.html index 8862fbbd..1ae484d6 100644 --- a/cmd/fibr/templates/story.html +++ b/cmd/fibr/templates/story.html @@ -13,7 +13,7 @@ {{ if not .Request.Share.Story }} - + {{ end }} @@ -144,7 +144,7 @@ List - Grid + Grid Image story diff --git a/cmd/fibr/templates/svg.html b/cmd/fibr/templates/svg.html index d2ecef98..4e87de47 100644 --- a/cmd/fibr/templates/svg.html +++ b/cmd/fibr/templates/svg.html @@ -1,114 +1,109 @@ {{ define "svg-check" }} - + {{ end }} {{ define "svg-arrow-left" }} - + {{ end }} {{ define "svg-arrow-right" }} - + {{ end }} -{{ define "svg-cloud-upload-alt" }} - +{{ define "svg-upload" }} + {{ end }} {{ define "svg-download" }} - + {{ end }} {{ define "svg-edit" }} - + {{ end }} {{ define "svg-file-archive" }} - + {{ end }} {{ define "svg-file-audio" }} - + {{ end }} {{ define "svg-file-code" }} - + {{ end }} {{ define "svg-file-excel" }} - + {{ end }} {{ define "svg-file-image" }} - + {{ end }} {{ define "svg-file-pdf" }} - + {{ end }} {{ define "svg-file-video" }} - + {{ end }} {{ define "svg-file-word" }} - + {{ end }} {{ define "svg-file" }} - + {{ end }} {{ define "svg-folder" }} - -{{ end }} - - -{{ define "svg-folder-solid" }} - + {{ end }} {{ define "svg-list" }} - + {{ end }} {{ define "svg-pencil-alt" }} - + {{ end }} -{{ define "svg-share-alt-square" }} - +{{ define "svg-share" }} + {{ end }} -{{ define "svg-th" }} - +{{ define "svg-grid" }} + {{ end }} {{ define "svg-times" }} - + {{ end }} {{ define "svg-play" }} - + {{ end }} {{ define "svg-lock" }} - + {{ end }} {{ define "svg-hourglass" }} - + {{ end }} {{ define "svg-info" }} - + {{ end }} {{ define "svg-webhook" }} - + {{ end }} {{ define "svg-map" }} - + {{ end }} {{ define "svg-discord" }} @@ -116,7 +111,7 @@ {{ end }} {{ define "svg-slack" }} - + {{ end }} {{ define "svg-telegram" }} @@ -124,33 +119,41 @@ {{ end }} {{ define "svg-search" }} - + {{ end }} {{ define "svg-image" }} - + {{ end }} {{ define "svg-location" }} - + {{ end }} {{ define "svg-camera" }} - + {{ end }} {{ define "svg-link" }} - + {{ end }} {{ define "svg-calendar" }} - + {{ end }} {{ define "svg-comment" }} - + {{ end }} {{ define "svg-rss" }} - + +{{ end }} + +{{ define "svg-folder-plus" }} + +{{ end }} + +{{ define "svg-folder-search" }} + {{ end }} diff --git a/cmd/fibr/templates/webhook-list.html b/cmd/fibr/templates/webhook-list.html index 5a2f5e83..4601e852 100644 --- a/cmd/fibr/templates/webhook-list.html +++ b/cmd/fibr/templates/webhook-list.html @@ -37,7 +37,7 @@

{{ else }} {{ range .Types }} {{ if eq .String "upload" }} - upload icon + upload icon {{ end }} {{ if eq .String "create" }} folder icon