fix: fix multiplayer

This commit is contained in:
Ruben Fiszel
2023-12-22 18:17:36 +01:00
parent 6d5a547eb6
commit c1f7bb7c04
3 changed files with 2 additions and 11 deletions
+1 -2
View File
@@ -990,7 +990,7 @@
let model: meditor.ITextModel | undefined = undefined
let monacoBinding: MonacoBinding | undefined = undefined
$: if (yContent && awareness && model && editor) {
monacoBinding && monacoBinding.destroy()
monacoBinding = new MonacoBinding(
@@ -1211,7 +1211,6 @@
let root = hostname + '/api/scripts_u/tokened_raw/' + $workspaceStore + '/' + token
return root
}
console.log('FOO')
</script>
<EditorTheme />
@@ -99,7 +99,6 @@
arg.type = 'static'
}
if (arg.type) {
console.log('??', arg.type)
propertyType = arg.type
}
}
@@ -112,7 +111,6 @@
function connectProperty(rawValue: string) {
arg.expr = getDefaultExpr(undefined, previousModuleId, rawValue)
arg.type = 'javascript'
console.log('C')
propertyType = 'javascript'
monaco?.setCode(arg.expr)
}
@@ -123,7 +121,6 @@
const toAppend = `\$\{${path}}`
arg.value = `${arg.value ?? ''}${toAppend}`
monacoTemplate?.setCode(arg.value)
console.log('D')
setPropertyType(arg.value)
argInput?.focus()
return false
@@ -132,7 +129,6 @@
focusProp(argName, 'insert', (path) => {
arg.expr = path
arg.type = 'javascript'
console.log('E')
propertyType = 'javascript'
monaco?.setCode(arg.expr)
return true
@@ -192,9 +188,7 @@
<ToggleButtonGroup
selected={propertyType}
on:selected={(e) => {
console.log('FOOO')
if (e.detail == propertyType) return
console.log(e.detail, propertyType)
const staticTemplate = isStaticTemplate(inputCat)
if (e.detail === 'javascript') {
if (arg.expr == undefined) {
@@ -213,7 +207,6 @@
arg.type = 'javascript'
}
propertyType = 'javascript'
console.log('H', arg.expr)
} else {
if (staticTemplate) {
if (arg) {
@@ -229,7 +222,6 @@
}
}
propertyType = 'static'
console.log('F', propertyType)
}
}}
>
@@ -201,7 +201,7 @@
}
function collabUrl() {
let url = new URL(window.location.toString())
let url = new URL(window.location.toString().split('#')[0])
url.search = ''
return `${url}?collab=1` + (edit ? '' : `&path=${path}`)
}