From ecfb16488ceae2ff6560ee8aa6cf7adc50a0d7a3 Mon Sep 17 00:00:00 2001 From: Jakob Zahn Date: Tue, 25 Jun 2024 12:26:38 +0200 Subject: [PATCH] chore: update room names (#15) See also https://github.com/yjs/yjs-demos/commit/054422ec75558477fcd48caae10231ec2383adc7 --- src/components/connect-button.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/connect-button.tsx b/src/components/connect-button.tsx index e77fd72..5ac3d9d 100644 --- a/src/components/connect-button.tsx +++ b/src/components/connect-button.tsx @@ -131,32 +131,32 @@ export function ConnectButton() { const officialDemos = [ { name: "ProseMirror", - value: "prosemirror-demo", + value: "prosemirror-demo-2024/06", url: "https://demos.yjs.dev/prosemirror/prosemirror.html", }, { name: "ProseMirror with Version History", - value: "prosemirror-versions-demo", + value: "prosemirror-versions-demo-2024/06", url: "https://demos.yjs.dev/prosemirror-versions/prosemirror-versions.html", }, { name: "Quill", - value: "quill-demo-5", + value: "quill-demo-2024/06", url: "https://demos.yjs.dev/quill/quill.html", }, { name: "Monaco", - value: "monaco-demo", + value: "monaco-demo-2024/06", url: "https://demos.yjs.dev/monaco/monaco.html", }, { name: "CodeMirror", - value: "codemirror-demo", + value: "codemirror-demo-2024/06", url: "https://demos.yjs.dev/codemirror/codemirror.html", }, { name: "CodeMirror 6", - value: "codemirror.next-demo", + value: "codemirror.next-demo-2024/06", url: "https://demos.yjs.dev/codemirror.next/codemirror.next.html", }, ] as const; @@ -168,8 +168,8 @@ function ConnectDialog({ }) { const [yDoc] = useYDoc(); const [url, setUrl] = useState("wss://demos.yjs.dev/ws"); - const [room, setRoom] = useState("quill-demo-5"); - const [provider, setProvider] = useState("quill-demo-5"); + const [room, setRoom] = useState("quill-demo-2024/06"); + const [provider, setProvider] = useState("quill-demo-2024/06"); const [needCreateNewDoc, setNeedCreateNewDoc] = useState(true); const officialDemo = officialDemos.find((demo) => demo.value === provider);