50p82u21t54k 0.0.14 → 0.0.16

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.
Files changed (43) hide show
  1. package/dist/50p82u21t54k.es.js +65 -47
  2. package/dist/50p82u21t54k.umd.js +1 -1
  3. package/dist/announcement/method.d.ts.map +1 -1
  4. package/dist/gKey/method.d.ts +1 -0
  5. package/dist/gKey/method.d.ts.map +1 -1
  6. package/dist/index.d.ts +9 -6
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/language/index.d.ts.map +1 -0
  9. package/dist/language/method.d.ts +4 -0
  10. package/dist/language/method.d.ts.map +1 -0
  11. package/dist/language/type.d.ts +12 -0
  12. package/dist/language/type.d.ts.map +1 -0
  13. package/dist/platforms/index.d.ts.map +1 -0
  14. package/dist/platforms/method.d.ts.map +1 -0
  15. package/dist/platforms/type.d.ts.map +1 -0
  16. package/dist/plugin.d.ts +2 -5
  17. package/dist/plugin.d.ts.map +1 -1
  18. package/dist/products/index.d.ts.map +1 -0
  19. package/dist/products/method.d.ts.map +1 -0
  20. package/dist/products/type.d.ts.map +1 -0
  21. package/dist/promotions/index.d.ts +3 -0
  22. package/dist/promotions/index.d.ts.map +1 -0
  23. package/dist/promotions/method.d.ts.map +1 -0
  24. package/dist/promotions/type.d.ts.map +1 -0
  25. package/package.json +1 -1
  26. package/dist/platform/index.d.ts.map +0 -1
  27. package/dist/platform/method.d.ts.map +0 -1
  28. package/dist/platform/type.d.ts.map +0 -1
  29. package/dist/product/index.d.ts.map +0 -1
  30. package/dist/product/method.d.ts.map +0 -1
  31. package/dist/product/type.d.ts.map +0 -1
  32. package/dist/promotion/index.d.ts.map +0 -1
  33. package/dist/promotion/method.d.ts.map +0 -1
  34. package/dist/promotion/type.d.ts.map +0 -1
  35. /package/dist/{platform → language}/index.d.ts +0 -0
  36. /package/dist/{product → platforms}/index.d.ts +0 -0
  37. /package/dist/{platform → platforms}/method.d.ts +0 -0
  38. /package/dist/{platform → platforms}/type.d.ts +0 -0
  39. /package/dist/{promotion → products}/index.d.ts +0 -0
  40. /package/dist/{product → products}/method.d.ts +0 -0
  41. /package/dist/{product → products}/type.d.ts +0 -0
  42. /package/dist/{promotion → promotions}/method.d.ts +0 -0
  43. /package/dist/{promotion → promotions}/type.d.ts +0 -0
@@ -1,6 +1,7 @@
1
1
  import d from "axios";
