From edec7c9e7d24ca2388a29e0fea3e5fa094b788c9 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 23:37:39 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- js/ui/botui/examples/hello-world-webpack/app.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 js/ui/botui/examples/hello-world-webpack/app.js diff --git a/js/ui/botui/examples/hello-world-webpack/app.js b/js/ui/botui/examples/hello-world-webpack/app.js new file mode 100644 index 0000000..a88b0cb --- /dev/null +++ b/js/ui/botui/examples/hello-world-webpack/app.js @@ -0,0 +1,16 @@ +import BotUI from 'botui' +import Vue from 'vue' + +// window.Vue = Vue; // use either this +var botui = new BotUI('hello-world', { + vue: Vue // or this +}); + +botui.message.add({ + content: 'Hello World from bot!' +}); + +botui.message.add({ + human: true, + content: 'Hello World from human!' +});