Skip to content

Commit 73ffd1f

Browse files
authored
Merge pull request #6733 from Neradoc/nera-web-workflow-3
Use emojis as icons in the Web Workflow
2 parents 741a5c2 + 9f4e8ef commit 73ffd1f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

supervisor/shared/web_workflow/static/directory.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</head>
1010
<body>
1111
<h1><a href="/"><img src="/favicon.ico"/></a>&nbsp;<span id="path"></span></h1>
12-
<div id="usbwarning" style="display: none;">🛈 USB is using the storage. Only allowing reads. See <a href="https://learn.adafruit.com/circuitpython-essentials/circuitpython-storage">the CircuitPython Essentials: Storage guide</a> for details.</div>
12+
<div id="usbwarning" style="display: none;">ℹ️ USB is using the storage. Only allowing reads. See <a href="https://learn.adafruit.com/circuitpython-essentials/circuitpython-storage">the CircuitPython Essentials: Storage guide</a> for details.</div>
1313
<template id="row"><tr><td></td><td></td><td><a></a></td><td></td><td><button class="delete">🗑️</button></td><td><a class="edit_link" href="">Edit</a></td></tr></template>
1414
<table>
1515
<thead><tr><th>Type</th><th>Size</th><th>Path</th><th>Modified</th><th></th></tr></thead>
@@ -18,5 +18,5 @@ <h1><a href="/"><img src="/favicon.ico"/></a>&nbsp;<span id="path"></span></h1>
1818
<hr>
1919
<input type="file" id="files" multiple><button type="submit" id="upload">Upload</button>
2020
<hr>
21-
+🗀&nbsp;<input type="text" id="name"><button type="submit" id="mkdir">Create Directory</button>
21+
+📁&nbsp;<input type="text" id="name"><button type="submit" id="mkdir">Create Directory</button>
2222
</body></html>

supervisor/shared/web_workflow/static/directory.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function refresh_list() {
4646
if (window.location.path != "/fs/") {
4747
var clone = template.content.cloneNode(true);
4848
var td = clone.querySelectorAll("td");
49-
td[0].textContent = "🗀";
49+
td[0].textContent = "📁";
5050
var path = clone.querySelector("a");
5151
let parent = new URL("..", "file://" + current_path);
5252
path.href = "#" + parent.pathname;
@@ -60,7 +60,7 @@ async function refresh_list() {
6060
// Clone the new row and insert it into the table
6161
var clone = template.content.cloneNode(true);
6262
var td = clone.querySelectorAll("td");
63-
var icon = "⬇";
63+
var icon = "⬇";
6464
var file_path = current_path + f.name;
6565
let api_url = new URL("/fs" + file_path, url_base);
6666
let edit_url = "/edit/#" + file_path;
@@ -72,12 +72,12 @@ async function refresh_list() {
7272
}
7373

7474
if (f.directory) {
75-
icon = "🗀";
75+
icon = "📁";
7676
} else if(f.name.endsWith(".txt") ||
7777
f.name.endsWith(".py") ||
7878
f.name.endsWith(".js") ||
7979
f.name.endsWith(".json")) {
80-
icon = "🖹";
80+
icon = "📄";
8181
} else if (f.name.endsWith(".html")) {
8282
icon = "🌐";
8383
}

0 commit comments

Comments
 (0)