summaryrefslogtreecommitdiff
path: root/plugins/vue/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/vue/index.html')
-rw-r--r--plugins/vue/index.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/plugins/vue/index.html b/plugins/vue/index.html
new file mode 100644
index 0000000..ceea8c7
--- /dev/null
+++ b/plugins/vue/index.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script async src="https://ga.jspm.io/npm:es-module-shims@1.6.2/dist/es-module-shims.js"></script>
+ <script type="importmap">{ "imports": {
+ "vue": "https://cdnjs.cloudflare.com/ajax/libs/vue/3.2.45/vue.esm-browser.min.js"
+ }}</script>
+ <script type="module">
+ import { createApp } from 'vue'
+ import GraffitiVue from './plugin.js'
+
+ createApp()
+ .use(GraffitiVue, {url: "http://localhost:5001"})
+ .mount('#app')
+ </script>
+</head>
+<body id="app">
+ {{ $graffitiID }}
+
+ <button @click="$graffitiToggleLogIn">
+ Log In
+ </button>
+
+ <graffiti-objects :tags="['asdf']" v-slot="{objects}">
+ <li v-for="object in objects">
+ {{object._tags}}
+ <button @click="object._remove()">
+ ❌
+ </button>
+ </li>
+ </graffiti-objects>
+
+</body>
+</html>