magnax 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- magnax/__init__.py +3 -0
- magnax/__main__.py +25 -0
- magnax/debug.py +65 -0
- magnax/public/__init__.py +1 -0
- magnax/public/adb/linux/adb +0 -0
- magnax/public/adb/linux_arm/adb +0 -0
- magnax/public/adb/mac/adb +0 -0
- magnax/public/adb/windows/AdbWinApi.dll +0 -0
- magnax/public/adb/windows/AdbWinUsbApi.dll +0 -0
- magnax/public/adb/windows/adb.exe +0 -0
- magnax/public/adb.py +96 -0
- magnax/public/android_fps.py +750 -0
- magnax/public/apm.py +1306 -0
- magnax/public/apm_pk.py +184 -0
- magnax/public/common.py +1598 -0
- magnax/public/config.json +1 -0
- magnax/public/ios_perf_adapter.py +790 -0
- magnax/public/report_template/android.html +526 -0
- magnax/public/report_template/ios.html +482 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/AdbWinApi.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/AdbWinUsbApi.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/SDL2.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/adb.exe +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/avcodec-60.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/avformat-60.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/avutil-58.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/icon.png +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/libusb-1.0.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/open_a_terminal_here.bat +1 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/scrcpy-console.bat +2 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/scrcpy-noconsole.vbs +7 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/scrcpy-server +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/scrcpy.exe +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/swresample-4.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/AdbWinApi.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/AdbWinUsbApi.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/SDL2.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/avformat-60.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/avutil-58.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/open_a_terminal_here.bat +1 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/scrcpy-noconsole.vbs +7 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/scrcpy-server +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/scrcpy.exe +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/swresample-4.dll +0 -0
- magnax/static/css/highlight.min.css +9 -0
- magnax/static/css/magnax-dark-theme.css +1237 -0
- magnax/static/css/select2-bootstrap-5-theme.min.css +3 -0
- magnax/static/css/select2-bootstrap-5-theme.rtl.min.css +3 -0
- magnax/static/css/select2.min.css +1 -0
- magnax/static/css/sweetalert2.min.css +1 -0
- magnax/static/css/tabler.demo.min.css +9 -0
- magnax/static/css/tabler.min.css +14 -0
- magnax/static/image/500.png +0 -0
- magnax/static/image/avatar.png +0 -0
- magnax/static/image/empty.png +0 -0
- magnax/static/image/readme/home.png +0 -0
- magnax/static/image/readme/pk.png +0 -0
- magnax/static/js/apexcharts.js +14 -0
- magnax/static/js/gray.js +16 -0
- magnax/static/js/highlight.min.js +1173 -0
- magnax/static/js/highstock.js +803 -0
- magnax/static/js/html2canvas.min.js +20 -0
- magnax/static/js/jquery.min.js +2 -0
- magnax/static/js/magnax-chart-theme.js +492 -0
- magnax/static/js/select2.min.js +2 -0
- magnax/static/js/sweetalert2.min.js +1 -0
- magnax/static/js/tabler.demo.min.js +9 -0
- magnax/static/js/tabler.min.js +9 -0
- magnax/static/logo/logo.png +0 -0
- magnax/templates/404.html +30 -0
- magnax/templates/analysis.html +1375 -0
- magnax/templates/analysis_compare.html +600 -0
- magnax/templates/analysis_pk.html +680 -0
- magnax/templates/base.html +365 -0
- magnax/templates/index.html +2471 -0
- magnax/templates/pk.html +743 -0
- magnax/templates/report.html +416 -0
- magnax/view/__init__.py +1 -0
- magnax/view/apis.py +952 -0
- magnax/view/pages.py +146 -0
- magnax/web.py +345 -0
- magnax-1.0.0.dist-info/METADATA +242 -0
- magnax-1.0.0.dist-info/RECORD +87 -0
- magnax-1.0.0.dist-info/WHEEL +5 -0
- magnax-1.0.0.dist-info/entry_points.txt +2 -0
- magnax-1.0.0.dist-info/licenses/LICENSE +21 -0
- magnax-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
* SoloX - real-time collection tool for Android/iOS performance data.
|
|
4
|
+
* @Author Rafa Chen
|
|
5
|
+
* Copyright SoloX.2022~now
|
|
6
|
+
-->
|
|
7
|
+
<html lang="en">
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset="utf-8"/>
|
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
|
|
11
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
|
|
12
|
+
<title>{% block title %} {% endblock %}</title>
|
|
13
|
+
<!-- CSS files -->
|
|
14
|
+
<link rel="icon" href="./static/logo/logo.png">
|
|
15
|
+
<link rel="stylesheet" href="./static/css/tabler.min.css">
|
|
16
|
+
<link rel="stylesheet" href="./static/css/tabler.demo.min.css" />
|
|
17
|
+
<!-- Select2-->
|
|
18
|
+
<link rel="stylesheet" href="./static/css/select2.min.css" />
|
|
19
|
+
<link rel="stylesheet" href="./static/css/select2-bootstrap-5-theme.min.css" />
|
|
20
|
+
<link rel="stylesheet" href="./static/css/select2-bootstrap-5-theme.rtl.min.css" />
|
|
21
|
+
<!-- Sweetalert2-->
|
|
22
|
+
<link rel="stylesheet" href="./static/css/sweetalert2.min.css" />
|
|
23
|
+
<!--highlight-->
|
|
24
|
+
<link rel="stylesheet" href="./static/css/highlight.min.css">
|
|
25
|
+
|
|
26
|
+
{% block css %}
|
|
27
|
+
{% endblock %}
|
|
28
|
+
</head>
|
|
29
|
+
<body class="Body layout-boxed">
|
|
30
|
+
<div class="page">
|
|
31
|
+
<header class="navbar navbar-expand-md navbar-light d-print-none">
|
|
32
|
+
<div class="container-xl">
|
|
33
|
+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu">
|
|
34
|
+
<span class="navbar-toggler-icon"></span>
|
|
35
|
+
</button>
|
|
36
|
+
<h1 class="navbar-brand navbar-brand-autodark d-none-navbar-horizontal pe-0 pe-md-3">
|
|
37
|
+
<a href="https://github.com/smart-test-ti/SoloX" target="_blank">
|
|
38
|
+
<img src="./static/logo/logo.png" width="110" height="32" alt="SOLOX" class="navbar-brand-image">
|
|
39
|
+
</a>
|
|
40
|
+
<label style="margin-left: 10px;font-weight: bolder;font-style: normal;font-size: 25px;">SOLOX</label>
|
|
41
|
+
</h1>
|
|
42
|
+
<div class="collapse navbar-collapse" id="navbar-menu" style="margin-left: 20px;">
|
|
43
|
+
<div class="d-flex flex-column flex-md-row flex-fill align-items-stretch align-items-md-center">
|
|
44
|
+
{% block navbar_nav %}{% endblock %}
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
{% if model in ['2-app','2-devices'] %}
|
|
48
|
+
<div class="nav-item dropdown d-none d-md-flex me-3">
|
|
49
|
+
<a href="/?platform=Android&lan={{ lan }}" class="btn btn-pill w-100" >
|
|
50
|
+
<svg t="1684145849174" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12372" width="50" height="50"><path d="M512 64C264.576 64 64 264.576 64 512s200.576 448 448 448 448-200.576 448-448S759.424 64 512 64z" fill="#94BFFF" p-id="12373"></path><path d="M498.56 519.666a10.668 10.668 0 0 1 0-15.332c21.718-21.126 84.97-82.904 148.374-147.128 14.336-14.516 19.86-35.152 7.744-51.408-4.972-6.654-11.584-14.192-20.352-22.284-11.926-11.014-23.296-18.38-32.768-23.28-15.51-8.02-33.686-3.928-47.766 6.24-110.25 79.572-185.43 165.484-221.802 211.612-15.98 20.29-15.98 47.538 0 67.828 36.372 46.128 111.552 132.04 221.802 211.614 14.08 10.166 32.256 14.256 47.766 6.238 9.472-4.9 20.842-12.266 32.768-23.28 8.768-8.092 15.38-15.63 20.352-22.284 12.116-16.256 6.592-36.892-7.744-51.406-63.404-64.226-126.656-126.004-148.374-147.13z" fill="#1677FF" p-id="12374"></path></svg>
|
|
51
|
+
{% if lan == 'cn' %} 普通模式 {% else %} Normal Mode {% endif %}
|
|
52
|
+
</a>
|
|
53
|
+
</div>
|
|
54
|
+
{% else %}
|
|
55
|
+
<div class="nav-item dropdown d-none d-md-flex me-3">
|
|
56
|
+
<a href="/pk?model=2-devices&lan={{ lan }}" class="btn btn-pill w-100" >
|
|
57
|
+
<svg t="1661854041585" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10784" width="2000" height="2000"><path d="M17.408 862.208a450.56 129.024 0 1 0 901.12 0 450.56 129.024 0 1 0-901.12 0Z" fill="#EEF2FF" p-id="10785"></path><path d="M509.952 880.64H75.776c-17.408 0-30.72-13.312-30.72-30.72V293.888c0-64.512 52.224-116.736 116.736-116.736h522.24c35.84 0 64.512 28.672 64.512 64.512v400.384C748.544 774.144 642.048 880.64 509.952 880.64z" fill="#70D4FF" p-id="10786"></path><path d="M764.928 880.64H212.992c-17.408 0-30.72-13.312-30.72-30.72V60.416h755.712c35.84 0 64.512 28.672 64.512 64.512v517.12C1002.496 774.144 896 880.64 764.928 880.64z" fill="#4E8EFF" p-id="10787"></path><path d="M555.008 403.456c0 20.48-7.168 35.84-22.528 48.128-14.336 11.264-30.72 16.384-51.2 16.384h-28.672v48.128c0 9.216 2.048 15.36 6.144 19.456 4.096 4.096 11.264 5.12 21.504 5.12V563.2H373.76v-22.528c15.36 0 23.552-8.192 23.552-24.576V389.12c0-16.384-8.192-24.576-23.552-24.576v-22.528h109.568c19.456 0 35.84 5.12 49.152 15.36 14.336 12.288 22.528 27.648 22.528 46.08z m-59.392 2.048c0-26.624-11.264-39.936-34.816-39.936h-9.216v80.896h11.264c13.312 0 22.528-3.072 26.624-10.24 4.096-7.168 6.144-17.408 6.144-30.72zM800.768 563.2h-60.416c-8.192-7.168-15.36-15.36-21.504-22.528l-57.344-74.752v50.176c0 16.384 9.216 24.576 26.624 24.576V563.2H584.704v-22.528c16.384 0 23.552-8.192 23.552-24.576V389.12c0-16.384-8.192-24.576-24.576-24.576v-22.528h105.472v22.528c-17.408 0-26.624 8.192-26.624 24.576v50.176l39.936-37.888c13.312-12.288 19.456-21.504 19.456-27.648 0-5.12-5.12-8.192-15.36-8.192v-22.528h81.92v22.528c-9.216 0-15.36 1.024-20.48 4.096-3.072 2.048-8.192 6.144-15.36 13.312L705.536 430.08l70.656 94.208c7.168 9.216 15.36 15.36 25.6 16.384V563.2z" fill="#FFFFFF" p-id="10788"></path></svg>
|
|
58
|
+
{% if lan == 'cn' %} 比对模式 {% else %} PK Mode {% endif %}
|
|
59
|
+
</a>
|
|
60
|
+
</div>
|
|
61
|
+
{% endif %}
|
|
62
|
+
|
|
63
|
+
<div class="nav-item dropdown d-none d-md-flex me-3">
|
|
64
|
+
<a class="cursor-pointer" id="tanslate" data-bs-toggle="dropdown" data-bs-auto-close="outside" role="button" aria-expanded="false">
|
|
65
|
+
<svg t="1677481883820" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2905" width="50" height="50"><path d="M608 416h288c35.36 0 64 28.48 64 64v416c0 35.36-28.48 64-64 64H480c-35.36 0-64-28.48-64-64v-288H128c-35.36 0-64-28.48-64-64V128c0-35.36 28.48-64 64-64h416c35.36 0 64 28.48 64 64v288z m0 64v64c0 35.36-28.48 64-64 64h-64v256.032c0 17.664 14.304 31.968 31.968 31.968H864a31.968 31.968 0 0 0 31.968-31.968V512a31.968 31.968 0 0 0-31.968-31.968H608zM128 159.968V512c0 17.664 14.304 31.968 31.968 31.968H512a31.968 31.968 0 0 0 31.968-31.968V160A31.968 31.968 0 0 0 512.032 128H160A31.968 31.968 0 0 0 128 159.968z m64 244.288V243.36h112.736V176h46.752c6.4 0.928 9.632 1.824 9.632 2.752a10.56 10.56 0 0 1-1.376 4.128c-2.752 7.328-4.128 16.032-4.128 26.112v34.368h119.648v156.768h-50.88v-20.64h-68.768v118.272H306.112v-118.272H238.752v24.768H192z m46.72-122.368v60.48h67.392V281.92H238.752z m185.664 60.48V281.92h-68.768v60.48h68.768z m203.84 488H576L668.128 576h64.64l89.344 254.4h-54.976l-19.264-53.664h-100.384l-19.232 53.632z m33.024-96.256h72.864l-34.368-108.608h-1.376l-37.12 108.608zM896 320h-64a128 128 0 0 0-128-128V128a192 192 0 0 1 192 192zM128 704h64a128 128 0 0 0 128 128v64a192 192 0 0 1-192-192z" fill="#333333" p-id="2906"></path></svg>
|
|
66
|
+
</a>
|
|
67
|
+
<div class="dropdown-menu">
|
|
68
|
+
<a onclick="rutePush('cn')" class="dropdown-item">中文</a>
|
|
69
|
+
<a onclick="rutePush('en')" class="dropdown-item">English</a>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<div class="nav-item dropdown d-none d-md-flex me-3">
|
|
74
|
+
<a class="cursor-pointer" id="setting" data-bs-toggle="offcanvas" href="#offcanvasEnd" role="button" aria-controls="offcanvasEnd">
|
|
75
|
+
<svg t="1647500420751" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="42025" width="2000" height="2000"><path d="M520.567467 779.776c29.354667 0 57.924267 11.093333 78.4384 30.4128l8.942933 9.5232c11.1616 11.946667 33.792 17.6128 49.834667 11.8784 0 0 14.062933-5.188267 45.090133-22.869333 30.583467-17.5104 42.052267-27.067733 42.154667-27.170134 13.141333-10.990933 19.592533-32.802133 14.677333-48.878933l-2.9696-9.693867c-7.2704-30.378667-2.901333-60.279467 11.912533-85.7088a115.3024 115.3024 0 0 1 65.467734-52.3264l12.9024-3.003733c16.384-3.754667 32.221867-20.206933 35.259733-36.693333 0-0.2048 2.594133-14.813867 2.594133-50.449067-0.170667-35.4304-2.730667-50.107733-2.730666-50.2784l26.453333-4.778667-26.487467 4.7104c-2.935467-16.315733-18.944-33.0752-34.952533-36.5568l-11.9808-2.798933a115.370667 115.370667 0 0 1-66.798933-52.462933 114.176 114.176 0 0 1-12.731734-83.0464l0.682667-2.491734 3.515733-10.4448c4.778667-15.428267-1.706667-37.341867-14.677333-48.3328-0.068267-0.068267-11.5712-9.557333-42.530133-27.374933-30.993067-17.681067-44.782933-22.801067-44.919467-22.869333-15.189333-5.5296-38.434133 0.1024-49.7664 12.049066l-8.055467 8.567467c-21.367467 20.1728-49.493333 31.266133-79.223466 31.266133-29.320533 0-57.856-11.025067-78.267734-30.242133l-9.1136-9.6256c-11.332267-12.117333-34.133333-17.578667-49.834666-11.946667-1.160533 0.4096-15.121067 5.802667-45.124267 22.9376-30.583467 17.646933-41.984 27.170133-42.120533 27.272534-13.141333 10.9568-19.592533 32.768-14.677334 48.810666l3.413334 11.0592a114.688 114.688 0 0 1-12.356267 84.343467 114.449067 114.449067 0 0 1-65.399467 52.224l-13.141333 3.037867c-16.384 3.720533-32.221867 20.206933-35.259733 36.6592-0.068267 0.341333-2.594133 14.779733-2.594134 50.346666 0 35.4304 2.525867 49.937067 2.56 50.0736 3.003733 16.861867 18.705067 33.314133 35.054934 36.898134l9.557333 2.116266c30.378667 8.874667 54.272 27.648 69.12 53.384534 14.609067 25.361067 19.2512 55.569067 12.629333 82.909866l-3.4816 11.946667c-5.0176 16.2816 1.467733 38.229333 14.404267 49.152 0 0 11.5712 9.6256 42.496 27.374933 30.651733 17.544533 44.475733 22.7328 45.056 22.9376 15.0528 5.461333 38.331733-0.136533 49.698133-12.117333l7.611734-8.123733a115.8144 115.8144 0 0 1 79.6672-31.607467zM643.584 887.466667c-28.672 0-56.695467-11.707733-75.025067-31.300267l-7.7824-8.328533c-9.386667-8.8064-24.507733-14.5408-40.209066-14.5408-15.633067 0-30.549333 5.802667-42.0864 16.384l-5.802667 6.314666c-26.282667 27.716267-72.430933 38.7072-107.7248 25.838934-4.334933-1.604267-20.855467-8.192-53.282133-26.760534-33.723733-19.3536-47.9232-30.8224-50.449067-32.904533-29.320533-24.8832-42.325333-69.188267-31.095467-105.472l3.072-10.308267c3.072-12.834133 0.477867-28.808533-7.406933-42.427733a60.962133 60.962133 0 0 0-35.908267-28.228267l-7.748266-1.672533c-37.410133-8.192-69.563733-41.642667-76.322134-79.530667-0.273067-1.4336-3.413333-18.773333-3.413333-59.6992 0-41.0624 3.140267-58.436267 3.549867-60.279466 6.826667-37.102933 38.843733-70.417067 76.117333-78.916267l11.502933-2.594133c12.151467-3.652267 24.576-13.755733 32.494934-27.306667 7.714133-13.312 10.069333-29.047467 6.690133-44.407467l-2.628267-8.430933c-11.264-36.6592 1.9456-80.896 31.232-105.335467 1.024-0.887467 14.6432-12.424533 50.0736-32.8704 32.290133-18.432 49.083733-25.156267 53.4528-26.794666 36.522667-13.038933 81.681067-2.218667 107.758934 25.668266l7.918933 8.430934c9.352533 8.772267 24.405333 14.4384 40.106667 14.4384 15.598933 0 30.378667-5.666133 41.642666-16.042667l6.314667-6.826667c26.282667-27.648 72.430933-38.570667 107.588267-25.770666 2.901333 1.058133 19.319467 7.3728 53.248 26.760533 34.577067 19.831467 48.264533 31.061333 50.688 33.0752 29.149867 24.746667 42.154667 69.051733 30.9248 105.301333l-3.208534 9.728c-3.072 14.6432-0.580267 29.934933 7.099734 43.2128 7.714133 13.2096 20.138667 23.074133 34.952533 27.7504l8.977067 2.048c37.205333 8.123733 69.358933 41.506133 76.151466 79.36 0.6144 3.310933 3.413333 20.923733 3.618134 59.630934 0 39.799467-2.935467 57.2416-3.4816 60.347733-6.894933 37.2736-38.912 70.587733-76.117334 79.086933l-10.171733 2.321067a61.0304 61.0304 0 0 0-33.655467 27.648 60.757333 60.757333 0 0 0-6.587733 44.9536l2.56 8.055467c11.127467 36.522667-2.048 80.759467-31.300267 105.233066-1.058133 0.9216-14.779733 12.526933-50.244266 32.836267-33.9968 19.3536-50.619733 25.736533-53.589334 26.794667a96.256 96.256 0 0 1-32.4608 5.5296h-0.034133zM520.533333 393.898667c-60.416 0-109.568 49.152-109.568 109.568s49.152 109.568 109.568 109.568 109.568-49.152 109.568-109.568-49.152-109.568-109.568-109.568z m0 271.701333a162.304 162.304 0 0 1-162.133333-162.133333c0-89.429333 72.704-162.133333 162.133333-162.133334 89.3952 0 162.133333 72.704 162.133334 162.133334 0 89.3952-72.738133 162.133333-162.133334 162.133333z" p-id="42026"></path></svg>
|
|
76
|
+
</a>
|
|
77
|
+
<span class="status-dot status-dot-animated bg-red d-block"></span>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</header>
|
|
81
|
+
|
|
82
|
+
<div class="page-wrapper sceen-body">
|
|
83
|
+
<div class="container-xl">
|
|
84
|
+
<div class="page-header d-print-none">
|
|
85
|
+
<div class="row align-items-center">
|
|
86
|
+
<div class="col">
|
|
87
|
+
<h2 class="page-title">
|
|
88
|
+
{% block page_title %}
|
|
89
|
+
{% endblock %}
|
|
90
|
+
</h2>
|
|
91
|
+
</div>
|
|
92
|
+
{% block ms_auto %}{% endblock %}
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="page-body">
|
|
97
|
+
<div class="container-xl">
|
|
98
|
+
{% block page_body %}{% endblock %}
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
<footer class="footer footer-transparent d-print-none">
|
|
103
|
+
<div class="container-xl">
|
|
104
|
+
<div class="row text-center align-items-center flex-row-reverse">
|
|
105
|
+
<div class="col-12 col-lg-auto mt-3 mt-lg-0">
|
|
106
|
+
<ul class="list-inline list-inline-dots mb-0">
|
|
107
|
+
<li class="list-inline-item">
|
|
108
|
+
Copyright © <label id="curYear"></label>
|
|
109
|
+
SoloX.{% if lan == 'cn' %} 保留所有权利 {% else %} All rights reserved {% endif %}
|
|
110
|
+
</li>
|
|
111
|
+
</ul>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</footer>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="offcanvas offcanvas-end layout-boxed" style="width: 40%;" tabindex="-1" id="offcanvasEnd" aria-labelledby="offcanvasEndLabel">
|
|
118
|
+
<div class="offcanvas-header">
|
|
119
|
+
<h2 class="offcanvas-title" id="offcanvasEndLabel">
|
|
120
|
+
<svg t="1647500420751" class="icon me-2" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="42025" width="2000" height="2000"><path d="M520.567467 779.776c29.354667 0 57.924267 11.093333 78.4384 30.4128l8.942933 9.5232c11.1616 11.946667 33.792 17.6128 49.834667 11.8784 0 0 14.062933-5.188267 45.090133-22.869333 30.583467-17.5104 42.052267-27.067733 42.154667-27.170134 13.141333-10.990933 19.592533-32.802133 14.677333-48.878933l-2.9696-9.693867c-7.2704-30.378667-2.901333-60.279467 11.912533-85.7088a115.3024 115.3024 0 0 1 65.467734-52.3264l12.9024-3.003733c16.384-3.754667 32.221867-20.206933 35.259733-36.693333 0-0.2048 2.594133-14.813867 2.594133-50.449067-0.170667-35.4304-2.730667-50.107733-2.730666-50.2784l26.453333-4.778667-26.487467 4.7104c-2.935467-16.315733-18.944-33.0752-34.952533-36.5568l-11.9808-2.798933a115.370667 115.370667 0 0 1-66.798933-52.462933 114.176 114.176 0 0 1-12.731734-83.0464l0.682667-2.491734 3.515733-10.4448c4.778667-15.428267-1.706667-37.341867-14.677333-48.3328-0.068267-0.068267-11.5712-9.557333-42.530133-27.374933-30.993067-17.681067-44.782933-22.801067-44.919467-22.869333-15.189333-5.5296-38.434133 0.1024-49.7664 12.049066l-8.055467 8.567467c-21.367467 20.1728-49.493333 31.266133-79.223466 31.266133-29.320533 0-57.856-11.025067-78.267734-30.242133l-9.1136-9.6256c-11.332267-12.117333-34.133333-17.578667-49.834666-11.946667-1.160533 0.4096-15.121067 5.802667-45.124267 22.9376-30.583467 17.646933-41.984 27.170133-42.120533 27.272534-13.141333 10.9568-19.592533 32.768-14.677334 48.810666l3.413334 11.0592a114.688 114.688 0 0 1-12.356267 84.343467 114.449067 114.449067 0 0 1-65.399467 52.224l-13.141333 3.037867c-16.384 3.720533-32.221867 20.206933-35.259733 36.6592-0.068267 0.341333-2.594133 14.779733-2.594134 50.346666 0 35.4304 2.525867 49.937067 2.56 50.0736 3.003733 16.861867 18.705067 33.314133 35.054934 36.898134l9.557333 2.116266c30.378667 8.874667 54.272 27.648 69.12 53.384534 14.609067 25.361067 19.2512 55.569067 12.629333 82.909866l-3.4816 11.946667c-5.0176 16.2816 1.467733 38.229333 14.404267 49.152 0 0 11.5712 9.6256 42.496 27.374933 30.651733 17.544533 44.475733 22.7328 45.056 22.9376 15.0528 5.461333 38.331733-0.136533 49.698133-12.117333l7.611734-8.123733a115.8144 115.8144 0 0 1 79.6672-31.607467zM643.584 887.466667c-28.672 0-56.695467-11.707733-75.025067-31.300267l-7.7824-8.328533c-9.386667-8.8064-24.507733-14.5408-40.209066-14.5408-15.633067 0-30.549333 5.802667-42.0864 16.384l-5.802667 6.314666c-26.282667 27.716267-72.430933 38.7072-107.7248 25.838934-4.334933-1.604267-20.855467-8.192-53.282133-26.760534-33.723733-19.3536-47.9232-30.8224-50.449067-32.904533-29.320533-24.8832-42.325333-69.188267-31.095467-105.472l3.072-10.308267c3.072-12.834133 0.477867-28.808533-7.406933-42.427733a60.962133 60.962133 0 0 0-35.908267-28.228267l-7.748266-1.672533c-37.410133-8.192-69.563733-41.642667-76.322134-79.530667-0.273067-1.4336-3.413333-18.773333-3.413333-59.6992 0-41.0624 3.140267-58.436267 3.549867-60.279466 6.826667-37.102933 38.843733-70.417067 76.117333-78.916267l11.502933-2.594133c12.151467-3.652267 24.576-13.755733 32.494934-27.306667 7.714133-13.312 10.069333-29.047467 6.690133-44.407467l-2.628267-8.430933c-11.264-36.6592 1.9456-80.896 31.232-105.335467 1.024-0.887467 14.6432-12.424533 50.0736-32.8704 32.290133-18.432 49.083733-25.156267 53.4528-26.794666 36.522667-13.038933 81.681067-2.218667 107.758934 25.668266l7.918933 8.430934c9.352533 8.772267 24.405333 14.4384 40.106667 14.4384 15.598933 0 30.378667-5.666133 41.642666-16.042667l6.314667-6.826667c26.282667-27.648 72.430933-38.570667 107.588267-25.770666 2.901333 1.058133 19.319467 7.3728 53.248 26.760533 34.577067 19.831467 48.264533 31.061333 50.688 33.0752 29.149867 24.746667 42.154667 69.051733 30.9248 105.301333l-3.208534 9.728c-3.072 14.6432-0.580267 29.934933 7.099734 43.2128 7.714133 13.2096 20.138667 23.074133 34.952533 27.7504l8.977067 2.048c37.205333 8.123733 69.358933 41.506133 76.151466 79.36 0.6144 3.310933 3.413333 20.923733 3.618134 59.630934 0 39.799467-2.935467 57.2416-3.4816 60.347733-6.894933 37.2736-38.912 70.587733-76.117334 79.086933l-10.171733 2.321067a61.0304 61.0304 0 0 0-33.655467 27.648 60.757333 60.757333 0 0 0-6.587733 44.9536l2.56 8.055467c11.127467 36.522667-2.048 80.759467-31.300267 105.233066-1.058133 0.9216-14.779733 12.526933-50.244266 32.836267-33.9968 19.3536-50.619733 25.736533-53.589334 26.794667a96.256 96.256 0 0 1-32.4608 5.5296h-0.034133zM520.533333 393.898667c-60.416 0-109.568 49.152-109.568 109.568s49.152 109.568 109.568 109.568 109.568-49.152 109.568-109.568-49.152-109.568-109.568-109.568z m0 271.701333a162.304 162.304 0 0 1-162.133333-162.133333c0-89.429333 72.704-162.133333 162.133333-162.133334 89.3952 0 162.133333 72.704 162.133334 162.133334 0 89.3952-72.738133 162.133333-162.133334 162.133333z" p-id="42026"></path></svg>
|
|
121
|
+
{% if lan == 'cn' %} 设置 {% else %} Setting {% endif %}
|
|
122
|
+
</h2>
|
|
123
|
+
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="offcanvas-body">
|
|
126
|
+
<div class="card-tabs">
|
|
127
|
+
<ul class="nav nav-tabs">
|
|
128
|
+
<!-- https://adbshell.com/commands/adb-connect -->
|
|
129
|
+
<li class="nav-item active"><a href="#tab-top-2" class="nav-link active" data-bs-toggle="tab">{% if lan == 'cn' %} 告警值 {% else %} Warning Value {% endif %}</a></li>
|
|
130
|
+
<li class="nav-item"><a href="#tab-top-3" class="nav-link" data-bs-toggle="tab">{% if lan == 'cn' %} 定时器 {% else %} Timer {% endif %}</a></li>
|
|
131
|
+
<li class="nav-item"><a href="#tab-top-4" class="nav-link" data-bs-toggle="tab">{% if lan == 'cn' %} 远程访问 {% else %} Remote {% endif %}
|
|
132
|
+
{% if lan == 'en' %}
|
|
133
|
+
<span class="form-help" data-bs-toggle="popover" data-bs-placement="top" data-bs-html="true" data-bs-content="
|
|
134
|
+
Start solox on the Slave machine first, and then configure the Host here.</p>Note: The port number cannot be the same as the Master machine</p>">?</span>
|
|
135
|
+
{% else %}
|
|
136
|
+
<span class="form-help" data-bs-toggle="popover" data-bs-placement="top" data-bs-html="true" data-bs-content="先在其他机器启动solox,然后将Host配置在这里</p>注意:端口号不能和主机器一样</p> ">?</span>
|
|
137
|
+
{% endif %}</a>
|
|
138
|
+
</li>
|
|
139
|
+
</ul>
|
|
140
|
+
<div class="tab-content">
|
|
141
|
+
<div id="tab-top-2" class="card tab-pane active show">
|
|
142
|
+
<div class="card-body">
|
|
143
|
+
<div class="row mb-3">
|
|
144
|
+
<div class="col-md-6 col-xl-12">
|
|
145
|
+
<div class="mb-3">
|
|
146
|
+
<label class="form-label">{% if lan == 'cn' %} CPU告警值 {% else %} CPU warning value {% endif %}</label>
|
|
147
|
+
<input id="cpu_warning_value" type="text" class="form-control" placeholder="Input placeholder" value="{{ settings.cpuWarning }}">
|
|
148
|
+
</div>
|
|
149
|
+
<div class="mb-3">
|
|
150
|
+
<label class="form-label">{% if lan == 'cn' %} 内存告警值 {% else %} Memory warning value {% endif %}</label>
|
|
151
|
+
<input id="mem_warning_value" type="text" class="form-control" placeholder="Input placeholder" value="{{ settings.memWarning }}">
|
|
152
|
+
</div>
|
|
153
|
+
<div class="mb-3">
|
|
154
|
+
<label class="form-label">{% if lan == 'cn' %} FPS告警值 {% else %} FPS warning value {% endif %}</label>
|
|
155
|
+
<input id="fps_warning_value" type="text" class="form-control" placeholder="Input placeholder" value="{{ settings.fpsWarning }}">
|
|
156
|
+
</div>
|
|
157
|
+
<div class="mb-3">
|
|
158
|
+
<label class="form-label">{% if lan == 'cn' %} 电量告警值 {% else %} Battery warning value {% endif %}</label>
|
|
159
|
+
<input id="battery_warning_value" type="text" class="form-control" placeholder="Input placeholder" value="{{ settings.betteryWarning }}">
|
|
160
|
+
</div>
|
|
161
|
+
<div class="mb-3">
|
|
162
|
+
<label class="form-label">{% if lan == 'cn' %} 上行流量告警值 {% else %} Send network data warning value {% endif %}</label>
|
|
163
|
+
<input id="upflow_warning_value" type="text" class="form-control" placeholder="Input placeholder" value="{{ settings.netdataSendWarning }}">
|
|
164
|
+
</div>
|
|
165
|
+
<div class="mb-3">
|
|
166
|
+
<label class="form-label">{% if lan == 'cn' %} 下行流量告警值 {% else %} Recv network data warning value {% endif %}</label>
|
|
167
|
+
<input id="downflow_warning_value" type="text" class="form-control" placeholder="Input placeholder" value="{{ settings.netdataRecvWarning }}">
|
|
168
|
+
</div>
|
|
169
|
+
<div class="mb-3">
|
|
170
|
+
<label class="form-label">{% if lan == 'cn' %} GPU告警值 {% else %} GPU warning value {% endif %}</label>
|
|
171
|
+
<input id="gpu_warning_value" type="text" class="form-control" placeholder="Input placeholder" value="{{ settings.gpuWarning }}">
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
<!-- Content of card #2 -->
|
|
178
|
+
<div id="tab-top-3" class="card tab-pane">
|
|
179
|
+
<div class="card-body">
|
|
180
|
+
<div class="row mb-3">
|
|
181
|
+
<div class="col-md-6 col-xl-12">
|
|
182
|
+
<div class="mb-3">
|
|
183
|
+
<label class="form-label">{% if lan == 'cn' %} 持续执行时间(分钟) {% else %} Duration(minutes) {% endif %}</label>
|
|
184
|
+
<input id="duration" type="text" class="form-control" placeholder="Input placeholder" value="{{ settings.duration }}">
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
<div id="tab-top-4" class="card tab-pane">
|
|
191
|
+
<div class="card-body">
|
|
192
|
+
<div class="table">
|
|
193
|
+
<table class="table mb-0">
|
|
194
|
+
<thead>
|
|
195
|
+
<tr>
|
|
196
|
+
<th>PC</th>
|
|
197
|
+
<th>HOST</th>
|
|
198
|
+
<th>SWITCH</th>
|
|
199
|
+
</tr>
|
|
200
|
+
</thead>
|
|
201
|
+
<tbody>
|
|
202
|
+
<tr>
|
|
203
|
+
<td>
|
|
204
|
+
<svg t="1680252875419" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19154" width="50" height="50"><path d="M471.04 727.04h81.92v184.32h-81.92z" p-id="19155"></path><path d="M307.2 911.36m30.72 0l348.16 0q30.72 0 30.72 30.72l0 0q0 30.72-30.72 30.72l-348.16 0q-30.72 0-30.72-30.72l0 0q0-30.72 30.72-30.72Z" p-id="19156"></path><path d="M20.48 51.2m51.2 0l880.64 0q51.2 0 51.2 51.2l0 573.44q0 51.2-51.2 51.2l-880.64 0q-51.2 0-51.2-51.2l0-573.44q0-51.2 51.2-51.2Z" p-id="19157"></path><path d="M122.88 645.12m20.48 0l737.28 0q20.48 0 20.48 20.48l0 0q0 20.48-20.48 20.48l-737.28 0q-20.48 0-20.48-20.48l0 0q0-20.48 20.48-20.48Z" fill="#EBBA50" p-id="19158"></path></svg>
|
|
205
|
+
</td>
|
|
206
|
+
<td>
|
|
207
|
+
<input id="host" type="text" class="form-control form-control-sm" placeholder="ex : 192.168.10.10:6006" value="{{ settings.solox_host }}">
|
|
208
|
+
</td>
|
|
209
|
+
<td>
|
|
210
|
+
<label class="form-check form-switch">
|
|
211
|
+
{% if settings.host_switch == '1' %}
|
|
212
|
+
<input class="form-check-input host_switch" type="checkbox" checked>
|
|
213
|
+
{% else %}
|
|
214
|
+
<input class="form-check-input host_switch" type="checkbox">
|
|
215
|
+
{% endif %}
|
|
216
|
+
</label>
|
|
217
|
+
</td>
|
|
218
|
+
</tr>
|
|
219
|
+
</tbody>
|
|
220
|
+
</table>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
<a class="btn btn-primary mt-3" onclick="saveWorningValue()">
|
|
227
|
+
{% if lan == 'cn' %} 保存 {% else %} Save {% endif %}
|
|
228
|
+
</a>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
|
|
232
|
+
<!-- JQ JS -->
|
|
233
|
+
<script src="./static/js/jquery.min.js"></script>
|
|
234
|
+
<!-- tabler -->
|
|
235
|
+
<script src="./static/js/tabler.min.js"></script>
|
|
236
|
+
<script src="./static/js/tabler.demo.min.js"></script>
|
|
237
|
+
<!-- Sweetalert2 -->
|
|
238
|
+
<script src="./static/js/sweetalert2.min.js"></script>
|
|
239
|
+
<!-- Select2-->
|
|
240
|
+
<script src="./static/js/select2.min.js"></script>
|
|
241
|
+
<!-- Apexcharts-->
|
|
242
|
+
<script src="./static/js/apexcharts.js"></script>
|
|
243
|
+
<!-- highlight -->
|
|
244
|
+
<script src="./static/js/highlight.min.js"></script>
|
|
245
|
+
<!-- Highcharts-->
|
|
246
|
+
<script src="./static/js/highstock.js"></script>
|
|
247
|
+
<script src="./static/js/gray.js"></script>
|
|
248
|
+
|
|
249
|
+
<!-- html2canvas -->
|
|
250
|
+
<script src="./static/js/html2canvas.min.js"></script>
|
|
251
|
+
<script src="./static/js/socket.io.js"></script>
|
|
252
|
+
<script>
|
|
253
|
+
|
|
254
|
+
var platform = '{{ platform }}'; // 平台
|
|
255
|
+
var lan = '{{ lan }}' ;
|
|
256
|
+
|
|
257
|
+
var domain = $('.host_switch').is(':checked') == true ? $('#host').val().trim() : window.location.host ;
|
|
258
|
+
var Host = 'http://' + domain
|
|
259
|
+
|
|
260
|
+
$(document).ready(function() {
|
|
261
|
+
$('.select2-selection--single').select2({
|
|
262
|
+
theme: "bootstrap-5",
|
|
263
|
+
containerCssClass: "select2--small",
|
|
264
|
+
selectionCssClass: "select2--small",
|
|
265
|
+
dropdownCssClass: "select2--small",
|
|
266
|
+
});
|
|
267
|
+
$('.js-example-basic-multiple').select2({
|
|
268
|
+
theme: "bootstrap-5"
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
$('#curYear').text(getCurDate())
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
function rutePush(lan){
|
|
275
|
+
var cLan = '{{ lan }}';
|
|
276
|
+
var cRute = window.location.href;
|
|
277
|
+
if(cLan == lan){
|
|
278
|
+
window.location.href = cRute
|
|
279
|
+
}else{
|
|
280
|
+
window.location.href = cRute.replace('lan='+cLan, 'lan='+lan)
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function getCurDate(){
|
|
285
|
+
var date = new Date();
|
|
286
|
+
var year = date.getFullYear();
|
|
287
|
+
return year
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
function SwalLoading(title,html){
|
|
291
|
+
Swal.fire({
|
|
292
|
+
title: title,
|
|
293
|
+
html: html,
|
|
294
|
+
timerProgressBar: true,
|
|
295
|
+
allowOutsideClick: () => false,
|
|
296
|
+
didOpen: () => {
|
|
297
|
+
Swal.showLoading()
|
|
298
|
+
},
|
|
299
|
+
})
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function SwalFire(icon,title,text,timer=null) {
|
|
303
|
+
Swal.fire({
|
|
304
|
+
icon: icon,
|
|
305
|
+
title: title,
|
|
306
|
+
text: text,
|
|
307
|
+
showLoaderOnConfirm: true,
|
|
308
|
+
showCloseButton: true,
|
|
309
|
+
showConfirmButton: false,
|
|
310
|
+
timer:timer,
|
|
311
|
+
allowOutsideClick: () => true
|
|
312
|
+
})
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
Highcharts.setOptions({
|
|
316
|
+
global : {
|
|
317
|
+
useUTC : false
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
function screenshot(classname,downloadname) {
|
|
322
|
+
let container = document.getElementsByClassName(classname); //page-wrapper
|
|
323
|
+
html2canvas(container[0]).then(canvas => {
|
|
324
|
+
let imgData = canvas.toDataURL();
|
|
325
|
+
let link = document.createElement('a');
|
|
326
|
+
link.href = imgData;
|
|
327
|
+
link.download = downloadname;
|
|
328
|
+
let flag = link.click();
|
|
329
|
+
console.log(flag);
|
|
330
|
+
})
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
function saveWorningValue() {
|
|
334
|
+
var host_switch = $('.host_switch').is(':checked') == true ? 1 : 0;
|
|
335
|
+
$.ajax({
|
|
336
|
+
url: "/apm/cookie",
|
|
337
|
+
type: "GET",
|
|
338
|
+
async: true,
|
|
339
|
+
cache: false,
|
|
340
|
+
data:{
|
|
341
|
+
cpuWarning:parseInt($('#cpu_warning_value').val()),
|
|
342
|
+
memWarning:parseInt($('#mem_warning_value').val()),
|
|
343
|
+
fpsWarning:parseInt($('#fps_warning_value').val()),
|
|
344
|
+
netdataRecvWarning:parseInt($('#down_warning_value').val()),
|
|
345
|
+
netdataSendWarning:parseInt($('#upflow_warning_value').val()),
|
|
346
|
+
betteryWarning:parseInt($('#battery_warning_value').val()),
|
|
347
|
+
gpuWarning:parseInt($('#gpu_warning_value').val()),
|
|
348
|
+
duration:parseInt($('#duration').val()),
|
|
349
|
+
solox_host: $('#host').val(),
|
|
350
|
+
host_switch:host_switch
|
|
351
|
+
},
|
|
352
|
+
beforeSend: function () {
|
|
353
|
+
SwalLoading('Save data','Saving warning data.')
|
|
354
|
+
},
|
|
355
|
+
success: function (data) {
|
|
356
|
+
console.log(data)
|
|
357
|
+
SwalFire('success', 'Save successuly !', '', 2000);
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
</script>
|
|
362
|
+
{% block js %}
|
|
363
|
+
{% endblock %}
|
|
364
|
+
</body>
|
|
365
|
+
</html>
|