2
- import o from "crypto-js";
3
- const c = d.create({
2
+ import { ref as m } from "vue";
3
+ import c from "crypto-js";
4
+ const o = d.create({
4
5
  baseURL: "/apis",
5
6
  timeout: 5e3,
6
7
  // Request timeout
@@ -46,12 +47,12 @@ const c = d.create({
46
47
  // },
47
48
  // },
48
49
  });
49
- c.interceptors.request.use(
50
+ o.interceptors.request.use(
50
51
  (e) => e,
51
52
  (e) => (console.error("Error request:", e.response), Promise.reject(e))
52
53
  );
53
- c.interceptors.response.use(
54
- (e) => (console.log("Response:", e), e),
54
+ o.interceptors.response.use(
55
+ (e) => e,
55
56
  (e) => {
56
57
  const s = {
57
58
  status: null,
@@ -60,44 +61,37 @@ c.interceptors.response.use(
60
61
  return e.response ? (s.status = e.response.status, s.message = e.response.data.message || e.response.statusText, console.error("Error response:", JSON.stringify(s)), e.response.status === 401 ? console.error("Unauthorized access - redirecting to login.") : e.response.status === 404 ? console.error("Resource not found.") : e.response.status >= 500 && console.error("Server error. Please try again later.")) : e.request ? console.error("No response received:", e.request) : console.error("Error setting up request:", e.message), Promise.reject(s);
61
62
  }
62
63
  );
63
- let i = "";
64
- function p(e) {
65
- i = e;
66
- }
67
- function m() {
68
- return i;
69
- }
70
- function n() {
71
- return i === "" ? 0 : 1;
64
+ const i = m("");
65
+ function a() {
66
+ return i.value === "" ? 0 : 1;
72
67
  }
73
68
  const f = {
74
- install(e) {
75
- e.provide("setRepositoryGKey", p);
69
+ install() {
76
70
  }
77
71
  }, u = (e) => {
78
72
  try {
79
73
  const s = JSON.parse(
80
- o.AES.decrypt(e, m(), {
74
+ c.AES.decrypt(e, i.value, {
81
75
  format: {
82
76
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
83
77
  stringify: (t) => {
84
78
  const r = {
85
- ct: t.ciphertext.toString(o.enc.Base64)
79
+ ct: t.ciphertext.toString(c.enc.Base64)
86
80
  };
87
81
  return t.iv && (r.iv = t.iv.toString()), t.salt && (r.s = t.salt.toString()), JSON.stringify(r);
88
82
  },
89
83
  parse: (t) => {
90
- const r = JSON.parse(t), a = o.lib.CipherParams.create({
91
- ciphertext: o.enc.Base64.parse(r.ct)
84
+ const r = JSON.parse(t), n = c.lib.CipherParams.create({
85
+ ciphertext: c.enc.Base64.parse(r.ct)
92
86
  });
93
- return r.iv && (a.iv = o.enc.Hex.parse(r.iv)), r.s && (a.salt = o.enc.Hex.parse(r.s)), a;
87
+ return r.iv && (n.iv = c.enc.Hex.parse(r.iv)), r.s && (n.salt = c.enc.Hex.parse(r.s)), n;
94
88
  }
95
89
  }
96
- }).toString(o.enc.Utf8)
90
+ }).toString(c.enc.Utf8)
97
91
  );
98
92
  return s !== "" ? JSON.parse(s) : s;
99
93
  } catch (s) {
100
- return console.log(s), "";
94
+ return console.error(s), "";
101
95
  }
102
96
  };
103
97
  async function y() {
@@ -107,13 +101,13 @@ async function y() {
107
101
  data: []
108
102
  };
109
103
  try {
110
- const s = await c.get("/products", {
104
+ const s = await o.get("/products", {
111
105
  params: {
112
- render: n()
106
+ render: a()
113
107
  }
114
108
  });
115
109
  let t;
116
- return n() ? t = u(s.data) : t = s.data, t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.data, e);
110
+ return a() ? t = u(s.data) : t = s.data, t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.data, e);
117
111
  } catch (s) {
118
112
  const t = s;
119
113
  return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
@@ -126,13 +120,13 @@ async function _() {
126
120
  data: []
127
121
  };
128
122
  try {
129
- const s = await c.get("/platforms", {
123
+ const s = await o.get("/platforms", {
130
124
  params: {
131
- render: n()
125
+ render: a()
132
126
  }
133
127
  });
134
128
  let t;
135
- return n() ? t = u(s.data) : t = s.data, t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.data, e);
129
+ return a() ? t = u(s.data) : t = s.data, t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.data, e);
136
130
  } catch (s) {
137
131
  const t = s;
138
132
  return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
@@ -145,13 +139,13 @@ async function x() {
145
139
  data: []
146
140
  };
147
141
  try {
148
- const s = await c.get("/announcements", {
142
+ const s = await o.get("/announcements", {
149
143
  params: {
150
- render: n()
144
+ render: a()
151
145
  }
152
146
  });
153
147
  let t;
154
- return n() ? t = u(s.data) : t = s.data, t.code != 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.data.map((r) => ({
148
+ return a() ? t = u(s.data) : t = s.data, t.code != 200 ? (e.status = t.code, e.message = t.message, e) : (console.log(t), e.data = t.results.data.map((r) => ({
155
149
  alert: r.alert === "1",
156
150
  announcement_content: r.announcement_content,
157
151
  date_created: r.date_created
@@ -161,16 +155,19 @@ async function x() {
161
155
  return e.status = t.status || 500, e.message = "", e;
162
156
  }
163
157
  }
164
- async function S() {
158
+ async function S(e) {
159
+ i.value = e;
160
+ }
161
+ async function h() {
165
162
  const e = {
166
163
  status: 200,
167
164
  message: "",
168
165
  data: ""
169
166
  };
170
167
  try {
171
- const t = (await c.get("/getGKey", {
168
+ const t = (await o.get("/getGKey", {
172
169
  params: {
173
- render: n()
170
+ render: a()
174
171
  }
175
172
  })).data;
176
173
  return t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.gkey, e);
@@ -179,29 +176,29 @@ async function S() {
179
176
  return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
180
177
  }
181
178
  }
182
- async function h() {
179
+ async function A() {
183
180
  const e = {
184
181
  status: 200,
185
182
  message: "",
186
183
  data: []
187
184
  };
188
185
  try {
189
- const s = await c.get("/promotions", {
186
+ const s = await o.get("/promotions", {
190
187
  params: {
191
- render: n()
188
+ render: a()
192
189
  }
193
190
  });
194
191
  let t;
195
- return n() ? t = u(s.data) : t = s.data, t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.data.map((r) => ({
192
+ return a() ? t = u(s.data) : t = s.data, t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (console.log(t), e.data = t.results.data.map((r) => ({
196
193
  cat_id: r.cat_id,
197
194
  name: r.name,
198
195
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
199
- promo_list: r.promo_list.map((a) => ({
200
- promo_title: a.promo_title,
201
- start_time: a.start_time ?? "",
202
- end_time: a.end_time ?? "",
203
- img_path: a.img_path,
204
- content: a.content
196
+ promo_list: r.promo_list.map((n) => ({
197
+ promo_title: n.promo_title,
198
+ start_time: n.start_time ?? "",
199
+ end_time: n.end_time ?? "",
200
+ img_path: n.img_path,
201
+ content: n.content
205
202
  }))
206
203
  })), e);
207
204
  } catch (s) {
@@ -209,11 +206,32 @@ async function h() {
209
206
  return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
210
207
  }
211
208
  }
209
+ async function w() {
210
+ const e = {
211
+ status: 200,
212
+ message: "",
213
+ data: []
214
+ };
215
+ try {
216
+ const s = await o.get("/getLangList", {
217
+ params: {
218
+ render: a()
219
+ }
220
+ });
221
+ let t;
222
+ return a() ? t = u(s.data) : t = s.data, t.code !== 200 && (e.status = t.code, e.message = t.message), e;
223
+ } catch (s) {
224
+ const t = s;
225
+ return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
226
+ }
227
+ }
212
228
  export {
213
229
  f as Repository,
214
230
  x as getAnnouncement,
215
- S as getGKey,
231
+ h as getGKey,
232
+ w as getLanguageList,
216
233
  _ as getPlatforms,
217
234
  y as getProducts,
218
- h as getPromotions
235
+ A as getPromotions,
236
+ S as setGKey
219
237
  };
@@ -1 +1 @@
1
- (function(n,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("axios"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","crypto-js"],i):(n=typeof globalThis<"u"?globalThis:n||self,i(n["50p82u21t54k"]={},n.axios,n.CryptoJS))})(this,function(n,i,c){"use strict";const u=i.create({baseURL:"/apis",timeout:5e3,headers:{"Content-Type":"application/json"}});u.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),u.interceptors.response.use(e=>(console.log("Response:",e),e),e=>{const s={status:null,message:"An error occurred"};return e.response?(s.status=e.response.status,s.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(s)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(s)});let g="";function m(e){g=e}function p(){return g}function a(){return g===""?0:1}const l={install(e){e.provide("setRepositoryGKey",m)}},d=e=>{try{const s=JSON.parse(c.AES.decrypt(e,p(),{format:{stringify:t=>{const r={ct:t.ciphertext.toString(c.enc.Base64)};return t.iv&&(r.iv=t.iv.toString()),t.salt&&(r.s=t.salt.toString()),JSON.stringify(r)},parse:t=>{const r=JSON.parse(t),o=c.lib.CipherParams.create({ciphertext:c.enc.Base64.parse(r.ct)});return r.iv&&(o.iv=c.enc.Hex.parse(r.iv)),r.s&&(o.salt=c.enc.Hex.parse(r.s)),o}}}).toString(c.enc.Utf8));return s!==""?JSON.parse(s):s}catch(s){return console.log(s),""}};async function f(){const e={status:200,message:"",data:[]};try{const s=await u.get("/products",{params:{render:a()}});let t;return a()?t=d(s.data):t=s.data,t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.data,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}async function y(){const e={status:200,message:"",data:[]};try{const s=await u.get("/platforms",{params:{render:a()}});let t;return a()?t=d(s.data):t=s.data,t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.data,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}async function _(){const e={status:200,message:"",data:[]};try{const s=await u.get("/announcements",{params:{render:a()}});let t;return a()?t=d(s.data):t=s.data,t.code!=200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.data.map(r=>({alert:r.alert==="1",announcement_content:r.announcement_content,date_created:r.date_created})),e)}catch(s){const t=s;return e.status=t.status||500,e.message="",e}}async function h(){const e={status:200,message:"",data:""};try{const t=(await u.get("/getGKey",{params:{render:a()}})).data;return t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.gkey,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}async function x(){const e={status:200,message:"",data:[]};try{const s=await u.get("/promotions",{params:{render:a()}});let t;return a()?t=d(s.data):t=s.data,t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.data.map(r=>({cat_id:r.cat_id,name:r.name,promo_list:r.promo_list.map(o=>({promo_title:o.promo_title,start_time:o.start_time??"",end_time:o.end_time??"",img_path:o.img_path,content:o.content}))})),e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}n.Repository=l,n.getAnnouncement=_,n.getGKey=h,n.getPlatforms=y,n.getProducts=f,n.getPromotions=x,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
1
+ (function(a,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("axios"),require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","vue","crypto-js"],i):(a=typeof globalThis<"u"?globalThis:a||self,i(a["50p82u21t54k"]={},a.axios,a.Vue,a.CryptoJS))})(this,function(a,i,m,u){"use strict";const c=i.create({baseURL:"/apis",timeout:5e3,headers:{"Content-Type":"application/json"}});c.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),c.interceptors.response.use(e=>e,e=>{const s={status:null,message:"An error occurred"};return e.response?(s.status=e.response.status,s.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(s)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(s)});const g=m.ref("");function n(){return g.value===""?0:1}const l={install(){}},d=e=>{try{const s=JSON.parse(u.AES.decrypt(e,g.value,{format:{stringify:t=>{const r={ct:t.ciphertext.toString(u.enc.Base64)};return t.iv&&(r.iv=t.iv.toString()),t.salt&&(r.s=t.salt.toString()),JSON.stringify(r)},parse:t=>{const r=JSON.parse(t),o=u.lib.CipherParams.create({ciphertext:u.enc.Base64.parse(r.ct)});return r.iv&&(o.iv=u.enc.Hex.parse(r.iv)),r.s&&(o.salt=u.enc.Hex.parse(r.s)),o}}}).toString(u.enc.Utf8));return s!==""?JSON.parse(s):s}catch(s){return console.error(s),""}};async function p(){const e={status:200,message:"",data:[]};try{const s=await c.get("/products",{params:{render:n()}});let t;return n()?t=d(s.data):t=s.data,t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.data,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}async function f(){const e={status:200,message:"",data:[]};try{const s=await c.get("/platforms",{params:{render:n()}});let t;return n()?t=d(s.data):t=s.data,t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.data,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}async function y(){const e={status:200,message:"",data:[]};try{const s=await c.get("/announcements",{params:{render:n()}});let t;return n()?t=d(s.data):t=s.data,t.code!=200?(e.status=t.code,e.message=t.message,e):(console.log(t),e.data=t.results.data.map(r=>({alert:r.alert==="1",announcement_content:r.announcement_content,date_created:r.date_created})),e)}catch(s){const t=s;return e.status=t.status||500,e.message="",e}}async function _(e){g.value=e}async function h(){const e={status:200,message:"",data:""};try{const t=(await c.get("/getGKey",{params:{render:n()}})).data;return t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.gkey,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}async function j(){const e={status:200,message:"",data:[]};try{const s=await c.get("/promotions",{params:{render:n()}});let t;return n()?t=d(s.data):t=s.data,t.code!==200?(e.status=t.code,e.message=t.message,e):(console.log(t),e.data=t.results.data.map(r=>({cat_id:r.cat_id,name:r.name,promo_list:r.promo_list.map(o=>({promo_title:o.promo_title,start_time:o.start_time??"",end_time:o.end_time??"",img_path:o.img_path,content:o.content}))})),e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}async function x(){const e={status:200,message:"",data:[]};try{const s=await c.get("/getLangList",{params:{render:n()}});let t;return n()?t=d(s.data):t=s.data,t.code!==200&&(e.status=t.code,e.message=t.message),e}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}a.Repository=l,a.getAnnouncement=y,a.getGKey=h,a.getLanguageList=x,a.getPlatforms=f,a.getProducts=p,a.getPromotions=j,a.setGKey=_,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
@@ -1 +1 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/announcement/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,wBAAsB,eAAe,IAAI,OAAO,CAAC,oBAAoB,CAAC,CA4CrE"}
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/announcement/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,wBAAsB,eAAe,IAAI,OAAO,CAAC,oBAAoB,CAAC,CA8CrE"}
@@ -1,4 +1,5 @@
1
1
  import { GetGKeyResponse } from './type';
2
2
 
3
+ export declare function setGKey(key: string): Promise<void>;
3
4
  export declare function getGKey(): Promise<GetGKeyResponse>;
4
5
  //# sourceMappingURL=method.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/gKey/method.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAExC,wBAAsB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,CA+BxD"}
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/gKey/method.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAGxC,wBAAsB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAExD;AAED,wBAAsB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,CA+BxD"}
package/dist/index.d.ts CHANGED
@@ -1,19 +1,22 @@
1
- export * from './product';
2
- export * from './platform';
1
+ export * from './products';
2
+ export * from './platforms';
3
3
  export * from './announcement';
4
4
  export * from './gKey';
5
- export * from './promotion';
5
+ export * from './promotions';
6
+ export * from './language';
6
7
  export { default as Repository } from './plugin';
7
- import * as products from './product';
8
- import * as platforms from './platform';
8
+ import * as products from './products';
9
+ import * as platforms from './platforms';
9
10
  import * as announcement from './announcement';
10
11
  import * as gKey from './gKey';
11
- import * as promotions from './promotion';
12
+ import * as promotions from './promotions';
13
+ import * as language from './language';
12
14
  export type RepositoryType = {
13
15
  products: typeof products;
14
16
  platforms: typeof platforms;
15
17
  announcement: typeof announcement;
16
18
  gKey: typeof gKey;
17
19
  promotions: typeof promotions;
20
+ language: typeof language;
18
21
  };
19
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAEhD,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAA;AACrC,OAAO,KAAK,SAAS,MAAM,YAAY,CAAA;AACvC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,UAAU,MAAM,aAAa,CAAA;AAEzC,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,SAAS,EAAE,OAAO,SAAS,CAAA;IAC3B,YAAY,EAAE,OAAO,YAAY,CAAA;IACjC,IAAI,EAAE,OAAO,IAAI,CAAA;IACjB,UAAU,EAAE,OAAO,UAAU,CAAA;CAC9B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAEhD,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAA;AAEtC,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,SAAS,EAAE,OAAO,SAAS,CAAA;IAC3B,YAAY,EAAE,OAAO,YAAY,CAAA;IACjC,IAAI,EAAE,OAAO,IAAI,CAAA;IACjB,UAAU,EAAE,OAAO,UAAU,CAAA;IAC7B,QAAQ,EAAE,OAAO,QAAQ,CAAA;CAC1B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/language/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { GetLanguageListResponse } from './type';
2
+
3
+ export declare function getLanguageList(): Promise<GetLanguageListResponse>;
4
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/language/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAA;AAEhD,wBAAsB,eAAe,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAiDxE"}
@@ -0,0 +1,12 @@
1
+ import { BaseType } from '../util/type';
2
+
3
+ export type GetLanguageListResponse = BaseType & {
4
+ data: string[];
5
+ };
6
+ export type LocaleList = {
7
+ [key: string]: Locale;
8
+ };
9
+ export type Locale = {
10
+ label: string;
11
+ };
12
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/language/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG;IAC/C,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platforms/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/platforms/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAE1C,wBAAsB,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC,CA2C/D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/platforms/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG;IACzC,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
package/dist/plugin.d.ts CHANGED
@@ -1,10 +1,7 @@
1
- import { App } from 'vue';
2
-
3
- export declare function setGKey(key: string): void;
4
- export declare function getGKey(): string;
1
+ export declare const gKey: import('vue').Ref<string>;
5
2
  export declare function getRender(): number;
6
3
  declare const _default: {
7
- install(app: App): void;
4
+ install(): void;
8
5
  };
9
6
  export default _default;
10
7
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAIzB,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED,wBAAgB,OAAO,IAAI,MAAM,CAEhC;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;;iBAGc,GAAG;;AADlB,wBAIC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,2BAAU,CAAA;AAE3B,wBAAgB,SAAS,IAAI,MAAM,CAElC;;;;AAED,wBAEC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/products/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/products/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEzC,wBAAsB,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC,CA2C7D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/products/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,IAAI,EAAE,OAAO,EAAE,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,EAAE,CAAA;IACnB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './method';
2
+ export * from './type';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promotions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/promotions/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,wBAAsB,aAAa,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAuDjE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/promotions/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG;IAC1C,IAAI,EAAE,kBAAkB,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,sBAAsB,EAAE,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "50p82u21t54k",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "A description of your library",
5
5
  "main": "dist/50p82u21t54k.umd.js",
6
6
  "module": "dist/50p82u21t54k.es.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/platform/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAE1C,wBAAsB,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC,CA2C/D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/platform/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG;IACzC,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/product/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEzC,wBAAsB,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC,CA2C7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/product/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,IAAI,EAAE,OAAO,EAAE,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,EAAE,CAAA;IACnB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promotion/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/promotion/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,wBAAsB,aAAa,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAqDjE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/promotion/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG;IAC1C,IAAI,EAAE,kBAAkB,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,sBAAsB,EAAE,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes