Skip to content

Commit b3fba7b

Browse files
fix: update wss url to fix co-editing (#404)
* fix: update wss url to fix co-editing * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent baed808 commit b3fba7b

21 files changed

+105
-88
lines changed

packages/docs/fluent-editor/demos/ai.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ onMounted(async () => {
1414
toolbar: {
1515
container: [
1616
['ai'],
17-
...DEFAULT_TOOLBAR
17+
...DEFAULT_TOOLBAR,
1818
],
1919
},
2020
ai: {

packages/docs/fluent-editor/demos/collaborative-editing.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ const CURSOR_CLASSES = {
2626
2727
onMounted(async () => {
2828
const [
29-
{ default: FluentEditor, generateTableUp, CollaborationModule, FULL_TOOLBAR },
30-
{ defaultCustomSelect, TableMenuContextmenu, TableSelection, TableUp },
31-
Y,
32-
{ Awareness },
33-
{ QuillBinding },
34-
{ WebsocketProvider },
35-
{ IndexeddbPersistence },
36-
{ default: QuillCursors },
37-
] = await Promise.all([
29+
{ default: FluentEditor, generateTableUp, CollaborationModule, FULL_TOOLBAR },
30+
{ defaultCustomSelect, TableMenuContextmenu, TableSelection, TableUp },
31+
Y,
32+
{ Awareness },
33+
{ QuillBinding },
34+
{ WebsocketProvider },
35+
{ IndexeddbPersistence },
36+
{ default: QuillCursors },
37+
] = await Promise.all([
3838
import('@opentiny/fluent-editor'),
3939
import('quill-table-up'),
4040
import('yjs'),
@@ -93,7 +93,7 @@ onMounted(async () => {
9393
provider: {
9494
type: 'websocket',
9595
options: {
96-
serverUrl: 'wss://120.26.92.145:1234',
96+
serverUrl: 'wss://ai.opentiny.design/tiny-editor/',
9797
roomName: ROOM_NAME,
9898
},
9999
},

packages/docs/fluent-editor/demos/file-upload-handle.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const editorRef = ref<HTMLElement>()
1111
onMounted(async () => {
1212
// ssr compat, reference: https://vitepress.dev/guide/ssr-compat#importing-in-mounted-hook
1313
const [
14-
{ default: FluentEditor, generateTableUp, DEFAULT_TOOLBAR },
15-
{ defaultCustomSelect, TableMenuContextmenu, TableSelection, TableUp },
16-
] = await Promise.all([
14+
{ default: FluentEditor, generateTableUp, DEFAULT_TOOLBAR },
15+
{ defaultCustomSelect, TableMenuContextmenu, TableSelection, TableUp },
16+
] = await Promise.all([
1717
import('@opentiny/fluent-editor'),
1818
import('quill-table-up'),
1919
])

packages/docs/fluent-editor/demos/flow-chart-background.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const editorRef = ref<HTMLElement>()
99
1010
onMounted(async () => {
1111
const [
12-
{ default: FluentEditor, DEFAULT_TOOLBAR },
13-
{ default: LogicFlow },
14-
{ DndPanel, SelectionSelect, Snapshot },
15-
] = await Promise.all([
12+
{ default: FluentEditor, DEFAULT_TOOLBAR },
13+
{ default: LogicFlow },
14+
{ DndPanel, SelectionSelect, Snapshot },
15+
] = await Promise.all([
1616
import('@opentiny/fluent-editor'),
1717
import('@logicflow/core'),
1818
import('@logicflow/extension'),

packages/docs/fluent-editor/demos/flow-chart-grid.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const editorRef = ref<HTMLElement>()
99
1010
onMounted(async () => {
1111
const [
12-
{ default: FluentEditor, DEFAULT_TOOLBAR },
13-
{ default: LogicFlow },
14-
{ DndPanel, SelectionSelect, Snapshot },
15-
] = await Promise.all([
12+
{ default: FluentEditor, DEFAULT_TOOLBAR },
13+
{ default: LogicFlow },
14+
{ DndPanel, SelectionSelect, Snapshot },
15+
] = await Promise.all([
1616
import('@opentiny/fluent-editor'),
1717
import('@logicflow/core'),
1818
import('@logicflow/extension'),

packages/docs/fluent-editor/demos/flow-chart-resize.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ const editorRef = ref<HTMLElement>()
99
1010
onMounted(async () => {
1111
const [
12-
{ default: FluentEditor, DEFAULT_TOOLBAR },
13-
{ default: LogicFlow },
14-
{ DndPanel, SelectionSelect, Snapshot },
15-
] = await Promise.all([
12+
{ default: FluentEditor, DEFAULT_TOOLBAR },
13+
{ default: LogicFlow },
14+
{ DndPanel, SelectionSelect, Snapshot },
15+
] = await Promise.all([
1616
import('@opentiny/fluent-editor'),
1717
import('@logicflow/core'),
1818
import('@logicflow/extension'),
1919
])
20-
20+
2121
if (!editorRef.value) return
2222
editor = new FluentEditor(editorRef.value, {
2323
theme: 'snow',

packages/docs/fluent-editor/demos/flow-chart.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const editorRef = ref<HTMLElement>()
99
1010
onMounted(async () => {
1111
const [
12-
{ default: FluentEditor, DEFAULT_TOOLBAR },
13-
{ default: LogicFlow },
14-
{ DndPanel, SelectionSelect, Snapshot },
15-
] = await Promise.all([
12+
{ default: FluentEditor, DEFAULT_TOOLBAR },
13+
{ default: LogicFlow },
14+
{ DndPanel, SelectionSelect, Snapshot },
15+
] = await Promise.all([
1616
import('@opentiny/fluent-editor'),
1717
import('@logicflow/core'),
1818
import('@logicflow/extension'),

packages/docs/fluent-editor/demos/format-painter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type FluentEditor from '@opentiny/fluent-editor'
33
import { onMounted } from 'vue'
44
5-
let editor: FluentEditor
5+
let editor: FluentEditor
66
77
onMounted(async () => {
88
// ssr compat, reference: https://vitepress.dev/guide/ssr-compat#importing-in-mounted-hook

packages/docs/fluent-editor/demos/get-content-delta.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ onMounted(async () => {
5757
editor = new FluentEditor('#editor-get-content-delta', {
5858
theme: 'snow',
5959
modules: {
60-
toolbar: FULL_TOOLBAR,
61-
syntax: { hljs },
62-
emoji: true,
63-
file: true,
64-
mention: {
60+
'toolbar': FULL_TOOLBAR,
61+
'syntax': { hljs },
62+
'emoji': true,
63+
'file': true,
64+
'mention': {
6565
itemKey: 'cn',
6666
searchKey,
6767
search(term) {

packages/docs/fluent-editor/demos/get-content-html.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ onMounted(async () => {
5656
editor = new FluentEditor('#editor-get-content-html', {
5757
theme: 'snow',
5858
modules: {
59-
toolbar: FULL_TOOLBAR,
60-
syntax: { hljs },
61-
emoji: true,
62-
file: true,
63-
mention: {
59+
'toolbar': FULL_TOOLBAR,
60+
'syntax': { hljs },
61+
'emoji': true,
62+
'file': true,
63+
'mention': {
6464
itemKey: 'cn',
6565
searchKey,
6666
search(term) {

0 commit comments

Comments
 (0)