pinokiod 7.3.14 → 7.3.15

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.3.14",
3
+ "version": "7.3.15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1321,12 +1321,26 @@
1321
1321
  authorizeUrl.searchParams.set('wait', '1')
1322
1322
  this.setCreateDraftBusy(true)
1323
1323
  this.setStatus('Opening Community authorization…')
1324
- const popup = window.open(authorizeUrl.toString(), 'pinokio-draft-import', 'width=720,height=760')
1324
+ const screenInfo = window.screen || {}
1325
+ const width = Math.max(720, Math.floor(screenInfo.availWidth || window.outerWidth || 1200))
1326
+ const height = Math.max(640, Math.floor(screenInfo.availHeight || window.outerHeight || 820))
1327
+ const left = Number.isFinite(screenInfo.availLeft) ? screenInfo.availLeft : 0
1328
+ const top = Number.isFinite(screenInfo.availTop) ? screenInfo.availTop : 0
1329
+ const popupFeatures = `popup=yes,width=${width},height=${height},left=${left},top=${top}`
1330
+ const popup = window.open(authorizeUrl.toString(), 'pinokio-draft-import', popupFeatures)
1325
1331
  if (!popup) {
1326
1332
  this.setCreateDraftBusy(false)
1327
1333
  this.setStatus('Community authorization window was blocked.', true)
1328
1334
  return
1329
1335
  }
1336
+ try {
1337
+ if (typeof popup.moveTo === 'function') {
1338
+ popup.moveTo(left, top)
1339
+ }
1340
+ if (typeof popup.resizeTo === 'function') {
1341
+ popup.resizeTo(width, height)
1342
+ }
1343
+ } catch (_) {}
1330
1344
  const registryOrigin = this.registryOrigin(this.registryBase)
1331
1345
  const registryMessageOrigins = this.registryMessageOrigins()
1332
1346
  let popupOrigin = registryOrigin
@@ -5028,8 +5028,8 @@ body.dark .logs-icon-button:focus-visible {
5028
5028
  min-height: 0;
5029
5029
  display: flex;
5030
5030
  flex-direction: column;
5031
- gap: 12px;
5032
- padding: 14px 16px 16px;
5031
+ gap: 0;
5032
+ padding: 0;
5033
5033
  overflow: hidden;
5034
5034
  background: transparent;
5035
5035
  }
@@ -5047,24 +5047,30 @@ body.dark .logs-icon-button:focus-visible {
5047
5047
  min-height: 0;
5048
5048
  display: grid;
5049
5049
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
5050
- grid-template-rows: minmax(0, 1fr) auto;
5050
+ grid-template-rows: minmax(0, 1fr);
5051
5051
  gap: 12px;
5052
+ padding: 14px 16px 12px;
5053
+ overflow: hidden;
5052
5054
  }
5053
5055
  .logs-community-footer {
5054
- grid-column: 1 / -1;
5056
+ flex: 0 0 auto;
5055
5057
  min-width: 0;
5056
5058
  display: grid;
5057
- grid-template-columns: minmax(210px, 0.36fr) minmax(260px, 1fr) auto;
5059
+ grid-template-columns: minmax(360px, 0.32fr) minmax(320px, 1fr) auto;
5058
5060
  align-items: center;
5059
- gap: 12px;
5060
- min-height: 56px;
5061
- padding: 10px 0 0;
5061
+ gap: 16px;
5062
+ min-height: 68px;
5063
+ padding: 14px 20px;
5062
5064
  border: 0;
5063
- border-top: 1px solid var(--logs-border);
5065
+ border-top: 1px solid rgba(186, 133, 28, 0.2);
5064
5066
  border-radius: 0;
5065
- background: transparent;
5067
+ background: rgba(186, 133, 28, 0.07);
5066
5068
  box-shadow: none;
5067
5069
  }
5070
+ body.dark .logs-community-footer {
5071
+ border-top-color: rgba(245, 189, 75, 0.22);
5072
+ background: rgba(245, 189, 75, 0.075);
5073
+ }
5068
5074
  .logs-community-copy {
5069
5075
  min-width: 0;
5070
5076
  }
