labmaker-plugin 0.0.10-dev → 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,66 +1,39 @@
1
- import { openBlock as s, createElementBlock as c, Fragment as u, createElementVNode as n, toDisplayString as p, normalizeClass as m, createCommentVNode as l } from "vue";
2
- const _ = (e, o) => {
3
- const t = e.__vccOpts || e;
4
- for (const [i, a] of o)
5
- t[i] = a;
6
- return t;
7
- }, g = {
8
- props: ["custom-img"],
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
+ const e = t.__vccOpts || t;
4
+ for (const [a, s] of o)
5
+ e[a] = s;
6
+ return e;
7
+ }, p = {
8
+ props: ["title"],
9
9
  data() {
10
- return {
11
- imgSRC: this.customImg
12
- };
10
+ return {};
13
11
  },
14
12
  computed: {},
15
- methods: {
16
- fileUpload(e) {
17
- const t = e.target.files[0];
18
- this.fileProcess(t);
19
- },
20
- fileProcess(e) {
21
- this.imgSRC = URL.createObjectURL(e);
22
- }
23
- },
13
+ methods: {},
24
14
  mounted() {
25
15
  }
26
- }, h = /* @__PURE__ */ n("h1", null, "File Uploader", -1), f = { class: "image-uploader" }, y = /* @__PURE__ */ n("h1", null, "File Uploader", -1), v = { class: "your-file" }, L = ["src"];
27
- function H(e, o, t, i, a, r) {
28
- return s(), c(u, null, [
29
- h,
30
- n("div", f, [
31
- y,
32
- n("input", {
33
- onChange: o[0] || (o[0] = (...d) => r.fileUpload && r.fileUpload(...d)),
34
- type: "file",
35
- id: "file-upload",
36
- name: "fileUpload",
37
- accept: "image/*"
38
- }, null, 32),
39
- n("div", v, [
40
- n("img", {
41
- src: a.imgSRC,
42
- alt: "",
43
- scrset: ""
44
- }, null, 8, L)
45
- ])
46
- ])
47
- ], 64);
16
+ };
17
+ function m(t, o, e, a, s, _) {
18
+ return n(), c("header", null, [
19
+ r("h1", null, d(e.title), 1)
20
+ ]);
48
21
  }
