Legend page served as a view with the map's versioned importmap (shared partial): as a static page it imported icons.js and mdi.mjs unversioned and a browser with an older copy showed no symbols; it also stays light (color-scheme) since auto-darkening washed out its swatches, no autofocus, a clearer filter and a symbol count
This commit is contained in:
1 parent
1bb0e1137a
commit
3e5fada66a
5 files changed
+83
-52
No files matched your search
@@ -305,6 +305,14 @@ module Maptool
|
||||
erb :index, locals: { logged_in: logged_in?, user: session[:user], revision: REVISION }
|
||||
end
|
||||
|
||||
# Map legend + symbol browser. A view, not a static public/ page, so it
|
||||
# gets the same versioned importmap as the map: as a static page it
|
||||
# imported /js/icons.js and /vendor/mdi/mdi.mjs unversioned, and a
|
||||
# browser still holding an older copy of either rendered no symbols.
|
||||
get "/symbols.html" do
|
||||
erb :symbols, layout: false
|
||||
end
|
||||
|
||||
# A share to the installed app normally never reaches the server: the
|
||||
# service worker (public/sw.js) takes the POST, parks the files and
|
||||
# opens the app. Only lands here if no worker is running yet — back to
|
||||
|
||||
Reference in new issue
Block a user