From 9f4e8efd2e7542033b1476724ff3ea049703f4d9 Mon Sep 17 00:00:00 2001 From: Neradoc Date: Thu, 4 Aug 2022 18:39:21 +0200 Subject: [PATCH] new icons for web workflow with actual emojis --- supervisor/shared/web_workflow/static/directory.html | 4 ++-- supervisor/shared/web_workflow/static/directory.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/supervisor/shared/web_workflow/static/directory.html b/supervisor/shared/web_workflow/static/directory.html index b88e74684b..5551410d73 100644 --- a/supervisor/shared/web_workflow/static/directory.html +++ b/supervisor/shared/web_workflow/static/directory.html @@ -9,7 +9,7 @@

 

- + @@ -18,5 +18,5 @@

- +🗀  + +📁  diff --git a/supervisor/shared/web_workflow/static/directory.js b/supervisor/shared/web_workflow/static/directory.js index 91389343d6..5992e90512 100644 --- a/supervisor/shared/web_workflow/static/directory.js +++ b/supervisor/shared/web_workflow/static/directory.js @@ -46,7 +46,7 @@ async function refresh_list() { if (window.location.path != "/fs/") { var clone = template.content.cloneNode(true); var td = clone.querySelectorAll("td"); - td[0].textContent = "🗀"; + td[0].textContent = "📁"; var path = clone.querySelector("a"); let parent = new URL("..", "file://" + current_path); path.href = "#" + parent.pathname; @@ -60,7 +60,7 @@ async function refresh_list() { // Clone the new row and insert it into the table var clone = template.content.cloneNode(true); var td = clone.querySelectorAll("td"); - var icon = "âŦ‡"; + var icon = "âŦ‡ī¸"; var file_path = current_path + f.name; let api_url = new URL("/fs" + file_path, url_base); let edit_url = "/edit/#" + file_path; @@ -72,12 +72,12 @@ async function refresh_list() { } if (f.directory) { - icon = "🗀"; + icon = "📁"; } else if(f.name.endsWith(".txt") || f.name.endsWith(".py") || f.name.endsWith(".js") || f.name.endsWith(".json")) { - icon = "🖹"; + icon = "📄"; } else if (f.name.endsWith(".html")) { icon = "🌐"; }
TypeSizePathModified