@iasiv5/dsh-quota-watch 0.0.16 → 0.0.17

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/lib/client.js CHANGED
@@ -166,7 +166,7 @@ var STYLE_TEXT = `
166
166
  .dqw-stale-mark { flex: none; font-size: 9px; line-height: 14px; color: var(--dsw-alias-label-warning, #b46900); cursor: help; }
167
167
  .dqw-errtext { font-size: 10px; line-height: 14px; opacity: .7; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
168
168
  .dqw-rail-trigger { display: none; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dsw-alias-label-primary, inherit); cursor: pointer; transition: background-color .12s, color .12s; }
169
- .dqw-rail-trigger svg { display: block; width: 22px; height: 22px; }
169
+ .dqw-rail-trigger svg { display: block; width: 16px; height: 16px; }
170
170
  .dqw-rail-trigger:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover, rgba(128,128,128,.12)); color: var(--dsw-alias-label-primary, inherit); }
171
171
  .dqw-rail-trigger:active:not(:disabled), .dqw-rail-trigger[aria-expanded="true"] { background: var(--dsw-alias-interactive-bg-active, rgba(128,128,128,.18)); color: var(--dsw-alias-label-primary, inherit); }
172
172
  .dqw-rail-trigger:focus-visible { outline: 2px solid var(--dsw-alias-brand-primary, #5b8def); outline-offset: 2px; }
@@ -252,11 +252,11 @@ function quotaIcon(doc) {
252
252
  const namespace = "http://www.w3.org/2000/svg";
253
253
  const svg = doc.createElementNS(namespace, "svg");
254
254
  svg.setAttribute("viewBox", "0 0 24 24");
255
- svg.setAttribute("width", "22");
256
- svg.setAttribute("height", "22");
255
+ svg.setAttribute("width", "16");
256
+ svg.setAttribute("height", "16");
257
257
  svg.setAttribute("fill", "none");
258
258
  svg.setAttribute("stroke", "currentColor");
259
- svg.setAttribute("stroke-width", "1.7");
259
+ svg.setAttribute("stroke-width", "2");
260
260
  svg.setAttribute("stroke-linecap", "round");
261
261
  svg.setAttribute("stroke-linejoin", "round");
262
262
  svg.setAttribute("aria-hidden", "true");
@@ -264,15 +264,15 @@ function quotaIcon(doc) {
264
264
  const dial = doc.createElementNS(namespace, "circle");
265
265
  dial.setAttribute("cx", "12");
266
266
  dial.setAttribute("cy", "12");
267
- dial.setAttribute("r", "9");
267
+ dial.setAttribute("r", "10");
268
268
  const ticks = doc.createElementNS(namespace, "path");
269
- ticks.setAttribute("d", "M12 2.7v2.1M12 19.2v2.1M2.7 12h2.1M19.2 12h2.1M5.43 5.43l1.49 1.49M17.08 17.08l1.49 1.49M18.57 5.43l-1.49 1.49M6.92 17.08l-1.49 1.49");
269
+ ticks.setAttribute("d", "M12 2.4v1.6M12 20v1.6M2.4 12h1.6M20 12h1.6M5.2 5.2l1.1 1.1M18.8 18.8l-1.1-1.1M18.8 5.2l-1.1 1.1M5.2 18.8l1.1-1.1");
270
270
  const needle = doc.createElementNS(namespace, "path");
271
271
  needle.setAttribute("d", "M12 12l4.5-4");
272
272
  const hub = doc.createElementNS(namespace, "circle");
273
273
  hub.setAttribute("cx", "12");
274
274
  hub.setAttribute("cy", "12");
275
- hub.setAttribute("r", "1.2");
275
+ hub.setAttribute("r", "1.4");
276
276
  hub.setAttribute("fill", "currentColor");
277
277
  hub.setAttribute("stroke", "none");
278
278
  svg.append(dial, ticks, needle, hub);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iasiv5/dsh-quota-watch",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "DSH Web sidebar monitor for GLM Coding Plan quotas and GitHub Copilot credits",
5
5
  "type": "module",
6
6
  "main": "./src/host.mjs",
package/src/client.mjs CHANGED
@@ -88,7 +88,7 @@ const STYLE_TEXT = `
88
88
  .dqw-stale-mark { flex: none; font-size: 9px; line-height: 14px; color: var(--dsw-alias-label-warning, #b46900); cursor: help; }
89
89
  .dqw-errtext { font-size: 10px; line-height: 14px; opacity: .7; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
90
90
  .dqw-rail-trigger { display: none; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dsw-alias-label-primary, inherit); cursor: pointer; transition: background-color .12s, color .12s; }
91
- .dqw-rail-trigger svg { display: block; width: 22px; height: 22px; }
91
+ .dqw-rail-trigger svg { display: block; width: 16px; height: 16px; }
92
92
  .dqw-rail-trigger:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover, rgba(128,128,128,.12)); color: var(--dsw-alias-label-primary, inherit); }
