@ddict/bubble 0.0.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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/.DS_Store +0 -0
- package/dist/bubble.css +1 -0
- package/dist/bubble.es.js +244 -0
- package/dist/bubble.umd.js +1 -0
- package/dist/favicon.ico +0 -0
- package/package.json +23 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 ddict
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/dist/.DS_Store
ADDED
|
Binary file
|
package/dist/bubble.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.body[data-v-2b1f4ed3]{padding:.7rem!important}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { openBlock, createElementBlock, renderSlot, toDisplayString, createCommentVNode, createElementVNode, Fragment, renderList, createVNode, withCtx, createBlock, pushScopeId, popScopeId } from "vue";
|
|
2
|
+
var Google = {
|
|
3
|
+
revise
|
|
4
|
+
};
|
|
5
|
+
function revise(data) {
|
|
6
|
+
const sentences = data.sentences.filter((s) => s.trans).map((s) => s.trans);
|
|
7
|
+
const translits = data.sentences.filter((s) => s.src_translit).map((s) => s.src_translit).join();
|
|
8
|
+
let dicts;
|
|
9
|
+
if (data.dict) {
|
|
10
|
+
dicts = data.dict.map((d) => {
|
|
11
|
+
return {
|
|
12
|
+
pos: d.pos,
|
|
13
|
+
terms: d.terms.join(", ")
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
sentences,
|
|
19
|
+
translits,
|
|
20
|
+
dicts
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
var _export_sfc = (sfc, props) => {
|
|
24
|
+
const target = sfc.__vccOpts || sfc;
|
|
25
|
+
for (const [key, val] of props) {
|
|
26
|
+
target[key] = val;
|
|
27
|
+
}
|
|
28
|
+
return target;
|
|
29
|
+
};
|
|
30
|
+
const _sfc_main$4 = {
|
|
31
|
+
name: "Translit",
|
|
32
|
+
props: ["translits"]
|
|
33
|
+
};
|
|
34
|
+
const _hoisted_1$4 = { class: "text-xs truncate w-5/6" };
|
|
35
|
+
const _hoisted_2$2 = { key: 0 };
|
|
36
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37
|
+
return openBlock(), createElementBlock("p", _hoisted_1$4, [
|
|
38
|
+
renderSlot(_ctx.$slots, "default"),
|
|
39
|
+
$props.translits ? (openBlock(), createElementBlock("span", _hoisted_2$2, " /" + toDisplayString($props.translits) + "/ ", 1)) : createCommentVNode("", true)
|
|
40
|
+
]);
|
|
41
|
+
}
|
|
42
|
+
var Translit = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3]]);
|
|
43
|
+
const _sfc_main$3 = {
|
|
44
|
+
name: "Player",
|
|
45
|
+
props: ["tts"],
|
|
46
|
+
data() {
|
|
47
|
+
return {
|
|
48
|
+
playing: false,
|
|
49
|
+
player: new Audio(this.tts),
|
|
50
|
+
err: null
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
watch: {
|
|
54
|
+
playing(val) {
|
|
55
|
+
if (!val) {
|
|
56
|
+
this.player.pause();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
this.player.play();
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
created() {
|
|
63
|
+
this.player.onended = () => {
|
|
64
|
+
this.playing = false;
|
|
65
|
+
};
|
|
66
|
+
this.player.onerror = (err) => {
|
|
67
|
+
this.err = err;
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
methods: {
|
|
71
|
+
play() {
|
|
72
|
+
this.playing = !this.playing;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const _hoisted_1$3 = {
|
|
77
|
+
key: 0,
|
|
78
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
79
|
+
class: "h-4 w-4 inline",
|
|
80
|
+
fill: "none",
|
|
81
|
+
viewBox: "0 0 24 24",
|
|
82
|
+
stroke: "currentColor",
|
|
83
|
+
"stroke-width": "2"
|
|
84
|
+
};
|
|
85
|
+
const _hoisted_2$1 = /* @__PURE__ */ createElementVNode("path", {
|
|
86
|
+
"stroke-linecap": "round",
|
|
87
|
+
"stroke-linejoin": "round",
|
|
88
|
+
d: "M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z"
|
|
89
|
+
}, null, -1);
|
|
90
|
+
const _hoisted_3$1 = [
|
|
91
|
+
_hoisted_2$1
|
|
92
|
+
];
|
|
93
|
+
const _hoisted_4$1 = {
|
|
94
|
+
key: 1,
|
|
95
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
96
|
+
class: "h-4 w-4 inline",
|
|
97
|
+
fill: "none",
|
|
98
|
+
viewBox: "0 0 24 24",
|
|
99
|
+
stroke: "currentColor",
|
|
100
|
+
"stroke-width": "2"
|
|
101
|
+
};
|
|
102
|
+
const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("path", {
|
|
103
|
+
"stroke-linecap": "round",
|
|
104
|
+
"stroke-linejoin": "round",
|
|
105
|
+
d: "M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
106
|
+
}, null, -1);
|
|
107
|
+
const _hoisted_6$1 = /* @__PURE__ */ createElementVNode("path", {
|
|
108
|
+
"stroke-linecap": "round",
|
|
109
|
+
"stroke-linejoin": "round",
|
|
110
|
+
d: "M9 10a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z"
|
|
111
|
+
}, null, -1);
|
|
112
|
+
const _hoisted_7$1 = [
|
|
113
|
+
_hoisted_5$1,
|
|
114
|
+
_hoisted_6$1
|
|
115
|
+
];
|
|
116
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
117
|
+
return !$data.err ? (openBlock(), createElementBlock("span", {
|
|
118
|
+
key: 0,
|
|
119
|
+
onClick: _cache[0] || (_cache[0] = (...args) => $options.play && $options.play(...args))
|
|
120
|
+
}, [
|
|
121
|
+
!$data.playing ? (openBlock(), createElementBlock("svg", _hoisted_1$3, _hoisted_3$1)) : createCommentVNode("", true),
|
|
122
|
+
$data.playing ? (openBlock(), createElementBlock("svg", _hoisted_4$1, _hoisted_7$1)) : createCommentVNode("", true)
|
|
123
|
+
])) : createCommentVNode("", true);
|
|
124
|
+
}
|
|
125
|
+
var Player = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2]]);
|
|
126
|
+
const _sfc_main$2 = {
|
|
127
|
+
name: "Sentences",
|
|
128
|
+
props: ["sentences"]
|
|
129
|
+
};
|
|
130
|
+
const _hoisted_1$2 = { class: "text-base leading-tight" };
|
|
131
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
132
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList($props.sentences, (s) => {
|
|
133
|
+
return openBlock(), createElementBlock("p", _hoisted_1$2, toDisplayString(s), 1);
|
|
134
|
+
}), 256);
|
|
135
|
+
}
|
|
136
|
+
var Sentences = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1]]);
|
|
137
|
+
const _sfc_main$1 = {
|
|
138
|
+
name: "Dict",
|
|
139
|
+
props: ["dicts"]
|
|
140
|
+
};
|
|
141
|
+
const _hoisted_1$1 = { class: "text-info font-bold italic capitalize" };
|
|
142
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
143
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList($props.dicts, (d) => {
|
|
144
|
+
return openBlock(), createElementBlock("div", null, [
|
|
145
|
+
createElementVNode("h3", _hoisted_1$1, toDisplayString(d.pos), 1),
|
|
146
|
+
createElementVNode("p", null, toDisplayString(d.terms), 1)
|
|
147
|
+
]);
|
|
148
|
+
}), 256);
|
|
149
|
+
}
|
|
150
|
+
var Dict = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render]]);
|
|
151
|
+
var Bubble_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
152
|
+
const _withScopeId = (n) => (pushScopeId("data-v-2b1f4ed3"), n = n(), popScopeId(), n);
|
|
153
|
+
const _hoisted_1 = { class: "absolute card bg-base-100 shadow-xl compact" };
|
|
154
|
+
const _hoisted_2 = { class: "absolute top-0 right-0 p-1.5" };
|
|
155
|
+
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
156
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
157
|
+
class: "h-4 w-4 inline",
|
|
158
|
+
fill: "none",
|
|
159
|
+
viewBox: "0 0 24 24",
|
|
160
|
+
stroke: "currentColor",
|
|
161
|
+
"stroke-width": "2"
|
|
162
|
+
}, [
|
|
163
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
164
|
+
"stroke-linecap": "round",
|
|
165
|
+
"stroke-linejoin": "round",
|
|
166
|
+
d: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"
|
|
167
|
+
}),
|
|
168
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
169
|
+
"stroke-linecap": "round",
|
|
170
|
+
"stroke-linejoin": "round",
|
|
171
|
+
d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z"
|
|
172
|
+
})
|
|
173
|
+
], -1));
|
|
174
|
+
const _hoisted_4 = [
|
|
175
|
+
_hoisted_3
|
|
176
|
+
];
|
|
177
|
+
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
178
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
179
|
+
class: "h-4 w-4 inline",
|
|
180
|
+
fill: "none",
|
|
181
|
+
viewBox: "0 0 24 24",
|
|
182
|
+
stroke: "currentColor",
|
|
183
|
+
"stroke-width": "2"
|
|
184
|
+
}, [
|
|
185
|
+
/* @__PURE__ */ createElementVNode("path", {
|
|
186
|
+
"stroke-linecap": "round",
|
|
187
|
+
"stroke-linejoin": "round",
|
|
188
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
189
|
+
})
|
|
190
|
+
], -1));
|
|
191
|
+
const _hoisted_6 = [
|
|
192
|
+
_hoisted_5
|
|
193
|
+
];
|
|
194
|
+
const _hoisted_7 = { class: "card-body body" };
|
|
195
|
+
const __default__ = {
|
|
196
|
+
name: "Bubble",
|
|
197
|
+
props: ["google", "tts"],
|
|
198
|
+
emits: ["settings", "close"],
|
|
199
|
+
data() {
|
|
200
|
+
return {
|
|
201
|
+
data: null
|
|
202
|
+
};
|
|
203
|
+
},
|
|
204
|
+
created() {
|
|
205
|
+
this.data = Google.revise(this.google);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
209
|
+
setup(__props) {
|
|
210
|
+
return (_ctx, _cache) => {
|
|
211
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
212
|
+
createElementVNode("div", _hoisted_2, [
|
|
213
|
+
createElementVNode("button", {
|
|
214
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("settings"))
|
|
215
|
+
}, _hoisted_4),
|
|
216
|
+
createElementVNode("button", {
|
|
217
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("close"))
|
|
218
|
+
}, _hoisted_6)
|
|
219
|
+
]),
|
|
220
|
+
createElementVNode("div", _hoisted_7, [
|
|
221
|
+
createVNode(Translit, {
|
|
222
|
+
translits: _ctx.data.translits
|
|
223
|
+
}, {
|
|
224
|
+
default: withCtx(() => [
|
|
225
|
+
__props.tts ? (openBlock(), createBlock(Player, {
|
|
226
|
+
key: 0,
|
|
227
|
+
tts: __props.tts
|
|
228
|
+
}, null, 8, ["tts"])) : createCommentVNode("", true)
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["translits"]),
|
|
232
|
+
createVNode(Sentences, {
|
|
233
|
+
sentences: _ctx.data.sentences
|
|
234
|
+
}, null, 8, ["sentences"]),
|
|
235
|
+
createVNode(Dict, {
|
|
236
|
+
dicts: _ctx.data.dicts
|
|
237
|
+
}, null, 8, ["dicts"])
|
|
238
|
+
])
|
|
239
|
+
]);
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
var Bubble = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b1f4ed3"]]);
|
|
244
|
+
export { Bubble as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(l,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(l=typeof globalThis!="undefined"?globalThis:l||self,e(l.Bubble={},l.Vue))})(this,function(l,e){"use strict";var p={revise:_};function _(t){const s=t.sentences.filter(n=>n.trans).map(n=>n.trans),o=t.sentences.filter(n=>n.src_translit).map(n=>n.src_translit).join();let r;return t.dict&&(r=t.dict.map(n=>({pos:n.pos,terms:n.terms.join(", ")}))),{sentences:s,translits:o,dicts:r}}var c=(t,s)=>{const o=t.__vccOpts||t;for(const[r,n]of s)o[r]=n;return o};const h={name:"Translit",props:["translits"]},m={class:"text-xs truncate w-5/6"},k={key:0};function f(t,s,o,r,n,i){return e.openBlock(),e.createElementBlock("p",m,[e.renderSlot(t.$slots,"default"),o.translits?(e.openBlock(),e.createElementBlock("span",k," /"+e.toDisplayString(o.translits)+"/ ",1)):e.createCommentVNode("",!0)])}var g=c(h,[["render",f]]);const u={name:"Player",props:["tts"],data(){return{playing:!1,player:new Audio(this.tts),err:null}},watch:{playing(t){if(!t){this.player.pause();return}this.player.play()}},created(){this.player.onended=()=>{this.playing=!1},this.player.onerror=t=>{this.err=t}},methods:{play(){this.playing=!this.playing}}},y={key:0,xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 inline",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},w=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z"},null,-1)],$={key:1,xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 inline",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},B=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 10a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z"},null,-1)];function E(t,s,o,r,n,i){return n.err?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,onClick:s[0]||(s[0]=(...a)=>i.play&&i.play(...a))},[n.playing?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",y,w)),n.playing?(e.openBlock(),e.createElementBlock("svg",$,B)):e.createCommentVNode("",!0)]))}var b=c(u,[["render",E]]);const V={name:"Sentences",props:["sentences"]},N={class:"text-base leading-tight"};function x(t,s,o,r,n,i){return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.sentences,a=>(e.openBlock(),e.createElementBlock("p",N,e.toDisplayString(a),1))),256)}var C=c(V,[["render",x]]);const S={name:"Dict",props:["dicts"]},j={class:"text-info font-bold italic capitalize"};function M(t,s,o,r,n,i){return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dicts,a=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("h3",j,e.toDisplayString(a.pos),1),e.createElementVNode("p",null,e.toDisplayString(a.terms),1)]))),256)}var z=c(S,[["render",M]]),G="";const d=t=>(e.pushScopeId("data-v-2b1f4ed3"),t=t(),e.popScopeId(),t),D={class:"absolute card bg-base-100 shadow-xl compact"},T={class:"absolute top-0 right-0 p-1.5"},I=[d(()=>e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 inline",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1))],L=[d(()=>e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 inline",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1))],O={class:"card-body body"};var P=c(Object.assign({name:"Bubble",props:["google","tts"],emits:["settings","close"],data(){return{data:null}},created(){this.data=p.revise(this.google)}},{setup(t){return(s,o)=>(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("div",T,[e.createElementVNode("button",{onClick:o[0]||(o[0]=r=>s.$emit("settings"))},I),e.createElementVNode("button",{onClick:o[1]||(o[1]=r=>s.$emit("close"))},L)]),e.createElementVNode("div",O,[e.createVNode(g,{translits:s.data.translits},{default:e.withCtx(()=>[t.tts?(e.openBlock(),e.createBlock(b,{key:0,tts:t.tts},null,8,["tts"])):e.createCommentVNode("",!0)]),_:1},8,["translits"]),e.createVNode(C,{sentences:s.data.sentences},null,8,["sentences"]),e.createVNode(z,{dicts:s.data.dicts},null,8,["dicts"])])]))}}),[["__scopeId","data-v-2b1f4ed3"]]);l.default=P,Object.defineProperties(l,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/favicon.ico
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ddict/bubble",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"files": ["dist"],
|
|
5
|
+
"main": "./dist/bubble.umd.js",
|
|
6
|
+
"module": "./dist/bubble.es.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "vite",
|
|
9
|
+
"build": "vite build",
|
|
10
|
+
"preview": "vite preview"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"daisyui": "^2.8.0",
|
|
14
|
+
"vue": "^3.2.25"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@vitejs/plugin-vue": "^2.2.0",
|
|
18
|
+
"autoprefixer": "^10.4.4",
|
|
19
|
+
"postcss": "^8.4.12",
|
|
20
|
+
"tailwindcss": "^3.0.23",
|
|
21
|
+
"vite": "^2.8.0"
|
|
22
|
+
}
|
|
23
|
+
}
|