first commit

This commit is contained in:
SnhAenIgseAl
2026-03-31 16:44:41 +08:00
parent dd513eda30
commit 7bde226505
219 changed files with 33046 additions and 9 deletions
+50
View File
@@ -0,0 +1,50 @@
"use strict";
var common_vendor = require("../common/vendor.js");
var stores_modules_rateLimit = require("../stores/modules/rateLimit.js");
const getRateLimitStore = async () => {
return stores_modules_rateLimit.useRateLimitStore();
};
const sleep = async (time) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve(true);
}, time);
});
};
const formatDate = (date) => {
const d = new Date(date);
const year = d.getFullYear();
const month = String(d.getMonth() + 1).padStart(2, "0");
const day = String(d.getDate()).padStart(2, "0");
const hour = String(d.getHours()).padStart(2, "0");
const minute = String(d.getMinutes()).padStart(2, "0");
const second = String(d.getSeconds()).padStart(2, "0");
return `${year}/${month}/${day} ${hour}:${minute}:${second}`;
};
const goTo = (url) => {
common_vendor.index.navigateTo({
url
});
};
const rateLimit = async (time, n, func) => {
const {
timestamps
} = common_vendor.storeToRefs(await getRateLimitStore());
return function(...args) {
const now = Date.now();
while (timestamps.value.length > 0 && timestamps.value[0] <= now - time) {
timestamps.value.shift();
}
if (timestamps.value.length >= n) {
return false;
}
timestamps.value.push(now);
console.log(timestamps.value);
func == null ? void 0 : func.apply(this, args);
return true;
};
};
exports.formatDate = formatDate;
exports.goTo = goTo;
exports.rateLimit = rateLimit;
exports.sleep = sleep;
+388
View File
@@ -0,0 +1,388 @@
"use strict";
const \u516D\u5341\u56DB\u5366 = [
{
"symbol": "\u9633\u9633\u9633\u9633\u9633\u9633",
"name": "\u4E7E\u4E3A\u5929",
"top": "\u4E7E",
"bottom": "\u4E7E"
},
{
"symbol": "\u9633\u9633\u9633\u9633\u9633\u9634",
"name": "\u6CFD\u5929\u592C",
"top": "\u5151",
"bottom": "\u4E7E"
},
{
"symbol": "\u9633\u9633\u9633\u9633\u9634\u9633",
"name": "\u706B\u5929\u5927\u6709",
"top": "\u79BB",
"bottom": "\u4E7E"
},
{
"symbol": "\u9633\u9633\u9633\u9633\u9634\u9634",
"name": "\u96F7\u5929\u5927\u58EE",
"top": "\u9707",
"bottom": "\u4E7E"
},
{
"symbol": "\u9633\u9633\u9633\u9634\u9633\u9633",
"name": "\u98CE\u5929\u5C0F\u755C",
"top": "\u5DFD",
"bottom": "\u4E7E"
},
{
"symbol": "\u9633\u9633\u9633\u9634\u9633\u9634",
"name": "\u6C34\u5929\u9700",
"top": "\u574E",
"bottom": "\u4E7E"
},
{
"symbol": "\u9633\u9633\u9633\u9634\u9634\u9633",
"name": "\u5C71\u5929\u5927\u755C",
"top": "\u826E",
"bottom": "\u4E7E"
},
{
"symbol": "\u9633\u9633\u9633\u9634\u9634\u9634",
"name": "\u5730\u5929\u6CF0",
"top": "\u5764",
"bottom": "\u4E7E"
},
{
"symbol": "\u9633\u9633\u9634\u9633\u9633\u9633",
"name": "\u5929\u6CFD\u5C65",
"top": "\u4E7E",
"bottom": "\u5151"
},
{
"symbol": "\u9633\u9633\u9634\u9633\u9633\u9634",
"name": "\u5151\u4E3A\u6CFD",
"top": "\u5151",
"bottom": "\u5151"
},
{
"symbol": "\u9633\u9633\u9634\u9633\u9634\u9633",
"name": "\u706B\u6CFD\u777D",
"top": "\u79BB",
"bottom": "\u5151"
},
{
"symbol": "\u9633\u9633\u9634\u9633\u9634\u9634",
"name": "\u96F7\u6CFD\u5F52\u59B9",
"top": "\u9707",
"bottom": "\u5151"
},
{
"symbol": "\u9633\u9633\u9634\u9634\u9633\u9633",
"name": "\u98CE\u6CFD\u4E2D\u5B5A",
"top": "\u5DFD",
"bottom": "\u5151"
},
{
"symbol": "\u9633\u9633\u9634\u9634\u9633\u9634",
"name": "\u6C34\u6CFD\u8282",
"top": "\u574E",
"bottom": "\u5151"
},
{
"symbol": "\u9633\u9633\u9634\u9634\u9634\u9633",
"name": "\u5C71\u6CFD\u635F",
"top": "\u826E",
"bottom": "\u5151"
},
{
"symbol": "\u9633\u9633\u9634\u9634\u9634\u9634",
"name": "\u5730\u6CFD\u4E34",
"top": "\u5764",
"bottom": "\u5151"
},
{
"symbol": "\u9633\u9634\u9633\u9633\u9633\u9633",
"name": "\u5929\u706B\u540C\u4EBA",
"top": "\u4E7E",
"bottom": "\u79BB"
},
{
"symbol": "\u9633\u9634\u9633\u9633\u9633\u9634",
"name": "\u6CFD\u706B\u9769",
"top": "\u5151",
"bottom": "\u79BB"
},
{
"symbol": "\u9633\u9634\u9633\u9633\u9634\u9633",
"name": "\u79BB\u4E3A\u706B",
"top": "\u79BB",
"bottom": "\u79BB"
},
{
"symbol": "\u9633\u9634\u9633\u9633\u9634\u9634",
"name": "\u96F7\u706B\u4E30",
"top": "\u9707",
"bottom": "\u79BB"
},
{
"symbol": "\u9633\u9634\u9633\u9634\u9633\u9633",
"name": "\u98CE\u706B\u5BB6\u4EBA",
"top": "\u5DFD",
"bottom": "\u79BB"
},
{
"symbol": "\u9633\u9634\u9633\u9634\u9633\u9634",
"name": "\u6C34\u706B\u65E2\u6D4E",
"top": "\u574E",
"bottom": "\u79BB"
},
{
"symbol": "\u9633\u9634\u9633\u9634\u9634\u9633",
"name": "\u5C71\u706B\u8D32",
"top": "\u826E",
"bottom": "\u79BB"
},
{
"symbol": "\u9633\u9634\u9633\u9634\u9634\u9634",
"name": "\u5730\u706B\u660E\u5937",
"top": "\u5764",
"bottom": "\u79BB"
},
{
"symbol": "\u9633\u9634\u9634\u9633\u9633\u9633",
"name": "\u5929\u96F7\u65E0\u5984",
"top": "\u4E7E",
"bottom": "\u9707"
},
{
"symbol": "\u9633\u9634\u9634\u9633\u9633\u9634",
"name": "\u6CFD\u96F7\u968F",
"top": "\u5151",
"bottom": "\u9707"
},
{
"symbol": "\u9633\u9634\u9634\u9633\u9634\u9633",
"name": "\u706B\u96F7\u566C\u55D1",
"top": "\u79BB",
"bottom": "\u9707"
},
{
"symbol": "\u9633\u9634\u9634\u9633\u9634\u9634",
"name": "\u9707\u4E3A\u96F7",
"top": "\u9707",
"bottom": "\u9707"
},
{
"symbol": "\u9633\u9634\u9634\u9634\u9633\u9633",
"name": "\u98CE\u96F7\u76CA",
"top": "\u5DFD",
"bottom": "\u9707"
},
{
"symbol": "\u9633\u9634\u9634\u9634\u9633\u9634",
"name": "\u6C34\u96F7\u5C6F",
"top": "\u574E",
"bottom": "\u9707"
},
{
"symbol": "\u9633\u9634\u9634\u9634\u9634\u9633",
"name": "\u5C71\u96F7\u9890",
"top": "\u826E",
"bottom": "\u9707"
},
{
"symbol": "\u9633\u9634\u9634\u9634\u9634\u9634",
"name": "\u5730\u96F7\u590D",
"top": "\u5764",
"bottom": "\u9707"
},
{
"symbol": "\u9634\u9633\u9633\u9633\u9633\u9633",
"name": "\u5929\u98CE\u59E4",
"top": "\u4E7E",
"bottom": "\u5DFD"
},
{
"symbol": "\u9634\u9633\u9633\u9633\u9633\u9634",
"name": "\u6CFD\u98CE\u5927\u8FC7",
"top": "\u5151",
"bottom": "\u5DFD"
},
{
"symbol": "\u9634\u9633\u9633\u9633\u9634\u9633",
"name": "\u706B\u98CE\u9F0E",
"top": "\u79BB",
"bottom": "\u5DFD"
},
{
"symbol": "\u9634\u9633\u9633\u9633\u9634\u9634",
"name": "\u96F7\u98CE\u6052",
"top": "\u9707",
"bottom": "\u5DFD"
},
{
"symbol": "\u9634\u9633\u9633\u9634\u9633\u9633",
"name": "\u5DFD\u4E3A\u98CE",
"top": "\u5DFD",
"bottom": "\u5DFD"
},
{
"symbol": "\u9634\u9633\u9633\u9634\u9633\u9634",
"name": "\u6C34\u98CE\u4E95",
"top": "\u574E",
"bottom": "\u5DFD"
},
{
"symbol": "\u9634\u9633\u9633\u9634\u9634\u9633",
"name": "\u5C71\u98CE\u86CA",
"top": "\u826E",
"bottom": "\u5DFD"
},
{
"symbol": "\u9634\u9633\u9633\u9634\u9634\u9634",
"name": "\u5730\u98CE\u5347",
"top": "\u5764",
"bottom": "\u5DFD"
},
{
"symbol": "\u9634\u9633\u9634\u9633\u9633\u9633",
"name": "\u5929\u6C34\u8BBC",
"top": "\u4E7E",
"bottom": "\u574E"
},
{
"symbol": "\u9634\u9633\u9634\u9633\u9633\u9634",
"name": "\u6CFD\u6C34\u56F0",
"top": "\u5151",
"bottom": "\u574E"
},
{
"symbol": "\u9634\u9633\u9634\u9633\u9634\u9633",
"name": "\u706B\u6C34\u672A\u6D4E",
"top": "\u79BB",
"bottom": "\u574E"
},
{
"symbol": "\u9634\u9633\u9634\u9633\u9634\u9634",
"name": "\u96F7\u6C34\u89E3",
"top": "\u9707",
"bottom": "\u574E"
},
{
"symbol": "\u9634\u9633\u9634\u9634\u9633\u9633",
"name": "\u98CE\u6C34\u6DA3",
"top": "\u5DFD",
"bottom": "\u574E"
},
{
"symbol": "\u9634\u9633\u9634\u9634\u9633\u9634",
"name": "\u574E\u4E3A\u6C34",
"top": "\u574E",
"bottom": "\u574E"
},
{
"symbol": "\u9634\u9633\u9634\u9634\u9634\u9633",
"name": "\u5C71\u6C34\u8499",
"top": "\u826E",
"bottom": "\u574E"
},
{
"symbol": "\u9634\u9633\u9634\u9634\u9634\u9634",
"name": "\u5730\u6C34\u5E08",
"top": "\u5764",
"bottom": "\u574E"
},
{
"symbol": "\u9634\u9634\u9633\u9633\u9633\u9633",
"name": "\u5929\u5C71\u9041",
"top": "\u4E7E",
"bottom": "\u826E"
},
{
"symbol": "\u9634\u9634\u9633\u9633\u9633\u9634",
"name": "\u6CFD\u5C71\u54B8",
"top": "\u5151",
"bottom": "\u826E"
},
{
"symbol": "\u9634\u9634\u9633\u9633\u9634\u9633",
"name": "\u706B\u5C71\u65C5",
"top": "\u79BB",
"bottom": "\u826E"
},
{
"symbol": "\u9634\u9634\u9633\u9633\u9634\u9634",
"name": "\u96F7\u5C71\u5C0F\u8FC7",
"top": "\u9707",
"bottom": "\u826E"
},
{
"symbol": "\u9634\u9634\u9633\u9634\u9633\u9633",
"name": "\u98CE\u5C71\u6E10",
"top": "\u5DFD",
"bottom": "\u826E"
},
{
"symbol": "\u9634\u9634\u9633\u9634\u9633\u9634",
"name": "\u6C34\u5C71\u8E47",
"top": "\u574E",
"bottom": "\u826E"
},
{
"symbol": "\u9634\u9634\u9633\u9634\u9634\u9633",
"name": "\u826E\u4E3A\u5C71",
"top": "\u826E",
"bottom": "\u826E"
},
{
"symbol": "\u9634\u9634\u9633\u9634\u9634\u9634",
"name": "\u5730\u5C71\u8C26",
"top": "\u5764",
"bottom": "\u826E"
},
{
"symbol": "\u9634\u9634\u9634\u9633\u9633\u9633",
"name": "\u5929\u5730\u5426",
"top": "\u4E7E",
"bottom": "\u5764"
},
{
"symbol": "\u9634\u9634\u9634\u9633\u9633\u9634",
"name": "\u6CFD\u5730\u8403",
"top": "\u5151",
"bottom": "\u5764"
},
{
"symbol": "\u9634\u9634\u9634\u9633\u9634\u9633",
"name": "\u706B\u5730\u664B",
"top": "\u79BB",
"bottom": "\u5764"
},
{
"symbol": "\u9634\u9634\u9634\u9633\u9634\u9634",
"name": "\u96F7\u5730\u8C6B",
"top": "\u9707",
"bottom": "\u5764"
},
{
"symbol": "\u9634\u9634\u9634\u9634\u9633\u9633",
"name": "\u98CE\u5730\u89C2",
"top": "\u5DFD",
"bottom": "\u5764"
},
{
"symbol": "\u9634\u9634\u9634\u9634\u9633\u9634",
"name": "\u6C34\u5730\u6BD4",
"top": "\u574E",
"bottom": "\u5764"
},
{
"symbol": "\u9634\u9634\u9634\u9634\u9634\u9633",
"name": "\u5C71\u5730\u5265",
"top": "\u826E",
"bottom": "\u5764"
},
{
"symbol": "\u9634\u9634\u9634\u9634\u9634\u9634",
"name": "\u5764\u4E3A\u5730",
"top": "\u5764",
"bottom": "\u5764"
}
];
exports["\u516D\u5341\u56DB\u5366"] = \u516D\u5341\u56DB\u5366;
+20
View File
@@ -0,0 +1,20 @@
"use strict";
var common_vendor = require("../common/vendor.js");
var config_api_config = require("../config/api.config.js");
const request = async (url, config) => {
return new Promise((resolve, reject) => {
var _a;
common_vendor.index.request({
url: config_api_config.BASE_URL + url,
method: (_a = config.method) != null ? _a : "GET",
data: config.data || null,
success: (res) => {
resolve(res.data);
},
fail: (err) => {
reject(err);
}
});
});
};
exports.request = request;