@@ -5072,53 +5078,80 @@ body.dark .logs-icon-button:focus-visible {
5072
5078
  display: inline-flex;
5073
5079
  align-items: center;
5074
5080
  gap: 8px;
5075
- color: var(--logs-text);
5081
+ color: #9a6508;
5076
5082
  font-size: 13px;
5077
5083
  line-height: 1.2;
5078
- font-weight: 760;
5084
+ font-weight: 800;
5079
5085
  }
5080
5086
  .logs-community-heading i {
5081
- color: inherit;
5087
+ color: currentColor;
5082
5088
  font-size: 13px;
5083
5089
  }
5090
+ body.dark .logs-community-heading {
5091
+ color: #e1b261;
5092
+ }
5084
5093
  .logs-community-subtitle {
5085
- margin-top: 4px;
5094
+ margin-top: 3px;
5086
5095
  color: var(--logs-muted);
5087
- font-size: 11px;
5088
- line-height: 1.35;
5089
- font-weight: 560;
5096
+ font-size: 12px;
5097
+ line-height: 1.25;
5098
+ font-weight: 500;
5090
5099
  }
5091
5100
  .logs-community-title-field {
5092
5101
  min-width: 0;
5093
5102
  display: grid;
5094
- grid-template-columns: auto minmax(0, 1fr) auto;
5103
+ grid-template-columns: minmax(0, 1fr) auto;
5095
5104
  align-items: center;
5096
5105
  gap: 8px;
5097
5106
  }
