@feedmepos/mf-remy-panel 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HomeView-ab6d0ec3.js → HomeView-13dd694a.js} +51 -57
- package/dist/{RemyButton-d451909b.js → RemyButton-73c904bb.js} +1 -1
- package/dist/{app-919731f0.js → app-722c1500.js} +514 -508
- package/dist/app.d.ts +1 -0
- package/dist/app.js +4 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -1,66 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as
|
|
1
|
+
import { defineComponent as b, ref as o, openBlock as l, createElementBlock as i, createElementVNode as e, unref as k, createTextVNode as v, createStaticVNode as x, toDisplayString as n, createCommentVNode as r } from "vue";
|
|
2
|
+
import { u as A, a as _, R, _ as E } from "./app-722c1500.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
|
|
7
|
-
function o(l) {
|
|
8
|
-
s(l.detail);
|
|
9
|
-
}
|
|
10
|
-
k(() => window.addEventListener(u, o)), x(() => window.removeEventListener(u, o));
|
|
11
|
-
}
|
|
12
|
-
const I = { class: "home" }, P = { class: "home__hero" }, T = { class: "home__brand" }, D = ["src"], V = { class: "home__card" }, N = {
|
|
6
|
+
const S = { class: "home" }, C = { class: "home__hero" }, I = { class: "home__brand" }, P = ["src"], T = { class: "home__card" }, w = {
|
|
13
7
|
key: 0,
|
|
14
8
|
class: "home__autofill"
|
|
15
|
-
},
|
|
9
|
+
}, D = { class: "home__autofill-price" }, N = {
|
|
16
10
|
key: 1,
|
|
17
11
|
class: "home__autofill"
|
|
18
|
-
},
|
|
12
|
+
}, V = { class: "home__autofill-value" }, G = {
|
|
19
13
|
key: 2,
|
|
20
14
|
class: "home__autofill"
|
|
21
|
-
},
|
|
15
|
+
}, H = { class: "home__autofill-value" }, M = {
|
|
22
16
|
key: 3,
|
|
23
17
|
class: "home__debug"
|
|
24
|
-
},
|
|
18
|
+
}, B = { class: "home__debug-title" }, q = { class: "home__debug-json" }, L = /* @__PURE__ */ b({
|
|
25
19
|
__name: "HomeView",
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
}),
|
|
33
|
-
|
|
20
|
+
setup(W) {
|
|
21
|
+
const p = A(), c = o(null), d = o(null), u = o(null), s = o(null), m = o(null);
|
|
22
|
+
_("apply-pricing", (a) => {
|
|
23
|
+
c.value = a, s.value = "apply-pricing", m.value = a;
|
|
24
|
+
}), _("apply-description", (a) => {
|
|
25
|
+
d.value = a, s.value = "apply-description", m.value = a;
|
|
26
|
+
}), _("apply-image", (a) => {
|
|
27
|
+
u.value = (a == null ? void 0 : a.mimeType) ?? null, s.value = "apply-image", m.value = a;
|
|
34
28
|
});
|
|
35
|
-
function
|
|
36
|
-
|
|
29
|
+
function g() {
|
|
30
|
+
p.activate({
|
|
37
31
|
prompt: "Suggest pricing for Nasi Lemak"
|
|
38
32
|
});
|
|
39
33
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
34
|
+
function h() {
|
|
35
|
+
p.activate({
|
|
42
36
|
prompt: "Generate a menu description for Pad Thai"
|
|
43
37
|
});
|
|
44
38
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
39
|
+
function f() {
|
|
40
|
+
p.activate({
|
|
47
41
|
prompt: "Help me generate an image for my menu item"
|
|
48
42
|
});
|
|
49
43
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
44
|
+
function y() {
|
|
45
|
+
p.activate({
|
|
52
46
|
command: "askReport",
|
|
53
47
|
prompt: "What were my top 5 selling items last week?"
|
|
54
48
|
});
|
|
55
49
|
}
|
|
56
|
-
return (a, t) => (
|
|
57
|
-
e("section",
|
|
58
|
-
e("div",
|
|
50
|
+
return (a, t) => (l(), i("div", S, [
|
|
51
|
+
e("section", C, [
|
|
52
|
+
e("div", I, [
|
|
59
53
|
e("img", {
|
|
60
|
-
src: R
|
|
54
|
+
src: k(R),
|
|
61
55
|
alt: "Remy",
|
|
62
56
|
class: "home__avatar"
|
|
63
|
-
}, null, 8,
|
|
57
|
+
}, null, 8, P),
|
|
64
58
|
t[0] || (t[0] = e("div", null, [
|
|
65
59
|
e("p", { class: "home__name" }, "Remy AI"),
|
|
66
60
|
e("p", { class: "home__badge" }, "Beta")
|
|
@@ -69,13 +63,13 @@ const I = { class: "home" }, P = { class: "home__hero" }, T = { class: "home__br
|
|
|
69
63
|
t[1] || (t[1] = e("h1", { class: "home__title" }, "Welcome to Remy Panel", -1)),
|
|
70
64
|
t[2] || (t[2] = e("p", { class: "home__subtitle" }, "Your AI assistant for pricing, descriptions, and menu images.", -1)),
|
|
71
65
|
t[3] || (t[3] = e("div", { class: "home__hero-hint" }, [
|
|
72
|
-
|
|
66
|
+
v("Tip: Type "),
|
|
73
67
|
e("code", null, "/"),
|
|
74
|
-
|
|
68
|
+
v(" in chat to access commands.")
|
|
75
69
|
], -1))
|
|
76
70
|
]),
|
|
77
|
-
t[12] || (t[12] =
|
|
78
|
-
e("section",
|
|
71
|
+
t[12] || (t[12] = x('<section class="home__card" data-v-94caad04><h2 class="home__section-title" data-v-94caad04>Getting Started</h2><ol class="home__list" data-v-94caad04><li data-v-94caad04>Click the <strong data-v-94caad04>Remy icon</strong> in your top navigation to open the chat panel.</li><li data-v-94caad04> Desktop opens a right-side panel. Mobile/tablet opens Remy in <strong data-v-94caad04>full-screen</strong>. </li><li data-v-94caad04> Use <strong data-v-94caad04>/suggestPrice</strong>, <strong data-v-94caad04>/suggestDescription</strong>, <strong data-v-94caad04>/modifyImage</strong>, or <strong data-v-94caad04>/askReport</strong>. </li><li data-v-94caad04>After selecting a command, enter the item details and send.</li></ol></section>', 1)),
|
|
72
|
+
e("section", T, [
|
|
79
73
|
t[11] || (t[11] = e("div", { class: "home__section-head" }, [
|
|
80
74
|
e("h2", { class: "home__section-title" }, "Try Examples"),
|
|
81
75
|
e("p", null, "Start with one of these quick actions:")
|
|
@@ -84,7 +78,7 @@ const I = { class: "home" }, P = { class: "home__hero" }, T = { class: "home__br
|
|
|
84
78
|
e("button", {
|
|
85
79
|
class: "home__example",
|
|
86
80
|
type: "button",
|
|
87
|
-
onClick:
|
|
81
|
+
onClick: g
|
|
88
82
|
}, [...t[4] || (t[4] = [
|
|
89
83
|
e("span", { class: "home__example-icon" }, "/suggestPrice", -1),
|
|
90
84
|
e("h3", null, "Suggest Price", -1),
|
|
@@ -93,7 +87,7 @@ const I = { class: "home" }, P = { class: "home__hero" }, T = { class: "home__br
|
|
|
93
87
|
e("button", {
|
|
94
88
|
class: "home__example",
|
|
95
89
|
type: "button",
|
|
96
|
-
onClick:
|
|
90
|
+
onClick: h
|
|
97
91
|
}, [...t[5] || (t[5] = [
|
|
98
92
|
e("span", { class: "home__example-icon" }, "/suggestDescription", -1),
|
|
99
93
|
e("h3", null, "Suggest Description", -1),
|
|
@@ -102,7 +96,7 @@ const I = { class: "home" }, P = { class: "home__hero" }, T = { class: "home__br
|
|
|
102
96
|
e("button", {
|
|
103
97
|
class: "home__example",
|
|
104
98
|
type: "button",
|
|
105
|
-
onClick:
|
|
99
|
+
onClick: f
|
|
106
100
|
}, [...t[6] || (t[6] = [
|
|
107
101
|
e("span", { class: "home__example-icon" }, "/modifyImage", -1),
|
|
108
102
|
e("h3", null, "Modify Image", -1),
|
|
@@ -111,34 +105,34 @@ const I = { class: "home" }, P = { class: "home__hero" }, T = { class: "home__br
|
|
|
111
105
|
e("button", {
|
|
112
106
|
class: "home__example",
|
|
113
107
|
type: "button",
|
|
114
|
-
onClick:
|
|
108
|
+
onClick: y
|
|
115
109
|
}, [...t[7] || (t[7] = [
|
|
116
110
|
e("span", { class: "home__example-icon" }, "/askReport", -1),
|
|
117
111
|
e("h3", null, "Ask Report", -1),
|
|
118
112
|
e("p", null, "Ask questions about your sales, revenue, and business analytics.", -1)
|
|
119
113
|
])])
|
|
120
114
|
]),
|
|
121
|
-
|
|
115
|
+
c.value !== null ? (l(), i("div", w, [
|
|
122
116
|
t[8] || (t[8] = e("p", { class: "home__autofill-label" }, " Applied price event received ", -1)),
|
|
123
|
-
e("p",
|
|
124
|
-
])) :
|
|
125
|
-
|
|
117
|
+
e("p", D, "RM " + n(c.value.toFixed(2)), 1)
|
|
118
|
+
])) : r("", !0),
|
|
119
|
+
d.value ? (l(), i("div", N, [
|
|
126
120
|
t[9] || (t[9] = e("p", { class: "home__autofill-label" }, "Applied description event received", -1)),
|
|
127
|
-
e("p",
|
|
128
|
-
])) :
|
|
129
|
-
|
|
121
|
+
e("p", V, n(d.value), 1)
|
|
122
|
+
])) : r("", !0),
|
|
123
|
+
u.value ? (l(), i("div", G, [
|
|
130
124
|
t[10] || (t[10] = e("p", { class: "home__autofill-label" }, "Applied image event received", -1)),
|
|
131
|
-
e("p",
|
|
132
|
-
])) :
|
|
133
|
-
|
|
134
|
-
e("p",
|
|
135
|
-
e("pre",
|
|
136
|
-
])) :
|
|
125
|
+
e("p", H, n(u.value), 1)
|
|
126
|
+
])) : r("", !0),
|
|
127
|
+
s.value ? (l(), i("div", M, [
|
|
128
|
+
e("p", B, "Last Apply Event: " + n(s.value), 1),
|
|
129
|
+
e("pre", q, n(JSON.stringify(m.value, null, 2)), 1)
|
|
130
|
+
])) : r("", !0)
|
|
137
131
|
])
|
|
138
132
|
]));
|
|
139
133
|
}
|
|
140
134
|
});
|
|
141
|
-
const
|
|
135
|
+
const Y = /* @__PURE__ */ E(L, [["__scopeId", "data-v-94caad04"]]);
|
|
142
136
|
export {
|
|
143
|
-
|
|
137
|
+
Y as default
|
|
144
138
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, computed as o, openBlock as i, createElementBlock as l, normalizeClass as t, createElementVNode as p, unref as u, createCommentVNode as d } from "vue";
|
|
2
|
-
import { u as y, R as _ } from "./app-
|
|
2
|
+
import { u as y, R as _ } from "./app-722c1500.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|