querysub 0.648.0 → 0.650.0
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": "querysub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.650.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"node-forge": "https://github.com/sliftist/forge#e618181b469b07bdc70b968b0391beb8ef5fecd6",
|
|
80
80
|
"pako": "^2.1.0",
|
|
81
81
|
"peggy": "^5.0.6",
|
|
82
|
-
"sliftutils": "^1.7.
|
|
83
|
-
"socket-function": "^1.2.
|
|
82
|
+
"sliftutils": "^1.7.124",
|
|
83
|
+
"socket-function": "^1.2.34",
|
|
84
84
|
"terser": "^5.31.0",
|
|
85
85
|
"typenode": "^6.6.1",
|
|
86
86
|
"typesafecss": "^0.32.0",
|
|
@@ -55,6 +55,13 @@ export function getRoutingOverridePart(part: string): {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
export function getRoutingOverrideOriginalKey(part: string): string | undefined {
|
|
59
|
+
if (!part.startsWith(keySpecialIdentifier)) return undefined;
|
|
60
|
+
let parts = part.split("!");
|
|
61
|
+
if (parts.length < 4) return undefined;
|
|
62
|
+
return parts.slice(3).join("!");
|
|
63
|
+
}
|
|
64
|
+
|
|
58
65
|
export const hasPrefixHash = cacheLimited(1000 * 10,
|
|
59
66
|
(config: { spec: AuthoritySpec, prefixHash: string }) => {
|
|
60
67
|
let { spec, prefixHash } = config;
|
|
@@ -265,7 +265,7 @@ export class DeployPage extends qreact.Component {
|
|
|
265
265
|
|
|
266
266
|
let liveGitRef = mostCommon(liveFunctions.map(x => x.gitRef)) || "";
|
|
267
267
|
let pendingGitRef = gitInfo?.latestRef || "";
|
|
268
|
-
let anyUncommitted = !!gitInfo?.uncommitted.length;
|
|
268
|
+
//let anyUncommitted = !!gitInfo?.uncommitted.length;
|
|
269
269
|
|
|
270
270
|
return <div className={css.vbox(40).marginTop(20)}>
|
|
271
271
|
<div className={css.hbox(10)}>
|
|
@@ -274,12 +274,12 @@ export class DeployPage extends qreact.Component {
|
|
|
274
274
|
<button
|
|
275
275
|
disabled={controller.isAnyLoading()}
|
|
276
276
|
className={buttonStyle.alignSelf("stretch").center.hsl(240, 70, 50).colorhsl(0, 0, 100)
|
|
277
|
-
|
|
277
|
+
//+ (anyUncommitted && css.opacity(0.5))
|
|
278
278
|
+ (this.state.isDeploying && css.opacity(0.7))
|
|
279
279
|
}
|
|
280
|
-
title={
|
|
280
|
+
title={this.state.isDeploying && "Deploying..." || ""}
|
|
281
281
|
onClick={async () => {
|
|
282
|
-
if (
|
|
282
|
+
if (this.state.isDeploying) return;
|
|
283
283
|
|
|
284
284
|
this.state.isDeploying = true;
|
|
285
285
|
this.state.deployStartTime = Date.now();
|
|
@@ -27,7 +27,7 @@ export function getTimeRange(): { startTime: number; endTime: number; searchFrom
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export class TimeRangeSelector extends qreact.Component {
|
|
30
|
+
export class TimeRangeSelector extends qreact.Component<{ dark?: boolean }> {
|
|
31
31
|
render() {
|
|
32
32
|
const timeRange = getTimeRange();
|
|
33
33
|
|
|
@@ -51,8 +51,12 @@ export class TimeRangeSelector extends qreact.Component {
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
let now = Querysub.nowDelayed(timeInMinute);
|
|
54
|
+
let containerCss = css.vbox(12).pad2(16).bord2(200, 20, 80).hsl(200, 10, 98);
|
|
55
|
+
if (this.props.dark) {
|
|
56
|
+
containerCss = css.vbox(12).pad2(16).bord2(200, 20, 30).hsl(200, 10, 12);
|
|
57
|
+
}
|
|
54
58
|
return (
|
|
55
|
-
<div className={
|
|
59
|
+
<div className={containerCss}>
|
|
56
60
|
<div className={css.hbox(12).wrap}>
|
|
57
61
|
<div className={css.hbox(8).wrap.opacity(0.8).width(200)}>
|
|
58
62
|
From {formatTime(now - timeRange.startTime)} AGO to {timeRange.endTime > now ? "now" : `${formatTime(now - timeRange.endTime)} AGO`}
|
|
@@ -86,7 +90,7 @@ export class TimeRangeSelector extends qreact.Component {
|
|
|
86
90
|
}}
|
|
87
91
|
/>
|
|
88
92
|
<Button
|
|
89
|
-
hue={
|
|
93
|
+
hue={210} onClick={() => {
|
|
90
94
|
let now = Date.now();
|
|
91
95
|
startTimeParam.value = now;
|
|
92
96
|
endTimeParam.value = undefined;
|
|
@@ -95,7 +99,7 @@ export class TimeRangeSelector extends qreact.Component {
|
|
|
95
99
|
Set to future data
|
|
96
100
|
</Button>
|
|
97
101
|
<Button
|
|
98
|
-
hue={
|
|
102
|
+
hue={210} onClick={() => {
|
|
99
103
|
startTimeParam.value = now - timeInHour;
|
|
100
104
|
endTimeParam.value = now + timeInHour * 2;
|
|
101
105
|
}}
|
|
@@ -103,7 +107,7 @@ export class TimeRangeSelector extends qreact.Component {
|
|
|
103
107
|
Set to last hour
|
|
104
108
|
</Button>
|
|
105
109
|
<Button
|
|
106
|
-
hue={
|
|
110
|
+
hue={210} onClick={() => {
|
|
107
111
|
startTimeParam.value = now - timeInDay;
|
|
108
112
|
endTimeParam.value = now + timeInHour * 2;
|
|
109
113
|
}}
|
|
@@ -111,7 +115,7 @@ export class TimeRangeSelector extends qreact.Component {
|
|
|
111
115
|
Set to last day
|
|
112
116
|
</Button>
|
|
113
117
|
<Button
|
|
114
|
-
hue={
|
|
118
|
+
hue={210} onClick={() => {
|
|
115
119
|
startTimeParam.value = now - timeInDay * 7;
|
|
116
120
|
endTimeParam.value = now + timeInHour * 2;
|
|
117
121
|
}}
|
|
@@ -119,12 +123,12 @@ export class TimeRangeSelector extends qreact.Component {
|
|
|
119
123
|
Set to last 7 days
|
|
120
124
|
</Button>
|
|
121
125
|
{!!(endTimeParam.value || startTimeParam.value) && <Button
|
|
122
|
-
hue={
|
|
126
|
+
hue={210} onClick={resetToLastDay}
|
|
123
127
|
>
|
|
124
128
|
Reset
|
|
125
129
|
</Button>}
|
|
126
130
|
{(!startTimeParam.value || !endTimeParam.value) && <Button
|
|
127
|
-
hue={
|
|
131
|
+
hue={210}
|
|
128
132
|
onClick={() => {
|
|
129
133
|
startTimeParam.value = timeRange.startTime;
|
|
130
134
|
endTimeParam.value = timeRange.endTime;
|