@goodandready/dsh-subscriptions 0.4.13 → 0.4.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/lib/client.js +5 -5
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -49,7 +49,7 @@ window.__ModuleLoader__.load({
|
|
|
49
49
|
'.dsub-chipActiveWarn{color:var(--dsw-alias-state-warning-primary);border-color:currentColor}' +
|
|
50
50
|
'.dsub-chipActiveDanger{color:var(--dsw-alias-state-error-primary);border-color:currentColor}' +
|
|
51
51
|
'.dsub-chipActiveOk{color:var(--dsw-alias-state-success-primary);border-color:currentColor}' +
|
|
52
|
-
'.dsub-chipActiveBar{height:
|
|
52
|
+
'.dsub-chipActiveBar{height:3px;width:24px;background:var(--dsw-alias-bg-layer-1);border-radius:2px;flex:none;overflow:hidden}' +
|
|
53
53
|
'.dsub-chipActiveFill{height:100%;border-radius:2px;background:currentColor}' +
|
|
54
54
|
|
|
55
55
|
'.dsub-link{background:none;border:none;color:var(--dsw-alias-label-secondary);cursor:pointer;font-size:12px;padding:0}' +
|
|
@@ -680,15 +680,15 @@ function PluginCard(props) {
|
|
|
680
680
|
const u = maxPct >= 0 ? maxPct : null
|
|
681
681
|
let acls = 'dsub-chipActive'
|
|
682
682
|
if (u != null) acls += u >= 100 ? ' dsub-chipActiveDanger' : (u >= 80 ? ' dsub-chipActiveDanger' : (u >= 50 ? ' dsub-chipActiveWarn' : ' dsub-chipActiveOk'))
|
|
683
|
-
const
|
|
684
|
-
const idx = a.index != null ? (' #' + a.index) : ''
|
|
683
|
+
const idx = a.index != null ? ('#' + a.index) : ''
|
|
685
684
|
const plan = a.plan ? (' ' + a.plan) : ''
|
|
686
|
-
|
|
685
|
+
// #77: без provider-префикса
|
|
686
|
+
const label = idx + plan
|
|
687
687
|
// windows: "5h 12% 7d 8%"
|
|
688
688
|
const winLabels = wins.map((w) => (w.label || w.id) + ' ' + Math.round(w.usedPercent) + '%').join(' ')
|
|
689
689
|
return React.createElement('span', {
|
|
690
690
|
className: acls,
|
|
691
|
-
title: a.model ? (
|
|
691
|
+
title: a.model ? (idx + ' · ' + a.model) : idx,
|
|
692
692
|
},
|
|
693
693
|
React.createElement('span', { className: 'dsub-chipDot' }),
|
|
694
694
|
label,
|
package/package.json
CHANGED