diff --git a/format.sh b/format.sh index b0b797b..595289f 100755 --- a/format.sh +++ b/format.sh @@ -14,3 +14,4 @@ RUST_LOG=error taplo fmt Cargo.toml htmlshell/Cargo.toml # Format HTML, CSS, and JS npx --yes prettier --list-different --write "ui/**/*.{html,css,js,json}" +npx --yes prettier --list-different --write "resources/*.{html,css,js,json}" diff --git a/resources/directory-listing.html b/resources/directory-listing.html index 232d4b6..67ce3c8 100644 --- a/resources/directory-listing.html +++ b/resources/directory-listing.html @@ -1,103 +1,388 @@ - - - Index of - - - - -

Index of

- -
-
- Name - Size - Last Modified -
-
- - + + + + + Index + + + + + + +
+
+

Local directory

+

Index

+

+

+
+ + + +
+ + Name + Size + Modified +
+ + + + + + +
+ + + + diff --git a/resources/neterror.html b/resources/neterror.html index 8af6cbb..8ff78b3 100644 --- a/resources/neterror.html +++ b/resources/neterror.html @@ -1,8 +1,315 @@ - + + - Error loading page + + + Can't reach this page + + -

Could not load the requested page: ${reason}

+ + +
+

Off the trail

+

We can't reach this page

+

The page couldn't be loaded.

+

Most detours are temporary. Try the path again in a moment, or head back to where you were.

+
+ Technical detail + ${reason} +
+
+ + +
+
+ + + diff --git a/ui/system/desktop/palette.js b/ui/system/desktop/palette.js index eef2a8f..89d7002 100644 --- a/ui/system/desktop/palette.js +++ b/ui/system/desktop/palette.js @@ -319,7 +319,10 @@ function buildResults(query) { } // Fall-through: if the query looks navigable, offer to navigate. - if (q && (q.includes(".") || q.startsWith("http"))) { + if ( + q && + (q.includes(".") || q.startsWith("http") || q.startsWith("file://")) + ) { groups.unshift({ group: "Navigate", items: [