diff --git a/.env.example b/.env.example index cec5ddb..cf7f70e 100644 --- a/.env.example +++ b/.env.example @@ -23,7 +23,7 @@ MAIL_FROM_NAME=Example MAIL_TO_ADDRESS=hello@example.com MAIL_TO_NAME=Example -_94LIST_VERSION=1.3.41 +_94LIST_VERSION=1.3.45 _94LIST_SLEEP=3 _94LIST_MAX_ONCE=20 _94LIST_PASSWORD="" @@ -47,3 +47,23 @@ _94LIST_SHOW_LOGIN_BUTTON=true _94LIST_TOKEN_BIND_IP=false HKLIST_PROXY_SERVER= HKLIST_PROXY_PASSWORD= + +# 企业版CK +HKLIST_DOWNLOAD_TICKET_COOKIE="" +# 企业版CID +# 进入企业版网页 地址栏里有 +HKLIST_DOWNLOAD_TICKET_CID="" +# 企业版 BDSTOKEN +# 获取链接: https://pan.baidu.com/api/gettemplatevariable?fields=[%22bdstoken%22] +HKLIST_DOWNLOAD_TICKET_BDSTOKEN="" +# 存盘路径 +# 注意: 以/打头,结尾不需要/,注意这个文件夹需要手动先创建好,下面的分享链接需要是设定的这个文件夹 +HKLIST_DOWNLOAD_TICKET_PATH="/helloworld" + +# 记得填充下载卷(自行购买) +# 企业版分享链接下载链接 +# https://pan.baidu.com/s/123456 +# 下面填 123456 +HKLIST_DOWNLOAD_TICKET_SURL="" +# 企业版分享链接下载密码 +HKLIST_DOWNLOAD_TICKET_PWD="" diff --git a/CHANGELOG.md b/CHANGELOG.md index fe5ba4e..04ff6b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ ## 2024 +### 11-23 v1.3.45 + +- [+] 增加下载卷模式 + +### 11-10 v1.3.42 + +- [+] 增加防止同浏览器非同ip请求 +- [*] 切换本地ip库 + ### 09-09 v1.3.41 - [+] 增加新解析模式 diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 6d8b395..2b46be1 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -381,7 +381,7 @@ public function getAccountsBan(Request $request) $http = new Client([ "headers" => [ "User-Agent" => config("94list.fake_user_agent"), - "cookie" => $account["account_type"] === "cookie" ? $account["cookie"] : "" + "cookie" => $account["account_type"] === "cookie" || $account["account_type"] === "enterprise" ? $account["cookie"] : "" ] ]); @@ -392,7 +392,7 @@ public function getAccountsBan(Request $request) "channel" => "Windows%5f10%2e0%2e19045%5fUniyunguanjia%5fnetdisk%5f00000000000000000000000000000002", "version" => "4.32.1", "devuid" => "", - "access_token" => $account["account_type"] === "cookie" ? "" : $account["access_token"] + "access_token" => $account["account_type"] === "cookie" || $account["account_type"] === "enterprise" ? "" : $account["access_token"] ] ]); $response = JSON::decode($res->getBody()->getContents()); diff --git a/app/Http/Controllers/ParseController.php b/app/Http/Controllers/ParseController.php index 8de2ea9..1437397 100644 --- a/app/Http/Controllers/ParseController.php +++ b/app/Http/Controllers/ParseController.php @@ -20,6 +20,7 @@ use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Validator; use Illuminate\Validation\Rule; +use XdbSearcher; class ParseController extends Controller { @@ -29,7 +30,7 @@ public function getConfig(Request $request) $parse_mode = $config["parse_mode"]; $account_type = ["超级会员"]; - if ($parse_mode === 11) { + if ($parse_mode === 11 || $parse_mode === 13) { $account_type = ["超级会员", "普通会员", "普通用户"]; } else if ($parse_mode === 12) { $account_type = ["普通用户"]; @@ -56,67 +57,6 @@ public function getConfig(Request $request) ]); } - public function _getProvinceFromIP($ip): string|null|false - { - if ($ip === "0.0.0.0") return "上海市"; - - $http = new Client([ - "headers" => [ - "User-Agent" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0" - ] - ]); - - try { - $res = $http->get("https://api.qjqq.cn/api/district", ["query" => ["ip" => $ip]]); - $response = JSON::decode($res->getBody()->getContents()); - - if (isset($response["code"]) && $response["code"] === 200 && isset($response["data"]["country"]) && isset($response["data"]["prov"])) { - if (config("94list.limit_cn")) { - if ($response["data"]["country"] !== "中国") { - return false; - } - } - - return $response["data"]["prov"] !== "" ? $response["data"]["prov"] : null; - } - } catch (Exception $e) { - } - - try { - $res = $http->get("https://www.ip.cn/api/index", ["query" => ["ip" => $ip, "type" => 1]]); - $response = JSON::decode($res->getBody()->getContents()); - - if (isset($response["rs"]) && $response["rs"] !== 1 && isset($response["address"])) { - if (config("94list.limit_cn")) { - if (str_contains($response["address"], "中国")) { - return false; - } - } - - return $response["address"] !== "" ? $response["address"] : null; - } - } catch (Exception $e) { - } - - try { - $res = $http->get("https://qifu.baidu.com/ip/geo/v1/district", ["query" => ["ip" => $ip]]); - $response = JSON::decode($res->getBody()->getContents()); - - if (isset($response["code"]) && $response["code"] === "Success" && isset($response["data"]["country"]) && isset($response["data"]["prov"])) { - if (config("94list.limit_cn")) { - if ($response["data"]["country"] !== "中国") { - return false; - } - } - - return $response["data"]["prov"] !== "" ? $response["data"]["prov"] : null; - } - } catch (Exception $e) { - } - - return null; - } - // 省份标准名称映射表 const provinces = [ "北京" => "北京市", @@ -155,17 +95,28 @@ public function _getProvinceFromIP($ip): string|null|false "台湾" => "台湾省" ]; + private static ?XdbSearcher $ip2region = null; + public function getProvinceFromIP($ip) { - $prov = self::_getProvinceFromIP($ip); - if ($prov === null || $prov === false) return $prov; + if (!self::$ip2region) self::$ip2region = new XdbSearcher(); - // 去除多余的空白字符 - $name = trim($prov); + try { + $result = self::$ip2region->search($ip); + if (!$result) { + return "上海市"; + } else { + if (config("94list.limit_cn") && !str_contains($result, "中国")) return false; + $arr = explode("|", $result); + $prov = $arr[2]; + } + } catch (Exception $exception) { + return "上海市"; + } // 匹配并返回标准省份名称 foreach (self::provinces as $key => $standardName) { - if (str_contains($name, $key)) return $standardName; + if (str_contains($prov, $key)) return $standardName; } // 无匹配 @@ -642,7 +593,7 @@ public function getDownloadLinks(Request $request) } else { for ($i = 0; $i < count($request["fs_ids"]); $i++) { $account_type = ["超级会员"]; - if ($parse_mode === 11) { + if ($parse_mode === 11 || $parse_mode === 13) { $account_type = ["超级会员", "普通会员", "普通用户"]; } else if ($parse_mode === 12) { $account_type = ["普通用户"]; @@ -663,7 +614,9 @@ public function getDownloadLinks(Request $request) } } - $start = microtime(true); + if ($parse_mode === 13) { + $json["download_ticket"] = config("94list.download_ticket"); + } try { $http = new Client(); @@ -726,7 +679,7 @@ public function getDownloadLinks(Request $request) $account = Account::query()->find($ck_id); if (isset($responseDatum["msg"]) && $responseDatum["msg"] === "获取成功") { - if (str_contains($url, "qdall01")) { + if (str_contains($url, "tsl=1")) { $res["url"] = "账号被限速"; $account->update([ diff --git a/app/Http/Controllers/config/MainConfigController.php b/app/Http/Controllers/config/MainConfigController.php index 84deb5d..1acbe1e 100644 --- a/app/Http/Controllers/config/MainConfigController.php +++ b/app/Http/Controllers/config/MainConfigController.php @@ -25,7 +25,6 @@ public function getConfig(Request $request) public function updateConfig(Request $request) { $validator = Validator::make($request->all(), [ - "sleep" => "required|numeric", "max_once" => "required|numeric", "password" => "string", "announce" => "string", @@ -56,7 +55,6 @@ public function updateConfig(Request $request) $update = []; - $update["_94LIST_SLEEP"] = $request["sleep"]; $update["_94LIST_MAX_ONCE"] = $request["max_once"]; $update["_94LIST_PASSWORD"] = '"' . $request["password"] . '"'; $update["_94LIST_ANNOUNCE"] = '"' . htmlspecialchars(str_replace("\n", "[NextLine]", $request["announce"]), ENT_QUOTES) . '"'; diff --git a/app/Http/Middleware/ParamCheck.php b/app/Http/Middleware/ParamCheck.php new file mode 100644 index 0000000..d110115 --- /dev/null +++ b/app/Http/Middleware/ParamCheck.php @@ -0,0 +1,49 @@ +method() === "GET" ? $request->query() : $request->post(); + unset($temp["rand"]); + + // 校验哈希 + if ($rand !== sha1(json_encode($temp, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE))) return ResponseController::paramsError(); + + if (!$print) { + Cache::put($request["print"], [UtilsController::getIp()]); + return $next($request); + } + + if (!in_array(UtilsController::getIp(), $print)) { + if (count($print) > 3) { + return ResponseController::inBlackList(); + } else { + $print[] = UtilsController::getIp(); + Cache::put($request["print"], $print); + } + } + + return $next($request); + } +} diff --git a/bootstrap/app.php b/bootstrap/app.php index 8ab80f9..3540b55 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -4,6 +4,7 @@ use App\Http\Middleware\IpFilter; use App\Http\Middleware\NeedInstall; use App\Http\Middleware\NeedPassword; +use App\Http\Middleware\ParamCheck; use App\Http\Middleware\RoleFilter; use Illuminate\Foundation\Application; use Illuminate\Foundation\Configuration\Exceptions; @@ -25,6 +26,7 @@ 'NeedInstall' => NeedInstall::class, 'NeedPassword' => NeedPassword::class, 'AutoUpdate' => AutoUpdate::class, + 'ParamCheck' => ParamCheck::class ]); $middleware->web(remove: [ @@ -34,6 +36,8 @@ $middleware->use([ StartSession::class ]); + + $middleware->trustProxies("*"); }) ->withExceptions(function (Exceptions $exceptions) { // diff --git a/composer.json b/composer.json index f837fa7..4726b35 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,8 @@ "php": "^8.2", "laravel/framework": "^11.0", "laravel/sanctum": "^4.0", - "laravel/tinker": "^2.9" + "laravel/tinker": "^2.9", + "zoujingli/ip2region": "^2.0" }, "require-dev": { "fakerphp/faker": "^1.23", diff --git a/composer.lock b/composer.lock index 204cc0b..10b6d33 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f9199aa09619c215960557ffafe5f87b", + "content-hash": "505aef65a405d9f08c0890b605b652df", "packages": [ { "name": "brick/math", @@ -5740,6 +5740,52 @@ "source": "https://github.com/webmozarts/assert/tree/1.11.0" }, "time": "2022-06-03T18:03:27+00:00" + }, + { + "name": "zoujingli/ip2region", + "version": "v2.0.6", + "source": { + "type": "git", + "url": "https://github.com/zoujingli/ip2region.git", + "reference": "66895178be204521e9f5ae9df0ea502893ee53b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zoujingli/ip2region/zipball/66895178be204521e9f5ae9df0ea502893ee53b2", + "reference": "66895178be204521e9f5ae9df0ea502893ee53b2", + "shasum": "" + }, + "require": { + "php": ">=5.4" + }, + "type": "library", + "autoload": { + "classmap": [ + "Ip2Region.php", + "XdbSearcher.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Anyon", + "email": "zoujingli@qq.com", + "homepage": "https://thinkadmin.top" + } + ], + "description": "Ip2Region for PHP", + "homepage": "https://github.com/zoujingli/Ip2Region", + "keywords": [ + "Ip2Region" + ], + "support": { + "issues": "https://github.com/zoujingli/ip2region/issues", + "source": "https://github.com/zoujingli/ip2region/tree/v2.0.6" + }, + "time": "2024-08-02T01:01:01+00:00" } ], "packages-dev": [ diff --git a/config/94list.php b/config/94list.php index 5d09839..f2d623f 100644 --- a/config/94list.php +++ b/config/94list.php @@ -1,37 +1,46 @@ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36", + "fake_user_agent" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36", "fake_wx_user_agent" => "Mozilla/5.0 (Linux; Android 7.1.1; MI 6 Build/NMF26X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/043807 Mobile Safari/537.36 MicroMessenger/6.6.1.1220(0x26060135) NetType/4G Language/zh_CN MicroMessenger/6.6.1.1220(0x26060135) NetType/4G Language/zh_CN miniProgram", - "fake_cookie" => "BAIDUID=A4FDFAE43DDBF7E6956B02F6EF715373:FG=1; BAIDUID_BFESS=A4FDFAE43DDBF7E6956B02F6EF715373:FG=1; newlogin=1", - - "version" => "1.3.41", - "sleep" => (int)env("_94LIST_SLEEP", 3), - "max_once" => (int)env("_94LIST_MAX_ONCE", 20), - "password" => env("_94LIST_PASSWORD", ""), - "announce" => env("_94LIST_ANNOUNCE", "公告"), - "user_agent" => env("_94LIST_USER_AGENT", "netdisk;7.42.0.5;PC"), - "need_inv_code" => (bool)env("_94LIST_NEED_INV_CODE", true), + "fake_cookie" => "BAIDUID=A4FDFAE43DDBF7E6956B02F6EF715373:FG=1; BAIDUID_BFESS=A4FDFAE43DDBF7E6956B02F6EF715373:FG=1; newlogin=1", + + "version" => "1.3.45", + "sleep" => (int)env("_94LIST_SLEEP", 3), + "max_once" => (int)env("_94LIST_MAX_ONCE", 20), + "password" => env("_94LIST_PASSWORD", ""), + "announce" => env("_94LIST_ANNOUNCE", "公告"), + "user_agent" => env("_94LIST_USER_AGENT", "netdisk;7.42.0.5;PC"), + "need_inv_code" => (bool)env("_94LIST_NEED_INV_CODE", true), "whitelist_mode" => (bool)env("_94LIST_WHITELIST_MODE", false), - "show_copyright" => (bool)env("_94LIST_SHOW_COPYRIGHT", true), + "show_copyright" => (bool)env("_94LIST_SHOW_COPYRIGHT", true), "custom_copyright" => env("_94LIST_CUSTOM_COPYRIGHT", "本项目半开源, 项目地址: https://github.com/huankong233/94list-laravel"), "main_server" => env("_94LIST_MAIN_SERVER", "空"), - "code" => env("_94LIST_CODE", "空"), + "code" => env("_94LIST_CODE", "空"), - "parse_mode" => (int)env("_94LIST_PARSE_MODE", 3), - "max_filesize" => (int)env("_94LIST_MAX_FILESIZE", 536870912000), + "parse_mode" => (int)env("_94LIST_PARSE_MODE", 3), + "max_filesize" => (int)env("_94LIST_MAX_FILESIZE", 536870912000), "min_single_filesize" => (int)env("_94LIST_MIN_SINGLE_FILESIZE", 0), "max_single_filesize" => (int)env("_94LIST_MAX_SINGLE_FILESIZE", 53687091200), - "token_mode" => (bool)env("_94LIST_TOKEN_MODE", true), - "button_link" => env("_94LIST_BUTTON_LINK", ""), - "limit_cn" => (bool)env("_94LIST_LIMIT_CN", true), - "limit_prov" => (bool)env("_94LIST_LIMIT_PROV", false), + "token_mode" => (bool)env("_94LIST_TOKEN_MODE", true), + "button_link" => env("_94LIST_BUTTON_LINK", ""), + "limit_cn" => (bool)env("_94LIST_LIMIT_CN", true), + "limit_prov" => (bool)env("_94LIST_LIMIT_PROV", false), "show_login_button" => (bool)env("_94LIST_SHOW_LOGIN_BUTTON", true), - "token_bind_ip" => (bool)env("_94LIST_TOKEN_BIND_IP", false), + "token_bind_ip" => (bool)env("_94LIST_TOKEN_BIND_IP", false), - "proxy_server" => env("HKLIST_PROXY_SERVER", ""), + "proxy_server" => env("HKLIST_PROXY_SERVER", ""), "proxy_password" => env("HKLIST_PROXY_PASSWORD", "download"), + + "download_ticket" => [ + "cookie" => env("HKLIST_DOWNLOAD_TICKET_COOKIE"), + "cid" => env("HKLIST_DOWNLOAD_TICKET_CID"), + "bdstoken" => env("HKLIST_DOWNLOAD_TICKET_BDSTOKEN"), + "surl" => env("HKLIST_DOWNLOAD_TICKET_SURL"), + "pwd" => env("HKLIST_DOWNLOAD_TICKET_PWD"), + "path" => env("HKLIST_DOWNLOAD_TICKET_PATH") + ] ]; diff --git a/public/assets/js/@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js b/public/assets/js/@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js new file mode 100644 index 0000000..750c4cb --- /dev/null +++ b/public/assets/js/@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js @@ -0,0 +1,8 @@ +import{_ as M,a as Ee,b as R,c as we}from"./tslib@2.6.3-CPxunF3b.js";var Se="4.5.1";function O(e,n){return new Promise(function(t){return setTimeout(t,e,n)})}function Te(){return new Promise(function(e){var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(null)})}function Ye(e,n){n===void 0&&(n=1/0);var t=window.requestIdleCallback;return t?new Promise(function(r){return t.call(window,function(){return r()},{timeout:n})}):O(Math.min(e,n))}function Le(e){return!!e&&typeof e.then=="function"}function ce(e,n){try{var t=e();Le(t)?t.then(function(r){return n(!0,r)},function(r){return n(!1,r)}):n(!0,t)}catch(r){n(!1,r)}}function ue(e,n,t){return t===void 0&&(t=16),M(this,void 0,void 0,function(){var r,i,u,a;return R(this,function(s){switch(s.label){case 0:r=Array(e.length),i=Date.now(),u=0,s.label=1;case 1:return u=i+t?(i=a,[4,Te()]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++u,[3,1];case 4:return[2,r]}})})}function N(e){return e.then(void 0,function(){}),e}function Xe(e,n){for(var t=0,r=e.length;t=1)return Math.round(e/n)*n;var t=1/n;return Math.round(e*t)/t}function je(e){for(var n,t,r="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),u=i[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,c=function(d,v){a[d]=a[d]||[],a[d].push(v)};;){var f=s.exec(i[2]);if(!f)break;var l=f[0];switch(l[0]){case".":c("class",l.slice(1));break;case"#":c("id",l.slice(1));break;case"[":{var o=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(o)c(o[1],(t=(n=o[4])!==null&&n!==void 0?n:o[5])!==null&&t!==void 0?t:"");else throw new Error(r);break}default:throw new Error(r)}}return[u,a]}function He(e){for(var n=new Uint8Array(e.length),t=0;t127)return new TextEncoder().encode(e);n[t]=r}return n}function G(e,n){var t=e[0]>>>16,r=e[0]&65535,i=e[1]>>>16,u=e[1]&65535,a=n[0]>>>16,s=n[0]&65535,c=n[1]>>>16,f=n[1]&65535,l=0,o=0,d=0,v=0;v+=u+f,d+=v>>>16,v&=65535,d+=i+c,o+=d>>>16,d&=65535,o+=r+s,l+=o>>>16,o&=65535,l+=t+a,l&=65535,e[0]=l<<16|o,e[1]=d<<16|v}function C(e,n){var t=e[0]>>>16,r=e[0]&65535,i=e[1]>>>16,u=e[1]&65535,a=n[0]>>>16,s=n[0]&65535,c=n[1]>>>16,f=n[1]&65535,l=0,o=0,d=0,v=0;v+=u*f,d+=v>>>16,v&=65535,d+=i*f,o+=d>>>16,d&=65535,d+=u*c,o+=d>>>16,d&=65535,o+=r*f,l+=o>>>16,o&=65535,o+=i*c,l+=o>>>16,o&=65535,o+=u*s,l+=o>>>16,o&=65535,l+=t*f+r*c+i*s+u*a,l&=65535,e[0]=l<<16|o,e[1]=d<<16|v}function T(e,n){var t=e[0];n%=64,n===32?(e[0]=e[1],e[1]=t):n<32?(e[0]=t<>>32-n,e[1]=e[1]<>>32-n):(n-=32,e[0]=e[1]<>>32-n,e[1]=t<>>32-n)}function V(e,n){n%=64,n!==0&&(n<32?(e[0]=e[1]>>>32-n,e[1]=e[1]<>>1];g(e,n),C(e,De),n[1]=e[0]>>>1,g(e,n),C(e,ze),n[1]=e[0]>>>1,g(e,n)}var z=[2277735313,289559509],B=[1291169091,658871167],le=[0,5],Be=[0,1390208809],Je=[0,944331445];function Oe(e,n){var t=He(e);n=n||0;var r=[0,t.length],i=r[1]%16,u=r[1]-i,a=[0,n],s=[0,n],c=[0,0],f=[0,0],l;for(l=0;l>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function Ue(e){var n;return Ee({name:e.name,message:e.message,stack:(n=e.stack)===null||n===void 0?void 0:n.split(` +`)},e)}function Qe(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function _e(e){return typeof e!="function"}function Ke(e,n){var t=N(new Promise(function(r){var i=Date.now();ce(e.bind(null,n),function(){for(var u=[],a=0;a=4}function qe(){var e=window,n=navigator;return x(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!xe()}function j(){var e=window,n=navigator;return x(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,n.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function W(){var e=window,n=navigator;return x(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,n.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function ne(){var e=window,n=e.HTMLElement,t=e.Document;return x(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),n&&!("autocapitalize"in n.prototype),t&&"pointerLockElement"in t.prototype])>=4}function H(){var e=window;return Qe(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Ve(){var e,n,t=window;return x(["buildID"in navigator,"MozAppearance"in((n=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&n!==void 0?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function en(){var e=window;return x([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function nn(){var e=window,n=e.URLPattern;return x(["union"in Set.prototype,"Iterator"in e,n&&"hasRegExpGroups"in n.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function tn(){var e=window;return x(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function D(){var e=window,n=navigator,t=e.CSS,r=e.HTMLButtonElement;return x([!("getStorageUpdates"in n),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,t.supports("font-size-adjust: ex-height 0.5"),t.supports("text-transform: full-width")])>=4}function rn(){if(navigator.platform==="iPad")return!0;var e=screen,n=e.width/e.height;return x(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}function an(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function on(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function te(){var e=j(),n=Ve(),t=window,r=navigator,i="connection";return e?x([!("SharedWorker"in t),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:n?x(["onorientationchange"in t,"orientation"in t,/android/i.test(r.appVersion)])>=2:!1}function cn(){var e=navigator,n=window,t=Audio.prototype,r=n.visualViewport;return x(["srLatency"in t,"srChannelCount"in t,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function un(){return fn()?-4:sn()}function sn(){var e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(ln())return-1;var t=4500,r=5e3,i=new n(1,r,44100),u=i.createOscillator();u.type="triangle",u.frequency.value=1e4;var a=i.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,u.connect(a),a.connect(i.destination),u.start(0);var s=dn(i),c=s[0],f=s[1],l=N(c.then(function(o){return vn(o.getChannelData(0).subarray(t))},function(o){if(o.name==="timeout"||o.name==="suspended")return-3;throw o}));return function(){return f(),l}}function ln(){return W()&&!ne()&&!tn()}function fn(){return W()&&D()&&H()||j()&&cn()&&nn()}function dn(e){var n=3,t=500,r=500,i=5e3,u=function(){},a=new Promise(function(s,c){var f=!1,l=0,o=0;e.oncomplete=function(b){return s(b.renderedBuffer)};var d=function(){setTimeout(function(){return c(fe("timeout"))},Math.min(r,o+i-Date.now()))},v=function(){try{var b=e.startRendering();switch(Le(b)&&N(b),e.state){case"running":o=Date.now(),f&&d();break;case"suspended":document.hidden||l++,f&&l>=n?c(fe("suspended")):setTimeout(v,t);break}}catch(y){c(y)}};v(),u=function(){f||(f=!0,o>0&&d())}});return[a,u]}function vn(e){for(var n=0,t=0;t=0?"+":"").concat(r)}function zn(){var e=new Date().getFullYear();return Math.max(F(new Date(e,0,1).getTimezoneOffset()),F(new Date(e,6,1).getTimezoneOffset()))}function Bn(){try{return!!window.sessionStorage}catch{return!0}}function Jn(){try{return!!window.localStorage}catch{return!0}}function On(){if(!(xe()||qe()))try{return!!window.indexedDB}catch{return!0}}function Un(){return!!window.openDatabase}function Qn(){return navigator.cpuClass}function _n(){var e=navigator.platform;return e==="MacIntel"&&W()&&!ne()?rn()?"iPad":"iPhone":e}function Kn(){return navigator.vendor||""}function $n(){for(var e=[],n=0,t=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];no.length*.6}),s.sort(),[2,s]}})})}function tt(){return W()||te()}function rt(e){var n;return M(this,void 0,void 0,function(){var t,r,i,u,c,a,s,c;return R(this,function(f){switch(f.label){case 0:for(t=document,r=t.createElement("div"),i=new Array(e.length),u={},ve(r),c=0;c')}function bt(){return navigator.pdfViewerEnabled}function yt(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]}function wt(){var e=window.ApplePaySession;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(St())return-3;try{return e.canMakePayments()?1:0}catch(n){return Lt(n)}}var St=pn;function Lt(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function kt(){var e,n=document.createElement("a"),t=(e=n.attributionSourceId)!==null&&e!==void 0?e:n.attributionsourceid;return t===void 0?void 0:String(t)}var Fe=-1,We=-2,xt=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Vt=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Ct=["FRAGMENT_SHADER","VERTEX_SHADER"],Ft=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Me="WEBGL_debug_renderer_info",Wt="WEBGL_polygon_mode";function Mt(e){var n,t,r,i,u,a,s=e.cache,c=Re(s);if(!c)return Fe;if(!Ie(c))return We;var f=Pe()?null:c.getExtension(Me);return{version:((n=c.getParameter(c.VERSION))===null||n===void 0?void 0:n.toString())||"",vendor:((t=c.getParameter(c.VENDOR))===null||t===void 0?void 0:t.toString())||"",vendorUnmasked:f?(r=c.getParameter(f.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((i=c.getParameter(c.RENDERER))===null||i===void 0?void 0:i.toString())||"",rendererUnmasked:f?(u=c.getParameter(f.UNMASKED_RENDERER_WEBGL))===null||u===void 0?void 0:u.toString():"",shadingLanguageVersion:((a=c.getParameter(c.SHADING_LANGUAGE_VERSION))===null||a===void 0?void 0:a.toString())||""}}function Rt(e){var n=e.cache,t=Re(n);if(!t)return Fe;if(!Ie(t))return We;var r=t.getSupportedExtensions(),i=t.getContextAttributes(),u=[],a=[],s=[],c=[],f=[];if(i)for(var l=0,o=Object.keys(i);l=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Se,"/npm-monitoring"),!0),e.send()}catch(n){console.error(n)}}function Jt(e){var n;return e===void 0&&(e={}),M(this,void 0,void 0,function(){var t,r,i;return R(this,function(u){switch(u.label){case 0:return(!((n=e.monitoring)!==null&&n!==void 0)||n)&&Bt(),t=e.delayFallback,r=e.debug,[4,Dt(t)];case 1:return u.sent(),i=Et({cache:{},debug:r}),[2,zt(i,r)]}})})}var Ut={load:Jt,hashComponents:Ge,componentsToDebugString:Ze};export{Ut as i}; diff --git a/public/assets/js/@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js.gz b/public/assets/js/@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js.gz new file mode 100644 index 0000000..5fa6d32 Binary files /dev/null and b/public/assets/js/@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js.gz differ diff --git a/public/assets/js/AccountManagement-DZJpW6Dr.js b/public/assets/js/AccountManagement-DZJpW6Dr.js deleted file mode 100644 index cbaa410..0000000 --- a/public/assets/js/AccountManagement-DZJpW6Dr.js +++ /dev/null @@ -1 +0,0 @@ -import{E as f,g as se,c as de,i as J,j as Q,b as W,e as ue,d as X,k as ie,v as Y,m as ce,r as pe,q as re,o as _e,s as me}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as g}from"./index-Aa74bd4N.js";import{d as Z,_ as fe,$ as ye,o,G as y,H as t,i as a,L as i,I as ee,m as ve,c as b,K as p,a as G,F as I,R}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as A,u as H}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{f as K}from"./format-CyW-QbYa.js";import{L as r}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ke}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const be=c=>g.post("/admin/account",c),ge=c=>g.get(`/admin/account?page=${c.page}&size=${c.size}`),Ve=c=>g.patch(`/admin/account/${c.id}`,c),Ae=c=>g.patch("/admin/account/info",{account_ids:[c.id]}),he=c=>g.patch("/admin/account/info",{account_ids:c}),xe=c=>g.delete("/admin/account",{data:{account_ids:[c.id]}}),$e=c=>g.delete("/admin/account",{data:{account_ids:c}}),O=c=>g.patch("/admin/account/switch",c),Ce=c=>g.get(`/admin/account/ban?account_id=${c.id}`),Ue=()=>g.patch("/admin/account/ban"),ze=Z({__name:"AddAccount",props:{modelValue:{},modelModifiers:{}},emits:fe(["getAccounts"],["update:modelValue"]),setup(c,{emit:u}){const C=u,x=ye(c,"modelValue"),h=A(!1),_=A({type:1,cookie:""}),v=A(null),L={cookie:[{required:!0,message:"请输入账户信息",trigger:"blur"}]},D=async $=>{if(!(!$||!await $.validate()))try{h.value=!0,(await be(_.value)).data.have_repeat&&f.info("存在重复的账号,已自动过滤"),f.success("添加成功")}finally{h.value=!1}},B=$=>{C("getAccounts"),$()},F=()=>{x.value=!1,C("getAccounts")};return($,k)=>{const M=se,V=de,U=J,S=Q,E=W,N=ue,d=X,l=ie,m=Y;return o(),y(l,{title:"添加账号",width:"60%",modelValue:x.value,"onUpdate:modelValue":k[5]||(k[5]=s=>x.value=s),"before-close":B},{footer:t(()=>[a(d,{type:"info",onClick:k[3]||(k[3]=s=>F())},{default:t(()=>[i("取消")]),_:1}),a(d,{type:"primary",onClick:k[4]||(k[4]=s=>D(v.value))},{default:t(()=>[i("添加")]),_:1})]),default:t(()=>[ee((o(),y(N,{ref_key:"addAccountFormRef",ref:v,model:_.value,rules:L,"label-width":"auto"},{default:t(()=>[a(V,{label:"提示"},{default:t(()=>[a(M,null,{default:t(()=>[i("可以使用换行来分割多个账号")]),_:1})]),_:1}),a(V,{label:"账号类型"},{default:t(()=>[a(S,{modelValue:_.value.type,"onUpdate:modelValue":k[0]||(k[0]=s=>_.value.type=s)},{default:t(()=>[a(U,{label:"cookie",value:1}),a(U,{label:"token",value:2}),a(U,{label:"enterprise",value:3})]),_:1},8,["modelValue"])]),_:1}),_.value.type===1||_.value.type===3?(o(),y(V,{key:0,label:"Cookie",prop:"cookie"},{default:t(()=>[a(E,{type:"textarea",modelValue:_.value.cookie,"onUpdate:modelValue":k[1]||(k[1]=s=>_.value.cookie=s)},null,8,["modelValue"])]),_:1})):(o(),y(V,{key:1,label:"refresh_token",prop:"cookie"},{default:t(()=>[a(E,{type:"textarea",modelValue:_.value.cookie,"onUpdate:modelValue":k[2]||(k[2]=s=>_.value.cookie=s)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[m,h.value]])]),_:1},8,["modelValue"])}}}),Se={key:0},Ee={key:0},we={key:0},Ie={key:0},Le={key:0},De={key:0},Be={key:0},Fe={key:0},Me={key:0},Ne={key:0},Te=Z({__name:"AccountManagement",setup(c){const u=A(!1),C=A(15),x=A(1),h=A(),_=A([]),v=async()=>{try{u.value=!0;const d=await ge({page:x.value,size:C.value});d.data.data=d.data.data.map(l=>(l.switch=!!l.switch,l)),h.value=d.data}finally{u.value=!1}},L=async d=>{try{u.value=!0,await Ae(d),f.success("更新账户信息成功")}finally{u.value=!1,await v()}},D=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await he(d),f.success("批量更新账户成功")}finally{u.value=!1,await v()}},B=async d=>{try{u.value=!0,await xe(d),f.success("删除账户成功")}finally{u.value=!1,await v()}},F=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await $e(d),f.success("批量删除账户成功")}finally{u.value=!1,await v()}},$=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await O({account_ids:d,switch:1}),f.success("批量启用账户成功")}finally{u.value=!1,await v()}},k=async()=>{try{u.value=!0;const d=_.value.map(l=>l.id);await O({account_ids:d,switch:0}),f.success("批量禁用账户成功")}finally{u.value=!1,await v()}},M=d=>_.value=d;ve(v);const V=A(!1),U=()=>V.value=!V.value,S=async d=>{if(d.edit=!d.edit,d.edit===!1)try{u.value=!0,await Ve(d),f.success("修改賬號成功")}finally{u.value=!1,await v()}},E=async()=>{try{u.value=!0,await Ue(),f.success("启用被限速账号成功")}finally{u.value=!1,await v()}},N=async d=>{try{u.value=!0;const l=await Ce(d);if(l.data.errno===0){const m=l.data.anti;f.success("获取封禁信息成功"),m.ban_status?(f.success("封禁状态:已封禁"),f.success(`封禁开始时间: ${new Date(parseInt(`${m.start_time}000`)).toLocaleString()}`),f.success(`封禁结束时间: ${new Date(parseInt(`${m.end_time}000`)).toLocaleString()}`),f.success(`已被封禁${m.ban_times}次`),f.success(`封禁原因: ${m.ban_reason}`)):f.success("封禁状态:未封禁")}else l.data.errno===-6?f.warning("获取封禁信息失败,Cookie或AccessToken已过期"):f.warning(`获取封禁信息失败,code:${l.data.errno},msg:${l.data.errmsg}`)}finally{u.value=!1}};return(d,l)=>{var P,j,q;const m=X,s=ce,z=W,w=J,T=Q,te=pe,ae=re,le=_e,ne=me,oe=Y;return o(),b(I,null,[a(ze,{onGetAccounts:v,modelValue:V.value,"onUpdate:modelValue":l[0]||(l[0]=e=>V.value=e)},null,8,["modelValue"]),a(m,{type:"primary",onClick:l[1]||(l[1]=e=>v())},{default:t(()=>[i("刷新列表")]),_:1}),a(m,{type:"primary",onClick:l[2]||(l[2]=e=>U())},{default:t(()=>[i("添加账号")]),_:1}),a(m,{type:"primary",disabled:_.value.length<=0,onClick:l[3]||(l[3]=e=>D())},{default:t(()=>[i(" 批量更新信息 ")]),_:1},8,["disabled"]),a(m,{type:"primary",disabled:_.value.length<=0,onClick:l[4]||(l[4]=e=>$())},{default:t(()=>[i(" 批量启用 ")]),_:1},8,["disabled"]),a(m,{type:"primary",disabled:_.value.length<=0,onClick:l[5]||(l[5]=e=>k())},{default:t(()=>[i(" 批量禁用 ")]),_:1},8,["disabled"]),a(m,{type:"danger",disabled:_.value.length<=0,onClick:l[6]||(l[6]=e=>F())},{default:t(()=>[i(" 批量删除 ")]),_:1},8,["disabled"]),a(m,{type:"primary",onClick:l[7]||(l[7]=e=>E())},{default:t(()=>[i(" 启用被限速的账号 ")]),_:1}),ee((o(),y(le,{data:((P=h.value)==null?void 0:P.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:M},{default:t(()=>[a(s,{type:"selection",fixed:"",width:"40"}),a(s,{prop:"id",label:"ID",fixed:""}),a(s,{prop:"baidu_name",label:"百度用户名",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Se,r(e.baidu_name),1)),e.edit?(o(),y(z,{key:1,modelValue:e.baidu_name,"onUpdate:modelValue":n=>e.baidu_name=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"today_size",label:"今日解析",width:"150px"},{default:t(({row:e})=>[G("span",null,r(e.today_count)+" ("+r(H(K)(e.today_size??0))+")",1)]),_:1}),a(s,{prop:"today_size",label:"总共解析",width:"150px"},{default:t(({row:e})=>[G("span",null,r(e.total_count)+" ("+r(H(K)(e.total_size??0))+")",1)]),_:1}),a(s,{prop:"account_type",label:"账号类型",width:"160px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ee,r(e.account_type),1)),e.edit?(o(),y(T,{key:1,modelValue:e.account_type,"onUpdate:modelValue":n=>e.account_type=n},{default:t(()=>[(o(),b(I,null,R(["cookie","access_token"],n=>a(w,{key:n,value:n},{default:t(()=>[i(r(n),1)]),_:2},1032,["value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"cookie",label:"Cookie",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",we,r(e.cookie),1)),e.edit?(o(),y(z,{key:1,modelValue:e.cookie,"onUpdate:modelValue":n=>e.cookie=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"access_token",label:"access_token",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ie,r(e.access_token),1)),e.edit?(o(),y(z,{key:1,modelValue:e.access_token,"onUpdate:modelValue":n=>e.access_token=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"refresh_token",label:"refresh_token",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Le,r(e.refresh_token),1)),e.edit?(o(),y(z,{key:1,modelValue:e.refresh_token,"onUpdate:modelValue":n=>e.refresh_token=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"cid",label:"cid",width:"200px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",De,r(e.cid),1)),e.edit?(o(),y(te,{key:1,modelValue:e.cid,"onUpdate:modelValue":n=>e.cid=n,style:{width:"170px"}},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"expired_at",label:"token过期时间",width:"160px"},{default:t(({row:e})=>[i(r(e.expired_at?new Date(e.expired_at).toLocaleString():"非token模式"),1)]),_:1}),a(s,{prop:"vip_type",label:"会员类型",width:"130px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Be,r(e.vip_type),1)),e.edit?(o(),y(T,{key:1,modelValue:e.vip_type,"onUpdate:modelValue":n=>e.vip_type=n},{default:t(()=>[(o(),b(I,null,R(["超级会员","假超级会员","普通会员","普通用户"],n=>a(w,{key:n,value:n},{default:t(()=>[i(r(n),1)]),_:2},1032,["value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"switch",label:"状态",width:"70px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Fe,r(e.switch?"启用":"禁用"),1)),e.edit?(o(),y(ae,{key:1,modelValue:e.switch,"onUpdate:modelValue":n=>e.switch=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"prov",label:"省份",width:"120px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Me,r(e.prov??"未使用"),1)),e.edit?(o(),y(T,{key:1,modelValue:e.prov,"onUpdate:modelValue":n=>e.prov=n},{default:t(()=>[(o(),y(w,{key:null,value:null},{default:t(()=>[i("未使用")]),_:1})),(o(),b(I,null,R(["北京市","天津市","上海市","重庆市","河北省","山西省","内蒙古自治区","辽宁省","吉林省","黑龙江省","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","广西壮族自治区","海南省","四川省","贵州省","云南省","西藏自治区","陕西省","甘肃省","青海省","宁夏回族自治区","新疆维吾尔自治区","香港特别行政区","澳门特别行政区","台湾省"],n=>a(w,{key:n,label:n,value:n},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"reason",label:"禁用原因",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ne,r(e.reason??"未禁用"),1)),e.edit?(o(),y(z,{key:1,modelValue:e.reason,"onUpdate:modelValue":n=>e.reason=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"svip_end_at",label:"超级会员结束时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.svip_end_at).toLocaleString()),1)]),_:1}),a(s,{prop:"last_use_at",label:"上次使用时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.last_use_at).toLocaleString()),1)]),_:1}),a(s,{prop:"created_at",label:"创建时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.created_at).toLocaleString()),1)]),_:1}),a(s,{prop:"updated_at",label:"更新时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.updated_at).toLocaleString()),1)]),_:1}),a(s,{width:"350",label:"操作",fixed:"right"},{default:t(({row:e})=>[a(m,{size:"small",type:"primary",disabled:e.id===0,onClick:n=>L(e)},{default:t(()=>[i("更新信息")]),_:2},1032,["disabled","onClick"]),a(m,{size:"small",type:"primary",disabled:e.id===0,onClick:n=>N(e)},{default:t(()=>[i(" 检查封禁状态 ")]),_:2},1032,["disabled","onClick"]),e.edit?p("",!0):(o(),y(m,{key:0,size:"small",type:"primary",disabled:e.id===0,onClick:n=>S(e)},{default:t(()=>[i(" 編輯 ")]),_:2},1032,["disabled","onClick"])),e.edit?(o(),y(m,{key:1,size:"small",type:"primary",disabled:e.id===0,onClick:n=>S(e)},{default:t(()=>[i(" 完成 ")]),_:2},1032,["disabled","onClick"])):p("",!0),a(m,{size:"small",type:"danger",disabled:e.id===0,onClick:n=>B(e)},{default:t(()=>[i("删除")]),_:2},1032,["disabled","onClick"])]),_:1})]),_:1},8,["data"])),[[oe,u.value]]),a(ne,{"current-page":x.value,"onUpdate:currentPage":l[8]||(l[8]=e=>x.value=e),"page-size":C.value,"onUpdate:pageSize":l[9]||(l[9]=e=>C.value=e),"page-sizes":[15,50,100,500,((j=h.value)==null?void 0:j.total)??100],total:((q=h.value)==null?void 0:q.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:v,onCurrentChange:v},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),dt=ke(Te,[["__scopeId","data-v-a8baa8b2"]]);export{dt as default}; diff --git a/public/assets/js/AccountManagement-DZJpW6Dr.js.gz b/public/assets/js/AccountManagement-DZJpW6Dr.js.gz deleted file mode 100644 index 357c688..0000000 Binary files a/public/assets/js/AccountManagement-DZJpW6Dr.js.gz and /dev/null differ diff --git a/public/assets/js/AccountManagement-HxMt2-hw.js b/public/assets/js/AccountManagement-HxMt2-hw.js new file mode 100644 index 0000000..1898561 --- /dev/null +++ b/public/assets/js/AccountManagement-HxMt2-hw.js @@ -0,0 +1 @@ +import{E as f,g as se,c as de,i as J,j as Q,b as W,e as ue,d as X,k as ie,v as Y,m as ce,r as pe,q as re,o as me,s as _e}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as g}from"./index-DYV93AZk.js";import{d as Z,_ as fe,$ as ye,o,G as y,H as t,i as a,L as i,I as ee,m as ve,c as b,K as p,a as G,F as I,R}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as A,u as H}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{f as K}from"./format-CyW-QbYa.js";import{L as r}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ke}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const be=c=>g.post("/admin/account",c),ge=c=>g.get(`/admin/account?page=${c.page}&size=${c.size}`),Ve=c=>g.patch(`/admin/account/${c.id}`,c),Ae=c=>g.patch("/admin/account/info",{account_ids:[c.id]}),he=c=>g.patch("/admin/account/info",{account_ids:c}),xe=c=>g.delete("/admin/account",{data:{account_ids:[c.id]}}),$e=c=>g.delete("/admin/account",{data:{account_ids:c}}),O=c=>g.patch("/admin/account/switch",c),Ce=c=>g.get(`/admin/account/ban?account_id=${c.id}`),Ue=()=>g.patch("/admin/account/ban"),ze=Z({__name:"AddAccount",props:{modelValue:{},modelModifiers:{}},emits:fe(["getAccounts"],["update:modelValue"]),setup(c,{emit:u}){const C=u,x=ye(c,"modelValue"),h=A(!1),m=A({type:1,cookie:""}),v=A(null),L={cookie:[{required:!0,message:"请输入账户信息",trigger:"blur"}]},D=async $=>{if(!(!$||!await $.validate()))try{h.value=!0,(await be(m.value)).data.have_repeat&&f.info("存在重复的账号,已自动过滤"),f.success("添加成功")}finally{h.value=!1}},B=$=>{C("getAccounts"),$()},F=()=>{x.value=!1,C("getAccounts")};return($,k)=>{const M=se,V=de,U=J,S=Q,E=W,N=ue,d=X,l=ie,_=Y;return o(),y(l,{title:"添加账号",width:"60%",modelValue:x.value,"onUpdate:modelValue":k[5]||(k[5]=s=>x.value=s),"before-close":B},{footer:t(()=>[a(d,{type:"info",onClick:k[3]||(k[3]=s=>F())},{default:t(()=>[i("取消")]),_:1}),a(d,{type:"primary",onClick:k[4]||(k[4]=s=>D(v.value))},{default:t(()=>[i("添加")]),_:1})]),default:t(()=>[ee((o(),y(N,{ref_key:"addAccountFormRef",ref:v,model:m.value,rules:L,"label-width":"auto"},{default:t(()=>[a(V,{label:"提示"},{default:t(()=>[a(M,null,{default:t(()=>[i("可以使用换行来分割多个账号")]),_:1})]),_:1}),a(V,{label:"账号类型"},{default:t(()=>[a(S,{modelValue:m.value.type,"onUpdate:modelValue":k[0]||(k[0]=s=>m.value.type=s)},{default:t(()=>[a(U,{label:"cookie",value:1}),a(U,{label:"token",value:2}),a(U,{label:"enterprise",value:3})]),_:1},8,["modelValue"])]),_:1}),m.value.type===1||m.value.type===3?(o(),y(V,{key:0,label:"Cookie",prop:"cookie"},{default:t(()=>[a(E,{type:"textarea",modelValue:m.value.cookie,"onUpdate:modelValue":k[1]||(k[1]=s=>m.value.cookie=s)},null,8,["modelValue"])]),_:1})):(o(),y(V,{key:1,label:"refresh_token",prop:"cookie"},{default:t(()=>[a(E,{type:"textarea",modelValue:m.value.cookie,"onUpdate:modelValue":k[2]||(k[2]=s=>m.value.cookie=s)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[_,h.value]])]),_:1},8,["modelValue"])}}}),Se={key:0},Ee={key:0},we={key:0},Ie={key:0},Le={key:0},De={key:0},Be={key:0},Fe={key:0},Me={key:0},Ne={key:0},Te=Z({__name:"AccountManagement",setup(c){const u=A(!1),C=A(15),x=A(1),h=A(),m=A([]),v=async()=>{try{u.value=!0;const d=await ge({page:x.value,size:C.value});d.data.data=d.data.data.map(l=>(l.switch=!!l.switch,l)),h.value=d.data}finally{u.value=!1}},L=async d=>{try{u.value=!0,await Ae(d),f.success("更新账户信息成功")}finally{u.value=!1,await v()}},D=async()=>{try{u.value=!0;const d=m.value.map(l=>l.id);await he(d),f.success("批量更新账户成功")}finally{u.value=!1,await v()}},B=async d=>{try{u.value=!0,await xe(d),f.success("删除账户成功")}finally{u.value=!1,await v()}},F=async()=>{try{u.value=!0;const d=m.value.map(l=>l.id);await $e(d),f.success("批量删除账户成功")}finally{u.value=!1,await v()}},$=async()=>{try{u.value=!0;const d=m.value.map(l=>l.id);await O({account_ids:d,switch:1}),f.success("批量启用账户成功")}finally{u.value=!1,await v()}},k=async()=>{try{u.value=!0;const d=m.value.map(l=>l.id);await O({account_ids:d,switch:0}),f.success("批量禁用账户成功")}finally{u.value=!1,await v()}},M=d=>m.value=d;ve(v);const V=A(!1),U=()=>V.value=!V.value,S=async d=>{if(d.edit=!d.edit,d.edit===!1)try{u.value=!0,await Ve(d),f.success("修改賬號成功")}finally{u.value=!1,await v()}},E=async()=>{try{u.value=!0,await Ue(),f.success("启用被限速账号成功")}finally{u.value=!1,await v()}},N=async d=>{try{u.value=!0;const l=await Ce(d);if(l.data.errno===0){const _=l.data.anti;f.success("获取封禁信息成功"),_.ban_status?(f.success("封禁状态:已封禁"),f.success(`封禁开始时间: ${new Date(parseInt(`${_.start_time}000`)).toLocaleString()}`),f.success(`封禁结束时间: ${new Date(parseInt(`${_.end_time}000`)).toLocaleString()}`),f.success(`已被封禁${_.ban_times}次`),f.success(`封禁原因: ${_.ban_reason}`)):f.success("封禁状态:未封禁")}else l.data.errno===-6?f.warning("获取封禁信息失败,Cookie或AccessToken已过期"):f.warning(`获取封禁信息失败,code:${l.data.errno},msg:${l.data.errmsg}`)}finally{u.value=!1}};return(d,l)=>{var P,j,q;const _=X,s=ce,z=W,w=J,T=Q,te=pe,ae=re,le=me,ne=_e,oe=Y;return o(),b(I,null,[a(ze,{onGetAccounts:v,modelValue:V.value,"onUpdate:modelValue":l[0]||(l[0]=e=>V.value=e)},null,8,["modelValue"]),a(_,{type:"primary",onClick:l[1]||(l[1]=e=>v())},{default:t(()=>[i("刷新列表")]),_:1}),a(_,{type:"primary",onClick:l[2]||(l[2]=e=>U())},{default:t(()=>[i("添加账号")]),_:1}),a(_,{type:"primary",disabled:m.value.length<=0,onClick:l[3]||(l[3]=e=>D())},{default:t(()=>[i(" 批量更新信息 ")]),_:1},8,["disabled"]),a(_,{type:"primary",disabled:m.value.length<=0,onClick:l[4]||(l[4]=e=>$())},{default:t(()=>[i(" 批量启用 ")]),_:1},8,["disabled"]),a(_,{type:"primary",disabled:m.value.length<=0,onClick:l[5]||(l[5]=e=>k())},{default:t(()=>[i(" 批量禁用 ")]),_:1},8,["disabled"]),a(_,{type:"danger",disabled:m.value.length<=0,onClick:l[6]||(l[6]=e=>F())},{default:t(()=>[i(" 批量删除 ")]),_:1},8,["disabled"]),a(_,{type:"primary",onClick:l[7]||(l[7]=e=>E())},{default:t(()=>[i(" 启用被限速的账号 ")]),_:1}),ee((o(),y(le,{data:((P=h.value)==null?void 0:P.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:M},{default:t(()=>[a(s,{type:"selection",fixed:"",width:"40"}),a(s,{prop:"id",label:"ID",fixed:""}),a(s,{prop:"baidu_name",label:"百度用户名",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Se,r(e.baidu_name),1)),e.edit?(o(),y(z,{key:1,modelValue:e.baidu_name,"onUpdate:modelValue":n=>e.baidu_name=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"today_size",label:"今日解析",width:"150px"},{default:t(({row:e})=>[G("span",null,r(e.today_count)+" ("+r(H(K)(e.today_size??0))+")",1)]),_:1}),a(s,{prop:"today_size",label:"总共解析",width:"150px"},{default:t(({row:e})=>[G("span",null,r(e.total_count)+" ("+r(H(K)(e.total_size??0))+")",1)]),_:1}),a(s,{prop:"account_type",label:"账号类型",width:"160px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ee,r(e.account_type),1)),e.edit?(o(),y(T,{key:1,modelValue:e.account_type,"onUpdate:modelValue":n=>e.account_type=n},{default:t(()=>[(o(),b(I,null,R(["cookie","access_token"],n=>a(w,{key:n,value:n},{default:t(()=>[i(r(n),1)]),_:2},1032,["value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"cookie",label:"Cookie",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",we,r(e.cookie),1)),e.edit?(o(),y(z,{key:1,modelValue:e.cookie,"onUpdate:modelValue":n=>e.cookie=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"access_token",label:"access_token",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ie,r(e.access_token),1)),e.edit?(o(),y(z,{key:1,modelValue:e.access_token,"onUpdate:modelValue":n=>e.access_token=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"refresh_token",label:"refresh_token",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Le,r(e.refresh_token),1)),e.edit?(o(),y(z,{key:1,modelValue:e.refresh_token,"onUpdate:modelValue":n=>e.refresh_token=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"cid",label:"cid",width:"200px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",De,r(e.cid),1)),e.edit?(o(),y(te,{key:1,modelValue:e.cid,"onUpdate:modelValue":n=>e.cid=n,style:{width:"170px"}},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"expired_at",label:"token过期时间",width:"160px"},{default:t(({row:e})=>[i(r(e.expired_at?new Date(e.expired_at).toLocaleString():"非token模式"),1)]),_:1}),a(s,{prop:"vip_type",label:"会员类型",width:"130px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Be,r(e.vip_type),1)),e.edit?(o(),y(T,{key:1,modelValue:e.vip_type,"onUpdate:modelValue":n=>e.vip_type=n},{default:t(()=>[(o(),b(I,null,R(["超级会员","假超级会员","普通会员","普通用户"],n=>a(w,{key:n,value:n},{default:t(()=>[i(r(n),1)]),_:2},1032,["value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"switch",label:"状态",width:"70px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Fe,r(e.switch?"启用":"禁用"),1)),e.edit?(o(),y(ae,{key:1,modelValue:e.switch,"onUpdate:modelValue":n=>e.switch=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"prov",label:"省份",width:"120px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Me,r(e.prov??"未使用"),1)),e.edit?(o(),y(T,{key:1,modelValue:e.prov,"onUpdate:modelValue":n=>e.prov=n},{default:t(()=>[(o(),y(w,{key:null,value:null},{default:t(()=>[i("未使用")]),_:1})),(o(),b(I,null,R(["北京市","天津市","上海市","重庆市","河北省","山西省","内蒙古自治区","辽宁省","吉林省","黑龙江省","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","广西壮族自治区","海南省","四川省","贵州省","云南省","西藏自治区","陕西省","甘肃省","青海省","宁夏回族自治区","新疆维吾尔自治区","香港特别行政区","澳门特别行政区","台湾省"],n=>a(w,{key:n,label:n,value:n},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"reason",label:"禁用原因",width:"150px"},{default:t(({row:e})=>[e.edit?p("",!0):(o(),b("span",Ne,r(e.reason??"未禁用"),1)),e.edit?(o(),y(z,{key:1,modelValue:e.reason,"onUpdate:modelValue":n=>e.reason=n},null,8,["modelValue","onUpdate:modelValue"])):p("",!0)]),_:1}),a(s,{prop:"svip_end_at",label:"超级会员结束时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.svip_end_at).toLocaleString()),1)]),_:1}),a(s,{prop:"last_use_at",label:"上次使用时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.last_use_at).toLocaleString()),1)]),_:1}),a(s,{prop:"created_at",label:"创建时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.created_at).toLocaleString()),1)]),_:1}),a(s,{prop:"updated_at",label:"更新时间",width:"160px"},{default:t(({row:e})=>[i(r(new Date(e.updated_at).toLocaleString()),1)]),_:1}),a(s,{width:"350",label:"操作",fixed:"right"},{default:t(({row:e})=>[a(_,{size:"small",type:"primary",disabled:e.id===0,onClick:n=>L(e)},{default:t(()=>[i("更新信息")]),_:2},1032,["disabled","onClick"]),a(_,{size:"small",type:"primary",disabled:e.id===0,onClick:n=>N(e)},{default:t(()=>[i(" 检查封禁状态 ")]),_:2},1032,["disabled","onClick"]),e.edit?p("",!0):(o(),y(_,{key:0,size:"small",type:"primary",disabled:e.id===0,onClick:n=>S(e)},{default:t(()=>[i(" 編輯 ")]),_:2},1032,["disabled","onClick"])),e.edit?(o(),y(_,{key:1,size:"small",type:"primary",disabled:e.id===0,onClick:n=>S(e)},{default:t(()=>[i(" 完成 ")]),_:2},1032,["disabled","onClick"])):p("",!0),a(_,{size:"small",type:"danger",disabled:e.id===0,onClick:n=>B(e)},{default:t(()=>[i("删除")]),_:2},1032,["disabled","onClick"])]),_:1})]),_:1},8,["data"])),[[oe,u.value]]),a(ne,{"current-page":x.value,"onUpdate:currentPage":l[8]||(l[8]=e=>x.value=e),"page-size":C.value,"onUpdate:pageSize":l[9]||(l[9]=e=>C.value=e),"page-sizes":[15,50,100,500,((j=h.value)==null?void 0:j.total)??100],total:((q=h.value)==null?void 0:q.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:v,onCurrentChange:v},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),it=ke(Te,[["__scopeId","data-v-a8baa8b2"]]);export{it as default}; diff --git a/public/assets/js/AccountManagement-HxMt2-hw.js.gz b/public/assets/js/AccountManagement-HxMt2-hw.js.gz new file mode 100644 index 0000000..821a263 Binary files /dev/null and b/public/assets/js/AccountManagement-HxMt2-hw.js.gz differ diff --git a/public/assets/js/AdminView-ClWDJ0yp.js b/public/assets/js/AdminView-ClWDJ0yp.js new file mode 100644 index 0000000..1c22a19 --- /dev/null +++ b/public/assets/js/AdminView-ClWDJ0yp.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/ChangeMainConfig-DBsWGwM3.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/index-DYV93AZk.js","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js","assets/js/tslib@2.6.3-CPxunF3b.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/index-qsVAQOGj.css","assets/js/changeConfigForm-D___ED7J.js","assets/js/ChangeMailConfig-DWXXcDjr.js","assets/js/UserManagement-C-9GJbGk.js","assets/js/format-CyW-QbYa.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/css/UserManagement-C5ETFEKD.css","assets/js/InvCodeManagement-Dsqp0U7A.js","assets/js/copy-By2guqEs.js","assets/css/InvCodeManagement-BIcF9Kxd.css","assets/js/TokenManagement-BJdgmlbt.js","assets/css/TokenManagement-aT40K2D6.css","assets/js/GroupManagement-wC6WYaei.js","assets/css/GroupManagement-DsjCwHwp.css","assets/js/AccountManagement-HxMt2-hw.js","assets/css/AccountManagement-CvA_2gMU.css","assets/js/RecordManagement-BjaPKNfj.js","assets/css/RecordManagement-S3Hh6B8z.css","assets/js/IpManagement-CNmIbwyM.js","assets/css/IpManagement-BHydyvRO.css"])))=>i.map(i=>d[i]); +import{u as A,g as c,c as L,a as R,_ as n}from"./index-DYV93AZk.js";import{a as D,d as O,f as h,g as k,h as x}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as N}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as y,G as S,H as t,K as B,o as w,a as G,L as m,i as e,X as r}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as U,u as a}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as $}from"./@vue_shared@3.4.32-CaCWPAm8.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";const ue=y({__name:"AdminView",setup(H){const f=A(),s=r(()=>n(()=>import("./ChangeMainConfig-DBsWGwM3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]))),g=r(()=>n(()=>import("./ChangeMailConfig-DWXXcDjr.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),E=r(()=>n(()=>import("./UserManagement-C-9GJbGk.js"),__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,27,28,29]))),M=r(()=>n(()=>import("./InvCodeManagement-Dsqp0U7A.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,31,28,32]))),V=r(()=>n(()=>import("./TokenManagement-BJdgmlbt.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,31,27,28,34]))),b=r(()=>n(()=>import("./GroupManagement-wC6WYaei.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,28,36]))),v=r(()=>n(()=>import("./AccountManagement-HxMt2-hw.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,27,28,38]))),C=r(()=>n(()=>import("./RecordManagement-BjaPKNfj.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,27,24,31,28,40]))),P=r(()=>n(()=>import("./IpManagement-CNmIbwyM.js"),__vite__mapDeps([41,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,28,42]))),u=U("changeMainConfig"),l=N();return c()==="0"&&l.push("/login"),L()==="user"&&l.push("/user"),(K,_)=>{const p=O,o=h,I=k,d=D,T=x;return a(c)()==="1"?(w(),S(d,{key:0,class:"box-card"},{default:t(()=>[G("h2",null,[m(" 后台控制中心 | "+$(a(R)())+" ",1),e(p,{type:"primary",onClick:_[0]||(_[0]=i=>a(l).push("/"))},{default:t(()=>[m("回到首页")]),_:1}),e(p,{type:"danger",onClick:_[1]||(_[1]=i=>a(f).logout())},{default:t(()=>[m("退出登陆")]),_:1})]),e(T,{modelValue:u.value,"onUpdate:modelValue":_[2]||(_[2]=i=>u.value=i)},{default:t(()=>[e(o,{label:"基础配置",name:"changeMainConfig"},{default:t(()=>[e(a(s),{Mode:"main"})]),_:1}),e(o,{label:"解析配置",name:"changeParseConfig"},{default:t(()=>[e(a(s),{Mode:"parse"})]),_:1}),e(o,{label:"邮件配置",name:"changeMailConfig"},{default:t(()=>[e(a(g))]),_:1}),e(o,{label:"用户管理",name:"userManagement"},{default:t(()=>[e(a(E))]),_:1}),e(o,{label:"用户组管理",name:"groupManagement"},{default:t(()=>[e(a(b))]),_:1}),e(o,{label:"邀请码管理",name:"invCodeManagement"},{default:t(()=>[e(a(M))]),_:1}),e(o,{label:"卡密管理",name:"tokenManagement"},{default:t(()=>[e(a(V))]),_:1}),e(o,{label:"账号管理",name:"accountManagement"},{default:t(()=>[e(a(v))]),_:1}),e(o,{label:"记录管理",name:"recordManagement"},{default:t(()=>[e(a(C))]),_:1}),e(o,{label:"IP管理",name:"ipManagement"},{default:t(()=>[e(a(P))]),_:1}),e(o,{label:"开源说明",name:"openSourceNotice"},{default:t(()=>[e(d,null,{default:t(()=>[e(I,null,{default:t(()=>[m(" 项目所涉及的接口均为官方开放接口,需使用正版 SVIP 会员账号进行代理提取高速链接,无破坏官方接口行为,本身不存在违法。 仅供自己参考学习使用。诺违规使用官方会限制或封禁你的账号,包括你的 IP,如无官方授权进行商业用途会对你造成更严重后果。 源码仅供学习,如无视声明使用产生正负面结果(限速,被封等)都与作者无关。 ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})):B("",!0)}}});export{ue as default}; diff --git a/public/assets/js/AdminView-ClWDJ0yp.js.gz b/public/assets/js/AdminView-ClWDJ0yp.js.gz new file mode 100644 index 0000000..42a1db7 Binary files /dev/null and b/public/assets/js/AdminView-ClWDJ0yp.js.gz differ diff --git a/public/assets/js/AdminView-DtS82LJ1.js b/public/assets/js/AdminView-DtS82LJ1.js deleted file mode 100644 index 0ffa375..0000000 --- a/public/assets/js/AdminView-DtS82LJ1.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/ChangeMainConfig-BcufcFCB.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/index-Aa74bd4N.js","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/index-qsVAQOGj.css","assets/js/changeConfigForm-D7mlas_l.js","assets/js/ChangeMailConfig-DJNEUVYN.js","assets/js/UserManagement-CFga5pT8.js","assets/js/format-CyW-QbYa.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/css/UserManagement-C5ETFEKD.css","assets/js/InvCodeManagement-U7oGJqRg.js","assets/js/copy-By2guqEs.js","assets/css/InvCodeManagement-BIcF9Kxd.css","assets/js/TokenManagement-LRNw-KRi.js","assets/css/TokenManagement-aT40K2D6.css","assets/js/GroupManagement-DGxN5Heq.js","assets/css/GroupManagement-DsjCwHwp.css","assets/js/AccountManagement-DZJpW6Dr.js","assets/css/AccountManagement-CvA_2gMU.css","assets/js/RecordManagement-CdJ2oRbI.js","assets/css/RecordManagement-S3Hh6B8z.css","assets/js/IpManagement-3d16eEci.js","assets/css/IpManagement-BHydyvRO.css"])))=>i.map(i=>d[i]); -import{u as A,g as c,c as L,a as R,_ as n}from"./index-Aa74bd4N.js";import{a as D,d as O,f as h,g as k,h as x}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as N}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as y,G as S,H as t,K as B,o as w,a as G,L as m,i as e,X as r}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as U,u as a}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as $}from"./@vue_shared@3.4.32-CaCWPAm8.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./axios@1.7.2-B4uVmeYG.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";const ie=y({__name:"AdminView",setup(H){const f=A(),s=r(()=>n(()=>import("./ChangeMainConfig-BcufcFCB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]))),g=r(()=>n(()=>import("./ChangeMailConfig-DJNEUVYN.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),E=r(()=>n(()=>import("./UserManagement-CFga5pT8.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,26,27]))),M=r(()=>n(()=>import("./InvCodeManagement-U7oGJqRg.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,29,26,30]))),V=r(()=>n(()=>import("./TokenManagement-LRNw-KRi.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,29,25,26,32]))),b=r(()=>n(()=>import("./GroupManagement-DGxN5Heq.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,26,34]))),v=r(()=>n(()=>import("./AccountManagement-DZJpW6Dr.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,26,36]))),C=r(()=>n(()=>import("./RecordManagement-CdJ2oRbI.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,22,29,26,38]))),P=r(()=>n(()=>import("./IpManagement-3d16eEci.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,26,40]))),u=U("changeMainConfig"),l=N();return c()==="0"&&l.push("/login"),L()==="user"&&l.push("/user"),(K,_)=>{const p=O,o=h,I=k,d=D,T=x;return a(c)()==="1"?(w(),S(d,{key:0,class:"box-card"},{default:t(()=>[G("h2",null,[m(" 后台控制中心 | "+$(a(R)())+" ",1),e(p,{type:"primary",onClick:_[0]||(_[0]=i=>a(l).push("/"))},{default:t(()=>[m("回到首页")]),_:1}),e(p,{type:"danger",onClick:_[1]||(_[1]=i=>a(f).logout())},{default:t(()=>[m("退出登陆")]),_:1})]),e(T,{modelValue:u.value,"onUpdate:modelValue":_[2]||(_[2]=i=>u.value=i)},{default:t(()=>[e(o,{label:"基础配置",name:"changeMainConfig"},{default:t(()=>[e(a(s),{Mode:"main"})]),_:1}),e(o,{label:"解析配置",name:"changeParseConfig"},{default:t(()=>[e(a(s),{Mode:"parse"})]),_:1}),e(o,{label:"邮件配置",name:"changeMailConfig"},{default:t(()=>[e(a(g))]),_:1}),e(o,{label:"用户管理",name:"userManagement"},{default:t(()=>[e(a(E))]),_:1}),e(o,{label:"用户组管理",name:"groupManagement"},{default:t(()=>[e(a(b))]),_:1}),e(o,{label:"邀请码管理",name:"invCodeManagement"},{default:t(()=>[e(a(M))]),_:1}),e(o,{label:"卡密管理",name:"tokenManagement"},{default:t(()=>[e(a(V))]),_:1}),e(o,{label:"账号管理",name:"accountManagement"},{default:t(()=>[e(a(v))]),_:1}),e(o,{label:"记录管理",name:"recordManagement"},{default:t(()=>[e(a(C))]),_:1}),e(o,{label:"IP管理",name:"ipManagement"},{default:t(()=>[e(a(P))]),_:1}),e(o,{label:"开源说明",name:"openSourceNotice"},{default:t(()=>[e(d,null,{default:t(()=>[e(I,null,{default:t(()=>[m(" 项目所涉及的接口均为官方开放接口,需使用正版 SVIP 会员账号进行代理提取高速链接,无破坏官方接口行为,本身不存在违法。 仅供自己参考学习使用。诺违规使用官方会限制或封禁你的账号,包括你的 IP,如无官方授权进行商业用途会对你造成更严重后果。 源码仅供学习,如无视声明使用产生正负面结果(限速,被封等)都与作者无关。 ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})):B("",!0)}}});export{ie as default}; diff --git a/public/assets/js/AdminView-DtS82LJ1.js.gz b/public/assets/js/AdminView-DtS82LJ1.js.gz deleted file mode 100644 index 3ed7479..0000000 Binary files a/public/assets/js/AdminView-DtS82LJ1.js.gz and /dev/null differ diff --git a/public/assets/js/AnnounceDialog-C3AXj005.js b/public/assets/js/AnnounceDialog-C3AXj005.js new file mode 100644 index 0000000..5a6e837 --- /dev/null +++ b/public/assets/js/AnnounceDialog-C3AXj005.js @@ -0,0 +1 @@ +import{d,k as _}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as f,d as g}from"./index-DYV93AZk.js";import{s as k}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as V,o as w,G as h,H as t,a as s,i as m,L as l}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as n}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const v=["innerHTML"],x={class:"dialog-footer"},K=V({__name:"AnnounceDialog",setup(B){const p=f(),{config:o}=k(p),r=()=>o.value.show_announce=!1,c=()=>{g(o.value.announce),r()};return(C,e)=>{const a=d,u=_;return w(),h(u,{modelValue:n(o).show_announce,"onUpdate:modelValue":e[1]||(e[1]=i=>n(o).show_announce=i),title:"公告",width:"60%","close-on-click-modal":!1},{footer:t(()=>[s("div",x,[m(a,{type:"danger",onClick:c},{default:t(()=>[l(" 下次不再提示 ")]),_:1}),m(a,{type:"primary",onClick:e[0]||(e[0]=i=>r())},{default:t(()=>[l(" 确认 ")]),_:1})])]),default:t(()=>[s("span",{innerHTML:n(o).announce},null,8,v)]),_:1},8,["modelValue"])}}});export{K as default}; diff --git a/public/assets/js/AnnounceDialog-C3AXj005.js.gz b/public/assets/js/AnnounceDialog-C3AXj005.js.gz new file mode 100644 index 0000000..eb8a305 Binary files /dev/null and b/public/assets/js/AnnounceDialog-C3AXj005.js.gz differ diff --git a/public/assets/js/AnnounceDialog-CQxcnYiO.js b/public/assets/js/AnnounceDialog-CQxcnYiO.js deleted file mode 100644 index e20b660..0000000 --- a/public/assets/js/AnnounceDialog-CQxcnYiO.js +++ /dev/null @@ -1 +0,0 @@ -import{d,k as _}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as f,d as g}from"./index-Aa74bd4N.js";import{s as k}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as V,o as w,G as h,H as t,a as i,i as m,L as l}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as n}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const v=["innerHTML"],x={class:"dialog-footer"},I=V({__name:"AnnounceDialog",setup(B){const p=f(),{config:o}=k(p),a=()=>o.value.show_announce=!1,c=()=>{g(o.value.announce),a()};return(C,e)=>{const r=d,u=_;return w(),h(u,{modelValue:n(o).show_announce,"onUpdate:modelValue":e[1]||(e[1]=s=>n(o).show_announce=s),title:"公告",width:"60%","close-on-click-modal":!1},{footer:t(()=>[i("div",x,[m(r,{type:"danger",onClick:c},{default:t(()=>[l(" 下次不再提示 ")]),_:1}),m(r,{type:"primary",onClick:e[0]||(e[0]=s=>a())},{default:t(()=>[l(" 确认 ")]),_:1})])]),default:t(()=>[i("span",{innerHTML:n(o).announce},null,8,v)]),_:1},8,["modelValue"])}}});export{I as default}; diff --git a/public/assets/js/AnnounceDialog-CQxcnYiO.js.gz b/public/assets/js/AnnounceDialog-CQxcnYiO.js.gz deleted file mode 100644 index 0b88465..0000000 Binary files a/public/assets/js/AnnounceDialog-CQxcnYiO.js.gz and /dev/null differ diff --git a/public/assets/js/Aria2Dialog-BoClX_iS.js b/public/assets/js/Aria2Dialog-BoClX_iS.js new file mode 100644 index 0000000..4f5f629 --- /dev/null +++ b/public/assets/js/Aria2Dialog-BoClX_iS.js @@ -0,0 +1 @@ +import{b as g,c as A,d as C,e as b,k as c}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as k}from"./aria2Store-Eper8YQt.js";import{s as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as F,o as w,G as R,H as i,i as e,L as x}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as r,a as U}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./index-DYV93AZk.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const Y=F({__name:"Aria2Dialog",setup(v){const s=k(),{aria2ConfigForm:l,aria2ConfigFormRef:p,aria2ConfigDialogVisible:n}=E(s),u={host:[{required:!0,validator:(d,o,a)=>o===""?a(new Error("请输入Aria2 服务器地址")):o.includes("jsonrpc")?a(new Error("地址不需要包含端口或jsonrpc路径")):a(),message:"",trigger:"blur"}],port:[{required:!0,message:"请输入Aria2 端口号",trigger:"blur"}]};return(d,o)=>{const a=g,m=A,f=C,_=b,V=c;return w(),R(V,{modelValue:r(n),"onUpdate:modelValue":o[4]||(o[4]=t=>U(n)?n.value=t:null),title:"Aria2配置",width:"90%","close-on-click-modal":!1},{default:i(()=>[e(_,{ref_key:"aria2ConfigFormRef",ref:p,model:r(l),rules:u,"label-width":"auto"},{default:i(()=>[e(m,{label:"Aria2 服务器地址",prop:"host"},{default:i(()=>[e(a,{modelValue:r(l).host,"onUpdate:modelValue":o[0]||(o[0]=t=>r(l).host=t)},null,8,["modelValue"])]),_:1}),e(m,{label:"Aria2 端口号",prop:"port"},{default:i(()=>[e(a,{modelValue:r(l).port,"onUpdate:modelValue":o[1]||(o[1]=t=>r(l).port=t)},null,8,["modelValue"])]),_:1}),e(m,{label:"Aria2 下载密钥",prop:"token"},{default:i(()=>[e(a,{modelValue:r(l).token,"onUpdate:modelValue":o[2]||(o[2]=t=>r(l).token=t)},null,8,["modelValue"])]),_:1}),e(m,{label:" "},{default:i(()=>[e(f,{type:"primary",onClick:o[3]||(o[3]=t=>r(s).saveAria2Config())},{default:i(()=>[x(" 保存 ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{Y as default}; diff --git a/public/assets/js/Aria2Dialog-BoClX_iS.js.gz b/public/assets/js/Aria2Dialog-BoClX_iS.js.gz new file mode 100644 index 0000000..954c633 Binary files /dev/null and b/public/assets/js/Aria2Dialog-BoClX_iS.js.gz differ diff --git a/public/assets/js/Aria2Dialog-D7zQwXfq.js b/public/assets/js/Aria2Dialog-D7zQwXfq.js deleted file mode 100644 index dec3306..0000000 --- a/public/assets/js/Aria2Dialog-D7zQwXfq.js +++ /dev/null @@ -1 +0,0 @@ -import{b as g,c as A,d as C,e as b,k as c}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as k}from"./aria2Store-B37jzuFe.js";import{s as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as F,o as w,G as R,H as i,i as e,L as x}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as r,a as U}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./index-Aa74bd4N.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const W=F({__name:"Aria2Dialog",setup(v){const s=k(),{aria2ConfigForm:l,aria2ConfigFormRef:p,aria2ConfigDialogVisible:n}=E(s),u={host:[{required:!0,validator:(d,o,a)=>o===""?a(new Error("请输入Aria2 服务器地址")):o.includes("jsonrpc")?a(new Error("地址不需要包含端口或jsonrpc路径")):a(),message:"",trigger:"blur"}],port:[{required:!0,message:"请输入Aria2 端口号",trigger:"blur"}]};return(d,o)=>{const a=g,m=A,f=C,_=b,V=c;return w(),R(V,{modelValue:r(n),"onUpdate:modelValue":o[4]||(o[4]=t=>U(n)?n.value=t:null),title:"Aria2配置",width:"90%","close-on-click-modal":!1},{default:i(()=>[e(_,{ref_key:"aria2ConfigFormRef",ref:p,model:r(l),rules:u,"label-width":"auto"},{default:i(()=>[e(m,{label:"Aria2 服务器地址",prop:"host"},{default:i(()=>[e(a,{modelValue:r(l).host,"onUpdate:modelValue":o[0]||(o[0]=t=>r(l).host=t)},null,8,["modelValue"])]),_:1}),e(m,{label:"Aria2 端口号",prop:"port"},{default:i(()=>[e(a,{modelValue:r(l).port,"onUpdate:modelValue":o[1]||(o[1]=t=>r(l).port=t)},null,8,["modelValue"])]),_:1}),e(m,{label:"Aria2 下载密钥",prop:"token"},{default:i(()=>[e(a,{modelValue:r(l).token,"onUpdate:modelValue":o[2]||(o[2]=t=>r(l).token=t)},null,8,["modelValue"])]),_:1}),e(m,{label:" "},{default:i(()=>[e(f,{type:"primary",onClick:o[3]||(o[3]=t=>r(s).saveAria2Config())},{default:i(()=>[x(" 保存 ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{W as default}; diff --git a/public/assets/js/Aria2Dialog-D7zQwXfq.js.gz b/public/assets/js/Aria2Dialog-D7zQwXfq.js.gz deleted file mode 100644 index 40247da..0000000 Binary files a/public/assets/js/Aria2Dialog-D7zQwXfq.js.gz and /dev/null differ diff --git a/public/assets/js/ChangeMailConfig-DJNEUVYN.js b/public/assets/js/ChangeMailConfig-DJNEUVYN.js deleted file mode 100644 index 91ddc45..0000000 --- a/public/assets/js/ChangeMailConfig-DJNEUVYN.js +++ /dev/null @@ -1 +0,0 @@ -import{E as _,q,c as P,b as U,i as E,j as F,d as k,e as x,v as B}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as p}from"./index-Aa74bd4N.js";import{d as R,m as I,I as L,o as v,G as $,H as t,i as o,c as N,F as j,R as z,L as V}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as i}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const D=()=>p.get("/admin/config/mail"),G=m=>p.patch("/admin/config/mail",m),H=m=>p.post("/admin/config/mail",m),me=R({__name:"ChangeMailConfig",setup(m){const s=i(!1),l=i({switch:!1,host:"",port:"",username:"",password:"",encryption:"tls",from_address:"",from_name:"",to_address:"",to_name:""}),d=i(null),c={host:[{required:!0,message:"请输入SMTP服务器地址",trigger:"blur"}],port:[{required:!0,message:"请输入SMTP服务器端口",trigger:"blur"}],username:[{required:!0,message:"请输入SMTP服务器账户",trigger:"blur"}],password:[{required:!0,message:"请输入SMTP服务器密码",trigger:"blur"}],encryption:[{required:!0,message:"请选择SMTP服务器加密方式",trigger:"blur"}],from_address:[{required:!0,message:"请输入发件人地址",trigger:"blur"}],from_name:[{required:!0,message:"请输入发件人名称",trigger:"blur"}],to_address:[{required:!0,message:"请输入收件人地址",trigger:"blur"}],to_name:[{required:!0,message:"请输入收件人名称",trigger:"blur"}]},f=async()=>{try{s.value=!0;const u=await D();l.value=u.data}finally{s.value=!1}},b=async u=>{if(!(!u||!await u.validate()))try{s.value=!0,await G(l.value),_.success("保存成功")}finally{s.value=!1,await f()}},w=async u=>{if(!(!u||!await u.validate()))try{s.value=!0,await H(l.value),_.success("发送成功,请检查邮箱是否收到")}finally{s.value=!1}};return I(f),(u,a)=>{const y=q,r=P,n=U,M=E,C=F,g=k,T=x,S=B;return L((v(),$(T,{ref_key:"changeMailConfigFormRef",ref:d,model:l.value,rules:c,"label-width":"auto"},{default:t(()=>[o(r,{label:"是否开启",prop:"switch"},{default:t(()=>[o(y,{modelValue:l.value.switch,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value.switch=e),size:"large"},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器地址",prop:"host"},{default:t(()=>[o(n,{modelValue:l.value.host,"onUpdate:modelValue":a[1]||(a[1]=e=>l.value.host=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器加密方式",prop:"encryption"},{default:t(()=>[o(C,{modelValue:l.value.encryption,"onUpdate:modelValue":a[2]||(a[2]=e=>l.value.encryption=e),placeholder:"选择加密方式"},{default:t(()=>[(v(),N(j,null,z(["tls","ssl"],e=>o(M,{key:e,label:e,value:e},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器端口",prop:"port"},{default:t(()=>[o(n,{modelValue:l.value.port,"onUpdate:modelValue":a[3]||(a[3]=e=>l.value.port=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器用户名",prop:"username"},{default:t(()=>[o(n,{modelValue:l.value.username,"onUpdate:modelValue":a[4]||(a[4]=e=>l.value.username=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器密码",prop:"password"},{default:t(()=>[o(n,{modelValue:l.value.password,"onUpdate:modelValue":a[5]||(a[5]=e=>l.value.password=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"发件人地址",prop:"from_address"},{default:t(()=>[o(n,{modelValue:l.value.from_address,"onUpdate:modelValue":a[6]||(a[6]=e=>l.value.from_address=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"发件人名称",prop:"from_name"},{default:t(()=>[o(n,{modelValue:l.value.from_name,"onUpdate:modelValue":a[7]||(a[7]=e=>l.value.from_name=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"收件人名称",prop:"to_name"},{default:t(()=>[o(n,{modelValue:l.value.to_name,"onUpdate:modelValue":a[8]||(a[8]=e=>l.value.to_name=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"收件人地址",prop:"to_address"},{default:t(()=>[o(n,{modelValue:l.value.to_address,"onUpdate:modelValue":a[9]||(a[9]=e=>l.value.to_address=e)},null,8,["modelValue"])]),_:1}),o(r,{label:" "},{default:t(()=>[o(g,{type:"primary",onClick:a[10]||(a[10]=e=>b(d.value))},{default:t(()=>[V("保存")]),_:1}),o(g,{type:"primary",onClick:a[11]||(a[11]=e=>w(d.value))},{default:t(()=>[V(" 发送测试邮件 ")]),_:1})]),_:1})]),_:1},8,["model"])),[[S,s.value]])}}});export{me as default}; diff --git a/public/assets/js/ChangeMailConfig-DJNEUVYN.js.gz b/public/assets/js/ChangeMailConfig-DJNEUVYN.js.gz deleted file mode 100644 index 8c141d2..0000000 Binary files a/public/assets/js/ChangeMailConfig-DJNEUVYN.js.gz and /dev/null differ diff --git a/public/assets/js/ChangeMailConfig-DWXXcDjr.js b/public/assets/js/ChangeMailConfig-DWXXcDjr.js new file mode 100644 index 0000000..7d4e56d --- /dev/null +++ b/public/assets/js/ChangeMailConfig-DWXXcDjr.js @@ -0,0 +1 @@ +import{E as _,q,c as P,b as U,i as E,j as F,d as k,e as x,v as B}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as p}from"./index-DYV93AZk.js";import{d as R,m as I,I as L,o as v,G as $,H as t,i as o,c as N,F as j,R as z,L as V}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as i}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const D=()=>p.get("/admin/config/mail"),G=m=>p.patch("/admin/config/mail",m),H=m=>p.post("/admin/config/mail",m),ie=R({__name:"ChangeMailConfig",setup(m){const s=i(!1),l=i({switch:!1,host:"",port:"",username:"",password:"",encryption:"tls",from_address:"",from_name:"",to_address:"",to_name:""}),d=i(null),c={host:[{required:!0,message:"请输入SMTP服务器地址",trigger:"blur"}],port:[{required:!0,message:"请输入SMTP服务器端口",trigger:"blur"}],username:[{required:!0,message:"请输入SMTP服务器账户",trigger:"blur"}],password:[{required:!0,message:"请输入SMTP服务器密码",trigger:"blur"}],encryption:[{required:!0,message:"请选择SMTP服务器加密方式",trigger:"blur"}],from_address:[{required:!0,message:"请输入发件人地址",trigger:"blur"}],from_name:[{required:!0,message:"请输入发件人名称",trigger:"blur"}],to_address:[{required:!0,message:"请输入收件人地址",trigger:"blur"}],to_name:[{required:!0,message:"请输入收件人名称",trigger:"blur"}]},f=async()=>{try{s.value=!0;const u=await D();l.value=u.data}finally{s.value=!1}},b=async u=>{if(!(!u||!await u.validate()))try{s.value=!0,await G(l.value),_.success("保存成功")}finally{s.value=!1,await f()}},w=async u=>{if(!(!u||!await u.validate()))try{s.value=!0,await H(l.value),_.success("发送成功,请检查邮箱是否收到")}finally{s.value=!1}};return I(f),(u,a)=>{const y=q,r=P,n=U,M=E,C=F,g=k,T=x,S=B;return L((v(),$(T,{ref_key:"changeMailConfigFormRef",ref:d,model:l.value,rules:c,"label-width":"auto"},{default:t(()=>[o(r,{label:"是否开启",prop:"switch"},{default:t(()=>[o(y,{modelValue:l.value.switch,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value.switch=e),size:"large"},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器地址",prop:"host"},{default:t(()=>[o(n,{modelValue:l.value.host,"onUpdate:modelValue":a[1]||(a[1]=e=>l.value.host=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器加密方式",prop:"encryption"},{default:t(()=>[o(C,{modelValue:l.value.encryption,"onUpdate:modelValue":a[2]||(a[2]=e=>l.value.encryption=e),placeholder:"选择加密方式"},{default:t(()=>[(v(),N(j,null,z(["tls","ssl"],e=>o(M,{key:e,label:e,value:e},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器端口",prop:"port"},{default:t(()=>[o(n,{modelValue:l.value.port,"onUpdate:modelValue":a[3]||(a[3]=e=>l.value.port=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器用户名",prop:"username"},{default:t(()=>[o(n,{modelValue:l.value.username,"onUpdate:modelValue":a[4]||(a[4]=e=>l.value.username=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"SMTP服务器密码",prop:"password"},{default:t(()=>[o(n,{modelValue:l.value.password,"onUpdate:modelValue":a[5]||(a[5]=e=>l.value.password=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"发件人地址",prop:"from_address"},{default:t(()=>[o(n,{modelValue:l.value.from_address,"onUpdate:modelValue":a[6]||(a[6]=e=>l.value.from_address=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"发件人名称",prop:"from_name"},{default:t(()=>[o(n,{modelValue:l.value.from_name,"onUpdate:modelValue":a[7]||(a[7]=e=>l.value.from_name=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"收件人名称",prop:"to_name"},{default:t(()=>[o(n,{modelValue:l.value.to_name,"onUpdate:modelValue":a[8]||(a[8]=e=>l.value.to_name=e)},null,8,["modelValue"])]),_:1}),o(r,{label:"收件人地址",prop:"to_address"},{default:t(()=>[o(n,{modelValue:l.value.to_address,"onUpdate:modelValue":a[9]||(a[9]=e=>l.value.to_address=e)},null,8,["modelValue"])]),_:1}),o(r,{label:" "},{default:t(()=>[o(g,{type:"primary",onClick:a[10]||(a[10]=e=>b(d.value))},{default:t(()=>[V("保存")]),_:1}),o(g,{type:"primary",onClick:a[11]||(a[11]=e=>w(d.value))},{default:t(()=>[V(" 发送测试邮件 ")]),_:1})]),_:1})]),_:1},8,["model"])),[[S,s.value]])}}});export{ie as default}; diff --git a/public/assets/js/ChangeMailConfig-DWXXcDjr.js.gz b/public/assets/js/ChangeMailConfig-DWXXcDjr.js.gz new file mode 100644 index 0000000..4a0cf0e Binary files /dev/null and b/public/assets/js/ChangeMailConfig-DWXXcDjr.js.gz differ diff --git a/public/assets/js/ChangeMainConfig-BcufcFCB.js.gz b/public/assets/js/ChangeMainConfig-BcufcFCB.js.gz deleted file mode 100644 index 5268610..0000000 Binary files a/public/assets/js/ChangeMainConfig-BcufcFCB.js.gz and /dev/null differ diff --git a/public/assets/js/ChangeMainConfig-BcufcFCB.js b/public/assets/js/ChangeMainConfig-DBsWGwM3.js similarity index 85% rename from public/assets/js/ChangeMainConfig-BcufcFCB.js rename to public/assets/js/ChangeMainConfig-DBsWGwM3.js index f0dcf6d..45f6c72 100644 --- a/public/assets/js/ChangeMainConfig-BcufcFCB.js +++ b/public/assets/js/ChangeMainConfig-DBsWGwM3.js @@ -1,2 +1,2 @@ -import{E as f,b as S,c as $,q as N,r as R,i as I,j as D,d as L,e as T,v as W}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as x,n as j}from"./index-Aa74bd4N.js";import{u as J}from"./changeConfigForm-D7mlas_l.js";import{s as H}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as K,m as O,I as Y,o as g,G as w,H as i,c as y,F as U,i as a,K as v,L as C}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as M,u as t}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const Q=()=>x.get("/admin/config/main"),X=m=>x.patch("/admin/config/main",m),Z=m=>x.post("/admin/config/main/testAuth",m),ve=K({__name:"ChangeMainConfig",props:["Mode"],setup(m){const p=M(!1),q=J(),{changeConfigForm:e}=H(q),V=M(null),A={name:[{required:!0,message:"请输入站点名称",trigger:"blur"}],sleep:[{required:!0,message:"请输入批量解析时休眠时间",trigger:"blur"}],max_once:[{required:!0,message:"请输入批量解析时单次最大解析数量",trigger:"blur"}],max_filesize:[{required:!0,message:"请输入单日单个账号最大解析大小",trigger:"blur"}],min_single_filesize:[{required:!0,message:"请输入可解析文件最小需要大小",trigger:"blur"}],max_single_filesize:[{required:!0,message:"请输入可解析文件最大可是大小",trigger:"blur"}],user_agent:[{required:!0,message:"请输入User_Agent",trigger:"blur"}]},b=async()=>{try{p.value=!0;const l=(await Q()).data;e.value={...l,max_filesize:l.max_filesize/1024**3,min_single_filesize:l.min_single_filesize/1024**3,max_single_filesize:l.max_single_filesize/1024**3,front_end_version:await j(),announce:l.announce.replaceAll("[NextLine]",` -`)}}finally{p.value=!1}},B=async d=>{if(!(!d||!await d.validate())){if(e.value.parse_mode===11&&!/^netdisk;/.test(e.value.user_agent)){f.error("User_Agent格式不正确, 请使用 netdisk;xxx");return}try{p.value=!0,await X({...e.value,max_filesize:e.value.max_filesize*1024**3,min_single_filesize:e.value.min_single_filesize*1024**3,max_single_filesize:e.value.max_single_filesize*1024**3}),f.success("保存成功")}finally{p.value=!1,await b()}}},E=async d=>{if(!(!d||!await d.validate()))try{p.value=!0;const l=await Z({...e.value,max_filesize:e.value.max_filesize*1024**3,min_single_filesize:e.value.min_single_filesize*1024**3,max_single_filesize:e.value.max_single_filesize*1024**3});"ip"in l.data?f.error(`未知授权码,当前ip为: ${l.data.ip}`):f.success(`测试通过,有效期至: ${l.data.expired_at}`)}finally{p.value=!1,await b()}};O(b);const z=()=>{let d="";switch(e.value.parse_mode){case 5:d="pan.baidu.com";break;case 1:case 8:d="netdisk;P2SP;3.0.10.22";break;case 6:case 7:d="netdisk;P2SP;3.0.20.4;netdisk;4.36.2;PC;PC-Windows;10.0.19045;UniBaiduYunGuanJia";break;case 2:case 9:d="netdisk;12.11.9;23049RAD8C;android-android;13;JSbridge4.4.0;jointBridge;1.1.0;";break;case 10:d="Mozilla/5.0 (94list-laravel;netdisk;svip)";break;case 11:d="netdisk;hklist";break;default:d="netdisk;P2SP;3.0.10.22";break}e.value.user_agent=d};return(d,l)=>{const u=S,n=$,s=N,_=R,r=I,F=D,k=L,P=T,G=W;return Y((g(),w(P,{ref_key:"changeConfigFormRef",ref:V,model:t(e),rules:A,"label-width":"auto"},{default:i(()=>[m.Mode==="main"?(g(),y(U,{key:0},[a(n,{label:"前端版本号",prop:"front_end_version"},{default:i(()=>[a(u,{disabled:"",modelValue:t(e).front_end_version,"onUpdate:modelValue":l[0]||(l[0]=o=>t(e).front_end_version=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"后端版本号",prop:"version"},{default:i(()=>[a(u,{disabled:"",modelValue:t(e).version,"onUpdate:modelValue":l[1]||(l[1]=o=>t(e).version=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"站点名称",prop:"name"},{default:i(()=>[a(u,{modelValue:t(e).name,"onUpdate:modelValue":l[2]||(l[2]=o=>t(e).name=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"公告内容",prop:"announce"},{default:i(()=>[a(u,{type:"textarea",modelValue:t(e).announce,"onUpdate:modelValue":l[3]||(l[3]=o=>t(e).announce=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"DEBUG模式开关",prop:"debug"},{default:i(()=>[a(s,{modelValue:t(e).debug,"onUpdate:modelValue":l[4]||(l[4]=o=>t(e).debug=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"邀请码开关",prop:"need_inv_code"},{default:i(()=>[a(s,{modelValue:t(e).need_inv_code,"onUpdate:modelValue":l[5]||(l[5]=o=>t(e).need_inv_code=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"白名单模式开关",prop:"whitelist_mode"},{default:i(()=>[a(s,{modelValue:t(e).whitelist_mode,"onUpdate:modelValue":l[6]||(l[6]=o=>t(e).whitelist_mode=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"展示版权信息",prop:"show_copyright"},{default:i(()=>[a(s,{modelValue:t(e).show_copyright,"onUpdate:modelValue":l[7]||(l[7]=o=>t(e).show_copyright=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"自定义版权",prop:"custom_copyright"},{default:i(()=>[a(u,{modelValue:t(e).custom_copyright,"onUpdate:modelValue":l[8]||(l[8]=o=>t(e).custom_copyright=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"卡密模式开关",prop:"token_mode"},{default:i(()=>[a(s,{modelValue:t(e).token_mode,"onUpdate:modelValue":l[9]||(l[9]=o=>t(e).token_mode=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"卡网跳转链接",prop:"button_link"},{default:i(()=>[a(u,{modelValue:t(e).button_link,"onUpdate:modelValue":l[10]||(l[10]=o=>t(e).button_link=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"显示登陆按钮",prop:"show_login_button"},{default:i(()=>[a(s,{modelValue:t(e).show_login_button,"onUpdate:modelValue":l[11]||(l[11]=o=>t(e).show_login_button=o),size:"large"},null,8,["modelValue"])]),_:1})],64)):v("",!0),m.Mode==="parse"?(g(),y(U,{key:1},[a(n,{label:"下载使用的 User_Agent",prop:"user_agent"},{default:i(()=>[a(u,{modelValue:t(e).user_agent,"onUpdate:modelValue":l[12]||(l[12]=o=>t(e).user_agent=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"批量解析时休眠时间(秒)",prop:"sleep"},{default:i(()=>[a(_,{modelValue:t(e).sleep,"onUpdate:modelValue":l[13]||(l[13]=o=>t(e).sleep=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"批量解析时单次最大解析数量(个)",prop:"max_once"},{default:i(()=>[a(_,{modelValue:t(e).max_once,"onUpdate:modelValue":l[14]||(l[14]=o=>t(e).max_once=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"单日单个账号最大解析大小(GB)",prop:"max_filesize"},{default:i(()=>[a(_,{modelValue:t(e).max_filesize,"onUpdate:modelValue":l[15]||(l[15]=o=>t(e).max_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"可解析文件最小需要大小(GB)",prop:"min_single_filesize"},{default:i(()=>[a(_,{modelValue:t(e).min_single_filesize,"onUpdate:modelValue":l[16]||(l[16]=o=>t(e).min_single_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"可解析文件最大可是大小(GB)",prop:"max_single_filesize"},{default:i(()=>[a(_,{modelValue:t(e).max_single_filesize,"onUpdate:modelValue":l[17]||(l[17]=o=>t(e).max_single_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"解析密码",prop:"password"},{default:i(()=>[a(u,{modelValue:t(e).password,"onUpdate:modelValue":l[18]||(l[18]=o=>t(e).password=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"购买授权联系TG:"},{default:i(()=>[a(u,{disabled:"",value:"t.me/huan_kong"})]),_:1}),a(n,{label:"授权服务器",prop:"main_server"},{default:i(()=>[a(u,{modelValue:t(e).main_server,"onUpdate:modelValue":l[19]||(l[19]=o=>t(e).main_server=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"授权码",prop:"code"},{default:i(()=>[a(u,{modelValue:t(e).code,"onUpdate:modelValue":l[20]||(l[20]=o=>t(e).code=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"代理下载服务器",prop:"proxy_server"},{default:i(()=>[a(u,{modelValue:t(e).proxy_server,"onUpdate:modelValue":l[21]||(l[21]=o=>t(e).proxy_server=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"代理下载服务器密码",prop:"proxy_password"},{default:i(()=>[a(u,{modelValue:t(e).proxy_password,"onUpdate:modelValue":l[22]||(l[22]=o=>t(e).proxy_password=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"解析模式",prop:"parse_mode"},{default:i(()=>[a(F,{modelValue:t(e).parse_mode,"onUpdate:modelValue":l[23]||(l[23]=o=>t(e).parse_mode=o),onBlur:z,onChange:z},{default:i(()=>[a(r,{value:5,label:"V5盘内(开放平台接口)"}),a(r,{value:10,label:"V10盘内(开放平台接口)"}),a(r,{value:1,label:"V1盘内(原版V1,qdall下载可能失败,Windows)"}),a(r,{value:6,label:"V6盘内(改版V1,一定程度防风控)"}),a(r,{value:8,label:"V8盘内(改版V1,qdall下载可能失败,Android)"}),a(r,{value:2,label:"V2盘外(原版V2,qdall下载可能失败,Android)"}),a(r,{value:7,label:"V7盘外(改版V2,一定程度防风控)"}),a(r,{value:9,label:"V9盘外(改版V2,qdall下载可能失败,Windows)"}),a(r,{value:11,label:"V11盘内"}),a(r,{value:12,label:"V12盘外"})]),_:1},8,["modelValue"])]),_:1}),a(n,{label:"省份模式开关",prop:"limit_prov"},{default:i(()=>[a(s,{modelValue:t(e).limit_prov,"onUpdate:modelValue":l[24]||(l[24]=o=>t(e).limit_prov=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"仅限中国用户使用",prop:"limit_cn"},{default:i(()=>[a(s,{modelValue:t(e).limit_cn,"onUpdate:modelValue":l[25]||(l[25]=o=>t(e).limit_cn=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"卡密绑定ip",prop:"token_bind_ip"},{default:i(()=>[a(s,{modelValue:t(e).token_bind_ip,"onUpdate:modelValue":l[26]||(l[26]=o=>t(e).token_bind_ip=o),size:"large"},null,8,["modelValue"])]),_:1})],64)):v("",!0),a(n,{label:" "},{default:i(()=>[a(k,{type:"primary",onClick:l[27]||(l[27]=o=>B(V.value))},{default:i(()=>[C("保存")]),_:1}),m.Mode==="parse"?(g(),w(k,{key:0,type:"primary",onClick:l[28]||(l[28]=o=>E(V.value))},{default:i(()=>[C(" 测试授权 ")]),_:1})):v("",!0)]),_:1})]),_:1},8,["model"])),[[G,p.value]])}}});export{ve as default}; +import{E as f,b as S,c as $,q as N,r as R,i as I,j as D,d as L,e as T,v as W}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as x,n as j}from"./index-DYV93AZk.js";import{u as J}from"./changeConfigForm-D___ED7J.js";import{s as H}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as K,m as O,I as Y,o as g,G as w,H as i,c as y,F as U,i as a,K as v,L as C}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as M,u as t}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const Q=()=>x.get("/admin/config/main"),X=m=>x.patch("/admin/config/main",m),Z=m=>x.post("/admin/config/main/testAuth",m),ze=K({__name:"ChangeMainConfig",props:["Mode"],setup(m){const p=M(!1),q=J(),{changeConfigForm:e}=H(q),V=M(null),A={name:[{required:!0,message:"请输入站点名称",trigger:"blur"}],sleep:[{required:!0,message:"请输入批量解析时休眠时间",trigger:"blur"}],max_once:[{required:!0,message:"请输入批量解析时单次最大解析数量",trigger:"blur"}],max_filesize:[{required:!0,message:"请输入单日单个账号最大解析大小",trigger:"blur"}],min_single_filesize:[{required:!0,message:"请输入可解析文件最小需要大小",trigger:"blur"}],max_single_filesize:[{required:!0,message:"请输入可解析文件最大可是大小",trigger:"blur"}],user_agent:[{required:!0,message:"请输入User_Agent",trigger:"blur"}]},b=async()=>{try{p.value=!0;const l=(await Q()).data;e.value={...l,max_filesize:l.max_filesize/1024**3,min_single_filesize:l.min_single_filesize/1024**3,max_single_filesize:l.max_single_filesize/1024**3,front_end_version:await j(),announce:l.announce.replaceAll("[NextLine]",` +`)}}finally{p.value=!1}},B=async d=>{if(!(!d||!await d.validate())){if(e.value.parse_mode===11&&!/^netdisk;/.test(e.value.user_agent)){f.error("User_Agent格式不正确, 请使用 netdisk;xxx");return}try{p.value=!0,await X({...e.value,max_filesize:e.value.max_filesize*1024**3,min_single_filesize:e.value.min_single_filesize*1024**3,max_single_filesize:e.value.max_single_filesize*1024**3}),f.success("保存成功")}finally{p.value=!1,await b()}}},E=async d=>{if(!(!d||!await d.validate()))try{p.value=!0;const l=await Z({...e.value,max_filesize:e.value.max_filesize*1024**3,min_single_filesize:e.value.min_single_filesize*1024**3,max_single_filesize:e.value.max_single_filesize*1024**3});"ip"in l.data?f.error(`未知授权码,当前ip为: ${l.data.ip}`):f.success(`测试通过,有效期至: ${l.data.expired_at}`)}finally{p.value=!1,await b()}};O(b);const z=()=>{let d="";switch(e.value.parse_mode){case 5:d="pan.baidu.com";break;case 1:case 8:d="netdisk;P2SP;3.0.10.22";break;case 6:case 7:d="netdisk;P2SP;3.0.20.4;netdisk;4.36.2;PC;PC-Windows;10.0.19045;UniBaiduYunGuanJia";break;case 2:case 9:d="netdisk;12.11.9;23049RAD8C;android-android;13;JSbridge4.4.0;jointBridge;1.1.0;";break;case 10:d="Mozilla/5.0 (94list-laravel;netdisk;svip)";break;case 11:d="netdisk;hklist";break;default:d="netdisk;P2SP;3.0.10.22";break}e.value.user_agent=d};return(d,l)=>{const u=S,n=$,s=N,_=R,r=I,F=D,k=L,P=T,G=W;return Y((g(),w(P,{ref_key:"changeConfigFormRef",ref:V,model:t(e),rules:A,"label-width":"auto"},{default:i(()=>[m.Mode==="main"?(g(),y(U,{key:0},[a(n,{label:"前端版本号",prop:"front_end_version"},{default:i(()=>[a(u,{disabled:"",modelValue:t(e).front_end_version,"onUpdate:modelValue":l[0]||(l[0]=o=>t(e).front_end_version=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"后端版本号",prop:"version"},{default:i(()=>[a(u,{disabled:"",modelValue:t(e).version,"onUpdate:modelValue":l[1]||(l[1]=o=>t(e).version=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"站点名称",prop:"name"},{default:i(()=>[a(u,{modelValue:t(e).name,"onUpdate:modelValue":l[2]||(l[2]=o=>t(e).name=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"公告内容",prop:"announce"},{default:i(()=>[a(u,{type:"textarea",modelValue:t(e).announce,"onUpdate:modelValue":l[3]||(l[3]=o=>t(e).announce=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"DEBUG模式开关",prop:"debug"},{default:i(()=>[a(s,{modelValue:t(e).debug,"onUpdate:modelValue":l[4]||(l[4]=o=>t(e).debug=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"邀请码开关",prop:"need_inv_code"},{default:i(()=>[a(s,{modelValue:t(e).need_inv_code,"onUpdate:modelValue":l[5]||(l[5]=o=>t(e).need_inv_code=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"白名单模式开关",prop:"whitelist_mode"},{default:i(()=>[a(s,{modelValue:t(e).whitelist_mode,"onUpdate:modelValue":l[6]||(l[6]=o=>t(e).whitelist_mode=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"展示版权信息",prop:"show_copyright"},{default:i(()=>[a(s,{modelValue:t(e).show_copyright,"onUpdate:modelValue":l[7]||(l[7]=o=>t(e).show_copyright=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"自定义版权",prop:"custom_copyright"},{default:i(()=>[a(u,{modelValue:t(e).custom_copyright,"onUpdate:modelValue":l[8]||(l[8]=o=>t(e).custom_copyright=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"卡密模式开关",prop:"token_mode"},{default:i(()=>[a(s,{modelValue:t(e).token_mode,"onUpdate:modelValue":l[9]||(l[9]=o=>t(e).token_mode=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"卡网跳转链接",prop:"button_link"},{default:i(()=>[a(u,{modelValue:t(e).button_link,"onUpdate:modelValue":l[10]||(l[10]=o=>t(e).button_link=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"显示登陆按钮",prop:"show_login_button"},{default:i(()=>[a(s,{modelValue:t(e).show_login_button,"onUpdate:modelValue":l[11]||(l[11]=o=>t(e).show_login_button=o),size:"large"},null,8,["modelValue"])]),_:1})],64)):v("",!0),m.Mode==="parse"?(g(),y(U,{key:1},[a(n,{label:"下载使用的 User_Agent",prop:"user_agent"},{default:i(()=>[a(u,{modelValue:t(e).user_agent,"onUpdate:modelValue":l[12]||(l[12]=o=>t(e).user_agent=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"批量解析时休眠时间(秒)",prop:"sleep"},{default:i(()=>[a(_,{modelValue:t(e).sleep,"onUpdate:modelValue":l[13]||(l[13]=o=>t(e).sleep=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"批量解析时单次最大解析数量(个)",prop:"max_once"},{default:i(()=>[a(_,{modelValue:t(e).max_once,"onUpdate:modelValue":l[14]||(l[14]=o=>t(e).max_once=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"单日单个账号最大解析大小(GB)",prop:"max_filesize"},{default:i(()=>[a(_,{modelValue:t(e).max_filesize,"onUpdate:modelValue":l[15]||(l[15]=o=>t(e).max_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"可解析文件最小需要大小(GB)",prop:"min_single_filesize"},{default:i(()=>[a(_,{modelValue:t(e).min_single_filesize,"onUpdate:modelValue":l[16]||(l[16]=o=>t(e).min_single_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"可解析文件最大可是大小(GB)",prop:"max_single_filesize"},{default:i(()=>[a(_,{modelValue:t(e).max_single_filesize,"onUpdate:modelValue":l[17]||(l[17]=o=>t(e).max_single_filesize=o),style:{width:"300px"}},null,8,["modelValue"])]),_:1}),a(n,{label:"解析密码",prop:"password"},{default:i(()=>[a(u,{modelValue:t(e).password,"onUpdate:modelValue":l[18]||(l[18]=o=>t(e).password=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"购买授权联系TG:"},{default:i(()=>[a(u,{disabled:"",value:"t.me/huan_kong"})]),_:1}),a(n,{label:"授权服务器",prop:"main_server"},{default:i(()=>[a(u,{modelValue:t(e).main_server,"onUpdate:modelValue":l[19]||(l[19]=o=>t(e).main_server=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"授权码",prop:"code"},{default:i(()=>[a(u,{modelValue:t(e).code,"onUpdate:modelValue":l[20]||(l[20]=o=>t(e).code=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"代理下载服务器",prop:"proxy_server"},{default:i(()=>[a(u,{modelValue:t(e).proxy_server,"onUpdate:modelValue":l[21]||(l[21]=o=>t(e).proxy_server=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"代理下载服务器密码",prop:"proxy_password"},{default:i(()=>[a(u,{modelValue:t(e).proxy_password,"onUpdate:modelValue":l[22]||(l[22]=o=>t(e).proxy_password=o),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1}),a(n,{label:"解析模式",prop:"parse_mode"},{default:i(()=>[a(F,{modelValue:t(e).parse_mode,"onUpdate:modelValue":l[23]||(l[23]=o=>t(e).parse_mode=o),onBlur:z,onChange:z},{default:i(()=>[a(r,{value:5,label:"V5盘内(开放平台接口)"}),a(r,{value:10,label:"V10盘内(开放平台接口)"}),a(r,{value:1,label:"V1盘内(原版V1,qdall下载可能失败,Windows)"}),a(r,{value:6,label:"V6盘内(改版V1,一定程度防风控)"}),a(r,{value:8,label:"V8盘内(改版V1,qdall下载可能失败,Android)"}),a(r,{value:2,label:"V2盘外(原版V2,qdall下载可能失败,Android)"}),a(r,{value:7,label:"V7盘外(改版V2,一定程度防风控)"}),a(r,{value:9,label:"V9盘外(改版V2,qdall下载可能失败,Windows)"}),a(r,{value:11,label:"V11盘内"}),a(r,{value:12,label:"V12盘外"})]),_:1},8,["modelValue"])]),_:1}),a(n,{label:"省份模式开关",prop:"limit_prov"},{default:i(()=>[a(s,{modelValue:t(e).limit_prov,"onUpdate:modelValue":l[24]||(l[24]=o=>t(e).limit_prov=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"仅限中国用户使用",prop:"limit_cn"},{default:i(()=>[a(s,{modelValue:t(e).limit_cn,"onUpdate:modelValue":l[25]||(l[25]=o=>t(e).limit_cn=o),size:"large"},null,8,["modelValue"])]),_:1}),a(n,{label:"卡密绑定ip",prop:"token_bind_ip"},{default:i(()=>[a(s,{modelValue:t(e).token_bind_ip,"onUpdate:modelValue":l[26]||(l[26]=o=>t(e).token_bind_ip=o),size:"large"},null,8,["modelValue"])]),_:1})],64)):v("",!0),a(n,{label:" "},{default:i(()=>[a(k,{type:"primary",onClick:l[27]||(l[27]=o=>B(V.value))},{default:i(()=>[C("保存")]),_:1}),m.Mode==="parse"?(g(),w(k,{key:0,type:"primary",onClick:l[28]||(l[28]=o=>E(V.value))},{default:i(()=>[C(" 测试授权 ")]),_:1})):v("",!0)]),_:1})]),_:1},8,["model"])),[[G,p.value]])}}});export{ze as default}; diff --git a/public/assets/js/ChangeMainConfig-DBsWGwM3.js.gz b/public/assets/js/ChangeMainConfig-DBsWGwM3.js.gz new file mode 100644 index 0000000..f3be110 Binary files /dev/null and b/public/assets/js/ChangeMainConfig-DBsWGwM3.js.gz differ diff --git a/public/assets/js/DownloadLinks-0QpbYdeQ.js b/public/assets/js/DownloadLinks-0QpbYdeQ.js new file mode 100644 index 0000000..00f7af2 --- /dev/null +++ b/public/assets/js/DownloadLinks-0QpbYdeQ.js @@ -0,0 +1 @@ +import{E as r,d as M,n as R,m as G,p as H,o as I,k as P}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as D,a as x}from"./index-DYV93AZk.js";import{u as q}from"./aria2Store-Eper8YQt.js";import{u as J}from"./fileListStore-BL5xDhSX.js";import{c as A}from"./copy-By2guqEs.js";import{s as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as K,o as c,G as f,H as a,i as o,L as s,c as O,F as Q,a as k}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as W,u as _,a as X}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as C}from"./@vue_shared@3.4.32-CaCWPAm8.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const Y=h=>new Promise(u=>setTimeout(u,h)),Z=k("h3",null,[s("下载请推荐使用Aria2下载器,如 "),k("a",{href:"https://motrix.app/",target:"_blank"},"Motrix")],-1),w=k("h3",null,"IDM下载需要手动指定UA,点击即可复制",-1),ee=k("h3",null,"如果当前链接下载失败,请尝试更换链接,如果全部不可用可以单独重新解析单个文件",-1),xe=K({__name:"DownloadLinks",setup(h){const u=J(),{downloadLinks:g,dialogVisible:y}=E(u),v=W([]),L=t=>v.value=t,V=q(),{aria2ConfigForm:i,aria2ConfigDialogVisible:F}=E(V),b=async t=>{try{await D.post(`${i.value.host}:${i.value.port}/jsonrpc`,{jsonrpc:"2.0",id:x(),method:"aria2.getVersion",params:[`token:${i.value.token}`]})}catch{return r.error("检查 Aria2 服务状态失败")}try{await D.post(`${i.value.host}:${i.value.port}/jsonrpc`,{jsonrpc:"2.0",id:x(),method:"aria2.addUri",params:[`token:${i.value.token}`,[t.urls?t.urls[t.index]:t.url],{out:t.filename,header:[`User-Agent: ${t.ua}`]}]})}catch{return r.error("发送失败, 请检查控制台输出, 自行谷歌搜索或提交issue")}r.success(`已把${t.filename}任务发送给下载器`)},S=async()=>{r.error("请确保最大同时下载文件数在5及以下,否则可能出现下载失败!"),await Y(3e3),r.success("开始下载"),v.value.forEach(t=>b(t))},U=()=>F.value=!0,$=async(t,l)=>{const n=await u.getDownloadLinks(l,!0);if(!n)return r.error("重新解析失败");g.value[t]=n[0]},z=t=>{g.value[t].index++};return(t,l)=>{const n=M,B=R,p=G,T=H,j=I,N=P;return c(),f(N,{title:"链接列表",modelValue:_(y),"onUpdate:modelValue":l[2]||(l[2]=e=>X(y)?y.value=e:null),"align-center":"","show-close":"","close-on-click-modal":!1},{default:a(()=>[Z,w,ee,o(B,null,{default:a(()=>[o(n,{type:"primary",disabled:v.value.length<=0,onClick:l[0]||(l[0]=e=>S())},{default:a(()=>[s(" 批量下载 ")]),_:1},8,["disabled"]),o(n,{type:"primary",onClick:l[1]||(l[1]=e=>U())},{default:a(()=>[s("下载配置")]),_:1})]),_:1}),o(j,{border:"","show-overflow-tooltip":"",class:"table",data:_(g),onSelectionChange:L},{default:a(()=>[o(p,{type:"selection",width:"40"}),o(p,{prop:"ua",label:"UA"},{default:a(({row:e})=>[o(T,{type:"danger",onClick:m=>_(A)(e.ua,"已复制UA")},{default:a(()=>[s(C(e.ua??e.url),1)]),_:2},1032,["onClick"])]),_:1}),o(p,{prop:"filename",label:"文件名"}),o(p,{prop:"url",label:"下载链接"},{default:a(({row:e})=>[s(C(e.urls?e.urls[e.index]:e.url),1)]),_:1}),o(p,{label:"操作",width:"400"},{default:a(({row:e,$index:m})=>[o(n,{type:"primary",size:"small",onClick:d=>_(A)(e.urls?e.urls[e.index]:e.url,"已将链接复制到粘贴板内")},{default:a(()=>[s(" 复制链接 ")]),_:2},1032,["onClick"]),o(n,{type:"primary",size:"small",onClick:d=>b(e)},{default:a(()=>[s(" 发送Aria2 ")]),_:2},1032,["onClick"]),e.urls?(c(),O(Q,{key:0},[e.indexz(m)},{default:a(()=>[s(" 更换链接 (当前第"+C(e.index+1)+"条链接) ",1)]),_:2},1032,["onClick"])):(c(),f(n,{key:1,type:"danger",size:"small",onClick:d=>$(m,e.fs_id)},{default:a(()=>[s(" 重新解析 ")]),_:2},1032,["onClick"]))],64)):(c(),f(n,{key:1,type:"danger",size:"small",onClick:d=>$(m,e.fs_id)},{default:a(()=>[s(" 重新解析 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"])}}});export{xe as default}; diff --git a/public/assets/js/DownloadLinks-0QpbYdeQ.js.gz b/public/assets/js/DownloadLinks-0QpbYdeQ.js.gz new file mode 100644 index 0000000..497f1d3 Binary files /dev/null and b/public/assets/js/DownloadLinks-0QpbYdeQ.js.gz differ diff --git a/public/assets/js/DownloadLinks-DBWmvHL8.js b/public/assets/js/DownloadLinks-DBWmvHL8.js deleted file mode 100644 index dd49578..0000000 --- a/public/assets/js/DownloadLinks-DBWmvHL8.js +++ /dev/null @@ -1 +0,0 @@ -import{E as r,d as M,n as R,m as G,p as H,o as I,k as P}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as D,a as x}from"./index-Aa74bd4N.js";import{u as q}from"./aria2Store-B37jzuFe.js";import{u as J}from"./fileListStore-CafL_dKw.js";import{c as A}from"./copy-By2guqEs.js";import{s as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as K,o as p,G as f,H as a,i as o,L as s,c as O,F as Q,a as k}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as W,u as _,a as X}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as C}from"./@vue_shared@3.4.32-CaCWPAm8.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const Y=h=>new Promise(u=>setTimeout(u,h)),Z=k("h3",null,[s("下载请推荐使用Aria2下载器,如 "),k("a",{href:"https://motrix.app/",target:"_blank"},"Motrix")],-1),w=k("h3",null,"IDM下载需要手动指定UA,点击即可复制",-1),ee=k("h3",null,"如果当前链接下载失败,请尝试更换链接,如果全部不可用可以单独重新解析单个文件",-1),$e=K({__name:"DownloadLinks",setup(h){const u=J(),{downloadLinks:g,dialogVisible:y}=E(u),v=W([]),L=t=>v.value=t,V=q(),{aria2ConfigForm:i,aria2ConfigDialogVisible:F}=E(V),b=async t=>{try{await D.post(`${i.value.host}:${i.value.port}/jsonrpc`,{jsonrpc:"2.0",id:x(),method:"aria2.getVersion",params:[`token:${i.value.token}`]})}catch{return r.error("检查 Aria2 服务状态失败")}try{await D.post(`${i.value.host}:${i.value.port}/jsonrpc`,{jsonrpc:"2.0",id:x(),method:"aria2.addUri",params:[`token:${i.value.token}`,[t.urls?t.urls[t.index]:t.url],{out:t.filename,header:[`User-Agent: ${t.ua}`]}]})}catch{return r.error("发送失败, 请检查控制台输出, 自行谷歌搜索或提交issue")}r.success(`已把${t.filename}任务发送给下载器`)},S=async()=>{r.error("请确保最大同时下载文件数在5及以下,否则可能出现下载失败!"),await Y(3e3),r.success("开始下载"),v.value.forEach(t=>b(t))},U=()=>F.value=!0,$=async(t,l)=>{const n=await u.getDownloadLinks(l,!0);if(!n)return r.error("重新解析失败");g.value[t]=n[0]},z=t=>{g.value[t].index++};return(t,l)=>{const n=M,B=R,c=G,T=H,j=I,N=P;return p(),f(N,{title:"链接列表",modelValue:_(y),"onUpdate:modelValue":l[2]||(l[2]=e=>X(y)?y.value=e:null),"align-center":"","show-close":"","close-on-click-modal":!1},{default:a(()=>[Z,w,ee,o(B,null,{default:a(()=>[o(n,{type:"primary",disabled:v.value.length<=0,onClick:l[0]||(l[0]=e=>S())},{default:a(()=>[s(" 批量下载 ")]),_:1},8,["disabled"]),o(n,{type:"primary",onClick:l[1]||(l[1]=e=>U())},{default:a(()=>[s("下载配置")]),_:1})]),_:1}),o(j,{border:"","show-overflow-tooltip":"",class:"table",data:_(g),onSelectionChange:L},{default:a(()=>[o(c,{type:"selection",width:"40"}),o(c,{prop:"ua",label:"UA"},{default:a(({row:e})=>[o(T,{type:"danger",onClick:m=>_(A)(e.ua,"已复制UA")},{default:a(()=>[s(C(e.ua??e.url),1)]),_:2},1032,["onClick"])]),_:1}),o(c,{prop:"filename",label:"文件名"}),o(c,{prop:"url",label:"下载链接"},{default:a(({row:e})=>[s(C(e.urls?e.urls[e.index]:e.url),1)]),_:1}),o(c,{label:"操作",width:"400"},{default:a(({row:e,$index:m})=>[o(n,{type:"primary",size:"small",onClick:d=>_(A)(e.urls?e.urls[e.index]:e.url,"已将链接复制到粘贴板内")},{default:a(()=>[s(" 复制链接 ")]),_:2},1032,["onClick"]),o(n,{type:"primary",size:"small",onClick:d=>b(e)},{default:a(()=>[s(" 发送Aria2 ")]),_:2},1032,["onClick"]),e.urls?(p(),O(Q,{key:0},[e.indexz(m)},{default:a(()=>[s(" 更换链接 (当前第"+C(e.index+1)+"条链接) ",1)]),_:2},1032,["onClick"])):(p(),f(n,{key:1,type:"danger",size:"small",onClick:d=>$(m,e.fs_id)},{default:a(()=>[s(" 重新解析 ")]),_:2},1032,["onClick"]))],64)):(p(),f(n,{key:1,type:"danger",size:"small",onClick:d=>$(m,e.fs_id)},{default:a(()=>[s(" 重新解析 ")]),_:2},1032,["onClick"]))]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"])}}});export{$e as default}; diff --git a/public/assets/js/DownloadLinks-DBWmvHL8.js.gz b/public/assets/js/DownloadLinks-DBWmvHL8.js.gz deleted file mode 100644 index 5c5bfb4..0000000 Binary files a/public/assets/js/DownloadLinks-DBWmvHL8.js.gz and /dev/null differ diff --git a/public/assets/js/GetFileList-Bse4Qbxd.js b/public/assets/js/GetFileList-Bse4Qbxd.js deleted file mode 100644 index 52da0b1..0000000 --- a/public/assets/js/GetFileList-Bse4Qbxd.js +++ /dev/null @@ -1 +0,0 @@ -import{E as $,l as ee,b as te,c as le,d as oe,e as se,a as ae,v as re}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as ne}from"./fileListStore-CafL_dKw.js";import{u as ie,a as ue,c as D,g as T}from"./index-Aa74bd4N.js";import{c as de}from"./copy-By2guqEs.js";import{f as N}from"./format-CyW-QbYa.js";import{i as pe}from"./isMobile-BD0f7XPI.js";import{s as Z}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{u as me}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as ce,m as fe,n as ge,I as _e,o as r,G as d,H as a,a as _,K as c,c as V,L as k,i as n,F as C}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as S,u as t}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as v}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ke}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const ve={key:0},ye={key:1},we=["src"],be=ce({__name:"GetFileList",setup(Ve){const M=S("right");pe()&&(M.value="top");const y=ne(),{pending:G,getFileListForm:l,getFileListFormRef:U,selectedRows:P,limitForm:g,limitMessage:E,vcode:w,downloadLinks:B,dialogVisible:q}=Z(y),x=ie(),{config:f}=Z(x),H=(o,e,i)=>e===""?i(new Error("请先输入需要解析的链接")):A(e)?i():i(new Error("请输入合法的链接")),K=()=>{l.value.dir="/",l.value.surl="";const o=A(l.value.url);o&&(o.id&&(o.surl?(l.value.url=`https://pan.baidu.com/share/init?surl=${o.id}`,l.value.surl=`1${o.id}`):(l.value.url=`https://pan.baidu.com/s/${o.id}`,l.value.surl=o.id)),o.pwd&&(l.value.pwd=o.pwd,$.success("已自动填写密码")))},A=o=>{const e=o.match(/s\/([a-zA-Z0-9_-]+)/),i=o.match(/surl=([a-zA-Z0-9_-]+)/),p=o.match(/\?pwd=([a-zA-Z0-9_-]+)/),u=o.match(/&pwd=([a-zA-Z0-9_-]+)/),m=o.match(/提取码[::]\s?([a-zA-Z0-9_-]+)/);let b;if(i)b=i[1];else if(e)b=e[1];else return!1;const L=p?p[1]:u?u[1]:m?m[1]:null;return i?{surl:!0,id:b,pwd:L}:{id:b,pwd:L}},j={url:[{required:!0,validator:H,trigger:"blur"}]},J=async o=>{if(!o||!await o.validate())return;const e=new URLSearchParams;e.set("url",l.value.url),e.set("surl",l.value.surl),e.set("pwd",l.value.pwd),e.set("dir",l.value.dir),de(`${location.host}/?${e.toString()}`,"复制成功")};fe(()=>{ge(()=>{const o=localStorage.getItem("token");o&&o!==""&&($.success("已自动填充 token"),l.value.token=o);const e=new URLSearchParams(location.search);if(e.size<4)return;const i=e.get("url"),p=e.get("pwd"),u=e.get("dir"),m=e.get("surl");!i||!p||!u||!m||(l.value={url:i,pwd:p,dir:u,surl:m},$.success("已读取到参数,正在加载"),setTimeout(y.getFileList,500))}),y.getLimit(),I()});const R=me(),O=()=>R.push("/login"),Q=()=>R.push("/admin"),W=o=>window.open(o),z=S(0),I=()=>z.value=Date.now(),h=()=>B.value=[],F=S(!1),X=()=>{l.value.token!==""?(F.value=!0,localStorage.setItem("token",l.value.token??"")):(F.value=!1,localStorage.removeItem("token")),y.getLimit()};return(o,e)=>{const i=ee,p=te,u=le,m=oe,b=se,L=ae,Y=re;return _e((r(),d(L,null,{default:a(()=>[_("h2",null,"前台解析中心 | "+v(t(ue)()),1),t(f).show_copyright?(r(),d(i,{key:0,"show-icon":"",type:"warning",closable:!1,title:t(f).custom_copyright},null,8,["title"])):c("",!0),t(f).have_account?(r(),d(i,{key:1,closable:!1,class:"alert",title:"当前中转账号充足",type:"success"})):(r(),d(i,{key:2,closable:!1,class:"alert",title:"当前中转账号不足",type:"error"})),t(f).debug?(r(),d(i,{key:3,class:"alert",title:"当前网站开启了DEBUG模式,非调试请关闭!!!!",type:"error",closable:!1})):c("",!0),t(f).is_https?c("",!0):(r(),d(i,{key:4,class:"alert",title:"当前网站未开启SSL,可能出现无法请求Aria2服务器的问题",type:"error",closable:!1})),t(E)===""?(r(),d(i,{key:5,class:"alert",type:"success",closable:!1},{default:a(()=>[F.value?(r(),V("span",ve,[_("span",null,"当前卡密: "+v(t(g).group_name),1),_("span",null,"剩余可解析文件数: "+v(t(g).count),1),_("span",null,"剩余可解析大小: "+v(t(N)(t(g).size)),1),_("span",null," 到期时间: "+v(t(g).expired_at==="未使用"?t(g).expired_at:new Date(t(g).expired_at??0).toLocaleString()),1)])):(r(),V("span",ye,[_("span",null,"当前用户组: "+v(t(g).group_name),1),_("span",null,"剩余可解析文件数: "+v(t(g).count),1),_("span",null,"剩余可解析大小: "+v(t(N)(t(g).size)),1)]))]),_:1})):(r(),d(i,{key:6,class:"alert",type:"error",closable:!1},{default:a(()=>[k(v(t(E)??"未知错误"),1)]),_:1})),n(b,{ref_key:"getFileListFormRef",ref:U,model:t(l),rules:j,"label-width":"auto",class:"form","label-position":M.value},{default:a(()=>[n(u,{label:"链接",prop:"url"},{default:a(()=>[n(p,{modelValue:t(l).url,"onUpdate:modelValue":e[0]||(e[0]=s=>t(l).url=s),modelModifiers:{trim:!0},onChange:e[1]||(e[1]=s=>h()),onBlur:e[2]||(e[2]=s=>K())},null,8,["modelValue"])]),_:1}),n(u,{label:"密码",prop:"pwd"},{default:a(()=>[n(p,{modelValue:t(l).pwd,"onUpdate:modelValue":e[3]||(e[3]=s=>t(l).pwd=s),modelModifiers:{trim:!0},onChange:e[4]||(e[4]=s=>h())},null,8,["modelValue"])]),_:1}),t(f).need_password?(r(),d(u,{key:0,label:"解析密码",prop:"password"},{default:a(()=>[n(p,{modelValue:t(l).password,"onUpdate:modelValue":e[5]||(e[5]=s=>t(l).password=s),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1})):c("",!0),t(f).token_mode?(r(),d(u,{key:1,label:"卡密(不用留空即可)",prop:"token"},{default:a(()=>[n(p,{modelValue:t(l).token,"onUpdate:modelValue":e[6]||(e[6]=s=>t(l).token=s),modelModifiers:{trim:!0},onBlur:X},null,8,["modelValue"])]),_:1})):c("",!0),n(u,{label:"当前路径",prop:"dir"},{default:a(()=>[n(p,{modelValue:t(l).dir,"onUpdate:modelValue":e[7]||(e[7]=s=>t(l).dir=s),disabled:""},null,8,["modelValue"])]),_:1}),t(w).hit_captcha?(r(),V(C,{key:2},[n(u,{label:"验证码编号",prop:"vcode_str"},{default:a(()=>[n(p,{modelValue:t(w).vcode_str,"onUpdate:modelValue":e[8]||(e[8]=s=>t(w).vcode_str=s),disabled:""},null,8,["modelValue"])]),_:1}),n(u,{label:"验证码图片",prop:"vcode_img"},{default:a(()=>[_("img",{src:`${t(w).vcode_img}&t=${z.value}`,alt:"验证码图片",onClick:I},null,8,we)]),_:1}),n(u,{label:"验证码字符",prop:"vcode_input"},{default:a(()=>[n(p,{modelValue:t(w).vcode_input,"onUpdate:modelValue":e[9]||(e[9]=s=>t(w).vcode_input=s)},null,8,["modelValue"])]),_:1})],64)):c("",!0),t(D)()==="admin"?(r(),d(u,{key:3,label:"解析账号id,多个使用,分割",prop:"account_ids"},{default:a(()=>[n(p,{modelValue:t(l).account_ids,"onUpdate:modelValue":e[10]||(e[10]=s=>t(l).account_ids=s)},null,8,["modelValue"])]),_:1})):c("",!0),n(u,{label:" ",class:"buttons"},{default:a(()=>[n(m,{type:"primary",onClick:e[11]||(e[11]=s=>t(y).getFileList())},{default:a(()=>[k("获取/刷新列表")]),_:1}),n(m,{type:"primary",disabled:t(P).length<=0,onClick:e[12]||(e[12]=s=>t(y).getDownloadLinks())},{default:a(()=>[k(" 批量解析 ")]),_:1},8,["disabled"]),n(m,{type:"primary",onClick:e[13]||(e[13]=s=>J(t(U)))},{default:a(()=>[k("复制当前地址")]),_:1}),t(B).length!==0?(r(),d(m,{key:0,type:"primary",onClick:e[14]||(e[14]=s=>q.value=!0)},{default:a(()=>[k(" 重新显示下载链接 ")]),_:1})):c("",!0),t(f).button_link!==""?(r(),d(m,{key:1,type:"primary",onClick:e[15]||(e[15]=s=>W(t(f).button_link))},{default:a(()=>[k(" 前往购买卡密 ")]),_:1})):c("",!0),t(f).show_login_button?(r(),V(C,{key:2},[t(T)()==="0"?(r(),d(m,{key:0,type:"primary",onClick:e[16]||(e[16]=s=>O())},{default:a(()=>[k("登陆")]),_:1})):c("",!0),t(T)()==="1"?(r(),V(C,{key:1},[t(D)()==="admin"?(r(),d(m,{key:0,type:"primary",onClick:e[17]||(e[17]=s=>Q())},{default:a(()=>[k(" 进入后台 ")]),_:1})):c("",!0),n(m,{type:"danger",onClick:e[18]||(e[18]=s=>t(x).logout())},{default:a(()=>[k(" 注销 ")]),_:1})],64)):c("",!0)],64)):c("",!0)]),_:1})]),_:1},8,["model","label-position"])]),_:1})),[[Y,t(G)]])}}}),je=ke(be,[["__scopeId","data-v-eaf991a9"]]);export{je as default}; diff --git a/public/assets/js/GetFileList-Bse4Qbxd.js.gz b/public/assets/js/GetFileList-Bse4Qbxd.js.gz deleted file mode 100644 index f59bbc2..0000000 Binary files a/public/assets/js/GetFileList-Bse4Qbxd.js.gz and /dev/null differ diff --git a/public/assets/js/GetFileList-ClRPbksc.js b/public/assets/js/GetFileList-ClRPbksc.js new file mode 100644 index 0000000..fb7bf09 --- /dev/null +++ b/public/assets/js/GetFileList-ClRPbksc.js @@ -0,0 +1 @@ +import{E as $,l as ee,b as te,c as le,d as oe,e as se,a as ae,v as re}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{u as ne}from"./fileListStore-BL5xDhSX.js";import{u as ie,a as ue,c as D,g as T}from"./index-DYV93AZk.js";import{c as de}from"./copy-By2guqEs.js";import{f as N}from"./format-CyW-QbYa.js";import{i as pe}from"./isMobile-BD0f7XPI.js";import{s as Z}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{u as me}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as ce,m as fe,n as ge,I as _e,o as r,G as d,H as a,a as _,K as c,c as V,L as k,i as n,F as C}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as S,u as t}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as v}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ke}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const ve={key:0},ye={key:1},we=["src"],be=ce({__name:"GetFileList",setup(Ve){const M=S("right");pe()&&(M.value="top");const y=ne(),{pending:G,getFileListForm:l,getFileListFormRef:U,selectedRows:P,limitForm:g,limitMessage:E,vcode:w,downloadLinks:B,dialogVisible:q}=Z(y),x=ie(),{config:f}=Z(x),H=(o,e,i)=>e===""?i(new Error("请先输入需要解析的链接")):A(e)?i():i(new Error("请输入合法的链接")),K=()=>{l.value.dir="/",l.value.surl="";const o=A(l.value.url);o&&(o.id&&(o.surl?(l.value.url=`https://pan.baidu.com/share/init?surl=${o.id}`,l.value.surl=`1${o.id}`):(l.value.url=`https://pan.baidu.com/s/${o.id}`,l.value.surl=o.id)),o.pwd&&(l.value.pwd=o.pwd,$.success("已自动填写密码")))},A=o=>{const e=o.match(/s\/([a-zA-Z0-9_-]+)/),i=o.match(/surl=([a-zA-Z0-9_-]+)/),p=o.match(/\?pwd=([a-zA-Z0-9_-]+)/),u=o.match(/&pwd=([a-zA-Z0-9_-]+)/),m=o.match(/提取码[::]\s?([a-zA-Z0-9_-]+)/);let b;if(i)b=i[1];else if(e)b=e[1];else return!1;const L=p?p[1]:u?u[1]:m?m[1]:null;return i?{surl:!0,id:b,pwd:L}:{id:b,pwd:L}},j={url:[{required:!0,validator:H,trigger:"blur"}]},J=async o=>{if(!o||!await o.validate())return;const e=new URLSearchParams;e.set("url",l.value.url),e.set("surl",l.value.surl),e.set("pwd",l.value.pwd),e.set("dir",l.value.dir),de(`${location.host}/?${e.toString()}`,"复制成功")};fe(()=>{ge(()=>{const o=localStorage.getItem("token");o&&o!==""&&($.success("已自动填充 token"),l.value.token=o);const e=new URLSearchParams(location.search);if(e.size<4)return;const i=e.get("url"),p=e.get("pwd"),u=e.get("dir"),m=e.get("surl");!i||!p||!u||!m||(l.value={url:i,pwd:p,dir:u,surl:m},$.success("已读取到参数,正在加载"),setTimeout(y.getFileList,500))}),y.getLimit(),I()});const R=me(),O=()=>R.push("/login"),Q=()=>R.push("/admin"),W=o=>window.open(o),z=S(0),I=()=>z.value=Date.now(),h=()=>B.value=[],F=S(!1),X=()=>{l.value.token!==""?(F.value=!0,localStorage.setItem("token",l.value.token??"")):(F.value=!1,localStorage.removeItem("token")),y.getLimit()};return(o,e)=>{const i=ee,p=te,u=le,m=oe,b=se,L=ae,Y=re;return _e((r(),d(L,null,{default:a(()=>[_("h2",null,"前台解析中心 | "+v(t(ue)()),1),t(f).show_copyright?(r(),d(i,{key:0,"show-icon":"",type:"warning",closable:!1,title:t(f).custom_copyright},null,8,["title"])):c("",!0),t(f).have_account?(r(),d(i,{key:1,closable:!1,class:"alert",title:"当前中转账号充足",type:"success"})):(r(),d(i,{key:2,closable:!1,class:"alert",title:"当前中转账号不足",type:"error"})),t(f).debug?(r(),d(i,{key:3,class:"alert",title:"当前网站开启了DEBUG模式,非调试请关闭!!!!",type:"error",closable:!1})):c("",!0),t(f).is_https?c("",!0):(r(),d(i,{key:4,class:"alert",title:"当前网站未开启SSL,可能出现无法请求Aria2服务器的问题",type:"error",closable:!1})),t(E)===""?(r(),d(i,{key:5,class:"alert",type:"success",closable:!1},{default:a(()=>[F.value?(r(),V("span",ve,[_("span",null,"当前卡密: "+v(t(g).group_name),1),_("span",null,"剩余可解析文件数: "+v(t(g).count),1),_("span",null,"剩余可解析大小: "+v(t(N)(t(g).size)),1),_("span",null," 到期时间: "+v(t(g).expired_at==="未使用"?t(g).expired_at:new Date(t(g).expired_at??0).toLocaleString()),1)])):(r(),V("span",ye,[_("span",null,"当前用户组: "+v(t(g).group_name),1),_("span",null,"剩余可解析文件数: "+v(t(g).count),1),_("span",null,"剩余可解析大小: "+v(t(N)(t(g).size)),1)]))]),_:1})):(r(),d(i,{key:6,class:"alert",type:"error",closable:!1},{default:a(()=>[k(v(t(E)??"未知错误"),1)]),_:1})),n(b,{ref_key:"getFileListFormRef",ref:U,model:t(l),rules:j,"label-width":"auto",class:"form","label-position":M.value},{default:a(()=>[n(u,{label:"链接",prop:"url"},{default:a(()=>[n(p,{modelValue:t(l).url,"onUpdate:modelValue":e[0]||(e[0]=s=>t(l).url=s),modelModifiers:{trim:!0},onChange:e[1]||(e[1]=s=>h()),onBlur:e[2]||(e[2]=s=>K())},null,8,["modelValue"])]),_:1}),n(u,{label:"密码",prop:"pwd"},{default:a(()=>[n(p,{modelValue:t(l).pwd,"onUpdate:modelValue":e[3]||(e[3]=s=>t(l).pwd=s),modelModifiers:{trim:!0},onChange:e[4]||(e[4]=s=>h())},null,8,["modelValue"])]),_:1}),t(f).need_password?(r(),d(u,{key:0,label:"解析密码",prop:"password"},{default:a(()=>[n(p,{modelValue:t(l).password,"onUpdate:modelValue":e[5]||(e[5]=s=>t(l).password=s),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1})):c("",!0),t(f).token_mode?(r(),d(u,{key:1,label:"卡密(不用留空即可)",prop:"token"},{default:a(()=>[n(p,{modelValue:t(l).token,"onUpdate:modelValue":e[6]||(e[6]=s=>t(l).token=s),modelModifiers:{trim:!0},onBlur:X},null,8,["modelValue"])]),_:1})):c("",!0),n(u,{label:"当前路径",prop:"dir"},{default:a(()=>[n(p,{modelValue:t(l).dir,"onUpdate:modelValue":e[7]||(e[7]=s=>t(l).dir=s),disabled:""},null,8,["modelValue"])]),_:1}),t(w).hit_captcha?(r(),V(C,{key:2},[n(u,{label:"验证码编号",prop:"vcode_str"},{default:a(()=>[n(p,{modelValue:t(w).vcode_str,"onUpdate:modelValue":e[8]||(e[8]=s=>t(w).vcode_str=s),disabled:""},null,8,["modelValue"])]),_:1}),n(u,{label:"验证码图片",prop:"vcode_img"},{default:a(()=>[_("img",{src:`${t(w).vcode_img}&t=${z.value}`,alt:"验证码图片",onClick:I},null,8,we)]),_:1}),n(u,{label:"验证码字符",prop:"vcode_input"},{default:a(()=>[n(p,{modelValue:t(w).vcode_input,"onUpdate:modelValue":e[9]||(e[9]=s=>t(w).vcode_input=s)},null,8,["modelValue"])]),_:1})],64)):c("",!0),t(D)()==="admin"?(r(),d(u,{key:3,label:"解析账号id,多个使用,分割",prop:"account_ids"},{default:a(()=>[n(p,{modelValue:t(l).account_ids,"onUpdate:modelValue":e[10]||(e[10]=s=>t(l).account_ids=s)},null,8,["modelValue"])]),_:1})):c("",!0),n(u,{label:" ",class:"buttons"},{default:a(()=>[n(m,{type:"primary",onClick:e[11]||(e[11]=s=>t(y).getFileList())},{default:a(()=>[k("获取/刷新列表")]),_:1}),n(m,{type:"primary",disabled:t(P).length<=0,onClick:e[12]||(e[12]=s=>t(y).getDownloadLinks())},{default:a(()=>[k(" 批量解析 ")]),_:1},8,["disabled"]),n(m,{type:"primary",onClick:e[13]||(e[13]=s=>J(t(U)))},{default:a(()=>[k("复制当前地址")]),_:1}),t(B).length!==0?(r(),d(m,{key:0,type:"primary",onClick:e[14]||(e[14]=s=>q.value=!0)},{default:a(()=>[k(" 重新显示下载链接 ")]),_:1})):c("",!0),t(f).button_link!==""?(r(),d(m,{key:1,type:"primary",onClick:e[15]||(e[15]=s=>W(t(f).button_link))},{default:a(()=>[k(" 前往购买卡密 ")]),_:1})):c("",!0),t(f).show_login_button?(r(),V(C,{key:2},[t(T)()==="0"?(r(),d(m,{key:0,type:"primary",onClick:e[16]||(e[16]=s=>O())},{default:a(()=>[k("登陆")]),_:1})):c("",!0),t(T)()==="1"?(r(),V(C,{key:1},[t(D)()==="admin"?(r(),d(m,{key:0,type:"primary",onClick:e[17]||(e[17]=s=>Q())},{default:a(()=>[k(" 进入后台 ")]),_:1})):c("",!0),n(m,{type:"danger",onClick:e[18]||(e[18]=s=>t(x).logout())},{default:a(()=>[k(" 注销 ")]),_:1})],64)):c("",!0)],64)):c("",!0)]),_:1})]),_:1},8,["model","label-position"])]),_:1})),[[Y,t(G)]])}}}),Oe=ke(be,[["__scopeId","data-v-eaf991a9"]]);export{Oe as default}; diff --git a/public/assets/js/GetFileList-ClRPbksc.js.gz b/public/assets/js/GetFileList-ClRPbksc.js.gz new file mode 100644 index 0000000..73ba0f0 Binary files /dev/null and b/public/assets/js/GetFileList-ClRPbksc.js.gz differ diff --git a/public/assets/js/GroupManagement-DGxN5Heq.js b/public/assets/js/GroupManagement-DGxN5Heq.js deleted file mode 100644 index 3080ce5..0000000 --- a/public/assets/js/GroupManagement-DGxN5Heq.js +++ /dev/null @@ -1 +0,0 @@ -import{E as M,b as w,c as J,r as P,e as Q,d as R,k as W,v as T,m as X,o as Y,s as Z}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as U}from"./index-Aa74bd4N.js";import{d as O,_ as h,$ as ee,o as C,G as E,H as a,i as t,L as m,I as v,m as te,c as ae,a as L,K as q,F as le}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as $}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as oe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ne=n=>U.post("/admin/group",n),ue=n=>U.get(`/admin/group?page=${n.page}&size=${n.size}`),se=n=>U.patch(`/admin/group/${n.id}`,n),de=n=>U.delete("/admin/group",{data:{group_ids:[n.id]}}),ie=n=>U.delete("/admin/group",{data:{group_ids:n}}),re=O({__name:"AddGroup",props:{modelValue:{},modelModifiers:{}},emits:h(["getGroups"],["update:modelValue"]),setup(n,{emit:i}){const b=i,y=ee(n,"modelValue"),f=_(!1),s=_({name:"",count:0,size:0}),r=_(null),S={name:[{required:!0,message:"请输入组名",trigger:"blur"}],count:[{required:!0,message:"请输入可解析文件个数",trigger:"blur"}],size:[{required:!0,message:"请输入可解析大小",trigger:"blur"}]},x=async V=>{if(!(!V||!await V.validate()))try{f.value=!0,await ne(s.value),M.success("添加成功")}finally{f.value=!1}},F=V=>{b("getGroups"),V()},D=()=>{y.value=!1,b("getGroups")};return(V,u)=>{const G=w,k=J,l=P,o=Q,c=R,p=W,I=T;return C(),E(p,{title:"添加用户组",width:"60%",modelValue:y.value,"onUpdate:modelValue":u[5]||(u[5]=d=>y.value=d),"before-close":F},{footer:a(()=>[t(c,{type:"info",onClick:u[3]||(u[3]=d=>D())},{default:a(()=>[m("取消")]),_:1}),t(c,{type:"primary",onClick:u[4]||(u[4]=d=>x(r.value))},{default:a(()=>[m("添加")]),_:1})]),default:a(()=>[v((C(),E(o,{ref_key:"addGroupFormRef",ref:r,model:s.value,rules:S,"label-width":"auto"},{default:a(()=>[t(k,{label:"组名",prop:"name"},{default:a(()=>[t(G,{modelValue:s.value.name,"onUpdate:modelValue":u[0]||(u[0]=d=>s.value.name=d)},null,8,["modelValue"])]),_:1}),t(k,{label:"可解析文件个数",prop:"count"},{default:a(()=>[t(l,{modelValue:s.value.count,"onUpdate:modelValue":u[1]||(u[1]=d=>s.value.count=d)},null,8,["modelValue"])]),_:1}),t(k,{label:"可解析大小",prop:"size"},{default:a(()=>[t(l,{modelValue:s.value.size,"onUpdate:modelValue":u[2]||(u[2]=d=>s.value.size=d)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[I,f.value]])]),_:1},8,["modelValue"])}}}),pe=O({__name:"GroupManagement",setup(n){const i=_(!1),b=_(15),y=_(1),f=_(),s=_([]),r=async()=>{try{i.value=!0;const l=await ue({page:y.value,size:b.value});f.value=l.data}finally{i.value=!1}},S=async l=>{l.edit=!(l.edit??!1)},x=async l=>{l.edit=!(l.edit??!0),await F(l)},F=async l=>{try{i.value=!0,await se(l),M.success("修改用户组成功")}finally{i.value=!1,await r()}},D=async l=>{try{i.value=!0,await de(l),M.success("删除用户组成功")}finally{i.value=!1,await r()}},V=async()=>{try{i.value=!0;const l=s.value.map(o=>o.id);await ie(l),M.success("批量删除用户组成功")}finally{i.value=!1,await r()}},u=l=>s.value=l;te(r);const G=_(!1),k=()=>G.value=!G.value;return(l,o)=>{var B,N,A;const c=R,p=X,I=w,d=P,j=Y,H=Z,K=T;return C(),ae(le,null,[t(re,{onGetGroups:r,modelValue:G.value,"onUpdate:modelValue":o[0]||(o[0]=e=>G.value=e)},null,8,["modelValue"]),t(c,{type:"primary",onClick:o[1]||(o[1]=e=>r())},{default:a(()=>[m("刷新列表")]),_:1}),t(c,{type:"primary",onClick:o[2]||(o[2]=e=>k())},{default:a(()=>[m("添加用户组")]),_:1}),t(c,{type:"danger",disabled:s.value.length<=0,onClick:o[3]||(o[3]=e=>V())},{default:a(()=>[m(" 批量删除 ")]),_:1},8,["disabled"]),v((C(),E(j,{data:((B=f.value)==null?void 0:B.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:u},{default:a(()=>[t(p,{type:"selection",width:"40"}),t(p,{prop:"id",label:"ID"}),t(p,{prop:"name",label:"组名"},{default:a(({row:e})=>[v(L("span",null,$(e.name),513),[[z,!e.edit]]),v(t(I,{modelValue:e.name,"onUpdate:modelValue":g=>e.name=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"count",label:"可解析文件数量"},{default:a(({row:e})=>[v(L("span",null,$(e.count),513),[[z,!e.edit]]),v(t(d,{modelValue:e.count,"onUpdate:modelValue":g=>e.count=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"size",label:"可解析大小"},{default:a(({row:e})=>[v(L("span",null,$(e.size),513),[[z,!e.edit]]),v(t(d,{modelValue:e.size,"onUpdate:modelValue":g=>e.size=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"created_at",label:"创建时间"},{default:a(({row:e})=>[m($(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(p,{prop:"updated_at",label:"更新时间"},{default:a(({row:e})=>[m($(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(p,{width:"150",label:"操作",fixed:"right"},{default:a(({row:e})=>[e.edit?q("",!0):(C(),E(c,{key:0,size:"small",type:"primary",onClick:g=>S(e)},{default:a(()=>[m(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(C(),E(c,{key:1,size:"small",type:"primary",onClick:g=>x(e)},{default:a(()=>[m(" 保存 ")]),_:2},1032,["onClick"])):q("",!0),t(c,{size:"small",type:"danger",onClick:g=>D(e)},{default:a(()=>[m("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[K,i.value]]),t(H,{"current-page":y.value,"onUpdate:currentPage":o[4]||(o[4]=e=>y.value=e),"page-size":b.value,"onUpdate:pageSize":o[5]||(o[5]=e=>b.value=e),"page-sizes":[15,50,100,500,((N=f.value)==null?void 0:N.total)??100],total:((A=f.value)==null?void 0:A.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:r,onCurrentChange:r},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),De=oe(pe,[["__scopeId","data-v-6ac724f9"]]);export{De as default}; diff --git a/public/assets/js/GroupManagement-DGxN5Heq.js.gz b/public/assets/js/GroupManagement-DGxN5Heq.js.gz deleted file mode 100644 index 3c4044b..0000000 Binary files a/public/assets/js/GroupManagement-DGxN5Heq.js.gz and /dev/null differ diff --git a/public/assets/js/GroupManagement-wC6WYaei.js b/public/assets/js/GroupManagement-wC6WYaei.js new file mode 100644 index 0000000..5ce0787 --- /dev/null +++ b/public/assets/js/GroupManagement-wC6WYaei.js @@ -0,0 +1 @@ +import{E as M,b as w,c as J,r as P,e as Q,d as R,k as W,v as T,m as X,o as Y,s as Z}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as U}from"./index-DYV93AZk.js";import{d as O,_ as h,$ as ee,o as C,G as E,H as a,i as t,L as m,I as v,m as te,c as ae,a as L,K as q,F as le}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as $}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as oe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ne=n=>U.post("/admin/group",n),ue=n=>U.get(`/admin/group?page=${n.page}&size=${n.size}`),se=n=>U.patch(`/admin/group/${n.id}`,n),de=n=>U.delete("/admin/group",{data:{group_ids:[n.id]}}),ie=n=>U.delete("/admin/group",{data:{group_ids:n}}),re=O({__name:"AddGroup",props:{modelValue:{},modelModifiers:{}},emits:h(["getGroups"],["update:modelValue"]),setup(n,{emit:i}){const b=i,y=ee(n,"modelValue"),f=_(!1),s=_({name:"",count:0,size:0}),r=_(null),S={name:[{required:!0,message:"请输入组名",trigger:"blur"}],count:[{required:!0,message:"请输入可解析文件个数",trigger:"blur"}],size:[{required:!0,message:"请输入可解析大小",trigger:"blur"}]},x=async V=>{if(!(!V||!await V.validate()))try{f.value=!0,await ne(s.value),M.success("添加成功")}finally{f.value=!1}},F=V=>{b("getGroups"),V()},D=()=>{y.value=!1,b("getGroups")};return(V,u)=>{const G=w,k=J,l=P,o=Q,c=R,p=W,I=T;return C(),E(p,{title:"添加用户组",width:"60%",modelValue:y.value,"onUpdate:modelValue":u[5]||(u[5]=d=>y.value=d),"before-close":F},{footer:a(()=>[t(c,{type:"info",onClick:u[3]||(u[3]=d=>D())},{default:a(()=>[m("取消")]),_:1}),t(c,{type:"primary",onClick:u[4]||(u[4]=d=>x(r.value))},{default:a(()=>[m("添加")]),_:1})]),default:a(()=>[v((C(),E(o,{ref_key:"addGroupFormRef",ref:r,model:s.value,rules:S,"label-width":"auto"},{default:a(()=>[t(k,{label:"组名",prop:"name"},{default:a(()=>[t(G,{modelValue:s.value.name,"onUpdate:modelValue":u[0]||(u[0]=d=>s.value.name=d)},null,8,["modelValue"])]),_:1}),t(k,{label:"可解析文件个数",prop:"count"},{default:a(()=>[t(l,{modelValue:s.value.count,"onUpdate:modelValue":u[1]||(u[1]=d=>s.value.count=d)},null,8,["modelValue"])]),_:1}),t(k,{label:"可解析大小",prop:"size"},{default:a(()=>[t(l,{modelValue:s.value.size,"onUpdate:modelValue":u[2]||(u[2]=d=>s.value.size=d)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[I,f.value]])]),_:1},8,["modelValue"])}}}),pe=O({__name:"GroupManagement",setup(n){const i=_(!1),b=_(15),y=_(1),f=_(),s=_([]),r=async()=>{try{i.value=!0;const l=await ue({page:y.value,size:b.value});f.value=l.data}finally{i.value=!1}},S=async l=>{l.edit=!(l.edit??!1)},x=async l=>{l.edit=!(l.edit??!0),await F(l)},F=async l=>{try{i.value=!0,await se(l),M.success("修改用户组成功")}finally{i.value=!1,await r()}},D=async l=>{try{i.value=!0,await de(l),M.success("删除用户组成功")}finally{i.value=!1,await r()}},V=async()=>{try{i.value=!0;const l=s.value.map(o=>o.id);await ie(l),M.success("批量删除用户组成功")}finally{i.value=!1,await r()}},u=l=>s.value=l;te(r);const G=_(!1),k=()=>G.value=!G.value;return(l,o)=>{var B,N,A;const c=R,p=X,I=w,d=P,j=Y,H=Z,K=T;return C(),ae(le,null,[t(re,{onGetGroups:r,modelValue:G.value,"onUpdate:modelValue":o[0]||(o[0]=e=>G.value=e)},null,8,["modelValue"]),t(c,{type:"primary",onClick:o[1]||(o[1]=e=>r())},{default:a(()=>[m("刷新列表")]),_:1}),t(c,{type:"primary",onClick:o[2]||(o[2]=e=>k())},{default:a(()=>[m("添加用户组")]),_:1}),t(c,{type:"danger",disabled:s.value.length<=0,onClick:o[3]||(o[3]=e=>V())},{default:a(()=>[m(" 批量删除 ")]),_:1},8,["disabled"]),v((C(),E(j,{data:((B=f.value)==null?void 0:B.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:u},{default:a(()=>[t(p,{type:"selection",width:"40"}),t(p,{prop:"id",label:"ID"}),t(p,{prop:"name",label:"组名"},{default:a(({row:e})=>[v(L("span",null,$(e.name),513),[[z,!e.edit]]),v(t(I,{modelValue:e.name,"onUpdate:modelValue":g=>e.name=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"count",label:"可解析文件数量"},{default:a(({row:e})=>[v(L("span",null,$(e.count),513),[[z,!e.edit]]),v(t(d,{modelValue:e.count,"onUpdate:modelValue":g=>e.count=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"size",label:"可解析大小"},{default:a(({row:e})=>[v(L("span",null,$(e.size),513),[[z,!e.edit]]),v(t(d,{modelValue:e.size,"onUpdate:modelValue":g=>e.size=g},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(p,{prop:"created_at",label:"创建时间"},{default:a(({row:e})=>[m($(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(p,{prop:"updated_at",label:"更新时间"},{default:a(({row:e})=>[m($(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(p,{width:"150",label:"操作",fixed:"right"},{default:a(({row:e})=>[e.edit?q("",!0):(C(),E(c,{key:0,size:"small",type:"primary",onClick:g=>S(e)},{default:a(()=>[m(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(C(),E(c,{key:1,size:"small",type:"primary",onClick:g=>x(e)},{default:a(()=>[m(" 保存 ")]),_:2},1032,["onClick"])):q("",!0),t(c,{size:"small",type:"danger",onClick:g=>D(e)},{default:a(()=>[m("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[K,i.value]]),t(H,{"current-page":y.value,"onUpdate:currentPage":o[4]||(o[4]=e=>y.value=e),"page-size":b.value,"onUpdate:pageSize":o[5]||(o[5]=e=>b.value=e),"page-sizes":[15,50,100,500,((N=f.value)==null?void 0:N.total)??100],total:((A=f.value)==null?void 0:A.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:r,onCurrentChange:r},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Le=oe(pe,[["__scopeId","data-v-6ac724f9"]]);export{Le as default}; diff --git a/public/assets/js/GroupManagement-wC6WYaei.js.gz b/public/assets/js/GroupManagement-wC6WYaei.js.gz new file mode 100644 index 0000000..aa431a1 Binary files /dev/null and b/public/assets/js/GroupManagement-wC6WYaei.js.gz differ diff --git a/public/assets/js/InstallView-1zGjJR37.js b/public/assets/js/InstallView-1zGjJR37.js new file mode 100644 index 0000000..77d2313 --- /dev/null +++ b/public/assets/js/InstallView-1zGjJR37.js @@ -0,0 +1 @@ +import{a as F,E as I,d as C,b as U,c as x,i as N,j as B,e as R}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as $,a as h}from"./index-DYV93AZk.js";import{f as A}from"./favicon-BrYC5Vmz.js";import{u as H}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as j,c as b,i as e,H as o,o as c,a as u,L as f,K as y,F as D,Y as K,Z as O}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as d,u as S}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as T}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";const Z=r=>$.post("/install",r),z=r=>(K("data-v-c77698d2"),r=r(),O(),r),G={class:"container"},J=["src"],P={key:0},W=z(()=>u("p",null,"您的后台登录账号密码均为:admin,请及时登录修改!",-1)),X=j({__name:"InstallView",setup(r){const a=d({db_connection:"mysql",db_host:"localhost",db_port:"3306",db_database:"94list-laravel",db_username:"94list-laravel",db_password:"",app_name:"94list-laravel"}),v=d(null),L={db_connection:[{required:!0,message:"请选择安装方式",trigger:"change"}],db_host:[{required:!0,message:"请输入MySQL 数据库地址",trigger:"blur"}],db_port:[{required:!0,message:"请输入MySQL 端口",trigger:"blur"}],db_database:[{required:!0,message:"请输入MySQL 数据库名",trigger:"blur"}],db_username:[{required:!0,message:"请输入MySQL 用户名",trigger:"blur"}],app_name:[{required:!0,message:"请输入网站名称",trigger:"blur"}]},m=d(!1),p=d(!1),w=async i=>{if(!(!i||!await i.validate()))try{m.value=!0,await Z(a.value),I.success("安装成功!"),p.value=!0}finally{m.value=!1}},g=H(),M=()=>g.push("/"),Q=()=>g.push("/login");return(i,l)=>{const _=C,n=U,s=x,V=N,q=B,E=R,k=F;return c(),b("div",G,[e(k,null,{default:o(()=>[u("h1",null,[u("img",{src:S(A),alt:"logo"},null,8,J)]),u("h2",null,"安装 | "+T(S(h)()),1),p.value?(c(),b("h3",P,[W,e(_,{type:"primary",onClick:l[0]||(l[0]=t=>M())},{default:o(()=>[f("访问首页")]),_:1}),e(_,{type:"success",onClick:l[1]||(l[1]=t=>Q())},{default:o(()=>[f("访问后台")]),_:1})])):y("",!0),e(E,{ref_key:"installFormRef",ref:v,model:a.value,rules:L,disabled:p.value,"label-width":"auto"},{default:o(()=>[e(s,{label:"网站名称",prop:"app_name"},{default:o(()=>[e(n,{modelValue:a.value.app_name,"onUpdate:modelValue":l[2]||(l[2]=t=>a.value.app_name=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"数据库驱动",prop:"db_connection"},{default:o(()=>[e(q,{modelValue:a.value.db_connection,"onUpdate:modelValue":l[3]||(l[3]=t=>a.value.db_connection=t),placeholder:"请选择数据库驱动"},{default:o(()=>[e(V,{label:"MySQL",value:"mysql"}),e(V,{label:"SQLite",value:"sqlite"})]),_:1},8,["modelValue"])]),_:1}),a.value.db_connection==="mysql"?(c(),b(D,{key:0},[e(s,{label:"MySQL 数据库地址",prop:"db_host"},{default:o(()=>[e(n,{modelValue:a.value.db_host,"onUpdate:modelValue":l[4]||(l[4]=t=>a.value.db_host=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 端口",prop:"db_port"},{default:o(()=>[e(n,{modelValue:a.value.db_port,"onUpdate:modelValue":l[5]||(l[5]=t=>a.value.db_port=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 数据库名",prop:"db_database"},{default:o(()=>[e(n,{modelValue:a.value.db_database,"onUpdate:modelValue":l[6]||(l[6]=t=>a.value.db_database=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 用户名",prop:"db_username"},{default:o(()=>[e(n,{modelValue:a.value.db_username,"onUpdate:modelValue":l[7]||(l[7]=t=>a.value.db_username=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 密码",prop:"db_password"},{default:o(()=>[e(n,{modelValue:a.value.db_password,"onUpdate:modelValue":l[8]||(l[8]=t=>a.value.db_password=t)},null,8,["modelValue"])]),_:1})],64)):y("",!0),e(s,{class:"center"},{default:o(()=>[e(_,{type:"primary",onClick:l[9]||(l[9]=t=>w(v.value)),loading:m.value},{default:o(()=>[f(" 安装 ")]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","disabled"])]),_:1})])}}}),we=Y(X,[["__scopeId","data-v-c77698d2"]]);export{we as default}; diff --git a/public/assets/js/InstallView-1zGjJR37.js.gz b/public/assets/js/InstallView-1zGjJR37.js.gz new file mode 100644 index 0000000..bf5307f Binary files /dev/null and b/public/assets/js/InstallView-1zGjJR37.js.gz differ diff --git a/public/assets/js/InstallView-R7n33aaY.js b/public/assets/js/InstallView-R7n33aaY.js deleted file mode 100644 index 44b6fa9..0000000 --- a/public/assets/js/InstallView-R7n33aaY.js +++ /dev/null @@ -1 +0,0 @@ -import{a as F,E as I,d as C,b as U,c as x,i as N,j as B,e as R}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as $,a as h}from"./index-Aa74bd4N.js";import{f as A}from"./favicon-BrYC5Vmz.js";import{u as H}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as j,c as b,i as e,H as o,o as c,a as u,L as f,K as y,F as D,Y as K,Z as O}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as d,u as S}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as T}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";const Z=r=>$.post("/install",r),z=r=>(K("data-v-c77698d2"),r=r(),O(),r),G={class:"container"},J=["src"],P={key:0},W=z(()=>u("p",null,"您的后台登录账号密码均为:admin,请及时登录修改!",-1)),X=j({__name:"InstallView",setup(r){const a=d({db_connection:"mysql",db_host:"localhost",db_port:"3306",db_database:"94list-laravel",db_username:"94list-laravel",db_password:"",app_name:"94list-laravel"}),v=d(null),L={db_connection:[{required:!0,message:"请选择安装方式",trigger:"change"}],db_host:[{required:!0,message:"请输入MySQL 数据库地址",trigger:"blur"}],db_port:[{required:!0,message:"请输入MySQL 端口",trigger:"blur"}],db_database:[{required:!0,message:"请输入MySQL 数据库名",trigger:"blur"}],db_username:[{required:!0,message:"请输入MySQL 用户名",trigger:"blur"}],app_name:[{required:!0,message:"请输入网站名称",trigger:"blur"}]},m=d(!1),p=d(!1),w=async i=>{if(!(!i||!await i.validate()))try{m.value=!0,await Z(a.value),I.success("安装成功!"),p.value=!0}finally{m.value=!1}},g=H(),M=()=>g.push("/"),Q=()=>g.push("/login");return(i,l)=>{const _=C,n=U,s=x,V=N,q=B,E=R,k=F;return c(),b("div",G,[e(k,null,{default:o(()=>[u("h1",null,[u("img",{src:S(A),alt:"logo"},null,8,J)]),u("h2",null,"安装 | "+T(S(h)()),1),p.value?(c(),b("h3",P,[W,e(_,{type:"primary",onClick:l[0]||(l[0]=t=>M())},{default:o(()=>[f("访问首页")]),_:1}),e(_,{type:"success",onClick:l[1]||(l[1]=t=>Q())},{default:o(()=>[f("访问后台")]),_:1})])):y("",!0),e(E,{ref_key:"installFormRef",ref:v,model:a.value,rules:L,disabled:p.value,"label-width":"auto"},{default:o(()=>[e(s,{label:"网站名称",prop:"app_name"},{default:o(()=>[e(n,{modelValue:a.value.app_name,"onUpdate:modelValue":l[2]||(l[2]=t=>a.value.app_name=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"数据库驱动",prop:"db_connection"},{default:o(()=>[e(q,{modelValue:a.value.db_connection,"onUpdate:modelValue":l[3]||(l[3]=t=>a.value.db_connection=t),placeholder:"请选择数据库驱动"},{default:o(()=>[e(V,{label:"MySQL",value:"mysql"}),e(V,{label:"SQLite",value:"sqlite"})]),_:1},8,["modelValue"])]),_:1}),a.value.db_connection==="mysql"?(c(),b(D,{key:0},[e(s,{label:"MySQL 数据库地址",prop:"db_host"},{default:o(()=>[e(n,{modelValue:a.value.db_host,"onUpdate:modelValue":l[4]||(l[4]=t=>a.value.db_host=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 端口",prop:"db_port"},{default:o(()=>[e(n,{modelValue:a.value.db_port,"onUpdate:modelValue":l[5]||(l[5]=t=>a.value.db_port=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 数据库名",prop:"db_database"},{default:o(()=>[e(n,{modelValue:a.value.db_database,"onUpdate:modelValue":l[6]||(l[6]=t=>a.value.db_database=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 用户名",prop:"db_username"},{default:o(()=>[e(n,{modelValue:a.value.db_username,"onUpdate:modelValue":l[7]||(l[7]=t=>a.value.db_username=t)},null,8,["modelValue"])]),_:1}),e(s,{label:"MySQL 密码",prop:"db_password"},{default:o(()=>[e(n,{modelValue:a.value.db_password,"onUpdate:modelValue":l[8]||(l[8]=t=>a.value.db_password=t)},null,8,["modelValue"])]),_:1})],64)):y("",!0),e(s,{class:"center"},{default:o(()=>[e(_,{type:"primary",onClick:l[9]||(l[9]=t=>w(v.value)),loading:m.value},{default:o(()=>[f(" 安装 ")]),_:1},8,["loading"])]),_:1})]),_:1},8,["model","disabled"])]),_:1})])}}}),Se=Y(X,[["__scopeId","data-v-c77698d2"]]);export{Se as default}; diff --git a/public/assets/js/InstallView-R7n33aaY.js.gz b/public/assets/js/InstallView-R7n33aaY.js.gz deleted file mode 100644 index 61241f1..0000000 Binary files a/public/assets/js/InstallView-R7n33aaY.js.gz and /dev/null differ diff --git a/public/assets/js/InvCodeManagement-U7oGJqRg.js b/public/assets/js/InvCodeManagement-Dsqp0U7A.js similarity index 52% rename from public/assets/js/InvCodeManagement-U7oGJqRg.js rename to public/assets/js/InvCodeManagement-Dsqp0U7A.js index 931ff71..d999791 100644 --- a/public/assets/js/InvCodeManagement-U7oGJqRg.js +++ b/public/assets/js/InvCodeManagement-Dsqp0U7A.js @@ -1,3 +1,3 @@ -import{E as x,i as Y,j as Z,c as h,r as P,b as T,e as ee,d as G,k as te,v as H,m as ae,o as le,s as ne}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as E}from"./index-Aa74bd4N.js";import{d as K,_ as oe,$ as de,o as g,G as I,H as l,i as t,L as p,I as C,c as J,F as Q,R as ue,m as se,a as N,K as O}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _,u as ie}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{c as R}from"./copy-By2guqEs.js";import{L as U}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as pe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const re=i=>E.post("/admin/inv_code",i),me=i=>E.post("/admin/inv_code/generate",i),ce=i=>E.get(`/admin/inv_code?page=${i.page}&size=${i.size}`),ve=i=>E.patch(`/admin/inv_code/${i.id}`,i),_e=i=>E.delete("/admin/inv_code",{data:{inv_code_ids:[i.id]}}),ge=i=>E.delete("/admin/inv_code",{data:{inv_code_ids:i}}),fe=K({__name:"AddInvCode",props:{modelValue:{},modelModifiers:{}},emits:oe(["getInvCodes"],["update:modelValue"]),setup(i,{emit:m}){const k=m,V=de(i,"modelValue"),f=_(!1),a=_({type:"single",group_id:2,name:"",can_count:10}),c=_(null),D={group_id:[{required:!0,message:"请输入邀请码用户组ID",trigger:"blur"}],name:[{required:!0,message:"请输入邀请码名称",trigger:"blur"}],can_count:[{required:!0,message:"请输入可注册次数",trigger:"blur"}],count:[{required:!0,message:"请输入邀请码个数",trigger:"blur"}]},M=async b=>{if(!(!b||!await b.validate()))try{f.value=!0,a.value.type==="single"?await re({type:"single",name:a.value.name,can_count:a.value.can_count,group_id:a.value.group_id}):await me({type:"random",count:a.value.count,can_count:a.value.can_count,group_id:a.value.group_id}),x.success("添加成功")}finally{f.value=!1}},F=b=>{k("getInvCodes"),b()},L=()=>{V.value=!1,k("getInvCodes")};return(b,u)=>{const $=Y,j=Z,y=h,n=P,o=T,s=ee,r=G,B=te,S=H;return g(),I(B,{title:"添加邀请码",width:"60%",modelValue:V.value,"onUpdate:modelValue":u[7]||(u[7]=d=>V.value=d),"before-close":F},{footer:l(()=>[t(r,{type:"info",onClick:u[5]||(u[5]=d=>L())},{default:l(()=>[p("取消")]),_:1}),t(r,{type:"primary",onClick:u[6]||(u[6]=d=>M(c.value))},{default:l(()=>[p("添加")]),_:1})]),default:l(()=>[C((g(),I(s,{ref_key:"addInvCodeFormRef",ref:c,model:a.value,rules:D,"label-width":"auto"},{default:l(()=>[t(y,{label:"创建方式",prop:"type"},{default:l(()=>[t(j,{modelValue:a.value.type,"onUpdate:modelValue":u[0]||(u[0]=d=>a.value.type=d)},{default:l(()=>[(g(),J(Q,null,ue(["single","random"],d=>t($,{key:d,label:d,value:d},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),t(y,{label:"可用次数",prop:"can_count"},{default:l(()=>[t(n,{modelValue:a.value.can_count,"onUpdate:modelValue":u[1]||(u[1]=d=>a.value.can_count=d)},null,8,["modelValue"])]),_:1}),t(y,{label:"用户组ID",prop:"group_id"},{default:l(()=>[t(n,{modelValue:a.value.group_id,"onUpdate:modelValue":u[2]||(u[2]=d=>a.value.group_id=d)},null,8,["modelValue"])]),_:1}),a.value.type==="single"?(g(),I(y,{key:0,label:"邀请码名称",prop:"name"},{default:l(()=>[t(o,{modelValue:a.value.name,"onUpdate:modelValue":u[3]||(u[3]=d=>a.value.name=d)},null,8,["modelValue"])]),_:1})):(g(),I(y,{key:1,label:"邀请码个数",prop:"count"},{default:l(()=>[t(n,{modelValue:a.value.count,"onUpdate:modelValue":u[4]||(u[4]=d=>a.value.count=d)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[S,f.value]])]),_:1},8,["modelValue"])}}}),ye=K({__name:"InvCodeManagement",setup(i){const m=_(!1),k=_(15),V=_(1),f=_(),a=_([]),c=async()=>{try{m.value=!0;const n=await ce({page:V.value,size:k.value});f.value=n.data}finally{m.value=!1}},D=async n=>{n.edit=!(n.edit??!1)},M=async n=>{n.edit=!(n.edit??!0),await F(n)},F=async n=>{try{m.value=!0,await ve(n),x.success("修改邀请码成功")}finally{m.value=!1,await c()}},L=async n=>{try{m.value=!0,await _e(n),x.success("删除邀请码成功")}finally{m.value=!1,await c()}},b=async()=>{try{m.value=!0;const n=a.value.map(o=>o.id);await ge(n),x.success("删除邀请码成功")}finally{m.value=!1,await c()}},u=n=>a.value=n;se(c);const $=_(!1),j=()=>$.value=!$.value,y=(n=!0)=>{if(!n){R(a.value.map(s=>s.name).join(` +import{E as x,i as Y,j as Z,c as h,r as P,b as T,e as ee,d as G,k as te,v as H,m as ae,o as le,s as ne}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as E}from"./index-DYV93AZk.js";import{d as K,_ as oe,$ as de,o as g,G as I,H as l,i as t,L as p,I as C,c as J,F as Q,R as ue,m as se,a as N,K as O}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _,u as ie}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{c as R}from"./copy-By2guqEs.js";import{L as U}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as pe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const re=i=>E.post("/admin/inv_code",i),me=i=>E.post("/admin/inv_code/generate",i),ce=i=>E.get(`/admin/inv_code?page=${i.page}&size=${i.size}`),ve=i=>E.patch(`/admin/inv_code/${i.id}`,i),_e=i=>E.delete("/admin/inv_code",{data:{inv_code_ids:[i.id]}}),ge=i=>E.delete("/admin/inv_code",{data:{inv_code_ids:i}}),fe=K({__name:"AddInvCode",props:{modelValue:{},modelModifiers:{}},emits:oe(["getInvCodes"],["update:modelValue"]),setup(i,{emit:m}){const k=m,V=de(i,"modelValue"),f=_(!1),a=_({type:"single",group_id:2,name:"",can_count:10}),c=_(null),D={group_id:[{required:!0,message:"请输入邀请码用户组ID",trigger:"blur"}],name:[{required:!0,message:"请输入邀请码名称",trigger:"blur"}],can_count:[{required:!0,message:"请输入可注册次数",trigger:"blur"}],count:[{required:!0,message:"请输入邀请码个数",trigger:"blur"}]},M=async b=>{if(!(!b||!await b.validate()))try{f.value=!0,a.value.type==="single"?await re({type:"single",name:a.value.name,can_count:a.value.can_count,group_id:a.value.group_id}):await me({type:"random",count:a.value.count,can_count:a.value.can_count,group_id:a.value.group_id}),x.success("添加成功")}finally{f.value=!1}},F=b=>{k("getInvCodes"),b()},L=()=>{V.value=!1,k("getInvCodes")};return(b,u)=>{const $=Y,j=Z,y=h,n=P,o=T,s=ee,r=G,B=te,S=H;return g(),I(B,{title:"添加邀请码",width:"60%",modelValue:V.value,"onUpdate:modelValue":u[7]||(u[7]=d=>V.value=d),"before-close":F},{footer:l(()=>[t(r,{type:"info",onClick:u[5]||(u[5]=d=>L())},{default:l(()=>[p("取消")]),_:1}),t(r,{type:"primary",onClick:u[6]||(u[6]=d=>M(c.value))},{default:l(()=>[p("添加")]),_:1})]),default:l(()=>[C((g(),I(s,{ref_key:"addInvCodeFormRef",ref:c,model:a.value,rules:D,"label-width":"auto"},{default:l(()=>[t(y,{label:"创建方式",prop:"type"},{default:l(()=>[t(j,{modelValue:a.value.type,"onUpdate:modelValue":u[0]||(u[0]=d=>a.value.type=d)},{default:l(()=>[(g(),J(Q,null,ue(["single","random"],d=>t($,{key:d,label:d,value:d},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),t(y,{label:"可用次数",prop:"can_count"},{default:l(()=>[t(n,{modelValue:a.value.can_count,"onUpdate:modelValue":u[1]||(u[1]=d=>a.value.can_count=d)},null,8,["modelValue"])]),_:1}),t(y,{label:"用户组ID",prop:"group_id"},{default:l(()=>[t(n,{modelValue:a.value.group_id,"onUpdate:modelValue":u[2]||(u[2]=d=>a.value.group_id=d)},null,8,["modelValue"])]),_:1}),a.value.type==="single"?(g(),I(y,{key:0,label:"邀请码名称",prop:"name"},{default:l(()=>[t(o,{modelValue:a.value.name,"onUpdate:modelValue":u[3]||(u[3]=d=>a.value.name=d)},null,8,["modelValue"])]),_:1})):(g(),I(y,{key:1,label:"邀请码个数",prop:"count"},{default:l(()=>[t(n,{modelValue:a.value.count,"onUpdate:modelValue":u[4]||(u[4]=d=>a.value.count=d)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[S,f.value]])]),_:1},8,["modelValue"])}}}),ye=K({__name:"InvCodeManagement",setup(i){const m=_(!1),k=_(15),V=_(1),f=_(),a=_([]),c=async()=>{try{m.value=!0;const n=await ce({page:V.value,size:k.value});f.value=n.data}finally{m.value=!1}},D=async n=>{n.edit=!(n.edit??!1)},M=async n=>{n.edit=!(n.edit??!0),await F(n)},F=async n=>{try{m.value=!0,await ve(n),x.success("修改邀请码成功")}finally{m.value=!1,await c()}},L=async n=>{try{m.value=!0,await _e(n),x.success("删除邀请码成功")}finally{m.value=!1,await c()}},b=async()=>{try{m.value=!0;const n=a.value.map(o=>o.id);await ge(n),x.success("删除邀请码成功")}finally{m.value=!1,await c()}},u=n=>a.value=n;se(c);const $=_(!1),j=()=>$.value=!$.value,y=(n=!0)=>{if(!n){R(a.value.map(s=>s.name).join(` `));return}const o=a.value.map(s=>[s.name,s.group.count,s.group.size].join(" | "));o.unshift(["邀请码","可用次数","可下载量"].join(" | ")),R(o.join(` -`))};return(n,o)=>{var q,A,w;const s=G,r=ae,B=T,S=P,d=le,W=ne,X=H;return g(),J(Q,null,[t(fe,{onGetInvCodes:c,modelValue:$.value,"onUpdate:modelValue":o[0]||(o[0]=e=>$.value=e)},null,8,["modelValue"]),t(s,{type:"primary",onClick:o[1]||(o[1]=e=>c())},{default:l(()=>[p("刷新列表")]),_:1}),t(s,{type:"primary",onClick:o[2]||(o[2]=e=>j())},{default:l(()=>[p("添加邀请码")]),_:1}),t(s,{type:"primary",disabled:a.value.length<=0,onClick:o[3]||(o[3]=e=>y())},{default:l(()=>[p(" 批量复制 ")]),_:1},8,["disabled"]),t(s,{type:"primary",disabled:a.value.length<=0,onClick:o[4]||(o[4]=e=>y())},{default:l(()=>[p(" 批量复制(无格式) ")]),_:1},8,["disabled"]),t(s,{type:"danger",disabled:a.value.length<=0,onClick:o[5]||(o[5]=e=>b())},{default:l(()=>[p(" 批量删除 ")]),_:1},8,["disabled"]),C((g(),I(d,{data:((q=f.value)==null?void 0:q.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:u},{default:l(()=>[t(r,{type:"selection",width:"40"}),t(r,{prop:"id",label:"ID"}),t(r,{prop:"name",label:"邀请码名称"},{default:l(({row:e})=>[C(N("span",null,U(e.name),513),[[z,!e.edit]]),C(t(B,{modelValue:e.name,"onUpdate:modelValue":v=>e.name=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"group_id",label:"用户组ID"},{default:l(({row:e})=>[C(N("span",null,U(e.group_id),513),[[z,!e.edit]]),C(t(S,{modelValue:e.group_id,"onUpdate:modelValue":v=>e.group_id=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"can_count",label:"可用次数"},{default:l(({row:e})=>[C(N("span",null,U(e.can_count),513),[[z,!e.edit]]),C(t(S,{modelValue:e.can_count,"onUpdate:modelValue":v=>e.can_count=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"use_count",label:"已使用次数"}),t(r,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[p(U(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(r,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[p(U(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(r,{width:"200",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?O("",!0):(g(),I(s,{key:0,size:"small",type:"primary",onClick:v=>D(e)},{default:l(()=>[p(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(g(),I(s,{key:1,size:"small",type:"primary",onClick:v=>M(e)},{default:l(()=>[p(" 保存 ")]),_:2},1032,["onClick"])):O("",!0),t(s,{size:"small",type:"primary",onClick:v=>ie(R)(e.name)},{default:l(()=>[p(" 复制 ")]),_:2},1032,["onClick"]),t(s,{size:"small",type:"danger",onClick:v=>L(e)},{default:l(()=>[p("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[X,m.value]]),t(W,{"current-page":V.value,"onUpdate:currentPage":o[6]||(o[6]=e=>V.value=e),"page-size":k.value,"onUpdate:pageSize":o[7]||(o[7]=e=>k.value=e),"page-sizes":[15,50,100,500,((A=f.value)==null?void 0:A.total)??100],total:((w=f.value)==null?void 0:w.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),we=pe(ye,[["__scopeId","data-v-3f8aea2f"]]);export{we as default}; +`))};return(n,o)=>{var q,A,w;const s=G,r=ae,B=T,S=P,d=le,W=ne,X=H;return g(),J(Q,null,[t(fe,{onGetInvCodes:c,modelValue:$.value,"onUpdate:modelValue":o[0]||(o[0]=e=>$.value=e)},null,8,["modelValue"]),t(s,{type:"primary",onClick:o[1]||(o[1]=e=>c())},{default:l(()=>[p("刷新列表")]),_:1}),t(s,{type:"primary",onClick:o[2]||(o[2]=e=>j())},{default:l(()=>[p("添加邀请码")]),_:1}),t(s,{type:"primary",disabled:a.value.length<=0,onClick:o[3]||(o[3]=e=>y())},{default:l(()=>[p(" 批量复制 ")]),_:1},8,["disabled"]),t(s,{type:"primary",disabled:a.value.length<=0,onClick:o[4]||(o[4]=e=>y())},{default:l(()=>[p(" 批量复制(无格式) ")]),_:1},8,["disabled"]),t(s,{type:"danger",disabled:a.value.length<=0,onClick:o[5]||(o[5]=e=>b())},{default:l(()=>[p(" 批量删除 ")]),_:1},8,["disabled"]),C((g(),I(d,{data:((q=f.value)==null?void 0:q.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:u},{default:l(()=>[t(r,{type:"selection",width:"40"}),t(r,{prop:"id",label:"ID"}),t(r,{prop:"name",label:"邀请码名称"},{default:l(({row:e})=>[C(N("span",null,U(e.name),513),[[z,!e.edit]]),C(t(B,{modelValue:e.name,"onUpdate:modelValue":v=>e.name=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"group_id",label:"用户组ID"},{default:l(({row:e})=>[C(N("span",null,U(e.group_id),513),[[z,!e.edit]]),C(t(S,{modelValue:e.group_id,"onUpdate:modelValue":v=>e.group_id=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"can_count",label:"可用次数"},{default:l(({row:e})=>[C(N("span",null,U(e.can_count),513),[[z,!e.edit]]),C(t(S,{modelValue:e.can_count,"onUpdate:modelValue":v=>e.can_count=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"use_count",label:"已使用次数"}),t(r,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[p(U(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(r,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[p(U(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(r,{width:"200",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?O("",!0):(g(),I(s,{key:0,size:"small",type:"primary",onClick:v=>D(e)},{default:l(()=>[p(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(g(),I(s,{key:1,size:"small",type:"primary",onClick:v=>M(e)},{default:l(()=>[p(" 保存 ")]),_:2},1032,["onClick"])):O("",!0),t(s,{size:"small",type:"primary",onClick:v=>ie(R)(e.name)},{default:l(()=>[p(" 复制 ")]),_:2},1032,["onClick"]),t(s,{size:"small",type:"danger",onClick:v=>L(e)},{default:l(()=>[p("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[X,m.value]]),t(W,{"current-page":V.value,"onUpdate:currentPage":o[6]||(o[6]=e=>V.value=e),"page-size":k.value,"onUpdate:pageSize":o[7]||(o[7]=e=>k.value=e),"page-sizes":[15,50,100,500,((A=f.value)==null?void 0:A.total)??100],total:((w=f.value)==null?void 0:w.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Pe=pe(ye,[["__scopeId","data-v-3f8aea2f"]]);export{Pe as default}; diff --git a/public/assets/js/InvCodeManagement-Dsqp0U7A.js.gz b/public/assets/js/InvCodeManagement-Dsqp0U7A.js.gz new file mode 100644 index 0000000..684ead4 Binary files /dev/null and b/public/assets/js/InvCodeManagement-Dsqp0U7A.js.gz differ diff --git a/public/assets/js/InvCodeManagement-U7oGJqRg.js.gz b/public/assets/js/InvCodeManagement-U7oGJqRg.js.gz deleted file mode 100644 index 5e94f52..0000000 Binary files a/public/assets/js/InvCodeManagement-U7oGJqRg.js.gz and /dev/null differ diff --git a/public/assets/js/IpManagement-3d16eEci.js b/public/assets/js/IpManagement-3d16eEci.js deleted file mode 100644 index e5b93c3..0000000 --- a/public/assets/js/IpManagement-3d16eEci.js +++ /dev/null @@ -1 +0,0 @@ -import{E as A,b as K,c as ee,i as q,j as J,e as te,d as Q,k as ae,v as W,m as le,o as oe,s as ne}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as k}from"./index-Aa74bd4N.js";import{d as X,_ as se,$ as ie,o as g,G as C,H as l,i as t,L as u,I as b,c as R,F as B,R as Y,m as de,a as G,K as H}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as m}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as S}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as pe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ue=n=>k.post("/admin/ip",n),re=n=>k.get(`/admin/ip?page=${n.page}&size=${n.size}`),me=n=>k.patch(`/admin/ip/${n.id}`,n),ce=n=>k.delete("/admin/ip",{data:{ip_ids:[n.id]}}),fe=n=>k.delete("/admin/ip",{data:{ip_ids:n}}),_e=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/,ve=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/,Z=n=>_e.test(n)||ve.test(n),ge=X({__name:"AddIp",props:{modelValue:{},modelModifiers:{}},emits:se(["getIps"],["update:modelValue"]),setup(n,{emit:d}){const V=d,I=ie(n,"modelValue"),c=m(!1),F=(f,o,y)=>{if(!o)return y(new Error("请输入IP地址"));Z(o)?y():y(new Error("请输入有效的IP地址"))},i=m({ip:"",mode:0}),$=m(null),U={ip:[{validator:F,message:"请输入IP",trigger:"blur"}]},M=async f=>{if(!(!f||!await f.validate()))try{c.value=!0,await ue(i.value),A.success("添加成功")}finally{c.value=!1}},w=f=>{V("getIps"),f()},x=()=>{I.value=!1,V("getIps")};return(f,o)=>{const y=K,a=ee,s=q,_=J,r=te,E=Q,L=ae,D=W;return g(),C(L,{title:"添加IP",width:"60%",modelValue:I.value,"onUpdate:modelValue":o[4]||(o[4]=p=>I.value=p),"before-close":w},{footer:l(()=>[t(E,{type:"info",onClick:o[2]||(o[2]=p=>x())},{default:l(()=>[u("取消")]),_:1}),t(E,{type:"primary",onClick:o[3]||(o[3]=p=>M($.value))},{default:l(()=>[u("添加")]),_:1})]),default:l(()=>[b((g(),C(r,{ref_key:"addIpFormRef",ref:$,model:i.value,rules:U,"label-width":"auto"},{default:l(()=>[t(a,{label:"IP",prop:"ip"},{default:l(()=>[t(y,{modelValue:i.value.ip,"onUpdate:modelValue":o[0]||(o[0]=p=>i.value.ip=p)},null,8,["modelValue"])]),_:1}),t(a,{label:"模式",prop:"mode"},{default:l(()=>[t(_,{modelValue:i.value.mode,"onUpdate:modelValue":o[1]||(o[1]=p=>i.value.mode=p)},{default:l(()=>[(g(),R(B,null,Y(["黑名单","白名单"],(p,P)=>t(s,{key:P,label:p,value:P},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[D,c.value]])]),_:1},8,["modelValue"])}}}),Ie=X({__name:"IpManagement",setup(n){const d=m(!1),V=m(15),I=m(1),c=m(),F=m([]),i=async()=>{try{d.value=!0;const a=await re({page:I.value,size:V.value});c.value=a.data}finally{d.value=!1}},$=async a=>{a.edit=!(a.edit??!1)},U=async a=>{if(!Z(a.ip))return A.error("请输入正确的IP");a.edit=!(a.edit??!0),await M(a)},M=async a=>{try{d.value=!0,await me(a),A.success("修改IP成功")}finally{d.value=!1,await i()}},w=async a=>{try{d.value=!0,await ce(a),A.success("删除IP成功")}finally{d.value=!1,await i()}},x=async()=>{try{d.value=!0;const a=F.value.map(s=>s.id);await fe(a),A.success("批量删除IP成功")}finally{d.value=!1,await i()}},f=a=>F.value=a;de(i);const o=m(!1),y=()=>o.value=!o.value;return(a,s)=>{var N,O,T;const _=Q,r=le,E=K,L=q,D=J,p=oe,P=ne,h=W;return g(),R(B,null,[t(ge,{onGetIps:i,modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e)},null,8,["modelValue"]),t(_,{type:"primary",onClick:s[1]||(s[1]=e=>i())},{default:l(()=>[u("刷新列表")]),_:1}),t(_,{type:"primary",onClick:s[2]||(s[2]=e=>y())},{default:l(()=>[u("添加IP")]),_:1}),t(_,{type:"danger",disabled:F.value.length<=0,onClick:s[3]||(s[3]=e=>x())},{default:l(()=>[u(" 批量删除 ")]),_:1},8,["disabled"]),b((g(),C(p,{data:((N=c.value)==null?void 0:N.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:f},{default:l(()=>[t(r,{type:"selection",width:"40"}),t(r,{prop:"id",label:"ID"}),t(r,{prop:"ip",label:"IP"},{default:l(({row:e})=>[b(G("span",null,S(e.ip),513),[[z,!e.edit]]),b(t(E,{modelValue:e.ip,"onUpdate:modelValue":v=>e.ip=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"mode",label:"模式"},{default:l(({row:e})=>[b(G("span",null,S(e.mode?"白名单":"黑名单"),513),[[z,!e.edit]]),b(t(D,{modelValue:e.mode,"onUpdate:modelValue":v=>e.mode=v},{default:l(()=>[(g(),R(B,null,Y(["黑名单","白名单"],(v,j)=>t(L,{key:j,label:v,value:j},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[u(S(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(r,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[u(S(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(r,{width:"150",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?H("",!0):(g(),C(_,{key:0,size:"small",type:"primary",onClick:v=>$(e)},{default:l(()=>[u(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(g(),C(_,{key:1,size:"small",type:"primary",onClick:v=>U(e)},{default:l(()=>[u(" 保存 ")]),_:2},1032,["onClick"])):H("",!0),t(_,{size:"small",type:"danger",onClick:v=>w(e)},{default:l(()=>[u("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,d.value]]),t(P,{"current-page":I.value,"onUpdate:currentPage":s[4]||(s[4]=e=>I.value=e),"page-size":V.value,"onUpdate:pageSize":s[5]||(s[5]=e=>V.value=e),"page-sizes":[15,50,100,500,((O=c.value)==null?void 0:O.total)??100],total:((T=c.value)==null?void 0:T.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:i,onCurrentChange:i},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Ne=pe(Ie,[["__scopeId","data-v-bfd061e8"]]);export{Ne as default}; diff --git a/public/assets/js/IpManagement-3d16eEci.js.gz b/public/assets/js/IpManagement-3d16eEci.js.gz deleted file mode 100644 index 1475e32..0000000 Binary files a/public/assets/js/IpManagement-3d16eEci.js.gz and /dev/null differ diff --git a/public/assets/js/IpManagement-CNmIbwyM.js b/public/assets/js/IpManagement-CNmIbwyM.js new file mode 100644 index 0000000..c1792a3 --- /dev/null +++ b/public/assets/js/IpManagement-CNmIbwyM.js @@ -0,0 +1 @@ +import{E as A,b as K,c as ee,i as q,j as J,e as te,d as Q,k as ae,v as W,m as le,o as oe,s as ne}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as z}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as k}from"./index-DYV93AZk.js";import{d as X,_ as se,$ as ie,o as g,G as C,H as l,i as t,L as u,I as b,c as R,F as B,R as Y,m as de,a as G,K as H}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as m}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as S}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as pe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ue=n=>k.post("/admin/ip",n),re=n=>k.get(`/admin/ip?page=${n.page}&size=${n.size}`),me=n=>k.patch(`/admin/ip/${n.id}`,n),ce=n=>k.delete("/admin/ip",{data:{ip_ids:[n.id]}}),fe=n=>k.delete("/admin/ip",{data:{ip_ids:n}}),_e=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/,ve=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/,Z=n=>_e.test(n)||ve.test(n),ge=X({__name:"AddIp",props:{modelValue:{},modelModifiers:{}},emits:se(["getIps"],["update:modelValue"]),setup(n,{emit:d}){const V=d,I=ie(n,"modelValue"),c=m(!1),F=(f,o,y)=>{if(!o)return y(new Error("请输入IP地址"));Z(o)?y():y(new Error("请输入有效的IP地址"))},i=m({ip:"",mode:0}),$=m(null),U={ip:[{validator:F,message:"请输入IP",trigger:"blur"}]},M=async f=>{if(!(!f||!await f.validate()))try{c.value=!0,await ue(i.value),A.success("添加成功")}finally{c.value=!1}},w=f=>{V("getIps"),f()},x=()=>{I.value=!1,V("getIps")};return(f,o)=>{const y=K,a=ee,s=q,_=J,r=te,E=Q,L=ae,D=W;return g(),C(L,{title:"添加IP",width:"60%",modelValue:I.value,"onUpdate:modelValue":o[4]||(o[4]=p=>I.value=p),"before-close":w},{footer:l(()=>[t(E,{type:"info",onClick:o[2]||(o[2]=p=>x())},{default:l(()=>[u("取消")]),_:1}),t(E,{type:"primary",onClick:o[3]||(o[3]=p=>M($.value))},{default:l(()=>[u("添加")]),_:1})]),default:l(()=>[b((g(),C(r,{ref_key:"addIpFormRef",ref:$,model:i.value,rules:U,"label-width":"auto"},{default:l(()=>[t(a,{label:"IP",prop:"ip"},{default:l(()=>[t(y,{modelValue:i.value.ip,"onUpdate:modelValue":o[0]||(o[0]=p=>i.value.ip=p)},null,8,["modelValue"])]),_:1}),t(a,{label:"模式",prop:"mode"},{default:l(()=>[t(_,{modelValue:i.value.mode,"onUpdate:modelValue":o[1]||(o[1]=p=>i.value.mode=p)},{default:l(()=>[(g(),R(B,null,Y(["黑名单","白名单"],(p,P)=>t(s,{key:P,label:p,value:P},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[D,c.value]])]),_:1},8,["modelValue"])}}}),Ie=X({__name:"IpManagement",setup(n){const d=m(!1),V=m(15),I=m(1),c=m(),F=m([]),i=async()=>{try{d.value=!0;const a=await re({page:I.value,size:V.value});c.value=a.data}finally{d.value=!1}},$=async a=>{a.edit=!(a.edit??!1)},U=async a=>{if(!Z(a.ip))return A.error("请输入正确的IP");a.edit=!(a.edit??!0),await M(a)},M=async a=>{try{d.value=!0,await me(a),A.success("修改IP成功")}finally{d.value=!1,await i()}},w=async a=>{try{d.value=!0,await ce(a),A.success("删除IP成功")}finally{d.value=!1,await i()}},x=async()=>{try{d.value=!0;const a=F.value.map(s=>s.id);await fe(a),A.success("批量删除IP成功")}finally{d.value=!1,await i()}},f=a=>F.value=a;de(i);const o=m(!1),y=()=>o.value=!o.value;return(a,s)=>{var N,O,T;const _=Q,r=le,E=K,L=q,D=J,p=oe,P=ne,h=W;return g(),R(B,null,[t(ge,{onGetIps:i,modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=e=>o.value=e)},null,8,["modelValue"]),t(_,{type:"primary",onClick:s[1]||(s[1]=e=>i())},{default:l(()=>[u("刷新列表")]),_:1}),t(_,{type:"primary",onClick:s[2]||(s[2]=e=>y())},{default:l(()=>[u("添加IP")]),_:1}),t(_,{type:"danger",disabled:F.value.length<=0,onClick:s[3]||(s[3]=e=>x())},{default:l(()=>[u(" 批量删除 ")]),_:1},8,["disabled"]),b((g(),C(p,{data:((N=c.value)==null?void 0:N.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:f},{default:l(()=>[t(r,{type:"selection",width:"40"}),t(r,{prop:"id",label:"ID"}),t(r,{prop:"ip",label:"IP"},{default:l(({row:e})=>[b(G("span",null,S(e.ip),513),[[z,!e.edit]]),b(t(E,{modelValue:e.ip,"onUpdate:modelValue":v=>e.ip=v},null,8,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"mode",label:"模式"},{default:l(({row:e})=>[b(G("span",null,S(e.mode?"白名单":"黑名单"),513),[[z,!e.edit]]),b(t(D,{modelValue:e.mode,"onUpdate:modelValue":v=>e.mode=v},{default:l(()=>[(g(),R(B,null,Y(["黑名单","白名单"],(v,j)=>t(L,{key:j,label:v,value:j},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[z,e.edit]])]),_:1}),t(r,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[u(S(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(r,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[u(S(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(r,{width:"150",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?H("",!0):(g(),C(_,{key:0,size:"small",type:"primary",onClick:v=>$(e)},{default:l(()=>[u(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(g(),C(_,{key:1,size:"small",type:"primary",onClick:v=>U(e)},{default:l(()=>[u(" 保存 ")]),_:2},1032,["onClick"])):H("",!0),t(_,{size:"small",type:"danger",onClick:v=>w(e)},{default:l(()=>[u("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,d.value]]),t(P,{"current-page":I.value,"onUpdate:currentPage":s[4]||(s[4]=e=>I.value=e),"page-size":V.value,"onUpdate:pageSize":s[5]||(s[5]=e=>V.value=e),"page-sizes":[15,50,100,500,((O=c.value)==null?void 0:O.total)??100],total:((T=c.value)==null?void 0:T.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:i,onCurrentChange:i},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Te=pe(Ie,[["__scopeId","data-v-bfd061e8"]]);export{Te as default}; diff --git a/public/assets/js/IpManagement-CNmIbwyM.js.gz b/public/assets/js/IpManagement-CNmIbwyM.js.gz new file mode 100644 index 0000000..c039a35 Binary files /dev/null and b/public/assets/js/IpManagement-CNmIbwyM.js.gz differ diff --git a/public/assets/js/LoginView-BoL3i2YX.js b/public/assets/js/LoginView-BoL3i2YX.js new file mode 100644 index 0000000..aa66e97 --- /dev/null +++ b/public/assets/js/LoginView-BoL3i2YX.js @@ -0,0 +1 @@ +import{a as F,v as k,E as R,b as x,c as B,d as C,e as $}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{c as _}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{g as I,a as N,l as K,s as S,b as q}from"./index-DYV93AZk.js";import{f as D}from"./favicon-BrYC5Vmz.js";import{u as U}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as A,c as G,I as H,G as M,H as s,o as g,a as d,i as o,L as v}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as f,u as w}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as T}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";const j={class:"container"},z=["src"],J=A({__name:"LoginView",setup(O){const n=U();I()==="1"&&n.push("/admin");const y=()=>n.push("/register"),i=f(!1),t=f({username:"",password:""}),l=f(null),V={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},m=async u=>{if(!(!u||!await u.validate()))try{i.value=!0;const e=await K({username:t.value.username,password:t.value.password});R.success("登陆成功"),S("1");const a=e.data.role;q(a),n.push(`/${a}`)}finally{i.value=!1}};return(u,e)=>{const a=x,p=B,c=C,b=$,L=F,E=k;return g(),G("div",j,[H((g(),M(L,null,{default:s(()=>[d("h1",null,[d("img",{src:w(D),alt:"logo"},null,8,z)]),d("h2",null,"登陆 | "+T(w(N)()),1),o(b,{ref_key:"loginFormRef",ref:l,model:t.value,rules:V,"label-width":"auto"},{default:s(()=>[o(p,{label:"用户名",prop:"username"},{default:s(()=>[o(a,{modelValue:t.value.username,"onUpdate:modelValue":e[0]||(e[0]=r=>t.value.username=r),onKeyup:e[1]||(e[1]=_(r=>m(l.value),["enter"]))},null,8,["modelValue"])]),_:1}),o(p,{label:"密码",prop:"password"},{default:s(()=>[o(a,{modelValue:t.value.password,"onUpdate:modelValue":e[2]||(e[2]=r=>t.value.password=r),type:"password",onKeyup:e[3]||(e[3]=_(r=>m(l.value),["enter"]))},null,8,["modelValue"])]),_:1}),o(p,{class:"center"},{default:s(()=>[o(c,{type:"primary",onClick:e[4]||(e[4]=r=>y())},{default:s(()=>[v("注册")]),_:1}),o(c,{type:"primary",onClick:e[5]||(e[5]=r=>m(l.value))},{default:s(()=>[v("登陆")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})),[[E,i.value]])])}}}),ve=h(J,[["__scopeId","data-v-76f977eb"]]);export{ve as default}; diff --git a/public/assets/js/LoginView-BoL3i2YX.js.gz b/public/assets/js/LoginView-BoL3i2YX.js.gz new file mode 100644 index 0000000..73eba6b Binary files /dev/null and b/public/assets/js/LoginView-BoL3i2YX.js.gz differ diff --git a/public/assets/js/LoginView-WLtifWxO.js b/public/assets/js/LoginView-WLtifWxO.js deleted file mode 100644 index a44c89a..0000000 --- a/public/assets/js/LoginView-WLtifWxO.js +++ /dev/null @@ -1 +0,0 @@ -import{a as F,v as k,E as R,b as x,c as B,d as C,e as $}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{c as _}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{g as I,a as N,l as K,s as S,b as q}from"./index-Aa74bd4N.js";import{f as D}from"./favicon-BrYC5Vmz.js";import{u as U}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as A,c as G,I as H,G as M,H as s,o as g,a as d,i as o,L as v}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as f,u as w}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as T}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";const j={class:"container"},z=["src"],J=A({__name:"LoginView",setup(O){const n=U();I()==="1"&&n.push("/admin");const y=()=>n.push("/register"),i=f(!1),t=f({username:"",password:""}),l=f(null),V={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},m=async u=>{if(!(!u||!await u.validate()))try{i.value=!0;const e=await K({username:t.value.username,password:t.value.password});R.success("登陆成功"),S("1");const a=e.data.role;q(a),n.push(`/${a}`)}finally{i.value=!1}};return(u,e)=>{const a=x,p=B,c=C,b=$,L=F,E=k;return g(),G("div",j,[H((g(),M(L,null,{default:s(()=>[d("h1",null,[d("img",{src:w(D),alt:"logo"},null,8,z)]),d("h2",null,"登陆 | "+T(w(N)()),1),o(b,{ref_key:"loginFormRef",ref:l,model:t.value,rules:V,"label-width":"auto"},{default:s(()=>[o(p,{label:"用户名",prop:"username"},{default:s(()=>[o(a,{modelValue:t.value.username,"onUpdate:modelValue":e[0]||(e[0]=r=>t.value.username=r),onKeyup:e[1]||(e[1]=_(r=>m(l.value),["enter"]))},null,8,["modelValue"])]),_:1}),o(p,{label:"密码",prop:"password"},{default:s(()=>[o(a,{modelValue:t.value.password,"onUpdate:modelValue":e[2]||(e[2]=r=>t.value.password=r),type:"password",onKeyup:e[3]||(e[3]=_(r=>m(l.value),["enter"]))},null,8,["modelValue"])]),_:1}),o(p,{class:"center"},{default:s(()=>[o(c,{type:"primary",onClick:e[4]||(e[4]=r=>y())},{default:s(()=>[v("注册")]),_:1}),o(c,{type:"primary",onClick:e[5]||(e[5]=r=>m(l.value))},{default:s(()=>[v("登陆")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})),[[E,i.value]])])}}}),_e=h(J,[["__scopeId","data-v-76f977eb"]]);export{_e as default}; diff --git a/public/assets/js/LoginView-WLtifWxO.js.gz b/public/assets/js/LoginView-WLtifWxO.js.gz deleted file mode 100644 index 86e2576..0000000 Binary files a/public/assets/js/LoginView-WLtifWxO.js.gz and /dev/null differ diff --git a/public/assets/js/RecordManagement-BjaPKNfj.js b/public/assets/js/RecordManagement-BjaPKNfj.js new file mode 100644 index 0000000..342b32c --- /dev/null +++ b/public/assets/js/RecordManagement-BjaPKNfj.js @@ -0,0 +1 @@ +import{E as x,d as j,g as A,i as H,j as O,m as G,o as J,s as q,v as K}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as v}from"./index-DYV93AZk.js";import{f as w}from"./format-CyW-QbYa.js";import{u as Q}from"./changeConfigForm-D___ED7J.js";import{c as W}from"./copy-By2guqEs.js";import{d as X,m as Y,o as E,c as Z,i as e,H as l,L as r,I as ee,G as te,a as ae,F as oe}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as m,u as h}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as d}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as le}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ne=p=>v.get(`/admin/record?page=${p.page}&size=${p.size}&orderBy=${p.orderBy}`),re=()=>v.get("/admin/record/count"),se=p=>v.delete("/admin/record",{data:{record_ids:[p.id]}}),ie=p=>v.delete("/admin/record",{data:{record_ids:p}}),de=X({__name:"RecordManagement",setup(p){const s=m(!1),y=m(15),b=m(1),C=m("id"),_=m(),z=m([]),g=m({today:{count:0,size:0},total:{count:0,size:0}}),c=async()=>{try{s.value=!0;const o=await ne({page:b.value,size:y.value,orderBy:C.value});_.value=o.data}finally{s.value=!1,await B()}},B=async()=>{try{s.value=!0;const o=await re();g.value=o.data}finally{s.value=!1}},D=async o=>{try{s.value=!0,await se(o),x.success("删除记录成功")}finally{s.value=!1,await c()}},$=async()=>{try{s.value=!0;const o=z.value.map(t=>t.id);await ie(o),x.success("删除记录成功")}finally{s.value=!1,await c()}},I=o=>z.value=o;Y(c);function L(o){return o.map(t=>t.toString(16).padStart(2,"0")).join("")}function F(o,t){const i=t.length,f=[];for(let u=0;u{const t=Q(),i=t.changeConfigForm.proxy_server;if(!i)return x.warning("未配置代理服务器");W(i+"?data="+F(JSON.stringify({url:o.url,ua:o.ua}),t.changeConfigForm.proxy_password))};return(o,t)=>{var k,R,S;const i=j,f=A,u=H,P=O,n=G,T=J,M=q,N=K;return E(),Z(oe,null,[e(i,{type:"primary",onClick:t[0]||(t[0]=a=>c())},{default:l(()=>[r("刷新列表")]),_:1}),e(i,{type:"danger",disabled:z.value.length<=0,onClick:t[1]||(t[1]=a=>$())},{default:l(()=>[r(" 批量删除 ")]),_:1},8,["disabled"]),e(f,{style:{"margin-left":"20px"}},{default:l(()=>[r(" 累计解析: "+d(g.value.total.count)+" ("+d(h(w)(g.value.total.size??0))+") ",1)]),_:1}),e(f,null,{default:l(()=>[r(" 今日解析: "+d(g.value.today.count)+" ("+d(h(w)(g.value.today.size??0))+") ",1)]),_:1}),e(f,{style:{"margin-left":"20px"}},{default:l(()=>[r(" 按照 "),e(P,{modelValue:C.value,"onUpdate:modelValue":t[2]||(t[2]=a=>C.value=a),onChange:c,style:{width:"100px"}},{default:l(()=>[e(u,{key:"id",label:"时间",value:"id"}),e(u,{key:"size",label:"文件大小",value:"size"})]),_:1},8,["modelValue"]),r(" 排序 ")]),_:1}),ee((E(),te(T,{data:((k=_.value)==null?void 0:k.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:I},{default:l(()=>[e(n,{type:"selection",width:"40"}),e(n,{prop:"id",label:"ID"}),e(n,{prop:"ip",label:"IP"}),e(n,{prop:"fs_id",label:"文件ID"}),e(n,{prop:"file.filename",label:"文件名"}),e(n,{prop:"fs_id",label:"文件大小"},{default:l(({row:a})=>[ae("span",null,d(h(w)(a.file.size)),1)]),_:1}),e(n,{prop:"url",label:"下载链接"}),e(n,{prop:"ua",label:"UA"}),e(n,{prop:"user_id",label:"用户ID"},{default:l(({row:a})=>[r(d(a.user_id??"非用戶解析"),1)]),_:1}),e(n,{prop:"token_id",label:"卡密ID"},{default:l(({row:a})=>[r(d(a.token_id??"非卡密解析"),1)]),_:1}),e(n,{prop:"account_id",label:"解析账号ID"}),e(n,{prop:"created_at",label:"创建时间"},{default:l(({row:a})=>[r(d(new Date(a.created_at).toLocaleString()),1)]),_:1}),e(n,{prop:"updated_at",label:"更新时间"},{default:l(({row:a})=>[r(d(new Date(a.updated_at).toLocaleString()),1)]),_:1}),e(n,{width:"220",label:"操作",fixed:"right"},{default:l(({row:a})=>[e(i,{size:"small",type:"primary",onClick:U=>V(a)},{default:l(()=>[r(" 获取代理服务器链接 ")]),_:2},1032,["onClick"]),e(i,{size:"small",type:"danger",onClick:U=>D(a)},{default:l(()=>[r("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[N,s.value]]),e(M,{"current-page":b.value,"onUpdate:currentPage":t[3]||(t[3]=a=>b.value=a),"page-size":y.value,"onUpdate:pageSize":t[4]||(t[4]=a=>y.value=a),"page-sizes":[15,50,100,500,((R=_.value)==null?void 0:R.total)??100],total:((S=_.value)==null?void 0:S.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Ve=le(de,[["__scopeId","data-v-f57bd9b1"]]);export{Ve as default}; diff --git a/public/assets/js/RecordManagement-BjaPKNfj.js.gz b/public/assets/js/RecordManagement-BjaPKNfj.js.gz new file mode 100644 index 0000000..a5e2d5f Binary files /dev/null and b/public/assets/js/RecordManagement-BjaPKNfj.js.gz differ diff --git a/public/assets/js/RecordManagement-CdJ2oRbI.js b/public/assets/js/RecordManagement-CdJ2oRbI.js deleted file mode 100644 index be878e7..0000000 --- a/public/assets/js/RecordManagement-CdJ2oRbI.js +++ /dev/null @@ -1 +0,0 @@ -import{E as x,d as j,g as A,i as H,j as O,m as G,o as J,s as q,v as K}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{i as v}from"./index-Aa74bd4N.js";import{f as w}from"./format-CyW-QbYa.js";import{u as Q}from"./changeConfigForm-D7mlas_l.js";import{c as W}from"./copy-By2guqEs.js";import{d as X,m as Y,o as E,c as Z,i as e,H as l,L as r,I as ee,G as te,a as ae,F as oe}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as m,u as h}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as d}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as le}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ne=p=>v.get(`/admin/record?page=${p.page}&size=${p.size}&orderBy=${p.orderBy}`),re=()=>v.get("/admin/record/count"),se=p=>v.delete("/admin/record",{data:{record_ids:[p.id]}}),ie=p=>v.delete("/admin/record",{data:{record_ids:p}}),de=X({__name:"RecordManagement",setup(p){const s=m(!1),y=m(15),b=m(1),C=m("id"),_=m(),z=m([]),g=m({today:{count:0,size:0},total:{count:0,size:0}}),c=async()=>{try{s.value=!0;const o=await ne({page:b.value,size:y.value,orderBy:C.value});_.value=o.data}finally{s.value=!1,await B()}},B=async()=>{try{s.value=!0;const o=await re();g.value=o.data}finally{s.value=!1}},D=async o=>{try{s.value=!0,await se(o),x.success("删除记录成功")}finally{s.value=!1,await c()}},$=async()=>{try{s.value=!0;const o=z.value.map(t=>t.id);await ie(o),x.success("删除记录成功")}finally{s.value=!1,await c()}},I=o=>z.value=o;Y(c);function L(o){return o.map(t=>t.toString(16).padStart(2,"0")).join("")}function F(o,t){const i=t.length,f=[];for(let u=0;u{const t=Q(),i=t.changeConfigForm.proxy_server;if(!i)return x.warning("未配置代理服务器");W(i+"?data="+F(JSON.stringify({url:o.url,ua:o.ua}),t.changeConfigForm.proxy_password))};return(o,t)=>{var k,R,S;const i=j,f=A,u=H,P=O,n=G,T=J,M=q,N=K;return E(),Z(oe,null,[e(i,{type:"primary",onClick:t[0]||(t[0]=a=>c())},{default:l(()=>[r("刷新列表")]),_:1}),e(i,{type:"danger",disabled:z.value.length<=0,onClick:t[1]||(t[1]=a=>$())},{default:l(()=>[r(" 批量删除 ")]),_:1},8,["disabled"]),e(f,{style:{"margin-left":"20px"}},{default:l(()=>[r(" 累计解析: "+d(g.value.total.count)+" ("+d(h(w)(g.value.total.size??0))+") ",1)]),_:1}),e(f,null,{default:l(()=>[r(" 今日解析: "+d(g.value.today.count)+" ("+d(h(w)(g.value.today.size??0))+") ",1)]),_:1}),e(f,{style:{"margin-left":"20px"}},{default:l(()=>[r(" 按照 "),e(P,{modelValue:C.value,"onUpdate:modelValue":t[2]||(t[2]=a=>C.value=a),onChange:c,style:{width:"100px"}},{default:l(()=>[e(u,{key:"id",label:"时间",value:"id"}),e(u,{key:"size",label:"文件大小",value:"size"})]),_:1},8,["modelValue"]),r(" 排序 ")]),_:1}),ee((E(),te(T,{data:((k=_.value)==null?void 0:k.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:I},{default:l(()=>[e(n,{type:"selection",width:"40"}),e(n,{prop:"id",label:"ID"}),e(n,{prop:"ip",label:"IP"}),e(n,{prop:"fs_id",label:"文件ID"}),e(n,{prop:"file.filename",label:"文件名"}),e(n,{prop:"fs_id",label:"文件大小"},{default:l(({row:a})=>[ae("span",null,d(h(w)(a.file.size)),1)]),_:1}),e(n,{prop:"url",label:"下载链接"}),e(n,{prop:"ua",label:"UA"}),e(n,{prop:"user_id",label:"用户ID"},{default:l(({row:a})=>[r(d(a.user_id??"非用戶解析"),1)]),_:1}),e(n,{prop:"token_id",label:"卡密ID"},{default:l(({row:a})=>[r(d(a.token_id??"非卡密解析"),1)]),_:1}),e(n,{prop:"account_id",label:"解析账号ID"}),e(n,{prop:"created_at",label:"创建时间"},{default:l(({row:a})=>[r(d(new Date(a.created_at).toLocaleString()),1)]),_:1}),e(n,{prop:"updated_at",label:"更新时间"},{default:l(({row:a})=>[r(d(new Date(a.updated_at).toLocaleString()),1)]),_:1}),e(n,{width:"220",label:"操作",fixed:"right"},{default:l(({row:a})=>[e(i,{size:"small",type:"primary",onClick:U=>V(a)},{default:l(()=>[r(" 获取代理服务器链接 ")]),_:2},1032,["onClick"]),e(i,{size:"small",type:"danger",onClick:U=>D(a)},{default:l(()=>[r("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[N,s.value]]),e(M,{"current-page":b.value,"onUpdate:currentPage":t[3]||(t[3]=a=>b.value=a),"page-size":y.value,"onUpdate:pageSize":t[4]||(t[4]=a=>y.value=a),"page-sizes":[15,50,100,500,((R=_.value)==null?void 0:R.total)??100],total:((S=_.value)==null?void 0:S.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Le=le(de,[["__scopeId","data-v-f57bd9b1"]]);export{Le as default}; diff --git a/public/assets/js/RecordManagement-CdJ2oRbI.js.gz b/public/assets/js/RecordManagement-CdJ2oRbI.js.gz deleted file mode 100644 index 05a1a13..0000000 Binary files a/public/assets/js/RecordManagement-CdJ2oRbI.js.gz and /dev/null differ diff --git a/public/assets/js/RegisterView-BB1Y1TFY.js b/public/assets/js/RegisterView-BB1Y1TFY.js new file mode 100644 index 0000000..ff9cf36 --- /dev/null +++ b/public/assets/js/RegisterView-BB1Y1TFY.js @@ -0,0 +1 @@ +import{a as R,v as x,E as B,b as K,c as L,d as N,e as $}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{c as d}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{g as I,u as S,a as q,r as U}from"./index-DYV93AZk.js";import{f as D}from"./favicon-BrYC5Vmz.js";import{u as M}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as A,c as G,I as H,G as V,H as a,o as f,a as v,i as r,K as T,L as b}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _,u as c}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as j}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";const J={class:"container"},O=["src"],P=A({__name:"RegisterView",setup(Q){const i=M();I()==="1"&&i.push("/admin");const k=()=>i.push("/login"),u=_(!1),o=_({username:"",password:"",inv_code:""}),s=_(null),g={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},w=S();w.config.need_inv_code&&(g.inv_code=[{required:!0,message:"请输入邀请码",trigger:"blur"}]);const n=async m=>{if(!(!m||!await m.validate()))try{u.value=!0,await U({username:o.value.username,password:o.value.password,inv_code:o.value.inv_code}),B.success("注册成功"),i.push("/login")}finally{u.value=!1}};return(m,e)=>{const p=K,l=L,y=N,E=$,F=R,C=x;return f(),G("div",J,[H((f(),V(F,null,{default:a(()=>[v("h1",null,[v("img",{src:c(D),alt:"logo"},null,8,O)]),v("h2",null,"注册 | "+j(c(q)()),1),r(E,{ref_key:"registerFormRef",ref:s,model:o.value,rules:g,"label-width":"auto"},{default:a(()=>[r(l,{label:"用户名",prop:"username"},{default:a(()=>[r(p,{modelValue:o.value.username,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value.username=t),onKeyup:e[1]||(e[1]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1}),r(l,{label:"密码",prop:"password"},{default:a(()=>[r(p,{modelValue:o.value.password,"onUpdate:modelValue":e[2]||(e[2]=t=>o.value.password=t),type:"password",onKeyup:e[3]||(e[3]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1}),c(w).config.need_inv_code?(f(),V(l,{key:0,label:"邀请码",prop:"inv_code"},{default:a(()=>[r(p,{modelValue:o.value.inv_code,"onUpdate:modelValue":e[4]||(e[4]=t=>o.value.inv_code=t),onKeyup:e[5]||(e[5]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1})):T("",!0),r(l,{class:"center"},{default:a(()=>[r(y,{type:"primary",onClick:e[6]||(e[6]=t=>k())},{default:a(()=>[b("登陆")]),_:1}),r(y,{type:"primary",onClick:e[7]||(e[7]=t=>n(s.value))},{default:a(()=>[b("注册")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})),[[C,u.value]])])}}}),we=z(P,[["__scopeId","data-v-da197fbf"]]);export{we as default}; diff --git a/public/assets/js/RegisterView-BB1Y1TFY.js.gz b/public/assets/js/RegisterView-BB1Y1TFY.js.gz new file mode 100644 index 0000000..daa8caf Binary files /dev/null and b/public/assets/js/RegisterView-BB1Y1TFY.js.gz differ diff --git a/public/assets/js/RegisterView-BmVjXkVn.js b/public/assets/js/RegisterView-BmVjXkVn.js deleted file mode 100644 index d3c3b91..0000000 --- a/public/assets/js/RegisterView-BmVjXkVn.js +++ /dev/null @@ -1 +0,0 @@ -import{a as R,v as x,E as B,b as K,c as L,d as N,e as $}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{c as d}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{g as I,u as S,a as q,r as U}from"./index-Aa74bd4N.js";import{f as D}from"./favicon-BrYC5Vmz.js";import{u as M}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as A,c as G,I as H,G as V,H as a,o as f,a as v,i as r,K as T,L as b}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as _,u as c}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as j}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";const J={class:"container"},O=["src"],P=A({__name:"RegisterView",setup(Q){const i=M();I()==="1"&&i.push("/admin");const k=()=>i.push("/login"),u=_(!1),o=_({username:"",password:"",inv_code:""}),s=_(null),g={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},w=S();w.config.need_inv_code&&(g.inv_code=[{required:!0,message:"请输入邀请码",trigger:"blur"}]);const n=async m=>{if(!(!m||!await m.validate()))try{u.value=!0,await U({username:o.value.username,password:o.value.password,inv_code:o.value.inv_code}),B.success("注册成功"),i.push("/login")}finally{u.value=!1}};return(m,e)=>{const p=K,l=L,y=N,E=$,F=R,C=x;return f(),G("div",J,[H((f(),V(F,null,{default:a(()=>[v("h1",null,[v("img",{src:c(D),alt:"logo"},null,8,O)]),v("h2",null,"注册 | "+j(c(q)()),1),r(E,{ref_key:"registerFormRef",ref:s,model:o.value,rules:g,"label-width":"auto"},{default:a(()=>[r(l,{label:"用户名",prop:"username"},{default:a(()=>[r(p,{modelValue:o.value.username,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value.username=t),onKeyup:e[1]||(e[1]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1}),r(l,{label:"密码",prop:"password"},{default:a(()=>[r(p,{modelValue:o.value.password,"onUpdate:modelValue":e[2]||(e[2]=t=>o.value.password=t),type:"password",onKeyup:e[3]||(e[3]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1}),c(w).config.need_inv_code?(f(),V(l,{key:0,label:"邀请码",prop:"inv_code"},{default:a(()=>[r(p,{modelValue:o.value.inv_code,"onUpdate:modelValue":e[4]||(e[4]=t=>o.value.inv_code=t),onKeyup:e[5]||(e[5]=d(t=>n(s.value),["enter"]))},null,8,["modelValue"])]),_:1})):T("",!0),r(l,{class:"center"},{default:a(()=>[r(y,{type:"primary",onClick:e[6]||(e[6]=t=>k())},{default:a(()=>[b("登陆")]),_:1}),r(y,{type:"primary",onClick:e[7]||(e[7]=t=>n(s.value))},{default:a(()=>[b("注册")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})),[[C,u.value]])])}}}),ce=z(P,[["__scopeId","data-v-da197fbf"]]);export{ce as default}; diff --git a/public/assets/js/RegisterView-BmVjXkVn.js.gz b/public/assets/js/RegisterView-BmVjXkVn.js.gz deleted file mode 100644 index 448d9d0..0000000 Binary files a/public/assets/js/RegisterView-BmVjXkVn.js.gz and /dev/null differ diff --git a/public/assets/js/ShowFileList-D8cWfZu5.js b/public/assets/js/ShowFileList-D8cWfZu5.js deleted file mode 100644 index 3be8686..0000000 --- a/public/assets/js/ShowFileList-D8cWfZu5.js +++ /dev/null @@ -1 +0,0 @@ -import{m as w,n as D,o as u,a as L,v as Z}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import"./index-Aa74bd4N.js";import{u as F}from"./fileListStore-CafL_dKw.js";import{a as U,f as x}from"./format-CyW-QbYa.js";import{i as c}from"./isMobile-BD0f7XPI.js";import{s as y}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as N,I as M,o as T,G as V,H as a,i,a as C,L as l,K as Y,Y as J,Z as b}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as j,u as t}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as g}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACRlJREFUeF7tnUFuGzcUhkmrm/YStRHlGEWtRQx0F9jZJ7pBb9D4BD1CnH3kZlcgWcTpEdplG2QK9Boqi7HkQk7ihHzDmfk17zMQuGjImcfv5weSGkmJgR8IQOBOAhE2EIDA3QQQhNkBgc8QQBCmBwQQhDkAARsBVhAbN3o5IYAgToJmmDYCCGLjRi8nBBDESdAM00YAQWzc6OWEAII4CZph2gggiI0bvZwQQBAnQTNMGwEEsXGjlxMCCOIkaIZpI4AgNm70ckIAQZwEzTBtBBDExo1eTgggiJOgGaaNAILYuNHLCQEEcRI0w7QRQBAbN3o5IYAgToJmmDYCCGLjRi8nBBDESdAM00ZgUEHSrw8Pw1cHj0OKhyGE9k/7c2wr3X2vZkvgavM7vb3+FQ+a+ODF9v+5Z9QZQO+C7EjRioAMnSPLukATQjqPJ5cXWa1pdCeBXgVJr09/Cik+hf9oBNpV5irE+JxVxZZBL4Kk14+OQ0rPdrZRturoVZPARTxZLWte0MO1qgvCqiE9bdh6FcZTVZD06uwN54zCBMZoHtPT+ODyfIxb79s9qwmCHPsWfWjCer2IP7y8eTVs7wYwRMFVBEmvztrzxpMhCuYeVQk08WR1VPWKE7tYZ0G2B/J2a8XPfhK4iierxX6W3n/VnQS5fsYxm73vv0zu0DMBXuG6A3A3QTiU9zxvB7w8B/dPwjYLwtZqwMk7zK2aEOOSB4q3YdsFYfUYZtoOexcO7R/w7iJIGjY77jYQAc4jO6BNgqRXp09CiO1Lu/xMkUCMC7Zam2CNgvDcY4pe7IyJrdYWhlUQtlcTNySEwFbLsoLw7GP6ZmxHyKtaJkE2b2XnybkPT9xvtYq3WBzQfZixM0rXWy0EcTffiwfseqtVLggfoy2eYRPo4HarhSATmL2DDMHpe7UQZJDZNYmbuNxqlQvy2+nPYR1/nETkDKKMQAz/hG/X35V1+nzreKT9icZyQX4/exO+4futak4SrhVuPvbb/t78d4rP4/3xvwAPQZidygQ23+sV0ts4H+dL8BBEeXpQ2y6BJsR0Ee8N+20sCMIk3DcCg4qCIPs2Paj3hsDmS/B63nohCBNunwn0vpqUC/LH2S/h6/Bwn6lS+8QItA8xezqblAvyjm9sn9j0mspwmjBbL2o/V0GQqUwPxtESaOK87jdFIggTa2oELuK83j/zgCBTmx6MJ4SKZxIEYUJNk0AlSRBkmtODUbXv6apwaEcQptKUCXQ+jyDIlKcHY2tCissu7wpGECbR1Alcxbn93z9BkKlPD8bXfrZkYV1FEIQJ5IGA+SyCIB6mB2M0P2FHECaPDwLGbRaC+JgejNL44BBBmDpeCJi2WQjiZXowzhDnq+L5Xtwh8XkQptq+Epitj0o/L4Ig+xo2dZcTMBzUEaQcMz32lQCC7Gty1D0IAcMrWawggyTDTSQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIggCASMVCEKgEEUU2GuiQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIggCASMVCEKgEEUU2GuiQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIgMIggfz46DjG9kRgwRUCgiEBaxvnlRUmXWNK4bZsQpBQZ7WUIDCHI+4eHYT17LzNmCoFALoHZ+igevWxym7ftylcQBCnhS1slAkMIcr3N+ussKY2bWiCQQyDOV8ULQnGHrSDtIf04pyjaQECEwEWcr5altRgFOX0SQnxWejPaQ2A8AuUHdNMZ5HoF4RwyXs7c2UbAcP4wC8I2y5YRvcYjYDl/dBPk3elPIcWn4w2ZO0Mgm4Dp/NFNELZZ2enQcGQCxu1VJ0E22ywO6yNHz+2/TMC8enQXZLOKtC/5Hn65TlpAYAQCHVaPzoKwiowQOLfMJ2B49+6HFzc9B9m9yPYl3/aZCA8O86OjZf8EmjhfHXW9TWdBrlcRDuxdc6B/bQIpLuL9F1ddL1tFELZaXWOgf1UCleSocga5td3i2UjVnLmYgUCFc8fuXautIDcXTUhiSJUulQhcxflqUela15epL0h7Hvn34DFP2WvGxLUyCHR63nHX9asLwkqSESVN6hKovK3qdYt160zCg8S6E4GrfUyg4oH8U3h7W0H+X0nYcjGt+yFwFWbrZelnzEtL6V2QW6KsZzxQLE2I9h8SaEKKyxrPOHLQDiYIouTEQZvPEGhCSOel32vVlejggtwW5eA4hPiYt6l0jXGy/ZsQ00W8d3k+1ghHE+Tjw3wrS/sTv9/+XfsOYd4lPNbMGPa+7XdVtTJsvrMqhb+HXinuGq6EIMNmwd0gkE8AQfJZ0dIhAQRxGDpDzieAIPmsaOmQAII4DJ0h5xNAkHxWtHRIAEEchs6Q8wkgSD4rWjokgCAOQ2fI+QQQJJ8VLR0SQBCHoTPkfAIIks+Klg4JIIjD0BlyPgEEyWdFS4cEEMRh6Aw5nwCC5LOipUMCCOIwdIacTwBB8lnR0iEBBHEYOkPOJ4Ag+axo6ZAAgjgMnSHnE0CQfFa0dEgAQRyGzpDzCSBIPitaOiSAIA5DZ8j5BP4DGhIEBS0yns0AAAAASUVORK5CYII=",_="/assets/png/unknownfile-BBXNi05M.png",q=s=>(J("data-v-a8be935c"),s=s(),b(),s),v=q(()=>C("h2",null,"文件列表",-1)),P=["src"],W=N({__name:"ShowFileList",setup(s){const A=F(),{pending:Q,fileList:n,selectedRows:r,getFileListForm:B}=y(A),m=j(null),p=e=>r.value=e,I=async e=>{B.value.dir=e,await A.getFileList()},S=async e=>{if(c())try{e.isdir===1?await I(e.path):await A.getDownloadLinks(e.fs_id)}finally{Q.value=!1}},f=async e=>{if(!c())try{e.isdir===1?await I(e.path):await A.getDownloadLinks(e.fs_id)}finally{Q.value=!1}};return(e,H)=>{const E=w,h=D,R=u,d=L,k=Z;return t(n).list.length>0?M((T(),V(d,{key:0,class:"card"},{default:a(()=>[v,i(R,{border:"",stripe:"",ref_key:"fileListTableRef",ref:m,data:t(n).list,onRowClick:S,onRowDblclick:f,onSelectionChange:p,class:"table"},{default:a(()=>[i(E,{type:"selection",width:"40"}),i(E,{label:"文件名"},{default:a(({row:o})=>[i(h,{wrap:""},{default:a(()=>[C("img",{src:o.isdir===1?t(O):t(_)},null,8,P),l(" "+g(o.server_filename),1)]),_:2},1024)]),_:1}),i(E,{label:"修改时间"},{default:a(({row:o})=>[l(g(t(U)(o.server_mtime)),1)]),_:1}),i(E,{label:"大小"},{default:a(({row:o})=>[l(g(t(x)(o.size)),1)]),_:1})]),_:1},8,["data"])]),_:1})),[[k,t(Q)]]):Y("",!0)}}}),Se=G(W,[["__scopeId","data-v-a8be935c"]]);export{Se as default}; diff --git a/public/assets/js/ShowFileList-D8cWfZu5.js.gz b/public/assets/js/ShowFileList-D8cWfZu5.js.gz deleted file mode 100644 index c64d47d..0000000 Binary files a/public/assets/js/ShowFileList-D8cWfZu5.js.gz and /dev/null differ diff --git a/public/assets/js/ShowFileList-DoTSeEKx.js b/public/assets/js/ShowFileList-DoTSeEKx.js new file mode 100644 index 0000000..8a39531 --- /dev/null +++ b/public/assets/js/ShowFileList-DoTSeEKx.js @@ -0,0 +1 @@ +import{m as w,n as D,o as u,a as L,v as Z}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import"./index-DYV93AZk.js";import{u as F}from"./fileListStore-BL5xDhSX.js";import{a as U,f as x}from"./format-CyW-QbYa.js";import{i as r}from"./isMobile-BD0f7XPI.js";import{s as y}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{d as N,I as M,o as T,G as V,H as a,i,a as c,L as l,K as Y,Y as J,Z as b}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as j,u as t}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{L as g}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";const O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACRlJREFUeF7tnUFuGzcUhkmrm/YStRHlGEWtRQx0F9jZJ7pBb9D4BD1CnH3kZlcgWcTpEdplG2QK9Boqi7HkQk7ihHzDmfk17zMQuGjImcfv5weSGkmJgR8IQOBOAhE2EIDA3QQQhNkBgc8QQBCmBwQQhDkAARsBVhAbN3o5IYAgToJmmDYCCGLjRi8nBBDESdAM00YAQWzc6OWEAII4CZph2gggiI0bvZwQQBAnQTNMGwEEsXGjlxMCCOIkaIZpI4AgNm70ckIAQZwEzTBtBBDExo1eTgggiJOgGaaNAILYuNHLCQEEcRI0w7QRQBAbN3o5IYAgToJmmDYCCGLjRi8nBBDESdAM00ZgUEHSrw8Pw1cHj0OKhyGE9k/7c2wr3X2vZkvgavM7vb3+FQ+a+ODF9v+5Z9QZQO+C7EjRioAMnSPLukATQjqPJ5cXWa1pdCeBXgVJr09/Cik+hf9oBNpV5irE+JxVxZZBL4Kk14+OQ0rPdrZRturoVZPARTxZLWte0MO1qgvCqiE9bdh6FcZTVZD06uwN54zCBMZoHtPT+ODyfIxb79s9qwmCHPsWfWjCer2IP7y8eTVs7wYwRMFVBEmvztrzxpMhCuYeVQk08WR1VPWKE7tYZ0G2B/J2a8XPfhK4iierxX6W3n/VnQS5fsYxm73vv0zu0DMBXuG6A3A3QTiU9zxvB7w8B/dPwjYLwtZqwMk7zK2aEOOSB4q3YdsFYfUYZtoOexcO7R/w7iJIGjY77jYQAc4jO6BNgqRXp09CiO1Lu/xMkUCMC7Zam2CNgvDcY4pe7IyJrdYWhlUQtlcTNySEwFbLsoLw7GP6ZmxHyKtaJkE2b2XnybkPT9xvtYq3WBzQfZixM0rXWy0EcTffiwfseqtVLggfoy2eYRPo4HarhSATmL2DDMHpe7UQZJDZNYmbuNxqlQvy2+nPYR1/nETkDKKMQAz/hG/X35V1+nzreKT9icZyQX4/exO+4futak4SrhVuPvbb/t78d4rP4/3xvwAPQZidygQ23+sV0ts4H+dL8BBEeXpQ2y6BJsR0Ee8N+20sCMIk3DcCg4qCIPs2Paj3hsDmS/B63nohCBNunwn0vpqUC/LH2S/h6/Bwn6lS+8QItA8xezqblAvyjm9sn9j0mspwmjBbL2o/V0GQqUwPxtESaOK87jdFIggTa2oELuK83j/zgCBTmx6MJ4SKZxIEYUJNk0AlSRBkmtODUbXv6apwaEcQptKUCXQ+jyDIlKcHY2tCissu7wpGECbR1Alcxbn93z9BkKlPD8bXfrZkYV1FEIQJ5IGA+SyCIB6mB2M0P2FHECaPDwLGbRaC+JgejNL44BBBmDpeCJi2WQjiZXowzhDnq+L5Xtwh8XkQptq+Epitj0o/L4Ig+xo2dZcTMBzUEaQcMz32lQCC7Gty1D0IAcMrWawggyTDTSQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIggCASMVCEKgEEUU2GuiQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIggCASMVCEKgEEUU2GuiQIIIhEDBShSgBBVJOhLgkCCCIRA0WoEkAQ1WSoS4IAgkjEQBGqBBBENRnqkiCAIBIxUIQqAQRRTYa6JAggiEQMFKFKAEFUk6EuCQIIIhEDRagSQBDVZKhLggCCSMRAEaoEEEQ1GeqSIIAgEjFQhCoBBFFNhrokCCCIRAwUoUoAQVSToS4JAggiEQNFqBJAENVkqEuCAIJIxEARqgQQRDUZ6pIgMIggfz46DjG9kRgwRUCgiEBaxvnlRUmXWNK4bZsQpBQZ7WUIDCHI+4eHYT17LzNmCoFALoHZ+igevWxym7ftylcQBCnhS1slAkMIcr3N+ussKY2bWiCQQyDOV8ULQnGHrSDtIf04pyjaQECEwEWcr5altRgFOX0SQnxWejPaQ2A8AuUHdNMZ5HoF4RwyXs7c2UbAcP4wC8I2y5YRvcYjYDl/dBPk3elPIcWn4w2ZO0Mgm4Dp/NFNELZZ2enQcGQCxu1VJ0E22ywO6yNHz+2/TMC8enQXZLOKtC/5Hn65TlpAYAQCHVaPzoKwiowQOLfMJ2B49+6HFzc9B9m9yPYl3/aZCA8O86OjZf8EmjhfHXW9TWdBrlcRDuxdc6B/bQIpLuL9F1ddL1tFELZaXWOgf1UCleSocga5td3i2UjVnLmYgUCFc8fuXautIDcXTUhiSJUulQhcxflqUela15epL0h7Hvn34DFP2WvGxLUyCHR63nHX9asLwkqSESVN6hKovK3qdYt160zCg8S6E4GrfUyg4oH8U3h7W0H+X0nYcjGt+yFwFWbrZelnzEtL6V2QW6KsZzxQLE2I9h8SaEKKyxrPOHLQDiYIouTEQZvPEGhCSOel32vVlejggtwW5eA4hPiYt6l0jXGy/ZsQ00W8d3k+1ghHE+Tjw3wrS/sTv9/+XfsOYd4lPNbMGPa+7XdVtTJsvrMqhb+HXinuGq6EIMNmwd0gkE8AQfJZ0dIhAQRxGDpDzieAIPmsaOmQAII4DJ0h5xNAkHxWtHRIAEEchs6Q8wkgSD4rWjokgCAOQ2fI+QQQJJ8VLR0SQBCHoTPkfAIIks+Klg4JIIjD0BlyPgEEyWdFS4cEEMRh6Aw5nwCC5LOipUMCCOIwdIacTwBB8lnR0iEBBHEYOkPOJ4Ag+axo6ZAAgjgMnSHnE0CQfFa0dEgAQRyGzpDzCSBIPitaOiSAIA5DZ8j5BP4DGhIEBS0yns0AAAAASUVORK5CYII=",_="/assets/png/unknownfile-BBXNi05M.png",q=s=>(J("data-v-a8be935c"),s=s(),b(),s),v=q(()=>c("h2",null,"文件列表",-1)),P=["src"],W=N({__name:"ShowFileList",setup(s){const A=F(),{pending:Q,fileList:n,selectedRows:C,getFileListForm:B}=y(A),m=j(null),p=e=>C.value=e,I=async e=>{B.value.dir=e,await A.getFileList()},S=async e=>{if(r())try{e.isdir===1?await I(e.path):await A.getDownloadLinks(e.fs_id)}finally{Q.value=!1}},f=async e=>{if(!r())try{e.isdir===1?await I(e.path):await A.getDownloadLinks(e.fs_id)}finally{Q.value=!1}};return(e,H)=>{const E=w,h=D,R=u,d=L,k=Z;return t(n).list.length>0?M((T(),V(d,{key:0,class:"card"},{default:a(()=>[v,i(R,{border:"",stripe:"",ref_key:"fileListTableRef",ref:m,data:t(n).list,onRowClick:S,onRowDblclick:f,onSelectionChange:p,class:"table"},{default:a(()=>[i(E,{type:"selection",width:"40"}),i(E,{label:"文件名"},{default:a(({row:o})=>[i(h,{wrap:""},{default:a(()=>[c("img",{src:o.isdir===1?t(O):t(_)},null,8,P),l(" "+g(o.server_filename),1)]),_:2},1024)]),_:1}),i(E,{label:"修改时间"},{default:a(({row:o})=>[l(g(t(U)(o.server_mtime)),1)]),_:1}),i(E,{label:"大小"},{default:a(({row:o})=>[l(g(t(x)(o.size)),1)]),_:1})]),_:1},8,["data"])]),_:1})),[[k,t(Q)]]):Y("",!0)}}}),he=G(W,[["__scopeId","data-v-a8be935c"]]);export{he as default}; diff --git a/public/assets/js/ShowFileList-DoTSeEKx.js.gz b/public/assets/js/ShowFileList-DoTSeEKx.js.gz new file mode 100644 index 0000000..5aeebce Binary files /dev/null and b/public/assets/js/ShowFileList-DoTSeEKx.js.gz differ diff --git a/public/assets/js/TokenManagement-BJdgmlbt.js b/public/assets/js/TokenManagement-BJdgmlbt.js new file mode 100644 index 0000000..482157c --- /dev/null +++ b/public/assets/js/TokenManagement-BJdgmlbt.js @@ -0,0 +1,3 @@ +import{E as M,i as ee,j as te,c as le,r as H,b as K,e as ae,d as J,k as ne,v as Q,m as oe,t as ue,o as de,s as se}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as y}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as x}from"./index-DYV93AZk.js";import{d as W,_ as ie,$ as pe,o as g,G as T,H as l,i as t,L as c,I as r,c as X,F as Y,R as me,m as re,a as z,K as q}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as V,u as N}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{c as R}from"./copy-By2guqEs.js";import{f as O}from"./format-CyW-QbYa.js";import{L as _}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ce}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const _e=i=>x.post("/admin/token",i),fe=i=>x.post("/admin/token/generate",i),ve=i=>x.get(`/admin/token?page=${i.page}&size=${i.size}`),ye=i=>x.patch(`/admin/token/${i.id}`,i),ge=i=>x.delete("/admin/token",{data:{token_ids:[i.id]}}),ke=i=>x.delete("/admin/token",{data:{token_ids:i}}),Ve=W({__name:"AddToken",props:{modelValue:{},modelModifiers:{}},emits:ie(["getTokens"],["update:modelValue"]),setup(i,{emit:f}){const $=f,C=pe(i,"modelValue"),b=V(!1),a=V({type:"single",name:"",count:1,size:1,day:1}),v=V(null),F={name:[{required:!0,message:"请输入卡密名称",trigger:"blur"}],token_count:[{required:!0,message:"请输入卡密个数",trigger:"blur"}],day:[{required:!0,message:"请输入卡密天数",trigger:"blur"}],count:[{required:!0,message:"请输入可下载次数",trigger:"blur"}],size:[{required:!0,message:"请输入可下载大小",trigger:"blur"}]},L=async U=>{if(!(!U||!await U.validate()))try{b.value=!0,a.value.type==="single"?await _e({type:"single",name:a.value.name,count:a.value.count,size:a.value.size,day:a.value.day}):await fe({type:"random",token_count:a.value.token_count,count:a.value.count,size:a.value.size,day:a.value.day}),M.success("添加成功")}finally{b.value=!1}},B=U=>{$("getTokens"),U()},j=()=>{C.value=!1,$("getTokens")};return(U,d)=>{const E=ee,I=te,k=le,n=H,o=K,s=ae,p=J,D=ne,S=Q;return g(),T(D,{title:"添加卡密",width:"60%",modelValue:C.value,"onUpdate:modelValue":d[8]||(d[8]=u=>C.value=u),"before-close":B},{footer:l(()=>[t(p,{type:"info",onClick:d[6]||(d[6]=u=>j())},{default:l(()=>[c("取消")]),_:1}),t(p,{type:"primary",onClick:d[7]||(d[7]=u=>L(v.value))},{default:l(()=>[c("添加")]),_:1})]),default:l(()=>[r((g(),T(s,{ref_key:"addTokenFormRef",ref:v,model:a.value,rules:F,"label-width":"auto"},{default:l(()=>[t(k,{label:"创建方式",prop:"type"},{default:l(()=>[t(I,{modelValue:a.value.type,"onUpdate:modelValue":d[0]||(d[0]=u=>a.value.type=u)},{default:l(()=>[(g(),X(Y,null,me(["single","random"],u=>t(E,{key:u,label:u,value:u},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),t(k,{label:"可用次数",prop:"count"},{default:l(()=>[t(n,{modelValue:a.value.count,"onUpdate:modelValue":d[1]||(d[1]=u=>a.value.count=u)},null,8,["modelValue"])]),_:1}),t(k,{label:"可用天数",prop:"day"},{default:l(()=>[t(n,{modelValue:a.value.day,"onUpdate:modelValue":d[2]||(d[2]=u=>a.value.day=u)},null,8,["modelValue"])]),_:1}),t(k,{label:"可用大小(GB)",prop:"size"},{default:l(()=>[t(n,{modelValue:a.value.size,"onUpdate:modelValue":d[3]||(d[3]=u=>a.value.size=u)},null,8,["modelValue"])]),_:1}),a.value.type==="single"?(g(),T(k,{key:0,label:"卡密名称",prop:"name"},{default:l(()=>[t(o,{modelValue:a.value.name,"onUpdate:modelValue":d[4]||(d[4]=u=>a.value.name=u)},null,8,["modelValue"])]),_:1})):(g(),T(k,{key:1,label:"卡密个数",prop:"token_count"},{default:l(()=>[t(n,{modelValue:a.value.token_count,"onUpdate:modelValue":d[5]||(d[5]=u=>a.value.token_count=u)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[S,b.value]])]),_:1},8,["modelValue"])}}}),be=W({__name:"TokenManagement",setup(i){const f=V(!1),$=V(15),C=V(1),b=V(),a=V([]),v=async()=>{try{f.value=!0;const n=await ve({page:C.value,size:$.value});b.value=n.data}finally{f.value=!1}},F=async n=>{n.edit=!(n.edit??!1)},L=async n=>{n.edit=!(n.edit??!0),await B(n)},B=async n=>{try{f.value=!0,await ye(n),M.success("修改卡密成功")}finally{f.value=!1,await v()}},j=async n=>{try{f.value=!0,await ge(n),M.success("删除卡密成功")}finally{f.value=!1,await v()}},U=async()=>{try{f.value=!0;const n=a.value.map(o=>o.id);await ke(n),M.success("删除卡密成功")}finally{f.value=!1,await v()}},d=n=>a.value=n;re(v);const E=V(!1),I=()=>E.value=!E.value,k=(n=!0)=>{if(!n){R(a.value.map(s=>s.name).join(` +`));return}const o=a.value.map(s=>[s.name,s.count,s.size,s.day].join(" | "));o.unshift(["卡密","可用次数","可下载量","可用天数"].join(" | ")),R(o.join(` +`))};return(n,o)=>{var A,P,G;const s=J,p=oe,D=K,S=H,u=ue,Z=de,w=se,h=Q;return g(),X(Y,null,[t(Ve,{onGetTokens:v,modelValue:E.value,"onUpdate:modelValue":o[0]||(o[0]=e=>E.value=e)},null,8,["modelValue"]),t(s,{type:"primary",onClick:o[1]||(o[1]=e=>v())},{default:l(()=>[c("刷新列表")]),_:1}),t(s,{type:"primary",onClick:o[2]||(o[2]=e=>I())},{default:l(()=>[c("添加卡密")]),_:1}),t(s,{type:"primary",disabled:a.value.length<=0,onClick:o[3]||(o[3]=e=>k())},{default:l(()=>[c(" 批量复制 ")]),_:1},8,["disabled"]),t(s,{type:"primary",disabled:a.value.length<=0,onClick:o[4]||(o[4]=e=>k(!1))},{default:l(()=>[c(" 批量复制(无格式) ")]),_:1},8,["disabled"]),t(s,{type:"danger",disabled:a.value.length<=0,onClick:o[5]||(o[5]=e=>U())},{default:l(()=>[c(" 批量删除 ")]),_:1},8,["disabled"]),r((g(),T(Z,{data:((A=b.value)==null?void 0:A.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:d},{default:l(()=>[t(p,{type:"selection",width:"40"}),t(p,{prop:"id",label:"ID"}),t(p,{prop:"name",label:"卡密名称"},{default:l(({row:e})=>[r(z("span",null,_(e.name),513),[[y,!e.edit]]),r(t(D,{modelValue:e.name,"onUpdate:modelValue":m=>e.name=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),t(p,{prop:"today_size",label:"今日解析"},{default:l(({row:e})=>[z("span",null,_(e.today_count)+" ("+_(N(O)(e.today_size??0))+")",1)]),_:1}),t(p,{prop:"today_size",label:"縂共解析"},{default:l(({row:e})=>[z("span",null,_(e.total_count)+" ("+_(N(O)(e.total_size??0))+")",1)]),_:1}),t(p,{prop:"count",label:"可用次数"},{default:l(({row:e})=>[r(z("span",null,_(e.count),513),[[y,!e.edit]]),r(t(S,{modelValue:e.count,"onUpdate:modelValue":m=>e.count=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),t(p,{prop:"size",label:"可下载大小"},{default:l(({row:e})=>[r(z("span",null,_(e.size),513),[[y,!e.edit]]),r(t(S,{modelValue:e.size,"onUpdate:modelValue":m=>e.size=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),t(p,{prop:"day",label:"有效期"},{default:l(({row:e})=>[r(z("span",null,_(e.day),513),[[y,!e.edit]]),r(t(S,{modelValue:e.day,"onUpdate:modelValue":m=>e.day=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),t(p,{prop:"expired_at",label:"到期时间",width:"250"},{default:l(({row:e})=>[r(z("span",null,_(e.expired_at?`${new Date(e.expired_at).getTime()e.expired_at=m,type:"datetime",placeholder:"请选择日期"},null,8,["modelValue","onUpdate:modelValue"])):q("",!0)]),_:1}),t(p,{prop:"ip",label:"ip"},{default:l(({row:e})=>[r(z("span",null,_(e.ip??"未绑定ip"),513),[[y,!e.edit]]),r(t(D,{modelValue:e.ip,"onUpdate:modelValue":m=>e.ip=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),t(p,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[c(_(new Date(e.created_at).toLocaleString()),1)]),_:1}),t(p,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[c(_(new Date(e.updated_at).toLocaleString()),1)]),_:1}),t(p,{width:"200",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?q("",!0):(g(),T(s,{key:0,size:"small",type:"primary",onClick:m=>F(e)},{default:l(()=>[c(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(g(),T(s,{key:1,size:"small",type:"primary",onClick:m=>L(e)},{default:l(()=>[c(" 保存 ")]),_:2},1032,["onClick"])):q("",!0),t(s,{size:"small",type:"primary",onClick:m=>N(R)(e.name)},{default:l(()=>[c("复制")]),_:2},1032,["onClick"]),t(s,{size:"small",type:"danger",onClick:m=>j(e)},{default:l(()=>[c("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,f.value]]),t(w,{"current-page":C.value,"onUpdate:currentPage":o[6]||(o[6]=e=>C.value=e),"page-size":$.value,"onUpdate:pageSize":o[7]||(o[7]=e=>$.value=e),"page-sizes":[15,50,100,500,((P=b.value)==null?void 0:P.total)??100],total:((G=b.value)==null?void 0:G.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:v,onCurrentChange:v},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Je=ce(be,[["__scopeId","data-v-9f80afaa"]]);export{Je as default}; diff --git a/public/assets/js/TokenManagement-BJdgmlbt.js.gz b/public/assets/js/TokenManagement-BJdgmlbt.js.gz new file mode 100644 index 0000000..7743430 Binary files /dev/null and b/public/assets/js/TokenManagement-BJdgmlbt.js.gz differ diff --git a/public/assets/js/TokenManagement-LRNw-KRi.js b/public/assets/js/TokenManagement-LRNw-KRi.js deleted file mode 100644 index eef589d..0000000 --- a/public/assets/js/TokenManagement-LRNw-KRi.js +++ /dev/null @@ -1,3 +0,0 @@ -import{E as M,i as ee,j as le,c as te,r as H,b as K,e as ae,d as J,k as ne,v as Q,m as oe,t as ue,o as de,s as se}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as y}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as x}from"./index-Aa74bd4N.js";import{d as W,_ as ie,$ as pe,o as g,G as T,H as t,i as l,L as c,I as r,c as X,F as Y,R as me,m as re,a as z,K as q}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as V,u as N}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{c as R}from"./copy-By2guqEs.js";import{f as O}from"./format-CyW-QbYa.js";import{L as _}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as ce}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const _e=i=>x.post("/admin/token",i),fe=i=>x.post("/admin/token/generate",i),ve=i=>x.get(`/admin/token?page=${i.page}&size=${i.size}`),ye=i=>x.patch(`/admin/token/${i.id}`,i),ge=i=>x.delete("/admin/token",{data:{token_ids:[i.id]}}),ke=i=>x.delete("/admin/token",{data:{token_ids:i}}),Ve=W({__name:"AddToken",props:{modelValue:{},modelModifiers:{}},emits:ie(["getTokens"],["update:modelValue"]),setup(i,{emit:f}){const $=f,C=pe(i,"modelValue"),b=V(!1),a=V({type:"single",name:"",count:1,size:1,day:1}),v=V(null),F={name:[{required:!0,message:"请输入卡密名称",trigger:"blur"}],token_count:[{required:!0,message:"请输入卡密个数",trigger:"blur"}],day:[{required:!0,message:"请输入卡密天数",trigger:"blur"}],count:[{required:!0,message:"请输入可下载次数",trigger:"blur"}],size:[{required:!0,message:"请输入可下载大小",trigger:"blur"}]},L=async U=>{if(!(!U||!await U.validate()))try{b.value=!0,a.value.type==="single"?await _e({type:"single",name:a.value.name,count:a.value.count,size:a.value.size,day:a.value.day}):await fe({type:"random",token_count:a.value.token_count,count:a.value.count,size:a.value.size,day:a.value.day}),M.success("添加成功")}finally{b.value=!1}},B=U=>{$("getTokens"),U()},j=()=>{C.value=!1,$("getTokens")};return(U,d)=>{const E=ee,I=le,k=te,n=H,o=K,s=ae,p=J,D=ne,S=Q;return g(),T(D,{title:"添加卡密",width:"60%",modelValue:C.value,"onUpdate:modelValue":d[8]||(d[8]=u=>C.value=u),"before-close":B},{footer:t(()=>[l(p,{type:"info",onClick:d[6]||(d[6]=u=>j())},{default:t(()=>[c("取消")]),_:1}),l(p,{type:"primary",onClick:d[7]||(d[7]=u=>L(v.value))},{default:t(()=>[c("添加")]),_:1})]),default:t(()=>[r((g(),T(s,{ref_key:"addTokenFormRef",ref:v,model:a.value,rules:F,"label-width":"auto"},{default:t(()=>[l(k,{label:"创建方式",prop:"type"},{default:t(()=>[l(I,{modelValue:a.value.type,"onUpdate:modelValue":d[0]||(d[0]=u=>a.value.type=u)},{default:t(()=>[(g(),X(Y,null,me(["single","random"],u=>l(E,{key:u,label:u,value:u},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),l(k,{label:"可用次数",prop:"count"},{default:t(()=>[l(n,{modelValue:a.value.count,"onUpdate:modelValue":d[1]||(d[1]=u=>a.value.count=u)},null,8,["modelValue"])]),_:1}),l(k,{label:"可用天数",prop:"day"},{default:t(()=>[l(n,{modelValue:a.value.day,"onUpdate:modelValue":d[2]||(d[2]=u=>a.value.day=u)},null,8,["modelValue"])]),_:1}),l(k,{label:"可用大小(GB)",prop:"size"},{default:t(()=>[l(n,{modelValue:a.value.size,"onUpdate:modelValue":d[3]||(d[3]=u=>a.value.size=u)},null,8,["modelValue"])]),_:1}),a.value.type==="single"?(g(),T(k,{key:0,label:"卡密名称",prop:"name"},{default:t(()=>[l(o,{modelValue:a.value.name,"onUpdate:modelValue":d[4]||(d[4]=u=>a.value.name=u)},null,8,["modelValue"])]),_:1})):(g(),T(k,{key:1,label:"卡密个数",prop:"token_count"},{default:t(()=>[l(n,{modelValue:a.value.token_count,"onUpdate:modelValue":d[5]||(d[5]=u=>a.value.token_count=u)},null,8,["modelValue"])]),_:1}))]),_:1},8,["model"])),[[S,b.value]])]),_:1},8,["modelValue"])}}}),be=W({__name:"TokenManagement",setup(i){const f=V(!1),$=V(15),C=V(1),b=V(),a=V([]),v=async()=>{try{f.value=!0;const n=await ve({page:C.value,size:$.value});b.value=n.data}finally{f.value=!1}},F=async n=>{n.edit=!(n.edit??!1)},L=async n=>{n.edit=!(n.edit??!0),await B(n)},B=async n=>{try{f.value=!0,await ye(n),M.success("修改卡密成功")}finally{f.value=!1,await v()}},j=async n=>{try{f.value=!0,await ge(n),M.success("删除卡密成功")}finally{f.value=!1,await v()}},U=async()=>{try{f.value=!0;const n=a.value.map(o=>o.id);await ke(n),M.success("删除卡密成功")}finally{f.value=!1,await v()}},d=n=>a.value=n;re(v);const E=V(!1),I=()=>E.value=!E.value,k=(n=!0)=>{if(!n){R(a.value.map(s=>s.name).join(` -`));return}const o=a.value.map(s=>[s.name,s.count,s.size,s.day].join(" | "));o.unshift(["卡密","可用次数","可下载量","可用天数"].join(" | ")),R(o.join(` -`))};return(n,o)=>{var A,P,G;const s=J,p=oe,D=K,S=H,u=ue,Z=de,w=se,h=Q;return g(),X(Y,null,[l(Ve,{onGetTokens:v,modelValue:E.value,"onUpdate:modelValue":o[0]||(o[0]=e=>E.value=e)},null,8,["modelValue"]),l(s,{type:"primary",onClick:o[1]||(o[1]=e=>v())},{default:t(()=>[c("刷新列表")]),_:1}),l(s,{type:"primary",onClick:o[2]||(o[2]=e=>I())},{default:t(()=>[c("添加卡密")]),_:1}),l(s,{type:"primary",disabled:a.value.length<=0,onClick:o[3]||(o[3]=e=>k())},{default:t(()=>[c(" 批量复制 ")]),_:1},8,["disabled"]),l(s,{type:"primary",disabled:a.value.length<=0,onClick:o[4]||(o[4]=e=>k(!1))},{default:t(()=>[c(" 批量复制(无格式) ")]),_:1},8,["disabled"]),l(s,{type:"danger",disabled:a.value.length<=0,onClick:o[5]||(o[5]=e=>U())},{default:t(()=>[c(" 批量删除 ")]),_:1},8,["disabled"]),r((g(),T(Z,{data:((A=b.value)==null?void 0:A.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:d},{default:t(()=>[l(p,{type:"selection",width:"40"}),l(p,{prop:"id",label:"ID"}),l(p,{prop:"name",label:"卡密名称"},{default:t(({row:e})=>[r(z("span",null,_(e.name),513),[[y,!e.edit]]),r(l(D,{modelValue:e.name,"onUpdate:modelValue":m=>e.name=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),l(p,{prop:"today_size",label:"今日解析"},{default:t(({row:e})=>[z("span",null,_(e.today_count)+" ("+_(N(O)(e.today_size??0))+")",1)]),_:1}),l(p,{prop:"today_size",label:"縂共解析"},{default:t(({row:e})=>[z("span",null,_(e.total_count)+" ("+_(N(O)(e.total_size??0))+")",1)]),_:1}),l(p,{prop:"count",label:"可用次数"},{default:t(({row:e})=>[r(z("span",null,_(e.count),513),[[y,!e.edit]]),r(l(S,{modelValue:e.count,"onUpdate:modelValue":m=>e.count=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),l(p,{prop:"size",label:"可下载大小"},{default:t(({row:e})=>[r(z("span",null,_(e.size),513),[[y,!e.edit]]),r(l(S,{modelValue:e.size,"onUpdate:modelValue":m=>e.size=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),l(p,{prop:"day",label:"有效期"},{default:t(({row:e})=>[r(z("span",null,_(e.day),513),[[y,!e.edit]]),r(l(S,{modelValue:e.day,"onUpdate:modelValue":m=>e.day=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),l(p,{prop:"expired_at",label:"到期时间",width:"250"},{default:t(({row:e})=>[r(z("span",null,_(e.expired_at?`${new Date(e.expired_at).getTime()e.expired_at=m,type:"datetime",placeholder:"请选择日期"},null,8,["modelValue","onUpdate:modelValue"])):q("",!0)]),_:1}),l(p,{prop:"ip",label:"ip"},{default:t(({row:e})=>[r(z("span",null,_(e.ip??"未绑定ip"),513),[[y,!e.edit]]),r(l(D,{modelValue:e.ip,"onUpdate:modelValue":m=>e.ip=m},null,8,["modelValue","onUpdate:modelValue"]),[[y,e.edit]])]),_:1}),l(p,{prop:"created_at",label:"创建时间"},{default:t(({row:e})=>[c(_(new Date(e.created_at).toLocaleString()),1)]),_:1}),l(p,{prop:"updated_at",label:"更新时间"},{default:t(({row:e})=>[c(_(new Date(e.updated_at).toLocaleString()),1)]),_:1}),l(p,{width:"200",label:"操作",fixed:"right"},{default:t(({row:e})=>[e.edit?q("",!0):(g(),T(s,{key:0,size:"small",type:"primary",onClick:m=>F(e)},{default:t(()=>[c(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(g(),T(s,{key:1,size:"small",type:"primary",onClick:m=>L(e)},{default:t(()=>[c(" 保存 ")]),_:2},1032,["onClick"])):q("",!0),l(s,{size:"small",type:"primary",onClick:m=>N(R)(e.name)},{default:t(()=>[c("复制")]),_:2},1032,["onClick"]),l(s,{size:"small",type:"danger",onClick:m=>j(e)},{default:t(()=>[c("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,f.value]]),l(w,{"current-page":C.value,"onUpdate:currentPage":o[6]||(o[6]=e=>C.value=e),"page-size":$.value,"onUpdate:pageSize":o[7]||(o[7]=e=>$.value=e),"page-sizes":[15,50,100,500,((P=b.value)==null?void 0:P.total)??100],total:((G=b.value)==null?void 0:G.total)??100,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:v,onCurrentChange:v},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),He=ce(be,[["__scopeId","data-v-9f80afaa"]]);export{He as default}; diff --git a/public/assets/js/TokenManagement-LRNw-KRi.js.gz b/public/assets/js/TokenManagement-LRNw-KRi.js.gz deleted file mode 100644 index dcdc6bb..0000000 Binary files a/public/assets/js/TokenManagement-LRNw-KRi.js.gz and /dev/null differ diff --git a/public/assets/js/UserManagement-C-9GJbGk.js b/public/assets/js/UserManagement-C-9GJbGk.js new file mode 100644 index 0000000..e0eb204 --- /dev/null +++ b/public/assets/js/UserManagement-C-9GJbGk.js @@ -0,0 +1 @@ +import{E as x,b as j,c as ee,i as H,j as K,e as ae,d as J,k as le,v as Q,m as te,o as oe,s as se}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as E}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as M}from"./index-DYV93AZk.js";import{d as W,_ as ne,$ as de,o as V,G as S,H as l,i as a,L as _,I as U,c as A,F as N,R as X,m as ue,a as C,K as T}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as f,u as q}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{f as G}from"./format-CyW-QbYa.js";import{L as i}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as re}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ie=u=>M.post("/admin/user",u),pe=u=>M.get(`/admin/user?page=${u.page}&size=${u.size}`),me=u=>M.patch(`/admin/user/${u.id}`,u),ce=u=>M.delete("/admin/user",{data:{user_ids:[u.id]}}),_e=u=>M.delete("/admin/user",{data:{user_ids:u}}),fe=W({__name:"AddUser",props:{modelValue:{},modelModifiers:{}},emits:ne(["getUsers"],["update:modelValue"]),setup(u,{emit:m}){const z=m,b=de(u,"modelValue"),v=f(!1),r=f({username:"",password:"",role:"user",inv_code_id:1}),c=f(null),F={username:[{required:!0,message:"请输入账户用户名",trigger:"blur"}],password:[{required:!0,message:"请输入账户密码",trigger:"blur"}]},D=async k=>{if(!(!k||!await k.validate()))try{v.value=!0,await ie(r.value),x.success("添加成功")}finally{v.value=!1}},L=k=>{z("getUsers"),k()},B=()=>{b.value=!1,z("getUsers")};return(k,s)=>{const g=j,$=ee,t=H,n=K,y=ae,d=J,w=le,I=Q;return V(),S(w,{title:"添加用户",width:"60%",modelValue:b.value,"onUpdate:modelValue":s[6]||(s[6]=o=>b.value=o),"before-close":L},{footer:l(()=>[a(d,{type:"info",onClick:s[4]||(s[4]=o=>B())},{default:l(()=>[_("取消")]),_:1}),a(d,{type:"primary",onClick:s[5]||(s[5]=o=>D(c.value))},{default:l(()=>[_("添加")]),_:1})]),default:l(()=>[U((V(),S(y,{ref_key:"addUserFormRef",ref:c,model:r.value,rules:F,"label-width":"auto"},{default:l(()=>[a($,{label:"用户名",prop:"username"},{default:l(()=>[a(g,{modelValue:r.value.username,"onUpdate:modelValue":s[0]||(s[0]=o=>r.value.username=o)},null,8,["modelValue"])]),_:1}),a($,{label:"密码",prop:"password"},{default:l(()=>[a(g,{modelValue:r.value.password,"onUpdate:modelValue":s[1]||(s[1]=o=>r.value.password=o)},null,8,["modelValue"])]),_:1}),a($,{label:"权限",prop:"role"},{default:l(()=>[a(n,{modelValue:r.value.role,"onUpdate:modelValue":s[2]||(s[2]=o=>r.value.role=o)},{default:l(()=>[(V(),A(N,null,X(["user","admin"],o=>a(t,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),a($,{label:"邀请码ID",prop:"inv_code_id"},{default:l(()=>[a(g,{modelValue:r.value.inv_code_id,"onUpdate:modelValue":s[3]||(s[3]=o=>r.value.inv_code_id=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[I,v.value]])]),_:1},8,["modelValue"])}}}),ve=W({__name:"UserManagement",setup(u){const m=f(!1),z=f(15),b=f(1),v=f(),r=f([]),c=async()=>{try{m.value=!0;const t=await pe({page:b.value,size:z.value});v.value=t.data}finally{m.value=!1}},F=async t=>{t.edit=!(t.edit??!1)},D=async t=>{t.edit=!(t.edit??!0),await L(t)},L=async t=>{try{m.value=!0,await me(t),x.success("修改用户成功")}finally{m.value=!1,await c()}},B=async t=>{try{m.value=!0,await ce(t),x.success("删除用户成功")}finally{m.value=!1,await c()}},k=async()=>{try{m.value=!0;const t=r.value.map(n=>n.id);await _e(t),x.success("批量删除用户成功")}finally{m.value=!1,await c()}},s=t=>r.value=t;ue(c);const g=f(!1),$=()=>g.value=!g.value;return(t,n)=>{var R,O,P;const y=J,d=te,w=j,I=H,o=K,Y=oe,Z=se,h=Q;return V(),A(N,null,[a(fe,{onGetUsers:c,modelValue:g.value,"onUpdate:modelValue":n[0]||(n[0]=e=>g.value=e)},null,8,["modelValue"]),a(y,{type:"primary",onClick:n[1]||(n[1]=e=>c())},{default:l(()=>[_("刷新列表")]),_:1}),a(y,{type:"primary",onClick:n[2]||(n[2]=e=>$())},{default:l(()=>[_("添加用户")]),_:1}),a(y,{type:"danger",disabled:r.value.length<=0,onClick:n[3]||(n[3]=e=>k())},{default:l(()=>[_(" 批量删除 ")]),_:1},8,["disabled"]),U((V(),S(Y,{data:((R=v.value)==null?void 0:R.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:s},{default:l(()=>[a(d,{type:"selection",width:"40"}),a(d,{prop:"id",label:"ID"}),a(d,{prop:"",label:"用户组"},{default:l(({row:e})=>[C("span",null,i(e.group.id)+" ("+i(e.group.name)+")",1)]),_:1}),a(d,{prop:"inv_code.name",label:"邀请码"},{default:l(({row:e})=>[C("span",null,i(e.inv_code.id)+" ("+i(e.inv_code.name)+")",1)]),_:1}),a(d,{prop:"today_size",label:"今日解析"},{default:l(({row:e})=>[C("span",null,i(e.today_count)+" ("+i(q(G)(e.today_size??0))+")",1)]),_:1}),a(d,{prop:"today_size",label:"縂共解析"},{default:l(({row:e})=>[C("span",null,i(e.total_count)+" ("+i(q(G)(e.total_size??0))+")",1)]),_:1}),a(d,{prop:"username",label:"用户名"},{default:l(({row:e})=>[U(C("span",null,i(e.username),513),[[E,!e.edit]]),U(a(w,{modelValue:e.username,"onUpdate:modelValue":p=>e.username=p},null,8,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"password",label:"密码"},{default:l(({row:e})=>[U(C("span",null,i(e.password),513),[[E,!e.edit]]),U(a(w,{modelValue:e.password,"onUpdate:modelValue":p=>e.password=p},null,8,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"role",label:"权限"},{default:l(({row:e})=>[U(C("span",null,i(e.role),513),[[E,!e.edit]]),U(a(o,{modelValue:e.role,"onUpdate:modelValue":p=>e.role=p},{default:l(()=>[(V(),A(N,null,X(["user","admin"],p=>a(I,{key:p,label:p,value:p},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[_(i(new Date(e.created_at).toLocaleString()),1)]),_:1}),a(d,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[_(i(new Date(e.updated_at).toLocaleString()),1)]),_:1}),a(d,{width:"150",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?T("",!0):(V(),S(y,{key:0,size:"small",type:"primary",onClick:p=>F(e)},{default:l(()=>[_(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(V(),S(y,{key:1,size:"small",type:"primary",onClick:p=>D(e)},{default:l(()=>[_(" 保存 ")]),_:2},1032,["onClick"])):T("",!0),a(y,{size:"small",type:"danger",onClick:p=>B(e)},{default:l(()=>[_("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,m.value]]),a(Z,{"current-page":b.value,"onUpdate:currentPage":n[4]||(n[4]=e=>b.value=e),"page-size":z.value,"onUpdate:pageSize":n[5]||(n[5]=e=>z.value=e),"page-sizes":[15,50,100,500,((O=v.value)==null?void 0:O.total)??100],total:((P=v.value)==null?void 0:P.total)??100,layout:"sizes, prev, pager, next",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Pe=re(ve,[["__scopeId","data-v-39a05d3b"]]);export{Pe as default}; diff --git a/public/assets/js/UserManagement-C-9GJbGk.js.gz b/public/assets/js/UserManagement-C-9GJbGk.js.gz new file mode 100644 index 0000000..168e610 Binary files /dev/null and b/public/assets/js/UserManagement-C-9GJbGk.js.gz differ diff --git a/public/assets/js/UserManagement-CFga5pT8.js b/public/assets/js/UserManagement-CFga5pT8.js deleted file mode 100644 index a32e29e..0000000 --- a/public/assets/js/UserManagement-CFga5pT8.js +++ /dev/null @@ -1 +0,0 @@ -import{E as x,b as j,c as ee,i as H,j as K,e as ae,d as J,k as le,v as Q,m as te,o as oe,s as se}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{v as E}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{i as M}from"./index-Aa74bd4N.js";import{d as W,_ as ne,$ as de,o as V,G as S,H as l,i as a,L as _,I as U,c as A,F as N,R as X,m as ue,a as C,K as T}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{r as f,u as q}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{f as G}from"./format-CyW-QbYa.js";import{L as i}from"./@vue_shared@3.4.32-CaCWPAm8.js";import{_ as re}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const ie=u=>M.post("/admin/user",u),pe=u=>M.get(`/admin/user?page=${u.page}&size=${u.size}`),me=u=>M.patch(`/admin/user/${u.id}`,u),ce=u=>M.delete("/admin/user",{data:{user_ids:[u.id]}}),_e=u=>M.delete("/admin/user",{data:{user_ids:u}}),fe=W({__name:"AddUser",props:{modelValue:{},modelModifiers:{}},emits:ne(["getUsers"],["update:modelValue"]),setup(u,{emit:m}){const z=m,b=de(u,"modelValue"),v=f(!1),r=f({username:"",password:"",role:"user",inv_code_id:1}),c=f(null),F={username:[{required:!0,message:"请输入账户用户名",trigger:"blur"}],password:[{required:!0,message:"请输入账户密码",trigger:"blur"}]},D=async k=>{if(!(!k||!await k.validate()))try{v.value=!0,await ie(r.value),x.success("添加成功")}finally{v.value=!1}},L=k=>{z("getUsers"),k()},B=()=>{b.value=!1,z("getUsers")};return(k,s)=>{const g=j,$=ee,t=H,n=K,y=ae,d=J,w=le,I=Q;return V(),S(w,{title:"添加用户",width:"60%",modelValue:b.value,"onUpdate:modelValue":s[6]||(s[6]=o=>b.value=o),"before-close":L},{footer:l(()=>[a(d,{type:"info",onClick:s[4]||(s[4]=o=>B())},{default:l(()=>[_("取消")]),_:1}),a(d,{type:"primary",onClick:s[5]||(s[5]=o=>D(c.value))},{default:l(()=>[_("添加")]),_:1})]),default:l(()=>[U((V(),S(y,{ref_key:"addUserFormRef",ref:c,model:r.value,rules:F,"label-width":"auto"},{default:l(()=>[a($,{label:"用户名",prop:"username"},{default:l(()=>[a(g,{modelValue:r.value.username,"onUpdate:modelValue":s[0]||(s[0]=o=>r.value.username=o)},null,8,["modelValue"])]),_:1}),a($,{label:"密码",prop:"password"},{default:l(()=>[a(g,{modelValue:r.value.password,"onUpdate:modelValue":s[1]||(s[1]=o=>r.value.password=o)},null,8,["modelValue"])]),_:1}),a($,{label:"权限",prop:"role"},{default:l(()=>[a(n,{modelValue:r.value.role,"onUpdate:modelValue":s[2]||(s[2]=o=>r.value.role=o)},{default:l(()=>[(V(),A(N,null,X(["user","admin"],o=>a(t,{key:o,label:o,value:o},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),a($,{label:"邀请码ID",prop:"inv_code_id"},{default:l(()=>[a(g,{modelValue:r.value.inv_code_id,"onUpdate:modelValue":s[3]||(s[3]=o=>r.value.inv_code_id=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[I,v.value]])]),_:1},8,["modelValue"])}}}),ve=W({__name:"UserManagement",setup(u){const m=f(!1),z=f(15),b=f(1),v=f(),r=f([]),c=async()=>{try{m.value=!0;const t=await pe({page:b.value,size:z.value});v.value=t.data}finally{m.value=!1}},F=async t=>{t.edit=!(t.edit??!1)},D=async t=>{t.edit=!(t.edit??!0),await L(t)},L=async t=>{try{m.value=!0,await me(t),x.success("修改用户成功")}finally{m.value=!1,await c()}},B=async t=>{try{m.value=!0,await ce(t),x.success("删除用户成功")}finally{m.value=!1,await c()}},k=async()=>{try{m.value=!0;const t=r.value.map(n=>n.id);await _e(t),x.success("批量删除用户成功")}finally{m.value=!1,await c()}},s=t=>r.value=t;ue(c);const g=f(!1),$=()=>g.value=!g.value;return(t,n)=>{var R,O,P;const y=J,d=te,w=j,I=H,o=K,Y=oe,Z=se,h=Q;return V(),A(N,null,[a(fe,{onGetUsers:c,modelValue:g.value,"onUpdate:modelValue":n[0]||(n[0]=e=>g.value=e)},null,8,["modelValue"]),a(y,{type:"primary",onClick:n[1]||(n[1]=e=>c())},{default:l(()=>[_("刷新列表")]),_:1}),a(y,{type:"primary",onClick:n[2]||(n[2]=e=>$())},{default:l(()=>[_("添加用户")]),_:1}),a(y,{type:"danger",disabled:r.value.length<=0,onClick:n[3]||(n[3]=e=>k())},{default:l(()=>[_(" 批量删除 ")]),_:1},8,["disabled"]),U((V(),S(Y,{data:((R=v.value)==null?void 0:R.data)??[],border:"","show-overflow-tooltip":"",class:"table",onSelectionChange:s},{default:l(()=>[a(d,{type:"selection",width:"40"}),a(d,{prop:"id",label:"ID"}),a(d,{prop:"",label:"用户组"},{default:l(({row:e})=>[C("span",null,i(e.group.id)+" ("+i(e.group.name)+")",1)]),_:1}),a(d,{prop:"inv_code.name",label:"邀请码"},{default:l(({row:e})=>[C("span",null,i(e.inv_code.id)+" ("+i(e.inv_code.name)+")",1)]),_:1}),a(d,{prop:"today_size",label:"今日解析"},{default:l(({row:e})=>[C("span",null,i(e.today_count)+" ("+i(q(G)(e.today_size??0))+")",1)]),_:1}),a(d,{prop:"today_size",label:"縂共解析"},{default:l(({row:e})=>[C("span",null,i(e.total_count)+" ("+i(q(G)(e.total_size??0))+")",1)]),_:1}),a(d,{prop:"username",label:"用户名"},{default:l(({row:e})=>[U(C("span",null,i(e.username),513),[[E,!e.edit]]),U(a(w,{modelValue:e.username,"onUpdate:modelValue":p=>e.username=p},null,8,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"password",label:"密码"},{default:l(({row:e})=>[U(C("span",null,i(e.password),513),[[E,!e.edit]]),U(a(w,{modelValue:e.password,"onUpdate:modelValue":p=>e.password=p},null,8,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"role",label:"权限"},{default:l(({row:e})=>[U(C("span",null,i(e.role),513),[[E,!e.edit]]),U(a(o,{modelValue:e.role,"onUpdate:modelValue":p=>e.role=p},{default:l(()=>[(V(),A(N,null,X(["user","admin"],p=>a(I,{key:p,label:p,value:p},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"]),[[E,e.edit]])]),_:1}),a(d,{prop:"created_at",label:"创建时间"},{default:l(({row:e})=>[_(i(new Date(e.created_at).toLocaleString()),1)]),_:1}),a(d,{prop:"updated_at",label:"更新时间"},{default:l(({row:e})=>[_(i(new Date(e.updated_at).toLocaleString()),1)]),_:1}),a(d,{width:"150",label:"操作",fixed:"right"},{default:l(({row:e})=>[e.edit?T("",!0):(V(),S(y,{key:0,size:"small",type:"primary",onClick:p=>F(e)},{default:l(()=>[_(" 编辑 ")]),_:2},1032,["onClick"])),e.edit?(V(),S(y,{key:1,size:"small",type:"primary",onClick:p=>D(e)},{default:l(()=>[_(" 保存 ")]),_:2},1032,["onClick"])):T("",!0),a(y,{size:"small",type:"danger",onClick:p=>B(e)},{default:l(()=>[_("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,m.value]]),a(Z,{"current-page":b.value,"onUpdate:currentPage":n[4]||(n[4]=e=>b.value=e),"page-size":z.value,"onUpdate:pageSize":n[5]||(n[5]=e=>z.value=e),"page-sizes":[15,50,100,500,((O=v.value)==null?void 0:O.total)??100],total:((P=v.value)==null?void 0:P.total)??100,layout:"sizes, prev, pager, next",onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","page-sizes","total"])],64)}}}),Re=re(ve,[["__scopeId","data-v-39a05d3b"]]);export{Re as default}; diff --git a/public/assets/js/UserManagement-CFga5pT8.js.gz b/public/assets/js/UserManagement-CFga5pT8.js.gz deleted file mode 100644 index 7ebed98..0000000 Binary files a/public/assets/js/UserManagement-CFga5pT8.js.gz and /dev/null differ diff --git a/public/assets/js/UserView-UH0eEj1Z.js b/public/assets/js/UserView-DXrxeYoX.js similarity index 50% rename from public/assets/js/UserView-UH0eEj1Z.js rename to public/assets/js/UserView-DXrxeYoX.js index 34a9e8c..eef9475 100644 --- a/public/assets/js/UserView-UH0eEj1Z.js +++ b/public/assets/js/UserView-DXrxeYoX.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/AnnounceDialog-CQxcnYiO.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/index-Aa74bd4N.js","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/index-qsVAQOGj.css","assets/js/GetFileList-Bse4Qbxd.js","assets/js/fileListStore-CafL_dKw.js","assets/js/copy-By2guqEs.js","assets/js/format-CyW-QbYa.js","assets/js/isMobile-BD0f7XPI.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/css/GetFileList-D8J9e0M0.css","assets/js/ShowFileList-D8cWfZu5.js","assets/css/ShowFileList-CbcFgyZ7.css","assets/js/DownloadLinks-DBWmvHL8.js","assets/js/aria2Store-B37jzuFe.js","assets/js/Aria2Dialog-D7zQwXfq.js"])))=>i.map(i=>d[i]); -import{_ as o}from"./index-Aa74bd4N.js";import{d as n,c as a,i as t,o as c,X as r}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as i}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{_ as d}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const f={class:"container"},u=n({__name:"UserView",setup(l){const _=r(()=>o(()=>import("./AnnounceDialog-CQxcnYiO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),e=r(()=>o(()=>import("./GetFileList-Bse4Qbxd.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,23,16,17,18,19,20,21,24,25,26,27,28]))),m=r(()=>o(()=>import("./ShowFileList-D8cWfZu5.js"),__vite__mapDeps([29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,25,26,27,30]))),p=r(()=>o(()=>import("./DownloadLinks-DBWmvHL8.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,32,23,24]))),s=r(()=>o(()=>import("./Aria2Dialog-D7zQwXfq.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,32,16,17,18,19,20,21])));return(E,v)=>(c(),a("div",f,[t(i(_)),t(i(s)),t(i(e)),t(i(m)),t(i(p))]))}}),G=d(u,[["__scopeId","data-v-afbfa6b1"]]);export{G as default}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/AnnounceDialog-C3AXj005.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/index-DYV93AZk.js","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js","assets/js/tslib@2.6.3-CPxunF3b.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/index-qsVAQOGj.css","assets/js/GetFileList-ClRPbksc.js","assets/js/fileListStore-BL5xDhSX.js","assets/js/copy-By2guqEs.js","assets/js/format-CyW-QbYa.js","assets/js/isMobile-BD0f7XPI.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/css/GetFileList-D8J9e0M0.css","assets/js/ShowFileList-DoTSeEKx.js","assets/css/ShowFileList-CbcFgyZ7.css","assets/js/DownloadLinks-0QpbYdeQ.js","assets/js/aria2Store-Eper8YQt.js","assets/js/Aria2Dialog-BoClX_iS.js"])))=>i.map(i=>d[i]); +import{_ as o}from"./index-DYV93AZk.js";import{d as n,c as a,i as t,o as c,X as r}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import{u as i}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{_ as d}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./axios@1.7.2-B4uVmeYG.js";import"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import"./tslib@2.6.3-CPxunF3b.js";import"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";const f={class:"container"},u=n({__name:"UserView",setup(l){const _=r(()=>o(()=>import("./AnnounceDialog-C3AXj005.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),e=r(()=>o(()=>import("./GetFileList-ClRPbksc.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,25,16,17,18,19,20,21,22,23,26,27,28,29,30]))),m=r(()=>o(()=>import("./ShowFileList-DoTSeEKx.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,27,28,29,32]))),p=r(()=>o(()=>import("./DownloadLinks-0QpbYdeQ.js"),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,34,25,26]))),s=r(()=>o(()=>import("./Aria2Dialog-BoClX_iS.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,34,16,17,18,19,20,21,22,23])));return(E,v)=>(c(),a("div",f,[t(i(_)),t(i(s)),t(i(e)),t(i(m)),t(i(p))]))}}),S=d(u,[["__scopeId","data-v-afbfa6b1"]]);export{S as default}; diff --git a/public/assets/js/UserView-DXrxeYoX.js.gz b/public/assets/js/UserView-DXrxeYoX.js.gz new file mode 100644 index 0000000..fe6579d Binary files /dev/null and b/public/assets/js/UserView-DXrxeYoX.js.gz differ diff --git a/public/assets/js/UserView-UH0eEj1Z.js.gz b/public/assets/js/UserView-UH0eEj1Z.js.gz deleted file mode 100644 index df51160..0000000 Binary files a/public/assets/js/UserView-UH0eEj1Z.js.gz and /dev/null differ diff --git a/public/assets/js/aria2Store-B37jzuFe.js b/public/assets/js/aria2Store-Eper8YQt.js similarity index 88% rename from public/assets/js/aria2Store-B37jzuFe.js rename to public/assets/js/aria2Store-Eper8YQt.js index 0ed135a..9734678 100644 --- a/public/assets/js/aria2Store-B37jzuFe.js +++ b/public/assets/js/aria2Store-Eper8YQt.js @@ -1 +1 @@ -import{k as e,m as s}from"./index-Aa74bd4N.js";import{d as t}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{E as f}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{r}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const c=t("aria2Store",()=>{const o=r(!1),i=r(e()),a=r(null);return{aria2ConfigDialogVisible:o,aria2ConfigForm:i,aria2ConfigFormRef:a,saveAria2Config:async()=>{!a.value||!await a.value.validate()||(s(i.value),f.success("保存成功"),o.value=!1)}}});export{c as u}; +import{k as e,m as s}from"./index-DYV93AZk.js";import{d as t}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{E as f}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{r}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const c=t("aria2Store",()=>{const o=r(!1),i=r(e()),a=r(null);return{aria2ConfigDialogVisible:o,aria2ConfigForm:i,aria2ConfigFormRef:a,saveAria2Config:async()=>{!a.value||!await a.value.validate()||(s(i.value),f.success("保存成功"),o.value=!1)}}});export{c as u}; diff --git a/public/assets/js/changeConfigForm-D7mlas_l.js b/public/assets/js/changeConfigForm-D___ED7J.js similarity index 80% rename from public/assets/js/changeConfigForm-D7mlas_l.js rename to public/assets/js/changeConfigForm-D___ED7J.js index 40f1623..75cb274 100644 --- a/public/assets/js/changeConfigForm-D7mlas_l.js +++ b/public/assets/js/changeConfigForm-D___ED7J.js @@ -1 +1 @@ -import{d as e}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import"./index-Aa74bd4N.js";import{r as o}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const a=e("changeConfigForm",()=>({changeConfigForm:o({version:"",front_end_version:"",sleep:0,max_once:0,password:"",announce:"",user_agent:"",need_inv_code:!1,whitelist_mode:!1,show_copyright:!1,custom_copyright:"",main_server:"",code:"",parse_mode:0,max_filesize:0,min_single_filesize:0,max_single_filesize:0,token_mode:!1,button_link:"",limit_cn:!1,limit_prov:!1,debug:!1,name:"",show_login_button:!1,token_bind_ip:!1,proxy_server:"",proxy_password:""})}));export{a as u}; +import"./index-DYV93AZk.js";import{d as e}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{r as o}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const a=e("changeConfigForm",()=>({changeConfigForm:o({version:"",front_end_version:"",sleep:0,max_once:0,password:"",announce:"",user_agent:"",need_inv_code:!1,whitelist_mode:!1,show_copyright:!1,custom_copyright:"",main_server:"",code:"",parse_mode:0,max_filesize:0,min_single_filesize:0,max_single_filesize:0,token_mode:!1,button_link:"",limit_cn:!1,limit_prov:!1,debug:!1,name:"",show_login_button:!1,token_bind_ip:!1,proxy_server:"",proxy_password:""})}));export{a as u}; diff --git a/public/assets/js/fileListStore-CafL_dKw.js b/public/assets/js/fileListStore-BL5xDhSX.js similarity index 98% rename from public/assets/js/fileListStore-CafL_dKw.js rename to public/assets/js/fileListStore-BL5xDhSX.js index 844aa60..6ebb94a 100644 --- a/public/assets/js/fileListStore-CafL_dKw.js +++ b/public/assets/js/fileListStore-BL5xDhSX.js @@ -1 +1 @@ -import{u as $,e as D,f as M,h as P,j}from"./index-Aa74bd4N.js";import{d as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{E as s}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{r}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const v=$(),A=E("fileListStore",()=>{const l=r(!1),a=r({surl:"",url:"",pwd:"",dir:"/",password:"",token:"",account_ids:""}),g=r(null),F=()=>{const i=a.value.dir.split("/");i.pop();const f=i.join("/");return f===""?"/":f},x=async()=>{if(!(!g.value||!await g.value.validate())){if(a.value.surl==="")return s.error("获取链接surl失败");try{u.value=[],l.value=!0;const i=await D(a.value);n.value=i.data,a.value.dir!=="/"&&n.value.list.unshift({category:-1,fs_id:0,isdir:1,local_ctime:0,local_mtime:0,server_ctime:0,server_mtime:0,size:0,md5:"",path:F(),server_filename:"..",dlink:""}),s.success("获取文件列表成功")}finally{l.value=!1}}},o=r({hit_captcha:!1,vcode_str:"",vcode_img:"",vcode_input:""}),n=r({uk:0,shareid:0,randsk:"",list:[]}),u=r([]),p=r([]),S=async(i,f=!1)=>{if(l.value){s.info("请勿重复点击~");return}const k=v.config.min_single_filesize,L=v.config.max_single_filesize;let c=[];if(i){const e=n.value.list.find(t=>t.fs_id===i);if(!e)s.error("获取文件信息失败");else if(e.sizeL){s.error("文件过大不会被解析!");return}c=[i]}else{let e=u.value.filter(t=>t.isdir!==1);e.length!==u.value.length&&s.error("文件夹不会被解析!"),e=e.filter(t=>t.size>k),e.length!==u.value.length&&s.error("文件过小不会被解析!"),e=e.filter(t=>t.sizet.fs_id)}if(c.length>v.config.max_once){s.error(`一次最多解析${v.config.max_once}个文件`);return}if(c.length===0){s.error("满足要求的文件数量为0");return}let d;try{l.value=!0;const e={uk:n.value.uk,shareid:n.value.shareid,randsk:n.value.randsk,fs_ids:c,password:a.value.password,token:a.value.token,url:a.value.url,surl:a.value.surl,dir:a.value.dir,pwd:a.value.pwd,account_ids:a.value.account_ids};if(o.value.hit_captcha){if(!o.value.vcode_str||!o.value.vcode_input){s.error("请先输入验证码");return}e.vcode_str=o.value.vcode_str,e.vcode_input=o.value.vcode_input}if(d=await M(e),d.data?s.success("解析成功"):(s.success("解析可能失败,请打开控制台查看是否存在报错"),console.log(d)),o.value={hit_captcha:!1,vcode_str:"",vcode_img:"",vcode_input:""},f)return l.value=!1,await _(),d.data.map(t=>({...t,index:0}));w.value=!0,p.value=d.data.map(t=>({...t,index:0}))}catch(e){const{code:t,message:y}=e;if(t&&y&&y.includes("验证码")){const z=await P({password:a.value.password});o.value={hit_captcha:!0,vcode_str:z.data.vcode,vcode_img:z.data.img,vcode_input:""}}}finally{l.value=!1,await _(),await v.getConfig(!1)}},h=r({group_name:"",count:0,size:0}),m=r(""),_=async()=>{try{l.value=!0;const i=await j({token:a.value.token});h.value=i.data,m.value=""}catch(i){m.value=i.message}finally{l.value=!1}},w=r(!1);return{pending:l,fileList:n,getFileList:x,getFileListForm:a,getFileListFormRef:g,selectedRows:u,downloadLinks:p,getDownloadLinks:S,limitForm:h,getLimit:_,limitMessage:m,vcode:o,dialogVisible:w}});export{A as u}; +import{u as $,e as D,f as M,h as P,j}from"./index-DYV93AZk.js";import{d as E}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{E as s}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{r}from"./@vue_reactivity@3.4.32-DksAu7zd.js";const v=$(),A=E("fileListStore",()=>{const l=r(!1),a=r({surl:"",url:"",pwd:"",dir:"/",password:"",token:"",account_ids:""}),g=r(null),F=()=>{const i=a.value.dir.split("/");i.pop();const f=i.join("/");return f===""?"/":f},x=async()=>{if(!(!g.value||!await g.value.validate())){if(a.value.surl==="")return s.error("获取链接surl失败");try{u.value=[],l.value=!0;const i=await D(a.value);n.value=i.data,a.value.dir!=="/"&&n.value.list.unshift({category:-1,fs_id:0,isdir:1,local_ctime:0,local_mtime:0,server_ctime:0,server_mtime:0,size:0,md5:"",path:F(),server_filename:"..",dlink:""}),s.success("获取文件列表成功")}finally{l.value=!1}}},o=r({hit_captcha:!1,vcode_str:"",vcode_img:"",vcode_input:""}),n=r({uk:0,shareid:0,randsk:"",list:[]}),u=r([]),p=r([]),S=async(i,f=!1)=>{if(l.value){s.info("请勿重复点击~");return}const k=v.config.min_single_filesize,L=v.config.max_single_filesize;let c=[];if(i){const e=n.value.list.find(t=>t.fs_id===i);if(!e)s.error("获取文件信息失败");else if(e.sizeL){s.error("文件过大不会被解析!");return}c=[i]}else{let e=u.value.filter(t=>t.isdir!==1);e.length!==u.value.length&&s.error("文件夹不会被解析!"),e=e.filter(t=>t.size>k),e.length!==u.value.length&&s.error("文件过小不会被解析!"),e=e.filter(t=>t.sizet.fs_id)}if(c.length>v.config.max_once){s.error(`一次最多解析${v.config.max_once}个文件`);return}if(c.length===0){s.error("满足要求的文件数量为0");return}let d;try{l.value=!0;const e={uk:n.value.uk,shareid:n.value.shareid,randsk:n.value.randsk,fs_ids:c,password:a.value.password,token:a.value.token,url:a.value.url,surl:a.value.surl,dir:a.value.dir,pwd:a.value.pwd,account_ids:a.value.account_ids};if(o.value.hit_captcha){if(!o.value.vcode_str||!o.value.vcode_input){s.error("请先输入验证码");return}e.vcode_str=o.value.vcode_str,e.vcode_input=o.value.vcode_input}if(d=await M(e),d.data?s.success("解析成功"):(s.success("解析可能失败,请打开控制台查看是否存在报错"),console.log(d)),o.value={hit_captcha:!1,vcode_str:"",vcode_img:"",vcode_input:""},f)return l.value=!1,await _(),d.data.map(t=>({...t,index:0}));w.value=!0,p.value=d.data.map(t=>({...t,index:0}))}catch(e){const{code:t,message:y}=e;if(t&&y&&y.includes("验证码")){const z=await P({password:a.value.password});o.value={hit_captcha:!0,vcode_str:z.data.vcode,vcode_img:z.data.img,vcode_input:""}}}finally{l.value=!1,await _(),await v.getConfig(!1)}},h=r({group_name:"",count:0,size:0}),m=r(""),_=async()=>{try{l.value=!0;const i=await j({token:a.value.token});h.value=i.data,m.value=""}catch(i){m.value=i.message}finally{l.value=!1}},w=r(!1);return{pending:l,fileList:n,getFileList:x,getFileListForm:a,getFileListFormRef:g,selectedRows:u,downloadLinks:p,getDownloadLinks:S,limitForm:h,getLimit:_,limitMessage:m,vcode:o,dialogVisible:w}});export{A as u}; diff --git a/public/assets/js/fileListStore-BL5xDhSX.js.gz b/public/assets/js/fileListStore-BL5xDhSX.js.gz new file mode 100644 index 0000000..64ab2da Binary files /dev/null and b/public/assets/js/fileListStore-BL5xDhSX.js.gz differ diff --git a/public/assets/js/fileListStore-CafL_dKw.js.gz b/public/assets/js/fileListStore-CafL_dKw.js.gz deleted file mode 100644 index 101a959..0000000 Binary files a/public/assets/js/fileListStore-CafL_dKw.js.gz and /dev/null differ diff --git a/public/assets/js/index-Aa74bd4N.js b/public/assets/js/index-Aa74bd4N.js deleted file mode 100644 index 3b152cf..0000000 --- a/public/assets/js/index-Aa74bd4N.js +++ /dev/null @@ -1,8 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/UserView-UH0eEj1Z.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/UserView-BUO1heXg.css","assets/js/LoginView-WLtifWxO.js","assets/js/favicon-BrYC5Vmz.js","assets/css/LoginView-kFAD-Fzo.css","assets/js/RegisterView-BmVjXkVn.js","assets/css/RegisterView-BnKfmdM9.css","assets/js/AdminView-DtS82LJ1.js","assets/js/InstallView-R7n33aaY.js","assets/css/InstallView-CRaRKPdy.css","assets/js/NotFoundView-D8J8xe3g.js","assets/css/NotFoundView-B8o8jygP.css"])))=>i.map(i=>d[i]); -import{E as p}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{d as w,c as S}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{e as b}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{a as A}from"./axios@1.7.2-B4uVmeYG.js";import{r as R,u as I}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{R as P,c as k,a as O}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as C,m as T,G as $,o as D}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const t of n)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function o(n){const t={};return n.integrity&&(t.integrity=n.integrity),n.referrerPolicy&&(t.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?t.credentials="include":n.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function s(n){if(n.ep)return;n.ep=!0;const t=o(n);fetch(n.href,t)}})();const V="modulepreload",x=function(e){return"/"+e},f={},u=function(r,o,s){let n=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),a=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));n=Promise.all(o.map(c=>{if(c=x(c),c in f)return;f[c]=!0;const d=c.endsWith(".css"),E=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${E}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":V,d||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),d)return new Promise((v,L)=>{l.addEventListener("load",v),l.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${c}`)))})}))}return n.then(()=>r()).catch(t=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=t,window.dispatchEvent(a),!a.defaultPrevented)throw t})},ie=()=>localStorage.getItem("login_state")??"0",g=e=>localStorage.setItem("login_state",e),ce=()=>localStorage.getItem("login_role")??"user",h=e=>localStorage.setItem("login_role",e),q=()=>localStorage.getItem("announce")??"",le=e=>localStorage.setItem("announce",e),me=async()=>(await u(async()=>{const{default:e}=await import("./package-CClirkjJ.js");return{default:e}},[])).default.version,M=()=>{var e;return((e=document.querySelector("meta[name='app_name']"))==null?void 0:e.getAttribute("content"))??"94list-laravel"},ue=()=>{const e=localStorage.getItem("aria2_config");return e?JSON.parse(e):{host:"http://localhost",port:6800,token:""}},pe=e=>localStorage.setItem("aria2_config",JSON.stringify(e)),i=A.create({baseURL:"/api",timeout:1/0,headers:{Accept:"application/json","Content-Type":"application/json"}});i.interceptors.response.use(e=>e.data,e=>{var o;const r=(o=e.response.data)==null?void 0:o.message;return r?r==="用户未登陆"?(p.error("登陆已过期, 请重新登陆!"),g("0"),setTimeout(()=>location.href="/login",1e3)):r==="Too Many Attempts."?p.error("请求量过大! 请等待10分钟后重试!"):r==="用户权限不足"?(p.error("用户权限不足, 请联系管理员!"),h("user"),setTimeout(()=>location.href="/user",1e3)):p.error(r):(p.error("服务器异常, 请稍后再试"),console.log(e)),Promise.reject(e.response.data)});const m=e=>typeof e=="string"?parseInt(e):e,N=()=>i.get("/parse/config"),de=async e=>{const r=await i.post("/parse/get_file_list",e);return r.data.list=r.data.list.map(o=>(o.category=m(o.category),o.fs_id=m(o.fs_id),o.isdir=m(o.isdir),o.local_ctime=m(o.local_ctime),o.local_mtime=m(o.local_mtime),o.server_ctime=m(o.local_mtime),o.server_mtime=m(o.local_mtime),o.size=m(o.size),o)),r},ge=e=>i.post("/parse/get_vcode",e),_e=e=>i.post("/parse/get_download_links",e),fe=e=>i.get(`/parse/limit?token=${e.token}`),he=e=>i.post("/user/login",e),ye=e=>i.post("/user/register",e),j=()=>i.delete("/user"),z=w("mainStore",()=>{const e=R({show_announce:!1,announce:"",debug:!1,max_once:0,have_account:!1,have_login:!1,need_inv_code:!1,need_password:!1,is_https:!1,show_copyright:!1,custom_copyright:"",min_single_filesize:0,max_single_filesize:0,token_mode:!1,button_link:"",show_login_button:!1});return{config:e,logout:async()=>{try{await j()}finally{g("0"),h("user"),location.reload(),p.success("退出登陆成功~")}},getConfig:async(s=!0)=>{const t=(await N()).data;t.announce=t.announce.replaceAll("[NextLine]","
"),t.announce===q()&&(t.show_announce=!1),s||(t.show_announce=!1),e.value={...t,is_https:document.location.protocol==="https:"},g(t.have_login?"1":"0")}}}),B=C({__name:"App",setup(e){const r=z();function o(){const s="0123456789ABCDEF";let n="#";for(let t=0;t<6;t++)n+=s[Math.floor(Math.random()*16)];return n}return T(async()=>{console.info(`%c - █████╗ ██╗ ██╗ ██╗ ██╗ ███████╗ ████████╗ ██╗ █████╗ ██████╗ █████╗ ██╗ ██╗ ███████╗ ██╗ -██╔══██╗ ██║ ██║ ██║ ██║ ██╔════╝ ╚══██╔══╝ ██║ ██╔══██╗ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔════╝ ██║ -╚██████║ ███████║ ██║ ██║ ███████╗ ██║ █████╗ ██║ ███████║ ██████╔╝ ███████║ ██║ ██║ █████╗ ██║ - ╚═══██║ ╚════██║ ██║ ██║ ╚════██║ ██║ ╚════╝ ██║ ██╔══██║ ██╔══██╗ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝ ██║ - █████╔╝ ██║ ███████╗ ██║ ███████║ ██║ ███████╗ ██║ ██║ ██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ ███████╗ - ╚════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ ╚══════╝ `,`font-family: courier; background: linear-gradient(to right, ${o()}, ${o()});-webkit-background-clip: text;color: transparent;`);const s=window.matchMedia("(prefers-color-scheme: dark)");n(s),s.addEventListener("change",n);function n(t){t.matches?document.querySelector("html").classList.add("dark"):document.querySelector("html").classList.remove("dark")}await r.getConfig()}),(s,n)=>(D(),$(I(P)))}}),y=k({history:O("/"),routes:[{path:"/",name:"index",redirect:"/user"},{path:"/user",name:"user",meta:{title:"前台解析中心"},component:()=>u(()=>import("./UserView-UH0eEj1Z.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))},{path:"/login",name:"login",meta:{title:"登陆"},component:()=>u(()=>import("./LoginView-WLtifWxO.js"),__vite__mapDeps([22,5,6,1,2,3,7,8,9,10,11,12,13,14,15,16,23,20,4,17,18,19,24]))},{path:"/register",name:"register",meta:{title:"注册"},component:()=>u(()=>import("./RegisterView-BmVjXkVn.js"),__vite__mapDeps([25,5,6,1,2,3,7,8,9,10,11,12,13,14,15,16,23,20,4,17,18,19,26]))},{path:"/admin",name:"admin",meta:{title:"后台控制中心"},component:()=>u(()=>import("./AdminView-DtS82LJ1.js"),__vite__mapDeps([27,5,6,1,2,3,7,8,9,10,11,12,13,14,15,16,20,17,18,19]))},{path:"/install",name:"install",meta:{title:"安装"},component:()=>u(()=>import("./InstallView-R7n33aaY.js"),__vite__mapDeps([28,5,6,1,2,3,7,8,9,10,11,12,13,14,15,16,23,20,4,17,18,19,29]))},{path:"/404",name:"404",meta:{title:"404页面不存在"},component:()=>u(()=>import("./NotFoundView-D8J8xe3g.js"),__vite__mapDeps([30,20,2,3,1,31]))},{path:"/:pathMatch(.*)",redirect:"/404"}]});y.beforeEach((e,r,o)=>{document.title=`${e.meta.title} | ${M()}`,o()});const _=b(B);_.use(S());_.use(y);_.mount("#app");export{u as _,M as a,h as b,ce as c,le as d,de as e,_e as f,ie as g,ge as h,i,fe as j,ue as k,he as l,pe as m,me as n,ye as r,g as s,z as u}; diff --git a/public/assets/js/index-Aa74bd4N.js.gz b/public/assets/js/index-Aa74bd4N.js.gz deleted file mode 100644 index b18e3b0..0000000 Binary files a/public/assets/js/index-Aa74bd4N.js.gz and /dev/null differ diff --git a/public/assets/js/index-DYV93AZk.js b/public/assets/js/index-DYV93AZk.js new file mode 100644 index 0000000..df80ed5 --- /dev/null +++ b/public/assets/js/index-DYV93AZk.js @@ -0,0 +1,8 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/UserView-DXrxeYoX.js","assets/js/@vue_runtime-core@3.4.32-BofAHbgu.js","assets/js/@vue_reactivity@3.4.32-DksAu7zd.js","assets/js/@vue_shared@3.4.32-CaCWPAm8.js","assets/js/_plugin-vue_export-helper-DlAUqK2U.js","assets/js/element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js","assets/js/@vue_runtime-dom@3.4.32-DNdjNMzo.js","assets/js/lodash-es@4.17.21-BB-zMWwC.js","assets/js/async-validator@4.2.5-DKvM95Vc.js","assets/js/@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js","assets/js/@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js","assets/js/dayjs@1.11.11-Ct2Knyoi.js","assets/js/@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js","assets/js/@ctrl_tinycolor@3.6.1-r5W6hzzQ.js","assets/js/@sxzz_popperjs-es@2.11.7-D9SI2xQl.js","assets/js/normalize-wheel-es@1.2.0-B6fDCfyv.js","assets/css/element-plus@2.7.7_vue@3.4.32_typescript@5.5-YF1DmkJl.css","assets/js/pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js","assets/js/vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js","assets/js/axios@1.7.2-B4uVmeYG.js","assets/js/@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js","assets/js/tslib@2.6.3-CPxunF3b.js","assets/js/vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js","assets/css/UserView-BUO1heXg.css","assets/js/LoginView-BoL3i2YX.js","assets/js/favicon-BrYC5Vmz.js","assets/css/LoginView-kFAD-Fzo.css","assets/js/RegisterView-BB1Y1TFY.js","assets/css/RegisterView-BnKfmdM9.css","assets/js/AdminView-ClWDJ0yp.js","assets/js/InstallView-1zGjJR37.js","assets/css/InstallView-CRaRKPdy.css","assets/js/NotFoundView-D8J8xe3g.js","assets/css/NotFoundView-B8o8jygP.css"])))=>i.map(i=>d[i]); +import{E as w}from"./element-plus@2.7.7_vue@3.4.32_typescript@5.5.3_-4orX1JGZ.js";import{d as K,c as M}from"./pinia@2.1.7_typescript@5.5.3_vue@3.4.32_typescript@5.5.3_-BSzeUtha.js";import{e as B}from"./@vue_runtime-dom@3.4.32-DNdjNMzo.js";import{a as U}from"./axios@1.7.2-B4uVmeYG.js";import{i as F}from"./@fingerprintjs_fingerprintjs@4.5.1-5RNCfJbQ.js";import{r as z,u as X}from"./@vue_reactivity@3.4.32-DksAu7zd.js";import{R as Y,c as $,a as tt}from"./vue-router@4.4.0_vue@3.4.32_typescript@5.5.3_-ByijA4Eg.js";import{d as et,m as nt,G as ot,o as rt}from"./@vue_runtime-core@3.4.32-BofAHbgu.js";import"./@vue_shared@3.4.32-CaCWPAm8.js";import"./lodash-es@4.17.21-BB-zMWwC.js";import"./async-validator@4.2.5-DKvM95Vc.js";import"./@vueuse_core@9.13.0_vue@3.4.32_typescript@5.5.3_-DkVRVfGD.js";import"./@vueuse_shared@9.13.0_vue@3.4.32_typescript@5.5.3_-BbpdFR9m.js";import"./dayjs@1.11.11-Ct2Knyoi.js";import"./@element-plus_icons-vue@2.3.1_vue@3.4.32_typescript@5.5.3_-x2o2c_8n.js";import"./@ctrl_tinycolor@3.6.1-r5W6hzzQ.js";import"./@sxzz_popperjs-es@2.11.7-D9SI2xQl.js";import"./normalize-wheel-es@1.2.0-B6fDCfyv.js";import"./vue-demi@0.14.8_vue@3.4.32_typescript@5.5.3_-Dq6ymT-8.js";import"./tslib@2.6.3-CPxunF3b.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))x(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const d of a.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&x(d)}).observe(document,{childList:!0,subtree:!0});function c(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function x(i){if(i.ep)return;i.ep=!0;const a=c(i);fetch(i.href,a)}})();const ct="modulepreload",at=function(e){return"/"+e},J={},O=function(o,c,x){let i=Promise.resolve();if(c&&c.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),d=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.all(c.map(W=>{if(W=at(W),W in J)return;J[W]=!0;const f=W.endsWith(".css"),g=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${W}"]${g}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":ct,f||(p.as="script",p.crossOrigin=""),p.href=W,d&&p.setAttribute("nonce",d),document.head.appendChild(p),f)return new Promise((k,S)=>{p.addEventListener("load",k),p.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${W}`)))})}))}return i.then(()=>o()).catch(a=>{const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=a,window.dispatchEvent(d),!d.defaultPrevented)throw a})},Vt=()=>localStorage.getItem("login_state")??"0",G=e=>localStorage.setItem("login_state",e),Tt=()=>localStorage.getItem("login_role")??"user",D=e=>localStorage.setItem("login_role",e),st=()=>localStorage.getItem("announce")??"",Ht=e=>localStorage.setItem("announce",e),Jt=async()=>(await O(async()=>{const{default:e}=await import("./package-DAW1B3SR.js");return{default:e}},[])).default.version,it=()=>{var e;return((e=document.querySelector("meta[name='app_name']"))==null?void 0:e.getAttribute("content"))??"94list-laravel"},Qt=()=>{const e=localStorage.getItem("aria2_config");return e?JSON.parse(e):{host:"http://localhost",port:6800,token:""}},Dt=e=>localStorage.setItem("aria2_config",JSON.stringify(e));var A="jsjiami.com.v7";(function(e,o,c,x,i,a,d){return e=e>>3,a="hs",d="hs",function(W,f,g,p,k){const S=y;p="tfi",a=p+a,k="up",d+=k,a=g(a),d=g(d),g=0;const h=W();for(;--x+f;)try{p=parseInt(S(559,"IN2u"))/1*(-parseInt(S(486,"P@]0"))/2)+-parseInt(S(660,"4AXM"))/3+parseInt(S(520,"&8I7"))/4*(-parseInt(S(495,"vcVs"))/5)+parseInt(S(592,"$0L9"))/6*(-parseInt(S(671,"4nGV"))/7)+-parseInt(S(554,"P@]0"))/8+-parseInt(S(584,"s0Ko"))/9+parseInt(S(609,"ajky"))/10}catch{p=g}finally{if(k=h[a](),e<=x)g?i?p=k:i=k:g=k;else if(g==i.replace(/[tNIhJCPdTHBkOMqfgu=]/g,"")){if(p===f){h["un"+a](k);break}h[d](k)}}}(c,o,function(W,f,g,p,k,S,h){return f="split",W=arguments[0],W=W[f](""),g="reverse",W=W[g]("v"),p="join",W[p]("")})})(1640,359805,j,207),j&&(A=11477);const ut=function(){const e=y,o={XfTUk:function(x,i){return x===i},dJKMM:e(630,"mlNb")};let c=!0;return function(x,i){const a=e;if(o[a(590,"G]5v")](o[a(522,"#oNb")],o[a(595,"kucq")])){const d=c?function(){const W=a;if(i){const f=i[W(540,"mlNb")](x,arguments);return i=null,f}}:function(){};return c=!1,d}else return c}}(),N=ut(void 0,function(){const e=y,o={fJGoe:e(652,"4AXM")};return N[e(581,"ye]d")]()[e(512,"VW2O")](o[e(528,"[NzE")])[e(569,"[6FQ")]()[e(647,"D5dT")](N)[e(507,"pn#(")](o[e(637,"Hp8D")])});function j(){const e=function(){return[A,"ufjNsHHjhOitaMmCiJT.dOcCIoTm.gBv7kuPBqIB==","dCkYAupdTmoMWPRcSSkcW4VcJN4NW5tcQ8k5","jX/dVCkPWPa","W5pdPKfRW6a","gZVdShhdHq","W7BdNMRdOmo6WPW","W5BdHLrjW7a","WP4MW4af","W6ZdLCoJW5Kg","W7dcMNJdGmkldmofd8kej8ou","AdmAlei","yJ48aKy","nGDqwmkizmksjq","D14gpmopnmosb8oOmvjuW4a","W7xdOxddL8oz","W5BdV1zIW6O7","W73dL8o6W5Sl","WPRcJCkUDXC","WOBcRWa2WQ0GWR/cUrfHdG","xx/dOfVcL8khlSkAW78","wCoQe0lcVq","W4ZcP0JcM8kr","W5hcH1BdK8kv","WPlcPZtdQ8kX","W514sKq","DqSSWRu","W44fm249","W7JcJv3cV8k5WR7dLXWV","WPGTW5VdUHJcJCkqWRu","WP8NW7ZdHWtcKmkBWQddTxTc","W7PYuLnN","cSk3D0ZdUq","W6K5n2Su","WQyTW6xdVsa","W4tdV0jUW60GWQxcLay","W7RcIttcN8kR","W53dTfTIW7O7","uc/dJ3i","nmkkphbM","WR3cQmkxDbW","W6LUW6O1W7S7WPBcMa","W78MWRbIW6C","pY1bqmkD","juvmurunjKbsW4GyW7dcOa","ACoFW5ddPuBcUSk+W6GL","W5xdPMrxW5W","iYj2x8kn","ESoAW5eZW67dULpdLtC","WOLfWPzzz8kdvGG","W6dcMSovW7NdIG","d8kMC0e","W6pdVHZdJMbCW6q","W5/cOrugmq","gCkWyKtdLq","WPLGWO5Gwa","W6VcVeBcK8kx","xehcLrC8","dCkebuTzWPtcNq0","WQZcGCkMqH8","WR7cSCkjFa","W4RdQ2pdLmoj","imodWOfVW64","W6GEWRDXW4i","aK7cK8kmzG","WO0MW4C","WRlcS8kTFHy","dLJcQ8k5rq"].concat(function(){return["W4KGbe0P","kmksWPBcTr3dQmoHWR4gyLFdV8k6Dq","nHldV8kKWQFdLW","W5ZcNCo1W40","WRXfcZim","W7xcSM5yWQK","qY/dIx0","W5LWv0LwWQFcTSo6kG","dSk1Du/dSG","WQRcSCkuCrhdMJJdHCkM","WQJcKmkStWq","cZ95tSkB","WPBdVGW/W7C","WQWIW5K5DW","x8ogW6CPW7G","W5VcK8oVW5/dLxK9WQ4fW5aj","W48zh3mM","W4/cRmo0k8kJWQS","W5yQW5fWDW","m8kbW60pgG","cCkYf2vr","WRhdLsu9W6e","cqddO8kZWOq","W7hcIuxdNGm","afXqb3y","WOLpnd0u","W5mZghqd","oIZdINddHXG","sh7dPgC","W6m/WPL3W7i","W7vZW5SDW7S","WRtcJCkI","W7/dOwFdRCo0","W7HVW5OUW603","wCkEdSosFG","e0tcRmk1","tSobW7FdI2q","W78EWRX6W7y","bWJdR2tdIq","W6zZW588W51oW51veKmm","nLjWW6BdOmo6WQfzWRldMZi9WPC","W6mmW69yxa","dxpcPmkkyq","WR7dGhpdUmoyWOX3E27cGuldQCo1","W5JdQt3dTtajFmoQqgSqua","W6FcMe3cOZyRW4ddJSkBW67cLmkK","eSoDWPLaW4q","WRRcRCkjEXhdNcxdOG","W6ZdM8o0eetdULlcSsFcR8oo","Ce/cLJe","nhpcNSkdtq","WRhcHaxdJ8kC","W4ldSsBdRcGzgmkKlWr0da","tCozW5tdUK8","xCkwma","hf/cPmk5vmoGWPpcIq","WOiuW4yZra","W7BcHCoaW7JdJa","pcddIwe","dK/cUCkU","x8kvkSohxH4","WPdcSCkrCsO","qchdQgFcQ3/dICoa","yxFcLYFcNvNdVbpcRmkLxmkuxa","WQeEsfHPBCo7","W5JcQmoY","cCkUAuq","WOpcOhNcR1i"].concat(function(){return["WOBdLcOoW6ddQsvlWQq","W6ifWOTiW5i","WR8kW4NcO1S","W6WBWQ5TW6m","W7i6W693FmoBWQpdLva","lCkrgvXk","W7hcLf7dImkq","WRRdSGRdHfi","WRfXkrK3","DfjSuSkZu8kJfq","W4HPCxbN","WO/cRmkTwGm","ibnAAmkiBmkppW","DCo/W64YW5G","WOZdRJFdUM8","W6RcO0xdTtq","W7ddK2RdO8oE","WP5cWQreEW","WORdUr01W7CJxSkCWPJcGHtcJG","WOFcRGuZWQf4W6FcLtP6mKH7","lWr1ACk4","WONdSHS1W7eMgSoRWPVcIZVcQCkFW7G","W6JdQtiprq","rSkaW77cPWJdT8o/WRfMu1FcKmkHv8kyD1NcUJ0yWOxcI8oaWO5ek8kOemohcXxcP8oxfq","D8ofeee","W5JdK3LeW7q","WRBdVW0NW6i","WOeNW7ZdPGxcGa","W6pcNq4CdG","W6ddKsWFtW","W603e0KTcW","ze7dH1/cTa","WR52dWy0","WP4RfHKrW7JcTSo0fY7cJWm","WPylAuHN","WQVcH8kKuXpdVq","eSoYWQzxW5a","WRVdS8oXW68AWRnh","g8ksW4qskq","cCkkjf5gWO4","oCkfW6a7W5tdLMFdRW","W43cKSoLW4NdH2iMWQGv","imksW44afW","tmoDff5LWR7cTrK","vSkfl8op","yYajWPZcNG","W6pdNvXpW7e","WOZcMcRdSmkU","WQddJGqPW6a","W7hcPbC6jW","WRFdNh/dQYKqbs4","dCknqe/dPq","W4hdO1nZW7uQ","wchdMNC","WQLqWOPoDa","amkGz3BdQG","W6dcKetdLXyYlWxdVG","g8oJWRLqW4i","W5FcRKfRWRb7","WRZcG8kXqa","W6hdJI4Cw8og","W4X2sLnnWQtcOq","WQxdIqZdTwHH","jWpdVCkPWRm","WQCSW6FdHJS"]}())}())}();return j=function(){return e},j()}function y(e,o){const c=j();return y=function(x,i){x=x-482;let a=c[x];if(y.zoFcOP===void 0){var d=function(k){const S="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";let h="",P="",b=h+d;for(let L=0,R,_,H=0;_=k.charAt(H++);~_&&(R=L%4?R*64+_:_,L++%4)?h+=b.charCodeAt(H+10)-10!==0?String.fromCharCode(255&R>>(-2*L&6)):L:0)_=S.indexOf(_);for(let L=0,R=h.length;Lf[o(589,"kucq")](16)[o(553,"P@]0")](2,"0"))[o(657,"]J6B")]("")}(function(){const e=y,o={xdYVF:function(x,i){return x!==i},KnoHQ:e(676,"bTS*"),zSnzp:function(x,i){return x===i},oZtPW:e(635,"4nGV"),ibAbD:function(x,i){return x===i},yLLhB:e(663,"WDHf")};(o[e(604,"WDHf")](typeof window,o[e(541,"[6FQ")])?window:o[e(499,"pZu%")](typeof process,o[e(555,"pYIT")])&&o[e(497,"P@]0")](typeof require,o[e(490,"lE!E")])&&o[e(582,"Hp8D")](typeof global,o[e(484,"$0L9")])?global:this)[e(550,"A!fu")](V,2e3)})();function V(e){const o=y,c={gpUPE:function(i,a){return i!==a},jhndP:o(518,"G]5v"),TzOca:function(i,a){return i===a},MYMEg:o(668,"8kj^"),yKuKa:o(489,"P@]0"),MajOM:o(606,"wLT["),jnYIU:function(i,a){return i===a},tQGRJ:o(537,"pZu%"),PWAUs:function(i){return i()},wkEPZ:function(i,a){return i+a},NuPda:function(i,a){return i/a},wYnPA:o(546,"pYIT"),EECLd:function(i,a){return i%a},StJBf:function(i,a){return i(a)}};function x(i){const a=o;if(c[a(524,"BZ[y")](typeof i,c[a(564,"BZ[y")])){const d=function(){const W=a,f={UkvsE:function(g,p){return c[y(586,"IN2u")](g,p)},pppUJ:c[W(493,"pYIT")],PPgSG:function(g,p){return c[W(633,"5@oq")](g,p)},pYAZz:c[W(619,"P@]0")],xNbIo:function(g,p){return c[W(482,"&8I7")](g,p)},lDRGB:c[W(583,"P@]0")],hWuBD:function(g,p){return c[W(531,"kucq")](g,p)}};if(c[W(487,"jgxW")](c[W(579,"&8I7")],c[W(634,"pn#(")])){const g=f[W(571,"jgxW")](typeof g,f[W(576,"VB$$")])?q:f[W(601,"pYIT")](typeof r,f[W(628,"&8I7")])&&f[W(551,"s0Ko")](typeof s,f[W(485,"5@oq")])&&f[W(664,"L#rd")](typeof t,f[W(599,"wLT[")])?u:this;g[W(570,"[6FQ")](v,2e3)}};return c[a(567,"pn#(")](d)}else if(c[a(677,"Hp8D")](c[a(573,"pn#(")]("",c[a(545,"4nGV")](i,i))[c[a(650,"WDHf")]],1)||c[a(511,"^xAo")](c[a(503,"bTS*")](i,20),0))debugger;else debugger;c[a(488,"wLT[")](x,++i)}try{if(e)return x;c[o(525,"bTS*")](x,0)}catch{}}const C=U.create({baseURL:"/api",timeout:1/0,headers:{Accept:"application/json","Content-Type":"application/json"}});C.interceptors.request.use(e=>{if(e.data||(e.data={}),e.params||(e.params={}),e.url){const o=new URLSearchParams(e.url.split("?")[1]);e.params={...e.params,...Object.fromEntries(o)}}return dt(e)});C.interceptors.response.use(e=>e.data,e=>{var c;const o=(c=e.response.data)==null?void 0:c.message;return o?o==="用户未登陆"?(w.error("登陆已过期, 请重新登陆!"),G("0"),setTimeout(()=>location.href="/login",1e3)):o==="Too Many Attempts."?w.error("请求量过大! 请等待10分钟后重试!"):o==="用户权限不足"?(w.error("用户权限不足, 请联系管理员!"),D("user"),setTimeout(()=>location.href="/user",1e3)):w.error(o):(w.error("服务器异常, 请稍后再试"),console.log(e)),Promise.reject(e.response.data)});const I=e=>typeof e=="string"?parseInt(e):e,ft=()=>C.get("/parse/config"),At=async e=>{const o=await C.post("/parse/get_file_list",e);return o.data.list=o.data.list.map(c=>(c.category=I(c.category),c.fs_id=I(c.fs_id),c.isdir=I(c.isdir),c.local_ctime=I(c.local_ctime),c.local_mtime=I(c.local_mtime),c.server_ctime=I(c.local_mtime),c.server_mtime=I(c.local_mtime),c.size=I(c.size),c)),o},Zt=e=>C.post("/parse/get_vcode",e),Kt=e=>C.post("/parse/get_download_links",e),Mt=e=>C.get(`/parse/limit?token=${e.token}`),Bt=e=>C.post("/user/login",e),Ut=e=>C.post("/user/register",e),lt=()=>C.delete("/user"),mt=K("mainStore",()=>{const e=z({show_announce:!1,announce:"",debug:!1,max_once:0,have_account:!1,have_login:!1,need_inv_code:!1,need_password:!1,is_https:!1,show_copyright:!1,custom_copyright:"",min_single_filesize:0,max_single_filesize:0,token_mode:!1,button_link:"",show_login_button:!1});return{config:e,logout:async()=>{try{await lt()}finally{G("0"),D("user"),location.reload(),w.success("退出登陆成功~")}},getConfig:async(x=!0)=>{const a=(await ft()).data;a.announce=a.announce.replaceAll("[NextLine]","
"),a.announce===st()&&(a.show_announce=!1),x||(a.show_announce=!1),e.value={...a,is_https:document.location.protocol==="https:"},G(a.have_login?"1":"0")}}}),pt=et({__name:"App",setup(e){const o=mt();function c(){const x="0123456789ABCDEF";let i="#";for(let a=0;a<6;a++)i+=x[Math.floor(Math.random()*16)];return i}return nt(async()=>{console.info(`%c + █████╗ ██╗ ██╗ ██╗ ██╗ ███████╗ ████████╗ ██╗ █████╗ ██████╗ █████╗ ██╗ ██╗ ███████╗ ██╗ +██╔══██╗ ██║ ██║ ██║ ██║ ██╔════╝ ╚══██╔══╝ ██║ ██╔══██╗ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔════╝ ██║ +╚██████║ ███████║ ██║ ██║ ███████╗ ██║ █████╗ ██║ ███████║ ██████╔╝ ███████║ ██║ ██║ █████╗ ██║ + ╚═══██║ ╚════██║ ██║ ██║ ╚════██║ ██║ ╚════╝ ██║ ██╔══██║ ██╔══██╗ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝ ██║ + █████╔╝ ██║ ███████╗ ██║ ███████║ ██║ ███████╗ ██║ ██║ ██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ ███████╗ + ╚════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ ╚══════╝ `,`font-family: courier; background: linear-gradient(to right, ${c()}, ${c()});-webkit-background-clip: text;color: transparent;`);const x=window.matchMedia("(prefers-color-scheme: dark)");i(x),x.addEventListener("change",i);function i(a){a.matches?document.querySelector("html").classList.add("dark"):document.querySelector("html").classList.remove("dark")}await o.getConfig()}),(x,i)=>(rt(),ot(X(Y)))}}),Z=$({history:tt("/"),routes:[{path:"/",name:"index",redirect:"/user"},{path:"/user",name:"user",meta:{title:"前台解析中心"},component:()=>O(()=>import("./UserView-DXrxeYoX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))},{path:"/login",name:"login",meta:{title:"登陆"},component:()=>O(()=>import("./LoginView-BoL3i2YX.js"),__vite__mapDeps([24,5,6,1,2,3,7,8,9,10,11,12,13,14,15,16,25,22,4,17,18,19,20,21,26]))},{path:"/register",name:"register",meta:{title:"注册"},component:()=>O(()=>import("./RegisterView-BB1Y1TFY.js"),__vite__mapDeps([27,5,6,1,2,3,7,8,9,10,11,12,13,14,15,16,25,22,4,17,18,19,20,21,28]))},{path:"/admin",name:"admin",meta:{title:"后台控制中心"},component:()=>O(()=>import("./AdminView-ClWDJ0yp.js"),__vite__mapDeps([29,5,6,1,2,3,7,8,9,10,11,12,13,14,15,16,22,17,18,19,20,21]))},{path:"/install",name:"install",meta:{title:"安装"},component:()=>O(()=>import("./InstallView-1zGjJR37.js"),__vite__mapDeps([30,5,6,1,2,3,7,8,9,10,11,12,13,14,15,16,25,22,4,17,18,19,20,21,31]))},{path:"/404",name:"404",meta:{title:"404页面不存在"},component:()=>O(()=>import("./NotFoundView-D8J8xe3g.js"),__vite__mapDeps([32,22,2,3,1,33]))},{path:"/:pathMatch(.*)",redirect:"/404"}]});Z.beforeEach((e,o,c)=>{document.title=`${e.meta.title} | ${it()}`,c()});const T=B(pt);T.use(M());T.use(Z);T.mount("#app");export{O as _,it as a,D as b,Tt as c,Ht as d,At as e,Kt as f,Vt as g,Zt as h,C as i,Mt as j,Qt as k,Bt as l,Dt as m,Jt as n,Ut as r,G as s,mt as u}; diff --git a/public/assets/js/index-DYV93AZk.js.gz b/public/assets/js/index-DYV93AZk.js.gz new file mode 100644 index 0000000..983b662 Binary files /dev/null and b/public/assets/js/index-DYV93AZk.js.gz differ diff --git a/public/assets/js/package-CClirkjJ.js b/public/assets/js/package-CClirkjJ.js deleted file mode 100644 index e8fa8b8..0000000 --- a/public/assets/js/package-CClirkjJ.js +++ /dev/null @@ -1 +0,0 @@ -const e="94list-frontend",s="1.3.23",t="module",i={dev:"vite",build:"pnpm type-check & pnpm build-only","remove-css":"tsx ./scripts/remove-css.js","revoer-css":"tsx ./scripts/recover-css.js",preview:"vite preview","build-only":"vite build","type-check":"vue-tsc --build --force",lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",format:"prettier --write src/"},n={axios:"^1.7.2","element-plus":"2.7.7",pinia:"^2.1.7",vue:"^3.4.32","vue-demi":"^0.14.8","vue-router":"^4.4.0"},p={"@rushstack/eslint-patch":"^1.10.3","@tsconfig/node20":"^20.1.4","@types/node":"^20.14.11","@vitejs/plugin-vue":"^5.0.5","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^13.0.0","@vue/tsconfig":"^0.5.1","async-validator":"^4.2.5",eslint:"^8.57.0","eslint-plugin-vue":"^9.27.0","npm-run-all2":"^6.2.2",prettier:"^3.3.3","rollup-plugin-visualizer":"^5.12.0",sass:"^1.77.8",tsx:"^4.16.2",typescript:"~5.5.3","unplugin-auto-import":"^0.18.0","unplugin-vue-components":"^0.27.3",vite:"^5.3.4","vite-plugin-cdn-import":"^1.0.1","vite-plugin-compression":"^0.5.1","vue-tsc":"^2.0.26"},c={name:e,version:s,type:t,scripts:i,dependencies:n,devDependencies:p};export{c as default,n as dependencies,p as devDependencies,e as name,i as scripts,t as type,s as version}; diff --git a/public/assets/js/package-CClirkjJ.js.gz b/public/assets/js/package-CClirkjJ.js.gz deleted file mode 100644 index 06cb491..0000000 Binary files a/public/assets/js/package-CClirkjJ.js.gz and /dev/null differ diff --git a/public/assets/js/package-DAW1B3SR.js b/public/assets/js/package-DAW1B3SR.js new file mode 100644 index 0000000..e2fcf97 --- /dev/null +++ b/public/assets/js/package-DAW1B3SR.js @@ -0,0 +1 @@ +const e="94list-frontend",s="1.3.23",t="module",i={dev:"vite",build:"pnpm type-check & pnpm build-only","remove-css":"tsx ./scripts/remove-css.js","revoer-css":"tsx ./scripts/recover-css.js",preview:"vite preview","build-only":"vite build","type-check":"vue-tsc --build --force",lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",format:"prettier --write src/"},n={"@fingerprintjs/fingerprintjs":"^4.5.1",axios:"^1.7.2","element-plus":"2.7.7",pinia:"^2.1.7",vue:"^3.4.32","vue-demi":"^0.14.8","vue-router":"^4.4.0"},p={"@rushstack/eslint-patch":"^1.10.3","@tsconfig/node20":"^20.1.4","@types/node":"^20.14.11","@vitejs/plugin-vue":"^5.0.5","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^13.0.0","@vue/tsconfig":"^0.5.1","async-validator":"^4.2.5",eslint:"^8.57.0","eslint-plugin-vue":"^9.27.0","npm-run-all2":"^6.2.2",prettier:"^3.3.3","rollup-plugin-visualizer":"^5.12.0",sass:"^1.77.8",tsx:"^4.16.2",typescript:"~5.5.3","unplugin-auto-import":"^0.18.0","unplugin-vue-components":"^0.27.3",vite:"^5.3.4","vite-plugin-cdn-import":"^1.0.1","vite-plugin-compression":"^0.5.1","vue-tsc":"^2.0.26"},r={name:e,version:s,type:t,scripts:i,dependencies:n,devDependencies:p};export{r as default,n as dependencies,p as devDependencies,e as name,i as scripts,t as type,s as version}; diff --git a/public/assets/js/package-DAW1B3SR.js.gz b/public/assets/js/package-DAW1B3SR.js.gz new file mode 100644 index 0000000..7d651e9 Binary files /dev/null and b/public/assets/js/package-DAW1B3SR.js.gz differ diff --git a/public/assets/js/tslib@2.6.3-CPxunF3b.js b/public/assets/js/tslib@2.6.3-CPxunF3b.js new file mode 100644 index 0000000..b14d311 --- /dev/null +++ b/public/assets/js/tslib@2.6.3-CPxunF3b.js @@ -0,0 +1 @@ +var y=function(){return y=Object.assign||function(u){for(var r,t=1,a=arguments.length;t0&&e[e.length-1])&&(n[0]===6||n[0]===2)){r=0;continue}if(n[0]===3&&(!e||n[1]>e[0]&&n[1] 94list-laravel - + @@ -24,6 +24,8 @@ + + diff --git a/public/index.html.gz b/public/index.html.gz index 60b6e78..ccc2025 100644 Binary files a/public/index.html.gz and b/public/index.html.gz differ diff --git a/routes/api.php b/routes/api.php index 9a38eaf..3cff703 100644 --- a/routes/api.php +++ b/routes/api.php @@ -14,8 +14,8 @@ use Illuminate\Support\Facades\Route; Route::post("/install", [InstallController::class, "install"]); - -Route::middleware(["NeedInstall", "AutoUpdate"])->group(function () { +//"ParamCheck" +Route::middleware(["NeedInstall", "AutoUpdate", ])->group(function () { Route::prefix("/parse")->middleware("IpFilter")->group(function () { Route::get("/config", [ParseController::class, "getConfig"]); Route::get("/limit", [ParseController::class, "checkLimit"]); diff --git a/vendor.zip b/vendor.zip index c13b582..5696631 100644 Binary files a/vendor.zip and b/vendor.zip differ