vft 0.0.41 → 0.0.43
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/index.css +1 -1
- package/es/components/md-vue-playground/md-vue-playground.vue2.mjs +19 -19
- package/es/package.json.mjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.js +1 -1
- package/lib/package.json.js +1 -1
- package/package.json +3 -3
- package/theme-style/index.css +1 -1
- package/theme-style/src/md/pswp.scss +422 -0
- package/theme-style/src/md-code-demo.scss +2 -0
- package/theme-style/src/md-comment.scss +416 -0
- package/theme-style/src/md-container.scss +27 -22
- package/theme-style/src/md-vue-playground.scss +895 -2
- package/theme-style/vft-md-code-demo.css +1 -1
- package/theme-style/vft-md-comment.css +1 -1
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-md-vue-playground.css +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as u, ref as s, shallowRef as v, computed as m, onMounted as f, createVNode as e, withDirectives as w, h as g, resolveDirective as h } from "vue";
|
|
2
2
|
import { useNamespace as V } from "../../hooks/use-namespace/index.mjs";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -8,12 +8,12 @@ import "@vft/utils";
|
|
|
8
8
|
import "../../utils/ns-cover.mjs";
|
|
9
9
|
import { getVuePlaygroundSettings as C } from "./playground.mjs";
|
|
10
10
|
import { VftIcon as R } from "../icon/index.mjs";
|
|
11
|
-
const
|
|
11
|
+
const r = (
|
|
12
12
|
/* hoist-static*/
|
|
13
13
|
V("md-vue-playground")
|
|
14
|
-
), y =
|
|
15
|
-
name:
|
|
16
|
-
}), M = /* @__PURE__ */
|
|
14
|
+
), y = u({
|
|
15
|
+
name: r.b()
|
|
16
|
+
}), M = /* @__PURE__ */ u({
|
|
17
17
|
...y,
|
|
18
18
|
props: {
|
|
19
19
|
title: null,
|
|
@@ -21,37 +21,37 @@ const p = (
|
|
|
21
21
|
settings: null
|
|
22
22
|
},
|
|
23
23
|
setup(t) {
|
|
24
|
-
const
|
|
24
|
+
const i = s(!0), n = v(), a = s(), o = m(() => C(t.settings)), l = s(o.value.showCode || !1), c = async () => {
|
|
25
25
|
const {
|
|
26
|
-
ReplStore:
|
|
27
|
-
Repl:
|
|
26
|
+
ReplStore: p,
|
|
27
|
+
Repl: d
|
|
28
28
|
} = await import("@vue/repl");
|
|
29
|
-
|
|
29
|
+
n.value = d, a.value = new p({
|
|
30
30
|
serializedState: decodeURIComponent(t.files),
|
|
31
31
|
showOutput: !0
|
|
32
|
-
}), o.value.vueVersion && await
|
|
32
|
+
}), o.value.vueVersion && await a.value.setVueVersion(o.value.vueVersion);
|
|
33
33
|
};
|
|
34
|
-
return
|
|
35
|
-
await
|
|
34
|
+
return f(async () => {
|
|
35
|
+
await c(), i.value = !1;
|
|
36
36
|
}), () => e("div", {
|
|
37
|
-
class:
|
|
37
|
+
class: r.b()
|
|
38
38
|
}, [e("div", {
|
|
39
39
|
class: "title-wrapper"
|
|
40
|
-
}, [
|
|
40
|
+
}, [t.title ? e("div", {
|
|
41
41
|
class: "title"
|
|
42
|
-
}, [decodeURIComponent(t.title)])
|
|
42
|
+
}, [decodeURIComponent(t.title)]) : null, e(R, {
|
|
43
43
|
cursor: !0,
|
|
44
44
|
icon: l.value ? "i-bx:collapse-alt" : "i-bx:expand-alt",
|
|
45
45
|
size: 20,
|
|
46
46
|
onClick: () => {
|
|
47
47
|
l.value = !l.value;
|
|
48
48
|
}
|
|
49
|
-
}, null)]),
|
|
49
|
+
}, null)]), w(e("div", {
|
|
50
50
|
class: ["repl-container", l.value ? "show-code" : "hide-code"]
|
|
51
|
-
}, [
|
|
52
|
-
store:
|
|
51
|
+
}, [n.value ? g(n.value, {
|
|
52
|
+
store: a.value,
|
|
53
53
|
...o.value
|
|
54
|
-
}) : null]), [[
|
|
54
|
+
}) : null]), [[h("loading"), i.value]])]);
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
export {
|
package/es/package.json.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=Object.create;var
|
|
1
|
+
"use strict";var v=Object.create;var r=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var w=(t,l,n,u)=>{if(l&&typeof l=="object"||typeof l=="function")for(let o of f(l))!m.call(t,o)&&o!==n&&r(t,o,{get:()=>l[o],enumerable:!(u=p(l,o))||u.enumerable});return t};var V=(t,l,n)=>(n=t!=null?v(g(t)):{},w(l||!t||!t.__esModule?r(n,"default",{value:t,enumerable:!0}):n,t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),q=require("../../hooks/use-namespace/index.js");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.js");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.js");const h=require("./playground.js"),y=require("../icon/index.js"),s=q.useNamespace("md-vue-playground"),C=e.defineComponent({name:s.b()}),b=e.defineComponent({...C,props:{title:null,files:null,settings:null},setup(t){const l=e.ref(!0),n=e.shallowRef(),u=e.ref(),o=e.computed(()=>h.getVuePlaygroundSettings(t.settings)),a=e.ref(o.value.showCode||!1),i=async()=>{const{ReplStore:c,Repl:d}=await import("@vue/repl");n.value=d,u.value=new c({serializedState:decodeURIComponent(t.files),showOutput:!0}),o.value.vueVersion&&await u.value.setVueVersion(o.value.vueVersion)};return e.onMounted(async()=>{await i(),l.value=!1}),()=>e.createVNode("div",{class:s.b()},[e.createVNode("div",{class:"title-wrapper"},[t.title?e.createVNode("div",{class:"title"},[decodeURIComponent(t.title)]):null,e.createVNode(y.VftIcon,{cursor:!0,icon:a.value?"i-bx:collapse-alt":"i-bx:expand-alt",size:20,onClick:()=>{a.value=!a.value}},null)]),e.withDirectives(e.createVNode("div",{class:["repl-container",a.value?"show-code":"hide-code"]},[n.value?e.h(n.value,{store:u.value,...o.value}):null]),[[e.resolveDirective("loading"),l.value]])])}});exports.default=b;
|
package/lib/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.43";exports.version=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"vue": "^3.2.37",
|
|
59
59
|
"vue-router": "^4.0.16",
|
|
60
60
|
"@waline/client": "^2.14.7",
|
|
61
|
-
"balloon-css": "^1.2.0",
|
|
62
61
|
"fflate": "^0.7.4",
|
|
63
62
|
"hotkeys-js": "3.10.1",
|
|
64
63
|
"resize-detector": "0.3.0",
|
|
65
|
-
"qrcode": "1.5.1"
|
|
64
|
+
"qrcode": "1.5.1",
|
|
65
|
+
"@vue/repl": "^1.3.2"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"update:version": "pnpm version patch",
|