50p82u21t54k 0.0.17 → 0.0.18
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/50p82u21t54k.es.js +166 -0
- package/dist/50p82u21t54k.umd.js +1 -0
- package/dist/fishGames/method.d.ts +1 -0
- package/dist/fishGames/type.d.ts +2 -1
- package/dist/getSetting/method.d.ts +1 -0
- package/dist/getSetting/type.d.ts +2 -1
- package/dist/home/method.d.ts +1 -0
- package/dist/home/type.d.ts +4 -3
- package/dist/hotGames/method.d.ts +1 -0
- package/dist/hotGames/type.d.ts +2 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/legacy/announcement/method.d.ts +1 -0
- package/dist/legacy/announcement/type.d.ts +1 -0
- package/dist/legacy/gKey/method.d.ts +1 -0
- package/dist/legacy/gKey/type.d.ts +1 -0
- package/dist/legacy/language/method.d.ts +1 -0
- package/dist/legacy/language/type.d.ts +1 -0
- package/dist/legacy/platforms/method.d.ts +1 -0
- package/dist/legacy/platforms/type.d.ts +2 -1
- package/dist/legacy/platforms/type.d.ts.map +1 -1
- package/dist/legacy/products/method.d.ts +1 -0
- package/dist/legacy/products/type.d.ts +2 -1
- package/dist/legacy/products/type.d.ts.map +1 -1
- package/dist/legacy/promotions/method.d.ts +1 -0
- package/dist/legacy/promotions/type.d.ts +2 -1
- package/dist/legacy/promotions/type.d.ts.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/trialGames/method.d.ts +1 -0
- package/dist/trialGames/type.d.ts +2 -1
- package/dist/util/axiosConfig.d.ts +1 -1
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import p from "axios";
|
|
2
|
+
import { ref as g } from "vue";
|
|
3
|
+
import n from "crypto-js";
|
|
4
|
+
const o = p.create({
|
|
5
|
+
baseURL: "/apis",
|
|
6
|
+
timeout: 5e3,
|
|
7
|
+
// Request timeout
|
|
8
|
+
headers: {
|
|
9
|
+
"Content-Type": "application/json"
|
|
10
|
+
}
|
|
11
|
+
// params: { apiKey: 'your-api-key' }, // Default query parameters that will be sent with each request.
|
|
12
|
+
// auth: { username: 'user', password: 'pass' }, // Basic authentication credentials.
|
|
13
|
+
// responseEncoding: 'utf8', // Indicates the encoding to use for the response.
|
|
14
|
+
// responseType: 'json', // Specifies the type of data the server will respond with.
|
|
15
|
+
// xsrfCookieName: 'XSRF-TOKEN', // The name of the cookie to use as a value for the xsrf token.
|
|
16
|
+
// xsrfHeaderName: 'X-XSRF-TOKEN', // The name of the HTTP header that carries the xsrf token value.
|
|
17
|
+
// maxContentLength: 2000, // The maximum size of the HTTP response content in bytes allowed.
|
|
18
|
+
// maxBodyLength: 2000, // The maximum size of the request body in bytes allowed.
|
|
19
|
+
// // Allows changes to the request data before it is sent to the server.
|
|
20
|
+
// transformRequest: [
|
|
21
|
+
// (data, headers) => {
|
|
22
|
+
// console.log(headers)
|
|
23
|
+
// console.log(data)
|
|
24
|
+
// // Modify data and headers here
|
|
25
|
+
// return data
|
|
26
|
+
// },
|
|
27
|
+
// ],
|
|
28
|
+
// // Allows changes to the response data before it is passed to then or catch.
|
|
29
|
+
// transformResponse: [
|
|
30
|
+
// (data) => {
|
|
31
|
+
// // Modify data here
|
|
32
|
+
// return data
|
|
33
|
+
// },
|
|
34
|
+
// ],
|
|
35
|
+
// // Custom function to validate the response status code.
|
|
36
|
+
// validateStatus: (status) => {
|
|
37
|
+
// return status >= 200 && status < 300 // default
|
|
38
|
+
// },
|
|
39
|
+
// withCredentials: true, // Indicates whether or not cross-site Access-Control requests should be made using credentials.
|
|
40
|
+
// // Defines the proxy server settings.
|
|
41
|
+
// proxy: {
|
|
42
|
+
// host: '127.0.0.1',
|
|
43
|
+
// port: 9000,
|
|
44
|
+
// auth: {
|
|
45
|
+
// username: 'proxyuser',
|
|
46
|
+
// password: 'proxypass',
|
|
47
|
+
// },
|
|
48
|
+
// },
|
|
49
|
+
});
|
|
50
|
+
o.interceptors.request.use(
|
|
51
|
+
(e) => e,
|
|
52
|
+
(e) => (console.error("Error request:", e.response), Promise.reject(e))
|
|
53
|
+
);
|
|
54
|
+
o.interceptors.response.use(
|
|
55
|
+
(e) => e,
|
|
56
|
+
(e) => {
|
|
57
|
+
const s = {
|
|
58
|
+
status: null,
|
|
59
|
+
message: "An error occurred"
|
|
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);
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
const u = g("");
|
|
65
|
+
function a() {
|
|
66
|
+
return u.value === "" ? 0 : 1;
|
|
67
|
+
}
|
|
68
|
+
const f = {
|
|
69
|
+
install() {
|
|
70
|
+
}
|
|
71
|
+
}, i = (e) => {
|
|
72
|
+
try {
|
|
73
|
+
const s = JSON.parse(
|
|
74
|
+
n.AES.decrypt(e, u.value, {
|
|
75
|
+
format: {
|
|
76
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
77
|
+
stringify: (t) => {
|
|
78
|
+
const r = {
|
|
79
|
+
ct: t.ciphertext.toString(n.enc.Base64)
|
|
80
|
+
};
|
|
81
|
+
return t.iv && (r.iv = t.iv.toString()), t.salt && (r.s = t.salt.toString()), JSON.stringify(r);
|
|
82
|
+
},
|
|
83
|
+
parse: (t) => {
|
|
84
|
+
const r = JSON.parse(t), c = n.lib.CipherParams.create({
|
|
85
|
+
ciphertext: n.enc.Base64.parse(r.ct)
|
|
86
|
+
});
|
|
87
|
+
return r.iv && (c.iv = n.enc.Hex.parse(r.iv)), r.s && (c.salt = n.enc.Hex.parse(r.s)), c;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}).toString(n.enc.Utf8)
|
|
91
|
+
);
|
|
92
|
+
return s !== "" ? JSON.parse(s) : s;
|
|
93
|
+
} catch (s) {
|
|
94
|
+
return console.error(s), "";
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
async function y() {
|
|
98
|
+
const e = {
|
|
99
|
+
status: 200,
|
|
100
|
+
message: "",
|
|
101
|
+
data: []
|
|
102
|
+
};
|
|
103
|
+
try {
|
|
104
|
+
const s = await o.get("/announcements", {
|
|
105
|
+
params: {
|
|
106
|
+
render: a()
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
let t;
|
|
110
|
+
return a() ? t = i(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) => ({
|
|
111
|
+
alert: r.alert === "1",
|
|
112
|
+
announcement_content: r.announcement_content,
|
|
113
|
+
date_created: r.date_created
|
|
114
|
+
})), e);
|
|
115
|
+
} catch (s) {
|
|
116
|
+
const t = s;
|
|
117
|
+
return e.status = t.status || 500, e.message = "", e;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
async function S(e) {
|
|
121
|
+
u.value = e;
|
|
122
|
+
}
|
|
123
|
+
async function x() {
|
|
124
|
+
const e = {
|
|
125
|
+
status: 200,
|
|
126
|
+
message: "",
|
|
127
|
+
data: ""
|
|
128
|
+
};
|
|
129
|
+
try {
|
|
130
|
+
const t = (await o.get("/getGKey", {
|
|
131
|
+
params: {
|
|
132
|
+
render: a()
|
|
133
|
+
}
|
|
134
|
+
})).data;
|
|
135
|
+
return t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.gkey, e);
|
|
136
|
+
} catch (s) {
|
|
137
|
+
const t = s;
|
|
138
|
+
return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
async function v() {
|
|
142
|
+
const e = {
|
|
143
|
+
status: 200,
|
|
144
|
+
message: "",
|
|
145
|
+
data: []
|
|
146
|
+
};
|
|
147
|
+
try {
|
|
148
|
+
const s = await o.get("/getLangList", {
|
|
149
|
+
params: {
|
|
150
|
+
render: a()
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
let t;
|
|
154
|
+
return a() ? t = i(s.data) : t = s.data, t.code !== 200 && (e.status = t.code, e.message = t.message), e;
|
|
155
|
+
} catch (s) {
|
|
156
|
+
const t = s;
|
|
157
|
+
return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
export {
|
|
161
|
+
f as Repository,
|
|
162
|
+
y as getAnnouncement,
|
|
163
|
+
x as getGKey,
|
|
164
|
+
v as getLanguageList,
|
|
165
|
+
S as setGKey
|
|
166
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(r,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("axios"),require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","vue","crypto-js"],o):(r=typeof globalThis<"u"?globalThis:r||self,o(r["50p82u21t54k"]={},r.axios,r.Vue,r.CryptoJS))})(this,function(r,o,p,a){"use strict";const c=o.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 i=p.ref("");function u(){return i.value===""?0:1}const l={install(){}},g=e=>{try{const s=JSON.parse(a.AES.decrypt(e,i.value,{format:{stringify:t=>{const n={ct:t.ciphertext.toString(a.enc.Base64)};return t.iv&&(n.iv=t.iv.toString()),t.salt&&(n.s=t.salt.toString()),JSON.stringify(n)},parse:t=>{const n=JSON.parse(t),d=a.lib.CipherParams.create({ciphertext:a.enc.Base64.parse(n.ct)});return n.iv&&(d.iv=a.enc.Hex.parse(n.iv)),n.s&&(d.salt=a.enc.Hex.parse(n.s)),d}}}).toString(a.enc.Utf8));return s!==""?JSON.parse(s):s}catch(s){return console.error(s),""}};async function f(){const e={status:200,message:"",data:[]};try{const s=await c.get("/announcements",{params:{render:u()}});let t;return u()?t=g(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(n=>({alert:n.alert==="1",announcement_content:n.announcement_content,date_created:n.date_created})),e)}catch(s){const t=s;return e.status=t.status||500,e.message="",e}}async function m(e){i.value=e}async function y(){const e={status:200,message:"",data:""};try{const t=(await c.get("/getGKey",{params:{render:u()}})).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 v(){const e={status:200,message:"",data:[]};try{const s=await c.get("/getLangList",{params:{render:u()}});let t;return u()?t=g(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}}r.Repository=l,r.getAnnouncement=f,r.getGKey=y,r.getLanguageList=v,r.setGKey=m,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|
package/dist/fishGames/type.d.ts
CHANGED
package/dist/home/method.d.ts
CHANGED
package/dist/home/type.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { FishGamesResponse } from '
|
|
2
|
-
import { HotGamesResponse } from '
|
|
3
|
-
import { BaseType } from '
|
|
1
|
+
import { FishGamesResponse } from '../fishGames';
|
|
2
|
+
import { HotGamesResponse } from '../hotGames';
|
|
3
|
+
import { BaseType } from '../util/type';
|
|
4
|
+
|
|
4
5
|
export type HomeResponse = BaseType & {
|
|
5
6
|
game: Game;
|
|
6
7
|
mobileBanner: MobileBanner[];
|
package/dist/hotGames/type.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -5,9 +5,11 @@ export { default as Repository } from './plugin';
|
|
|
5
5
|
import * as announcement from './legacy/announcement';
|
|
6
6
|
import * as gKey from './legacy/gKey';
|
|
7
7
|
import * as language from './legacy/language';
|
|
8
|
+
import * as home from './home';
|
|
8
9
|
export type RepositoryType = {
|
|
9
10
|
announcement: typeof announcement;
|
|
10
11
|
gKey: typeof gKey;
|
|
11
12
|
language: typeof language;
|
|
13
|
+
home: typeof home;
|
|
12
14
|
};
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,uBAAuB,CAAA;AACrC,cAAc,eAAe,CAAA;AAE7B,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAIhD,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAA;AACrD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AAErC,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,uBAAuB,CAAA;AACrC,cAAc,eAAe,CAAA;AAE7B,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAIhD,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAA;AACrD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AAErC,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAC7C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,MAAM,MAAM,cAAc,GAAG;IAG3B,YAAY,EAAE,OAAO,YAAY,CAAA;IACjC,IAAI,EAAE,OAAO,IAAI,CAAA;IAEjB,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,IAAI,EAAE,OAAO,IAAI,CAAA;CAClB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/platforms/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/platforms/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/products/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/products/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/promotions/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/promotions/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,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/dist/plugin.d.ts
CHANGED
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|