49
- const U = /* @__PURE__ */ _(g, [["render", H]]);
50
- const $ = {
22
+ const h = /* @__PURE__ */ l(p, [["render", m]]);
23
+ const g = {
51
24
  props: ["title"],
52
25
  data() {
53
26
  return {};
54
27
  },
55
28
  computed: {}
56
29
  };
57
- function k(e, o, t, i, a, r) {
58
- return s(), c("header", null, [
59
- n("h1", null, p(t.title), 1)
30
+ function f(t, o, e, a, s, _) {
31
+ return n(), c("header", null, [
32
+ r("h1", null, d(e.title), 1)
60
33
  ]);
61
34
  }
62
- const x = /* @__PURE__ */ _($, [["render", k]]);
63
- const b = {
35
+ const y = /* @__PURE__ */ l(g, [["render", f]]);
36
+ const v = {
64
37
  props: ["content"],
65
38
  data() {
66
39
  return {};
@@ -71,8 +44,8 @@ const b = {
71
44
  }
72
45
  },
73
46
  methods: {
74
- pixelFormat(e) {
75
- return typeof e == "number" ? e + "px" : e;
47
+ pixelFormat(t) {
48
+ return typeof t == "number" ? t + "px" : t;
76
49
  },
77
50
  checkStepper() {
78
51
  this.$store.dispatch("lastPageFocus", {});
@@ -81,38 +54,38 @@ const b = {
81
54
  mounted() {
82
55
  this.checkStepper();
83
56
  }
84
- }, S = { class: "image-container" }, C = { class: "image" }, M = ["src", "alt"], P = ["innerHTML"], T = ["innerHTML"], F = ["innerHTML"];
85
- function R(e, o, t, i, a, r) {
86
- return s(), c("div", S, [
87
- n("div", C, [
88
- n("img", {
89
- src: t.content.src,
90
- alt: t.content.alt,
91
- class: m(t.content.class)
92
- }, null, 10, M),
93
- t.content.captionHeader ? (s(), c("span", {
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", {
62
+ src: e.content.src,
63
+ alt: e.content.alt,
64
+ class: u(e.content.class)
65
+ }, null, 10, k),
66
+ e.content.captionHeader ? (n(), c("span", {
94
67
  key: 0,
95
68
  class: "captionHeader",
96
- innerHTML: t.content.captionHeader
97
- }, null, 8, P)) : l("", !0),
98
- t.content.caption ? (s(), c("span", {
69
+ innerHTML: e.content.captionHeader
70
+ }, null, 8, x)) : i("", !0),
71
+ e.content.caption ? (n(), c("span", {
99
72
  key: 1,
100
73
  class: "caption",
101
- innerHTML: t.content.caption
102
- }, null, 8, T)) : l("", !0),
103
- t.content.copyright ? (s(), c("span", {
74
+ innerHTML: e.content.caption
75
+ }, null, 8, $)) : i("", !0),
76
+ e.content.copyright ? (n(), c("span", {
104
77
  key: 2,
105
- innerHTML: t.content.copyright,
78
+ innerHTML: e.content.copyright,
106
79
  class: "copyright"
107
- }, null, 8, F)) : l("", !0)
80
+ }, null, 8, b)) : i("", !0)
108
81
  ])
109
82
  ]);
110
83
  }
111
- const I = /* @__PURE__ */ _(b, [["render", R], ["__scopeId", "data-v-6d545532"]]), E = {
112
- install: (e, o) => {
113
- e.component("special-uploader", U), e.component("lab-header", x), e.component("lab-image", I);
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);
114
87
  }
115
88
  };
116
89
  export {
117
- E as default
90
+ S as default
118
91
  };
@@ -1 +1 @@
1
- (function(e,a){typeof exports=="object"&&typeof module<"u"?module.exports=a(require("vue")):typeof define=="function"&&define.amd?define(["vue"],a):(e=typeof globalThis<"u"?globalThis:e||self,e.LabmakerPlugin=a(e.Vue))})(this,function(e){"use strict";const a="",r=(t,o)=>{const n=t.__vccOpts||t;for(const[s,c]of o)n[s]=c;return n},i={props:["custom-img"],data(){return{imgSRC:this.customImg}},computed:{},methods:{fileUpload(t){const n=t.target.files[0];this.fileProcess(n)},fileProcess(t){this.imgSRC=URL.createObjectURL(t)}},mounted(){}},d=e.createElementVNode("h1",null,"File Uploader",-1),_={class:"image-uploader"},m=e.createElementVNode("h1",null,"File Uploader",-1),p={class:"your-file"},u=["src"];function f(t,o,n,s,c,l){return e.openBlock(),e.createElementBlock(e.Fragment,null,[d,e.createElementVNode("div",_,[m,e.createElementVNode("input",{onChange:o[0]||(o[0]=(...x)=>l.fileUpload&&l.fileUpload(...x)),type:"file",id:"file-upload",name:"fileUpload",accept:"image/*"},null,32),e.createElementVNode("div",p,[e.createElementVNode("img",{src:c.imgSRC,alt:"",scrset:""},null,8,u)])])],64)}const h=r(i,[["render",f]]),C="",g={props:["title"],data(){return{}},computed:{}};function k(t,o,n,s,c,l){return e.openBlock(),e.createElementBlock("header",null,[e.createElementVNode("h1",null,e.toDisplayString(n.title),1)])}const y=r(g,[["render",k]]),P="",E={props:["content"],data(){return{}},computed:{getLastPage(){return!!this.$store.getters.getLastPage}},methods:{pixelFormat(t){return typeof t=="number"?t+"px":t},checkStepper(){this.$store.dispatch("lastPageFocus",{})}},mounted(){this.checkStepper()}},L={class:"image-container"},V={class:"image"},B=["src","alt"],N=["innerHTML"],H=["innerHTML"],U=["innerHTML"];function $(t,o,n,s,c,l){return e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",V,[e.createElementVNode("img",{src:n.content.src,alt:n.content.alt,class:e.normalizeClass(n.content.class)},null,10,B),n.content.captionHeader?(e.openBlock(),e.createElementBlock("span",{key:0,class:"captionHeader",innerHTML:n.content.captionHeader},null,8,N)):e.createCommentVNode("",!0),n.content.caption?(e.openBlock(),e.createElementBlock("span",{key:1,class:"caption",innerHTML:n.content.caption},null,8,H)):e.createCommentVNode("",!0),n.content.copyright?(e.openBlock(),e.createElementBlock("span",{key:2,innerHTML:n.content.copyright,class:"copyright"},null,8,U)):e.createCommentVNode("",!0)])])}const b=r(E,[["render",$],["__scopeId","data-v-6d545532"]]);return{install:(t,o)=>{t.component("special-uploader",h),t.component("lab-header",y),t.component("lab-image",b)}}});
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.10-dev",
3
+ "version": "0.0.10",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"