dsh-ustc-quota 1.1.49 → 1.1.51
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/client.js +14 -6
- package/index.js +1 -1
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -11,7 +11,7 @@ window.__ModuleLoader__.load({
|
|
|
11
11
|
const UPDATE_ENDPOINT = 'plugins/dsh-ustc-quota/update';
|
|
12
12
|
const UPDATE_APPLY_ENDPOINT = 'plugins/dsh-ustc-quota/update/apply';
|
|
13
13
|
const WINDOW_IDS = ['3h', '12h', '24h'];
|
|
14
|
-
const CLIENT_VERSION = '1.1.
|
|
14
|
+
const CLIENT_VERSION = '1.1.51';
|
|
15
15
|
const UPDATE_INTERVAL_MS = 24 * 60 * 60 * 1000;
|
|
16
16
|
const CLIENT_VERSION_KEY = `${NS}:client-version`;
|
|
17
17
|
const CLIENT_RELOAD_KEY = `${NS}:client-reload`;
|
|
@@ -513,6 +513,14 @@ window.__ModuleLoader__.load({
|
|
|
513
513
|
color: 'var(--dsw-alias-label-primary)',
|
|
514
514
|
whiteSpace: 'nowrap',
|
|
515
515
|
},
|
|
516
|
+
legendResetInline: {
|
|
517
|
+
minWidth: 0,
|
|
518
|
+
fontSize: 8,
|
|
519
|
+
color: 'var(--dsw-alias-label-secondary)',
|
|
520
|
+
whiteSpace: 'nowrap',
|
|
521
|
+
overflow: 'hidden',
|
|
522
|
+
textOverflow: 'ellipsis',
|
|
523
|
+
},
|
|
516
524
|
legendMeta: {
|
|
517
525
|
fontSize: 8,
|
|
518
526
|
lineHeight: 1.2,
|
|
@@ -609,7 +617,7 @@ window.__ModuleLoader__.load({
|
|
|
609
617
|
valueWide: {
|
|
610
618
|
flex: '0 0 auto',
|
|
611
619
|
width: 'var(--ustc-value-w, 44px)',
|
|
612
|
-
textAlign: '
|
|
620
|
+
textAlign: 'left',
|
|
613
621
|
fontSize: 10,
|
|
614
622
|
fontWeight: 650,
|
|
615
623
|
color: 'var(--dsw-alias-label-primary)',
|
|
@@ -1190,7 +1198,7 @@ window.__ModuleLoader__.load({
|
|
|
1190
1198
|
const DOCK_GAP = 6;
|
|
1191
1199
|
const DOCK_MIN_WIDTH = 200;
|
|
1192
1200
|
const DOCK_FLOOR_WIDTH = 140;
|
|
1193
|
-
const DOCK_MAX_WIDTH =
|
|
1201
|
+
const DOCK_MAX_WIDTH = 480;
|
|
1194
1202
|
const DOCK_TRANSCRIPT_FLOOR = 360;
|
|
1195
1203
|
|
|
1196
1204
|
|
|
@@ -1748,7 +1756,7 @@ window.__ModuleLoader__.load({
|
|
|
1748
1756
|
: label;
|
|
1749
1757
|
return h('div', { style: wideLayout ? STYLE.legendCellWide : STYLE.legendCell, title },
|
|
1750
1758
|
h('div', { style: STYLE.legendName }, label),
|
|
1751
|
-
h('div', { style: STYLE.legendReset }, resetText)
|
|
1759
|
+
h('div', { style: wideLayout ? STYLE.legendResetInline : STYLE.legendReset }, resetText)
|
|
1752
1760
|
);
|
|
1753
1761
|
}
|
|
1754
1762
|
|
|
@@ -1911,8 +1919,8 @@ window.__ModuleLoader__.load({
|
|
|
1911
1919
|
if (hasStaleWindow) valueChars += 2;
|
|
1912
1920
|
const tableStyle = {
|
|
1913
1921
|
...STYLE.table,
|
|
1914
|
-
'--ustc-key-col': `${keyColumnWidth}px`,
|
|
1915
|
-
'--ustc-gap': wideLayout ? '
|
|
1922
|
+
'--ustc-key-col': `${wideLayout ? Math.min(keyColumnWidth, 32) : keyColumnWidth}px`,
|
|
1923
|
+
'--ustc-gap': wideLayout ? '8px' : '4px',
|
|
1916
1924
|
'--ustc-value-w': `${Math.min(12, valueChars + 0.5)}ch`,
|
|
1917
1925
|
};
|
|
1918
1926
|
const versionTitle = updateInfo && updateInfo.updateAvailable
|
package/index.js
CHANGED
|
@@ -22,7 +22,7 @@ const ROUTE_PATH = '/plugins/dsh-ustc-quota/snapshot';
|
|
|
22
22
|
const UPDATE_PATH = '/plugins/dsh-ustc-quota/update';
|
|
23
23
|
const UPDATE_APPLY_PATH = '/plugins/dsh-ustc-quota/update/apply';
|
|
24
24
|
const UPDATE_TOKEN_TTL_MS = 30 * 60 * 1000;
|
|
25
|
-
const PLUGIN_VERSION = '1.1.
|
|
25
|
+
const PLUGIN_VERSION = '1.1.51';
|
|
26
26
|
const KEY_INFO_PATH = 'key/info';
|
|
27
27
|
const USER_INFO_PATH = 'user/info';
|
|
28
28
|
const DISCOVERY_TTL_MS = 30000;
|
package/package.json
CHANGED