fix: 'common' version
This commit is contained in:
+6
-5
@@ -234,7 +234,7 @@ async function handlePrimaryButtonClick() {
|
||||
|
||||
let [file, buffer] = await filereader().catch(e => alert('(ERROR) ' + new String(e ?? 'Unable to read data')));
|
||||
writable = await handle.createWritable().catch(() => null);
|
||||
major = await Rpc2.invoke('ready', file.name, new Uint8Array(buffer).toBase64());
|
||||
major = await Rpc2.invoke('loads', { params: [file.name, new Uint8Array(buffer).toBase64()] });
|
||||
$.get('#fileLabel').innerText = file.name;
|
||||
$.get('#fromLabel').innerText = parameters.account;
|
||||
$.all('.columns').forEach(e => e.dispatchEvent(new Event('change')));
|
||||
@@ -268,7 +268,7 @@ async function handlePrimaryButtonClick() {
|
||||
options.start += $('#offset').valueAsNumber * $('#chunksize').valueAsNumber;
|
||||
}
|
||||
|
||||
await Rpc2.invoke('begin', options, parameters);
|
||||
await Rpc2.invoke('begin', { params: [options, parameters] });
|
||||
break;
|
||||
case 'RUNNING':
|
||||
await Rpc2.invoke('pause');
|
||||
@@ -323,7 +323,7 @@ $.set('#nospam', 'change', (e) => {
|
||||
});
|
||||
|
||||
$.set('#region', 'change', async (e) => {
|
||||
unique = await Rpc2.invoke('unique', e.target.value).catch(() => new Object());
|
||||
unique = await Rpc2.invoke('unique', { params: [e.target.value] }).catch(() => new Object());
|
||||
$('#groupby').dispatchEvent(new Event('change'));
|
||||
});
|
||||
|
||||
@@ -402,7 +402,7 @@ for (let element of $.all('.params')) {
|
||||
}
|
||||
|
||||
while (await new Promise(o => setTimeout(o, 1000, true))) {
|
||||
let history = await Rpc2.invoke('history').catch(() => []);
|
||||
let history = await Rpc2.invoke('logs').catch(() => []);
|
||||
let logs = Array.from(history);
|
||||
|
||||
for (let record of logs) {
|
||||
@@ -433,7 +433,7 @@ while (await new Promise(o => setTimeout(o, 1000, true))) {
|
||||
case 'CLOSING':
|
||||
if (writable) try {
|
||||
$.all('#actions > button').forEach(e => e.disabled = true);
|
||||
let data = await filereader().then(([_, b]) => Rpc2.invoke('merge', new Uint8Array(b).toBase64()));
|
||||
let data = await filereader().then(([_, b]) => Rpc2.invoke('merge', { params: [new Uint8Array(b).toBase64()] }));
|
||||
await writable.write(Uint8Array.fromBase64(data));
|
||||
await writable.close();
|
||||
await Rpc2.notify('close');
|
||||
@@ -464,6 +464,7 @@ while (await new Promise(o => setTimeout(o, 1000, true))) {
|
||||
let rate = done / uptime;
|
||||
let remaining = rate > 0 ? Math.floor((total - count) / rate) : 0;
|
||||
$('#remainingLabel').innerText = remaining > 0 ? `${Temporal.Duration.from({ seconds: remaining }).round({ largestUnit: 'hours' }).toLocaleString('en')} (${(rate * 60).toFixed(2)}/min)` : '';
|
||||
await Rpc2.notify('acknowledge');
|
||||
break;
|
||||
case 'STANDBY':
|
||||
$('#send > span.text').innerText = 'Resume';
|
||||
|
||||
Reference in New Issue
Block a user