workspace: upgrade to cordis@4.0.0-beta.1, fix #975

This commit is contained in:
undefined committed 2025-04-11 21:21:47 +08:00
1 parent 5d5f6c69d7
commit bf51bd30c7
34 files changed
+87 -88

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ export default new NamedPage('api', async () => {
} as any;
createRoot(document.getElementById('main')!).render(
<GraphiQL
fetcher={(body, opts = {}) => request.post('/api', body, pick(opts, 'headers'))}
fetcher={(body, opts = {}) => request.post(`/d/${UiContext.domain._id}/api`, body, pick(opts, 'headers'))}
defaultQuery={defaultQuery}
variables='{"name": "Hydro"}'
/>,
@@ -43,7 +43,7 @@ const page = new NamedPage('home_messages', () => {
reduxStore = store;
(window as any).store = reduxStore;
ctx.set('messagepad', new MessagePadService(store, WebSocket));
ctx.provide('messagepad', new MessagePadService(store, WebSocket));
const sock = new WebSocket(`${UiContext.ws_prefix}home/messages-conn`);
sock.onmessage = (message) => {
@@ -1,6 +1,5 @@
import { browserSupportsWebAuthn, platformAuthenticatorIsAvailable, startRegistration } from '@simplewebauthn/browser';
import $ from 'jquery';
import { escape } from 'lodash';
import QRCode from 'qrcode';
import { ActionDialog } from 'vj/components/dialog';
import Notification from 'vj/components/notification';
@@ -28,7 +27,7 @@ async function changeMail() {
<input className="textbox" type="text" name="mail" required></input>
</div>
</label>
</div>
</div>,
),
onDispatch(action) {
if (action === 'ok') {
@@ -199,7 +198,7 @@ export default new NamedPage('home_security', () => {
</MenuLink>
</>)}
</ol>
</div>
</div>,
);
const action = await new ActionDialog({ $body, $action: [] }).open();
if (!action || action === 'cancel') return;