labmaker-plugin 0.0.9 → 0.0.10
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/labmaker-plugin.js +47 -19
- package/dist/labmaker-plugin.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/labmaker-plugin.js
CHANGED
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
import { openBlock as n, createElementBlock as c, createElementVNode as
|
|
2
|
-
const l = (t,
|
|
1
|
+
import { openBlock as n, createElementBlock as c, createElementVNode as r, toDisplayString as d, normalizeClass as u, createCommentVNode as i } from "vue";
|
|
2
|
+
const l = (t, o) => {
|
|
3
3
|
const e = t.__vccOpts || t;
|
|
4
|
-
for (const [
|
|
5
|
-
e[
|
|
4
|
+
for (const [a, s] of o)
|
|
5
|
+
e[a] = s;
|
|
6
6
|
return e;
|
|
7
|
+
}, p = {
|
|
8
|
+
props: ["title"],
|
|
9
|
+
data() {
|
|
10
|
+
return {};
|
|
11
|
+
},
|
|
12
|
+
computed: {},
|
|
13
|
+
methods: {},
|
|
14
|
+
mounted() {
|
|
15
|
+
}
|
|
7
16
|
};
|
|
8
|
-
|
|
17
|
+
function m(t, o, e, a, s, _) {
|
|
18
|
+
return n(), c("header", null, [
|
|
19
|
+
r("h1", null, d(e.title), 1)
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
22
|
+
const h = /* @__PURE__ */ l(p, [["render", m]]);
|
|
23
|
+
const g = {
|
|
24
|
+
props: ["title"],
|
|
25
|
+
data() {
|
|
26
|
+
return {};
|
|
27
|
+
},
|
|
28
|
+
computed: {}
|
|
29
|
+
};
|
|
30
|
+
function f(t, o, e, a, s, _) {
|
|
31
|
+
return n(), c("header", null, [
|
|
32
|
+
r("h1", null, d(e.title), 1)
|
|
33
|
+
]);
|
|
34
|
+
}
|
|
35
|
+
const y = /* @__PURE__ */ l(g, [["render", f]]);
|
|
36
|
+
const v = {
|
|
9
37
|
props: ["content"],
|
|
10
38
|
data() {
|
|
11
39
|
return {};
|
|
@@ -26,38 +54,38 @@ const d = {
|
|
|
26
54
|
mounted() {
|
|
27
55
|
this.checkStepper();
|
|
28
56
|
}
|
|
29
|
-
},
|
|
30
|
-
function
|
|
31
|
-
return n(), c("div",
|
|
32
|
-
|
|
33
|
-
|
|
57
|
+
}, L = { class: "image-container" }, H = { class: "image" }, k = ["src", "alt"], x = ["innerHTML"], $ = ["innerHTML"], b = ["innerHTML"];
|
|
58
|
+
function M(t, o, e, a, s, _) {
|
|
59
|
+
return n(), c("div", L, [
|
|
60
|
+
r("div", H, [
|
|
61
|
+
r("img", {
|
|
34
62
|
src: e.content.src,
|
|
35
63
|
alt: e.content.alt,
|
|
36
|
-
class:
|
|
37
|
-
}, null, 10,
|
|
64
|
+
class: u(e.content.class)
|
|
65
|
+
}, null, 10, k),
|
|
38
66
|
e.content.captionHeader ? (n(), c("span", {
|
|
39
67
|
key: 0,
|
|
40
68
|
class: "captionHeader",
|
|
41
69
|
innerHTML: e.content.captionHeader
|
|
42
|
-
}, null, 8,
|
|
70
|
+
}, null, 8, x)) : i("", !0),
|
|
43
71
|
e.content.caption ? (n(), c("span", {
|
|
44
72
|
key: 1,
|
|
45
73
|
class: "caption",
|
|
46
74
|
innerHTML: e.content.caption
|
|
47
|
-
}, null, 8,
|
|
75
|
+
}, null, 8, $)) : i("", !0),
|
|
48
76
|
e.content.copyright ? (n(), c("span", {
|
|
49
77
|
key: 2,
|
|
50
78
|
innerHTML: e.content.copyright,
|
|
51
79
|
class: "copyright"
|
|
52
|
-
}, null, 8,
|
|
80
|
+
}, null, 8, b)) : i("", !0)
|
|
53
81
|
])
|
|
54
82
|
]);
|
|
55
83
|
}
|
|
56
|
-
const
|
|
57
|
-
install: (t,
|
|
58
|
-
t.component("lab-image",
|
|
84
|
+
const T = /* @__PURE__ */ l(v, [["render", M], ["__scopeId", "data-v-6d545532"]]), S = {
|
|
85
|
+
install: (t, o) => {
|
|
86
|
+
t.component("special-uploader", h), t.component("lab-header", y), t.component("lab-image", T);
|
|
59
87
|
}
|
|
60
88
|
};
|
|
61
89
|
export {
|
|
62
|
-
|
|
90
|
+
S as default
|
|
63
91
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,c){typeof exports=="object"&&typeof module<"u"?module.exports=c(require("vue")):typeof define=="function"&&define.amd?define(["vue"],c):(e=typeof globalThis<"u"?globalThis:e||self,e.LabmakerPlugin=c(e.Vue))})(this,function(e){"use strict";const c="",s=(n,o)=>{const t=n.__vccOpts||n;for(const[a,r]of o)t[a]=r;return t},i={props:["title"],data(){return{}},computed:{},methods:{},mounted(){}};function d(n,o,t,a,r,l){return e.openBlock(),e.createElementBlock("header",null,[e.createElementVNode("h1",null,e.toDisplayString(t.title),1)])}const _=s(i,[["render",d]]),x="",p={props:["title"],data(){return{}},computed:{}};function m(n,o,t,a,r,l){return e.openBlock(),e.createElementBlock("header",null,[e.createElementVNode("h1",null,e.toDisplayString(t.title),1)])}const u=s(p,[["render",m]]),b="",h={props:["content"],data(){return{}},computed:{getLastPage(){return!!this.$store.getters.getLastPage}},methods:{pixelFormat(n){return typeof n=="number"?n+"px":n},checkStepper(){this.$store.dispatch("lastPageFocus",{})}},mounted(){this.checkStepper()}},f={class:"image-container"},g={class:"image"},k=["src","alt"],y=["innerHTML"],L=["innerHTML"],B=["innerHTML"];function E(n,o,t,a,r,l){return e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",g,[e.createElementVNode("img",{src:t.content.src,alt:t.content.alt,class:e.normalizeClass(t.content.class)},null,10,k),t.content.captionHeader?(e.openBlock(),e.createElementBlock("span",{key:0,class:"captionHeader",innerHTML:t.content.captionHeader},null,8,y)):e.createCommentVNode("",!0),t.content.caption?(e.openBlock(),e.createElementBlock("span",{key:1,class:"caption",innerHTML:t.content.caption},null,8,L)):e.createCommentVNode("",!0),t.content.copyright?(e.openBlock(),e.createElementBlock("span",{key:2,innerHTML:t.content.copyright,class:"copyright"},null,8,B)):e.createCommentVNode("",!0)])])}const H=s(h,[["render",E],["__scopeId","data-v-6d545532"]]);return{install:(n,o)=>{n.component("special-uploader",_),n.component("lab-header",u),n.component("lab-image",H)}}});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
header{display:flex;justify-content:center;align-items:center;height:40px;margin-top:10px;margin-bottom:10px}#app .image-container[data-v-6d545532]{position:relative;display:block;margin-bottom:10px;height:100%}#app .image-container .image[data-v-6d545532]{height:100%}#app .image-container .image img[data-v-6d545532]{max-height:100%;max-width:100%}#app .image-container.copyright[data-v-6d545532],#app .image-container.captions[data-v-6d545532]{margin-bottom:20px}#app .image-container.copyright[data-v-6d545532],#app .image-container.captions[data-v-6d545532]{margin-bottom:40px}#app .image-container .captionHeader[data-v-6d545532]{font-size:20px;text-align:center;display:block;margin-bottom:10px}#app .image-container .caption[data-v-6d545532]{font-size:13px;font-style:italic;text-align:center;display:block;margin-bottom:10px}#app .image-container .copyright[data-v-6d545532]{font-size:10px;line-height:10px;margin-top:10px;text-align:center;display:block;margin-bottom:10px}
|