93
93
  .dqw-rail-trigger:active:not(:disabled), .dqw-rail-trigger[aria-expanded="true"] { background: var(--dsw-alias-interactive-bg-active, rgba(128,128,128,.18)); color: var(--dsw-alias-label-primary, inherit); }
94
94
  .dqw-rail-trigger:focus-visible { outline: 2px solid var(--dsw-alias-brand-primary, #5b8def); outline-offset: 2px; }
@@ -181,11 +181,11 @@ function quotaIcon(doc) {
181
181
  const namespace = 'http://www.w3.org/2000/svg'
182
182
  const svg = doc.createElementNS(namespace, 'svg')
183
183
  svg.setAttribute('viewBox', '0 0 24 24')
184
- svg.setAttribute('width', '22')
185
- svg.setAttribute('height', '22')
184
+ svg.setAttribute('width', '16')
185
+ svg.setAttribute('height', '16')
186
186
  svg.setAttribute('fill', 'none')
187
187
  svg.setAttribute('stroke', 'currentColor')
188
- svg.setAttribute('stroke-width', '1.7')
188
+ svg.setAttribute('stroke-width', '2')
189
189
  svg.setAttribute('stroke-linecap', 'round')
190
190
  svg.setAttribute('stroke-linejoin', 'round')
191
191
  svg.setAttribute('aria-hidden', 'true')
@@ -193,15 +193,15 @@ function quotaIcon(doc) {
193
193
  const dial = doc.createElementNS(namespace, 'circle')
194
194
  dial.setAttribute('cx', '12')
195
195
  dial.setAttribute('cy', '12')
196
- dial.setAttribute('r', '9')
196
+ dial.setAttribute('r', '10')
197
197
  const ticks = doc.createElementNS(namespace, 'path')
198
- ticks.setAttribute('d', 'M12 2.7v2.1M12 19.2v2.1M2.7 12h2.1M19.2 12h2.1M5.43 5.43l1.49 1.49M17.08 17.08l1.49 1.49M18.57 5.43l-1.49 1.49M6.92 17.08l-1.49 1.49')
198
+ ticks.setAttribute('d', 'M12 2.4v1.6M12 20v1.6M2.4 12h1.6M20 12h1.6M5.2 5.2l1.1 1.1M18.8 18.8l-1.1-1.1M18.8 5.2l-1.1 1.1M5.2 18.8l1.1-1.1')
199
199
  const needle = doc.createElementNS(namespace, 'path')
200
200
  needle.setAttribute('d', 'M12 12l4.5-4')
201
201
  const hub = doc.createElementNS(namespace, 'circle')
202
202
  hub.setAttribute('cx', '12')
203
203
  hub.setAttribute('cy', '12')
204
- hub.setAttribute('r', '1.2')
204
+ hub.setAttribute('r', '1.4')
205
205
  hub.setAttribute('fill', 'currentColor')
206
206
  hub.setAttribute('stroke', 'none')
207
207
  svg.append(dial, ticks, needle, hub)