Skip to content

Commit 8133337

Browse files
fix: update wss to fix co-editing (#406)
* 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 6547d98 commit 8133337

12 files changed

Lines changed: 47 additions & 58 deletions

File tree

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/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) {

packages/docs/fluent-editor/demos/header-list.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ onMounted(async () => {
1313
import('@opentiny/fluent-editor'),
1414
import('quill-header-list'),
1515
])
16-
16+
1717
if (!editorRef.value) return
1818
FluentEditor.register({ 'modules/header-list': HeaderList }, true)
1919

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ onMounted(async () => {
1818
modules: {
1919
toolbar: [
2020
...DEFAULT_TOOLBAR,
21-
['screenshot'],
21+
['screenshot'],
2222
],
2323
},
2424
screenshot: {},

packages/docs/fluent-editor/demos/table-up-menu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ onMounted(async () => {
1818
import('@opentiny/fluent-editor'),
1919
import('quill-table-up'),
2020
])
21-
21+
2222
FluentEditor.register({ 'modules/table-up': generateTableUp(TableUp) }, true)
2323
if (editorSelectRef.value) {
2424
editorSelect = new FluentEditor(editorSelectRef.value, {

packages/docs/fluent-editor/demos/table-up-shortcut.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ onMounted(async () => {
2020
import('@opentiny/fluent-editor'),
2121
import('quill-table-up'),
2222
])
23-
23+
2424
FluentEditor.register({ 'modules/table-up': generateTableUp(TableUp) }, true)
2525
const { tableUpConfig, tableUpKeyboardControl } = generateTableUpShortKeyMenu(createSelectBox)
2626
tableUpConfig.title = '_i18n"table"'

packages/fluent-editor/scripts/pre-release.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ delete packagejson.scripts
2222
delete packagejson.devDependencies
2323
fs.writeFileSync(targetFile, `${JSON.stringify(packagejson, null, 2)}\n`)
2424

25-
let defaultVersion = packagejson.version
25+
const defaultVersion = packagejson.version
2626
let newVersion = defaultVersion
2727

2828
// 从命令行参数中取版本号

0 commit comments

Comments
 (0)