5098
- .logs-community-title-label {
5107
+ .logs-community-title-control {
5099
5108
  min-width: 0;
5109
+ width: 100%;
5110
+ height: 34px;
5111
+ display: flex;
5112
+ align-items: center;
5113
+ border: 1px solid var(--logs-border-strong);
5114
+ border-radius: 7px;
5115
+ padding: 0;
5116
+ background: rgba(255, 255, 255, 0.78);
5117
+ overflow: hidden;
5118
+ }
5119
+ body.dark .logs-community-title-control {
5120
+ background: rgba(255, 255, 255, 0.04);
5121
+ }
5122
+ .logs-community-title-prefix {
5123
+ flex: 0 0 auto;
5124
+ align-self: stretch;
5125
+ display: inline-flex;
5126
+ align-items: center;
5127
+ padding: 0 11px;
5128
+ border-right: 1px solid var(--logs-border);
5100
5129
  color: var(--logs-muted);
5101
5130
  font-size: 10px;
5102
- line-height: 1.2;
5103
- font-weight: 800;
5131
+ line-height: 1;
5132
+ font-weight: 760;
5104
5133
  text-transform: uppercase;
5105
5134
  white-space: nowrap;
5135
+ background: rgba(15, 23, 42, 0.025);
5136
+ }
5137
+ body.dark .logs-community-title-prefix {
5138
+ background: rgba(255, 255, 255, 0.035);
5106
5139
  }
5107
5140
  .logs-community-title-input {
5108
5141
  min-width: 0;
5109
5142
  width: 100%;
5110
- height: 34px;
5111
- border: 1px solid var(--logs-border-strong);
5112
- border-radius: 7px;
5143
+ height: 100%;
5144
+ border: 0;
5145
+ border-radius: 0;
5113
5146
  padding: 0 11px;
5114
5147
  background: transparent;
5115
5148
  color: var(--logs-text);
5116
5149
  font-size: 12px;
5117
- font-weight: 700;
5150
+ font-weight: 650;
5118
5151
  line-height: 34px;
5119
5152
  outline: none;
5120
5153
  }
5121
- .logs-community-title-input:focus {
5154
+ .logs-community-title-control:focus-within {
5122
5155
  border-color: var(--logs-border-strong);
5123
5156
  box-shadow: 0 0 0 2px var(--logs-soft-hover);
5124
5157
  }
@@ -5142,7 +5175,7 @@ body.dark .logs-icon-button:focus-visible {
5142
5175
  }
5143
5176
  .logs-community-submit {
5144
5177
  min-width: 154px;
5145
- min-height: 38px;
5178
+ min-height: 34px;
5146
5179
  padding: 0 16px;
5147
5180
  font-size: 13px;
5148
5181
  font-weight: 850;
@@ -5233,9 +5266,31 @@ body.dark .logs-icon-button:focus-visible {
5233
5266
  font-weight: 800;
5234
5267
  white-space: nowrap;
5235
5268
  }
5236
- .logs-review-filter-button {
5269
+ .logs-primary-button.logs-review-filter-button {
5237
5270
  width: 100%;
5238
5271
  margin-top: 10px;
5272
+ min-height: 34px;
5273
+ border-color: rgba(186, 133, 28, 0.28);
5274
+ background: rgba(186, 133, 28, 0.08);
5275
+ color: #7a5413;
5276
+ font-weight: 760;
5277
+ box-shadow: none;
5278
+ }
5279
+ .logs-primary-button.logs-review-filter-button:hover,
5280
+ .logs-primary-button.logs-review-filter-button:focus-visible {
5281
+ border-color: rgba(186, 133, 28, 0.36);
5282
+ background: rgba(186, 133, 28, 0.12);
5283
+ outline: none;
5284
+ }
5285
+ body.dark .logs-primary-button.logs-review-filter-button {
5286
+ border-color: rgba(245, 189, 75, 0.22);
5287
+ background: rgba(245, 189, 75, 0.08);
5288
+ color: #e1b261;
5289
+ }
5290
+ body.dark .logs-primary-button.logs-review-filter-button:hover,
5291
+ body.dark .logs-primary-button.logs-review-filter-button:focus-visible {
5292
+ border-color: rgba(245, 189, 75, 0.32);
5293
+ background: rgba(245, 189, 75, 0.12);
5239
5294
  }
5240
5295
  .logs-review-meta {
5241
5296
  display: grid;
@@ -6140,23 +6195,32 @@ body.dark .logs-resizer:hover .logs-resizer-toggle {
6140
6195
 
6141
6196
  @media (max-width: 980px) {
6142
6197
  .logs-community-footer {
6143
- grid-template-columns: minmax(180px, 0.34fr) minmax(220px, 1fr) auto;
6144
- gap: 10px;
6198
+ grid-template-columns: minmax(0, 1fr) auto;
6199
+ gap: 10px 12px;
6200
+ align-items: end;
6201
+ }
6202
+ .logs-community-copy {
6203
+ grid-column: 1 / -1;
6204
+ }
6205
+ .logs-community-title-field {
6206
+ grid-column: 1;
6145
6207
  }
6146
6208
  .logs-community-submit {
6147
- grid-column: 3;
6209
+ grid-column: 2;
6148
6210
  height: 38px;
6149
6211
  }
6150
6212
  }
6151
6213
  @media (max-width: 720px) {
6152
6214
  .logs-latest-workspace {
6153
6215
  grid-template-columns: 1fr;
6216
+ padding: 12px;
6154
6217
  }
6155
6218
  .logs-redaction-pane {
6156
6219
  max-height: 260px;
6157
6220
  }
6158
6221
  .logs-community-footer {
6159
6222
  grid-template-columns: minmax(0, 1fr);
6223
+ padding: 12px;
6160
6224
  }
6161
6225
  .logs-community-copy,
6162
6226
  .logs-community-title-field,
@@ -6166,6 +6230,10 @@ body.dark .logs-resizer:hover .logs-resizer-toggle {
6166
6230
  .logs-community-title-field {
6167
6231
  grid-template-columns: minmax(0, 1fr);
6168
6232
  }
6233
+ .logs-community-title-note {
6234
+ grid-column: 1;
6235
+ max-width: none;
6236
+ }
6169
6237
  .logs-community-submit {
6170
6238
  grid-row: auto;
6171
6239
  width: 100%;
@@ -7819,10 +7819,10 @@ body.dark .pinokio-custom-terminal-header {
7819
7819
  </div>
7820
7820
  </div>
7821
7821
  <div class='mobile-drawer-actions' aria-label="App actions">
7822
- <button type='button' class='btn header-item mobile-nav-logs' data-mobile-proxy="#logs-toggle" data-mobile-panel="logs" data-mobile-close-menu="true" aria-pressed="false" aria-label="Logs">
7822
+ <button type='button' class='btn header-item mobile-nav-logs' data-mobile-proxy="#logs-toggle" data-mobile-panel="logs" data-mobile-close-menu="true" aria-pressed="false" aria-label="Report Issue">
7823
7823
  <div class='tab'>
7824
- <i class="fa-solid fa-laptop-code menu-action-leading-icon"></i>
7825
- <div class='display'>Logs</div>
7824
+ <i class="fa-solid fa-circle-exclamation menu-action-leading-icon"></i>
7825
+ <div class='display'>Report Issue</div>
7826
7826
  <div class='flexible'></div>
7827
7827
  </div>
7828
7828
  </button>
@@ -7856,10 +7856,10 @@ body.dark .pinokio-custom-terminal-header {
7856
7856
  <% if (type === 'browse') { %>
7857
7857
  <%- include('./partials/fs_status') %>
7858
7858
  <% } %>
7859
- <button type='button' id='logs-toggle' class="btn header-item" data-tippy-content="logs" aria-expanded="false" aria-controls="app-logs-drawer">
7859
+ <button type='button' id='logs-toggle' class="btn header-item" data-tippy-content="Report issue with logs" aria-expanded="false" aria-controls="app-logs-drawer">
7860
7860
  <div class='tab'>
7861
- <i class="fa-solid fa-laptop-code menu-action-leading-icon"></i>
7862
- <div class='display'>Logs</div>
7861
+ <i class="fa-solid fa-circle-exclamation menu-action-leading-icon"></i>
7862
+ <div class='display'>Report Issue</div>
7863
7863
  <div class='flexible'></div>
7864
7864
  <span class='logs-new-badge hidden' id='logs-new-badge'>New</span>
7865
7865
  </div>
@@ -10661,7 +10661,7 @@ const rerenderMenuSection = (container, html) => {
10661
10661
  }
10662
10662
  if (mobileLogsButton) {
10663
10663
  mobileLogsButton.classList.toggle("has-new", show)
10664
- mobileLogsButton.setAttribute("aria-label", show ? "Logs, new issue" : "Logs")
10664
+ mobileLogsButton.setAttribute("aria-label", show ? "Report Issue, new report available" : "Report Issue")
10665
10665
  }
10666
10666
  try {
10667
10667
  if (show) {
@@ -127,19 +127,21 @@
127
127
  </section>
128
128
  </div>
129
129
  </aside>
130
- <footer class="logs-community-footer" aria-label="Ask Community">
131
- <div class="logs-community-copy">
132
- <div class="logs-community-heading"><i class="fa-solid fa-comments" aria-hidden="true"></i><span>Ask Community</span></div>
133
- <div class="logs-community-subtitle">Opens a draft question on pinokio.co with this report attached.</div>
134
- </div>
135
- <div class="logs-community-title-field">
136
- <label class="logs-community-title-label" for="logs-draft-title">Title</label>
137
- <input class="logs-community-title-input" id="logs-draft-title" type="text" maxlength="120" autocomplete="off" spellcheck="true" placeholder="Issue title" disabled>
138
- <span class="logs-community-title-note" id="logs-draft-title-note" aria-live="polite"></span>
139
- </div>
140
- <button type="button" class="logs-primary-button logs-community-submit" id="logs-create-draft" disabled><i class="fa-solid fa-paper-plane"></i><span>Ask Community</span></button>
141
- </footer>
142
130
  </div>
131
+ <footer class="logs-community-footer" aria-label="Ask Community">
132
+ <div class="logs-community-copy">
133
+ <div class="logs-community-heading"><i class="fa-solid fa-comments" aria-hidden="true"></i><span>Ask Community</span></div>
134
+ <div class="logs-community-subtitle">Opens a draft question on pinokio.co with this report attached.</div>
135
+ </div>
136
+ <div class="logs-community-title-field">
137
+ <label class="logs-community-title-control" for="logs-draft-title">
138
+ <span class="logs-community-title-prefix">Title</span>
139
+ <input class="logs-community-title-input" id="logs-draft-title" type="text" maxlength="120" autocomplete="off" spellcheck="true" placeholder="Issue title" disabled>
140
+ </label>
141
+ <span class="logs-community-title-note" id="logs-draft-title-note" aria-live="polite"></span>
142
+ </div>
143
+ <button type="button" class="logs-primary-button logs-community-submit" id="logs-create-draft" disabled><i class="fa-solid fa-paper-plane"></i><span>Ask Community</span></button>
144
+ </footer>
143
145
  </section>
144
146
 
145
147
  <section class="logs-raw-view" id="logs-raw-panel" data-logs-panel="raw" role="tabpanel">