Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
janthurau committed Jan 24, 2024
1 parent da28ce7 commit b9f9e13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const recreate = () => {
} : {
baseUrl: props.appUrl,
},
name: props.aiEnabled ? 'ai-test1' : 'test2',
name: props.aiEnabled ? 'ai-test1' : 'testdocument',
token: props.jwt,
preserveConnection: false,
onSynced(data) {
Expand All @@ -48,7 +48,7 @@ const recreate = () => {
if( editor.value?.getText() === '' ) {
editor.value!.commands.setContent(placeholder)
}
}, 350)
}, 1000 * Math.random())
},
})
Expand Down
5 changes: 1 addition & 4 deletions src/pages/Collab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
<div class="col-span-1">
<p class="text-sm text-gray-500">
App URL (e.g. ws://localhost:8080)
Give your app an individual name. This is helpful to distinguish between prod and staging apps.
</p>
</div>
<div class="col-span-2">
Expand Down Expand Up @@ -191,8 +190,6 @@
setup. Test your credentials and server to confirm everything is operating as intended, ensuring your AI
server is optimally prepared for both development and deployment.</p><br/>
<p class="text-gray-700">Just enter your App ID (or URL, if on-premise) and secret to get started. ✨</p><br/>

<p class="text-gray-700">Click <a href="https://www.tiptap.dev/docs/cloud" class="underline" target="_blank">here</a> to open the documentation.</p>
</div>

<div v-if="aiEnabled" class="grid gap-4 mt-4">
Expand Down Expand Up @@ -358,7 +355,7 @@ const aiJwt = ref('')
watch(secret, async () => {
// do NOT generate the JWT like this in production, this is just for demoing purposes. The secret MUST be stored on and never leave the server.
jwt.value = await new jose.SignJWT({
allowedDocumentNames: ['test1', 'test2'],
allowedDocumentNames: ['testdocument'],
}).setProtectedHeader({alg: 'HS256'})
.setIssuedAt()
.sign(new TextEncoder().encode(secret.value))
Expand Down

0 comments on commit b9f9e13

Please sign in to comment.