mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-26 19:34:49 +02:00
Update to v8.4.0
This commit is contained in:
+356
-86
@@ -6,8 +6,9 @@
|
||||
# +-------------------------------------------------------------------
|
||||
# | Author: hwliang <hwl@aapanel.com>
|
||||
# +---
|
||||
|
||||
from public import print_log
|
||||
from public.hook_import import hook_import
|
||||
|
||||
hook_import()
|
||||
|
||||
# from .app import *
|
||||
@@ -52,6 +53,67 @@ app = Flask(
|
||||
__name__,
|
||||
template_folder="templates/{}".format(public.GetConfigValue('template'))
|
||||
)
|
||||
|
||||
# 匹配你的 URL 格式:/apsess_xxx/...
|
||||
APSESS_PATH_RE = re.compile(r"^/((?:apsess_)+[A-Za-z0-9]{16,32})(/.*|$)")
|
||||
INVALID_REQUEST_TOKEN_HEAD = '__APSESS_INVALID__'
|
||||
|
||||
|
||||
def build_apsess_url_token(token):
|
||||
token = (token or '').strip()
|
||||
if not token:
|
||||
return ''
|
||||
while token.startswith('apsess_apsess_'):
|
||||
token = token[len('apsess_'):]
|
||||
if token.startswith('apsess_'):
|
||||
return token
|
||||
return 'apsess_' + token
|
||||
|
||||
|
||||
def build_apsess_session_token():
|
||||
return public.GetRandomString(32)
|
||||
|
||||
|
||||
def get_apsess_url_token_from_session():
|
||||
return build_apsess_url_token(session.get('apsess_token', ''))
|
||||
|
||||
|
||||
class ApsessPathMiddleware:
|
||||
def __init__(self, app):
|
||||
self.app = app
|
||||
|
||||
def __call__(self, environ, start_response):
|
||||
# 修复宝塔获取IP为空的BUG
|
||||
if 'REMOTE_ADDR' not in environ:
|
||||
environ['REMOTE_ADDR'] = '127.0.0.1'
|
||||
|
||||
path = environ.get('PATH_INFO', '')
|
||||
match = APSESS_PATH_RE.match(path)
|
||||
|
||||
# 没有匹配到token
|
||||
if not match:
|
||||
environ.setdefault('bt.apsess_token', '')
|
||||
return self.app(environ, start_response)
|
||||
|
||||
# 提取token
|
||||
apsess_token = build_apsess_url_token(match.group(1))
|
||||
real_path = match.group(2) or '/'
|
||||
if not real_path.startswith('/'):
|
||||
real_path = '/' + real_path
|
||||
|
||||
environ['bt.apsess_token'] = apsess_token
|
||||
environ['PATH_INFO'] = real_path
|
||||
|
||||
return self.app(environ, start_response)
|
||||
|
||||
|
||||
def wrap_apsess_middleware(flask_app):
|
||||
if getattr(flask_app, '_apsess_middleware_wrapped', False):
|
||||
return
|
||||
flask_app.wsgi_app = ApsessPathMiddleware(flask_app.wsgi_app)
|
||||
flask_app._apsess_middleware_wrapped = True
|
||||
|
||||
|
||||
Compress(app)
|
||||
try:
|
||||
from flask_sock import Sock
|
||||
@@ -101,8 +163,8 @@ if app.config['SSL']:
|
||||
app.config['SESSION_COOKIE_SAMESITE'] = 'Lax'
|
||||
app.config['SESSION_COOKIE_SECURE'] = True
|
||||
|
||||
|
||||
Session(app)
|
||||
wrap_apsess_middleware(app)
|
||||
|
||||
import common
|
||||
|
||||
@@ -180,21 +242,25 @@ route_v2 = '/v2' # v2版本路由前缀
|
||||
|
||||
# load translations
|
||||
from public.translations import load_translations
|
||||
|
||||
load_translations()
|
||||
# 登录页语言包
|
||||
from public.translations import load_login_translations
|
||||
|
||||
load_login_translations()
|
||||
|
||||
# ========================== Ignore Zipfile Encode Error ==============
|
||||
# hook zipfile.ZipInfo._encodeFilenameFlags, ignore the encode error
|
||||
_oldEncodeFilenameFlags = zipfile.ZipInfo._encodeFilenameFlags
|
||||
|
||||
|
||||
def _newEncodeFilenameFlags(self):
|
||||
try:
|
||||
return _oldEncodeFilenameFlags(self)
|
||||
except:
|
||||
return self.filename.encode('utf-8', 'ignore'), self.flag_bits | zipfile._MASK_UTF_FILENAME
|
||||
|
||||
|
||||
zipfile.ZipInfo._encodeFilenameFlags = _newEncodeFilenameFlags
|
||||
|
||||
# ========================== Ignore Error End =========================
|
||||
@@ -202,27 +268,27 @@ zipfile.ZipInfo._encodeFilenameFlags = _newEncodeFilenameFlags
|
||||
|
||||
# ========================== Init Menu Path Map =======================
|
||||
menu_map = {
|
||||
'memua': '/', # Home
|
||||
'memuasite': '/site', # Website
|
||||
'memuawptoolkit': '/wp/toolkit', # WP Toolkit
|
||||
'memuaftp': '/ftp', # FTP
|
||||
'memuadatabase': '/database', # Databases
|
||||
'memudocker': '/docker', # Docker
|
||||
'memuacontrol': '/control', # Monitor
|
||||
'memuafirewall': '/firewall', # Security
|
||||
'memu_btwaf': '/btwaf', # Waf
|
||||
'memu_mailsys': '/mail', # Mail Server
|
||||
'memuafiles': '/files', # Files
|
||||
'menunode': '/node', # Node Management
|
||||
'memualogs': '/logs', # Logs
|
||||
'menu_ssl': '/ssl_domain', # SSL
|
||||
'memuaxterm': '/xterm', # Terminal
|
||||
'memuaccount': '/whm', # Account
|
||||
'memuacrontab': '/crontab', # Cron
|
||||
'memuasoft': '/soft', # App Store
|
||||
'memuaconfig': '/config', # Settings
|
||||
'dologin': '/login', # Log out
|
||||
'memuASSL': '/ssl_domain' # Domain management
|
||||
'memua': '/', # Home
|
||||
'memuasite': '/site', # Website
|
||||
'memuawptoolkit': '/wp/toolkit', # WP Toolkit
|
||||
'memuaftp': '/ftp', # FTP
|
||||
'memuadatabase': '/database', # Databases
|
||||
'memudocker': '/docker', # Docker
|
||||
'memuacontrol': '/control', # Monitor
|
||||
'memuafirewall': '/firewall', # Security
|
||||
'memu_btwaf': '/btwaf', # Waf
|
||||
'memu_mailsys': '/mail', # Mail Server
|
||||
'memuafiles': '/files', # Files
|
||||
'menunode': '/node', # Node Management
|
||||
'memualogs': '/logs', # Logs
|
||||
'menu_ssl': '/ssl_domain', # SSL
|
||||
'memuaxterm': '/xterm', # Terminal
|
||||
'memuaccount': '/whm', # Account
|
||||
'memuacrontab': '/crontab', # Cron
|
||||
'memuasoft': '/soft', # App Store
|
||||
'memuaconfig': '/config', # Settings
|
||||
'dologin': '/login', # Log out
|
||||
'memuASSL': '/ssl_domain' # Domain management
|
||||
}
|
||||
try:
|
||||
menu_default_conf_path = os.path.join(panel_path, 'config/menu.json')
|
||||
@@ -241,8 +307,12 @@ except Exception as e:
|
||||
# ===================================Flask HOOK========================#
|
||||
# Flask请求勾子
|
||||
from flask import current_app
|
||||
|
||||
|
||||
@app.before_request
|
||||
def request_check():
|
||||
check_apsess_path()
|
||||
is_static_asset = is_static_asset_request()
|
||||
# 获取客户端真实IP,判断是否启动CDN代理
|
||||
CDN_PROXY = current_app.config.get('CDN_PROXY', False)
|
||||
if CDN_PROXY:
|
||||
@@ -255,10 +325,12 @@ def request_check():
|
||||
else:
|
||||
x_real_ip = request.headers.get('X-Real-Ip')
|
||||
if x_real_ip:
|
||||
if not public.is_ipv4(x_real_ip) and not public.is_ipv6(x_real_ip):
|
||||
return abort(404)
|
||||
request.remote_addr = x_real_ip
|
||||
request.environ.setdefault('REMOTE_PORT', public.get_remote_port())
|
||||
# 过滤菜单
|
||||
if 'uid' in session and session['uid'] != 1 and not public.user_router_authority():
|
||||
if not is_static_asset and 'uid' in session and session['uid'] != 1 and not public.user_router_authority():
|
||||
if public.M('users').where('id=?', (session['uid'],)).select():
|
||||
import config_v2
|
||||
menus = config_v2.config().get_menu_list()
|
||||
@@ -343,7 +415,7 @@ def request_check():
|
||||
ip_check = public.check_ip_panel()
|
||||
if ip_check: return ip_check
|
||||
|
||||
if request.path.startswith('/static/') or request.path == '/code':
|
||||
if request.path == '/code':
|
||||
if not 'login' in session and not 'admin_auth' in session and not 'down' in session:
|
||||
return abort(401)
|
||||
domain_check = public.check_domain_panel()
|
||||
@@ -351,22 +423,22 @@ def request_check():
|
||||
if public.is_local():
|
||||
not_networks = ['uninstall_plugin', 'install_plugin', 'UpdatePanel']
|
||||
if request.args.get('action') in not_networks:
|
||||
return public.returnJson( False, 'This feature cannot be used in offline mode!'), json_header
|
||||
return public.returnJson(False, 'This feature cannot be used in offline mode!'), json_header
|
||||
# 适配docker---- '/docker',
|
||||
|
||||
path_list = (
|
||||
'/site', '/ftp', '/database', '/soft', '/control', '/firewall',
|
||||
'/files', '/xterm', '/crontab', '/config', '/docker', '/btdocker','/breaking_through',
|
||||
'/site', '/ftp', '/database', '/soft', '/control', '/firewall',
|
||||
'/files', '/xterm', '/crontab', '/config', '/docker', '/btdocker', '/breaking_through',
|
||||
)
|
||||
if (request.path.startswith(path_list) or request.path == "/") and request.method == "GET":
|
||||
if not is_static_asset and (request.path.startswith(path_list) or request.path == "/") and request.method == "GET":
|
||||
if request.args.get('action') in [
|
||||
'get_tmp_token','download_cert'
|
||||
'get_tmp_token', 'download_cert'
|
||||
]:
|
||||
return
|
||||
# if request.path in [
|
||||
# '/site', '/ftp', '/database', '/soft', '/control', '/firewall',
|
||||
# '/files', '/xterm', '/crontab', '/config', '/docker', '/btdocker','/breaking_through',
|
||||
# ]:
|
||||
# if request.path in [
|
||||
# '/site', '/ftp', '/database', '/soft', '/control', '/firewall',
|
||||
# '/files', '/xterm', '/crontab', '/config', '/docker', '/btdocker','/breaking_through',
|
||||
# ]:
|
||||
if public.is_error_path():
|
||||
return redirect('/error', 302)
|
||||
# 密码过期相关功能
|
||||
@@ -382,7 +454,14 @@ def request_check():
|
||||
|
||||
# 新增 适配docker时增加 未测试
|
||||
# 处理登录页面相对路径的静态文件
|
||||
if request.path.find('/static/') > 0:
|
||||
if request.path.startswith('/static/'):
|
||||
static_file = public.get_panel_path() + '/BTPanel' + request.path
|
||||
plugin_static_file = public.get_panel_path() + '/plugin' + request.path
|
||||
if os.path.exists(static_file):
|
||||
return send_file(static_file, conditional=True, etag=True)
|
||||
if os.path.exists(plugin_static_file):
|
||||
return send_file(plugin_static_file, conditional=True, etag=True)
|
||||
|
||||
new_auth_path = _auth_path = public.get_admin_path()
|
||||
|
||||
# 2024/1/3 下午 8:35 检测_auth_path是否有包含2个以上/符号,如果有则取最后一个/符号前的字符串然后替换成_auth_path
|
||||
@@ -419,7 +498,7 @@ def request_check():
|
||||
# 如果是面板静态文件
|
||||
return send_file(static_file, conditional=True, etag=True)
|
||||
|
||||
if request.path.find('/static/img/soft_ico/ico') >= 0:
|
||||
if request.method == 'GET' and request.path.startswith('/static/img/soft_ico/'):
|
||||
# 路径安全检查
|
||||
if public.path_safe_check(request.path) is False:
|
||||
return abort(404)
|
||||
@@ -439,7 +518,7 @@ def request_check():
|
||||
@app.teardown_request
|
||||
def request_end(reques=None):
|
||||
if request.method not in ['GET', 'POST']: return
|
||||
if not request.path.startswith('/static/') or not request.path.startswith('/v2/static/'):
|
||||
if not request.path.startswith('/static/') and not request.path.startswith('/v2/static/'):
|
||||
# import public
|
||||
public.write_request_log(reques)
|
||||
|
||||
@@ -450,7 +529,7 @@ def request_end(reques=None):
|
||||
if (session_timeout > now_time or session_timeout == 0) and not request.path.startswith('/v2/plugin'):
|
||||
# 首页涉及的请求模块,暂不强制
|
||||
prefixes = ["/v2/site", "/v2/ftp", "/v2/database", "/v2/docker", "/v2/safe/security/set_security",
|
||||
"/v2/safe/security/get_repair_bar","/v2/breaking_through"]
|
||||
"/v2/safe/security/get_repair_bar", "/v2/breaking_through"]
|
||||
for prefix in prefixes:
|
||||
if request.path.startswith(prefix):
|
||||
if 'return_message' in g:
|
||||
@@ -655,6 +734,20 @@ REQUEST_FORM: {request_form}
|
||||
@app.route('/', methods=method_get)
|
||||
@app.route('/<path:sub_path>', methods=method_get)
|
||||
def index_new(sub_path: str = ''):
|
||||
if session.get('login', False):
|
||||
if not getattr(g, 'apsess_verified', False):
|
||||
session['request_token_head'] = INVALID_REQUEST_TOKEN_HEAD
|
||||
else:
|
||||
html_token_key = public.get_csrf_html_token_key()
|
||||
cookie_token_key = public.get_csrf_cookie_token_key()
|
||||
if session.get('request_token_head') == INVALID_REQUEST_TOKEN_HEAD:
|
||||
session.pop('request_token_head', None)
|
||||
if not session.get(html_token_key):
|
||||
session[html_token_key] = public.GetRandomString(48)
|
||||
if not session.get('request_token_head'):
|
||||
session['request_token_head'] = session[html_token_key]
|
||||
if not session.get(cookie_token_key):
|
||||
session[cookie_token_key] = public.GetRandomString(48)
|
||||
|
||||
if sub_path == 'unsubscribe.html':
|
||||
return render_template('unsubscribe.html')
|
||||
@@ -801,7 +894,6 @@ def index_new(sub_path: str = ''):
|
||||
return render_template('index_new.html', data=data)
|
||||
|
||||
|
||||
|
||||
@app.route('/xterm', methods=method_post)
|
||||
def xterm():
|
||||
# 宝塔终端管理
|
||||
@@ -814,6 +906,7 @@ def xterm():
|
||||
'get_command_find', 'modify_command', 'remove_command')
|
||||
return publicObject(ssh_host_admin, defs, None)
|
||||
|
||||
|
||||
# 密码过期路由
|
||||
@app.route('/modify_password', methods=method_get)
|
||||
def modify_password():
|
||||
@@ -1044,7 +1137,6 @@ def firewall(pdata=None):
|
||||
return publicObject(firewallObject, defs, None, pdata)
|
||||
|
||||
|
||||
|
||||
@app.route('/ssh_security', methods=method_all)
|
||||
def ssh_security(pdata=None):
|
||||
# SSH安全
|
||||
@@ -1258,7 +1350,7 @@ def files(pdata=None):
|
||||
'back_path_permissions', 'upload_file_exists', 'CheckExistsFiles',
|
||||
'GetExecLog', 'GetSearch', 'ExecShell', 'GetExecShellMsg',
|
||||
'exec_git', 'exec_composer', 'create_download_url', 'UploadFile',
|
||||
'GetDir', 'GetDirNew','CreateFile', 'CreateDir', 'DeleteDir', 'DeleteFile',
|
||||
'GetDir', 'GetDirNew', 'CreateFile', 'CreateDir', 'DeleteDir', 'DeleteFile',
|
||||
'get_download_url_list', 'remove_download_url',
|
||||
'modify_download_url', 'CopyFile', 'CopyDir', 'MvFile',
|
||||
'GetFileBody', 'SaveFileBody', 'Zip', 'UnZip',
|
||||
@@ -1443,8 +1535,8 @@ def config(pdata=None):
|
||||
'download_language',
|
||||
'upload_language',
|
||||
# 'test_language',
|
||||
'set_hou',
|
||||
'replace_data',
|
||||
'set_hou',
|
||||
'replace_data',
|
||||
'set_theme',
|
||||
)
|
||||
return publicObject(config.config(), defs, None, pdata)
|
||||
@@ -1497,7 +1589,7 @@ def ajax(pdata=None):
|
||||
ajaxObject = ajax.ajax()
|
||||
defs = ('get_lines', 'php_info', 'change_phpmyadmin_ssl_port',
|
||||
'set_phpmyadmin_ssl', 'get_phpmyadmin_ssl', 'get_pd',
|
||||
'check_user_auth', 'to_not_beta', 'get_beta_logs', 'get_version_logs','apple_beta',
|
||||
'check_user_auth', 'to_not_beta', 'get_beta_logs', 'get_version_logs', 'apple_beta',
|
||||
'GetApacheStatus', 'GetCloudHtml', 'get_pay_type',
|
||||
'get_load_average', 'GetOpeLogs', 'GetFpmLogs', 'GetFpmSlowLogs',
|
||||
'SetMemcachedCache', 'GetMemcachedStatus', 'GetRedisStatus',
|
||||
@@ -1643,9 +1735,9 @@ def auth(pdata=None):
|
||||
import panelAuth
|
||||
toObject = panelAuth.panelAuth()
|
||||
defs = ('free_trial', 'renew_product_auth', 'auth_activate',
|
||||
'get_product_auth', 'get_product_auth_all','get_stripe_session_id',
|
||||
'get_product_auth', 'get_product_auth_all', 'get_stripe_session_id',
|
||||
'get_re_order_status_plugin', 'create_plugin_other_order',
|
||||
'get_order_stat', 'get_voucher_plugin','get_voucher_plugin_all',
|
||||
'get_order_stat', 'get_voucher_plugin', 'get_voucher_plugin_all',
|
||||
'create_order_voucher_plugin', 'get_product_discount_by',
|
||||
'get_re_order_status', 'create_order_voucher', 'create_order',
|
||||
'get_order_status', 'get_voucher', 'flush_pay_status',
|
||||
@@ -1700,8 +1792,10 @@ def download():
|
||||
return public.ReturnJson(False, "FIFO pipeline files are not downloadable"), json_header
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
if os.path.isdir(filename):
|
||||
return public.ReturnJson(False, "The catalog is not available for download!"), json_header
|
||||
if not os.path.exists(filename):
|
||||
return public.ReturnJson(False, "File not exists"), json_header
|
||||
|
||||
if request.args.get('play') == 'true':
|
||||
import panelVideo
|
||||
@@ -1895,7 +1989,7 @@ def login():
|
||||
is_auth_path = True
|
||||
# 登录输入验证
|
||||
if request.method == method_post[0]:
|
||||
#防爆破检测
|
||||
# 防爆破检测
|
||||
import breaking_through
|
||||
_breaking_through_obj = breaking_through.main()
|
||||
limit_login = _breaking_through_obj.get_login_limit()
|
||||
@@ -2021,6 +2115,7 @@ def login():
|
||||
|
||||
# 生成登录token
|
||||
last_key = 'last_login_token'
|
||||
access_key = 'apsess_token'
|
||||
# -----------
|
||||
last_time_key = 'last_login_token_time'
|
||||
s_time = int(time.time())
|
||||
@@ -2028,12 +2123,15 @@ def login():
|
||||
# 10秒内不重复生成token
|
||||
if s_time - session[last_time_key] > 10:
|
||||
session[last_key] = public.GetRandomString(32)
|
||||
session[access_key] = build_apsess_session_token()
|
||||
session[last_time_key] = s_time
|
||||
else:
|
||||
session[last_key] = public.GetRandomString(32)
|
||||
session[access_key] = build_apsess_session_token()
|
||||
session[last_time_key] = s_time
|
||||
|
||||
data[last_key] = session[last_key]
|
||||
data[access_key] = session[access_key]
|
||||
import base64
|
||||
data['login_translations'] = base64.b64encode(json.dumps(load_login_translations()).encode()).decode()
|
||||
settings = '{}/BTPanel/languages/settings.json'.format(public.get_panel_path())
|
||||
@@ -2050,15 +2148,11 @@ def login():
|
||||
|
||||
default = settings_json.get('default', 'en') # 默认值
|
||||
|
||||
|
||||
if default == '':
|
||||
default = 'en'
|
||||
data['login_lang'] = default if default else 'en'
|
||||
data['public_key'] = public.get_rsa_public_key()
|
||||
|
||||
|
||||
|
||||
|
||||
import userLang
|
||||
get_language = userLang.userLang().get_language(None)['message']
|
||||
data['language'] = get_language['default']
|
||||
@@ -2086,7 +2180,6 @@ def userRegister():
|
||||
return publicObject(reg, defs, None, None)
|
||||
|
||||
|
||||
|
||||
@app.route('/close', methods=method_get)
|
||||
def close():
|
||||
# 面板已关闭页面
|
||||
@@ -2698,6 +2791,7 @@ class run_exec:
|
||||
|
||||
def check_csrf():
|
||||
# CSRF校验
|
||||
if session.get('request_token_head') == INVALID_REQUEST_TOKEN_HEAD: return False
|
||||
if app.config['DEBUG']: return True
|
||||
http_token = request.headers.get('x-http-token')
|
||||
if not http_token: return False
|
||||
@@ -2897,7 +2991,6 @@ def workorder_client(ws):
|
||||
toObject.client(ws, get)
|
||||
|
||||
|
||||
|
||||
@sockets.route('/ws_panel')
|
||||
def ws_panel(ws):
|
||||
'''
|
||||
@@ -2923,6 +3016,50 @@ def ws_panel(ws):
|
||||
p.start()
|
||||
|
||||
|
||||
WS_OBJ = {}
|
||||
|
||||
|
||||
@sockets.route('/ws_home')
|
||||
def ws_home(ws):
|
||||
'''
|
||||
@name 首页接口ws入口
|
||||
@author hwliang<2021-07-24>
|
||||
@param ws<ws_parameter> websocket会话对像
|
||||
@return void
|
||||
'''
|
||||
|
||||
comReturn = comm.local()
|
||||
if comReturn: return comReturn
|
||||
|
||||
get = ws.receive()
|
||||
get = json.loads(get)
|
||||
if not check_csrf_websocket(ws, get): return
|
||||
|
||||
global WS_OBJ
|
||||
from panelController import Controller
|
||||
model_obj = Controller()
|
||||
while True:
|
||||
pdata = ws.receive()
|
||||
if pdata in ['{}', {}, None, '']:
|
||||
ws.send(json.dumps(public.return_status_code(1000, 'The request parameter cannot be null')))
|
||||
break
|
||||
try:
|
||||
get = public.to_dict_obj(json.loads(pdata))
|
||||
except:
|
||||
request.form = {
|
||||
"error": pdata
|
||||
}
|
||||
raise Exception('json load error !')
|
||||
get._ws = ws
|
||||
WS_OBJ[get.get('ws_id', public.GetRandomString(16))] = {'ws_obj': get._ws, 'menu': get.get('menu', ''),
|
||||
'timeout': int(time.time()) + 33}
|
||||
WS_OBJ = {i: j for i, j in WS_OBJ.items() if j['timeout'] > int(time.time())}
|
||||
if hasattr(get, 'model_index') and get.model_index != '':
|
||||
ws_model_thread(model_obj, get)
|
||||
else:
|
||||
ws_panel_thread(get)
|
||||
|
||||
|
||||
def ws_panel_thread(get):
|
||||
'''
|
||||
@name 面板管理ws线程
|
||||
@@ -3055,6 +3192,7 @@ def ws_model(ws):
|
||||
p = threading.Thread(target=ws_model_thread, args=(model_obj, get))
|
||||
p.start()
|
||||
|
||||
|
||||
def ws_mod_thread(_obj, get):
|
||||
'''
|
||||
@name 模型控制器ws线程
|
||||
@@ -3343,6 +3481,7 @@ def python_env_ssh(ws):
|
||||
ws.close()
|
||||
return 'False'
|
||||
|
||||
|
||||
# --------------------- websocket END -------------------------- #
|
||||
|
||||
|
||||
@@ -3457,6 +3596,7 @@ def push(pdata=None):
|
||||
result = publicObject(toObject, defs, None, pdata)
|
||||
return result
|
||||
|
||||
|
||||
# ===========================================================v2路由区start===========================================================#
|
||||
# docker模块内用到的ws
|
||||
@sockets.route(route_v2 + '/ws_model')
|
||||
@@ -3496,6 +3636,7 @@ def ws_model_v2(ws):
|
||||
p = threading.Thread(target=ws_model_thread, args=(model_obj, get))
|
||||
p.start()
|
||||
|
||||
|
||||
# 2024/2/19 上午 10:34 新场景模型控制器ws入口,无默认return
|
||||
@sockets.route(route_v2 + '/ws_modsoc')
|
||||
def ws_modsoc(ws):
|
||||
@@ -3555,12 +3696,13 @@ def ws_mod_thread_v2(_obj, get):
|
||||
result = {'callback': get.get("ws_callback", get.get("callback", "")), 'result': mod_result}
|
||||
if get._ws.connected:
|
||||
get._ws.send(public.getJson(result))
|
||||
|
||||
|
||||
except:
|
||||
if public.is_debug():
|
||||
public.print_error()
|
||||
return
|
||||
|
||||
|
||||
# ======================普通路由区start============================#
|
||||
|
||||
|
||||
@@ -3607,6 +3749,7 @@ def modify_password_v2():
|
||||
# return render_template('modify_password.html', data=data)
|
||||
return render_template('index1.html', data=data)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/site', methods=method_all)
|
||||
def site_v2(pdata=None):
|
||||
# 网站管理
|
||||
@@ -3826,6 +3969,7 @@ def site_v2(pdata=None):
|
||||
'set_site_global',
|
||||
'get_site_global',
|
||||
'site_performance_test',
|
||||
'batch_add_wp',
|
||||
# 新增多服务
|
||||
'set_default_site_conf',
|
||||
'get_multi_webservice_status',
|
||||
@@ -3844,6 +3988,7 @@ def site_v2(pdata=None):
|
||||
)
|
||||
return publicObject(siteObject, defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/git', methods=method_all)
|
||||
def git_tools(pdata=None):
|
||||
# git管理
|
||||
@@ -3879,6 +4024,7 @@ def git_tools(pdata=None):
|
||||
)
|
||||
return publicObject(gitObject, defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/ftp', methods=method_all)
|
||||
def ftp_v2(pdata=None):
|
||||
# FTP管理
|
||||
@@ -4056,6 +4202,7 @@ def firewall_v2(pdata=None):
|
||||
'SetFirewallStatus')
|
||||
return publicObject(firewallObject, defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/firewall/com/<def_name>', methods=method_all)
|
||||
def firewall_v22(def_name, pdata=None):
|
||||
if request.method not in ['GET', 'POST']: return
|
||||
@@ -4112,6 +4259,7 @@ def panel_monitor_v2(pdata=None):
|
||||
'load_and_up_flow', 'get_request_count_by_hour')
|
||||
return publicObject(dataObject, defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/site_monitor', methods=method_all)
|
||||
def monitor(pdata=None):
|
||||
# 网站统计预览
|
||||
@@ -4122,6 +4270,7 @@ def monitor(pdata=None):
|
||||
defs = ('get_overview', 'get_site_overview')
|
||||
return publicObject(dataObject, defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/san', methods=method_all)
|
||||
def san_baseline_v2(pdata=None):
|
||||
# 云控安全扫描
|
||||
@@ -4177,12 +4326,13 @@ def panel_warning_v2(pdata=None):
|
||||
|
||||
defs = ('get_list', 'set_ignore', 'check_find', 'check_cve',
|
||||
'set_vuln_ignore', 'get_scan_bar', 'get_tmp_result',
|
||||
'kill_get_list','get_res_list')
|
||||
'kill_get_list', 'get_res_list', 'set_scan_categories','get_warning_rules')
|
||||
|
||||
if get.action in ['set_ignore', 'check_find', 'set_vuln_ignore']:
|
||||
cache.delete(ikey)
|
||||
return publicObject(dataObject, defs, None, pdata)
|
||||
|
||||
|
||||
# ----------------------------------------- 安全模块路由区 start----------------------------------------
|
||||
|
||||
@app.route(route_v2 + '/safecloud', methods=method_all)
|
||||
@@ -4192,14 +4342,17 @@ def safecloud(pdata=None):
|
||||
if comReturn: return comReturn
|
||||
from projectModelV2.safecloudModel import main
|
||||
toObject = main()
|
||||
defs = ('get_safe_overview','get_pending_alarm_trend','get_security_trend',
|
||||
'get_security_dynamic','set_config','get_safecloud_list',
|
||||
'get_webshell_result','get_config','deal_webshell_file','set_alarm_config',
|
||||
'webshell_detection','ignore_file','get_ignored_list','del_ignored')
|
||||
defs = ('get_safe_overview', 'get_pending_alarm_trend', 'get_security_trend',
|
||||
'get_security_dynamic', 'set_config', 'get_safecloud_list',
|
||||
'get_webshell_result', 'get_config', 'deal_webshell_file', 'set_alarm_config',
|
||||
'webshell_detection', 'ignore_file', 'get_ignored_list', 'del_ignored')
|
||||
return publicObject(toObject, defs, None, pdata)
|
||||
|
||||
|
||||
# 避免加密后变成单例模式
|
||||
from safeModel.reportModel import main as report_main
|
||||
|
||||
|
||||
@app.route(route_v2 + '/safe/report', methods=method_all)
|
||||
def report(pdata=None):
|
||||
# 安全报告
|
||||
@@ -4209,6 +4362,7 @@ def report(pdata=None):
|
||||
defs = ('get_report')
|
||||
return publicObject(toObject, defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/scanning', methods=method_all)
|
||||
def scanning(pdata=None):
|
||||
comReturn = comm.local()
|
||||
@@ -4218,6 +4372,7 @@ def scanning(pdata=None):
|
||||
defs = ('get_vuln_info', 'startScan')
|
||||
return publicObject(toObject, defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/safe_detect', methods=method_all)
|
||||
def safe_detect(pdata=None):
|
||||
comReturn = comm.local()
|
||||
@@ -4227,6 +4382,7 @@ def safe_detect(pdata=None):
|
||||
defs = ('get_safe_count')
|
||||
return publicObject(toObject, defs, None, pdata)
|
||||
|
||||
|
||||
# ----------------------------------------- 安全模块路由区 end----------------------------------------
|
||||
|
||||
@app.route(route_v2 + '/bak', methods=method_all)
|
||||
@@ -4378,7 +4534,7 @@ def files_v2(pdata=None):
|
||||
'back_path_permissions', 'upload_file_exists', 'CheckExistsFiles',
|
||||
'GetExecLog', 'GetSearch', 'ExecShell', 'GetExecShellMsg',
|
||||
'exec_git', 'exec_composer', 'create_download_url', 'UploadFile',
|
||||
'GetDir','GetDirNew', 'CreateFile', 'CreateDir', 'DeleteDir', 'DeleteFile',
|
||||
'GetDir', 'GetDirNew', 'CreateFile', 'CreateDir', 'DeleteDir', 'DeleteFile',
|
||||
'get_download_url_list', 'remove_download_url',
|
||||
'modify_download_url', 'CopyFile', 'CopyDir', 'MvFile',
|
||||
'GetFileBody', 'SaveFileBody', 'Zip', 'UnZip',
|
||||
@@ -4396,7 +4552,7 @@ def files_v2(pdata=None):
|
||||
'Close_Recycle_bin', 'Recycle_bin', 'file_webshell_check',
|
||||
'dir_webshell_check', 'files_search', 'files_replace',
|
||||
'get_replace_logs', 'get_sql_backup', 'test_path', 'upload_files_exists',
|
||||
'file_history', 'file_history_list', 'del_file_history','del_history')
|
||||
'file_history', 'file_history_list', 'del_file_history', 'del_history')
|
||||
|
||||
return publicObject(filesObject, defs, None, pdata)
|
||||
|
||||
@@ -4404,7 +4560,7 @@ def files_v2(pdata=None):
|
||||
@app.route(route_v2 + '/crontab', methods=method_all)
|
||||
@app.route(route_v2 + '/crontab/<action>', methods=method_all)
|
||||
@app.route(route_v2 + '/crontab_ifame', methods=method_all)
|
||||
def crontab_v2(pdata=None,action=None):
|
||||
def crontab_v2(pdata=None, action=None):
|
||||
# 计划任务
|
||||
comReturn = comm.local()
|
||||
if comReturn: return comReturn
|
||||
@@ -4427,7 +4583,7 @@ def crontab_v2(pdata=None,action=None):
|
||||
'GetDatabases', 'get_crontab_types', 'add_crontab_type', 'remove_crontab_type',
|
||||
'modify_crontab_type_name', 'set_crontab_type', 'export_crontab_to_json', 'import_crontab_from_json',
|
||||
'set_rotate_log', 'get_rotate_log_config', 'get_restart_project_config', 'set_restart_project',
|
||||
'get_system_user_list','get_databases', 'get_auto_config', 'set_auto_config'
|
||||
'get_system_user_list', 'get_databases', 'get_auto_config', 'set_auto_config'
|
||||
)
|
||||
return publicObject(crontabObject, defs, None, pdata)
|
||||
|
||||
@@ -4639,7 +4795,7 @@ def config_v2(pdata=None):
|
||||
# 旧主题
|
||||
# 'set_panel_asset',
|
||||
# 'get_panel_asset',
|
||||
'get_alarm_services', # 服务
|
||||
'get_alarm_services', # 服务
|
||||
# 主题
|
||||
'get_panel_theme',
|
||||
'set_panel_theme',
|
||||
@@ -4660,7 +4816,7 @@ def ajax_v2(pdata=None):
|
||||
ajaxObject = ajax_v2.ajax()
|
||||
defs = ('get_lines', 'php_info', 'change_phpmyadmin_ssl_port',
|
||||
'set_phpmyadmin_ssl', 'get_phpmyadmin_ssl', 'get_pd',
|
||||
'check_user_auth', 'to_not_beta', 'get_beta_logs', 'get_version_logs','apple_beta',
|
||||
'check_user_auth', 'to_not_beta', 'get_beta_logs', 'get_version_logs', 'apple_beta',
|
||||
'GetApacheStatus', 'GetCloudHtml', 'get_pay_type',
|
||||
'get_load_average', 'GetOpeLogs', 'GetFpmLogs', 'GetFpmSlowLogs',
|
||||
'SetMemcachedCache', 'GetMemcachedStatus', 'GetRedisStatus',
|
||||
@@ -4671,9 +4827,11 @@ def ajax_v2(pdata=None):
|
||||
'UninstallLib', 'InstallLib', 'SetQiniuAS', 'GetQiniuAS',
|
||||
'GetLibList', 'GetProcessList', 'GetNetWorkList', 'GetNginxStatus',
|
||||
'GetPHPStatus', 'GetTaskCount', 'GetSoftList', 'GetNetWorkIo',
|
||||
'GetDiskIo', 'GetCpuIo', 'CheckInstalled', 'UpdatePanel',
|
||||
'GetDiskIo', 'GetCpuIo', 'CheckInstalled',
|
||||
'GetInstalled', 'GetPHPConfig', 'SetPHPConfig', 'log_analysis',
|
||||
'speed_log', 'get_result', 'get_detailed', 'ignore_version')
|
||||
'speed_log', 'get_result', 'get_detailed', 'ignore_version',
|
||||
'UpdatePanel', 'RepPanel', # 更新面板, 修复面板
|
||||
)
|
||||
|
||||
return publicObject(ajaxObject, defs, None, pdata)
|
||||
|
||||
@@ -4689,7 +4847,9 @@ def system_v2(pdata=None):
|
||||
'GetLoadAverage', 'ClearSystem', 'GetNetWorkOld', 'GetNetWork',
|
||||
'GetDiskInfo', 'GetCpuInfo', 'GetBootTime', 'GetSystemVersion',
|
||||
'GetMemInfo', 'GetSystemTotal', 'GetConcifInfo', 'ServiceAdmin',
|
||||
'ReWeb', 'RestartServer', 'ReMemory', 'RepPanel', 'mark_reboot_read')
|
||||
'ReWeb', 'RestartServer', 'ReMemory', 'RepPanel', 'mark_reboot_read',
|
||||
'get_upgrade_log', # 获取面板更修,修复日志
|
||||
)
|
||||
return publicObject(sysObject, defs, None, pdata)
|
||||
|
||||
|
||||
@@ -4713,9 +4873,11 @@ def panel_data_v2(pdata=None):
|
||||
if comReturn: return comReturn
|
||||
import data_v2
|
||||
dataObject = data_v2.data()
|
||||
defs = ('setPs', 'getData', 'getFind', 'getKey', 'getSiteWafConfig', 'getSiteThirtyTotal','get_wp_classification','get_wp_site_list','get_aacloud_data')
|
||||
defs = ('setPs', 'getData', 'getFind', 'getKey', 'getSiteWafConfig', 'getSiteThirtyTotal', 'get_wp_classification',
|
||||
'get_wp_site_list', 'get_aacloud_data')
|
||||
return publicObject(dataObject, defs, None, pdata)
|
||||
|
||||
|
||||
# todo 计划调整
|
||||
@app.route(route_v2 + '/ssl', methods=method_all)
|
||||
def ssl_v2(pdata=None):
|
||||
@@ -4781,6 +4943,7 @@ def ssl_v2(pdata=None):
|
||||
result = publicObject(toObject, defs, get.action, get)
|
||||
return result
|
||||
|
||||
|
||||
@app.route(route_v2 + '/overview', methods=method_all)
|
||||
def overview_v2(pdata=None):
|
||||
# 首页overview管理
|
||||
@@ -4798,6 +4961,7 @@ def overview_v2(pdata=None):
|
||||
)
|
||||
return publicObject(OverViewApi(), defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + "/business_ssl", methods=method_all)
|
||||
def business_ssl(pdata=None):
|
||||
# 商业SSL证书申请接口
|
||||
@@ -4883,6 +5047,7 @@ def domain_v2(pdata=None):
|
||||
)
|
||||
return publicObject(DomainObject(), defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/ssl_dns', methods=method_all)
|
||||
def ssl_dns_v2(pdata=None):
|
||||
# aaDns管理
|
||||
@@ -4909,6 +5074,7 @@ def ssl_dns_v2(pdata=None):
|
||||
)
|
||||
return publicObject(DnsApiObject(), defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/dns_api', methods=method_all)
|
||||
def dns_api_v2(pdata=None):
|
||||
# dns api 开放, 子面板调用
|
||||
@@ -4923,7 +5089,6 @@ def dns_api_v2(pdata=None):
|
||||
return publicObject(SubPanelApi(), defs, None, pdata)
|
||||
|
||||
|
||||
|
||||
@app.route(route_v2 + '/adminer_manager', methods=method_all)
|
||||
def adminer_manager_v2(pdata=None):
|
||||
comReturn = comm.local()
|
||||
@@ -4941,6 +5106,7 @@ def adminer_manager_v2(pdata=None):
|
||||
)
|
||||
return publicObject(AdminerApi(), defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/task', methods=method_all)
|
||||
def task_v2(pdata=None):
|
||||
# 后台任务接口
|
||||
@@ -4995,9 +5161,9 @@ def auth_v2(pdata=None):
|
||||
import panel_auth_v2
|
||||
toObject = panel_auth_v2.panelAuth()
|
||||
defs = ('free_trial', 'renew_product_auth', 'auth_activate',
|
||||
'get_product_auth', 'get_product_auth_all','get_stripe_session_id',
|
||||
'get_product_auth', 'get_product_auth_all', 'get_stripe_session_id',
|
||||
'get_re_order_status_plugin', 'create_plugin_other_order',
|
||||
'get_order_stat', 'get_voucher_plugin','get_voucher_plugin_all',
|
||||
'get_order_stat', 'get_voucher_plugin', 'get_voucher_plugin_all',
|
||||
'create_order_voucher_plugin', 'get_product_discount_by',
|
||||
'get_re_order_status', 'create_order_voucher', 'create_order',
|
||||
'get_order_status', 'get_voucher', 'flush_pay_status',
|
||||
@@ -5712,7 +5878,6 @@ def panel_public_v2():
|
||||
@app.route(route_v2 + '/<name>/<fun>', methods=method_all)
|
||||
@app.route(route_v2 + '/<name>/<fun>/<path:stype>', methods=method_all)
|
||||
def panel_other_v2(name=None, fun=None, stype=None):
|
||||
|
||||
# 插件接口
|
||||
if public.is_error_path():
|
||||
return redirect('/error', 302)
|
||||
@@ -5875,6 +6040,7 @@ def panel_other_v2(name=None, fun=None, stype=None):
|
||||
except:
|
||||
return public.get_error_info()
|
||||
|
||||
|
||||
@app.route(route_v2 + '/hook', methods=method_all)
|
||||
def panel_hook_v2():
|
||||
# webhook接口
|
||||
@@ -5977,6 +6143,46 @@ def ws_panel_v2(ws):
|
||||
p.start()
|
||||
|
||||
|
||||
@sockets.route(route_v2 + '/ws_home')
|
||||
def ws_home_v2(ws):
|
||||
'''
|
||||
@name 首页接口ws入口
|
||||
@author hwliang<2021-07-24>
|
||||
@param ws<ws_parameter> websocket会话对像
|
||||
@return void
|
||||
'''
|
||||
|
||||
comReturn = comm.local()
|
||||
if comReturn: return comReturn
|
||||
|
||||
get = ws.receive()
|
||||
get = json.loads(get)
|
||||
if not check_csrf_websocket(ws, get): return
|
||||
global WS_OBJ
|
||||
from panelController import Controller
|
||||
model_obj = Controller()
|
||||
while True:
|
||||
pdata = ws.receive()
|
||||
if pdata in ['{}', {}, None, '']:
|
||||
ws.send(json.dumps(public.return_status_code(1000, 'The request parameter cannot be null')))
|
||||
break
|
||||
try:
|
||||
get = public.to_dict_obj(json.loads(pdata))
|
||||
except:
|
||||
request.form = {
|
||||
"error": pdata
|
||||
}
|
||||
raise Exception('json load error !')
|
||||
get._ws = ws
|
||||
WS_OBJ[get.get('ws_id', public.GetRandomString(16))] = {'ws_obj': get._ws, 'menu': get.get('menu', ''),
|
||||
'timeout': int(time.time()) + 33}
|
||||
WS_OBJ = {i: j for i, j in WS_OBJ.items() if j['timeout'] > int(time.time())}
|
||||
if hasattr(get, 'model_index') and get.model_index != '':
|
||||
ws_model_thread(model_obj, get)
|
||||
else:
|
||||
ws_panel_thread(get)
|
||||
|
||||
|
||||
def ws_panel_thread_v2(get):
|
||||
'''
|
||||
@name 面板管理ws线程
|
||||
@@ -6222,11 +6428,11 @@ def webssh_v2(ws):
|
||||
if not ssh_info: ssh_info = {"host": "127.0.0.1"}
|
||||
if not 'port' in ssh_info:
|
||||
ssh_info['port'] = public.get_ssh_port()
|
||||
#当密码和key都为空的时候
|
||||
# 当密码和key都为空的时候
|
||||
if not 'password' in ssh_info and not 'pkey' in ssh_info:
|
||||
import ssh_security_v2
|
||||
sshobject = ssh_security_v2.ssh_security()
|
||||
ssh_info['pkey'] = sshobject.get_key(get).get("message",{}).get("result","")
|
||||
ssh_info['pkey'] = sshobject.get_key(get).get("message", {}).get("result", "")
|
||||
else:
|
||||
# public.print_log("无host")
|
||||
ssh_info = sp.get_ssh_info('127.0.0.1')
|
||||
@@ -6452,13 +6658,15 @@ def panel_mod_v2(name=None, sub_name=None, fun=None, stype=None):
|
||||
if not 'login' in session: return abort(404)
|
||||
return public.get_error_object(None, plugin_name=name)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/check_auth', methods=method_all)
|
||||
def check_auth_v2(pdata=None):
|
||||
comReturn = comm.local()
|
||||
if comReturn: return comReturn
|
||||
if os.path.exists('data/.is_pro.pl'):
|
||||
return public.return_message(0,0,'true')
|
||||
return public.return_message(-1,0,'false')
|
||||
return public.return_message(0, 0, 'true')
|
||||
return public.return_message(-1, 0, 'false')
|
||||
|
||||
|
||||
@app.route('/bind', methods=method_get)
|
||||
def bind():
|
||||
@@ -6470,6 +6678,7 @@ def bind():
|
||||
# g.title = '请先绑定宝塔帐号'
|
||||
return render_template('index_new.html', data=data)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/breaking_through', methods=method_all)
|
||||
def breaking_through_v2(pdata=None):
|
||||
comReturn = comm.local()
|
||||
@@ -6498,6 +6707,7 @@ def breaking_through_v2(pdata=None):
|
||||
)
|
||||
return publicObject(breakingObject, defs, None, pdata)
|
||||
|
||||
|
||||
@app.route(route_v2 + '/virtual/<def_name>', methods=method_all)
|
||||
@app.route(route_v2 + '/aapanelsub/<def_name>', methods=method_all)
|
||||
@app.route('/aapanelsub/<def_name>', methods=method_all)
|
||||
@@ -6511,11 +6721,11 @@ def virtualModel_v2(def_name):
|
||||
import public.PluginLoader as plugin_loader
|
||||
mod_file = '{}/class_v2/virtualModelV2/virtualModel.py'.format(public.get_panel_path())
|
||||
plugin_class = plugin_loader.get_module(mod_file)
|
||||
plugin_object = getattr(plugin_class,"main")()
|
||||
get= get_input()
|
||||
plugin_object = getattr(plugin_class, "main")()
|
||||
get = get_input()
|
||||
if def_name.endswith('.json'):
|
||||
def_name = def_name[:-5]
|
||||
result = getattr(plugin_object,def_name)(get)
|
||||
result = getattr(plugin_object, def_name)(get)
|
||||
return result
|
||||
|
||||
|
||||
@@ -6536,6 +6746,8 @@ def userRegister_v2():
|
||||
defs = ('toRegister',)
|
||||
|
||||
return publicObject(reg, defs, None, None)
|
||||
|
||||
|
||||
# ===========================================================v2路由区end===========================================================#
|
||||
|
||||
@app.route('/v2/install_finish', methods=method_post)
|
||||
@@ -6571,6 +6783,8 @@ def wp_login(site_id: int, wp_site_type: str = 'local'):
|
||||
def mail_campaign_handler(enc_str: str):
|
||||
g.api_request = True
|
||||
try:
|
||||
if not os.path.exists(public.get_setup_path() + '/panel/plugin/mail_sys'):
|
||||
return public.lang('Plugin mail_sys is not installed')
|
||||
from power_mta.maillog_stat import campaign_event_handler
|
||||
return campaign_event_handler(enc_str)
|
||||
except:
|
||||
@@ -6622,7 +6836,8 @@ def get_mod_input():
|
||||
@app.route('/mailUnsubscribe', methods=method_all)
|
||||
def mailUnsubscribe():
|
||||
# 插件判断
|
||||
if not os.path.exists('/www/server/panel/plugin/mail_sys/mail_send_bulk.py') or not os.path.exists('/www/vmail/postfixadmin.db'):
|
||||
if not os.path.exists('/www/server/panel/plugin/mail_sys/mail_send_bulk.py') or not os.path.exists(
|
||||
'/www/vmail/postfixadmin.db'):
|
||||
return abort(404)
|
||||
|
||||
g.is_aes = False
|
||||
@@ -6639,7 +6854,6 @@ def userLang():
|
||||
public.Md5(
|
||||
uuid.UUID(int=uuid.getnode()).hex[-12:] +
|
||||
public.GetClientIp())) != 'check':
|
||||
|
||||
return abort(404)
|
||||
|
||||
global admin_check_auth, admin_path, route_path, admin_path_file
|
||||
@@ -6667,7 +6881,9 @@ def google_redirect():
|
||||
redirect_url = public.httpPost('{}/google/redirect'.format(public.OfficialApiBase()), headers={
|
||||
'X-Forwarded-For': public.GetClientIp(),
|
||||
}, data={
|
||||
'redirect_url': 'https://{}{}{}'.format(public.GetHost(), ':{}'.format(str(public.ReadFile('data/port.pl')).strip()) if os.path.exists('data/port.pl') else '', '/google/callback'),
|
||||
'redirect_url': 'https://{}{}{}'.format(public.GetHost(), ':{}'.format(
|
||||
str(public.ReadFile('data/port.pl')).strip()) if os.path.exists('data/port.pl') else '',
|
||||
'/google/callback'),
|
||||
'nonce': nonce,
|
||||
'from_panel': 1,
|
||||
})
|
||||
@@ -6683,7 +6899,8 @@ def google_callback():
|
||||
get = get_input()
|
||||
|
||||
# validate nonce
|
||||
if 'google_nonce' not in session or not session['google_nonce'] or 'nonce' not in get or not get.nonce or session['google_nonce'] != get.nonce:
|
||||
if 'google_nonce' not in session or not session['google_nonce'] or 'nonce' not in get or not get.nonce or session[
|
||||
'google_nonce'] != get.nonce:
|
||||
return abort(403)
|
||||
|
||||
# remove nonce
|
||||
@@ -6699,6 +6916,7 @@ def google_callback():
|
||||
session['focre_cloud'] = True
|
||||
return redirect('/')
|
||||
|
||||
|
||||
# ========================================================== Google OAuth2.0 end ===========================================================#
|
||||
|
||||
|
||||
@@ -6726,4 +6944,56 @@ def init_cdn_config(app):
|
||||
app.config['CDN_PROXY'] = False
|
||||
return
|
||||
|
||||
|
||||
init_cdn_config(app)
|
||||
|
||||
|
||||
def is_static_asset_request():
|
||||
if request.path.startswith('/static/') or request.path.startswith('/v2/static/'):
|
||||
return True
|
||||
return re.match(r'^(/v2)?/[\w\-]+/static/[\w\./\-]+$', request.path) is not None
|
||||
|
||||
|
||||
# 1. 定义:判断哪些请求需要强制校验 apsess
|
||||
def require_apsess():
|
||||
normalized_path = request.path.rstrip('/') or '/'
|
||||
fixed_entry_paths = {
|
||||
'/',
|
||||
admin_path.rstrip('/') or '/',
|
||||
route_path.rstrip('/') or '/',
|
||||
}
|
||||
if normalized_path in fixed_entry_paths:
|
||||
return False
|
||||
|
||||
# 公开路径:无需 apsess 校验
|
||||
public_paths = (
|
||||
'/login', '/v2/login', '/install', '/static/', '/safe', '/hook', '/public',
|
||||
'/down', '/userLang', '/google/redirect', '/google/callback'
|
||||
)
|
||||
for p in public_paths:
|
||||
if request.path == p or request.path.startswith(p):
|
||||
return False
|
||||
# 已登录用户:强制校验 apsess
|
||||
return session.get('login', False)
|
||||
|
||||
|
||||
# 2. 定义:核心 apsess 校验逻辑
|
||||
def check_apsess_path():
|
||||
# 从 environ 中获取中间件提取的令牌
|
||||
apsess_token = build_apsess_url_token(request.environ.get('bt.apsess_token', ''))
|
||||
g.apsess_path_token = apsess_token # 写入 g 供后续接口使用
|
||||
g.apsess_verified = False # 默认未验证
|
||||
|
||||
# 无令牌:若无需强制校验则放行,否则拒绝
|
||||
if not apsess_token:
|
||||
return True
|
||||
|
||||
# 对比 session 中的令牌(登录时生成)
|
||||
expected_token = get_apsess_url_token_from_session()
|
||||
if not expected_token or apsess_token != expected_token:
|
||||
return True # 令牌不匹配时仅标记,不在这里阻断
|
||||
|
||||
# 校验通过:标记上下文
|
||||
g.apsess_verified = True
|
||||
session['apsess_verified'] = True
|
||||
return True
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.8 KiB |
@@ -0,0 +1 @@
|
||||
.card[data-v-898a7868]{background:var(--home-update-detail-bg);margin-bottom:20px;border-radius:4px;padding:20px 24px}.version[data-v-898a7868]{position:relative;margin-left:95px;padding:5px 0 0 2px;border-left:5px solid #e1e1e1}.version .active[data-v-898a7868]{position:absolute;left:-10px;top:21px;display:block;width:15px;height:15px;margin-bottom:10px;background-color:#20a53a;border-radius:50%}.version .active[data-v-898a7868]:after{content:"";position:relative;top:5px;left:5px;display:block;height:5px;width:5px;border-radius:50%;background-color:#fff}.version .date[data-v-898a7868]{position:absolute;left:-90px;top:13px;line-height:30px;font-size:13px;color:var(--home-update-detail-date)}.version .text[data-v-898a7868]{margin-top:7px;margin-left:5px;margin-bottom:5px;padding-left:15px;line-height:32px;border-bottom:1px solid #ececec;font-size:15px;color:#20a53a}.version .content[data-v-898a7868]{line-height:24px;font-size:12px;min-height:40px;padding-left:20px;color:#888}
|
||||
@@ -1 +0,0 @@
|
||||
.card[data-v-76523929]{background:var(--home-update-detail-bg);margin-bottom:20px;border-radius:4px;padding:20px 24px}.version[data-v-76523929]{position:relative;margin-left:95px;padding:5px 0 0 2px;border-left:5px solid #e1e1e1}.version .active[data-v-76523929]{position:absolute;left:-10px;top:21px;display:block;width:15px;height:15px;margin-bottom:10px;background-color:#20a53a;border-radius:50%}.version .active[data-v-76523929]:after{content:"";position:relative;top:5px;left:5px;display:block;height:5px;width:5px;border-radius:50%;background-color:#fff}.version .date[data-v-76523929]{position:absolute;left:-90px;top:13px;line-height:30px;font-size:13px;color:var(--home-update-detail-date)}.version .text[data-v-76523929]{margin-top:7px;margin-left:5px;margin-bottom:5px;padding-left:15px;line-height:32px;border-bottom:1px solid #ececec;font-size:15px;color:#20a53a}.version .content[data-v-76523929]{line-height:24px;font-size:12px;min-height:40px;padding-left:20px;color:#888}
|
||||
@@ -0,0 +1 @@
|
||||
.n-alert[data-v-2ec41421]{--n-padding: 16px;--n-font-size: 12px}
|
||||
@@ -0,0 +1 @@
|
||||
.text[data-v-152fc3e0]{width:300px;cursor:default;--un-bg-opacity:1;background-color:rgb(247 247 247 / var(--un-bg-opacity));padding-left:10px;padding-right:10px;line-height:32px}.language[data-v-152fc3e0]{width:300px}.language[data-v-152fc3e0] .n-base-loading{display:none}.language[data-v-152fc3e0] .n-base-selection--disabled{--n-border: none;--n-text-color-disabled: #333333}.language[data-v-152fc3e0] .n-base-selection.n-base-selection--disabled .n-base-selection-label .n-base-selection-input,.language[data-v-152fc3e0] .n-base-selection.n-base-selection--disabled .n-base-selection-label{cursor:default}
|
||||
@@ -0,0 +1 @@
|
||||
.path-list[data-v-3fa6b1c3]{flex:1;display:flex;border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border);overflow:hidden;cursor:text}.path-list .path-item[data-v-3fa6b1c3]{flex-shrink:0;display:flex;align-items:center;height:100%;white-space:nowrap;cursor:pointer;transition:background-color .3s cubic-bezier(.4,0,.2,1)}.path-list .path-item .path-dir[data-v-3fa6b1c3]{display:flex;align-items:center;height:100%;line-height:1;padding:0 6px;border-left:1px solid transparent;color:var(--color-text-4);transition:border-color .3s cubic-bezier(.4,0,.2,1)}.path-list .path-item .path-arrow[data-v-3fa6b1c3]{display:flex;align-items:center;height:100%;padding:0 2px;border-left:1px solid transparent;border-right:1px solid transparent;font-size:14px;transition:border-color .3s cubic-bezier(.4,0,.2,1)}.path-list .path-item .path-arrow.reversal i[data-v-3fa6b1c3]{transform:rotate(180deg)}.path-list .path-item[data-v-3fa6b1c3]:hover{background-color:var(--button-bg-hover)}.path-list .path-item:hover .path-dir[data-v-3fa6b1c3],.path-list .path-item:hover .path-arrow[data-v-3fa6b1c3]{border-left:var(--button-border-hover)}.path-list .path-item:hover .path-arrow[data-v-3fa6b1c3]{border-right:var(--button-border-hover)}.nav-btn[data-v-3fa6b1c3]{width:36px;padding:0}.n-data-table[data-v-524d158d]{--n-border-radius: 0}.n-data-table[data-v-524d158d] .n-data-table-base-table-body .selected-row .n-data-table-td{background-color:var(--color-table-td-hover)}.folder-picker[data-v-524d158d]{display:flex;flex-direction:column;height:100%}.folder-picker .header[data-v-524d158d]{display:flex;flex-direction:column;gap:16px;padding:16px;border-bottom:1px solid var(--color-border)}.folder-picker .header .header-content[data-v-524d158d]{display:flex;align-items:center;justify-content:space-between;gap:16px}.folder-picker .header .navigator-wrapper[data-v-524d158d]{flex:1;overflow:hidden}.folder-picker .header .search-wrapper[data-v-524d158d]{width:240px;flex-shrink:0}.folder-picker .header .search-wrapper .search-icon[data-v-524d158d]{font-size:16px;cursor:pointer;color:var(--color-text-4)}.folder-picker .header .toolbar[data-v-524d158d]{display:flex;align-items:center;gap:12px}.folder-picker .main-content[data-v-524d158d]{display:flex;flex:1;overflow:hidden}.folder-picker .main-content .sidebar[data-v-524d158d]{display:flex;flex-direction:column;width:160px;border-right:1px solid var(--color-border);padding:12px 0}.folder-picker .main-content .sidebar .dist-list .dist-item[data-v-524d158d]{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 16px;line-height:1;cursor:pointer;transition:background-color .3s}.folder-picker .main-content .sidebar .dist-list .dist-item[data-v-524d158d]:hover{background-color:var(--color-bg-1)}.folder-picker .main-content .sidebar .dist-list .dist-item .disk-icon[data-v-524d158d]{font-size:18px;color:var(--color-text-4)}.folder-picker .main-content .sidebar .dist-list .dist-item .item-info[data-v-524d158d]{width:0;flex:1;display:flex;align-items:center;gap:4px}.folder-picker .main-content .sidebar .dist-list .dist-item .item-info .name[data-v-524d158d]{min-width:0}.folder-picker .main-content .sidebar .dist-list .dist-item .item-info .size[data-v-524d158d]{white-space:nowrap}.folder-picker .main-content .file-list-container[data-v-524d158d]{flex:1;display:flex;flex-direction:column;overflow:hidden}.folder-picker .main-content .file-list-container .file-table[data-v-524d158d]{flex:1}.folder-picker .folder-picker-footer[data-v-524d158d]{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;background-color:var(--modal-action-bg);border-top:1px solid var(--modal-action-top-border);border-bottom-left-radius:var(--n-border-radius);border-bottom-right-radius:var(--n-border-radius)}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.website-name[data-v-5103c19c]{display:flex;align-items:center;gap:8px;width:100%}.website-icon[data-v-5103c19c]{width:24px;flex-shrink:0;cursor:pointer}.website-info[data-v-5103c19c]{flex:1;min-width:0;overflow:hidden}.website-description[data-v-5103c19c]{margin-top:2px}.website-status[data-v-a66f2bce]{display:inline-flex;font-size:20px;cursor:pointer}.n-data-table[data-v-869664ba] .requests .n-data-table-th__title-wrapper{justify-content:center}
|
||||
@@ -1 +0,0 @@
|
||||
.full-btn[data-v-7977ade4]{position:absolute;top:1rem;right:1rem;opacity:0;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.3s}.group:hover .full-btn[data-v-7977ade4]{opacity:1}.bt-log[data-v-7977ade4]{height:100%;font-size:13px;overflow:auto;background:none;border:none;border-radius:0}.bt-log[data-v-7977ade4] .hljs{height:100%;border-radius:4px;white-space:pre-wrap}
|
||||
@@ -0,0 +1 @@
|
||||
[data-v-48740a5c] .n-data-table-expand-trigger{display:inline;padding-left:20px;margin-right:0;vertical-align:-.3em}
|
||||
@@ -1 +0,0 @@
|
||||
.website-name[data-v-5103c19c]{display:flex;align-items:center;gap:8px;width:100%}.website-icon[data-v-5103c19c]{width:24px;flex-shrink:0;cursor:pointer}.website-info[data-v-5103c19c]{flex:1;min-width:0;overflow:hidden}.website-description[data-v-5103c19c]{margin-top:2px}.website-status[data-v-a66f2bce]{display:inline-flex;font-size:20px;cursor:pointer}.n-data-table[data-v-911eed8c] .requests .n-data-table-th__title-wrapper{justify-content:center}
|
||||
@@ -1 +0,0 @@
|
||||
.text[data-v-2dca568f]{width:300px;cursor:default;--un-bg-opacity:1;background-color:rgb(247 247 247 / var(--un-bg-opacity));padding-left:10px;padding-right:10px;line-height:32px}.language[data-v-2dca568f]{width:300px}.language[data-v-2dca568f] .n-base-loading{display:none}.language[data-v-2dca568f] .n-base-selection--disabled{--n-border: none;--n-text-color-disabled: #333333}.language[data-v-2dca568f] .n-base-selection.n-base-selection--disabled .n-base-selection-label .n-base-selection-input,.language[data-v-2dca568f] .n-base-selection.n-base-selection--disabled .n-base-selection-label{cursor:default}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
[data-v-a9d890df] .n-collapse-item__header-main{margin-left:120px;--n-title-text-color: var(--color-primary)}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
.path-list[data-v-3fa6b1c3]{flex:1;display:flex;border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border);overflow:hidden;cursor:text}.path-list .path-item[data-v-3fa6b1c3]{flex-shrink:0;display:flex;align-items:center;height:100%;white-space:nowrap;cursor:pointer;transition:background-color .3s cubic-bezier(.4,0,.2,1)}.path-list .path-item .path-dir[data-v-3fa6b1c3]{display:flex;align-items:center;height:100%;line-height:1;padding:0 6px;border-left:1px solid transparent;color:var(--color-text-4);transition:border-color .3s cubic-bezier(.4,0,.2,1)}.path-list .path-item .path-arrow[data-v-3fa6b1c3]{display:flex;align-items:center;height:100%;padding:0 2px;border-left:1px solid transparent;border-right:1px solid transparent;font-size:14px;transition:border-color .3s cubic-bezier(.4,0,.2,1)}.path-list .path-item .path-arrow.reversal i[data-v-3fa6b1c3]{transform:rotate(180deg)}.path-list .path-item[data-v-3fa6b1c3]:hover{background-color:var(--button-bg-hover)}.path-list .path-item:hover .path-dir[data-v-3fa6b1c3],.path-list .path-item:hover .path-arrow[data-v-3fa6b1c3]{border-left:var(--button-border-hover)}.path-list .path-item:hover .path-arrow[data-v-3fa6b1c3]{border-right:var(--button-border-hover)}.nav-btn[data-v-3fa6b1c3]{width:36px;padding:0}.n-data-table[data-v-c8b9df0e]{--n-border-radius: 0}.n-data-table[data-v-c8b9df0e] .n-data-table-base-table-body .selected-row .n-data-table-td{background-color:var(--color-table-td-hover)}.folder-picker[data-v-c8b9df0e]{display:flex;flex-direction:column;height:100%}.folder-picker .header[data-v-c8b9df0e]{display:flex;flex-direction:column;gap:16px;padding:16px;border-bottom:1px solid var(--color-border)}.folder-picker .header .header-content[data-v-c8b9df0e]{display:flex;align-items:center;justify-content:space-between;gap:16px}.folder-picker .header .navigator-wrapper[data-v-c8b9df0e]{flex:1;overflow:hidden}.folder-picker .header .search-wrapper[data-v-c8b9df0e]{width:240px;flex-shrink:0}.folder-picker .header .search-wrapper .search-icon[data-v-c8b9df0e]{font-size:16px;cursor:pointer;color:var(--color-text-4)}.folder-picker .header .toolbar[data-v-c8b9df0e]{display:flex;align-items:center;gap:12px}.folder-picker .main-content[data-v-c8b9df0e]{display:flex;flex:1;overflow:hidden}.folder-picker .main-content .sidebar[data-v-c8b9df0e]{display:flex;flex-direction:column;width:160px;border-right:1px solid var(--color-border);padding:12px 0}.folder-picker .main-content .sidebar .dist-list .dist-item[data-v-c8b9df0e]{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 16px;line-height:1;cursor:pointer;transition:background-color .3s}.folder-picker .main-content .sidebar .dist-list .dist-item[data-v-c8b9df0e]:hover{background-color:var(--color-bg-1)}.folder-picker .main-content .sidebar .dist-list .dist-item .disk-icon[data-v-c8b9df0e]{font-size:18px;color:var(--color-text-4)}.folder-picker .main-content .sidebar .dist-list .dist-item .item-info[data-v-c8b9df0e]{width:0;flex:1;display:flex;align-items:center;gap:4px}.folder-picker .main-content .sidebar .dist-list .dist-item .item-info .name[data-v-c8b9df0e]{min-width:0}.folder-picker .main-content .sidebar .dist-list .dist-item .item-info .size[data-v-c8b9df0e]{white-space:nowrap}.folder-picker .main-content .file-list-container[data-v-c8b9df0e]{flex:1;display:flex;flex-direction:column;overflow:hidden}.folder-picker .main-content .file-list-container .file-table[data-v-c8b9df0e]{flex:1}.folder-picker .folder-picker-footer[data-v-c8b9df0e]{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;background-color:var(--modal-action-bg);border-top:1px solid var(--modal-action-top-border);border-bottom-left-radius:var(--n-border-radius);border-bottom-right-radius:var(--n-border-radius)}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.full-btn[data-v-da3c03af]{position:absolute;top:1rem;right:1rem;opacity:0;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.3s}.group:hover .full-btn[data-v-da3c03af]{opacity:1}.bt-log[data-v-da3c03af]{height:100%;font-size:13px;overflow:auto;background:none;border:none;border-radius:0}.bt-log[data-v-da3c03af] .hljs{height:100%;border-radius:4px;white-space:pre-wrap}
|
||||
@@ -0,0 +1 @@
|
||||
.update-new[data-v-c175b29b]{color:#555;border-radius:10px;overflow:hidden}.update-head[data-v-c175b29b]{display:flex;align-items:center;height:36px;padding:0 80px 0 20px;background-color:var(--home-update-head-bg);color:#fff;font-size:14px}.update-back[data-v-c175b29b]{position:absolute;width:100%;height:100px;background:var(--home-update-back-bg);z-index:10}.update-title[data-v-c175b29b]{margin-bottom:20px;display:flex;align-items:center;justify-content:center;font-size:22px;--un-text-opacity:1;color:rgb(86 86 86 / var(--un-text-opacity));font-weight:700}.update-latest-bg[data-v-c175b29b]{color:var(--home-update-latest-text-color);border:var(--home-update-latest-border);margin-left:32px;margin-right:32px;border-radius:2px;background-color:var(--home-update-latest-bg);padding:16px;line-height:24px}
|
||||
@@ -1 +0,0 @@
|
||||
.update-new[data-v-ff930ff0]{color:#555;border-radius:10px;overflow:hidden}.update-head[data-v-ff930ff0]{display:flex;align-items:center;height:36px;padding:0 80px 0 20px;background-color:var(--home-update-head-bg);color:#fff;font-size:14px}.update-back[data-v-ff930ff0]{position:absolute;width:100%;height:100px;background:var(--home-update-back-bg);z-index:10}.update-title[data-v-ff930ff0]{margin-bottom:20px;display:flex;align-items:center;justify-content:center;font-size:22px;--un-text-opacity:1;color:rgb(86 86 86 / var(--un-text-opacity));font-weight:700}.update-latest-bg[data-v-ff930ff0]{color:var(--home-update-latest-text-color);border:var(--home-update-latest-border);margin-left:32px;margin-right:32px;border-radius:2px;background-color:var(--home-update-latest-bg);padding:16px;line-height:24px}
|
||||
@@ -1 +0,0 @@
|
||||
.update-old[data-v-34e59abc]{position:relative;background-size:101%;background-image:var(--home-update-bg-url);background-repeat:no-repeat;background-position:-2px 0;color:#555;border-radius:10px}.update-logs[data-v-34e59abc]{color:var(--home-update-content-text);max-height:200px;overflow:auto;padding-right:10px;font-size:12px;line-height:24px;word-break:break-word}.update-logs[data-v-34e59abc]::-webkit-scrollbar{width:16px;height:1px;background-color:#f1f1f1}.update-logs[data-v-34e59abc]::-webkit-scrollbar-button:start{height:15px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAABHNCSVQICAgIfAhkiAAAAI5JREFUKJHNkjEKwzAMRX9LQJu3P/ouuVl6tPYsGr1p09QudjC264aGQj8YC5n3EMIXVX3iRK5n4N8LRAQi8p1AREASJKeSoaDAKSWYGUIIxwU17O4wM7g7SB4T1HDJTLK0jRauJaNddBOM4Nnbn38kAPd83qZd4i3fjxhjB6rqmssNwLo3VXX7MEmXInsB0glBgYCs2ecAAAAASUVORK5CYII=) no-repeat}.update-logs[data-v-34e59abc]::-webkit-scrollbar-button:end{height:15px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAABHNCSVQICAgIfAhkiAAAAJdJREFUKJG9kjEOwjAMRT8IyZu3jjkLuRlws9zlj96yeYKlqQqNG6Ei/hbH7+lLCQCAZMaXIXkjmU8kn/OsAHgAQEqpdIAM4Dof722+FvTSRGHDy6BpCLacRwv/F4hIuNy72whUFarahadpGgvMDCLyJmmwmY0Fn5I17O6b3fAZa61L5QjeFbj7UjmCdwUjsOUn/6Ac4MsLGUM9V8RBBeQAAAAASUVORK5CYII=) no-repeat}.update-logs[data-v-34e59abc]::-webkit-scrollbar-thumb{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAyCAYAAABVl1tcAAAABHNCSVQICAgIfAhkiAAAAk1JREFUSIntl11O20AURs+YieMkLnVDhEBI4aGkIsoS2ABIWQPdBKyi3US7BqR2AywhCiJU/VPVqg1pihKwkynTB7A7dsYUpX2qMk8e+zvnXs9E0ViQGb1er6iU2Afd1rADIOAYxNH19eMXrZaYmHlhTjrd0wOBeJaVmkOjD1vNJ89nBN2Ts1da69274AQS4nVze2sPwIkr3xcG0FrvdrqnBwCi09GucM6i+8LmKEg8x3HePJ0HBlBK7Dug2/MKQLedeKvmwmHHAVbm74AV5y9g4HYbF4KFYCH47wRSyj8C2UxGsITnFXNhzysi5VK+IAyjJGiDzYxVYAZ8v5KpLGdgAOtLh2GElD/x/QpKKaSUjEZjWzTdgesWkmulFGEY4XnFFGxmLAI31bpSiuHwIpn7fgXXdfMFcSVTYsJmxiowA9VqkKlcsK6DdRFHozGuW6BaDZhMprhugcFgaIumOzD3fzKZMhqNeeBXUnD2NzIjCILllOTzl6/JPAiW7xbEK25KTNjMWAVmYH1tNQWXPG8GhpxFHA4vCL2I9bVVrsKQkuelXiW3g3K5lFyHYcT34Q8eBQ9TsJmxCmq1akry9t3HZF6rVa2C83jS7w+SYHbE9+LM7Th3bo6xv0cc2KxvpOBKuZSFEXDsgDjKVuv3B3zrD9isbyTw+w+fZroCcSR6vV5xqggtTymXS2zWN+ienNkeo6+3ik6j0Yg0+tAWuLy8yofRh62WmPybwzZAc3trL6+TbOUYhsz3AkCno92b8/PsB4eU+mWj0Uj9s/4CON7xEXIyO34AAAAASUVORK5CYII=) no-repeat;background-position:bottom;border-radius:50px;min-height:50px;background-color:#d6d7db}.update-logs[data-v-34e59abc]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:0}.update-tips[data-v-34e59abc]{color:var(--home-update-content-text);font-size:12px;line-height:24px}.update-btn[data-v-34e59abc]{display:flex;justify-content:center;padding-bottom:24px}.update-btn .n-button[data-v-34e59abc]{--n-width: 130px;--n-height: 38px;--n-font-size: 13px}.update-btn .ignore[data-v-34e59abc]{--n-color: #f0f0f0;--n-text-color: #999999;--n-ripple-color: #d4d4d4;--n-border: 1px solid #f0f0f0;--n-color-hover: #d4d4d4;--n-border-hover: 1px solid #d4d4d4;--n-text-color-hover: #999999;--n-color-focus: #d4d4d4;--n-border-focus: 1px solid #d4d4d4;--n-text-color-focus: #999999;--n-color-pressed: #d4d4d4;--n-border-pressed: 1px solid #d4d4d4;--n-text-color-pressed: #999999}
|
||||
@@ -0,0 +1 @@
|
||||
.update-old[data-v-4a118233]{position:relative;background-size:101%;background-image:var(--home-update-bg-url);background-repeat:no-repeat;background-position:-2px 0;color:#555;border-radius:10px}.update-logs[data-v-4a118233]{color:var(--home-update-content-text);max-height:200px;overflow:auto;padding-right:10px;font-size:12px;line-height:24px;word-break:break-word}.update-logs[data-v-4a118233]::-webkit-scrollbar{width:16px;height:1px;background-color:#f1f1f1}.update-logs[data-v-4a118233]::-webkit-scrollbar-button:start{height:15px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAABHNCSVQICAgIfAhkiAAAAI5JREFUKJHNkjEKwzAMRX9LQJu3P/ouuVl6tPYsGr1p09QudjC264aGQj8YC5n3EMIXVX3iRK5n4N8LRAQi8p1AREASJKeSoaDAKSWYGUIIxwU17O4wM7g7SB4T1HDJTLK0jRauJaNddBOM4Nnbn38kAPd83qZd4i3fjxhjB6rqmssNwLo3VXX7MEmXInsB0glBgYCs2ecAAAAASUVORK5CYII=) no-repeat}.update-logs[data-v-4a118233]::-webkit-scrollbar-button:end{height:15px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAAABHNCSVQICAgIfAhkiAAAAJdJREFUKJG9kjEOwjAMRT8IyZu3jjkLuRlws9zlj96yeYKlqQqNG6Ei/hbH7+lLCQCAZMaXIXkjmU8kn/OsAHgAQEqpdIAM4Dof722+FvTSRGHDy6BpCLacRwv/F4hIuNy72whUFarahadpGgvMDCLyJmmwmY0Fn5I17O6b3fAZa61L5QjeFbj7UjmCdwUjsOUn/6Ac4MsLGUM9V8RBBeQAAAAASUVORK5CYII=) no-repeat}.update-logs[data-v-4a118233]::-webkit-scrollbar-thumb{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAyCAYAAABVl1tcAAAABHNCSVQICAgIfAhkiAAAAk1JREFUSIntl11O20AURs+YieMkLnVDhEBI4aGkIsoS2ABIWQPdBKyi3US7BqR2AywhCiJU/VPVqg1pihKwkynTB7A7dsYUpX2qMk8e+zvnXs9E0ViQGb1er6iU2Afd1rADIOAYxNH19eMXrZaYmHlhTjrd0wOBeJaVmkOjD1vNJ89nBN2Ts1da69274AQS4nVze2sPwIkr3xcG0FrvdrqnBwCi09GucM6i+8LmKEg8x3HePJ0HBlBK7Dug2/MKQLedeKvmwmHHAVbm74AV5y9g4HYbF4KFYCH47wRSyj8C2UxGsITnFXNhzysi5VK+IAyjJGiDzYxVYAZ8v5KpLGdgAOtLh2GElD/x/QpKKaSUjEZjWzTdgesWkmulFGEY4XnFFGxmLAI31bpSiuHwIpn7fgXXdfMFcSVTYsJmxiowA9VqkKlcsK6DdRFHozGuW6BaDZhMprhugcFgaIumOzD3fzKZMhqNeeBXUnD2NzIjCILllOTzl6/JPAiW7xbEK25KTNjMWAVmYH1tNQWXPG8GhpxFHA4vCL2I9bVVrsKQkuelXiW3g3K5lFyHYcT34Q8eBQ9TsJmxCmq1akry9t3HZF6rVa2C83jS7w+SYHbE9+LM7Th3bo6xv0cc2KxvpOBKuZSFEXDsgDjKVuv3B3zrD9isbyTw+w+fZroCcSR6vV5xqggtTymXS2zWN+ienNkeo6+3ik6j0Yg0+tAWuLy8yofRh62WmPybwzZAc3trL6+TbOUYhsz3AkCno92b8/PsB4eU+mWj0Uj9s/4CON7xEXIyO34AAAAASUVORK5CYII=) no-repeat;background-position:bottom;border-radius:50px;min-height:50px;background-color:#d6d7db}.update-logs[data-v-4a118233]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:0}.update-tips[data-v-4a118233]{color:var(--home-update-content-text);font-size:12px;line-height:24px}.update-btn[data-v-4a118233]{display:flex;justify-content:center;padding-bottom:24px}.update-btn .n-button[data-v-4a118233]{--n-width: 130px;--n-height: 38px;--n-font-size: 13px}.update-btn .ignore[data-v-4a118233]{--n-color: #f0f0f0;--n-text-color: #999999;--n-ripple-color: #d4d4d4;--n-border: 1px solid #f0f0f0;--n-color-hover: #d4d4d4;--n-border-hover: 1px solid #d4d4d4;--n-text-color-hover: #999999;--n-color-focus: #d4d4d4;--n-border-focus: 1px solid #d4d4d4;--n-text-color-focus: #999999;--n-color-pressed: #d4d4d4;--n-border-pressed: 1px solid #d4d4d4;--n-text-color-pressed: #999999}
|
||||
@@ -0,0 +1 @@
|
||||
.progress-box[data-v-ba679969]{border:1px solid var(--site-task-progress-border)}
|
||||
@@ -1 +0,0 @@
|
||||
.propress-box[data-v-939603d7]{border:1px solid var(--site-task-progress-border)}
|
||||
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index-B6Y_2X_r.js?v=1773287522785","js/vue-core-DJjvd5ZC.js?v=1773287522785","js/prismjs-BZPoR7_J.js?v=1773287522785","css/prismjs-D-3FhBe_.css?v=1773287522785","js/index-BTglIPU2.js?v=1773287522785","js/naive-ui--dJnpVcV.js?v=1773287522785","css/index-DEM1fxGq.css?v=1773287522785","js/files-BUbkyTRl.js?v=1773287522785","css/index-FEE1lr_F.css?v=1773287522785"])))=>i.map(i=>d[i]);
|
||||
import{w as T,h as A,as as f,n as R,l as U,x as V,p as q,P as D,m as E}from"./index-BTglIPU2.js?v=1773287522785";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{u as L}from"./useTableColumns-DDeyYvje.js?v=1773287522785";import{au as O,b as j,B as I}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as $,R as z,i as X,r as u,$ as Z,Z as G,a0 as n,a9 as c,_ as i,S as t,j as H,aa as k,X as g,F as J,a3 as K}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";const Q={class:"p-20px"},W={class:"flex items-center gap-16px mb-16px"},Y={class:"p-20px"},ee={class:"mb-16px text-14px"},te={class:"flex items-center gap-20px"},ae={class:"text-13px"},ke=$({__name:"Backup",setup(oe,{expose:x}){const{t:e}=z(),w=X("fileStore"),{backupForm:s}=w,p=u(!1),_=u(!1),r=u([]);x({open(){s.value.path="",p.value=!0,d()},close(){p.value=!1,r.value=[]}});const m=u(!1),M=u([{key:"time",title:e("file.backupModal.backupTime"),width:160,render:a=>T(a.time)},{key:"path",title:e("file.backupModal.backupPath"),ellipsis:{tooltip:!0}},{key:"name",title:e("file.backupModal.backupName"),width:120,ellipsis:{tooltip:!0},render:a=>a.name||"--"},L({width:100,options:a=>[{label:e("Public.Btn.Delete"),onClick:()=>{A({title:e("file.backupModal.deleteBackup"),content:e("file.backupModal.deleteConfirm"),onConfirm:async()=>{await f.post("/files?action=del_path_premissions",{id:a.id},{requestOptions:{loading:e("file.backupModal.deletingBackup"),successMessage:!0}}),d()}})}}]})]);function B(){q({title:e("Component.SelectPath.index_7"),width:750,height:640,footer:!1,data:{path:s.value.path,callback:a=>{s.value.path=a}},component:K(()=>D(()=>import("./index-B6Y_2X_r.js?v=1773287522785"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))})}function y(){s.value.path?m.value=!0:E.warning(e("file.backupModal.pleaseSelectPath"))}async function d(){try{_.value=!0;const{message:a}=await f.post("/files?action=get_all_back");R(a)?r.value=a.map(o=>({id:Number(o[0]),time:Number(o[2]),name:o[1],path:o[3]})):r.value=[]}finally{_.value=!1}}async function C(){try{await f.post("/files?action=back_path_permissions",s.value,{requestOptions:{loading:e("file.backupModal.executingBackup"),successMessage:!0}}),d(),s.value.path="",s.value.remark=""}catch(a){console.warn(a)}}return(a,o)=>{const h=j,N=U,b=I,P=O,S=F,v=V;return Z(),G(J,null,[n(v,{show:t(p),"onUpdate:show":o[1]||(o[1]=l=>g(p)?p.value=l:null),title:t(e)("file.backupModal.title"),width:"700"},{default:c(()=>[i("div",Q,[i("div",W,[n(P,null,{default:c(()=>[n(h,{value:t(s).path,"onUpdate:value":o[0]||(o[0]=l=>t(s).path=l)},null,8,["value"]),n(b,{onClick:B},{icon:c(()=>[n(N,{name:"file-dir",size:"20"})]),_:1})]),_:1}),n(b,{type:"primary",onClick:y},{default:c(()=>[H(k(t(e)("file.backupModal.backupButton")),1)]),_:1})]),n(S,{loading:t(_),"max-height":370,data:t(r),columns:t(M)},null,8,["loading","data","columns"])])]),_:1},8,["show","title"]),n(v,{show:t(m),"onUpdate:show":o[3]||(o[3]=l=>g(m)?m.value=l:null),title:t(e)("file.backupModal.confirmTitle"),width:320,footer:!0,onConfirm:C},{default:c(()=>[i("div",Y,[i("div",ee,k(t(e)("file.backupModal.enterBackupName")),1),i("div",te,[i("div",ae,k(t(e)("file.backupModal.remarks")),1),n(h,{class:"flex-1",value:t(s).remark,"onUpdate:value":o[2]||(o[2]=l=>t(s).remark=l)},null,8,["value"])])])]),_:1},8,["show","title"])],64)}}});export{ke as default};
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index-Cs5dB_8a.js?v=1774508183068","js/vue-core-BlDeWrD6.js?v=1774508183068","js/prismjs-BZPoR7_J.js?v=1774508183068","css/prismjs-D-3FhBe_.css?v=1774508183068","js/index-LQ-JIYiv.js?v=1774508183068","js/naive-ui-BjvXgNtF.js?v=1774508183068","css/index-Bu1Pw919.css?v=1774508183068","js/files-B-5OIeVB.js?v=1774508183068","css/index-BZ6kzE9A.css?v=1774508183068"])))=>i.map(i=>d[i]);
|
||||
import{x as T,h as A,av as f,n as R,l as U,y as V,p as q,S as D,m as E}from"./index-LQ-JIYiv.js?v=1774508183068";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang-BRQncOow.js?v=1774508183068";import{u as L}from"./useTableColumns-BpMo4f8r.js?v=1774508183068";import{au as O,b as j,B as I}from"./naive-ui-BjvXgNtF.js?v=1774508183068";import{k as $,R as z,i as X,r as u,$ as Z,Z as G,a0 as s,a9 as c,_ as i,S as t,j as H,aa as k,X as g,F as J,a3 as K}from"./vue-core-BlDeWrD6.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./data-DKqR3z3t.js?v=1774508183068";import"./index-DZCznq9q.js?v=1774508183068";import"./copy-DTOfN-dY.js?v=1774508183068";import"./index-Dd5dC2sI.js?v=1774508183068";import"./index.vue_vue_type_script_setup_true_lang-CbM1JeA4.js?v=1774508183068";import"./index-eoi-RqNz.js?v=1774508183068";const Q={class:"p-20px"},W={class:"flex items-center gap-16px mb-16px"},Y={class:"p-20px"},ee={class:"mb-16px text-14px"},te={class:"flex items-center gap-20px"},ae={class:"text-13px"},ke=$({__name:"Backup",setup(oe,{expose:x}){const{t:e}=z(),w=X("fileStore"),{backupForm:n}=w,p=u(!1),_=u(!1),r=u([]);x({open(){n.value.path="",p.value=!0,d()},close(){p.value=!1,r.value=[]}});const m=u(!1),M=u([{key:"time",title:e("file.backupModal.backupTime"),width:160,render:a=>T(a.time)},{key:"path",title:e("file.backupModal.backupPath"),ellipsis:{tooltip:!0}},{key:"name",title:e("file.backupModal.backupName"),width:120,ellipsis:{tooltip:!0},render:a=>a.name||"--"},L({width:100,options:a=>[{label:e("Public.Btn.Delete"),onClick:()=>{A({title:e("file.backupModal.deleteBackup"),content:e("file.backupModal.deleteConfirm"),onConfirm:async()=>{await f.post("/files?action=del_path_premissions",{id:a.id},{requestOptions:{loading:e("file.backupModal.deletingBackup"),successMessage:!0}}),d()}})}}]})]);function B(){q({title:e("Component.SelectPath.index_7"),width:750,height:640,footer:!1,data:{path:n.value.path,callback:a=>{n.value.path=a}},component:K(()=>D(()=>import("./index-Cs5dB_8a.js?v=1774508183068"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))})}function y(){n.value.path?m.value=!0:E.warning(e("file.backupModal.pleaseSelectPath"))}async function d(){try{_.value=!0;const{message:a}=await f.post("/files?action=get_all_back");R(a)?r.value=a.map(o=>({id:Number(o[0]),time:Number(o[2]),name:o[1],path:o[3]})):r.value=[]}finally{_.value=!1}}async function C(){try{await f.post("/files?action=back_path_permissions",n.value,{requestOptions:{loading:e("file.backupModal.executingBackup"),successMessage:!0}}),d(),n.value.path="",n.value.remark=""}catch(a){console.warn(a)}}return(a,o)=>{const h=j,N=U,b=I,S=O,P=F,v=V;return Z(),G(J,null,[s(v,{show:t(p),"onUpdate:show":o[1]||(o[1]=l=>g(p)?p.value=l:null),title:t(e)("file.backupModal.title"),width:"700"},{default:c(()=>[i("div",Q,[i("div",W,[s(S,null,{default:c(()=>[s(h,{value:t(n).path,"onUpdate:value":o[0]||(o[0]=l=>t(n).path=l)},null,8,["value"]),s(b,{onClick:B},{icon:c(()=>[s(N,{name:"file-dir",size:"20"})]),_:1})]),_:1}),s(b,{type:"primary",onClick:y},{default:c(()=>[H(k(t(e)("file.backupModal.backupButton")),1)]),_:1})]),s(P,{loading:t(_),"max-height":370,data:t(r),columns:t(M)},null,8,["loading","data","columns"])])]),_:1},8,["show","title"]),s(v,{show:t(m),"onUpdate:show":o[3]||(o[3]=l=>g(m)?m.value=l:null),title:t(e)("file.backupModal.confirmTitle"),width:320,footer:!0,onConfirm:C},{default:c(()=>[i("div",Y,[i("div",ee,k(t(e)("file.backupModal.enterBackupName")),1),i("div",te,[i("div",ae,k(t(e)("file.backupModal.remarks")),1),s(h,{class:"flex-1",value:t(n).remark,"onUpdate:value":o[2]||(o[2]=l=>t(n).remark=l)},null,8,["value"])])])]),_:1},8,["show","title"])],64)}}});export{ke as default};
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785"],(function(e,a){"use strict";var l,t,i,n,u,s,c,o,p,d,r,m,f,k,v,h,g,b,_,y,x,w,j,M,B,C,P,S,N;return{setters:[e=>{l=e.w,t=e.h,i=e.as,n=e.n,u=e.l,s=e.x,c=e.p,o=e.P,p=e.m},e=>{d=e._},e=>{r=e.u},e=>{m=e.au,f=e.b,k=e.B},e=>{v=e.k,h=e.R,g=e.i,b=e.r,_=e.$,y=e.Z,x=e.a0,w=e.a9,j=e._,M=e.S,B=e.j,C=e.aa,P=e.X,S=e.F,N=e.a3},null,null,null,null,null,null,null],execute:function(){const U={class:"p-20px"},T={class:"flex items-center gap-16px mb-16px"},q={class:"p-20px"},F={class:"mb-16px text-14px"},O={class:"flex items-center gap-20px"},z={class:"text-13px"};e("default",v({__name:"Backup",setup(e,{expose:v}){const{t:D}=h(),I=g("fileStore"),{backupForm:R}=I,X=b(!1),Z=b(!1),$=b([]);v({open(){R.value.path="",X.value=!0,J()},close(){X.value=!1,$.value=[]}});const A=b(!1),E=b([{key:"time",title:D("file.backupModal.backupTime"),width:160,render:e=>l(e.time)},{key:"path",title:D("file.backupModal.backupPath"),ellipsis:{tooltip:!0}},{key:"name",title:D("file.backupModal.backupName"),width:120,ellipsis:{tooltip:!0},render:e=>e.name||"--"},r({width:100,options:e=>[{label:D("Public.Btn.Delete"),onClick:()=>{t({title:D("file.backupModal.deleteBackup"),content:D("file.backupModal.deleteConfirm"),onConfirm:async()=>{await i.post("/files?action=del_path_premissions",{id:e.id},{requestOptions:{loading:D("file.backupModal.deletingBackup"),successMessage:!0}}),J()}})}}]})]);function G(){c({title:D("Component.SelectPath.index_7"),width:750,height:640,footer:!1,data:{path:R.value.path,callback:e=>{R.value.path=e}},component:N((()=>o((()=>a.import("./index-legacy-W_PN01QM.js?v=1773287522785")),void 0)))})}function H(){R.value.path?A.value=!0:p.warning(D("file.backupModal.pleaseSelectPath"))}async function J(){try{Z.value=!0;const{message:e}=await i.post("/files?action=get_all_back");n(e)?$.value=e.map((e=>({id:Number(e[0]),time:Number(e[2]),name:e[1],path:e[3]}))):$.value=[]}finally{Z.value=!1}}async function K(){try{await i.post("/files?action=back_path_permissions",R.value,{requestOptions:{loading:D("file.backupModal.executingBackup"),successMessage:!0}}),J(),R.value.path="",R.value.remark=""}catch(e){console.warn(e)}}return(e,a)=>{const l=f,t=u,i=k,n=m,c=d,o=s;return _(),y(S,null,[x(o,{show:M(X),"onUpdate:show":a[1]||(a[1]=e=>P(X)?X.value=e:null),title:M(D)("file.backupModal.title"),width:"700"},{default:w((()=>[j("div",U,[j("div",T,[x(n,null,{default:w((()=>[x(l,{value:M(R).path,"onUpdate:value":a[0]||(a[0]=e=>M(R).path=e)},null,8,["value"]),x(i,{onClick:G},{icon:w((()=>[x(t,{name:"file-dir",size:"20"})])),_:1})])),_:1}),x(i,{type:"primary",onClick:H},{default:w((()=>[B(C(M(D)("file.backupModal.backupButton")),1)])),_:1})]),x(c,{loading:M(Z),"max-height":370,data:M($),columns:M(E)},null,8,["loading","data","columns"])])])),_:1},8,["show","title"]),x(o,{show:M(A),"onUpdate:show":a[3]||(a[3]=e=>P(A)?A.value=e:null),title:M(D)("file.backupModal.confirmTitle"),width:320,footer:!0,onConfirm:K},{default:w((()=>[j("div",q,[j("div",F,C(M(D)("file.backupModal.enterBackupName")),1),j("div",O,[j("div",z,C(M(D)("file.backupModal.remarks")),1),x(l,{class:"flex-1",value:M(R).remark,"onUpdate:value":a[2]||(a[2]=e=>M(R).remark=e)},null,8,["value"])])])])),_:1},8,["show","title"])],64)}}}))}}}));
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./index-legacy-3bAYElO-.js?v=1774508183068","./index.vue_vue_type_script_setup_true_lang-legacy-BGVbyVHg.js?v=1774508183068","./useTableColumns-legacy-fw1KVAx-.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068","./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./data-legacy-CjpXZmIa.js?v=1774508183068","./index-legacy-CpMl9Yix.js?v=1774508183068","./copy-legacy-DQuL_OmY.js?v=1774508183068","./index-legacy-DOsTWPyk.js?v=1774508183068","./index.vue_vue_type_script_setup_true_lang-legacy--MJDSWZx.js?v=1774508183068","./index-legacy-DmGvnsGO.js?v=1774508183068"],(function(e,a){"use strict";var l,t,i,n,u,s,c,o,p,d,r,m,f,v,k,h,g,b,y,_,x,w,j,M,B,C,S,N,P;return{setters:[e=>{l=e.x,t=e.h,i=e.av,n=e.n,u=e.l,s=e.y,c=e.p,o=e.S,p=e.m},e=>{d=e._},e=>{r=e.u},e=>{m=e.au,f=e.b,v=e.B},e=>{k=e.k,h=e.R,g=e.i,b=e.r,y=e.$,_=e.Z,x=e.a0,w=e.a9,j=e._,M=e.S,B=e.j,C=e.aa,S=e.X,N=e.F,P=e.a3},null,null,null,null,null,null,null],execute:function(){const U={class:"p-20px"},T={class:"flex items-center gap-16px mb-16px"},q={class:"p-20px"},F={class:"mb-16px text-14px"},O={class:"flex items-center gap-20px"},z={class:"text-13px"};e("default",k({__name:"Backup",setup(e,{expose:k}){const{t:D}=h(),G=g("fileStore"),{backupForm:R}=G,X=b(!1),Z=b(!1),$=b([]);k({open(){R.value.path="",X.value=!0,J()},close(){X.value=!1,$.value=[]}});const A=b(!1),E=b([{key:"time",title:D("file.backupModal.backupTime"),width:160,render:e=>l(e.time)},{key:"path",title:D("file.backupModal.backupPath"),ellipsis:{tooltip:!0}},{key:"name",title:D("file.backupModal.backupName"),width:120,ellipsis:{tooltip:!0},render:e=>e.name||"--"},r({width:100,options:e=>[{label:D("Public.Btn.Delete"),onClick:()=>{t({title:D("file.backupModal.deleteBackup"),content:D("file.backupModal.deleteConfirm"),onConfirm:async()=>{await i.post("/files?action=del_path_premissions",{id:e.id},{requestOptions:{loading:D("file.backupModal.deletingBackup"),successMessage:!0}}),J()}})}}]})]);function H(){c({title:D("Component.SelectPath.index_7"),width:750,height:640,footer:!1,data:{path:R.value.path,callback:e=>{R.value.path=e}},component:P((()=>o((()=>a.import("./index-legacy-DQ9Fq-kQ.js?v=1774508183068")),void 0)))})}function I(){R.value.path?A.value=!0:p.warning(D("file.backupModal.pleaseSelectPath"))}async function J(){try{Z.value=!0;const{message:e}=await i.post("/files?action=get_all_back");n(e)?$.value=e.map((e=>({id:Number(e[0]),time:Number(e[2]),name:e[1],path:e[3]}))):$.value=[]}finally{Z.value=!1}}async function K(){try{await i.post("/files?action=back_path_permissions",R.value,{requestOptions:{loading:D("file.backupModal.executingBackup"),successMessage:!0}}),J(),R.value.path="",R.value.remark=""}catch(e){console.warn(e)}}return(e,a)=>{const l=f,t=u,i=v,n=m,c=d,o=s;return y(),_(N,null,[x(o,{show:M(X),"onUpdate:show":a[1]||(a[1]=e=>S(X)?X.value=e:null),title:M(D)("file.backupModal.title"),width:"700"},{default:w((()=>[j("div",U,[j("div",T,[x(n,null,{default:w((()=>[x(l,{value:M(R).path,"onUpdate:value":a[0]||(a[0]=e=>M(R).path=e)},null,8,["value"]),x(i,{onClick:H},{icon:w((()=>[x(t,{name:"file-dir",size:"20"})])),_:1})])),_:1}),x(i,{type:"primary",onClick:I},{default:w((()=>[B(C(M(D)("file.backupModal.backupButton")),1)])),_:1})]),x(c,{loading:M(Z),"max-height":370,data:M($),columns:M(E)},null,8,["loading","data","columns"])])])),_:1},8,["show","title"]),x(o,{show:M(A),"onUpdate:show":a[3]||(a[3]=e=>S(A)?A.value=e:null),title:M(D)("file.backupModal.confirmTitle"),width:320,footer:!0,onConfirm:K},{default:w((()=>[j("div",q,[j("div",F,C(M(D)("file.backupModal.enterBackupName")),1),j("div",O,[j("div",z,C(M(D)("file.backupModal.remarks")),1),x(l,{class:"flex-1",value:M(R).remark,"onUpdate:value":a[2]||(a[2]=e=>M(R).remark=e)},null,8,["value"])])])])),_:1},8,["show","title"])],64)}}}))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
import{m as p,c as f}from"./index-BTglIPU2.js?v=1773287522785";import{k as v,R as x,r,$ as C,Z as h,_ as o,aa as l,S as i,a0 as y,X as M}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{_ as N}from"./naive-ui--dJnpVcV.js?v=1773287522785";const V={class:"calc-verify-box"},b={class:"mx-12px"},g={class:"w-80px ml-12px"},k=v({__name:"CalcVerify",setup(w,{expose:u}){const{t:d}=x(),a=r(0),s=r(0),n=r(null);function m(){a.value=Math.round(Math.random()*9+1),s.value=Math.round(Math.random()*9+1)}return m(),u({validate(){return new Promise((t,e)=>{n.value!==a.value+s.value&&(p.error(d("Component.Confirm.index_5")),e()),t(!0)})}}),(t,e)=>{const c=N;return C(),h("div",V,[o("div",null,l(t.$t("Component.Confirm.index_4")),1),o("div",b,l(i(a))+" + "+l(i(s)),1),e[1]||(e[1]=o("div",null,"=",-1)),o("div",g,[y(c,{value:i(n),"onUpdate:value":e[0]||(e[0]=_=>M(n)?n.value=_:null),"show-button":!1,placeholder:""},null,8,["value"])])])}}}),S=f(k,[["__scopeId","data-v-366c5492"]]);export{S as C};
|
||||
@@ -0,0 +1 @@
|
||||
import{m as p,c as f}from"./index-LQ-JIYiv.js?v=1774508183068";import{k as v,R as x,r,$ as C,Z as h,_ as o,aa as l,S as i,a0 as y,X as M}from"./vue-core-BlDeWrD6.js?v=1774508183068";import{_ as N}from"./naive-ui-BjvXgNtF.js?v=1774508183068";const V={class:"calc-verify-box"},b={class:"mx-12px"},g={class:"w-80px ml-12px"},k=v({__name:"CalcVerify",setup(w,{expose:u}){const{t:d}=x(),a=r(0),s=r(0),n=r(null);function m(){a.value=Math.round(Math.random()*9+1),s.value=Math.round(Math.random()*9+1)}return m(),u({validate(){return new Promise((t,e)=>{n.value!==a.value+s.value&&(p.error(d("Component.Confirm.index_5")),e()),t(!0)})}}),(t,e)=>{const c=N;return C(),h("div",V,[o("div",null,l(t.$t("Component.Confirm.index_4")),1),o("div",b,l(i(a))+" + "+l(i(s)),1),e[1]||(e[1]=o("div",null,"=",-1)),o("div",g,[y(c,{value:i(n),"onUpdate:value":e[0]||(e[0]=_=>M(n)?n.value=_:null),"show-button":!1,placeholder:""},null,8,["value"])])])}}}),S=f(k,[["__scopeId","data-v-366c5492"]]);export{S as C};
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,a){"use strict";var n,t,l,r,o,i,c,u,s,d,v,p,m;return{setters:[e=>{n=e.m,t=e.c},e=>{l=e.k,r=e.R,o=e.r,i=e.$,c=e.Z,u=e._,s=e.aa,d=e.S,v=e.a0,p=e.X},e=>{m=e._}],execute:function(){var a=document.createElement("style");a.textContent=".calc-verify-box[data-v-366c5492]{margin-left:12px;margin-right:12px;margin-top:24px;height:40px;display:flex;align-items:center;padding-left:48px;font-size:14px;background-color:var(--site-confirm-calc-box-bg)}\n/*$vite$:1*/",document.head.appendChild(a);const x={class:"calc-verify-box"},g={class:"mx-12px"},f={class:"w-80px ml-12px"};e("C",t(l({__name:"CalcVerify",setup(e,{expose:a}){const{t:t}=r(),l=o(0),h=o(0),y=o(null);return l.value=Math.round(9*Math.random()+1),h.value=Math.round(9*Math.random()+1),a({validate:()=>new Promise(((e,a)=>{y.value!==l.value+h.value&&(n.error(t("Component.Confirm.index_5")),a()),e(!0)}))}),(e,a)=>{const n=m;return i(),c("div",x,[u("div",null,s(e.$t("Component.Confirm.index_4")),1),u("div",g,s(d(l))+" + "+s(d(h)),1),a[1]||(a[1]=u("div",null,"=",-1)),u("div",f,[v(n,{value:d(y),"onUpdate:value":a[0]||(a[0]=e=>p(y)?y.value=e:null),"show-button":!1,placeholder:""},null,8,["value"])])])}}}),[["__scopeId","data-v-366c5492"]]))}}}));
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./index-legacy-3bAYElO-.js?v=1774508183068","./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068"],(function(e,a){"use strict";var n,t,l,r,o,i,c,u,s,d,v,p,m;return{setters:[e=>{n=e.m,t=e.c},e=>{l=e.k,r=e.R,o=e.r,i=e.$,c=e.Z,u=e._,s=e.aa,d=e.S,v=e.a0,p=e.X},e=>{m=e._}],execute:function(){var a=document.createElement("style");a.textContent=".calc-verify-box[data-v-366c5492]{margin-left:12px;margin-right:12px;margin-top:24px;height:40px;display:flex;align-items:center;padding-left:48px;font-size:14px;background-color:var(--site-confirm-calc-box-bg)}\n/*$vite$:1*/",document.head.appendChild(a);const x={class:"calc-verify-box"},g={class:"mx-12px"},f={class:"w-80px ml-12px"};e("C",t(l({__name:"CalcVerify",setup(e,{expose:a}){const{t:t}=r(),l=o(0),h=o(0),y=o(null);return l.value=Math.round(9*Math.random()+1),h.value=Math.round(9*Math.random()+1),a({validate:()=>new Promise(((e,a)=>{y.value!==l.value+h.value&&(n.error(t("Component.Confirm.index_5")),a()),e(!0)}))}),(e,a)=>{const n=m;return i(),c("div",x,[u("div",null,s(e.$t("Component.Confirm.index_4")),1),u("div",g,s(d(l))+" + "+s(d(h)),1),a[1]||(a[1]=u("div",null,"=",-1)),u("div",f,[v(n,{value:d(y),"onUpdate:value":a[0]||(a[0]=e=>p(y)?y.value=e:null),"show-button":!1,placeholder:""},null,8,["value"])])])}}}),[["__scopeId","data-v-366c5492"]]))}}}));
|
||||
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index-B6Y_2X_r.js?v=1773287522785","js/vue-core-DJjvd5ZC.js?v=1773287522785","js/prismjs-BZPoR7_J.js?v=1773287522785","css/prismjs-D-3FhBe_.css?v=1773287522785","js/index-BTglIPU2.js?v=1773287522785","js/naive-ui--dJnpVcV.js?v=1773287522785","css/index-DEM1fxGq.css?v=1773287522785","js/files-BUbkyTRl.js?v=1773287522785","css/index-FEE1lr_F.css?v=1773287522785"])))=>i.map(i=>d[i]);
|
||||
import{l as U,x as V,p as j,P as E}from"./index-BTglIPU2.js?v=1773287522785";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{A as N,$ as O,w as D,Q as K}from"./FileIcon-eIHDRaxH.js?v=1773287522785";import{a1 as Q,a6 as W,au as X,b as q,B as G}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as H,R as J,i as Y,r as n,w as Z,$ as ee,a8 as oe,a9 as u,_ as ne,a0 as e,S as t,X as h,a3 as te,n as C}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./soft-Cjyfamvm.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";const ae={class:"p-20px pt-28px"},fe=H({__name:"Compression",setup(le,{expose:$}){const{t:a}=J(),v=Y("fileStore"),{choosedKeys:l,currentPath:d,fileList:x}=v,p=n(!1),r=n(""),m=n(""),s=n(""),o=n("tar.gz"),f=n(d.value),z=n([{label:"tar.gz",value:"tar.gz"},{label:"zip",value:"zip"},{label:"rar",value:"rar"}]),_=N(x.value,l.value)[0];Z(o,()=>C(g));function g(){l.value.length==1?s.value="".concat(f.value,"/").concat(_.nm,".").concat(o.value):l.value.length>1&&(s.value="".concat(f.value,"/").concat(d.value.split("/").pop(),".").concat(o.value))}function k(){p.value=!0,l.value.length==1?(m.value=_.nm,_.type=="dir"?r.value=a("file.compressionModal.compressFolder",{name:_.nm}):r.value=a("file.compressionModal.compressFile",{name:_.nm})):l.value.length>1&&(m.value=l.value.join(","),r.value=a("file.compressionModal.compressFolderAndFile",{names:m.value})),g()}function y(){p.value=!1}function F(){j({title:a("Component.SelectPath.index_7"),width:750,height:640,footer:!1,data:{path:f.value,callback:b=>{f.value=b,C(g)}},component:te(()=>E(()=>import("./index-B6Y_2X_r.js?v=1773287522785"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))})}async function M(){await O(m.value,s.value,o.value,d.value),D(v),K(v)}return $({open:k,close:y}),(b,i)=>{const P=W,w=Q,B=q,R=U,T=G,A=X,L=I,S=V;return ee(),oe(S,{show:t(p),"onUpdate:show":i[2]||(i[2]=c=>h(p)?p.value=c:null),width:480,title:t(r),footer:!0,onConfirm:M},{default:u(()=>[ne("div",ae,[e(L,null,{default:u(()=>[e(w,{label:t(a)("file.compressionModal.compressType")},{default:u(()=>[e(P,{value:t(o),"onUpdate:value":i[0]||(i[0]=c=>h(o)?o.value=c:null),options:t(z)},null,8,["value","options"])]),_:1},8,["label"]),e(w,{label:t(a)("file.compressionModal.compressPath")},{default:u(()=>[e(A,null,{default:u(()=>[e(B,{value:t(s),"onUpdate:value":i[1]||(i[1]=c=>h(s)?s.value=c:null)},null,8,["value"]),e(T,{onClick:F},{icon:u(()=>[e(R,{name:"file-dir",size:"20"})]),_:1})]),_:1})]),_:1},8,["label"])]),_:1})])]),_:1},8,["show","title"])}}});export{fe as default};
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index-Cs5dB_8a.js?v=1774508183068","js/vue-core-BlDeWrD6.js?v=1774508183068","js/prismjs-BZPoR7_J.js?v=1774508183068","css/prismjs-D-3FhBe_.css?v=1774508183068","js/index-LQ-JIYiv.js?v=1774508183068","js/naive-ui-BjvXgNtF.js?v=1774508183068","css/index-Bu1Pw919.css?v=1774508183068","js/files-B-5OIeVB.js?v=1774508183068","css/index-BZ6kzE9A.css?v=1774508183068"])))=>i.map(i=>d[i]);
|
||||
import{l as U,y as V,p as j,S as E}from"./index-LQ-JIYiv.js?v=1774508183068";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang-CwcqhoN-.js?v=1774508183068";import{y as N,$ as O,t as D,P as K}from"./FileIcon-MbTGjXAj.js?v=1774508183068";import{a1 as W,a6 as X,au as q,b as G,B as H}from"./naive-ui-BjvXgNtF.js?v=1774508183068";import{k as J,R as Q,i as Y,r as n,w as Z,$ as ee,a8 as oe,a9 as u,_ as ne,a0 as e,S as t,X as h,a3 as te,n as C}from"./vue-core-BlDeWrD6.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./copy-DTOfN-dY.js?v=1774508183068";const ae={class:"p-20px pt-28px"},me=J({__name:"Compression",setup(le,{expose:$}){const{t:a}=Q(),v=Y("fileStore"),{choosedKeys:l,currentPath:d,fileList:y}=v,p=n(!1),r=n(""),m=n(""),s=n(""),o=n("tar.gz"),f=n(d.value),x=n([{label:"tar.gz",value:"tar.gz"},{label:"zip",value:"zip"},{label:"rar",value:"rar"}]),_=N(y.value,l.value)[0];Z(o,()=>C(g));function g(){l.value.length==1?s.value="".concat(f.value,"/").concat(_.nm,".").concat(o.value):l.value.length>1&&(s.value="".concat(f.value,"/").concat(d.value.split("/").pop(),".").concat(o.value))}function z(){p.value=!0,l.value.length==1?(m.value=_.nm,_.type=="dir"?r.value=a("file.compressionModal.compressFolder",{name:_.nm}):r.value=a("file.compressionModal.compressFile",{name:_.nm})):l.value.length>1&&(m.value=l.value.join(","),r.value=a("file.compressionModal.compressFolderAndFile",{names:m.value})),g()}function k(){p.value=!1}function F(){j({title:a("Component.SelectPath.index_7"),width:750,height:640,footer:!1,data:{path:f.value,callback:b=>{f.value=b,C(g)}},component:te(()=>E(()=>import("./index-Cs5dB_8a.js?v=1774508183068"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))})}async function M(){await O(m.value,s.value,o.value,d.value),D(v),K(v)}return $({open:z,close:k}),(b,i)=>{const P=X,w=W,B=G,R=U,T=H,S=q,A=I,L=V;return ee(),oe(L,{show:t(p),"onUpdate:show":i[2]||(i[2]=c=>h(p)?p.value=c:null),width:480,title:t(r),footer:!0,onConfirm:M},{default:u(()=>[ne("div",ae,[e(A,null,{default:u(()=>[e(w,{label:t(a)("file.compressionModal.compressType")},{default:u(()=>[e(P,{value:t(o),"onUpdate:value":i[0]||(i[0]=c=>h(o)?o.value=c:null),options:t(x)},null,8,["value","options"])]),_:1},8,["label"]),e(w,{label:t(a)("file.compressionModal.compressPath")},{default:u(()=>[e(S,null,{default:u(()=>[e(B,{value:t(s),"onUpdate:value":i[1]||(i[1]=c=>h(s)?s.value=c:null)},null,8,["value"]),e(T,{onClick:F},{icon:u(()=>[e(R,{name:"file-dir",size:"20"})]),_:1})]),_:1})]),_:1},8,["label"])]),_:1})])]),_:1},8,["show","title"])}}});export{me as default};
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./FileIcon-legacy-CYrICTNK.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785"],(function(e,l){"use strict";var a,u,n,t,o,s,i,v,c,r,p,d,m,f,g,h,_,y,j,b,x,w,$,z,F,M,C,P;return{setters:[e=>{a=e.l,u=e.x,n=e.p,t=e.P},e=>{o=e._},e=>{s=e.A,i=e.$,v=e.w,c=e.Q},e=>{r=e.a1,p=e.a6,d=e.au,m=e.b,f=e.B},e=>{g=e.k,h=e.R,_=e.i,y=e.r,j=e.w,b=e.$,x=e.a8,w=e.a9,$=e._,z=e.a0,F=e.S,M=e.X,C=e.a3,P=e.n},null,null,null],execute:function(){const S={class:"p-20px pt-28px"};e("default",g({__name:"Compression",setup(e,{expose:g}){const{t:k}=h(),U=_("fileStore"),{choosedKeys:A,currentPath:I,fileList:B}=U,E=y(!1),K=y(""),L=y(""),Q=y(""),R=y("tar.gz"),T=y(I.value),X=y([{label:"tar.gz",value:"tar.gz"},{label:"zip",value:"zip"},{label:"rar",value:"rar"}]),Z=s(B.value,A.value)[0];function q(){1==A.value.length?Q.value=`${T.value}/${Z.nm}.${R.value}`:A.value.length>1&&(Q.value=`${T.value}/${I.value.split("/").pop()}.${R.value}`)}function D(){n({title:k("Component.SelectPath.index_7"),width:750,height:640,footer:!1,data:{path:T.value,callback:e=>{T.value=e,P(q)}},component:C((()=>t((()=>l.import("./index-legacy-W_PN01QM.js?v=1773287522785")),void 0)))})}async function G(){await i(L.value,Q.value,R.value,I.value),v(U),c(U)}return j(R,(()=>P(q))),g({open:function(){E.value=!0,1==A.value.length?(L.value=Z.nm,"dir"==Z.type?K.value=k("file.compressionModal.compressFolder",{name:Z.nm}):K.value=k("file.compressionModal.compressFile",{name:Z.nm})):A.value.length>1&&(L.value=A.value.join(","),K.value=k("file.compressionModal.compressFolderAndFile",{names:L.value})),q()},close:function(){E.value=!1}}),(e,l)=>{const n=p,t=r,s=m,i=a,v=f,c=d,g=o,h=u;return b(),x(h,{show:F(E),"onUpdate:show":l[2]||(l[2]=e=>M(E)?E.value=e:null),width:480,title:F(K),footer:!0,onConfirm:G},{default:w((()=>[$("div",S,[z(g,null,{default:w((()=>[z(t,{label:F(k)("file.compressionModal.compressType")},{default:w((()=>[z(n,{value:F(R),"onUpdate:value":l[0]||(l[0]=e=>M(R)?R.value=e:null),options:F(X)},null,8,["value","options"])])),_:1},8,["label"]),z(t,{label:F(k)("file.compressionModal.compressPath")},{default:w((()=>[z(c,null,{default:w((()=>[z(s,{value:F(Q),"onUpdate:value":l[1]||(l[1]=e=>M(Q)?Q.value=e:null)},null,8,["value"]),z(v,{onClick:D},{icon:w((()=>[z(i,{name:"file-dir",size:"20"})])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])])),_:1},8,["show","title"])}}}))}}}));
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./index-legacy-3bAYElO-.js?v=1774508183068","./index.vue_vue_type_script_setup_true_lang-legacy-wbylbeyb.js?v=1774508183068","./FileIcon-legacy-BZIg8aaH.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068","./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./copy-legacy-DQuL_OmY.js?v=1774508183068"],(function(e,l){"use strict";var a,u,n,t,o,s,i,v,c,r,p,d,m,f,g,y,_,h,j,b,x,$,w,z,F,M,S,C;return{setters:[e=>{a=e.l,u=e.y,n=e.p,t=e.S},e=>{o=e._},e=>{s=e.y,i=e.$,v=e.t,c=e.P},e=>{r=e.a1,p=e.a6,d=e.au,m=e.b,f=e.B},e=>{g=e.k,y=e.R,_=e.i,h=e.r,j=e.w,b=e.$,x=e.a8,$=e.a9,w=e._,z=e.a0,F=e.S,M=e.X,S=e.a3,C=e.n},null,null],execute:function(){const P={class:"p-20px pt-28px"};e("default",g({__name:"Compression",setup(e,{expose:g}){const{t:k}=y(),U=_("fileStore"),{choosedKeys:A,currentPath:B,fileList:G}=U,I=h(!1),K=h(""),L=h(""),R=h(""),T=h("tar.gz"),X=h(B.value),Z=h([{label:"tar.gz",value:"tar.gz"},{label:"zip",value:"zip"},{label:"rar",value:"rar"}]),q=s(G.value,A.value)[0];function D(){1==A.value.length?R.value=`${X.value}/${q.nm}.${T.value}`:A.value.length>1&&(R.value=`${X.value}/${B.value.split("/").pop()}.${T.value}`)}function E(){n({title:k("Component.SelectPath.index_7"),width:750,height:640,footer:!1,data:{path:X.value,callback:e=>{X.value=e,C(D)}},component:S((()=>t((()=>l.import("./index-legacy-DQ9Fq-kQ.js?v=1774508183068")),void 0)))})}async function H(){await i(L.value,R.value,T.value,B.value),v(U),c(U)}return j(T,(()=>C(D))),g({open:function(){I.value=!0,1==A.value.length?(L.value=q.nm,"dir"==q.type?K.value=k("file.compressionModal.compressFolder",{name:q.nm}):K.value=k("file.compressionModal.compressFile",{name:q.nm})):A.value.length>1&&(L.value=A.value.join(","),K.value=k("file.compressionModal.compressFolderAndFile",{names:L.value})),D()},close:function(){I.value=!1}}),(e,l)=>{const n=p,t=r,s=m,i=a,v=f,c=d,g=o,y=u;return b(),x(y,{show:F(I),"onUpdate:show":l[2]||(l[2]=e=>M(I)?I.value=e:null),width:480,title:F(K),footer:!0,onConfirm:H},{default:$((()=>[w("div",P,[z(g,null,{default:$((()=>[z(t,{label:F(k)("file.compressionModal.compressType")},{default:$((()=>[z(n,{value:F(T),"onUpdate:value":l[0]||(l[0]=e=>M(T)?T.value=e:null),options:F(Z)},null,8,["value","options"])])),_:1},8,["label"]),z(t,{label:F(k)("file.compressionModal.compressPath")},{default:$((()=>[z(c,null,{default:$((()=>[z(s,{value:F(R),"onUpdate:value":l[1]||(l[1]=e=>M(R)?R.value=e:null)},null,8,["value"]),z(v,{onClick:E},{icon:$((()=>[z(i,{name:"file-dir",size:"20"})])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])])),_:1},8,["show","title"])}}}))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
import{k as d,$ as i,Z as n,F as l,P as u,_ as e,aa as t,ak as _}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{c as p}from"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";const v={class:"issues-list"},m=["item"],h={class:"issue-header"},g={class:"issue-number"},y=["innerHTML"],f={class:"issue-level high"},k={class:"issue-content"},b={class:"issue-ps"},x={class:"issue-tips"},L=["innerHTML"],T={key:0,class:"pagination-note"},C=d({__name:"CveSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0}},setup(r){const a=r;return(H,o)=>(i(),n("div",v,[(i(!0),n(l,null,u(a.data,(s,c)=>(i(),n("div",{class:"issue-item cve",key:"cve-"+c,item:s},[e("div",h,[e("div",g,t(s.num),1),e("div",{class:"issue-name",innerHTML:s.name},null,8,y),e("div",f,t(s.level),1)]),e("div",k,[e("div",b,t(s.ps),1),e("div",x,[o[0]||(o[0]=e("div",{class:"tips-title"},"Solution:",-1)),e("div",{class:"tips-content",innerHTML:s.tips.replace(/\n/g,"<br>")},null,8,L)])])],8,m))),128)),a.totalPages>1?(i(),n("div",T," Total "+t(a.totalPages)+" pages, current page "+t(a.pageIndex+1)+". ",1)):_("",!0)]))}}),q=p(C,[["__scopeId","data-v-97e90b76"]]);export{q as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{k as d,$ as i,Z as n,F as l,P as u,_ as e,aa as t,ak as _}from"./vue-core-BlDeWrD6.js?v=1774508183068";import{c as p}from"./index-LQ-JIYiv.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./naive-ui-BjvXgNtF.js?v=1774508183068";const v={class:"issues-list"},m=["item"],h={class:"issue-header"},g={class:"issue-number"},y=["innerHTML"],f={class:"issue-level high"},k={class:"issue-content"},b={class:"issue-ps"},x={class:"issue-tips"},L=["innerHTML"],T={key:0,class:"pagination-note"},C=d({__name:"CveSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0}},setup(r){const a=r;return(H,o)=>(i(),n("div",v,[(i(!0),n(l,null,u(a.data,(s,c)=>(i(),n("div",{class:"issue-item cve",key:"cve-"+c,item:s},[e("div",h,[e("div",g,t(s.num),1),e("div",{class:"issue-name",innerHTML:s.name},null,8,y),e("div",f,t(s.level),1)]),e("div",k,[e("div",b,t(s.ps),1),e("div",x,[o[0]||(o[0]=e("div",{class:"tips-title"},"Solution:",-1)),e("div",{class:"tips-content",innerHTML:s.tips.replace(/\n/g,"<br>")},null,8,L)])])],8,m))),128)),a.totalPages>1?(i(),n("div",T," Total "+t(a.totalPages)+" pages, current page "+t(a.pageIndex+1)+". ",1)):_("",!0)]))}}),q=p(C,[["__scopeId","data-v-97e90b76"]]);export{q as default};
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./index-legacy-3bAYElO-.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068"],(function(e,s){"use strict";var i,t,a,r,u,o,l,d,n;return{setters:[e=>{i=e.k,t=e.$,a=e.Z,r=e.F,u=e.P,o=e._,l=e.aa,d=e.ak},e=>{n=e.c},null,null],execute:function(){var s=document.createElement("style");s.textContent=".issues-list .issue-item[data-v-97e90b76]{margin-bottom:20px;border:2px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1);page-break-inside:avoid}.issues-list .issue-item.high[data-v-97e90b76]{border-left:6px solid #ff4d4f}.issues-list .issue-item.medium[data-v-97e90b76]{border-left:6px solid #faad14}.issues-list .issue-item.low[data-v-97e90b76]{border-left:6px solid #52c41a}.issues-list .issue-item.cve[data-v-97e90b76]{border-left:6px solid #722ed1}.issues-list .issue-item.ignore[data-v-97e90b76]{border-left:6px solid #999}.issues-list .issue-item .issue-header[data-v-97e90b76]{display:flex;align-items:center;padding:15px 20px;background-color:var(--home-risk-security-report-bg)}.issues-list .issue-item .issue-header .issue-number[data-v-97e90b76]{flex:0 0 40px;height:40px;border-radius:50%;background-color:#07f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin-right:15px;font-size:16px}.issues-list .issue-item .issue-header .issue-name[data-v-97e90b76]{flex:1;font-weight:500;font-size:16px}.issues-list .issue-item .issue-header .issue-level[data-v-97e90b76]{padding:4px 12px;border-radius:6px;font-size:14px;margin-right:15px;font-weight:700}.issues-list .issue-item .issue-header .issue-level.high[data-v-97e90b76]{background-color:#ff4d4f;color:#fff}.issues-list .issue-item .issue-header .issue-level.medium[data-v-97e90b76]{background-color:#faad14;color:#fff}.issues-list .issue-item .issue-header .issue-level.low[data-v-97e90b76]{background-color:#52c41a;color:#fff}.issues-list .issue-item .issue-header .issue-level.ignore[data-v-97e90b76]{background-color:#f0f0f0;color:#666}.issues-list .issue-item .issue-header .issue-auto[data-v-97e90b76]{padding:4px 12px;border-radius:6px;font-size:14px;background-color:#f5f5f5;color:#666}.issues-list .issue-item .issue-header .issue-auto.supported[data-v-97e90b76]{background-color:#e6f7ff;color:#07f}.issues-list .issue-item .issue-content[data-v-97e90b76]{padding:20px}.issues-list .issue-item .issue-content .issue-ps[data-v-97e90b76]{margin-bottom:15px;color:#666;font-size:16px;line-height:1.6}.issues-list .issue-item .issue-content .issue-tips[data-v-97e90b76]{background-color:var(--home-risk-security-report-bg);padding:15px;border-radius:8px;border-left:4px solid #0077ff}.issues-list .issue-item .issue-content .issue-tips .tips-title[data-v-97e90b76]{font-weight:500;margin-bottom:10px;font-size:16px;color:#333}.issues-list .issue-item .issue-content .issue-tips .tips-content[data-v-97e90b76]{color:#666;white-space:pre-line;line-height:1.6;font-size:15px}\n/*$vite$:1*/",document.head.appendChild(s);const c={class:"issues-list"},p=["item"],f={class:"issue-header"},b={class:"issue-number"},m=["innerHTML"],v={class:"issue-level high"},g={class:"issue-content"},x={class:"issue-ps"},h={class:"issue-tips"},y=["innerHTML"],k={key:0,class:"pagination-note"};e("default",n(i({__name:"CveSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0}},setup(e){const s=e;return(e,i)=>(t(),a("div",c,[(t(!0),a(r,null,u(s.data,((e,s)=>(t(),a("div",{class:"issue-item cve",key:"cve-"+s,item:e},[o("div",f,[o("div",b,l(e.num),1),o("div",{class:"issue-name",innerHTML:e.name},null,8,m),o("div",v,l(e.level),1)]),o("div",g,[o("div",x,l(e.ps),1),o("div",h,[i[0]||(i[0]=o("div",{class:"tips-title"},"Solution:",-1)),o("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,y)])])],8,p)))),128)),s.totalPages>1?(t(),a("div",k," Total "+l(s.totalPages)+" pages, current page "+l(s.pageIndex+1)+". ",1)):d("",!0)]))}}),[["__scopeId","data-v-97e90b76"]]))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,s){"use strict";var i,t,a,r,u,o,l,d,n;return{setters:[e=>{i=e.k,t=e.$,a=e.Z,r=e.F,u=e.P,o=e._,l=e.aa,d=e.ak},e=>{n=e.c},null,null],execute:function(){var s=document.createElement("style");s.textContent=".issues-list .issue-item[data-v-97e90b76]{margin-bottom:20px;border:2px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1);page-break-inside:avoid}.issues-list .issue-item.high[data-v-97e90b76]{border-left:6px solid #ff4d4f}.issues-list .issue-item.medium[data-v-97e90b76]{border-left:6px solid #faad14}.issues-list .issue-item.low[data-v-97e90b76]{border-left:6px solid #52c41a}.issues-list .issue-item.cve[data-v-97e90b76]{border-left:6px solid #722ed1}.issues-list .issue-item.ignore[data-v-97e90b76]{border-left:6px solid #999}.issues-list .issue-item .issue-header[data-v-97e90b76]{display:flex;align-items:center;padding:15px 20px;background-color:var(--home-risk-security-report-bg)}.issues-list .issue-item .issue-header .issue-number[data-v-97e90b76]{flex:0 0 40px;height:40px;border-radius:50%;background-color:#07f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin-right:15px;font-size:16px}.issues-list .issue-item .issue-header .issue-name[data-v-97e90b76]{flex:1;font-weight:500;font-size:16px}.issues-list .issue-item .issue-header .issue-level[data-v-97e90b76]{padding:4px 12px;border-radius:6px;font-size:14px;margin-right:15px;font-weight:700}.issues-list .issue-item .issue-header .issue-level.high[data-v-97e90b76]{background-color:#ff4d4f;color:#fff}.issues-list .issue-item .issue-header .issue-level.medium[data-v-97e90b76]{background-color:#faad14;color:#fff}.issues-list .issue-item .issue-header .issue-level.low[data-v-97e90b76]{background-color:#52c41a;color:#fff}.issues-list .issue-item .issue-header .issue-level.ignore[data-v-97e90b76]{background-color:#f0f0f0;color:#666}.issues-list .issue-item .issue-header .issue-auto[data-v-97e90b76]{padding:4px 12px;border-radius:6px;font-size:14px;background-color:#f5f5f5;color:#666}.issues-list .issue-item .issue-header .issue-auto.supported[data-v-97e90b76]{background-color:#e6f7ff;color:#07f}.issues-list .issue-item .issue-content[data-v-97e90b76]{padding:20px}.issues-list .issue-item .issue-content .issue-ps[data-v-97e90b76]{margin-bottom:15px;color:#666;font-size:16px;line-height:1.6}.issues-list .issue-item .issue-content .issue-tips[data-v-97e90b76]{background-color:var(--home-risk-security-report-bg);padding:15px;border-radius:8px;border-left:4px solid #0077ff}.issues-list .issue-item .issue-content .issue-tips .tips-title[data-v-97e90b76]{font-weight:500;margin-bottom:10px;font-size:16px;color:#333}.issues-list .issue-item .issue-content .issue-tips .tips-content[data-v-97e90b76]{color:#666;white-space:pre-line;line-height:1.6;font-size:15px}\n/*$vite$:1*/",document.head.appendChild(s);const c={class:"issues-list"},p=["item"],f={class:"issue-header"},b={class:"issue-number"},m=["innerHTML"],v={class:"issue-level high"},g={class:"issue-content"},x={class:"issue-ps"},h={class:"issue-tips"},y=["innerHTML"],k={key:0,class:"pagination-note"};e("default",n(i({__name:"CveSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0}},setup(e){const s=e;return(e,i)=>(t(),a("div",c,[(t(!0),a(r,null,u(s.data,((e,s)=>(t(),a("div",{class:"issue-item cve",key:"cve-"+s,item:e},[o("div",f,[o("div",b,l(e.num),1),o("div",{class:"issue-name",innerHTML:e.name},null,8,m),o("div",v,l(e.level),1)]),o("div",g,[o("div",x,l(e.ps),1),o("div",h,[i[0]||(i[0]=o("div",{class:"tips-title"},"Solution:",-1)),o("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,y)])])],8,p)))),128)),s.totalPages>1?(t(),a("div",k," Total "+l(s.totalPages)+" pages, current page "+l(s.pageIndex+1)+". ",1)):d("",!0)]))}}),[["__scopeId","data-v-97e90b76"]]))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
import{x as F}from"./index-BTglIPU2.js?v=1773287522785";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{A as T,a0 as B,w as C,Q as P}from"./FileIcon-eIHDRaxH.js?v=1773287522785";import{k as V,R as q,r as D,i as E,al as K,e as L,$ as _,a8 as v,a9 as n,a0 as a,S as o,_ as d,ak as S,X as $,N as j}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as A,b as G,a6 as I}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./soft-Cjyfamvm.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";const O={class:"w-310px"},Q={class:"w-310px"},X={class:"w-310px"},H={class:"w-310px"},ae=V({__name:"Decompress",setup(J,{expose:w}){const{t}=q(),r=D(!1),f=E("fileStore"),{choosedKeys:g,currentPath:b,fileList:h}=f,m=T(h.value,g.value)[0],c=K("formRef"),e=L({sfile:"",dfile:"",type:"zip",coding:"UTF-8",password:""}),x=[{label:"UTF-8",value:"UTF-8"},{label:"GBK",value:"gb18030"}],y={sfile:{trigger:["input","blur"],validator:()=>e.sfile.trim()===""?new Error(t("file.decompressModal.validation.fileNameRequired")):!0},dfile:{trigger:["input","blur"],validator:()=>e.dfile.trim()===""?new Error(t("file.decompressModal.validation.pathRequired")):!0}},R=(i,s)=>{if(r.value=!0,e.dfile=b.value,e.coding="UTF-8",i){e.sfile=i,s==="tar.gz"?e.type="tar":e.type="zip";return}e.sfile=m.path,m.ext==="tar.gz"?e.type="tar":e.type="zip"},U=async()=>{var i;await((i=c.value)==null?void 0:i.validate()),await B(j(e)),C(f),P(f)};return w({open:R}),(i,s)=>{const u=G,p=A,k=I,M=N,z=F;return _(),v(z,{show:o(r),"onUpdate:show":s[4]||(s[4]=l=>$(r)?r.value=l:null),title:o(t)("file.decompressModal.title"),width:"520",footer:!0,onConfirm:U},{default:n(()=>[a(M,{ref_key:"formRef",ref:c,class:"p-24px",model:o(e),rules:y},{default:n(()=>[a(p,{label:o(t)("file.decompressModal.fileName"),path:"sfile"},{default:n(()=>[d("div",O,[a(u,{value:o(e).sfile,"onUpdate:value":s[0]||(s[0]=l=>o(e).sfile=l)},null,8,["value"])])]),_:1},8,["label"]),a(p,{label:o(t)("file.decompressModal.compressPath"),path:"dfile"},{default:n(()=>[d("div",Q,[a(u,{value:o(e).dfile,"onUpdate:value":s[1]||(s[1]=l=>o(e).dfile=l)},null,8,["value"])])]),_:1},8,["label"]),o(e).type==="zip"?(_(),v(p,{key:0,label:o(t)("file.decompressModal.password")},{default:n(()=>[d("div",X,[a(u,{value:o(e).password,"onUpdate:value":s[2]||(s[2]=l=>o(e).password=l),placeholder:o(t)("file.decompressModal.passwordPlaceholder")},null,8,["value","placeholder"])])]),_:1},8,["label"])):S("",!0),a(p,{label:o(t)("file.decompressModal.encoding"),"show-feedback":!1},{default:n(()=>[d("div",H,[a(k,{value:o(e).coding,"onUpdate:value":s[3]||(s[3]=l=>o(e).coding=l),options:x},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["show","title"])}}});export{ae as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{y as F}from"./index-LQ-JIYiv.js?v=1774508183068";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang-CwcqhoN-.js?v=1774508183068";import{y as T,a0 as B,t as C,P}from"./FileIcon-MbTGjXAj.js?v=1774508183068";import{k as V,R as q,r as D,i as E,al as K,e as L,$ as _,a8 as v,a9 as n,a0 as a,S as o,_ as d,ak as S,X as $,N as j}from"./vue-core-BlDeWrD6.js?v=1774508183068";import{a1 as G,b as I,a6 as O}from"./naive-ui-BjvXgNtF.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./copy-DTOfN-dY.js?v=1774508183068";const X={class:"w-310px"},A={class:"w-310px"},H={class:"w-310px"},J={class:"w-310px"},te=V({__name:"Decompress",setup(Q,{expose:w}){const{t}=q(),r=D(!1),f=E("fileStore"),{choosedKeys:g,currentPath:b,fileList:y}=f,m=T(y.value,g.value)[0],c=K("formRef"),e=L({sfile:"",dfile:"",type:"zip",coding:"UTF-8",password:""}),h=[{label:"UTF-8",value:"UTF-8"},{label:"GBK",value:"gb18030"}],x={sfile:{trigger:["input","blur"],validator:()=>e.sfile.trim()===""?new Error(t("file.decompressModal.validation.fileNameRequired")):!0},dfile:{trigger:["input","blur"],validator:()=>e.dfile.trim()===""?new Error(t("file.decompressModal.validation.pathRequired")):!0}},R=(i,s)=>{if(r.value=!0,e.dfile=b.value,e.coding="UTF-8",i){e.sfile=i,s==="tar.gz"?e.type="tar":e.type="zip";return}e.sfile=m.path,m.ext==="tar.gz"?e.type="tar":e.type="zip"},U=async()=>{var i;await((i=c.value)==null?void 0:i.validate()),await B(j(e)),C(f),P(f)};return w({open:R}),(i,s)=>{const u=I,p=G,k=O,M=N,z=F;return _(),v(z,{show:o(r),"onUpdate:show":s[4]||(s[4]=l=>$(r)?r.value=l:null),title:o(t)("file.decompressModal.title"),width:"520",footer:!0,onConfirm:U},{default:n(()=>[a(M,{ref_key:"formRef",ref:c,class:"p-24px",model:o(e),rules:x},{default:n(()=>[a(p,{label:o(t)("file.decompressModal.fileName"),path:"sfile"},{default:n(()=>[d("div",X,[a(u,{value:o(e).sfile,"onUpdate:value":s[0]||(s[0]=l=>o(e).sfile=l)},null,8,["value"])])]),_:1},8,["label"]),a(p,{label:o(t)("file.decompressModal.compressPath"),path:"dfile"},{default:n(()=>[d("div",A,[a(u,{value:o(e).dfile,"onUpdate:value":s[1]||(s[1]=l=>o(e).dfile=l)},null,8,["value"])])]),_:1},8,["label"]),o(e).type==="zip"?(_(),v(p,{key:0,label:o(t)("file.decompressModal.password")},{default:n(()=>[d("div",H,[a(u,{value:o(e).password,"onUpdate:value":s[2]||(s[2]=l=>o(e).password=l),placeholder:o(t)("file.decompressModal.passwordPlaceholder")},null,8,["value","placeholder"])])]),_:1},8,["label"])):S("",!0),a(p,{label:o(t)("file.decompressModal.encoding"),"show-feedback":!1},{default:n(()=>[d("div",J,[a(k,{value:o(e).coding,"onUpdate:value":s[3]||(s[3]=l=>o(e).coding=l),options:h},null,8,["value"])])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["show","title"])}}});export{te as default};
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./index-legacy-3bAYElO-.js?v=1774508183068","./index.vue_vue_type_script_setup_true_lang-legacy-wbylbeyb.js?v=1774508183068","./FileIcon-legacy-BZIg8aaH.js?v=1774508183068","./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./copy-legacy-DQuL_OmY.js?v=1774508183068"],(function(e,l){"use strict";var a,s,i,t,o,r,d,u,p,n,f,c,v,g,m,y,w,_,b,h,x,U,j,M;return{setters:[e=>{a=e.y},e=>{s=e._},e=>{i=e.y,t=e.a0,o=e.t,r=e.P},e=>{d=e.k,u=e.R,p=e.r,n=e.i,f=e.al,c=e.e,v=e.$,g=e.a8,m=e.a9,y=e.a0,w=e.S,_=e._,b=e.ak,h=e.X,x=e.N},e=>{U=e.a1,j=e.b,M=e.a6},null,null],execute:function(){const l={class:"w-310px"},z={class:"w-310px"},k={class:"w-310px"},F={class:"w-310px"};e("default",d({__name:"Decompress",setup(e,{expose:d}){const{t:R}=u(),P=p(!1),T=n("fileStore"),{choosedKeys:N,currentPath:S,fileList:q}=T,E=i(q.value,N.value)[0],K=f("formRef"),B=c({sfile:"",dfile:"",type:"zip",coding:"UTF-8",password:""}),C=[{label:"UTF-8",value:"UTF-8"},{label:"GBK",value:"gb18030"}],D={sfile:{trigger:["input","blur"],validator:()=>""!==B.sfile.trim()||new Error(R("file.decompressModal.validation.fileNameRequired"))},dfile:{trigger:["input","blur"],validator:()=>""!==B.dfile.trim()||new Error(R("file.decompressModal.validation.pathRequired"))}},G=async()=>{await(K.value?.validate()),await t(x(B)),o(T),r(T)};return d({open:(e,l)=>{if(P.value=!0,B.dfile=S.value,B.coding="UTF-8",e)return B.sfile=e,void(B.type="tar.gz"===l?"tar":"zip");B.sfile=E.path,"tar.gz"===E.ext?B.type="tar":B.type="zip"}}),(e,i)=>{const t=j,o=U,r=M,d=s,u=a;return v(),g(u,{show:w(P),"onUpdate:show":i[4]||(i[4]=e=>h(P)?P.value=e:null),title:w(R)("file.decompressModal.title"),width:"520",footer:!0,onConfirm:G},{default:m((()=>[y(d,{ref_key:"formRef",ref:K,class:"p-24px",model:w(B),rules:D},{default:m((()=>[y(o,{label:w(R)("file.decompressModal.fileName"),path:"sfile"},{default:m((()=>[_("div",l,[y(t,{value:w(B).sfile,"onUpdate:value":i[0]||(i[0]=e=>w(B).sfile=e)},null,8,["value"])])])),_:1},8,["label"]),y(o,{label:w(R)("file.decompressModal.compressPath"),path:"dfile"},{default:m((()=>[_("div",z,[y(t,{value:w(B).dfile,"onUpdate:value":i[1]||(i[1]=e=>w(B).dfile=e)},null,8,["value"])])])),_:1},8,["label"]),"zip"===w(B).type?(v(),g(o,{key:0,label:w(R)("file.decompressModal.password")},{default:m((()=>[_("div",k,[y(t,{value:w(B).password,"onUpdate:value":i[2]||(i[2]=e=>w(B).password=e),placeholder:w(R)("file.decompressModal.passwordPlaceholder")},null,8,["value","placeholder"])])])),_:1},8,["label"])):b("",!0),y(o,{label:w(R)("file.decompressModal.encoding"),"show-feedback":!1},{default:m((()=>[_("div",F,[y(r,{value:w(B).coding,"onUpdate:value":i[3]||(i[3]=e=>w(B).coding=e),options:C},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])),_:1},8,["show","title"])}}}))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./FileIcon-legacy-CYrICTNK.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785"],(function(e,l){"use strict";var a,s,i,t,o,r,d,u,p,n,f,c,v,g,m,y,w,_,h,b,x,j,U,M;return{setters:[e=>{a=e.x},e=>{s=e._},e=>{i=e.A,t=e.a0,o=e.w,r=e.Q},e=>{d=e.k,u=e.R,p=e.r,n=e.i,f=e.al,c=e.e,v=e.$,g=e.a8,m=e.a9,y=e.a0,w=e.S,_=e._,h=e.ak,b=e.X,x=e.N},e=>{j=e.a1,U=e.b,M=e.a6},null,null,null],execute:function(){const l={class:"w-310px"},z={class:"w-310px"},k={class:"w-310px"},F={class:"w-310px"};e("default",d({__name:"Decompress",setup(e,{expose:d}){const{t:R}=u(),T=p(!1),E=n("fileStore"),{choosedKeys:N,currentPath:P,fileList:S}=E,q=i(S.value,N.value)[0],K=f("formRef"),A=c({sfile:"",dfile:"",type:"zip",coding:"UTF-8",password:""}),B=[{label:"UTF-8",value:"UTF-8"},{label:"GBK",value:"gb18030"}],C={sfile:{trigger:["input","blur"],validator:()=>""!==A.sfile.trim()||new Error(R("file.decompressModal.validation.fileNameRequired"))},dfile:{trigger:["input","blur"],validator:()=>""!==A.dfile.trim()||new Error(R("file.decompressModal.validation.pathRequired"))}},D=async()=>{await(K.value?.validate()),await t(x(A)),o(E),r(E)};return d({open:(e,l)=>{if(T.value=!0,A.dfile=P.value,A.coding="UTF-8",e)return A.sfile=e,void(A.type="tar.gz"===l?"tar":"zip");A.sfile=q.path,"tar.gz"===q.ext?A.type="tar":A.type="zip"}}),(e,i)=>{const t=U,o=j,r=M,d=s,u=a;return v(),g(u,{show:w(T),"onUpdate:show":i[4]||(i[4]=e=>b(T)?T.value=e:null),title:w(R)("file.decompressModal.title"),width:"520",footer:!0,onConfirm:D},{default:m((()=>[y(d,{ref_key:"formRef",ref:K,class:"p-24px",model:w(A),rules:C},{default:m((()=>[y(o,{label:w(R)("file.decompressModal.fileName"),path:"sfile"},{default:m((()=>[_("div",l,[y(t,{value:w(A).sfile,"onUpdate:value":i[0]||(i[0]=e=>w(A).sfile=e)},null,8,["value"])])])),_:1},8,["label"]),y(o,{label:w(R)("file.decompressModal.compressPath"),path:"dfile"},{default:m((()=>[_("div",z,[y(t,{value:w(A).dfile,"onUpdate:value":i[1]||(i[1]=e=>w(A).dfile=e)},null,8,["value"])])])),_:1},8,["label"]),"zip"===w(A).type?(v(),g(o,{key:0,label:w(R)("file.decompressModal.password")},{default:m((()=>[_("div",k,[y(t,{value:w(A).password,"onUpdate:value":i[2]||(i[2]=e=>w(A).password=e),placeholder:w(R)("file.decompressModal.passwordPlaceholder")},null,8,["value","placeholder"])])])),_:1},8,["label"])):h("",!0),y(o,{label:w(R)("file.decompressModal.encoding"),"show-feedback":!1},{default:m((()=>[_("div",F,[y(r,{value:w(A).coding,"onUpdate:value":i[3]||(i[3]=e=>w(A).coding=e),options:B},null,8,["value"])])])),_:1},8,["label"])])),_:1},8,["model"])])),_:1},8,["show","title"])}}}))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
import{C as q}from"./CalcVerify-DzxM0pDk.js?v=1773287522785";import{m as c,as as b,c as N}from"./index-BTglIPU2.js?v=1773287522785";import{w as O}from"./FileIcon-eIHDRaxH.js?v=1773287522785";import{B as $,q as P}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as j,i as L,r as o,$ as p,a8 as M,a9 as n,S as i,Z as h,_ as f,a0 as m,j as u,aa as x,X as A}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./soft-Cjyfamvm.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";const E={class:"header-tit single-line-ellipsis"},I={key:0,class:"del-modal-wrapper"},J={key:1,class:"del-modal-wrapper"},K={class:"text-[#f0a020]"},T={class:"modal-footer-btns"},U=j({__name:"Del",setup(X,{expose:D}){const v=L("fileStore"),{choosedKeys:l,fileList:d,fileRecycle:_,currentPath:k}=v,s=o(!1),r=o({}),F=o([]),y=o("Delete file"),g=o();D({open(){if(s.value=!0,l.value.length==1){const t=d.value.find(e=>e.nm==l.value[0]);r.value=t,y.value="Delete file [".concat(r.value.nm,"]")}else F.value=d.value.filter(t=>l.value.includes(t.nm))},close(){s.value=!1}});async function B(t){const e=c.loading("Files are being deleted. Please wait");try{s.value=!1,(await b.post("/files?action=DeleteFile",{path:t},{requestOptions:{isOriginalResult:!0}})).message.status==0?c.success("Files deleted successfully"):c.error("Files failed to delete")}catch(a){console.warn(a)}finally{e.close()}}async function C(t,e){await b.post("/files?action=SetBatchData",{data:JSON.stringify(t),type:4,path:e},{requestOptions:{loading:"正在批量删除中,请稍候...",successMessage:!0}}),s.value=!1}async function R(){if(l.value.length==1){const t=d.value.find(e=>e.nm==l.value[0]);await B(t.path)}l.value.length>1&&await C(l.value,k.value)}async function S(){if(!_.value&&!g.value.validate()){c.warning("Please enter the correct verification number");return}await R(),O(v)}return(t,e)=>{const a=$,V=P;return p(),M(V,{preset:"card",draggable:"","close-on-esc":!1,"mask-closable":!1,class:"w-170",segmented:"",show:i(s),"onUpdate:show":e[1]||(e[1]=w=>A(s)?s.value=w:null)},{header:n(()=>[f("div",E,x(i(y)),1)]),footer:n(()=>[f("div",T,[m(a,{onClick:e[0]||(e[0]=w=>s.value=!1)},{default:n(()=>e[5]||(e[5]=[u("cancel")])),_:1,__:[5]}),m(a,{type:"primary",onClick:S},{default:n(()=>e[6]||(e[6]=[u("confirm")])),_:1,__:[6]})])]),default:n(()=>[i(_)?(p(),h("div",J,[e[3]||(e[3]=u(" Confirm delete folder ")),f("span",K,x(i(r).path?"[".concat(i(r).path,"]"):""),1),e[4]||(e[4]=u(" ,it will move to recycle bin after delete, continue? "))])):(p(),h("div",I,[e[2]||(e[2]=f("div",{class:"text-red-5 mb-15px text-14px"}," Recycle bin is not currently open, delete file cannot be restored after, continue? ",-1)),m(q,{ref_key:"calcVertifyRef",ref:g},null,512)]))]),_:1},8,["show"])}}}),te=N(U,[["__scopeId","data-v-9d32222b"]]);export{te as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{C as q}from"./CalcVerify-gqHuJ9LB.js?v=1774508183068";import{m as c,av as b,c as N}from"./index-LQ-JIYiv.js?v=1774508183068";import{t as O}from"./FileIcon-MbTGjXAj.js?v=1774508183068";import{B as $,q as P}from"./naive-ui-BjvXgNtF.js?v=1774508183068";import{k as j,i as L,r as n,$ as p,a8 as M,a9 as o,S as i,Z as h,_ as f,a0 as m,j as u,aa as x,X as A}from"./vue-core-BlDeWrD6.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./copy-DTOfN-dY.js?v=1774508183068";const E={class:"header-tit single-line-ellipsis"},I={key:0,class:"del-modal-wrapper"},J={key:1,class:"del-modal-wrapper"},K={class:"text-[#f0a020]"},T={class:"modal-footer-btns"},U=j({__name:"Del",setup(X,{expose:D}){const v=L("fileStore"),{choosedKeys:l,fileList:d,fileRecycle:_,currentPath:k}=v,s=n(!1),r=n({}),F=n([]),y=n("Delete file"),g=n();D({open(){if(s.value=!0,l.value.length==1){const t=d.value.find(e=>e.nm==l.value[0]);r.value=t,y.value="Delete file [".concat(r.value.nm,"]")}else F.value=d.value.filter(t=>l.value.includes(t.nm))},close(){s.value=!1}});async function B(t){const e=c.loading("Files are being deleted. Please wait");try{s.value=!1,(await b.post("/files?action=DeleteFile",{path:t},{requestOptions:{isOriginalResult:!0}})).message.status==0?c.success("Files deleted successfully"):c.error("Files failed to delete")}catch(a){console.warn(a)}finally{e.close()}}async function C(t,e){await b.post("/files?action=SetBatchData",{data:JSON.stringify(t),type:4,path:e},{requestOptions:{loading:"正在批量删除中,请稍候...",successMessage:!0}}),s.value=!1}async function R(){if(l.value.length==1){const t=d.value.find(e=>e.nm==l.value[0]);await B(t.path)}l.value.length>1&&await C(l.value,k.value)}async function S(){if(!_.value&&!g.value.validate()){c.warning("Please enter the correct verification number");return}await R(),O(v)}return(t,e)=>{const a=$,V=P;return p(),M(V,{preset:"card",draggable:"","close-on-esc":!1,"mask-closable":!1,class:"w-170",segmented:"",show:i(s),"onUpdate:show":e[1]||(e[1]=w=>A(s)?s.value=w:null)},{header:o(()=>[f("div",E,x(i(y)),1)]),footer:o(()=>[f("div",T,[m(a,{onClick:e[0]||(e[0]=w=>s.value=!1)},{default:o(()=>e[5]||(e[5]=[u("cancel")])),_:1,__:[5]}),m(a,{type:"primary",onClick:S},{default:o(()=>e[6]||(e[6]=[u("confirm")])),_:1,__:[6]})])]),default:o(()=>[i(_)?(p(),h("div",J,[e[3]||(e[3]=u(" Confirm delete folder ")),f("span",K,x(i(r).path?"[".concat(i(r).path,"]"):""),1),e[4]||(e[4]=u(" ,it will move to recycle bin after delete, continue? "))])):(p(),h("div",I,[e[2]||(e[2]=f("div",{class:"text-red-5 mb-15px text-14px"}," Recycle bin is not currently open, delete file cannot be restored after, continue? ",-1)),m(q,{ref_key:"calcVertifyRef",ref:g},null,512)]))]),_:1},8,["show"])}}}),ee=N(U,[["__scopeId","data-v-9d32222b"]]);export{ee as default};
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./CalcVerify-legacy-CxmHmisN.js?v=1774508183068","./index-legacy-3bAYElO-.js?v=1774508183068","./FileIcon-legacy-BZIg8aaH.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068","./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./copy-legacy-DQuL_OmY.js?v=1774508183068"],(function(e,a){"use strict";var l,t,s,n,i,c,o,r,u,d,f,v,p,y,g,m,h,w,_,b;return{setters:[e=>{l=e.C},e=>{t=e.m,s=e.av,n=e.c},e=>{i=e.t},e=>{c=e.B,o=e.q},e=>{r=e.k,u=e.i,d=e.r,f=e.$,v=e.a8,p=e.a9,y=e.S,g=e.Z,m=e._,h=e.a0,w=e.j,_=e.aa,b=e.X},null,null],execute:function(){var a=document.createElement("style");a.textContent=".del-modal-wrapper[data-v-9d32222b]{padding:20px;font-size:14px}.header-tit[data-v-9d32222b]{width:280px}\n/*$vite$:1*/",document.head.appendChild(a);const x={class:"header-tit single-line-ellipsis"},j={key:0,class:"del-modal-wrapper"},k={key:1,class:"del-modal-wrapper"},C={class:"text-[#f0a020]"},D={class:"modal-footer-btns"};e("default",n(r({__name:"Del",setup(e,{expose:a}){const n=u("fileStore"),{choosedKeys:r,fileList:F,fileRecycle:S,currentPath:$}=n,O=d(!1),R=d({}),q=d([]),P=d("Delete file"),B=d();async function I(){if(1==r.value.length){const e=F.value.find((e=>e.nm==r.value[0]));await async function(e){const a=t.loading("Files are being deleted. Please wait");try{O.value=!1,0==(await s.post("/files?action=DeleteFile",{path:e},{requestOptions:{isOriginalResult:!0}})).message.status?t.success("Files deleted successfully"):t.error("Files failed to delete")}catch(l){console.warn(l)}finally{a.close()}}(e.path)}r.value.length>1&&await async function(e,a){await s.post("/files?action=SetBatchData",{data:JSON.stringify(e),type:4,path:a},{requestOptions:{loading:"正在批量删除中,请稍候...",successMessage:!0}}),O.value=!1}(r.value,$.value)}async function U(){S.value||B.value.validate()?(await I(),i(n)):t.warning("Please enter the correct verification number")}return a({open(){if(O.value=!0,1==r.value.length){const e=F.value.find((e=>e.nm==r.value[0]));R.value=e,P.value=`Delete file [${R.value.nm}]`}else q.value=F.value.filter((e=>r.value.includes(e.nm)))},close(){O.value=!1}}),(e,a)=>{const t=c,s=o;return f(),v(s,{preset:"card",draggable:"","close-on-esc":!1,"mask-closable":!1,class:"w-170",segmented:"",show:y(O),"onUpdate:show":a[1]||(a[1]=e=>b(O)?O.value=e:null)},{header:p((()=>[m("div",x,_(y(P)),1)])),footer:p((()=>[m("div",D,[h(t,{onClick:a[0]||(a[0]=e=>O.value=!1)},{default:p((()=>a[5]||(a[5]=[w("cancel")]))),_:1,__:[5]}),h(t,{type:"primary",onClick:U},{default:p((()=>a[6]||(a[6]=[w("confirm")]))),_:1,__:[6]})])])),default:p((()=>[y(S)?(f(),g("div",k,[a[3]||(a[3]=w(" Confirm delete folder ")),m("span",C,_(y(R).path?`[${y(R).path}]`:""),1),a[4]||(a[4]=w(" ,it will move to recycle bin after delete, continue? "))])):(f(),g("div",j,[a[2]||(a[2]=m("div",{class:"text-red-5 mb-15px text-14px"}," Recycle bin is not currently open, delete file cannot be restored after, continue? ",-1)),h(l,{ref_key:"calcVertifyRef",ref:B},null,512)]))])),_:1},8,["show"])}}}),[["__scopeId","data-v-9d32222b"]]))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./CalcVerify-legacy-BbIFaSDS.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./FileIcon-legacy-CYrICTNK.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785"],(function(e,a){"use strict";var l,t,s,n,i,c,o,r,u,d,f,v,p,y,g,m,h,w,_,b;return{setters:[e=>{l=e.C},e=>{t=e.m,s=e.as,n=e.c},e=>{i=e.w},e=>{c=e.B,o=e.q},e=>{r=e.k,u=e.i,d=e.r,f=e.$,v=e.a8,p=e.a9,y=e.S,g=e.Z,m=e._,h=e.a0,w=e.j,_=e.aa,b=e.X},null,null,null],execute:function(){var a=document.createElement("style");a.textContent=".del-modal-wrapper[data-v-9d32222b]{padding:20px;font-size:14px}.header-tit[data-v-9d32222b]{width:280px}\n/*$vite$:1*/",document.head.appendChild(a);const x={class:"header-tit single-line-ellipsis"},j={key:0,class:"del-modal-wrapper"},k={key:1,class:"del-modal-wrapper"},C={class:"text-[#f0a020]"},D={class:"modal-footer-btns"};e("default",n(r({__name:"Del",setup(e,{expose:a}){const n=u("fileStore"),{choosedKeys:r,fileList:F,fileRecycle:S,currentPath:$}=n,O=d(!1),R=d({}),q=d([]),P=d("Delete file"),B=d();async function E(){if(1==r.value.length){const e=F.value.find((e=>e.nm==r.value[0]));await async function(e){const a=t.loading("Files are being deleted. Please wait");try{O.value=!1,0==(await s.post("/files?action=DeleteFile",{path:e},{requestOptions:{isOriginalResult:!0}})).message.status?t.success("Files deleted successfully"):t.error("Files failed to delete")}catch(l){console.warn(l)}finally{a.close()}}(e.path)}r.value.length>1&&await async function(e,a){await s.post("/files?action=SetBatchData",{data:JSON.stringify(e),type:4,path:a},{requestOptions:{loading:"正在批量删除中,请稍候...",successMessage:!0}}),O.value=!1}(r.value,$.value)}async function I(){S.value||B.value.validate()?(await E(),i(n)):t.warning("Please enter the correct verification number")}return a({open(){if(O.value=!0,1==r.value.length){const e=F.value.find((e=>e.nm==r.value[0]));R.value=e,P.value=`Delete file [${R.value.nm}]`}else q.value=F.value.filter((e=>r.value.includes(e.nm)))},close(){O.value=!1}}),(e,a)=>{const t=c,s=o;return f(),v(s,{preset:"card",draggable:"","close-on-esc":!1,"mask-closable":!1,class:"w-170",segmented:"",show:y(O),"onUpdate:show":a[1]||(a[1]=e=>b(O)?O.value=e:null)},{header:p((()=>[m("div",x,_(y(P)),1)])),footer:p((()=>[m("div",D,[h(t,{onClick:a[0]||(a[0]=e=>O.value=!1)},{default:p((()=>a[5]||(a[5]=[w("cancel")]))),_:1,__:[5]}),h(t,{type:"primary",onClick:I},{default:p((()=>a[6]||(a[6]=[w("confirm")]))),_:1,__:[6]})])])),default:p((()=>[y(S)?(f(),g("div",k,[a[3]||(a[3]=w(" Confirm delete folder ")),m("span",C,_(y(R).path?`[${y(R).path}]`:""),1),a[4]||(a[4]=w(" ,it will move to recycle bin after delete, continue? "))])):(f(),g("div",j,[a[2]||(a[2]=m("div",{class:"text-red-5 mb-15px text-14px"}," Recycle bin is not currently open, delete file cannot be restored after, continue? ",-1)),h(l,{ref_key:"calcVertifyRef",ref:B},null,512)]))])),_:1},8,["show"])}}}),[["__scopeId","data-v-9d32222b"]]))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
import{h as _,x as d}from"./index-BTglIPU2.js?v=1773287522785";import{_ as v}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{X as h}from"./FileIcon-eIHDRaxH.js?v=1773287522785";import{u as w}from"./useTableColumns-DDeyYvje.js?v=1773287522785";import{k as x,R as L,i as b,r as n,$ as k,a8 as C,a9 as F,_ as M,a0 as B,S as i,X as g}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./soft-Cjyfamvm.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";const y={class:"p-20px"},E=x({__name:"FavoriteList",setup(D,{expose:r}){const{t}=L(),a=b("fileStore"),{favoriteList:l}=a,o=n(!1);r({open(){o.value=!0},close(){o.value=!1}});const m=n([{title:t("file.favoriteListModal.path"),key:"path",ellipsis:{tooltip:!0}},w({width:100,options:e=>[{label:t("Public.Btn.Delete"),onClick:()=>p(e.path)}]})]);function p(e){_({title:t("file.favoriteListModal.removeFavoriteTitle"),content:t("file.favoriteListModal.removeFavoriteMessage",{path:e}),onConfirm:async()=>{await h(a,e)}})}return(e,s)=>{const c=v,f=d;return k(),C(f,{show:i(o),"onUpdate:show":s[0]||(s[0]=u=>g(o)?o.value=u:null),title:i(t)("file.favoriteListModal.title"),width:850},{default:F(()=>[M("div",y,[B(c,{"max-height":480,data:i(l),columns:i(m)},null,8,["data","columns"])])]),_:1},8,["show","title"])}}});export{E as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{h as _,y as d}from"./index-LQ-JIYiv.js?v=1774508183068";import{_ as v}from"./index.vue_vue_type_script_setup_true_lang-BRQncOow.js?v=1774508183068";import{X as h}from"./FileIcon-MbTGjXAj.js?v=1774508183068";import{u as w}from"./useTableColumns-BpMo4f8r.js?v=1774508183068";import{k as x,R as L,i as b,r as n,$ as k,a8 as C,a9 as F,_ as M,a0 as B,S as a,X as g}from"./vue-core-BlDeWrD6.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./naive-ui-BjvXgNtF.js?v=1774508183068";import"./data-DKqR3z3t.js?v=1774508183068";import"./copy-DTOfN-dY.js?v=1774508183068";import"./index-DZCznq9q.js?v=1774508183068";import"./index-Dd5dC2sI.js?v=1774508183068";import"./index.vue_vue_type_script_setup_true_lang-CbM1JeA4.js?v=1774508183068";import"./index-eoi-RqNz.js?v=1774508183068";const y={class:"p-20px"},z=x({__name:"FavoriteList",setup(D,{expose:r}){const{t}=L(),i=b("fileStore"),{favoriteList:l}=i,o=n(!1);r({open(){o.value=!0},close(){o.value=!1}});const m=n([{title:t("file.favoriteListModal.path"),key:"path",ellipsis:{tooltip:!0}},w({width:100,options:e=>[{label:t("Public.Btn.Delete"),onClick:()=>p(e.path)}]})]);function p(e){_({title:t("file.favoriteListModal.removeFavoriteTitle"),content:t("file.favoriteListModal.removeFavoriteMessage",{path:e}),onConfirm:async()=>{await h(i,e)}})}return(e,s)=>{const c=v,f=d;return k(),C(f,{show:a(o),"onUpdate:show":s[0]||(s[0]=u=>g(o)?o.value=u:null),title:a(t)("file.favoriteListModal.title"),width:850},{default:F(()=>[M("div",y,[B(c,{"max-height":480,data:a(l),columns:a(m)},null,8,["data","columns"])])]),_:1},8,["show","title"])}}});export{z as default};
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./index-legacy-3bAYElO-.js?v=1774508183068","./index.vue_vue_type_script_setup_true_lang-legacy-BGVbyVHg.js?v=1774508183068","./FileIcon-legacy-BZIg8aaH.js?v=1774508183068","./useTableColumns-legacy-fw1KVAx-.js?v=1774508183068","./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068","./data-legacy-CjpXZmIa.js?v=1774508183068","./copy-legacy-DQuL_OmY.js?v=1774508183068","./index-legacy-CpMl9Yix.js?v=1774508183068","./index-legacy-DOsTWPyk.js?v=1774508183068","./index.vue_vue_type_script_setup_true_lang-legacy--MJDSWZx.js?v=1774508183068","./index-legacy-DmGvnsGO.js?v=1774508183068"],(function(e,t){"use strict";var l,a,i,s,n,o,u,c,r,v,p,d,y,g,_,f;return{setters:[e=>{l=e.h,a=e.y},e=>{i=e._},e=>{s=e.X},e=>{n=e.u},e=>{o=e.k,u=e.R,c=e.i,r=e.r,v=e.$,p=e.a8,d=e.a9,y=e._,g=e.a0,_=e.S,f=e.X},null,null,null,null,null,null,null,null],execute:function(){const t={class:"p-20px"};e("default",o({__name:"FavoriteList",setup(e,{expose:o}){const{t:j}=u(),h=c("fileStore"),{favoriteList:m}=h,x=r(!1);o({open(){x.value=!0},close(){x.value=!1}});const w=r([{title:j("file.favoriteListModal.path"),key:"path",ellipsis:{tooltip:!0}},n({width:100,options:e=>[{label:j("Public.Btn.Delete"),onClick:()=>{return t=e.path,void l({title:j("file.favoriteListModal.removeFavoriteTitle"),content:j("file.favoriteListModal.removeFavoriteMessage",{path:t}),onConfirm:async()=>{await s(h,t)}});var t}}]})]);return(e,l)=>{const s=i,n=a;return v(),p(n,{show:_(x),"onUpdate:show":l[0]||(l[0]=e=>f(x)?x.value=e:null),title:_(j)("file.favoriteListModal.title"),width:850},{default:d((()=>[y("div",t,[g(s,{"max-height":480,data:_(m),columns:_(w)},null,8,["data","columns"])])])),_:1},8,["show","title"])}}}))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./FileIcon-legacy-CYrICTNK.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785"],(function(e,t){"use strict";var l,a,i,s,n,o,u,c,r,v,d,p,g,y,_,f;return{setters:[e=>{l=e.h,a=e.x},e=>{i=e._},e=>{s=e.X},e=>{n=e.u},e=>{o=e.k,u=e.R,c=e.i,r=e.r,v=e.$,d=e.a8,p=e.a9,g=e._,y=e.a0,_=e.S,f=e.X},null,null,null,null,null,null,null,null,null],execute:function(){const t={class:"p-20px"};e("default",o({__name:"FavoriteList",setup(e,{expose:o}){const{t:j}=u(),h=c("fileStore"),{favoriteList:x}=h,m=r(!1);o({open(){m.value=!0},close(){m.value=!1}});const w=r([{title:j("file.favoriteListModal.path"),key:"path",ellipsis:{tooltip:!0}},n({width:100,options:e=>[{label:j("Public.Btn.Delete"),onClick:()=>{return t=e.path,void l({title:j("file.favoriteListModal.removeFavoriteTitle"),content:j("file.favoriteListModal.removeFavoriteMessage",{path:t}),onConfirm:async()=>{await s(h,t)}});var t}}]})]);return(e,l)=>{const s=i,n=a;return v(),d(n,{show:_(m),"onUpdate:show":l[0]||(l[0]=e=>f(m)?m.value=e:null),title:_(j)("file.favoriteListModal.title"),width:850},{default:p((()=>[g("div",t,[y(s,{"max-height":480,data:_(x),columns:_(w)},null,8,["data","columns"])])])),_:1},8,["show","title"])}}}))}}}));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
import{c as v,i as C,C as $,n as B,h as F}from"./index-BTglIPU2.js?v=1773287522785";import{u as R}from"./useLoop-BadgF3pN.js?v=1773287522785";import{a1 as j,w as P,a2 as N}from"./FileIcon-eIHDRaxH.js?v=1773287522785";import{k as y,al as S,w as V,$ as l,Z as i,n as H,R as I,r as A,c as D,_ as e,a0 as m,a9 as f,aa as a,S as s,j as M,a8 as O,F as q,P as E,ak as G}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{n as U,B as Z,ab as z}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./soft-Cjyfamvm.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";const J=["innerHTML"],K=y({__name:"FileTaskLogs",props:{value:{type:String,default:""}},setup(c){const _=c,p=S("logsRef"),d=()=>{H(()=>{const o=p.value;if(o){const{scrollHeight:t}=o;o.scrollTop=t}})};return V(()=>_.value,()=>{d()},{immediate:!0}),(o,t)=>(l(),i("div",{ref_key:"logsRef",ref:p,class:"task-logs",innerHTML:c.value||o.$t("file.task.noLogs")},null,8,J))}}),Q=v(K,[["__scopeId","data-v-ee8b8ada"]]),W={class:"p-16px"},X={class:"flex items-center justify-between h-36px px-10px rounded-tl-10px rounded-tr-10px bg-#f5f5f5"},Y={class:"max-w-360px"},ee={class:"text-desc text-14px"},se={key:0,class:"p-10px"},te={class:"flex items-center justify-between mt-4px"},ne={class:"flex"},oe={class:"mr-24px"},ae={key:2,class:"mt-10px"},le={class:"flex items-center justify-between h-36px px-10px rounded-tl-10px rounded-tr-10px bg-#f5f5f5"},ie={class:"text-desc text-14px"},ce={class:"flex-1 w-0"},re={class:"min-w-0"},pe={class:"text-weak text-14px"},de=["onClick"],ue=y({__name:"FileTask",props:{taskList:{type:Array,default:()=>[]},store:{type:Object,required:!0}},emits:["close"],setup(c,{emit:_}){const p=_,{t:d}=I(),o=A(c.taskList),t=D(()=>o.value[0]||{log:"",name:"",shell:""}),x=async()=>{const{message:n}=await j();B(n)&&n.length>0?o.value=n:(P(c.store),p("close"))},{loop:g,clearTimer:T}=R(x,2);g();const w=async()=>{T(),await x(),g()},k=n=>{F({title:d("file.task.deleteTask"),content:d("file.task.confirmDeleteTask",{name:n.name,shell:n.shell}),onConfirm:async()=>{await N(n.id),w()}})};return(n,u)=>{const h=U,b=Z,L=z;return l(),i("div",W,[e("div",X,[e("div",Y,[m(h,null,{default:f(()=>[e("span",ee,a(s(t).name+n.$t("Public.Punctuation.Colon")+s(t).shell),1)]),_:1})]),m(b,{type:"primary",text:"",onClick:u[0]||(u[0]=r=>k(s(t)))},{default:f(()=>[M(a(n.$t("Public.Btn.Cancel")),1)]),_:1})]),s(C)(s(t).log)?(l(),i("div",se,[m(L,{type:"line",height:3,"show-indicator":!1,percentage:s(t).log.pre||0},null,8,["percentage"]),e("div",te,[e("span",ne,[e("span",oe,a(s(t).log.used)+" / "+a(s($)(s(t).log.total)),1),e("span",null,a(n.$t("file.task.estimatedRemaining"))+": "+a(s(t).log.total),1)]),e("span",null,a(s(t).log.speed)+"/s",1)])])):(l(),O(Q,{key:1,value:s(t).log},null,8,["value"])),s(o).length>1?(l(),i("div",ae,[e("div",le,[e("span",ie,a(n.$t("file.task.waitingTasks")),1)]),(l(!0),i(q,null,E(s(o).slice(1),r=>(l(),i("div",{key:r.id,class:"flex items-center h-36px px-10px"},[e("div",ce,[e("div",re,[m(h,null,{default:f(()=>[e("span",pe,a(r.name+n.$t("Public.Punctuation.Colon")+r.shell),1)]),_:2},1024)])]),e("div",{class:"flex items-center ml-12px cursor-pointer",onClick:me=>k(r)},u[1]||(u[1]=[e("i",{class:"i-streamline:delete-1-solid text-10px text-error"},null,-1)]),8,de)]))),128))])):G("",!0)])}}}),Te=v(ue,[["__scopeId","data-v-93cb7b82"]]);export{Te as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{c as v,i as C,D as $,n as B,h as F}from"./index-LQ-JIYiv.js?v=1774508183068";import{u as R}from"./useLoop-CG4Cjj7d.js?v=1774508183068";import{a1 as j,t as P,a2 as N}from"./FileIcon-MbTGjXAj.js?v=1774508183068";import{k as y,al as S,w as V,$ as l,Z as i,n as D,R as H,r as I,c as A,_ as e,a0 as _,a9 as f,aa as o,S as s,j as M,a8 as O,F as q,P as E,ak as G}from"./vue-core-BlDeWrD6.js?v=1774508183068";import{n as U,B as Z,ab as z}from"./naive-ui-BjvXgNtF.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./copy-DTOfN-dY.js?v=1774508183068";const J=["innerHTML"],K=y({__name:"FileTaskLogs",props:{value:{type:String,default:""}},setup(c){const m=c,p=S("logsRef"),d=()=>{D(()=>{const a=p.value;if(a){const{scrollHeight:t}=a;a.scrollTop=t}})};return V(()=>m.value,()=>{d()},{immediate:!0}),(a,t)=>(l(),i("div",{ref_key:"logsRef",ref:p,class:"task-logs",innerHTML:c.value||a.$t("file.task.noLogs")},null,8,J))}}),Q=v(K,[["__scopeId","data-v-ee8b8ada"]]),W={class:"p-16px"},X={class:"flex items-center justify-between h-36px px-10px rounded-tl-10px rounded-tr-10px bg-#f5f5f5"},Y={class:"max-w-360px"},ee={class:"text-desc text-14px"},se={key:0,class:"p-10px"},te={class:"flex items-center justify-between mt-4px"},ne={class:"flex"},ae={class:"mr-24px"},oe={key:2,class:"mt-10px"},le={class:"flex items-center justify-between h-36px px-10px rounded-tl-10px rounded-tr-10px bg-#f5f5f5"},ie={class:"text-desc text-14px"},ce={class:"flex-1 w-0"},re={class:"min-w-0"},pe={class:"text-weak text-14px"},de=["onClick"],ue=y({__name:"FileTask",props:{taskList:{type:Array,default:()=>[]},store:{type:Object,required:!0}},emits:["close"],setup(c,{emit:m}){const p=m,{t:d}=H(),a=I(c.taskList),t=A(()=>a.value[0]||{log:"",name:"",shell:""}),x=async()=>{const{message:n}=await j();B(n)&&n.length>0?a.value=n:(P(c.store),p("close"))},{loop:g,clearTimer:T}=R(x,2);g();const b=async()=>{T(),await x(),g()},k=n=>{F({title:d("file.task.deleteTask"),content:d("file.task.confirmDeleteTask",{name:n.name,shell:n.shell}),onConfirm:async()=>{await N(n.id),b()}})};return(n,u)=>{const h=U,w=Z,L=z;return l(),i("div",W,[e("div",X,[e("div",Y,[_(h,null,{default:f(()=>[e("span",ee,o(s(t).name+n.$t("Public.Punctuation.Colon")+s(t).shell),1)]),_:1})]),_(w,{type:"primary",text:"",onClick:u[0]||(u[0]=r=>k(s(t)))},{default:f(()=>[M(o(n.$t("Public.Btn.Cancel")),1)]),_:1})]),s(C)(s(t).log)?(l(),i("div",se,[_(L,{type:"line",height:3,"show-indicator":!1,percentage:s(t).log.pre||0},null,8,["percentage"]),e("div",te,[e("span",ne,[e("span",ae,o(s(t).log.used)+" / "+o(s($)(s(t).log.total)),1),e("span",null,o(n.$t("file.task.estimatedRemaining"))+": "+o(s(t).log.total),1)]),e("span",null,o(s(t).log.speed)+"/s",1)])])):(l(),O(Q,{key:1,value:s(t).log},null,8,["value"])),s(a).length>1?(l(),i("div",oe,[e("div",le,[e("span",ie,o(n.$t("file.task.waitingTasks")),1)]),(l(!0),i(q,null,E(s(a).slice(1),r=>(l(),i("div",{key:r.id,class:"flex items-center h-36px px-10px"},[e("div",ce,[e("div",re,[_(h,null,{default:f(()=>[e("span",pe,o(r.name+n.$t("Public.Punctuation.Colon")+r.shell),1)]),_:2},1024)])]),e("div",{class:"flex items-center ml-12px cursor-pointer",onClick:_e=>k(r)},u[1]||(u[1]=[e("i",{class:"i-streamline:delete-1-solid text-10px text-error"},null,-1)]),8,de)]))),128))])):G("",!0)])}}}),ye=v(ue,[["__scopeId","data-v-93cb7b82"]]);export{ye as default};
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./index-legacy-3bAYElO-.js?v=1774508183068","./useLoop-legacy-BDarr7Pv.js?v=1774508183068","./FileIcon-legacy-BZIg8aaH.js?v=1774508183068","./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./copy-legacy-DQuL_OmY.js?v=1774508183068"],(function(e,t){"use strict";var l,s,a,n,o,i,c,r,p,d,u,x,g,f,m,v,k,y,b,h,w,j,_,C,T,$,L,P,F,R,H;return{setters:[e=>{l=e.c,s=e.i,a=e.D,n=e.n,o=e.h},e=>{i=e.u},e=>{c=e.a1,r=e.t,p=e.a2},e=>{d=e.k,u=e.al,x=e.w,g=e.$,f=e.Z,m=e.n,v=e.R,k=e.r,y=e.c,b=e._,h=e.a0,w=e.a9,j=e.aa,_=e.S,C=e.j,T=e.a8,$=e.F,L=e.P,P=e.ak},e=>{F=e.n,R=e.B,H=e.ab},null,null],execute:function(){var t=document.createElement("style");t.textContent=".task-logs[data-v-ee8b8ada]{height:180px;line-height:1.4;padding:10px;background-color:#333;border-bottom-left-radius:10px;border-bottom-right-radius:10px;color:#ececec;overflow:auto}.task-logs[data-v-93cb7b82]{max-height:180px;padding:10px;background-color:#333;border-bottom-left-radius:10px;border-bottom-right-radius:10px;color:#ececec;overflow:auto}\n/*$vite$:1*/",document.head.appendChild(t);const I=["innerHTML"],S=l(d({__name:"FileTaskLogs",props:{value:{type:String,default:""}},setup(e){const t=e,l=u("logsRef");return x((()=>t.value),(()=>{m((()=>{const e=l.value;if(e){const{scrollHeight:t}=e;e.scrollTop=t}}))}),{immediate:!0}),(t,s)=>(g(),f("div",{ref_key:"logsRef",ref:l,class:"task-logs",innerHTML:e.value||t.$t("file.task.noLogs")},null,8,I))}}),[["__scopeId","data-v-ee8b8ada"]]),B={class:"p-16px"},D={class:"flex items-center justify-between h-36px px-10px rounded-tl-10px rounded-tr-10px bg-#f5f5f5"},M={class:"max-w-360px"},q={class:"text-desc text-14px"},A={key:0,class:"p-10px"},E={class:"flex items-center justify-between mt-4px"},O={class:"flex"},Z={class:"mr-24px"},z={key:2,class:"mt-10px"},G={class:"flex items-center justify-between h-36px px-10px rounded-tl-10px rounded-tr-10px bg-#f5f5f5"},J={class:"text-desc text-14px"},K={class:"flex-1 w-0"},N={class:"min-w-0"},Q={class:"text-weak text-14px"},U=["onClick"];e("default",l(d({__name:"FileTask",props:{taskList:{type:Array,default:()=>[]},store:{type:Object,required:!0}},emits:["close"],setup(e,{emit:t}){const l=t,{t:d}=v(),u=k(e.taskList),x=y((()=>u.value[0]||{log:"",name:"",shell:""})),m=async()=>{const{message:t}=await c();n(t)&&t.length>0?u.value=t:(r(e.store),l("close"))},{loop:I,clearTimer:V}=i(m,2);I();const W=e=>{o({title:d("file.task.deleteTask"),content:d("file.task.confirmDeleteTask",{name:e.name,shell:e.shell}),onConfirm:async()=>{await p(e.id),(async()=>{V(),await m(),I()})()}})};return(e,t)=>{const l=F,n=R,o=H;return g(),f("div",B,[b("div",D,[b("div",M,[h(l,null,{default:w((()=>[b("span",q,j(_(x).name+e.$t("Public.Punctuation.Colon")+_(x).shell),1)])),_:1})]),h(n,{type:"primary",text:"",onClick:t[0]||(t[0]=e=>W(_(x)))},{default:w((()=>[C(j(e.$t("Public.Btn.Cancel")),1)])),_:1})]),_(s)(_(x).log)?(g(),f("div",A,[h(o,{type:"line",height:3,"show-indicator":!1,percentage:_(x).log.pre||0},null,8,["percentage"]),b("div",E,[b("span",O,[b("span",Z,j(_(x).log.used)+" / "+j(_(a)(_(x).log.total)),1),b("span",null,j(e.$t("file.task.estimatedRemaining"))+": "+j(_(x).log.total),1)]),b("span",null,j(_(x).log.speed)+"/s",1)])])):(g(),T(S,{key:1,value:_(x).log},null,8,["value"])),_(u).length>1?(g(),f("div",z,[b("div",G,[b("span",J,j(e.$t("file.task.waitingTasks")),1)]),(g(!0),f($,null,L(_(u).slice(1),(s=>(g(),f("div",{key:s.id,class:"flex items-center h-36px px-10px"},[b("div",K,[b("div",N,[h(l,null,{default:w((()=>[b("span",Q,j(s.name+e.$t("Public.Punctuation.Colon")+s.shell),1)])),_:2},1024)])]),b("div",{class:"flex items-center ml-12px cursor-pointer",onClick:e=>W(s)},t[1]||(t[1]=[b("i",{class:"i-streamline:delete-1-solid text-10px text-error"},null,-1)]),8,U)])))),128))])):P("",!0)])}}}),[["__scopeId","data-v-93cb7b82"]]))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./useLoop-legacy-CgPln_xQ.js?v=1773287522785","./FileIcon-legacy-CYrICTNK.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785"],(function(e,t){"use strict";var l,s,a,n,o,i,c,r,p,d,u,x,g,f,m,v,y,k,b,h,w,j,_,C,T,$,L,P,F,H,R;return{setters:[e=>{l=e.c,s=e.i,a=e.C,n=e.n,o=e.h},e=>{i=e.u},e=>{c=e.a1,r=e.w,p=e.a2},e=>{d=e.k,u=e.al,x=e.w,g=e.$,f=e.Z,m=e.n,v=e.R,y=e.r,k=e.c,b=e._,h=e.a0,w=e.a9,j=e.aa,_=e.S,C=e.j,T=e.a8,$=e.F,L=e.P,P=e.ak},e=>{F=e.n,H=e.B,R=e.ab},null,null,null],execute:function(){var t=document.createElement("style");t.textContent=".task-logs[data-v-ee8b8ada]{height:180px;line-height:1.4;padding:10px;background-color:#333;border-bottom-left-radius:10px;border-bottom-right-radius:10px;color:#ececec;overflow:auto}.task-logs[data-v-93cb7b82]{max-height:180px;padding:10px;background-color:#333;border-bottom-left-radius:10px;border-bottom-right-radius:10px;color:#ececec;overflow:auto}\n/*$vite$:1*/",document.head.appendChild(t);const I=["innerHTML"],S=l(d({__name:"FileTaskLogs",props:{value:{type:String,default:""}},setup(e){const t=e,l=u("logsRef");return x((()=>t.value),(()=>{m((()=>{const e=l.value;if(e){const{scrollHeight:t}=e;e.scrollTop=t}}))}),{immediate:!0}),(t,s)=>(g(),f("div",{ref_key:"logsRef",ref:l,class:"task-logs",innerHTML:e.value||t.$t("file.task.noLogs")},null,8,I))}}),[["__scopeId","data-v-ee8b8ada"]]),B={class:"p-16px"},E={class:"flex items-center justify-between h-36px px-10px rounded-tl-10px rounded-tr-10px bg-#f5f5f5"},M={class:"max-w-360px"},q={class:"text-desc text-14px"},A={key:0,class:"p-10px"},D={class:"flex items-center justify-between mt-4px"},O={class:"flex"},Z={class:"mr-24px"},z={key:2,class:"mt-10px"},G={class:"flex items-center justify-between h-36px px-10px rounded-tl-10px rounded-tr-10px bg-#f5f5f5"},J={class:"text-desc text-14px"},K={class:"flex-1 w-0"},N={class:"min-w-0"},Q={class:"text-weak text-14px"},U=["onClick"];e("default",l(d({__name:"FileTask",props:{taskList:{type:Array,default:()=>[]},store:{type:Object,required:!0}},emits:["close"],setup(e,{emit:t}){const l=t,{t:d}=v(),u=y(e.taskList),x=k((()=>u.value[0]||{log:"",name:"",shell:""})),m=async()=>{const{message:t}=await c();n(t)&&t.length>0?u.value=t:(r(e.store),l("close"))},{loop:I,clearTimer:V}=i(m,2);I();const W=e=>{o({title:d("file.task.deleteTask"),content:d("file.task.confirmDeleteTask",{name:e.name,shell:e.shell}),onConfirm:async()=>{await p(e.id),(async()=>{V(),await m(),I()})()}})};return(e,t)=>{const l=F,n=H,o=R;return g(),f("div",B,[b("div",E,[b("div",M,[h(l,null,{default:w((()=>[b("span",q,j(_(x).name+e.$t("Public.Punctuation.Colon")+_(x).shell),1)])),_:1})]),h(n,{type:"primary",text:"",onClick:t[0]||(t[0]=e=>W(_(x)))},{default:w((()=>[C(j(e.$t("Public.Btn.Cancel")),1)])),_:1})]),_(s)(_(x).log)?(g(),f("div",A,[h(o,{type:"line",height:3,"show-indicator":!1,percentage:_(x).log.pre||0},null,8,["percentage"]),b("div",D,[b("span",O,[b("span",Z,j(_(x).log.used)+" / "+j(_(a)(_(x).log.total)),1),b("span",null,j(e.$t("file.task.estimatedRemaining"))+": "+j(_(x).log.total),1)]),b("span",null,j(_(x).log.speed)+"/s",1)])])):(g(),T(S,{key:1,value:_(x).log},null,8,["value"])),_(u).length>1?(g(),f("div",z,[b("div",G,[b("span",J,j(e.$t("file.task.waitingTasks")),1)]),(g(!0),f($,null,L(_(u).slice(1),(s=>(g(),f("div",{key:s.id,class:"flex items-center h-36px px-10px"},[b("div",K,[b("div",N,[h(l,null,{default:w((()=>[b("span",Q,j(s.name+e.$t("Public.Punctuation.Colon")+s.shell),1)])),_:2},1024)])]),b("div",{class:"flex items-center ml-12px cursor-pointer",onClick:e=>W(s)},t[1]||(t[1]=[b("i",{class:"i-streamline:delete-1-solid text-10px text-error"},null,-1)]),8,U)])))),128))])):P("",!0)])}}}),[["__scopeId","data-v-93cb7b82"]]))}}}));
|
||||
@@ -0,0 +1 @@
|
||||
import{k as d,$ as a,Z as o,F as l,P as p,_ as s,aa as t,ak as u}from"./vue-core-BlDeWrD6.js?v=1774508183068";import{c as _}from"./index-LQ-JIYiv.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./naive-ui-BjvXgNtF.js?v=1774508183068";const h={class:"issues-list"},g=["item"],m={class:"issue-header"},v={class:"issue-number"},k=["innerHTML"],y={class:"issue-level high"},f={class:"issue-content"},H={class:"issue-ps"},b={class:"issue-tips"},x=["innerHTML"],L={key:0,class:"pagination-note"},T=d({__name:"HighRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(r){const i=r;return(M,n)=>(a(),o("div",h,[(a(!0),o(l,null,p(i.data,(e,c)=>(a(),o("div",{class:"issue-item high",key:"high-"+c,item:e},[s("div",m,[s("div",v,t(e.num),1),s("div",{class:"issue-name",innerHTML:e.name},null,8,k),s("div",y,t(e.level),1)]),s("div",f,[s("div",H,t(e.ps),1),s("div",b,[n[0]||(n[0]=s("div",{class:"tips-title"},"Solution:",-1)),s("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,x)])])],8,g))),128)),i.totalPages>1?(a(),o("div",L," Total "+t(i.totalPages)+" pages, current page "+t(i.pageIndex+1)+". ",1)):u("",!0)]))}}),B=_(T,[["__scopeId","data-v-71e52ac0"]]);export{B as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{k as d,$ as a,Z as o,F as l,P as p,_ as s,aa as t,ak as u}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{c as _}from"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";const h={class:"issues-list"},g=["item"],m={class:"issue-header"},v={class:"issue-number"},k=["innerHTML"],y={class:"issue-level high"},f={class:"issue-content"},H={class:"issue-ps"},b={class:"issue-tips"},x=["innerHTML"],L={key:0,class:"pagination-note"},T=d({__name:"HighRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(r){const i=r;return(M,n)=>(a(),o("div",h,[(a(!0),o(l,null,p(i.data,(e,c)=>(a(),o("div",{class:"issue-item high",key:"high-"+c,item:e},[s("div",m,[s("div",v,t(e.num),1),s("div",{class:"issue-name",innerHTML:e.name},null,8,k),s("div",y,t(e.level),1)]),s("div",f,[s("div",H,t(e.ps),1),s("div",b,[n[0]||(n[0]=s("div",{class:"tips-title"},"Solution:",-1)),s("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,x)])])],8,g))),128)),i.totalPages>1?(a(),o("div",L," Total "+t(i.totalPages)+" pages, current page "+t(i.pageIndex+1)+". ",1)):u("",!0)]))}}),B=_(T,[["__scopeId","data-v-71e52ac0"]]);export{B as default};
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,s){"use strict";var i,t,a,r,o,u,l,d,n;return{setters:[e=>{i=e.k,t=e.$,a=e.Z,r=e.F,o=e.P,u=e._,l=e.aa,d=e.ak},e=>{n=e.c},null,null],execute:function(){var s=document.createElement("style");s.textContent=".issues-list .issue-item[data-v-71e52ac0]{margin-bottom:20px;border:2px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1);page-break-inside:avoid}.issues-list .issue-item.high[data-v-71e52ac0]{border-left:6px solid #ff4d4f}.issues-list .issue-item.medium[data-v-71e52ac0]{border-left:6px solid #faad14}.issues-list .issue-item.low[data-v-71e52ac0]{border-left:6px solid #52c41a}.issues-list .issue-item.cve[data-v-71e52ac0]{border-left:6px solid #722ed1}.issues-list .issue-item.ignore[data-v-71e52ac0]{border-left:6px solid #999}.issues-list .issue-item .issue-header[data-v-71e52ac0]{display:flex;align-items:center;padding:15px 20px;background-color:var(--home-risk-security-report-bg)}.issues-list .issue-item .issue-header .issue-number[data-v-71e52ac0]{flex:0 0 40px;height:40px;border-radius:50%;background-color:#07f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin-right:15px;font-size:16px}.issues-list .issue-item .issue-header .issue-name[data-v-71e52ac0]{flex:1;font-weight:500;font-size:16px}.issues-list .issue-item .issue-header .issue-level[data-v-71e52ac0]{padding:4px 12px;border-radius:6px;font-size:14px;margin-right:15px;font-weight:700}.issues-list .issue-item .issue-header .issue-level.high[data-v-71e52ac0]{background-color:#ff4d4f;color:#fff}.issues-list .issue-item .issue-header .issue-level.medium[data-v-71e52ac0]{background-color:#faad14;color:#fff}.issues-list .issue-item .issue-header .issue-level.low[data-v-71e52ac0]{background-color:#52c41a;color:#fff}.issues-list .issue-item .issue-header .issue-level.ignore[data-v-71e52ac0]{background-color:#f0f0f0;color:#666}.issues-list .issue-item .issue-header .issue-auto[data-v-71e52ac0]{padding:4px 12px;border-radius:6px;font-size:14px;background-color:#f5f5f5;color:#666}.issues-list .issue-item .issue-header .issue-auto.supported[data-v-71e52ac0]{background-color:#e6f7ff;color:#07f}.issues-list .issue-item .issue-content[data-v-71e52ac0]{padding:20px}.issues-list .issue-item .issue-content .issue-ps[data-v-71e52ac0]{margin-bottom:15px;color:var(--color-text-2);font-size:16px;line-height:1.6}.issues-list .issue-item .issue-content .issue-tips[data-v-71e52ac0]{background-color:var(--home-risk-security-report-bg);padding:15px;border-radius:8px;border-left:4px solid #0077ff}.issues-list .issue-item .issue-content .issue-tips .tips-title[data-v-71e52ac0]{font-weight:500;margin-bottom:10px;font-size:16px}.issues-list .issue-item .issue-content .issue-tips .tips-content[data-v-71e52ac0]{color:var(--color-text-3);white-space:pre-line;line-height:1.6;font-size:15px}\n/*$vite$:1*/",document.head.appendChild(s);const c={class:"issues-list"},p=["item"],f={class:"issue-header"},g={class:"issue-number"},m=["innerHTML"],v={class:"issue-level high"},x={class:"issue-content"},h={class:"issue-ps"},b={class:"issue-tips"},y=["innerHTML"],k={key:0,class:"pagination-note"};e("default",n(i({__name:"HighRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(e){const s=e;return(e,i)=>(t(),a("div",c,[(t(!0),a(r,null,o(s.data,((e,s)=>(t(),a("div",{class:"issue-item high",key:"high-"+s,item:e},[u("div",f,[u("div",g,l(e.num),1),u("div",{class:"issue-name",innerHTML:e.name},null,8,m),u("div",v,l(e.level),1)]),u("div",x,[u("div",h,l(e.ps),1),u("div",b,[i[0]||(i[0]=u("div",{class:"tips-title"},"Solution:",-1)),u("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,y)])])],8,p)))),128)),s.totalPages>1?(t(),a("div",k," Total "+l(s.totalPages)+" pages, current page "+l(s.pageIndex+1)+". ",1)):d("",!0)]))}}),[["__scopeId","data-v-71e52ac0"]]))}}}));
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./index-legacy-3bAYElO-.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068"],(function(e,s){"use strict";var i,t,a,r,o,u,l,d,n;return{setters:[e=>{i=e.k,t=e.$,a=e.Z,r=e.F,o=e.P,u=e._,l=e.aa,d=e.ak},e=>{n=e.c},null,null],execute:function(){var s=document.createElement("style");s.textContent=".issues-list .issue-item[data-v-71e52ac0]{margin-bottom:20px;border:2px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1);page-break-inside:avoid}.issues-list .issue-item.high[data-v-71e52ac0]{border-left:6px solid #ff4d4f}.issues-list .issue-item.medium[data-v-71e52ac0]{border-left:6px solid #faad14}.issues-list .issue-item.low[data-v-71e52ac0]{border-left:6px solid #52c41a}.issues-list .issue-item.cve[data-v-71e52ac0]{border-left:6px solid #722ed1}.issues-list .issue-item.ignore[data-v-71e52ac0]{border-left:6px solid #999}.issues-list .issue-item .issue-header[data-v-71e52ac0]{display:flex;align-items:center;padding:15px 20px;background-color:var(--home-risk-security-report-bg)}.issues-list .issue-item .issue-header .issue-number[data-v-71e52ac0]{flex:0 0 40px;height:40px;border-radius:50%;background-color:#07f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin-right:15px;font-size:16px}.issues-list .issue-item .issue-header .issue-name[data-v-71e52ac0]{flex:1;font-weight:500;font-size:16px}.issues-list .issue-item .issue-header .issue-level[data-v-71e52ac0]{padding:4px 12px;border-radius:6px;font-size:14px;margin-right:15px;font-weight:700}.issues-list .issue-item .issue-header .issue-level.high[data-v-71e52ac0]{background-color:#ff4d4f;color:#fff}.issues-list .issue-item .issue-header .issue-level.medium[data-v-71e52ac0]{background-color:#faad14;color:#fff}.issues-list .issue-item .issue-header .issue-level.low[data-v-71e52ac0]{background-color:#52c41a;color:#fff}.issues-list .issue-item .issue-header .issue-level.ignore[data-v-71e52ac0]{background-color:#f0f0f0;color:#666}.issues-list .issue-item .issue-header .issue-auto[data-v-71e52ac0]{padding:4px 12px;border-radius:6px;font-size:14px;background-color:#f5f5f5;color:#666}.issues-list .issue-item .issue-header .issue-auto.supported[data-v-71e52ac0]{background-color:#e6f7ff;color:#07f}.issues-list .issue-item .issue-content[data-v-71e52ac0]{padding:20px}.issues-list .issue-item .issue-content .issue-ps[data-v-71e52ac0]{margin-bottom:15px;color:var(--color-text-2);font-size:16px;line-height:1.6}.issues-list .issue-item .issue-content .issue-tips[data-v-71e52ac0]{background-color:var(--home-risk-security-report-bg);padding:15px;border-radius:8px;border-left:4px solid #0077ff}.issues-list .issue-item .issue-content .issue-tips .tips-title[data-v-71e52ac0]{font-weight:500;margin-bottom:10px;font-size:16px}.issues-list .issue-item .issue-content .issue-tips .tips-content[data-v-71e52ac0]{color:var(--color-text-3);white-space:pre-line;line-height:1.6;font-size:15px}\n/*$vite$:1*/",document.head.appendChild(s);const c={class:"issues-list"},p=["item"],f={class:"issue-header"},g={class:"issue-number"},m=["innerHTML"],v={class:"issue-level high"},x={class:"issue-content"},h={class:"issue-ps"},b={class:"issue-tips"},y=["innerHTML"],k={key:0,class:"pagination-note"};e("default",n(i({__name:"HighRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(e){const s=e;return(e,i)=>(t(),a("div",c,[(t(!0),a(r,null,o(s.data,((e,s)=>(t(),a("div",{class:"issue-item high",key:"high-"+s,item:e},[u("div",f,[u("div",g,l(e.num),1),u("div",{class:"issue-name",innerHTML:e.name},null,8,m),u("div",v,l(e.level),1)]),u("div",x,[u("div",h,l(e.ps),1),u("div",b,[i[0]||(i[0]=u("div",{class:"tips-title"},"Solution:",-1)),u("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,y)])])],8,p)))),128)),s.totalPages>1?(t(),a("div",k," Total "+l(s.totalPages)+" pages, current page "+l(s.pageIndex+1)+". ",1)):d("",!0)]))}}),[["__scopeId","data-v-71e52ac0"]]))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
import{k as d,$ as a,Z as i,F as l,P as p,_ as s,aa as t,ak as u}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{c as _}from"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";const m={class:"issues-list"},v=["item"],g={class:"issue-header"},h={class:"issue-number"},k=["innerHTML"],y={class:"issue-level low"},f={class:"issue-content"},L={class:"issue-ps"},b={class:"issue-tips"},w=["innerHTML"],x={key:0,class:"pagination-note"},T=d({__name:"LowRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(r){const o=r;return(H,n)=>(a(),i("div",m,[(a(!0),i(l,null,p(o.data,(e,c)=>(a(),i("div",{class:"issue-item low",key:"low-"+c,item:e},[s("div",g,[s("div",h,t(e.num),1),s("div",{class:"issue-name",innerHTML:e.name},null,8,k),s("div",y,t(e.level),1)]),s("div",f,[s("div",L,t(e.ps),1),s("div",b,[n[0]||(n[0]=s("div",{class:"tips-title"},"Solution:",-1)),s("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,w)])])],8,v))),128)),o.totalPages>1?(a(),i("div",x," Total "+t(o.totalPages)+" pages, current page "+t(o.pageIndex+1)+". ",1)):u("",!0)]))}}),q=_(T,[["__scopeId","data-v-a1397968"]]);export{q as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{k as d,$ as a,Z as i,F as l,P as p,_ as s,aa as t,ak as u}from"./vue-core-BlDeWrD6.js?v=1774508183068";import{c as _}from"./index-LQ-JIYiv.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./naive-ui-BjvXgNtF.js?v=1774508183068";const m={class:"issues-list"},v=["item"],g={class:"issue-header"},h={class:"issue-number"},k=["innerHTML"],y={class:"issue-level low"},f={class:"issue-content"},L={class:"issue-ps"},b={class:"issue-tips"},w=["innerHTML"],x={key:0,class:"pagination-note"},T=d({__name:"LowRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(r){const o=r;return(H,n)=>(a(),i("div",m,[(a(!0),i(l,null,p(o.data,(e,c)=>(a(),i("div",{class:"issue-item low",key:"low-"+c,item:e},[s("div",g,[s("div",h,t(e.num),1),s("div",{class:"issue-name",innerHTML:e.name},null,8,k),s("div",y,t(e.level),1)]),s("div",f,[s("div",L,t(e.ps),1),s("div",b,[n[0]||(n[0]=s("div",{class:"tips-title"},"Solution:",-1)),s("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,w)])])],8,v))),128)),o.totalPages>1?(a(),i("div",x," Total "+t(o.totalPages)+" pages, current page "+t(o.pageIndex+1)+". ",1)):u("",!0)]))}}),q=_(T,[["__scopeId","data-v-a1397968"]]);export{q as default};
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,s){"use strict";var i,t,a,o,r,u,l,d,n;return{setters:[e=>{i=e.k,t=e.$,a=e.Z,o=e.F,r=e.P,u=e._,l=e.aa,d=e.ak},e=>{n=e.c},null,null],execute:function(){var s=document.createElement("style");s.textContent=".issues-list .issue-item[data-v-a1397968]{margin-bottom:20px;border:2px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1);page-break-inside:avoid}.issues-list .issue-item.high[data-v-a1397968]{border-left:6px solid #ff4d4f}.issues-list .issue-item.medium[data-v-a1397968]{border-left:6px solid #faad14}.issues-list .issue-item.low[data-v-a1397968]{border-left:6px solid #52c41a}.issues-list .issue-item.cve[data-v-a1397968]{border-left:6px solid #722ed1}.issues-list .issue-item.ignore[data-v-a1397968]{border-left:6px solid #999}.issues-list .issue-item .issue-header[data-v-a1397968]{display:flex;align-items:center;padding:15px 20px;background-color:var(--home-risk-security-report-bg)}.issues-list .issue-item .issue-header .issue-number[data-v-a1397968]{flex:0 0 40px;height:40px;border-radius:50%;background-color:#07f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin-right:15px;font-size:16px}.issues-list .issue-item .issue-header .issue-name[data-v-a1397968]{flex:1;font-weight:500;font-size:16px}.issues-list .issue-item .issue-header .issue-level[data-v-a1397968]{padding:4px 12px;border-radius:6px;font-size:14px;margin-right:15px;font-weight:700}.issues-list .issue-item .issue-header .issue-level.high[data-v-a1397968]{background-color:#ff4d4f;color:#fff}.issues-list .issue-item .issue-header .issue-level.medium[data-v-a1397968]{background-color:#faad14;color:#fff}.issues-list .issue-item .issue-header .issue-level.low[data-v-a1397968]{background-color:#52c41a;color:#fff}.issues-list .issue-item .issue-header .issue-level.ignore[data-v-a1397968]{background-color:#f0f0f0;color:#666}.issues-list .issue-item .issue-header .issue-auto[data-v-a1397968]{padding:4px 12px;border-radius:6px;font-size:14px;background-color:#f5f5f5;color:#666}.issues-list .issue-item .issue-header .issue-auto.supported[data-v-a1397968]{background-color:#e6f7ff;color:#07f}.issues-list .issue-item .issue-content[data-v-a1397968]{padding:20px}.issues-list .issue-item .issue-content .issue-ps[data-v-a1397968]{margin-bottom:15px;color:var(--color-text-2);font-size:16px;line-height:1.6}.issues-list .issue-item .issue-content .issue-tips[data-v-a1397968]{background-color:var(--home-risk-security-report-bg);padding:15px;border-radius:8px;border-left:4px solid #0077ff}.issues-list .issue-item .issue-content .issue-tips .tips-title[data-v-a1397968]{font-weight:500;margin-bottom:10px;font-size:16px;color:var(--color-text-2)}.issues-list .issue-item .issue-content .issue-tips .tips-content[data-v-a1397968]{color:var(--color-text-3);white-space:pre-line;line-height:1.6;font-size:15px}\n/*$vite$:1*/",document.head.appendChild(s);const c={class:"issues-list"},p=["item"],f={class:"issue-header"},m={class:"issue-number"},v=["innerHTML"],g={class:"issue-level low"},x={class:"issue-content"},b={class:"issue-ps"},h={class:"issue-tips"},y=["innerHTML"],k={key:0,class:"pagination-note"};e("default",n(i({__name:"LowRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(e){const s=e;return(e,i)=>(t(),a("div",c,[(t(!0),a(o,null,r(s.data,((e,s)=>(t(),a("div",{class:"issue-item low",key:"low-"+s,item:e},[u("div",f,[u("div",m,l(e.num),1),u("div",{class:"issue-name",innerHTML:e.name},null,8,v),u("div",g,l(e.level),1)]),u("div",x,[u("div",b,l(e.ps),1),u("div",h,[i[0]||(i[0]=u("div",{class:"tips-title"},"Solution:",-1)),u("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,y)])])],8,p)))),128)),s.totalPages>1?(t(),a("div",k," Total "+l(s.totalPages)+" pages, current page "+l(s.pageIndex+1)+". ",1)):d("",!0)]))}}),[["__scopeId","data-v-a1397968"]]))}}}));
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./index-legacy-3bAYElO-.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068"],(function(e,s){"use strict";var i,t,a,o,r,u,l,d,n;return{setters:[e=>{i=e.k,t=e.$,a=e.Z,o=e.F,r=e.P,u=e._,l=e.aa,d=e.ak},e=>{n=e.c},null,null],execute:function(){var s=document.createElement("style");s.textContent=".issues-list .issue-item[data-v-a1397968]{margin-bottom:20px;border:2px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1);page-break-inside:avoid}.issues-list .issue-item.high[data-v-a1397968]{border-left:6px solid #ff4d4f}.issues-list .issue-item.medium[data-v-a1397968]{border-left:6px solid #faad14}.issues-list .issue-item.low[data-v-a1397968]{border-left:6px solid #52c41a}.issues-list .issue-item.cve[data-v-a1397968]{border-left:6px solid #722ed1}.issues-list .issue-item.ignore[data-v-a1397968]{border-left:6px solid #999}.issues-list .issue-item .issue-header[data-v-a1397968]{display:flex;align-items:center;padding:15px 20px;background-color:var(--home-risk-security-report-bg)}.issues-list .issue-item .issue-header .issue-number[data-v-a1397968]{flex:0 0 40px;height:40px;border-radius:50%;background-color:#07f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin-right:15px;font-size:16px}.issues-list .issue-item .issue-header .issue-name[data-v-a1397968]{flex:1;font-weight:500;font-size:16px}.issues-list .issue-item .issue-header .issue-level[data-v-a1397968]{padding:4px 12px;border-radius:6px;font-size:14px;margin-right:15px;font-weight:700}.issues-list .issue-item .issue-header .issue-level.high[data-v-a1397968]{background-color:#ff4d4f;color:#fff}.issues-list .issue-item .issue-header .issue-level.medium[data-v-a1397968]{background-color:#faad14;color:#fff}.issues-list .issue-item .issue-header .issue-level.low[data-v-a1397968]{background-color:#52c41a;color:#fff}.issues-list .issue-item .issue-header .issue-level.ignore[data-v-a1397968]{background-color:#f0f0f0;color:#666}.issues-list .issue-item .issue-header .issue-auto[data-v-a1397968]{padding:4px 12px;border-radius:6px;font-size:14px;background-color:#f5f5f5;color:#666}.issues-list .issue-item .issue-header .issue-auto.supported[data-v-a1397968]{background-color:#e6f7ff;color:#07f}.issues-list .issue-item .issue-content[data-v-a1397968]{padding:20px}.issues-list .issue-item .issue-content .issue-ps[data-v-a1397968]{margin-bottom:15px;color:var(--color-text-2);font-size:16px;line-height:1.6}.issues-list .issue-item .issue-content .issue-tips[data-v-a1397968]{background-color:var(--home-risk-security-report-bg);padding:15px;border-radius:8px;border-left:4px solid #0077ff}.issues-list .issue-item .issue-content .issue-tips .tips-title[data-v-a1397968]{font-weight:500;margin-bottom:10px;font-size:16px;color:var(--color-text-2)}.issues-list .issue-item .issue-content .issue-tips .tips-content[data-v-a1397968]{color:var(--color-text-3);white-space:pre-line;line-height:1.6;font-size:15px}\n/*$vite$:1*/",document.head.appendChild(s);const c={class:"issues-list"},p=["item"],f={class:"issue-header"},m={class:"issue-number"},v=["innerHTML"],g={class:"issue-level low"},x={class:"issue-content"},b={class:"issue-ps"},h={class:"issue-tips"},y=["innerHTML"],k={key:0,class:"pagination-note"};e("default",n(i({__name:"LowRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(e){const s=e;return(e,i)=>(t(),a("div",c,[(t(!0),a(o,null,r(s.data,((e,s)=>(t(),a("div",{class:"issue-item low",key:"low-"+s,item:e},[u("div",f,[u("div",m,l(e.num),1),u("div",{class:"issue-name",innerHTML:e.name},null,8,v),u("div",g,l(e.level),1)]),u("div",x,[u("div",b,l(e.ps),1),u("div",h,[i[0]||(i[0]=u("div",{class:"tips-title"},"Solution:",-1)),u("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,y)])])],8,p)))),128)),s.totalPages>1?(t(),a("div",k," Total "+l(s.totalPages)+" pages, current page "+l(s.pageIndex+1)+". ",1)):d("",!0)]))}}),[["__scopeId","data-v-a1397968"]]))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
import{k as _,$ as s,Z as i,_ as e,aa as t,ak as d,F as m,P as f}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{c as h}from"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";const y={key:0,class:"malicious-summary"},g={class:"malicious-table"},k={class:"breakable-table"},v=["item"],D={class:"filepath"},b={key:0,class:"pagination-note"},T=_({__name:"MaliciousSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(p){const a=p;return(N,o)=>{var r,n,u,c;return s(),i("div",null,[(r=a.reportData)!=null&&r.malicious_files?(s(),i("div",y,[e("div",null,"Scan Time:"+t(a.reportData.malicious_files.last_scan_time||""),1),e("div",null,"Total Scanned Files:"+t(a.reportData.malicious_files.total_scanned_files||0),1),e("div",null,"Total Detected Malicious Files:"+t(a.reportData.malicious_files.total_detected||0),1),e("div",null,"High Risk:"+t(((n=a.reportData.malicious_files.risk_stats)==null?void 0:n["2"])||0),1),e("div",null,"Processing:"+t(((u=a.reportData.malicious_files.processed_stats)==null?void 0:u["1"])||0)+",Unprocessed:"+t(((c=a.reportData.malicious_files.processed_stats)==null?void 0:c["0"])||0),1)])):d("",!0),e("div",g,[e("table",k,[o[0]||(o[0]=e("thead",null,[e("tr",null,[e("th",null,"File Name"),e("th",null,"Path"),e("th",null,"Threat Type"),e("th",null,"Risk Level"),e("th",null,"Scan Time"),e("th",null,"Quarantined")])],-1)),e("tbody",null,[(s(!0),i(m,null,f(a.data,l=>(s(),i("tr",{key:l.filepath+l.time,item:l},[e("td",null,t(l.filename),1),e("td",D,t(l.filepath),1),e("td",null,t(l.threat_type),1),e("td",null,t(l.risk_level_desc),1),e("td",null,t(l.time),1),e("td",null,t(l.quarantined?"Yes":"No"),1)],8,v))),128))])]),a.totalPages>1?(s(),i("div",b," Total "+t(a.totalPages)+" pages, current page "+t(a.pageIndex+1)+". ",1)):d("",!0)])])}}}),q=h(T,[["__scopeId","data-v-7f20a499"]]);export{q as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{k as _,$ as s,Z as i,_ as e,aa as t,ak as d,F as m,P as f}from"./vue-core-BlDeWrD6.js?v=1774508183068";import{c as h}from"./index-LQ-JIYiv.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./naive-ui-BjvXgNtF.js?v=1774508183068";const y={key:0,class:"malicious-summary"},g={class:"malicious-table"},k={class:"breakable-table"},v=["item"],D={class:"filepath"},b={key:0,class:"pagination-note"},T=_({__name:"MaliciousSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(p){const a=p;return(N,o)=>{var r,n,u,c;return s(),i("div",null,[(r=a.reportData)!=null&&r.malicious_files?(s(),i("div",y,[e("div",null,"Scan Time:"+t(a.reportData.malicious_files.last_scan_time||""),1),e("div",null,"Total Scanned Files:"+t(a.reportData.malicious_files.total_scanned_files||0),1),e("div",null,"Total Detected Malicious Files:"+t(a.reportData.malicious_files.total_detected||0),1),e("div",null,"High Risk:"+t(((n=a.reportData.malicious_files.risk_stats)==null?void 0:n["2"])||0),1),e("div",null,"Processing:"+t(((u=a.reportData.malicious_files.processed_stats)==null?void 0:u["1"])||0)+",Unprocessed:"+t(((c=a.reportData.malicious_files.processed_stats)==null?void 0:c["0"])||0),1)])):d("",!0),e("div",g,[e("table",k,[o[0]||(o[0]=e("thead",null,[e("tr",null,[e("th",null,"File Name"),e("th",null,"Path"),e("th",null,"Threat Type"),e("th",null,"Risk Level"),e("th",null,"Scan Time"),e("th",null,"Quarantined")])],-1)),e("tbody",null,[(s(!0),i(m,null,f(a.data,l=>(s(),i("tr",{key:l.filepath+l.time,item:l},[e("td",null,t(l.filename),1),e("td",D,t(l.filepath),1),e("td",null,t(l.threat_type),1),e("td",null,t(l.risk_level_desc),1),e("td",null,t(l.time),1),e("td",null,t(l.quarantined?"Yes":"No"),1)],8,v))),128))])]),a.totalPages>1?(s(),i("div",b," Total "+t(a.totalPages)+" pages, current page "+t(a.pageIndex+1)+". ",1)):d("",!0)])])}}}),q=h(T,[["__scopeId","data-v-7f20a499"]]);export{q as default};
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(a,e){"use strict";var t,l,i,r,o,s,n,c,d;return{setters:[a=>{t=a.k,l=a.$,i=a.Z,r=a._,o=a.aa,s=a.ak,n=a.F,c=a.P},a=>{d=a.c},null,null],execute:function(){var e=document.createElement("style");e.textContent=".malicious-summary[data-v-7f20a499]{margin-bottom:30px;padding:20px;border-radius:12px;background-color:var(--home-risk-security-report-bg);border:2px solid var(--color-border)}.malicious-summary div[data-v-7f20a499]{font-size:18px;margin-bottom:10px;color:var(--color-text-2)}.malicious-table[data-v-7f20a499]{margin-top:20px}.malicious-table .breakable-table[data-v-7f20a499]{width:100%;border-collapse:collapse;font-size:13px}.malicious-table .breakable-table th[data-v-7f20a499],.malicious-table .breakable-table td[data-v-7f20a499]{padding:6px;text-align:left;border:1px solid var(--color-border)}.malicious-table .breakable-table th[data-v-7f20a499]{background-color:var(--color-table-th);font-weight:700}.malicious-table .breakable-table td.filepath[data-v-7f20a499]{word-break:break-all;font-size:12px}.malicious-table .breakable-table tr[data-v-7f20a499]:nth-child(2n){background-color:var(--home-risk-security-report-bg1)}.malicious-table .pagination-note[data-v-7f20a499]{margin-top:15px;text-align:center;font-style:italic;color:var(--color-text-3);font-size:14px}\n/*$vite$:1*/",document.head.appendChild(e);const u={key:0,class:"malicious-summary"},p={class:"malicious-table"},b={class:"breakable-table"},m=["item"],f={class:"filepath"},v={key:0,class:"pagination-note"};a("default",d(t({__name:"MaliciousSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(a){const e=a;return(a,t)=>(l(),i("div",null,[e.reportData?.malicious_files?(l(),i("div",u,[r("div",null,"Scan Time:"+o(e.reportData.malicious_files.last_scan_time||""),1),r("div",null,"Total Scanned Files:"+o(e.reportData.malicious_files.total_scanned_files||0),1),r("div",null,"Total Detected Malicious Files:"+o(e.reportData.malicious_files.total_detected||0),1),r("div",null,"High Risk:"+o(e.reportData.malicious_files.risk_stats?.[2]||0),1),r("div",null,"Processing:"+o(e.reportData.malicious_files.processed_stats?.[1]||0)+",Unprocessed:"+o(e.reportData.malicious_files.processed_stats?.[0]||0),1)])):s("",!0),r("div",p,[r("table",b,[t[0]||(t[0]=r("thead",null,[r("tr",null,[r("th",null,"File Name"),r("th",null,"Path"),r("th",null,"Threat Type"),r("th",null,"Risk Level"),r("th",null,"Scan Time"),r("th",null,"Quarantined")])],-1)),r("tbody",null,[(l(!0),i(n,null,c(e.data,(a=>(l(),i("tr",{key:a.filepath+a.time,item:a},[r("td",null,o(a.filename),1),r("td",f,o(a.filepath),1),r("td",null,o(a.threat_type),1),r("td",null,o(a.risk_level_desc),1),r("td",null,o(a.time),1),r("td",null,o(a.quarantined?"Yes":"No"),1)],8,m)))),128))])]),e.totalPages>1?(l(),i("div",v," Total "+o(e.totalPages)+" pages, current page "+o(e.pageIndex+1)+". ",1)):s("",!0)])]))}}),[["__scopeId","data-v-7f20a499"]]))}}}));
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./index-legacy-3bAYElO-.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068"],(function(a,e){"use strict";var t,l,i,r,o,s,n,c,d;return{setters:[a=>{t=a.k,l=a.$,i=a.Z,r=a._,o=a.aa,s=a.ak,n=a.F,c=a.P},a=>{d=a.c},null,null],execute:function(){var e=document.createElement("style");e.textContent=".malicious-summary[data-v-7f20a499]{margin-bottom:30px;padding:20px;border-radius:12px;background-color:var(--home-risk-security-report-bg);border:2px solid var(--color-border)}.malicious-summary div[data-v-7f20a499]{font-size:18px;margin-bottom:10px;color:var(--color-text-2)}.malicious-table[data-v-7f20a499]{margin-top:20px}.malicious-table .breakable-table[data-v-7f20a499]{width:100%;border-collapse:collapse;font-size:13px}.malicious-table .breakable-table th[data-v-7f20a499],.malicious-table .breakable-table td[data-v-7f20a499]{padding:6px;text-align:left;border:1px solid var(--color-border)}.malicious-table .breakable-table th[data-v-7f20a499]{background-color:var(--color-table-th);font-weight:700}.malicious-table .breakable-table td.filepath[data-v-7f20a499]{word-break:break-all;font-size:12px}.malicious-table .breakable-table tr[data-v-7f20a499]:nth-child(2n){background-color:var(--home-risk-security-report-bg1)}.malicious-table .pagination-note[data-v-7f20a499]{margin-top:15px;text-align:center;font-style:italic;color:var(--color-text-3);font-size:14px}\n/*$vite$:1*/",document.head.appendChild(e);const u={key:0,class:"malicious-summary"},p={class:"malicious-table"},b={class:"breakable-table"},m=["item"],f={class:"filepath"},v={key:0,class:"pagination-note"};a("default",d(t({__name:"MaliciousSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(a){const e=a;return(a,t)=>(l(),i("div",null,[e.reportData?.malicious_files?(l(),i("div",u,[r("div",null,"Scan Time:"+o(e.reportData.malicious_files.last_scan_time||""),1),r("div",null,"Total Scanned Files:"+o(e.reportData.malicious_files.total_scanned_files||0),1),r("div",null,"Total Detected Malicious Files:"+o(e.reportData.malicious_files.total_detected||0),1),r("div",null,"High Risk:"+o(e.reportData.malicious_files.risk_stats?.[2]||0),1),r("div",null,"Processing:"+o(e.reportData.malicious_files.processed_stats?.[1]||0)+",Unprocessed:"+o(e.reportData.malicious_files.processed_stats?.[0]||0),1)])):s("",!0),r("div",p,[r("table",b,[t[0]||(t[0]=r("thead",null,[r("tr",null,[r("th",null,"File Name"),r("th",null,"Path"),r("th",null,"Threat Type"),r("th",null,"Risk Level"),r("th",null,"Scan Time"),r("th",null,"Quarantined")])],-1)),r("tbody",null,[(l(!0),i(n,null,c(e.data,(a=>(l(),i("tr",{key:a.filepath+a.time,item:a},[r("td",null,o(a.filename),1),r("td",f,o(a.filepath),1),r("td",null,o(a.threat_type),1),r("td",null,o(a.risk_level_desc),1),r("td",null,o(a.time),1),r("td",null,o(a.quarantined?"Yes":"No"),1)],8,m)))),128))])]),e.totalPages>1?(l(),i("div",v," Total "+o(e.totalPages)+" pages, current page "+o(e.pageIndex+1)+". ",1)):s("",!0)])]))}}),[["__scopeId","data-v-7f20a499"]]))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
import{k as c,$ as a,Z as o,F as l,P as u,_ as e,aa as t,ak as p}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{c as _}from"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";const m={class:"issues-list"},v=["item"],g={class:"issue-header"},h={class:"issue-number"},k=["innerHTML"],y={class:"issue-level medium"},f={class:"issue-content"},b={class:"issue-ps"},M={class:"issue-tips"},x=["innerHTML"],L={key:0,class:"pagination-note"},T=c({__name:"MidRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(r){const i=r;return(H,n)=>(a(),o("div",m,[(a(!0),o(l,null,u(i.data,(s,d)=>(a(),o("div",{class:"issue-item medium",key:"medium-"+d,item:s},[e("div",g,[e("div",h,t(s.num),1),e("div",{class:"issue-name",innerHTML:s.name},null,8,k),e("div",y,t(s.level),1)]),e("div",f,[e("div",b,t(s.ps),1),e("div",M,[n[0]||(n[0]=e("div",{class:"tips-title"},"Solution:",-1)),e("div",{class:"tips-content",innerHTML:s.tips.replace(/\n/g,"<br>")},null,8,x)])])],8,v))),128)),i.totalPages>1?(a(),o("div",L," Total "+t(i.totalPages)+" pages, current page "+t(i.pageIndex+1)+". ",1)):p("",!0)]))}}),B=_(T,[["__scopeId","data-v-ec33b01c"]]);export{B as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{k as c,$ as a,Z as o,F as l,P as u,_ as e,aa as t,ak as p}from"./vue-core-BlDeWrD6.js?v=1774508183068";import{c as _}from"./index-LQ-JIYiv.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./naive-ui-BjvXgNtF.js?v=1774508183068";const m={class:"issues-list"},v=["item"],g={class:"issue-header"},h={class:"issue-number"},k=["innerHTML"],y={class:"issue-level medium"},f={class:"issue-content"},b={class:"issue-ps"},M={class:"issue-tips"},x=["innerHTML"],L={key:0,class:"pagination-note"},T=c({__name:"MidRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(r){const i=r;return(H,n)=>(a(),o("div",m,[(a(!0),o(l,null,u(i.data,(s,d)=>(a(),o("div",{class:"issue-item medium",key:"medium-"+d,item:s},[e("div",g,[e("div",h,t(s.num),1),e("div",{class:"issue-name",innerHTML:s.name},null,8,k),e("div",y,t(s.level),1)]),e("div",f,[e("div",b,t(s.ps),1),e("div",M,[n[0]||(n[0]=e("div",{class:"tips-title"},"Solution:",-1)),e("div",{class:"tips-content",innerHTML:s.tips.replace(/\n/g,"<br>")},null,8,x)])])],8,v))),128)),i.totalPages>1?(a(),o("div",L," Total "+t(i.totalPages)+" pages, current page "+t(i.pageIndex+1)+". ",1)):p("",!0)]))}}),B=_(T,[["__scopeId","data-v-ec33b01c"]]);export{B as default};
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./index-legacy-3bAYElO-.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068"],(function(e,s){"use strict";var i,t,a,r,o,u,c,l,d;return{setters:[e=>{i=e.k,t=e.$,a=e.Z,r=e.F,o=e.P,u=e._,c=e.aa,l=e.ak},e=>{d=e.c},null,null],execute:function(){var s=document.createElement("style");s.textContent=".issues-list .issue-item[data-v-ec33b01c]{margin-bottom:20px;border:2px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1);page-break-inside:avoid}.issues-list .issue-item.high[data-v-ec33b01c]{border-left:6px solid #ff4d4f}.issues-list .issue-item.medium[data-v-ec33b01c]{border-left:6px solid #faad14}.issues-list .issue-item.low[data-v-ec33b01c]{border-left:6px solid #52c41a}.issues-list .issue-item.cve[data-v-ec33b01c]{border-left:6px solid #722ed1}.issues-list .issue-item.ignore[data-v-ec33b01c]{border-left:6px solid #999}.issues-list .issue-item .issue-header[data-v-ec33b01c]{display:flex;align-items:center;padding:15px 20px;background-color:var(--home-risk-security-report-bg)}.issues-list .issue-item .issue-header .issue-number[data-v-ec33b01c]{flex:0 0 40px;height:40px;border-radius:50%;background-color:#07f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin-right:15px;font-size:16px}.issues-list .issue-item .issue-header .issue-name[data-v-ec33b01c]{flex:1;font-weight:500;font-size:16px}.issues-list .issue-item .issue-header .issue-level[data-v-ec33b01c]{padding:4px 12px;border-radius:6px;font-size:14px;margin-right:15px;font-weight:700}.issues-list .issue-item .issue-header .issue-level.high[data-v-ec33b01c]{background-color:#ff4d4f;color:#fff}.issues-list .issue-item .issue-header .issue-level.medium[data-v-ec33b01c]{background-color:#faad14;color:#fff}.issues-list .issue-item .issue-header .issue-level.low[data-v-ec33b01c]{background-color:#52c41a;color:#fff}.issues-list .issue-item .issue-header .issue-level.ignore[data-v-ec33b01c]{background-color:#f0f0f0;color:#666}.issues-list .issue-item .issue-header .issue-auto[data-v-ec33b01c]{padding:4px 12px;border-radius:6px;font-size:14px;background-color:#f5f5f5;color:#666}.issues-list .issue-item .issue-header .issue-auto.supported[data-v-ec33b01c]{background-color:#e6f7ff;color:#07f}.issues-list .issue-item .issue-content[data-v-ec33b01c]{padding:20px}.issues-list .issue-item .issue-content .issue-ps[data-v-ec33b01c]{margin-bottom:15px;color:var(--color-text-2);font-size:16px;line-height:1.6}.issues-list .issue-item .issue-content .issue-tips[data-v-ec33b01c]{background-color:var(--home-risk-security-report-bg);padding:15px;border-radius:8px;border-left:4px solid #0077ff}.issues-list .issue-item .issue-content .issue-tips .tips-title[data-v-ec33b01c]{font-weight:500;margin-bottom:10px;font-size:16px;color:var(--color-text-2)}.issues-list .issue-item .issue-content .issue-tips .tips-content[data-v-ec33b01c]{color:var(--color-text-3);white-space:pre-line;line-height:1.6;font-size:15px}\n/*$vite$:1*/",document.head.appendChild(s);const n={class:"issues-list"},p=["item"],f={class:"issue-header"},m={class:"issue-number"},b=["innerHTML"],v={class:"issue-level medium"},g={class:"issue-content"},x={class:"issue-ps"},h={class:"issue-tips"},y=["innerHTML"],k={key:0,class:"pagination-note"};e("default",d(i({__name:"MidRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(e){const s=e;return(e,i)=>(t(),a("div",n,[(t(!0),a(r,null,o(s.data,((e,s)=>(t(),a("div",{class:"issue-item medium",key:"medium-"+s,item:e},[u("div",f,[u("div",m,c(e.num),1),u("div",{class:"issue-name",innerHTML:e.name},null,8,b),u("div",v,c(e.level),1)]),u("div",g,[u("div",x,c(e.ps),1),u("div",h,[i[0]||(i[0]=u("div",{class:"tips-title"},"Solution:",-1)),u("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,y)])])],8,p)))),128)),s.totalPages>1?(t(),a("div",k," Total "+c(s.totalPages)+" pages, current page "+c(s.pageIndex+1)+". ",1)):l("",!0)]))}}),[["__scopeId","data-v-ec33b01c"]]))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,s){"use strict";var i,t,a,r,o,u,c,l,d;return{setters:[e=>{i=e.k,t=e.$,a=e.Z,r=e.F,o=e.P,u=e._,c=e.aa,l=e.ak},e=>{d=e.c},null,null],execute:function(){var s=document.createElement("style");s.textContent=".issues-list .issue-item[data-v-ec33b01c]{margin-bottom:20px;border:2px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1);page-break-inside:avoid}.issues-list .issue-item.high[data-v-ec33b01c]{border-left:6px solid #ff4d4f}.issues-list .issue-item.medium[data-v-ec33b01c]{border-left:6px solid #faad14}.issues-list .issue-item.low[data-v-ec33b01c]{border-left:6px solid #52c41a}.issues-list .issue-item.cve[data-v-ec33b01c]{border-left:6px solid #722ed1}.issues-list .issue-item.ignore[data-v-ec33b01c]{border-left:6px solid #999}.issues-list .issue-item .issue-header[data-v-ec33b01c]{display:flex;align-items:center;padding:15px 20px;background-color:var(--home-risk-security-report-bg)}.issues-list .issue-item .issue-header .issue-number[data-v-ec33b01c]{flex:0 0 40px;height:40px;border-radius:50%;background-color:#07f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin-right:15px;font-size:16px}.issues-list .issue-item .issue-header .issue-name[data-v-ec33b01c]{flex:1;font-weight:500;font-size:16px}.issues-list .issue-item .issue-header .issue-level[data-v-ec33b01c]{padding:4px 12px;border-radius:6px;font-size:14px;margin-right:15px;font-weight:700}.issues-list .issue-item .issue-header .issue-level.high[data-v-ec33b01c]{background-color:#ff4d4f;color:#fff}.issues-list .issue-item .issue-header .issue-level.medium[data-v-ec33b01c]{background-color:#faad14;color:#fff}.issues-list .issue-item .issue-header .issue-level.low[data-v-ec33b01c]{background-color:#52c41a;color:#fff}.issues-list .issue-item .issue-header .issue-level.ignore[data-v-ec33b01c]{background-color:#f0f0f0;color:#666}.issues-list .issue-item .issue-header .issue-auto[data-v-ec33b01c]{padding:4px 12px;border-radius:6px;font-size:14px;background-color:#f5f5f5;color:#666}.issues-list .issue-item .issue-header .issue-auto.supported[data-v-ec33b01c]{background-color:#e6f7ff;color:#07f}.issues-list .issue-item .issue-content[data-v-ec33b01c]{padding:20px}.issues-list .issue-item .issue-content .issue-ps[data-v-ec33b01c]{margin-bottom:15px;color:var(--color-text-2);font-size:16px;line-height:1.6}.issues-list .issue-item .issue-content .issue-tips[data-v-ec33b01c]{background-color:var(--home-risk-security-report-bg);padding:15px;border-radius:8px;border-left:4px solid #0077ff}.issues-list .issue-item .issue-content .issue-tips .tips-title[data-v-ec33b01c]{font-weight:500;margin-bottom:10px;font-size:16px;color:var(--color-text-2)}.issues-list .issue-item .issue-content .issue-tips .tips-content[data-v-ec33b01c]{color:var(--color-text-3);white-space:pre-line;line-height:1.6;font-size:15px}\n/*$vite$:1*/",document.head.appendChild(s);const n={class:"issues-list"},p=["item"],f={class:"issue-header"},m={class:"issue-number"},b=["innerHTML"],v={class:"issue-level medium"},g={class:"issue-content"},x={class:"issue-ps"},h={class:"issue-tips"},y=["innerHTML"],k={key:0,class:"pagination-note"};e("default",d(i({__name:"MidRiskSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(e){const s=e;return(e,i)=>(t(),a("div",n,[(t(!0),a(r,null,o(s.data,((e,s)=>(t(),a("div",{class:"issue-item medium",key:"medium-"+s,item:e},[u("div",f,[u("div",m,c(e.num),1),u("div",{class:"issue-name",innerHTML:e.name},null,8,b),u("div",v,c(e.level),1)]),u("div",g,[u("div",x,c(e.ps),1),u("div",h,[i[0]||(i[0]=u("div",{class:"tips-title"},"Solution:",-1)),u("div",{class:"tips-content",innerHTML:e.tips.replace(/\n/g,"<br>")},null,8,y)])])],8,p)))),128)),s.totalPages>1?(t(),a("div",k," Total "+c(s.totalPages)+" pages, current page "+c(s.pageIndex+1)+". ",1)):l("",!0)]))}}),[["__scopeId","data-v-ec33b01c"]]))}}}));
|
||||
@@ -0,0 +1 @@
|
||||
import{y as k,D as x,x as P}from"./index-LQ-JIYiv.js?v=1774508183068";import{y as V,S as B,t as F}from"./FileIcon-MbTGjXAj.js?v=1774508183068";import{C as R}from"./CalcVerify-gqHuJ9LB.js?v=1774508183068";import{k as b,i as S,r as a,al as T,$ as g,a8 as z,a9 as L,_ as N,a0 as r,S as s,X as D}from"./vue-core-BlDeWrD6.js?v=1774508183068";import{af as U}from"./naive-ui-BjvXgNtF.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./copy-DTOfN-dY.js?v=1774508183068";const j={class:"paste-confirm-wrapper"},J=b({name:"PasteConfirm",__name:"PasteConfirm",setup(X,{expose:c}){const o=S("fileStore"),{currentPath:f,fileList:m,fileCopyCache:u,waitForPaste:p}=o,t=a(!1),i=T("calcVerifyRef"),n=a([]),_=a([{key:"nm",title:"File name",ellipsis:{tooltip:!0}},{key:"sz",title:"Size",width:120,render:e=>x(e.sz)},{key:"mt",title:"Last edit time",width:160,render:e=>P(e.mt)}]);function d(){t.value=!0,n.value=V(m.value,u.value)}function w(){t.value=!1}async function y(){var e;await((e=i.value)==null?void 0:e.validate()),await B(1,f.value),p.value=!1,F(o)}return c({open:d,close:w}),(e,l)=>{const h=U,v=k;return g(),z(v,{show:s(t),"onUpdate:show":l[0]||(l[0]=C=>D(t)?t.value=C:null),width:480,title:"The files will be overwritten",footer:!0,onConfirm:y},{default:L(()=>[N("div",j,[r(h,{columns:s(_),data:s(n)},null,8,["columns","data"]),r(R,{ref_key:"calcVerifyRef",ref:i,class:"mt-10px"},null,512)])]),_:1},8,["show"])}}});export{J as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{x as k,C as x,w as P}from"./index-BTglIPU2.js?v=1773287522785";import{A as V,S as B,w as F}from"./FileIcon-eIHDRaxH.js?v=1773287522785";import{C as R}from"./CalcVerify-DzxM0pDk.js?v=1773287522785";import{k as b,i as S,r as a,al as T,$ as g,a8 as z,a9 as L,_ as N,a0 as r,S as s,X as U}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{at as j}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./soft-Cjyfamvm.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";const A={class:"paste-confirm-wrapper"},K=b({name:"PasteConfirm",__name:"PasteConfirm",setup(D,{expose:c}){const o=S("fileStore"),{currentPath:f,fileList:m,fileCopyCache:u,waitForPaste:p}=o,t=a(!1),i=T("calcVerifyRef"),n=a([]),_=a([{key:"nm",title:"File name",ellipsis:{tooltip:!0}},{key:"sz",title:"Size",width:120,render:e=>x(e.sz)},{key:"mt",title:"Last edit time",width:160,render:e=>P(e.mt)}]);function d(){t.value=!0,n.value=V(m.value,u.value)}function w(){t.value=!1}async function h(){var e;await((e=i.value)==null?void 0:e.validate()),await B(1,f.value),p.value=!1,F(o)}return c({open:d,close:w}),(e,l)=>{const v=j,y=k;return g(),z(y,{show:s(t),"onUpdate:show":l[0]||(l[0]=C=>U(t)?t.value=C:null),width:480,title:"The files will be overwritten",footer:!0,onConfirm:h},{default:L(()=>[N("div",A,[r(v,{columns:s(_),data:s(n)},null,8,["columns","data"]),r(R,{ref_key:"calcVerifyRef",ref:i,class:"mt-10px"},null,512)])]),_:1},8,["show"])}}});export{K as default};
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./index-legacy-3bAYElO-.js?v=1774508183068","./FileIcon-legacy-BZIg8aaH.js?v=1774508183068","./CalcVerify-legacy-CxmHmisN.js?v=1774508183068","./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./copy-legacy-DQuL_OmY.js?v=1774508183068"],(function(e,t){"use strict";var a,l,i,n,s,r,c,o,u,f,y,m,v,d,p,w,g,h,j;return{setters:[e=>{a=e.y,l=e.D,i=e.x},e=>{n=e.y,s=e.S,r=e.t},e=>{c=e.C},e=>{o=e.k,u=e.i,f=e.r,y=e.al,m=e.$,v=e.a8,d=e.a9,p=e._,w=e.a0,g=e.S,h=e.X},e=>{j=e.af},null,null],execute:function(){const t={class:"paste-confirm-wrapper"};e("default",o({name:"PasteConfirm",__name:"PasteConfirm",setup(e,{expose:o}){const C=u("fileStore"),{currentPath:k,fileList:x,fileCopyCache:S,waitForPaste:_}=C,P=f(!1),z=y("calcVerifyRef"),F=f([]),V=f([{key:"nm",title:"File name",ellipsis:{tooltip:!0}},{key:"sz",title:"Size",width:120,render:e=>l(e.sz)},{key:"mt",title:"Last edit time",width:160,render:e=>i(e.mt)}]);async function L(){await(z.value?.validate()),await s(1,k.value),_.value=!1,r(C)}return o({open:function(){P.value=!0,F.value=n(x.value,S.value)},close:function(){P.value=!1}}),(e,l)=>{const i=j,n=a;return m(),v(n,{show:g(P),"onUpdate:show":l[0]||(l[0]=e=>h(P)?P.value=e:null),width:480,title:"The files will be overwritten",footer:!0,onConfirm:L},{default:d((()=>[p("div",t,[w(i,{columns:g(V),data:g(F)},null,8,["columns","data"]),w(c,{ref_key:"calcVerifyRef",ref:z,class:"mt-10px"},null,512)])])),_:1},8,["show"])}}}))}}}));
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./FileIcon-legacy-CYrICTNK.js?v=1773287522785","./CalcVerify-legacy-BbIFaSDS.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785"],(function(e,t){"use strict";var l,a,i,s,n,r,c,o,u,f,y,m,v,d,w,p,h,g,j;return{setters:[e=>{l=e.x,a=e.C,i=e.w},e=>{s=e.A,n=e.S,r=e.w},e=>{c=e.C},e=>{o=e.k,u=e.i,f=e.r,y=e.al,m=e.$,v=e.a8,d=e.a9,w=e._,p=e.a0,h=e.S,g=e.X},e=>{j=e.at},null,null,null],execute:function(){const t={class:"paste-confirm-wrapper"};e("default",o({name:"PasteConfirm",__name:"PasteConfirm",setup(e,{expose:o}){const C=u("fileStore"),{currentPath:k,fileList:x,fileCopyCache:S,waitForPaste:_}=C,P=f(!1),z=y("calcVerifyRef"),F=f([]),V=f([{key:"nm",title:"File name",ellipsis:{tooltip:!0}},{key:"sz",title:"Size",width:120,render:e=>a(e.sz)},{key:"mt",title:"Last edit time",width:160,render:e=>i(e.mt)}]);async function L(){await(z.value?.validate()),await n(1,k.value),_.value=!1,r(C)}return o({open:function(){P.value=!0,F.value=s(x.value,S.value)},close:function(){P.value=!1}}),(e,a)=>{const i=j,s=l;return m(),v(s,{show:h(P),"onUpdate:show":a[0]||(a[0]=e=>g(P)?P.value=e:null),width:480,title:"The files will be overwritten",footer:!0,onConfirm:L},{default:d((()=>[w("div",t,[p(i,{columns:h(V),data:h(F)},null,8,["columns","data"]),p(c,{ref_key:"calcVerifyRef",ref:z,class:"mt-10px"},null,512)])])),_:1},8,["show"])}}}))}}}));
|
||||
@@ -0,0 +1 @@
|
||||
import{D as R,x as g,y as V,h as j}from"./index-LQ-JIYiv.js?v=1774508183068";import{_ as x}from"./index.vue_vue_type_script_setup_true_lang-CwcqhoN-.js?v=1774508183068";import{y as b,T as D,U as L,t as M}from"./FileIcon-MbTGjXAj.js?v=1774508183068";import{k as q,R as E,i as I,r as X,e as A,$ as G,a8 as H,a9 as o,_ as f,a0 as s,S as n,j as h,aa as m,X as J}from"./vue-core-BlDeWrD6.js?v=1774508183068";import{a1 as K,a3 as O,a4 as Q,b as W}from"./naive-ui-BjvXgNtF.js?v=1774508183068";import"./prismjs-BZPoR7_J.js?v=1774508183068";import"./copy-DTOfN-dY.js?v=1774508183068";const Y={class:"p-20px"},Z={class:"w-240px"},re=q({name:"PasteSingleConfirm",__name:"PasteSingleConfirm",setup(ee,{expose:$}){const{t:_}=E(),c=I("fileStore"),{currentPath:d,fileList:v,fileCopyCache:w,copiedFile:F,waitForPaste:T}=c,i=X(!1),a=A({type:"rename",name:"",size:0,modifyTime:""}),N=e=>{const t=b(v.value,w.value);t.length&&(e==="overwrite"?a.name=t[0].nm:e==="rename"&&(a.name=y(t[0].nm)))},y=e=>e.replace(/\.(?=[^.]+$)/," - copy.");function k(){i.value=!0;const e=b(v.value,w.value);e.length==1&&(a.type="rename",a.name=y(e[0].nm),a.size=e[0].sz,a.modifyTime=g(e[0].mt))}function p(){i.value=!1}async function u(){await L(F.value.path,d.value+"/"+a.name),T.value=!1,M(c)}async function z(){if(a.type=="rename")return await D(d.value,a.name)?j({title:_("file.pasteConfirm.overwriteTitle"),content:_("file.pasteConfirm.overwriteMessage",[a.name]),onConfirm:async({hide:t})=>{await u(),t(),p()}}):(await u(),p()),!1;await u()}return $({open:k,close:p}),(e,t)=>{const C=Q,P=O,r=K,S=W,U=x,B=V;return G(),H(B,{show:n(i),"onUpdate:show":t[2]||(t[2]=l=>J(i)?i.value=l:null),width:440,title:e.$t("file.pasteConfirm.title"),footer:!0,onConfirm:z},{default:o(()=>[f("div",Y,[s(U,null,{default:o(()=>[s(r,{label:e.$t("file.pasteConfirm.operationType")},{default:o(()=>[s(P,{value:n(a).type,"onUpdate:value":[t[0]||(t[0]=l=>n(a).type=l),N]},{default:o(()=>[s(C,{value:"overwrite"},{default:o(()=>[h(m(e.$t("file.pasteConfirm.overwriteFile")),1)]),_:1}),s(C,{value:"rename"},{default:o(()=>[h(m(e.$t("file.pasteConfirm.renameFile")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),s(r,{label:e.$t("file.pasteConfirm.fileName")},{default:o(()=>[f("div",Z,[s(S,{value:n(a).name,"onUpdate:value":t[1]||(t[1]=l=>n(a).name=l),disabled:n(a).type=="overwrite",placeholder:""},null,8,["value","disabled"])])]),_:1},8,["label"]),s(r,{label:e.$t("file.pasteConfirm.size")},{default:o(()=>[f("span",null,m(n(R)(n(a).size)),1)]),_:1},8,["label"]),s(r,{label:e.$t("file.pasteConfirm.lastModified"),"show-feedback":!1},{default:o(()=>[f("span",null,m(n(g)(n(a).modifyTime)),1)]),_:1},8,["label"])]),_:1})])]),_:1},8,["show","title"])}}});export{re as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{C as R,w as g,x as V,h as j}from"./index-BTglIPU2.js?v=1773287522785";import{_ as x}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{A as b,T as L,U as M,w as q}from"./FileIcon-eIHDRaxH.js?v=1773287522785";import{k as A,R as D,i as E,r as I,e as X,$ as G,a8 as H,a9 as o,_ as m,a0 as s,S as n,j as h,aa as f,X as J}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a1 as K,a3 as O,a4 as Q,b as W}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./soft-Cjyfamvm.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";const Y={class:"p-20px"},Z={class:"w-240px"},me=A({name:"PasteSingleConfirm",__name:"PasteSingleConfirm",setup(ee,{expose:$}){const{t:_}=D(),c=E("fileStore"),{currentPath:d,fileList:v,fileCopyCache:w,copiedFile:F,waitForPaste:T}=c,i=I(!1),a=X({type:"rename",name:"",size:0,modifyTime:""}),N=e=>{const t=b(v.value,w.value);t.length&&(e==="overwrite"?a.name=t[0].nm:e==="rename"&&(a.name=C(t[0].nm)))},C=e=>e.replace(/\.(?=[^.]+$)/," - copy.");function k(){i.value=!0;const e=b(v.value,w.value);e.length==1&&(a.type="rename",a.name=C(e[0].nm),a.size=e[0].sz,a.modifyTime=g(e[0].mt))}function p(){i.value=!1}async function u(){await M(F.value.path,d.value+"/"+a.name),T.value=!1,q(c)}async function z(){if(a.type=="rename")return await L(d.value,a.name)?j({title:_("file.pasteConfirm.overwriteTitle"),content:_("file.pasteConfirm.overwriteMessage",[a.name]),onConfirm:async({hide:t})=>{await u(),t(),p()}}):(await u(),p()),!1;await u()}return $({open:k,close:p}),(e,t)=>{const y=Q,P=O,r=K,S=W,U=x,B=V;return G(),H(B,{show:n(i),"onUpdate:show":t[2]||(t[2]=l=>J(i)?i.value=l:null),width:440,title:e.$t("file.pasteConfirm.title"),footer:!0,onConfirm:z},{default:o(()=>[m("div",Y,[s(U,null,{default:o(()=>[s(r,{label:e.$t("file.pasteConfirm.operationType")},{default:o(()=>[s(P,{value:n(a).type,"onUpdate:value":[t[0]||(t[0]=l=>n(a).type=l),N]},{default:o(()=>[s(y,{value:"overwrite"},{default:o(()=>[h(f(e.$t("file.pasteConfirm.overwriteFile")),1)]),_:1}),s(y,{value:"rename"},{default:o(()=>[h(f(e.$t("file.pasteConfirm.renameFile")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),s(r,{label:e.$t("file.pasteConfirm.fileName")},{default:o(()=>[m("div",Z,[s(S,{value:n(a).name,"onUpdate:value":t[1]||(t[1]=l=>n(a).name=l),disabled:n(a).type=="overwrite",placeholder:""},null,8,["value","disabled"])])]),_:1},8,["label"]),s(r,{label:e.$t("file.pasteConfirm.size")},{default:o(()=>[m("span",null,f(n(R)(n(a).size)),1)]),_:1},8,["label"]),s(r,{label:e.$t("file.pasteConfirm.lastModified"),"show-feedback":!1},{default:o(()=>[m("span",null,f(n(g)(n(a).modifyTime)),1)]),_:1},8,["label"])]),_:1})])]),_:1},8,["show","title"])}}});export{me as default};
|
||||
@@ -1 +0,0 @@
|
||||
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./FileIcon-legacy-CYrICTNK.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785"],(function(e,a){"use strict";var l,t,i,n,s,o,r,u,f,m,c,p,v,d,y,w,_,C,g,h,b,j,$,x,T,z,F;return{setters:[e=>{l=e.C,t=e.w,i=e.x,n=e.h},e=>{s=e._},e=>{o=e.A,r=e.T,u=e.U,f=e.w},e=>{m=e.k,c=e.R,p=e.i,v=e.r,d=e.e,y=e.$,w=e.a8,_=e.a9,C=e._,g=e.a0,h=e.S,b=e.j,j=e.aa,$=e.X},e=>{x=e.a1,T=e.a3,z=e.a4,F=e.b},null,null,null],execute:function(){const a={class:"p-20px"},S={class:"w-240px"};e("default",m({name:"PasteSingleConfirm",__name:"PasteSingleConfirm",setup(e,{expose:m}){const{t:P}=c(),U=p("fileStore"),{currentPath:k,fileList:M,fileCopyCache:A,copiedFile:E,waitForPaste:I}=U,L=v(!1),N=d({type:"rename",name:"",size:0,modifyTime:""}),R=e=>{const a=o(M.value,A.value);a.length&&("overwrite"===e?N.name=a[0].nm:"rename"===e&&(N.name=X(a[0].nm)))},X=e=>e.replace(/\.(?=[^.]+$)/," - copy.");function Z(){L.value=!1}async function q(){await u(E.value.path,k.value+"/"+N.name),I.value=!1,f(U)}async function B(){if("rename"==N.type)return await r(k.value,N.name)?n({title:P("file.pasteConfirm.overwriteTitle"),content:P("file.pasteConfirm.overwriteMessage",[N.name]),onConfirm:async({hide:e})=>{await q(),e(),Z()}}):(await q(),Z()),!1;await q()}return m({open:function(){L.value=!0;const e=o(M.value,A.value);1==e.length&&(N.type="rename",N.name=X(e[0].nm),N.size=e[0].sz,N.modifyTime=t(e[0].mt))},close:Z}),(e,n)=>{const o=z,r=T,u=x,f=F,m=s,c=i;return y(),w(c,{show:h(L),"onUpdate:show":n[2]||(n[2]=e=>$(L)?L.value=e:null),width:440,title:e.$t("file.pasteConfirm.title"),footer:!0,onConfirm:B},{default:_((()=>[C("div",a,[g(m,null,{default:_((()=>[g(u,{label:e.$t("file.pasteConfirm.operationType")},{default:_((()=>[g(r,{value:h(N).type,"onUpdate:value":[n[0]||(n[0]=e=>h(N).type=e),R]},{default:_((()=>[g(o,{value:"overwrite"},{default:_((()=>[b(j(e.$t("file.pasteConfirm.overwriteFile")),1)])),_:1}),g(o,{value:"rename"},{default:_((()=>[b(j(e.$t("file.pasteConfirm.renameFile")),1)])),_:1})])),_:1},8,["value"])])),_:1},8,["label"]),g(u,{label:e.$t("file.pasteConfirm.fileName")},{default:_((()=>[C("div",S,[g(f,{value:h(N).name,"onUpdate:value":n[1]||(n[1]=e=>h(N).name=e),disabled:"overwrite"==h(N).type,placeholder:""},null,8,["value","disabled"])])])),_:1},8,["label"]),g(u,{label:e.$t("file.pasteConfirm.size")},{default:_((()=>[C("span",null,j(h(l)(h(N).size)),1)])),_:1},8,["label"]),g(u,{label:e.$t("file.pasteConfirm.lastModified"),"show-feedback":!1},{default:_((()=>[C("span",null,j(h(t)(h(N).modifyTime)),1)])),_:1},8,["label"])])),_:1})])])),_:1},8,["show","title"])}}}))}}}));
|
||||
@@ -0,0 +1 @@
|
||||
System.register(["./index-legacy-3bAYElO-.js?v=1774508183068","./index.vue_vue_type_script_setup_true_lang-legacy-wbylbeyb.js?v=1774508183068","./FileIcon-legacy-BZIg8aaH.js?v=1774508183068","./vue-core-legacy-BYkyrx0G.js?v=1774508183068","./naive-ui-legacy-1YwVSydu.js?v=1774508183068","./prismjs-legacy-BN0FEcG9.js?v=1774508183068","./copy-legacy-DQuL_OmY.js?v=1774508183068"],(function(e,a){"use strict";var l,t,i,n,s,o,r,u,f,m,p,c,v,d,y,_,w,g,C,h,b,j,$,x,T,z,F;return{setters:[e=>{l=e.D,t=e.x,i=e.y,n=e.h},e=>{s=e._},e=>{o=e.y,r=e.T,u=e.U,f=e.t},e=>{m=e.k,p=e.R,c=e.i,v=e.r,d=e.e,y=e.$,_=e.a8,w=e.a9,g=e._,C=e.a0,h=e.S,b=e.j,j=e.aa,$=e.X},e=>{x=e.a1,T=e.a3,z=e.a4,F=e.b},null,null],execute:function(){const a={class:"p-20px"},S={class:"w-240px"};e("default",m({name:"PasteSingleConfirm",__name:"PasteSingleConfirm",setup(e,{expose:m}){const{t:P}=p(),U=c("fileStore"),{currentPath:k,fileList:M,fileCopyCache:D,copiedFile:I,waitForPaste:L}=U,N=v(!1),R=d({type:"rename",name:"",size:0,modifyTime:""}),X=e=>{const a=o(M.value,D.value);a.length&&("overwrite"===e?R.name=a[0].nm:"rename"===e&&(R.name=Z(a[0].nm)))},Z=e=>e.replace(/\.(?=[^.]+$)/," - copy.");function q(){N.value=!1}async function A(){await u(I.value.path,k.value+"/"+R.name),L.value=!1,f(U)}async function B(){if("rename"==R.type)return await r(k.value,R.name)?n({title:P("file.pasteConfirm.overwriteTitle"),content:P("file.pasteConfirm.overwriteMessage",[R.name]),onConfirm:async({hide:e})=>{await A(),e(),q()}}):(await A(),q()),!1;await A()}return m({open:function(){N.value=!0;const e=o(M.value,D.value);1==e.length&&(R.type="rename",R.name=Z(e[0].nm),R.size=e[0].sz,R.modifyTime=t(e[0].mt))},close:q}),(e,n)=>{const o=z,r=T,u=x,f=F,m=s,p=i;return y(),_(p,{show:h(N),"onUpdate:show":n[2]||(n[2]=e=>$(N)?N.value=e:null),width:440,title:e.$t("file.pasteConfirm.title"),footer:!0,onConfirm:B},{default:w((()=>[g("div",a,[C(m,null,{default:w((()=>[C(u,{label:e.$t("file.pasteConfirm.operationType")},{default:w((()=>[C(r,{value:h(R).type,"onUpdate:value":[n[0]||(n[0]=e=>h(R).type=e),X]},{default:w((()=>[C(o,{value:"overwrite"},{default:w((()=>[b(j(e.$t("file.pasteConfirm.overwriteFile")),1)])),_:1}),C(o,{value:"rename"},{default:w((()=>[b(j(e.$t("file.pasteConfirm.renameFile")),1)])),_:1})])),_:1},8,["value"])])),_:1},8,["label"]),C(u,{label:e.$t("file.pasteConfirm.fileName")},{default:w((()=>[g("div",S,[C(f,{value:h(R).name,"onUpdate:value":n[1]||(n[1]=e=>h(R).name=e),disabled:"overwrite"==h(R).type,placeholder:""},null,8,["value","disabled"])])])),_:1},8,["label"]),C(u,{label:e.$t("file.pasteConfirm.size")},{default:w((()=>[g("span",null,j(h(l)(h(R).size)),1)])),_:1},8,["label"]),C(u,{label:e.$t("file.pasteConfirm.lastModified"),"show-feedback":!1},{default:w((()=>[g("span",null,j(h(t)(h(R).modifyTime)),1)])),_:1},8,["label"])])),_:1})])])),_:1},8,["show","title"])}}}))}}}));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user