summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/components/chat.js4
-rw-r--r--demo/components/moderation.js2
-rw-r--r--demo/index.html1
3 files changed, 3 insertions, 4 deletions
diff --git a/demo/components/chat.js b/demo/components/chat.js
index bffde26..5095dcd 100644
--- a/demo/components/chat.js
+++ b/demo/components/chat.js
@@ -45,11 +45,11 @@ export default {
<Comments :messageID="object._id" />
<template v-if="object._by==$graffitiMyID">
- <button @click="object.message+='!!';object._update()">
+ <button @click="object.message+='!!'">
‼️
</button>
- <button @click="object._remove()">
+ <button @click="delete object._key">
</button>
</template>
diff --git a/demo/components/moderation.js b/demo/components/moderation.js
index 4cf8071..5e12fb0 100644
--- a/demo/components/moderation.js
+++ b/demo/components/moderation.js
@@ -51,7 +51,7 @@ export default {
<ul v-for="object in messageObjects(objects)">
<graffiti-objects :tags="[object._id]" v-slot="{objects: responses}">
- <li v-if="likeObjects(responses, object._id).filter(o=> o._by=admin).length">
+ <li v-if="likeObjects(responses, object._id).filter(o=> o._by==admin).length">
<em><Name :of="object._by"/></em>:
{{ object.message }}
</li>
diff --git a/demo/index.html b/demo/index.html
index 1f05b25..d1b5991 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -11,7 +11,6 @@
"vue": "https://cdnjs.cloudflare.com/ajax/libs/vue/3.2.45/vue.esm-browser.prod.min.js",
"graffiti-vue": "../plugins/vue/plugin.js"
}}</script>
- <!--"graffiti-vue": "https://graffiti.garden/graffiti-js/plugins/vue/plugin.js"-->
<script type="module">
import { createApp } from 'vue'
import { Name, SetMyName } from './components/name.js'