querysub 0.266.0 → 0.268.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
|
@@ -429,9 +429,8 @@ async function edgeNodeFunction(config: {
|
|
|
429
429
|
let host = edgeNodeConfig.host;
|
|
430
430
|
if (!host.endsWith("/")) host += "/";
|
|
431
431
|
for (let entryPath of edgeNodeConfig.entryPaths) {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
432
|
+
// IMPORTANT! DO NOT REMOVE THE STARTING "/" FROM ENTRYPATH!
|
|
433
|
+
// The server needs it, because paths need 1 "/" to begin with, so two ("//") means require with "/", instead of requiring relative to the current directory!
|
|
435
434
|
await require("https://" + host + entryPath);
|
|
436
435
|
}
|
|
437
436
|
}
|
|
@@ -10,7 +10,7 @@ import { showModal } from "../5-diagnostics/Modal";
|
|
|
10
10
|
import { qreact } from "../4-dom/qreact";
|
|
11
11
|
import { liveHashOverrideURL } from "./edgeBootstrap";
|
|
12
12
|
import { css } from "typesafecss";
|
|
13
|
-
import { formatTime } from "socket-function/src/formatting/format";
|
|
13
|
+
import { formatNiceDateTime, formatTime } from "socket-function/src/formatting/format";
|
|
14
14
|
import { delay } from "socket-function/src/batching";
|
|
15
15
|
import { atomicObjectRead } from "../2-proxy/PathValueProxyWatcher";
|
|
16
16
|
|
|
@@ -109,8 +109,8 @@ function onLiveHashChange(liveHash: string, refreshThresholdTime: number) {
|
|
|
109
109
|
<div className={css.vbox(10).maxWidth(250)}>
|
|
110
110
|
<h3 className={css.margin(0)}>Server Update Available</h3>
|
|
111
111
|
<div>The server has been updated. Please refresh the page to ensure you don't experience incompatibility issues.</div>
|
|
112
|
-
{i !== notifyIntervals.length - 2 && <div>This notification will be shown again
|
|
113
|
-
{i === notifyIntervals.length - 2 && <div>The page will automatically refresh
|
|
112
|
+
{i !== notifyIntervals.length - 2 && <div>This notification will be shown again at {formatNiceDateTime(Date.now() + waitDuration)}</div>}
|
|
113
|
+
{i === notifyIntervals.length - 2 && <div>The page will automatically refresh at {formatNiceDateTime(Date.now() + waitDuration)}</div>}
|
|
114
114
|
</div>
|
|
115
115
|
<div className={css.hbox(10).justifyContent("flex-end")}>
|
|
116
116
|
<button
|
|
@@ -133,7 +133,10 @@ type ServiceConfig = ${serviceConfigType}
|
|
|
133
133
|
onData: async (data: string) => {
|
|
134
134
|
Querysub.localCommit(() => {
|
|
135
135
|
let fullData = this.state.watchingOutputs[outputKey].data + data;
|
|
136
|
-
|
|
136
|
+
// Don't trim every time, otherwise the relative scroll position changes by too much
|
|
137
|
+
if (fullData.length > 1_000_000) {
|
|
138
|
+
fullData = fullData.slice(-100_000);
|
|
139
|
+
}
|
|
137
140
|
this.state.watchingOutputs[outputKey].data = fullData;
|
|
138
141
|
});
|
|
139
142
|
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
7) Broken loading of CYOA
|
|
2
|
-
1) Deploy (database functions)
|
|
3
|
-
2) deploy the CYOA service
|
|
4
|
-
3) Refresh the main page
|
|
5
|
-
RESULT: It tries to access the specific hash, but it wasn't loaded serverside, so permissions are refused
|
|
6
|
-
|
|
7
1
|
8) Fix deploy user notification issue, where the refresh button doesn't work?
|
|
8
2
|
- For application level updates
|
|
9
3
|
- Just an application commit, then deploy the service, then the refresh button should show up, and work
|