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.
@@ -1,11 +1,39 @@
1
- import { openBlock as n, createElementBlock as c, createElementVNode as i, normalizeClass as _, createCommentVNode as o } from "vue";
2
- const l = (t, a) => {
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 [s, r] of a)
5
- e[s] = r;
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
- const d = {
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
- }, u = { class: "image-container" }, p = { class: "image" }, m = ["src", "alt"], g = ["innerHTML"], h = ["innerHTML"], y = ["innerHTML"];
30
- function f(t, a, e, s, r, L) {
31
- return n(), c("div", u, [
32
- i("div", p, [
33
- i("img", {
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: _(e.content.class)
37
- }, null, 10, m),
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, g)) : o("", !0),
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, h)) : o("", !0),
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, y)) : o("", !0)
80
+ }, null, 8, b)) : i("", !0)
53
81
  ])
54
82
  ]);
55
83
  }
56
- const v = /* @__PURE__ */ l(d, [["render", f], ["__scopeId", "data-v-6d545532"]]), H = {
57
- install: (t, a) => {
58
- t.component("lab-image", v);
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
- H as default
90
+ S as default
63
91
  };
@@ -1 +1 @@
1
- (function(e,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(e=typeof globalThis<"u"?globalThis:e||self,e.LabmakerPlugin=o(e.Vue))})(this,function(e){"use strict";const o="",i=(n,c)=>{const t=n.__vccOpts||n;for(const[a,s]of c)t[a]=s;return t},f="",k="",r={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()}},l={class:"image-container"},_={class:"image"},d=["src","alt"],m=["innerHTML"],p=["innerHTML"],u=["innerHTML"];function g(n,c,t,a,s,L){return e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("div",_,[e.createElementVNode("img",{src:t.content.src,alt:t.content.alt,class:e.normalizeClass(t.content.class)},null,10,d),t.content.captionHeader?(e.openBlock(),e.createElementBlock("span",{key:0,class:"captionHeader",innerHTML:t.content.captionHeader},null,8,m)):e.createCommentVNode("",!0),t.content.caption?(e.openBlock(),e.createElementBlock("span",{key:1,class:"caption",innerHTML:t.content.caption},null,8,p)):e.createCommentVNode("",!0),t.content.copyright?(e.openBlock(),e.createElementBlock("span",{key:2,innerHTML:t.content.copyright,class:"copyright"},null,8,u)):e.createCommentVNode("",!0)])])}const h=i(r,[["render",g],["__scopeId","data-v-6d545532"]]);return{install:(n,c)=>{n.component("lab-image",h)}}});
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
- .image-uploader{display:flex;flex-direction:column;align-items:center;border:1px solid gray;width:53%;background-color:#cecece;margin:0 auto;height:300px;box-shadow:#0000001a 0 4px 12px}.your-file{display:flex;justify-content:center;align-items:center;margin-top:20px}img{width:80%}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}
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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "labmaker-plugin",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"