@project-trans/suggestion-box
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -1,2 +0,2 @@ | ||
import { defineComponent as j, ref as u, watch as B, openBlock as s, createElementBlock as o, withModifiers as U, createElementVNode as e, withDirectives as g, vModelText as y, toDisplayString as h, Fragment as p, renderList as S, createCommentVNode as F, normalizeClass as I, createVNode as L, Transition as P, withCtx as R } from "vue"; | ||
import { defineComponent as j, ref as u, watch as B, openBlock as s, createElementBlock as o, withModifiers as U, createElementVNode as e, withDirectives as g, vModelText as y, toDisplayString as h, Fragment as x, renderList as S, createCommentVNode as F, normalizeClass as I, createVNode as L, Transition as P, withCtx as R } from "vue"; | ||
const V = ["placeholder"], D = { class: "inline-grid items-stretch sb-auto-height" }, E = ["placeholder"], N = { class: "m-2" }, O = { key: 0 }, A = { class: "cursor-pointer appearance-none m-0!" }, M = { class: "flex overflow-x-scroll space-x-4" }, $ = ["onClick"], q = /* @__PURE__ */ e("div", { | ||
@@ -53,3 +53,3 @@ "i-octicon:trash-24": "", | ||
setup(k) { | ||
const i = k, f = u(), v = u(""), x = u(""), a = u([]), m = u([]), d = u(!1), c = u(!1), r = u(!1); | ||
const i = k, f = u(), v = u(""), p = u(""), a = u([]), m = u([]), d = u(!1), c = u(!1), r = u(!1); | ||
B( | ||
@@ -84,3 +84,3 @@ a, | ||
const n = new FormData(); | ||
if (n.append("textContent", v.value), a.value) | ||
if (n.append("textContent", v.value), p.value && n.append("contactContent", p.value), a.value) | ||
for (let t = 0; t < a.value.length; t += 1) | ||
@@ -115,3 +115,3 @@ n.append("images", a.value[t]); | ||
g(e("input", { | ||
"onUpdate:modelValue": t[0] || (t[0] = (l) => x.value = l), | ||
"onUpdate:modelValue": t[0] || (t[0] = (l) => p.value = l), | ||
class: "min-h-0 w-full resize-none rounded-t-md border-none p-2 outline-none", | ||
@@ -122,3 +122,3 @@ bg: "zinc-100 dark:zinc-900", | ||
}, null, 8, V), [ | ||
[y, x.value] | ||
[y, p.value] | ||
]) | ||
@@ -142,3 +142,3 @@ ]), | ||
e("div", M, [ | ||
(s(!0), o(p, null, S(m.value, (l, _) => (s(), o("div", { | ||
(s(!0), o(x, null, S(m.value, (l, _) => (s(), o("div", { | ||
key: l, | ||
@@ -219,6 +219,6 @@ class: "relative" | ||
])) : (s(), o("span", se, [ | ||
d.value ? (s(), o(p, { key: 1 }, [ | ||
d.value ? (s(), o(x, { key: 1 }, [ | ||
ce, | ||
e("span", re, h(i.sendingButtonText), 1) | ||
], 64)) : (s(), o(p, { key: 0 }, [ | ||
], 64)) : (s(), o(x, { key: 0 }, [ | ||
oe, | ||
@@ -225,0 +225,0 @@ e("span", ie, h(i.sendButtonText), 1) |
{ | ||
"name": "@project-trans/suggestion-box", | ||
"type": "module", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"packageManager": "pnpm@8.15.4", | ||
@@ -6,0 +6,0 @@ "description": "Suggestion box for Project Trans", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37443