pinokiod 7.5.46 → 7.5.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "7.5.46",
3
+ "version": "7.5.50",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -122,30 +122,7 @@ body.frozen {
122
122
  <header class='grabbable'>
123
123
  <h1>
124
124
  <a class='home' href="/home"><img class='icon' src="/pinokio-black.png"></a>
125
- <button class='btn2' id='minimize-header' data-tippy-content="fullscreen" title='fullscreen'>
126
- <div><i class="fa-solid fa-expand"></i></div>
127
- </button>
128
- <a class='btn2 pinokio-explore-nav-button' href="/home?mode=explore" data-pinokio-explore-nav="true" data-tippy-content="Explore" title="Explore" aria-label="Explore">
129
- <div><i class="fa-solid fa-globe" aria-hidden="true"></i></div>
130
- </a>
131
- <button class='btn2' id='back' data-tippy-content="back"><div><i class="fa-solid fa-chevron-left"></i></div></button>
132
- <button class='btn2' id='forward' data-tippy-content="forward"><div><i class="fa-solid fa-chevron-right"></i></div></button>
133
- <button class='btn2' id='refresh-page' data-tippy-content="refresh"><div><i class="fa-solid fa-rotate-right"></i></div></button>
134
- <button class='btn2' id='screenshot' data-tippy-content="screen capture"><i class="fa-solid fa-camera"></i></button>
135
- <button class='btn2' id='inspector' data-tippy-content="X-ray mode"><i class="fa-solid fa-eye"></i></button>
136
125
  <div class='flexible'></div>
137
- <a class='btn2' href="/columns" data-tippy-content="split into 2 columns">
138
- <div><i class="fa-solid fa-table-columns"></i></div>
139
- </a>
140
- <a class='btn2' href="/rows" data-tippy-content="split into 2 rows">
141
- <div><i class="fa-solid fa-table-columns fa-rotate-270"></i></div>
142
- </a>
143
- <button class='btn2' id='new-window' data-tippy-content="open a new window" title='open a new window' data-agent="<%=agent%>">
144
- <div><i class="fa-solid fa-plus"></i></div>
145
- </button>
146
- <button class='btn2 hidden' id='close-window' data-tippy-content='close this section'>
147
- <div><i class="fa-solid fa-xmark"></i></div>
148
- </button>
149
126
  </h1>
150
127
  </header>
151
128
  <% if (requirements_pending) { %>
@@ -647,6 +647,22 @@ test("app navbar stays on one line when app identity and Home Server controls ar
647
647
  assert.match(appView, /@media only screen and \(max-width: 1180px\)\s*\{[\s\S]*\.resource-chip--vram[\s\S]*display:\s*none !important;/)
648
648
  })
649
649
 
650
+ test("download page header does not show browser chrome controls", async () => {
651
+ const downloadView = await fs.readFile(path.resolve(root, "server/views/download.ejs"), "utf8")
652
+
653
+ assert.match(downloadView, /<header class='grabbable'>[\s\S]*<a class='home' href="\/home">[\s\S]*<div class='flexible'><\/div>[\s\S]*<\/header>/)
654
+ assert.doesNotMatch(downloadView, /id=['"]minimize-header['"]/)
655
+ assert.doesNotMatch(downloadView, /pinokio-explore-nav-button/)
656
+ assert.doesNotMatch(downloadView, /id=['"]back['"]/)
657
+ assert.doesNotMatch(downloadView, /id=['"]forward['"]/)
658
+ assert.doesNotMatch(downloadView, /id=['"]refresh-page['"]/)
659
+ assert.doesNotMatch(downloadView, /id=['"]screenshot['"]/)
660
+ assert.doesNotMatch(downloadView, /id=['"]inspector['"]/)
661
+ assert.doesNotMatch(downloadView, /href="\/columns"/)
662
+ assert.doesNotMatch(downloadView, /href="\/rows"/)
663
+ assert.doesNotMatch(downloadView, /id=['"]new-window['"]/)
664
+ })
665
+
650
666
  test("home server dropdown exposes router-discovered non-Pinokio routes separately", () => {
651
667
  const server = Object.create(Server.prototype)
652
668
  const routes = server.collectHomeServerRoutes({