@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.
@@ -1,66 +1,60 @@
1
- import { onMounted as k, onUnmounted as x, defineComponent as A, ref as i, openBlock as p, createElementBlock as m, createElementVNode as e, unref as R, createTextVNode as g, createStaticVNode as E, toDisplayString as r, createCommentVNode as c } from "vue";
2
- import { u as w, R as S, _ as C } from "./app-919731f0.js";
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
- function v(u, s) {
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
- }, M = { class: "home__autofill-price" }, G = {
9
+ }, D = { class: "home__autofill-price" }, N = {
16
10
  key: 1,
17
11
  class: "home__autofill"
18
- }, H = { class: "home__autofill-value" }, L = {
12
+ }, V = { class: "home__autofill-value" }, G = {
19
13
  key: 2,
20
14
  class: "home__autofill"
21
- }, B = { class: "home__autofill-value" }, q = {
15
+ }, H = { class: "home__autofill-value" }, M = {
22
16
  key: 3,
23
17
  class: "home__debug"
24
- }, U = { class: "home__debug-title" }, W = { class: "home__debug-json" }, j = /* @__PURE__ */ A({
18
+ }, B = { class: "home__debug-title" }, q = { class: "home__debug-json" }, L = /* @__PURE__ */ b({
25
19
  __name: "HomeView",
26
- setup(u) {
27
- const s = w(), o = i(null), l = i(null), _ = i(null), n = i(null), d = i(null);
28
- v("apply-pricing", (a) => {
29
- o.value = a, n.value = "apply-pricing", d.value = a;
30
- }), v("apply-description", (a) => {
31
- l.value = a, n.value = "apply-description", d.value = a;
32
- }), v("apply-image", (a) => {
33
- _.value = (a == null ? void 0 : a.mimeType) ?? null, n.value = "apply-image", d.value = a;
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 h() {
36
- s.activate({
29
+ function g() {
30
+ p.activate({
37
31
  prompt: "Suggest pricing for Nasi Lemak"
38
32
  });
39
33
  }
40
- function f() {
41
- s.activate({
34
+ function h() {
35
+ p.activate({
42
36
  prompt: "Generate a menu description for Pad Thai"
43
37
  });
44
38
  }
45
- function y() {
46
- s.activate({
39
+ function f() {
40
+ p.activate({
47
41
  prompt: "Help me generate an image for my menu item"
48
42
  });
49
43
  }
50
- function b() {
51
- s.activate({
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) => (p(), m("div", I, [
57
- e("section", P, [
58
- e("div", T, [
50
+ return (a, t) => (l(), i("div", S, [
51
+ e("section", C, [
52
+ e("div", I, [
59
53
  e("img", {
60
- src: R(S),
54
+ src: k(R),
61
55
  alt: "Remy",
62
56
  class: "home__avatar"
63
- }, null, 8, D),
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
- g("Tip: Type "),
66
+ v("Tip: Type "),
73
67
  e("code", null, "/"),
74
- g(" in chat to access commands.")
68
+ v(" in chat to access commands.")
75
69
  ], -1))
76
70
  ]),
77
- t[12] || (t[12] = E('<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)),
78
- e("section", V, [
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: h
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: f
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: y
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: b
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
- o.value !== null ? (p(), m("div", N, [
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", M, "RM " + r(o.value.toFixed(2)), 1)
124
- ])) : c("", !0),
125
- l.value ? (p(), m("div", G, [
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", H, r(l.value), 1)
128
- ])) : c("", !0),
129
- _.value ? (p(), m("div", L, [
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", B, r(_.value), 1)
132
- ])) : c("", !0),
133
- n.value ? (p(), m("div", q, [
134
- e("p", U, "Last Apply Event: " + r(n.value), 1),
135
- e("pre", W, r(JSON.stringify(d.value, null, 2)), 1)
136
- ])) : c("", !0)
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 K = /* @__PURE__ */ C(j, [["__scopeId", "data-v-94caad04"]]);
135
+ const Y = /* @__PURE__ */ E(L, [["__scopeId", "data-v-94caad04"]]);
142
136
  export {
143
- K as default
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-919731f0.js";
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";