├── .gitignore ├── LICENSE ├── README.md ├── Snipaste ├── 1.png ├── 10.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png ├── 6.png ├── 7.png ├── 8.png └── 9.png ├── css ├── country.css ├── img │ ├── country.png │ └── desc.svg ├── main.css └── mdui-0.4.3 │ ├── LICENSE │ ├── css │ ├── mdui.css │ ├── mdui.min.css │ └── mdui.min.css.map │ ├── fonts │ └── roboto │ │ ├── LICENSE.txt │ │ ├── Roboto-Black.woff │ │ ├── Roboto-Black.woff2 │ │ ├── Roboto-BlackItalic.woff │ │ ├── Roboto-BlackItalic.woff2 │ │ ├── Roboto-Bold.woff │ │ ├── Roboto-Bold.woff2 │ │ ├── Roboto-BoldItalic.woff │ │ ├── Roboto-BoldItalic.woff2 │ │ ├── Roboto-Light.woff │ │ ├── Roboto-Light.woff2 │ │ ├── Roboto-LightItalic.woff │ │ ├── Roboto-LightItalic.woff2 │ │ ├── Roboto-Medium.woff │ │ ├── Roboto-Medium.woff2 │ │ ├── Roboto-MediumItalic.woff │ │ ├── Roboto-MediumItalic.woff2 │ │ ├── Roboto-Regular.woff │ │ ├── Roboto-Regular.woff2 │ │ ├── Roboto-RegularItalic.woff │ │ ├── Roboto-RegularItalic.woff2 │ │ ├── Roboto-Thin.woff │ │ ├── Roboto-Thin.woff2 │ │ ├── Roboto-ThinItalic.woff │ │ └── Roboto-ThinItalic.woff2 │ ├── icons │ └── material-icons │ │ ├── LICENSE.txt │ │ ├── MaterialIcons-Regular.ijmap │ │ ├── MaterialIcons-Regular.woff │ │ └── MaterialIcons-Regular.woff2 │ └── js │ ├── mdui.js │ ├── mdui.min.js │ └── mdui.min.js.map ├── index.html ├── info.html ├── js ├── constant.js ├── extent.js ├── info.js ├── main.js └── vue-clipboard.min.js └── lib ├── iconfont ├── iconfont.js └── iconfont.svg ├── layui ├── css │ ├── layui.css │ ├── layui.mobile.css │ └── modules │ │ ├── code.css │ │ ├── laydate │ │ └── default │ │ │ └── laydate.css │ │ └── layer │ │ └── default │ │ ├── icon-ext.png │ │ ├── icon.png │ │ ├── layer.css │ │ ├── loading-0.gif │ │ ├── loading-1.gif │ │ └── loading-2.gif ├── font │ ├── iconfont.eot │ ├── iconfont.svg │ ├── iconfont.ttf │ ├── iconfont.woff │ └── iconfont.woff2 ├── images │ └── face │ │ ├── 0.gif │ │ ├── 1.gif │ │ ├── 10.gif │ │ ├── 11.gif │ │ ├── 12.gif │ │ ├── 13.gif │ │ ├── 14.gif │ │ ├── 15.gif │ │ ├── 16.gif │ │ ├── 17.gif │ │ ├── 18.gif │ │ ├── 19.gif │ │ ├── 2.gif │ │ ├── 20.gif │ │ ├── 21.gif │ │ ├── 22.gif │ │ ├── 23.gif │ │ ├── 24.gif │ │ ├── 25.gif │ │ ├── 26.gif │ │ ├── 27.gif │ │ ├── 28.gif │ │ ├── 29.gif │ │ ├── 3.gif │ │ ├── 30.gif │ │ ├── 31.gif │ │ ├── 32.gif │ │ ├── 33.gif │ │ ├── 34.gif │ │ ├── 35.gif │ │ ├── 36.gif │ │ ├── 37.gif │ │ ├── 38.gif │ │ ├── 39.gif │ │ ├── 4.gif │ │ ├── 40.gif │ │ ├── 41.gif │ │ ├── 42.gif │ │ ├── 43.gif │ │ ├── 44.gif │ │ ├── 45.gif │ │ ├── 46.gif │ │ ├── 47.gif │ │ ├── 48.gif │ │ ├── 49.gif │ │ ├── 5.gif │ │ ├── 50.gif │ │ ├── 51.gif │ │ ├── 52.gif │ │ ├── 53.gif │ │ ├── 54.gif │ │ ├── 55.gif │ │ ├── 56.gif │ │ ├── 57.gif │ │ ├── 58.gif │ │ ├── 59.gif │ │ ├── 6.gif │ │ ├── 60.gif │ │ ├── 61.gif │ │ ├── 62.gif │ │ ├── 63.gif │ │ ├── 64.gif │ │ ├── 65.gif │ │ ├── 66.gif │ │ ├── 67.gif │ │ ├── 68.gif │ │ ├── 69.gif │ │ ├── 7.gif │ │ ├── 70.gif │ │ ├── 71.gif │ │ ├── 8.gif │ │ └── 9.gif ├── lay │ └── modules │ │ ├── carousel.js │ │ ├── code.js │ │ ├── colorpicker.js │ │ ├── element.js │ │ ├── flow.js │ │ ├── form.js │ │ ├── jquery.js │ │ ├── laydate.js │ │ ├── layedit.js │ │ ├── layer.js │ │ ├── laypage.js │ │ ├── laytpl.js │ │ ├── mobile.js │ │ ├── rate.js │ │ ├── slider.js │ │ ├── table.js │ │ ├── transfer.js │ │ ├── tree.js │ │ ├── upload.js │ │ └── util.js ├── layui.all.js └── layui.js └── vue ├── vue.js └── vue.min.js /.gitignore: -------------------------------------------------------------------------------- 1 | test 2 | dev 3 | .idea 4 | Snipaste/backup 5 | /Snipaste/backup/ 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MD-qBittorrent-web-ui 2 | [![star](https://gitee.com/wenzhouchan/MD-qBittorrent-web-ui/badge/star.svg?theme=dark)](https://gitee.com/wenzhouchan/MD-qBittorrent-web-ui/stargazers) 3 | 4 | 基于 MDUI 前端框架设计的手机专属 qBittorrent WEB UI(后续会做电脑版),涵盖了 70% 官方 WEB UI 能做到的功能 5 | 6 | # 截图 7 | 首页: 8 | ![sss](Snipaste/1.png) 9 | 10 | 排序: 11 | ![sss](Snipaste/2.png) 12 | 13 | 添加 URL 下载: 14 | ![sss](Snipaste/3.png) 15 | 16 | 添加 种子文件 下载: 17 | ![sss](Snipaste/4.png) 18 | 19 | 长按下载项目菜单 20 | ![sss](Snipaste/5.png) 21 | 22 | 下载项目详细信息 - 普通 23 | ![sss](Snipaste/6.png) 24 | 25 | 下载项目详细信息 - Tracker 26 | ![sss](Snipaste/7.png) 27 | 28 | 下载项目详细信息 - 用户 29 | ![sss](Snipaste/8.png) 30 | 31 | 下载项目详细信息 - 内容 32 | ![sss](Snipaste/9.png) 33 | 34 | # 使用到的框架 35 | - [MDUI](https://github.com/zdhxiong/mdui) 36 | - 基础界面显示 37 | - [LayUI](https://github.com/sentsin/layui/) 38 | - 使用到了表格 39 | - [Vue](https://github.com/vuejs/vue) 40 | - 数据绑定、页面渲染 41 | 42 | # 使用方法 43 | 44 | ## 1.直接使用<对 qBittorrent 版本有要求> 45 | 46 | ### Ⅰ.下载 Release 版 <选择最新版下载即可> 47 | 下载链接:https://github.com/PrintNow/MD-qBittorrent-web-ui/releases/ 48 | 49 | ### Ⅱ.解压 50 | > 假设我解压到 `/src/new-qb-webui`,解压后,此目录下 `/src/new-qb-webui` 结构应该是这样的 51 | ``` 52 | │ tstool.py 53 | │ webui.qrc 54 | ├─private 55 | ├─public 56 | └─translations 57 | ``` 58 | 59 | ### Ⅲ.启用备用 WebUI 60 | > 按照图片示意操作即可 61 | 62 | ![](./Snipaste/10.png) 63 | 64 | ### Ⅳ.打开 65 | 请先清理浏览器缓存,然后访问:`http://<你的IP>:<端口号>/mobile/index.html` 66 | 67 | ### Ⅴ.打开的界面应该如 [截图](#截图) 所示 68 | 69 | 70 | ## 2.根据官方文档: 71 | > 官方文档:https://github.com/qbittorrent/qBittorrent/wiki/Alternate-WebUI-usage 72 | 73 | ### 修改配置文件 (qbittorrent.conf): 74 | ``` 75 | WebUI\AlternativeUIEnabled=/ 76 | WebUI\RootFolder= 77 | ``` 78 | 79 | ### 下载 WebUI 80 | https://github.com/PrintNow/MD-qBittorrent-web-ui/archive/master.zip 81 | 82 | ### 复制文件 83 | https://github.com/qbittorrent/qBittorrent/tree/master/src/webui/www to `a ` 84 | https://github.com/qbittorrent/qBittorrent/tree/master/src/icons to `/public/images` 85 | https://github.com/qbittorrent/qBittorrent/tree/master/src/icons to `/private/images` 86 | 87 | > 在选项上启用 `WebUI\AlternativeUIEnabled`,并将条目 `WebUI\RootFolder` 指向 ,然后启动 `qBittorrent`。 88 | > 然后访问 `http://:<端口号>/index.html` 89 | 90 | [![WenzhouChan/MD-qBittorrent-web-ui](https://gitee.com/wenzhouchan/MD-qBittorrent-web-ui/widgets/widget_card.svg?colors=4183c4,ffffff,ffffff,e3e9ed,666666,9b9b9b)](https://gitee.com/wenzhouchan/MD-qBittorrent-web-ui) 91 | 92 | # LICENSE 93 | [LICENSE](LICENSE) 94 | -------------------------------------------------------------------------------- /Snipaste/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/Snipaste/1.png -------------------------------------------------------------------------------- /Snipaste/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/Snipaste/10.png -------------------------------------------------------------------------------- /Snipaste/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/Snipaste/2.png -------------------------------------------------------------------------------- /Snipaste/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/Snipaste/3.png -------------------------------------------------------------------------------- /Snipaste/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/Snipaste/4.png -------------------------------------------------------------------------------- /Snipaste/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/Snipaste/5.png -------------------------------------------------------------------------------- /Snipaste/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/Snipaste/6.png -------------------------------------------------------------------------------- /Snipaste/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/Snipaste/7.png -------------------------------------------------------------------------------- /Snipaste/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/Snipaste/8.png -------------------------------------------------------------------------------- /Snipaste/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/Snipaste/9.png -------------------------------------------------------------------------------- /css/img/country.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/img/country.png -------------------------------------------------------------------------------- /css/img/desc.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /css/main.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * 自定义 css,注释可能没那么清楚 3 | * MD-qBittorrent-web-ui v0.1.0 4 | * Copyright 2020 chuwen 5 | * Licensed under GNU General Public License v3.0 6 | */ 7 | 8 | /* 9 | Tab 选项卡子元素居中 10 | 例如 全部 (1) 下载 (0) 11 | */ 12 | .tab-ripple-num { 13 | display: contents; 14 | } 15 | 16 | /*下载进度框*/ 17 | .download-progress-box { 18 | list-style-type: none; 19 | margin: 0; 20 | padding: 0; 21 | } 22 | 23 | /*下载进度列表*/ 24 | .progress-box-list { 25 | padding-bottom: 8px; 26 | border-bottom: 1px solid rgba(0, 0, 0, 0.12); 27 | } 28 | 29 | /*将下列三个包裹起来*/ 30 | .progress-box-list .file-content { 31 | line-height: 34px; 32 | } 33 | 34 | /*下载状态*/ 35 | .progress-box-list .download-state { 36 | } 37 | 38 | /*文件(夹)名*/ 39 | .progress-box-list .file-name { 40 | /*超出显示省略号*/ 41 | overflow: hidden; 42 | white-space: nowrap; 43 | text-overflow: ellipsis; 44 | } 45 | 46 | /*文件(名)类型*/ 47 | .progress-box-list .file-type { 48 | } 49 | 50 | /*进度条高度*/ 51 | .progress-box-list .mdui-progress { 52 | /*height: 22px;*/ 53 | height: 18px; 54 | } 55 | 56 | /*进度条那一行*/ 57 | .progress-box-list .mdui-progress .progress-content { 58 | /*font-size: 12px;*/ 59 | /*line-height: 23px;*/ 60 | font-size: 11.4px; 61 | line-height: 18px; 62 | } 63 | 64 | /*文件大小*/ 65 | .progress-box-list .mdui-progress .file-size { 66 | } 67 | 68 | /*已经进行的时间*/ 69 | .progress-box-list .mdui-progress .download-time > .duration { 70 | 71 | } 72 | 73 | /*剩余时间*/ 74 | .progress-box-list .mdui-progress .download-time > .time-left { 75 | } 76 | 77 | /*扩展:上传速度、最后活动、添加于*/ 78 | .progress-box-list .download-extend { 79 | font-size: 1.9vh; 80 | font-weight: 300; 81 | height: 100%; 82 | margin-left: 8px; 83 | } 84 | 85 | .progress-box-list .download-extend .mdui-col-xs-3 { 86 | width: 29%; 87 | } 88 | 89 | .progress-box-list .download-extend .mdui-col-xs-5 { 90 | width: 32.3%; 91 | } 92 | 93 | .progress-box-list .download-extend .mdui-col-xs-4 { 94 | width: 35%; 95 | } 96 | 97 | 98 | /*扩展*/ 99 | .mdui-col-xs-0-4 { 100 | float: left; 101 | width: 4%; 102 | } 103 | 104 | .mdui-menu-item-icon { 105 | padding-right: 0; 106 | } 107 | 108 | .mdui-menu-cascade > .mdui-menu-item > a { 109 | padding: 0; 110 | } 111 | 112 | .mdui-menu-cascade { 113 | /*width: 18vw;*/ 114 | width: 182px; 115 | /*padding-left: 6px;*/ 116 | padding: 8px 0; 117 | } 118 | 119 | #mdui-ripple { 120 | padding-left: 44px; 121 | } 122 | 123 | /*右上角进度指示器*/ 124 | #taskState > .mdui-spinner.mdui-spinner-colorful { 125 | top: 10px; 126 | } 127 | 128 | 129 | .slider-input-box { 130 | display: flex; 131 | padding-top: 16px; 132 | flex-direction: column; 133 | align-items: center; 134 | } 135 | 136 | .slider-input-box input { 137 | width: 80px; 138 | padding: 3px 8px; 139 | text-align: center; 140 | } 141 | 142 | .setting-diy-label { 143 | line-height: 36px; 144 | } 145 | 146 | 147 | /*****/ 148 | .formRow { 149 | padding: 8px; 150 | } 151 | 152 | /*.formRow label{*/ 153 | /* padding-left: 8px;*/ 154 | /*}*/ 155 | .settings { 156 | margin: 8px; 157 | } 158 | 159 | #port_value { 160 | width: 3.8em; 161 | padding-left: 4px; 162 | } 163 | 164 | #settings input, 165 | #settings label { 166 | vertical-align: middle; 167 | } 168 | 169 | #settings input { 170 | width: 4.3em; 171 | } 172 | 173 | #addTaskDialogMenu { 174 | top: 52px !important; 175 | } 176 | 177 | #addTaskDialogMenu .mdui-ripple { 178 | font-size: 14px; 179 | padding: 0 4px; 180 | } 181 | 182 | /*上传文件框架*/ 183 | .file-drop-zone { 184 | border: 1px dashed #aaa; 185 | border-radius: 4px; 186 | /*height: 100%;*/ 187 | text-align: center; 188 | vertical-align: middle; 189 | margin: 12px 15px 12px 12px; 190 | padding: 5px; 191 | } 192 | 193 | .file-drop-zone-title { 194 | color: #aaa; 195 | font-size: 1.4rem; 196 | padding: 16px 8px; 197 | cursor: default; 198 | height: 6.3rem; 199 | } 200 | 201 | .file-drop-zone-title.active { 202 | display: flex; 203 | justify-content: center; 204 | align-items: center; 205 | } 206 | 207 | .file-drop-zone-delete { 208 | position: absolute; 209 | right: 48px; 210 | cursor: pointer; 211 | /*不选中文字*/ 212 | moz-user-select: -moz-none; 213 | -moz-user-select: none; 214 | -o-user-select: none; 215 | -khtml-user-select: none; 216 | -webkit-user-select: none; 217 | -ms-user-select: none; 218 | user-select: none; 219 | 220 | } 221 | 222 | .file-drop-zone-delete:focus, 223 | .file-drop-zone-delete:hover { 224 | color: mediumvioletred; 225 | } 226 | 227 | #clearTextfield { 228 | text-decoration: unset; 229 | cursor: pointer; 230 | } 231 | 232 | 233 | /*全局底部面板*/ 234 | .footer-panel p { 235 | margin: 0; 236 | } 237 | 238 | .footer-panel-item { 239 | font-size: 0.8rem; 240 | } 241 | 242 | .footer-panel-item .mdui-icon.material-icons { 243 | font-size: 1.2rem; 244 | } 245 | 246 | 247 | /**************** 248 | 种子详细信息 249 | ****************/ 250 | .speed-info { 251 | padding: 8px 0; 252 | line-height: 26px; 253 | /*display: flex;*/ 254 | /*justify-content: space-between;*/ 255 | } 256 | 257 | /*文件大小*/ 258 | .speed-info .total_downloaded { 259 | font-size: 2.2rem; 260 | } 261 | 262 | /*文件大小单位*/ 263 | .speed-info .file-byte { 264 | font-size: 1.3rem; 265 | color: rgba(0, 0, 0, .54) !important; 266 | padding-left: 2px; 267 | } 268 | 269 | /*本次活动传输的流量*/ 270 | .speed-info .total_downloaded_session { 271 | color: rgba(0, 0, 0, .54) !important; 272 | } 273 | 274 | /*实时传输速度*/ 275 | .speed-info .dl_speed { 276 | font-size: 1.4rem; 277 | color: rgba(0, 0, 0, .8) !important; 278 | } 279 | 280 | .speed-info .peers_total { 281 | color: rgba(0, 0, 0, .54) !important; 282 | } 283 | 284 | .speed-info .dl-info { 285 | border-right: 3px solid #009688; 286 | text-align: right; 287 | } 288 | 289 | /*种子状态*/ 290 | .taskState { 291 | clear: left; 292 | border-left: 5px solid #009688; 293 | padding: 0 8px; 294 | margin-top: 6px; 295 | margin-left: 4px; 296 | } 297 | 298 | .taskState span { 299 | display: block; 300 | overflow: hidden; 301 | text-overflow: ellipsis; 302 | white-space: nowrap; 303 | line-height: 1.3rem; 304 | font-size: .8rem; 305 | } 306 | 307 | /*复制字段*/ 308 | .taskState .copy-filed { 309 | color: #E91E63; 310 | overflow: hidden; 311 | text-decoration: none; 312 | } 313 | 314 | .taskState .split-2 { 315 | display: inline-block; 316 | width: 49.5%; 317 | } 318 | 319 | 320 | /********************** 321 | Tracker 服务器列表 开始 322 | **********************/ 323 | 324 | .band-transition * { 325 | -webkit-transition: none !important; 326 | -moz-transition: none !important; 327 | -o-transition: none !important; 328 | transition: none !important; 329 | } 330 | 331 | .ban-select { 332 | user-select: none; 333 | -webkit-user-select: none; 334 | -moz-user-select: none; 335 | -ms-user-select: none; 336 | } 337 | 338 | 339 | /*URL*/ 340 | #tab-tracker .mdui-panel-item-title { 341 | width: 60%; 342 | min-width: 60%; 343 | padding-right: 8px; 344 | font-size: 0.9rem; 345 | font-weight: 400; 346 | } 347 | 348 | /*状态*/ 349 | #tab-tracker .mdui-panel-item-summary { 350 | padding-right: 0; 351 | } 352 | 353 | /*各项信息显示*/ 354 | #tab-tracker .mdui-panel-item-body .mdui-row > p { 355 | clear: both; 356 | margin: 0; 357 | padding: 0 8px; 358 | } 359 | 360 | #tab-tracker .mdui-panel-item-body .mdui-row > div, p { 361 | /*color: #555;*/ 362 | /*line-height: 22px;*/ 363 | } 364 | 365 | /*操作*/ 366 | #tab-tracker .mdui-panel-item-body .mdui-row > .mdui-col-xs-12:first-child { 367 | padding: 4px 8px; 368 | } 369 | 370 | /*操作项目*/ 371 | #tab-tracker .mdui-panel-item-body .mdui-row .operate { 372 | color: #E91E63; 373 | } 374 | 375 | #tab-tracker .mdui-panel-item-body .mdui-row .operate:after { 376 | content: "/"; 377 | padding: 0 4px; 378 | color: #555; 379 | } 380 | 381 | #tab-tracker .mdui-panel-item-body .mdui-row .operate:last-child:after { 382 | content: ""; 383 | } 384 | 385 | /********************** 386 | Tracker 服务器列表 结束 387 | **********************/ 388 | 389 | 390 | .icon { 391 | width: 1.2em; 392 | height: 1.2em; 393 | vertical-align: -0.25em; 394 | fill: currentColor; 395 | overflow: hidden; 396 | } 397 | 398 | #filterItem a.mdui-ripple { 399 | padding: 0 12px; 400 | } 401 | 402 | 403 | #tab-contents.mdui-container-fluid{ 404 | padding: 0; 405 | } 406 | 407 | /********************** 408 | 种子 内容信息 开始 409 | **********************/ 410 | #tab-content .mdui-list { 411 | padding: 0; 412 | } 413 | 414 | #tab-content .mdui-list-item-content { 415 | margin-left: 0; 416 | padding: 8px 0; 417 | } 418 | 419 | #tab-content .mdui-list-item-content .mdui-col-xs-4 { 420 | padding: 0; 421 | font-size: 14px; 422 | color: #5555559a; 423 | } 424 | 425 | #tab-content .mdui-list-item-content p { 426 | margin: 0; 427 | word-wrap:break-word; 428 | word-break:break-all; 429 | } 430 | 431 | /********************** 432 | 种子 内容信息 开始 433 | **********************/ -------------------------------------------------------------------------------- /css/mdui-0.4.3/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 zdhxiong@gmail.com 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Black.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Black.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Black.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Black.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-BlackItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-BlackItalic.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-BlackItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-BlackItalic.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Bold.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Bold.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-BoldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-BoldItalic.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-BoldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-BoldItalic.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Light.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Light.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-LightItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-LightItalic.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-LightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-LightItalic.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Medium.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Medium.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-MediumItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-MediumItalic.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-MediumItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-MediumItalic.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Regular.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Regular.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-RegularItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-RegularItalic.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-RegularItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-RegularItalic.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Thin.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Thin.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-Thin.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-Thin.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-ThinItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-ThinItalic.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/fonts/roboto/Roboto-ThinItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/fonts/roboto/Roboto-ThinItalic.woff2 -------------------------------------------------------------------------------- /css/mdui-0.4.3/icons/material-icons/MaterialIcons-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/icons/material-icons/MaterialIcons-Regular.woff -------------------------------------------------------------------------------- /css/mdui-0.4.3/icons/material-icons/MaterialIcons-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/css/mdui-0.4.3/icons/material-icons/MaterialIcons-Regular.woff2 -------------------------------------------------------------------------------- /info.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 种子任务详细信息 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 |
19 | 22 | arrow_back 23 | 24 | ... 25 |
26 | 28 |
29 |
30 |
31 |
32 | 33 | 34 | 35 |
36 | 普通 37 | Tracker 38 | 用户 39 | HTTP 源 40 | 内容 41 |
42 | 43 | 44 | 45 |
46 |
47 |
48 | 49 |
50 |
51 |
52 |
53 |
{{getFileSize(info.total_downloaded)[0]}}{{getFileSize(info.total_downloaded)[1]}} 54 |
55 |
OF {{getFileSize(info.total_downloaded_session).join('')}}
56 |
{{getFileSize(info.dl_speed).join(' ')}}/s ↓
57 |
{{info.seeds || 0}} / {{info.seeds_total || 0}} 种子
58 | 59 |
60 |
61 |
62 | {{getFileSize(info.total_uploaded)[0]}}{{getFileSize(info.total_uploaded)[1]}} 63 |
64 |
OF {{getFileSize(info.total_upload_session).join('')}}
65 |
{{getFileSize(info.up_speed).join(' ')}}/s ↑
66 |
{{info.peers || 0}} / {{info.peers_total || 0}} 用户
67 | 68 |
69 |
70 | 71 |
72 | 总大小:{{getFileSize(info.total_size).join(' ')}} 73 | 区块:{{info.pieces_num}} x {{getFileSize(info.piece_size).join(' ')}} 74 | 状态:下载中 75 | 上传限制:{{info.up_limit === -1 ? '∞' : getFileSize(info.up_limit)+"/s"}} 76 | 分享率:{{toFixedd(info.share_ratio)}} 77 | 下载限制:{{info.dl_limit === -1 ? '∞' : getFileSize(info.dl_limit)+"/s"}} 78 | 添加于:{{formatTime(info.addition_date)}} 79 | 活动时间:{{lastActiveTime(info.time_elapsed)}} 80 | 完成于:{{formatTime(info.completion_date)}} 81 | 重新发布于:{{toHourMinute(info.reannounce)}} 82 |
83 |
84 |
85 | 保存路径:{{info.save_path}} 86 | Torrent 哈希值:{{hash}} 87 | 注释:{{info.comment}} 88 |
89 | 90 |
91 | 92 |
93 |
94 | 手动刷新 95 |
96 |
97 |
98 | 99 |
100 |
101 |
102 |
103 |
URL:{{tk.url || '** [DHT] **'}}
104 |
状态:{{trackerStatusCN(tk['status'])}}
105 | keyboard_arrow_down 106 |
107 |
108 |
109 |
用户:{{num_na(tk.num_peers)}}
110 |
下载:{{num_na(tk.num_downloaded)}}
111 |
种子:{{num_na(tk.num_seeds)}}
112 |
吸血者:{{num_na(tk.num_leeches)}}
113 |
消息:{{tk.msg||'success'}}
114 |
115 | 116 |
117 | 118 | 119 |
120 |
121 |
122 |
123 |
124 | 125 |
126 |

开发中

127 |
128 | 129 |
130 |
131 | 145 |
146 |
147 |
148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /js/constant.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * 公共常量 3 | * MD-qBittorrent-web-ui v0.1.0 4 | * Copyright 2020 chuwen 5 | * Licensed under GNU General Public License v3.0 6 | */ 7 | 8 | /** 9 | * 定义 qBittorrent API 地址 10 | * 末尾不要加 / 11 | * @type {string} 12 | */ 13 | // const API = "https://192.168.111.11/"; 14 | const API = window.location.protocol+"//"+window.location.hostname+":"+window.location.port; 15 | 16 | /** 17 | * 定义公共请求头 18 | * @type {{"x-auth": string}} 19 | */ 20 | const requestHeader = { 21 | // 'x-auth': '', 22 | // 'Content-Type': 'application/x-www-form-urlencoded' 23 | }; 24 | 25 | 26 | const syncMaindata = '/api/v2/sync/maindata',//获取主要数据 27 | torrentPeers = '/api/v2/sync/torrentPeers',//获取用户列表 28 | 29 | torrentsProperties = '/api/v2/torrents/properties',//获取洪流通用属性,获取种子详细信息 30 | torrentsTrackers = '/api/v2/torrents/trackers',//获取 trackers 信息 31 | torrentsFiles = '/api/v2/torrents/files',//获取 内容 信息 32 | torrentsCategories = '/api/v2/torrents/categories',//获取 分类 列表 33 | torrentsRemoveCategories = '/api/v2/torrents/removeCategories',//移除分类 34 | 35 | torrentsResume = '/api/v2/torrents/resume',//继续下载 36 | torrentsPause = '/api/v2/torrents/pause',//暂停下载 37 | torrentsSetForceStart = '/api/v2/torrents/setForceStart ',//强制开始 38 | torrentsDelete = '/api/v2/torrents/delete ',//删除种子 39 | torrentsSetLocation = '/api/v2/torrents/setLocation ',//更改保存路径 40 | torrentsRename = '/api/v2/torrents/rename',//重命名 41 | torrentsSetAutoManagement = '/api/v2/torrents/setAutoManagement',//自动种子管理 42 | torrentsSetDownloadLimit = '/api/v2/torrents/setDownloadLimit',//设置种子下载速率 43 | torrentsSetUploadLimit = '/api/v2/torrents/setUploadLimit',//设置种子上传速率 44 | torrentsSetSuperSeeding = '/api/v2/torrents/setSuperSeeding',//设置超级做种模式 45 | torrentsRecheck = '/api/v2/torrents/recheck',//重新校验种子 46 | torrentsReannounce = '/api/v2/torrents/reannounce',//强制重新汇报 47 | torrentsAdd = '/api/v2/torrents/add',//链接-添加种子 48 | 49 | torrentsFilePrio = '/api/v2/torrents/filePrio',//链接-添加种子 50 | 51 | toggleFirstLastPiecePrio = '/api/v2/torrents/toggleFirstLastPiecePrio',//种子-先下载首尾段 52 | toggleSequentialDownload = '/api/v2/torrents/toggleSequentialDownload',//种子-切换下载顺序 53 | 54 | 55 | appPreferences = '/api/v2/app/preferences';//获取应用程序首选项 /index_with_tree.html#get-application-preferences 56 | 57 | /** 58 | * Tracker 服务器状态 59 | * @param status 60 | * @param type 61 | * @returns {string} 62 | */ 63 | Vue.prototype.trackerStatusCN = function(status, type=1){ 64 | let source =[ 65 | 'Tracker is disabled (used for DHT, PeX, and LSD)', 66 | 'Tracker has not been contacted yet', 67 | 'Tracker has been contacted and is working', 68 | 'Tracker is updating', 69 | 'Tracker has been contacted, but it is not working (or doesn\'t send proper replies)' 70 | ]; 71 | let translate = [ 72 | '跟踪器已禁用(用于 DHT、PeX 和 LSD)', 73 | '尚未联系跟踪器', 74 | '已联系跟踪器并正在工作', 75 | '跟踪器正在更新', 76 | '已联系跟踪器,但无法正常工作(或未发送正确答复)' 77 | ]; 78 | 79 | let abbreviation = [ 80 | '禁用', 81 | '尚未联系', 82 | '工作中', 83 | '正在更新', 84 | '工作异常' 85 | ]; 86 | 87 | if(type === 0){ 88 | return translate[status]; 89 | } 90 | 91 | return abbreviation[status]; 92 | }; 93 | 94 | /** 95 | * 整数转百分比 96 | * @param point 97 | * @param fractionDigits 98 | * @returns {string} 99 | */ 100 | Vue.prototype.toPercent = function (point, fractionDigits = 1) { 101 | var str = Number(point * 100).toFixed(fractionDigits); 102 | str += "%"; 103 | return str; 104 | }; 105 | 106 | /** 107 | * 获取文件大小// 108 | * @param fileByte 109 | * @returns {[string, string]|[string, string]} 110 | */ 111 | Vue.prototype.getFileSize = function (fileByte) { 112 | let value = fileByte; 113 | 114 | if (null == value || value === '' || 0 === value) { 115 | return ['0.00', 'B']; 116 | } 117 | 118 | var unitArr = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; 119 | var index = 0; 120 | var srcsize = parseFloat(value); 121 | index = Math.floor(Math.log(srcsize) / Math.log(1024)); 122 | var size = srcsize / Math.pow(1024, index); 123 | size = size.toFixed(2);//保留的小数位数 124 | 125 | return [size, unitArr[index]]; 126 | }; 127 | 128 | /** 129 | * 转小时分钟 130 | * @param minutes 131 | * @returns {string} 132 | */ 133 | Vue.prototype.toHourMinute = function (minutes) { 134 | return (Math.floor(minutes / 60) + "小时" + (minutes % 60) + "分"); 135 | }; 136 | 137 | /** 138 | * 最后活动时间 139 | * @param seconds 140 | * @returns {string} 141 | */ 142 | Vue.prototype.lastActiveTime = function (seconds) { 143 | var val = seconds; 144 | if (val < 1) 145 | return '∞'; 146 | else 147 | return '%1前'.replace('%1', this.friendlyDuration((new Date()) / 1000 - val)); 148 | }; 149 | 150 | Vue.prototype.friendlyDuration = function (seconds) { 151 | var MAX_ETA = 8640000; 152 | if (seconds < 0 || seconds >= MAX_ETA) 153 | return "∞"; 154 | if (seconds === 0) 155 | return "0"; 156 | if (seconds < 60) 157 | return "< 1分钟"; 158 | var minutes = seconds / 60; 159 | if (minutes < 60) 160 | return "%1分钟".replace("%1", parseInt(minutes)); 161 | var hours = minutes / 60; 162 | minutes = minutes % 60; 163 | if (hours < 24) 164 | return "%1小时%2分钟".replace("%1", parseInt(hours)).replace("%2", parseInt(minutes)); 165 | var days = hours / 24; 166 | hours = hours % 24; 167 | if (days < 100) 168 | return "%1天%2小时".replace("%1", parseInt(days)).replace("%2", parseInt(hours)); 169 | return "∞"; 170 | }; 171 | 172 | /** 173 | * 格式化时间 yyyy/MM/dd hh:mm:ss 174 | * @param time 175 | */ 176 | Vue.prototype.formatTime = function (time) { 177 | return new Date(time * 1000).format('yyyy/MM/dd hh:mm:ss'); 178 | }; 179 | 180 | //获取cookie 181 | Vue.prototype.getCookie = function (name) { 182 | var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); 183 | if ((arr = document.cookie.match(reg))) 184 | return (arr[2]); 185 | else 186 | return null; 187 | }; 188 | 189 | //设置cookie,增加到vue实例方便全局调用 190 | Vue.prototype.setCookie = function (c_name, value, expiredays) { 191 | var exdate = new Date(); 192 | exdate.setDate(exdate.getDate() + expiredays); 193 | document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()); 194 | }; 195 | 196 | //删除cookie 197 | Vue.prototype.delCookie = function (name) { 198 | var exp = new Date(); 199 | exp.setTime(exp.getTime() - 1); 200 | var cval = getCookie(name); 201 | if (cval != null) 202 | document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString(); 203 | }; 204 | 205 | //下载状态 206 | const _downloadState = { 207 | stalledUP: { 208 | icon: 'file_upload', 209 | color: 'mdui-text-color-theme', 210 | text: '做种' 211 | },//做种上传<没有活动> 212 | 213 | stalledDL: { 214 | icon: 'file_download', 215 | color: 'mdui-text-color-lime-800', 216 | text: '等待' 217 | },//等待下载 218 | 219 | downloading: { 220 | icon: 'file_download', 221 | color: 'mdui-text-color-green-400', 222 | text: '下载' 223 | },//下载中 224 | 225 | uploading: { 226 | icon: 'cloud_upload', 227 | // icon: 'file_upload', 228 | color: 'mdui-text-color-blue' 229 | },//上传中<活动中> 230 | 231 | pausedDL: { 232 | icon: 'pause', 233 | color: 'mdui-text-color-orange', 234 | text: '暂停' 235 | },//暂停下载 236 | 237 | pausedUP: { 238 | icon: 'check', 239 | color: 'mdui-text-color-green', 240 | text: '完成' 241 | },//已暂停(完成下载) 242 | 243 | allocating: { 244 | icon: 'setting', 245 | color: '', 246 | text: '配置' 247 | }, 248 | 249 | error: { 250 | icon: 'help_outline', 251 | color: 'mdui-text-color-red', 252 | text: '未知状态' 253 | } 254 | }; 255 | 256 | const downloadState = { 257 | stalledUP: { 258 | icon: 'file_upload', 259 | color: 'mdui-text-color-indigo', 260 | text: '做种' 261 | },//做种上传<没有活动> 262 | stalledDL: { 263 | icon: 'file_download', 264 | color: 'mdui-text-color-lime-800', 265 | text: '等待' 266 | },//等待下载 267 | downloading: { 268 | icon: 'file_download', 269 | color: 'mdui-text-color-green', 270 | text: '下载' 271 | },//下载中 272 | uploading: { 273 | icon: 'cloud_upload', 274 | color: 'mdui-text-color-blue', 275 | text: '做种' 276 | },//上传中<活动中> 277 | pausedDL: { 278 | icon: 'pause', 279 | color: 'mdui-text-color-orange', 280 | text: '暂停' 281 | },//暂停下载 282 | pausedUP: { 283 | icon: 'check', 284 | color: 'mdui-text-color-green', 285 | text: '完成' 286 | },//已暂停(完成下载) 287 | allocating: { 288 | icon: 'settings', 289 | color: '', 290 | text: '配置' 291 | }, 292 | error: { 293 | icon: 'info_outline', 294 | color: 'mdui-text-color-red', 295 | text: '错误' 296 | }, 297 | metaDL: { 298 | icon: 'file_download', 299 | color: 'mdui-text-color-indigo', 300 | text: '下载元数据' 301 | }, 302 | forcedDL: { 303 | icon: 'file_download', 304 | color: 'mdui-text-color-purple', 305 | text: '[F] 下载' 306 | },//强制下载 307 | forcedUP: { 308 | icon: 'file_upload', 309 | color: 'mdui-text-color-purple', 310 | text: '[F] 做种' 311 | },//强制做种 312 | 313 | queuedDL: { 314 | //transform: rotate(180deg); 315 | icon: 'merge_type', 316 | color: 'mdui-text-color-orange', 317 | text: '队列' 318 | }, 319 | queuedUP: { 320 | icon: 'merge_type', 321 | color: 'mdui-text-color-orange', 322 | text: '队列' 323 | }, 324 | 325 | checkingDL: { 326 | icon: 'compare_arrows', 327 | color: 'mdui-text-color-green', 328 | text: '校验' 329 | }, 330 | checkingUP: { 331 | icon: 'compare_arrows', 332 | color: 'mdui-text-color-blue', 333 | text: '校验' 334 | }, 335 | 336 | queuedForChecking: { 337 | icon: 'swap_vert', 338 | color: 'mdui-text-color-green', 339 | text: '列队校验' 340 | }, 341 | 342 | checkingResumeData: { 343 | icon: 'autorenew', 344 | color: 'mdui-text-color-teal', 345 | text: '校验恢复数据' 346 | }, 347 | 348 | moving: { 349 | icon: 'hdr_strong', 350 | color: 'mdui-text-color-teal', 351 | text: '移动' 352 | }, 353 | 354 | missingFiles: { 355 | icon: 'warning', 356 | color: 'mdui-text-color-orange', 357 | text: '丢失文件' 358 | }, 359 | 360 | weizhi: { 361 | icon: 'help_outline', 362 | color: 'mdui-text-color-red', 363 | text: '未知' 364 | } 365 | }; 366 | 367 | const tabList = { 368 | all: { 369 | text: '全部' 370 | }, 371 | downloading: { 372 | text: '下载' 373 | }, 374 | seeding: { 375 | text: '做种' 376 | }, 377 | completed: { 378 | text: '完成' 379 | }, 380 | resumed: { 381 | text: '进行中' 382 | }, 383 | paused: { 384 | text: '暂停' 385 | }, 386 | active: { 387 | text: '活动' 388 | }, 389 | inactive: { 390 | text: '非活动' 391 | }, 392 | errored: { 393 | text: '错误' 394 | } 395 | }; -------------------------------------------------------------------------------- /js/extent.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 全文替换 3 | * @param FindText 4 | * @param RepText 5 | * @returns {string} 6 | */ 7 | String.prototype.replaceAll = function (FindText, RepText) { 8 | return this.split(FindText).join(RepText); 9 | }; 10 | 11 | //给日期对象原型添加一个方法 12 | Date.prototype.format = function (format) { 13 | let date = { 14 | "M+": this.getMonth() + 1, 15 | "d+": this.getDate(), 16 | "h+": this.getHours(), 17 | "m+": this.getMinutes(), 18 | "s+": this.getSeconds(), 19 | "q+": Math.floor((this.getMonth() + 3) / 3), 20 | "S+": this.getMilliseconds() 21 | }; 22 | if (/(y+)/i.test(format)) { 23 | format = format.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length)); 24 | } 25 | for (let k in date) { 26 | if (new RegExp("(" + k + ")").test(format)) { 27 | format = format.replace(RegExp.$1, RegExp.$1.length === 1 ? 28 | date[k] : ("00" + date[k]).substr(("" + date[k]).length)); 29 | } 30 | } 31 | return format; 32 | }; 33 | 34 | 35 | 36 | //数组功能扩展 37 | //数组迭代函数 38 | Array.prototype.each = function (fn) { 39 | fn = fn || Function.K; 40 | var a = []; 41 | var args = Array.prototype.slice.call(arguments, 1); 42 | for (var i = 0; i < this.length; i++) { 43 | var res = fn.apply(this, [this[i], i].concat(args)); 44 | if (res != null) a.push(res); 45 | } 46 | return a; 47 | }; 48 | 49 | //数组是否包含指定元素 50 | Array.prototype.contains = function (suArr) { 51 | for (var i = 0; i < this.length; i++) { 52 | if (this[i] === suArr) { 53 | return true; 54 | } 55 | } 56 | return false; 57 | }; 58 | 59 | //不重复元素构成的数组 60 | Array.prototype.uniquelize = function () { 61 | var ra = new Array(); 62 | for (var i = 0; i < this.length; i++) { 63 | if (!ra.contains(this[i])) { 64 | ra.push(this[i]); 65 | } 66 | } 67 | return ra; 68 | }; 69 | 70 | //两个数组的交集 71 | Array.intersect = function (a, b) { 72 | return a.uniquelize().each(function (o) { 73 | return b.contains(o) ? o : null 74 | }); 75 | }; 76 | 77 | //两个数组的差集 78 | Array.minus = function (a, b) { 79 | return a.uniquelize().each(function (o) { 80 | return b.contains(o) ? null : o 81 | }); 82 | }; 83 | 84 | //两个数组的补集 85 | Array.complement = function (a, b) { 86 | return Array.minus(Array.union(a, b), Array.intersect(a, b)); 87 | }; 88 | 89 | //两个数组并集 90 | Array.union = function (a, b) { 91 | return a.concat(b).uniquelize(); 92 | }; 93 | 94 | 95 | //获取cookie、 96 | function getCookie(name) { 97 | var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); 98 | if ((arr = document.cookie.match(reg))) 99 | return (arr[2]); 100 | else 101 | return null; 102 | } 103 | 104 | //设置cookie,增加到vue实例方便全局调用 105 | function setCookie(c_name, value, expiredays) { 106 | var exdate = new Date(); 107 | exdate.setDate(exdate.getDate() + expiredays); 108 | document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()); 109 | } 110 | 111 | //删除cookie 112 | function delCookie(name) { 113 | var exp = new Date(); 114 | exp.setTime(exp.getTime() - 1); 115 | var cval = getCookie(name); 116 | if (cval != null) 117 | document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString(); 118 | } -------------------------------------------------------------------------------- /js/info.js: -------------------------------------------------------------------------------- 1 | let title = decodeURIComponent(getQueryVariable('title'));//标题 2 | $$("#_title").html(title);//设置标题 3 | document.title = title+" - 种子详细信息"; 4 | 5 | let HASH = getQueryVariable('hash');//获取 HASH 值 6 | HASH = HASH ? HASH : ''; 7 | 8 | var tabVM = new Vue({ 9 | el: '#tab-contents', 10 | data: { 11 | tabID: -1, 12 | info: { 13 | share_ratio: 0, 14 | piece_size: 0, 15 | save_path: 'NaN', 16 | pieces_num: 'NaN', 17 | comment: 'None' 18 | }, 19 | tracker: [ 20 | { 21 | "msg": "N/A", 22 | "num_downloaded": 0, 23 | "num_leeches": 0, 24 | "num_peers": 0, 25 | "num_seeds": 0, 26 | "status": 0, 27 | "tier": "", 28 | "url": "** [DHT] **" 29 | } 30 | ], 31 | hash: 'None', 32 | tabTimer: {}, 33 | content: {},//内容数据 34 | userIPs: [],//用户IP 35 | }, 36 | beforeMount() { 37 | this.tabID = 0; 38 | 39 | this.infoInterval(); 40 | this.trackerInterval(); 41 | this.contentInterval(); 42 | }, 43 | methods: { 44 | //API 请求 45 | requestInfoAPI(url, callback) { 46 | $$.ajax({ 47 | url: url, 48 | data: { 49 | hash: HASH 50 | }, 51 | dataType: 'json', 52 | success(res) { 53 | if (typeof callback === "function") { 54 | return callback(res); 55 | } 56 | }, 57 | }); 58 | 59 | this.$nextTick(function () { 60 | mdui.mutation(); 61 | }) 62 | }, 63 | 64 | toFixedd(num, d = 2) { 65 | return num.toFixed(2); 66 | }, 67 | 68 | //信息 数据更新 69 | infoInterval() { 70 | this.requestInfoAPI(API + torrentsProperties, function (res) { 71 | tabVM.hash = HASH; 72 | tabVM.info = res; 73 | }); 74 | }, 75 | 76 | //Tracker 服务器列表 77 | trackerInterval() { 78 | this.requestInfoAPI(API + torrentsTrackers, function (res) { 79 | tabVM.tracker = res; 80 | }); 81 | }, 82 | 83 | //内容 84 | contentInterval() { 85 | this.requestInfoAPI(API + torrentsFiles, function (res) { 86 | tabVM.content = res; 87 | }); 88 | }, 89 | 90 | num_na(num) { 91 | return num < 0 ? 'N/A' : num; 92 | }, 93 | 94 | /** 95 | * 调整文件优先顺序,我也不太懂是不是这个意思,反正 API 文档里是这么写的 96 | * @param id 97 | * @param event 98 | * @returns {Snackbar|Snackbar|boolean} 99 | */ 100 | filePrio(id, event) { 101 | this.content[id]['priority'] = !this.content[id]['priority']; 102 | flag = this.content[id]['priority'] ? 1 : 0; 103 | 104 | $$.ajax({ 105 | url: API + torrentsFilePrio, 106 | data: { 107 | hash: HASH, 108 | id: id, 109 | priority: flag 110 | }, 111 | header: requestHeader, 112 | statusCode: { 113 | 200: function (text) { 114 | if (!text) { 115 | mdui.snackbar({ 116 | message: '调整优先顺序成功' 117 | }); 118 | } else { 119 | mdui.snackbar({ 120 | message: text 121 | }); 122 | } 123 | }, 124 | 400: function () { 125 | mdui.snackbar({ 126 | message: '调整优先顺序失败,原因:优先顺序无效' 127 | }); 128 | }, 129 | 404: function () { 130 | mdui.snackbar({ 131 | message: '该种子为找到,请刷新页面' 132 | }); 133 | }, 134 | 409: function () { 135 | mdui.snackbar({ 136 | message: '种子文件尚未下载' 137 | }); 138 | } 139 | }, 140 | error() { 141 | return mdui.snackbar({ 142 | message: '出现未知的错误,请重试' 143 | }); 144 | } 145 | }); 146 | 147 | // console.log(id); 148 | 149 | if (event.preventDefault) event.preventDefault(); //标准技术 150 | if (event.returnValue) event.returnValue = false; //IE 151 | return false;//用于处理使用对象属性注册的处理程序 152 | } 153 | }, 154 | computed: {}, 155 | watch: { 156 | //监视 tabID 值的变化,变化了会触发此事件 157 | tabID() { 158 | //遍历清理有关 tab 任务定时器 159 | for (let item in this.tabTimer) { 160 | clearInterval(this.tabTimer[item]); 161 | } 162 | 163 | if (this.tabID === 0) { 164 | this.tabTimer['info'] = setInterval(this.infoInterval, 1000); 165 | } else if (this.tabID === 1) { 166 | this.tabTimer['tracker'] = setInterval(this.trackerInterval, 4000); 167 | } else if (this.tabID === 4) { 168 | this.tabTimer['content'] = setInterval(this.contentInterval, 4000); 169 | } 170 | 171 | this.$nextTick(function () { 172 | mdui.mutation(); 173 | }); 174 | }, 175 | tracker() { 176 | mdui.mutation(); 177 | } 178 | } 179 | }); 180 | 181 | /** 182 | * 用户 - 表格 183 | */ 184 | layui.use(['table'], function () { 185 | var table = layui.table; 186 | //执行渲染 187 | table.render({ 188 | id: 'userTable', 189 | elem: '#userTable' //指定原始表格元素选择器(推荐id选择器) 190 | , height: 600 //容器高度 191 | , toolbar: '#tableToolbar' 192 | , defaultToolbar: ["filter", "exports", "print"] 193 | , cols: [[ //表头 194 | // { 195 | // field: '国家', title: '', width: 41, templet: function (d) { 196 | // return '
'; 197 | // } 198 | // }, 199 | { 200 | field: 'ip', title: 'IP', sort: true, minWidth: 120 201 | }, 202 | {field: 'port', title: '端口', sort: true, minWidth: 50}, 203 | {field: 'client', title: '客户端', sort: true, minWidth: 90}, 204 | { 205 | field: 'dl_speed', title: '下载速度', sort: true, minWidth: 100, templet: function (d) { 206 | return tabVM.getFileSize(d.dl_speed).join(' ') + '/s'; 207 | } 208 | }, 209 | { 210 | field: 'up_speed', title: '上传速度', sort: true, minWidth: 100, templet: function (d) { 211 | return tabVM.getFileSize(d.up_speed).join(' ') + '/s'; 212 | } 213 | }, 214 | { 215 | field: 'downloaded', title: '已下载', sort: true, minWidth: 90, templet: function (d) { 216 | return tabVM.getFileSize(d.downloaded).join(''); 217 | } 218 | }, 219 | { 220 | field: 'uploaded', title: '已上传', sort: true, minWidth: 90, templet: function (d) { 221 | return tabVM.getFileSize(d.uploaded).join(''); 222 | } 223 | }, 224 | {field: 'connection', title: '连接', sort: true, minWidth: 60}, 225 | {field: 'flags', title: '标识', sort: true, minWidth: 60}, 226 | {field: 'relevance', title: '文件关联', sort: true, minWidth: 80}, 227 | {field: 'files', title: '文件', sort: true, minWidth: 200}, 228 | ]] 229 | , url: API + torrentPeers + '?hash=' + HASH 230 | , parseData: function (res) { //res 即为原始返回的数据 231 | let data = function (peers) { 232 | let tmp = [], tmp_, ips = []; 233 | 234 | for (let item in peers) { 235 | tmp_ = peers[item]; 236 | ips.push(tmp_['ip']); 237 | } 238 | 239 | for (let item in peers) { 240 | tmp_ = peers[item]; 241 | tmp_.user = item; 242 | // tmp_.country = res.data[tmp_['ip']]['country']['code']; 243 | 244 | ips.push(tmp_['ip']); 245 | tmp.push(tmp_); 246 | } 247 | return tmp; 248 | }; 249 | 250 | return { 251 | "code": 0, //解析接口状态 252 | "msg": "ok", //解析提示文本 253 | "count": 2, //解析数据长度 254 | "data": data(res.peers) 255 | }; 256 | } 257 | }); 258 | }); 259 | 260 | 261 | //事件委托 262 | //阻止冒泡,阻止点击内容时选中复选框 263 | $$(document).on("click", "#tab-content .mdui-list-item-content", function (e) { 264 | var event = event || window.event; //用于IE 265 | if (event.preventDefault) event.preventDefault(); //标准技术 266 | if (event.returnValue) event.returnValue = false; //IE 267 | return false;//用于处理使用对象属性注册的处理程序 268 | }); 269 | 270 | 271 | //Tab 切换事件监听 272 | $$("#tab-info").on('change.mdui.tab', function (event) { 273 | tabVM.tabID = event._detail.index; 274 | }); 275 | 276 | 277 | /** 278 | * 获取 GET 参数 279 | * @param variable 280 | * @returns {string|boolean} 281 | */ 282 | function getQueryVariable(variable) { 283 | var query = window.location.search.substring(1); 284 | var vars = query.split("&"); 285 | for (var i = 0; i < vars.length; i++) { 286 | var pair = vars[i].split("="); 287 | if (pair[0] === variable) { 288 | return pair[1]; 289 | } 290 | } 291 | return false; 292 | } -------------------------------------------------------------------------------- /js/vue-clipboard.min.js: -------------------------------------------------------------------------------- 1 | (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}")}catch(e){console&&console.log(e)}}!function(e){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(e,0);else{var t=function(){document.removeEventListener("DOMContentLoaded",t,!1),e()};document.addEventListener("DOMContentLoaded",t,!1)}else document.attachEvent&&(o=e,i=c.document,l=!1,(a=function(){try{i.documentElement.doScroll("left")}catch(e){return void setTimeout(a,50)}n()})(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,n())});function n(){l||(l=!0,o())}var o,i,l,a}(function(){var e,t,n,o,i,l;(e=document.createElement("div")).innerHTML=a,a=null,(t=e.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",n=t,(o=document.body).firstChild?(i=n,(l=o.firstChild).parentNode.insertBefore(i,l)):o.appendChild(n))})}(window); -------------------------------------------------------------------------------- /lib/iconfont/iconfont.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | Created by iconfont 9 | 10 | 11 | 12 | 13 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /lib/layui/css/layui.mobile.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}html{font:12px 'Helvetica Neue','PingFang SC',STHeitiSC-Light,Helvetica,Arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}a,button,input{-webkit-tap-highlight-color:rgba(255,0,0,0)}a{text-decoration:none;background:0 0}a:active,a:hover{outline:0}table{border-collapse:collapse;border-spacing:0}li{list-style:none}b,strong{font-weight:700}h1,h2,h3,h4,h5,h6{font-weight:500}address,cite,dfn,em,var{font-style:normal}dfn{font-style:italic}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}img{border:0;vertical-align:bottom}.layui-inline,input,label{vertical-align:middle}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;outline:0}button,select{text-transform:none}select{-webkit-appearance:none;border:none}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=1.0.7);src:url(../font/iconfont.eot?v=1.0.7#iefix) format('embedded-opentype'),url(../font/iconfont.woff?v=1.0.7) format('woff'),url(../font/iconfont.ttf?v=1.0.7) format('truetype'),url(../font/iconfont.svg?v=1.0.7#iconfont) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-box,.layui-box *{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}.layui-border-box,.layui-border-box *{-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layui-inline{position:relative;display:inline-block;*display:inline;*zoom:1}.layui-edge,.layui-upload-iframe{position:absolute;width:0;height:0}.layui-edge{border-style:dashed;border-color:transparent;overflow:hidden}.layui-elip{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-disabled,.layui-disabled:active{background-color:#d2d2d2!important;color:#fff!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-upload-iframe{border:0;visibility:hidden}.layui-upload-enter{border:1px solid #009E94;background-color:#009E94;color:#fff;-webkit-transform:scale(1.1);transform:scale(1.1)}@-webkit-keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.layui-m-anim-scale{animation-name:layui-m-anim-scale;-webkit-animation-name:layui-m-anim-scale}@-webkit-keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.layui-m-anim-up{-webkit-animation-name:layui-m-anim-up;animation-name:layui-m-anim-up}@-webkit-keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-left{-webkit-animation-name:layui-m-anim-left;animation-name:layui-m-anim-left}@-webkit-keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-right{-webkit-animation-name:layui-m-anim-right;animation-name:layui-m-anim-right}@-webkit-keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.layui-m-anim-lout{-webkit-animation-name:layui-m-anim-lout;animation-name:layui-m-anim-lout}@-webkit-keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}.layui-m-anim-rout{-webkit-animation-name:layui-m-anim-rout;animation-name:layui-m-anim-rout}.layui-m-layer{position:relative;z-index:19891014}.layui-m-layer *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.layui-m-layermain,.layui-m-layershade{position:fixed;left:0;top:0;width:100%;height:100%}.layui-m-layershade{background-color:rgba(0,0,0,.7);pointer-events:auto}.layui-m-layermain{display:table;font-family:Helvetica,arial,sans-serif;pointer-events:none}.layui-m-layermain .layui-m-layersection{display:table-cell;vertical-align:middle;text-align:center}.layui-m-layerchild{position:relative;display:inline-block;text-align:left;background-color:#fff;font-size:14px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,.1);pointer-events:auto;-webkit-overflow-scrolling:touch;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}.layui-m-layer0 .layui-m-layerchild{width:90%;max-width:640px}.layui-m-layer1 .layui-m-layerchild{border:none;border-radius:0}.layui-m-layer2 .layui-m-layerchild{width:auto;max-width:260px;min-width:40px;border:none;background:0 0;box-shadow:none;color:#fff}.layui-m-layerchild h3{padding:0 10px;height:60px;line-height:60px;font-size:16px;font-weight:400;border-radius:5px 5px 0 0;text-align:center}.layui-m-layerbtn span,.layui-m-layerchild h3{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-m-layercont{padding:50px 30px;line-height:22px;text-align:center}.layui-m-layer1 .layui-m-layercont{padding:0;text-align:left}.layui-m-layer2 .layui-m-layercont{text-align:center;padding:0;line-height:0}.layui-m-layer2 .layui-m-layercont i{width:25px;height:25px;margin-left:8px;display:inline-block;background-color:#fff;border-radius:100%;-webkit-animation:layui-m-anim-loading 1.4s infinite ease-in-out;animation:layui-m-anim-loading 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-m-layerbtn,.layui-m-layerbtn span{position:relative;text-align:center;border-radius:0 0 5px 5px}.layui-m-layer2 .layui-m-layercont p{margin-top:20px}@-webkit-keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}@keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.layui-m-layer2 .layui-m-layercont i:first-child{margin-left:0;-webkit-animation-delay:-.32s;animation-delay:-.32s}.layui-m-layer2 .layui-m-layercont i.layui-m-layerload{-webkit-animation-delay:-.16s;animation-delay:-.16s}.layui-m-layer2 .layui-m-layercont>div{line-height:22px;padding-top:7px;margin-bottom:20px;font-size:14px}.layui-m-layerbtn{display:box;display:-moz-box;display:-webkit-box;width:100%;height:50px;line-height:50px;font-size:0;border-top:1px solid #D0D0D0;background-color:#F2F2F2}.layui-m-layerbtn span{display:block;-moz-box-flex:1;box-flex:1;-webkit-box-flex:1;font-size:14px;cursor:pointer}.layui-m-layerbtn span[yes]{color:#40AFFE}.layui-m-layerbtn span[no]{border-right:1px solid #D0D0D0;border-radius:0 0 0 5px}.layui-m-layerbtn span:active{background-color:#F6F6F6}.layui-m-layerend{position:absolute;right:7px;top:10px;width:30px;height:30px;border:0;font-weight:400;background:0 0;cursor:pointer;-webkit-appearance:none;font-size:30px}.layui-m-layerend::after,.layui-m-layerend::before{position:absolute;left:5px;top:15px;content:'';width:18px;height:1px;background-color:#999;transform:rotate(45deg);-webkit-transform:rotate(45deg);border-radius:3px}.layui-m-layerend::after{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}body .layui-m-layer .layui-m-layer-footer{position:fixed;width:95%;max-width:100%;margin:0 auto;left:0;right:0;bottom:10px;background:0 0}.layui-m-layer-footer .layui-m-layercont{padding:20px;border-radius:5px 5px 0 0;background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn{display:block;height:auto;background:0 0;border-top:none}.layui-m-layer-footer .layui-m-layerbtn span{background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn span[no]{color:#FD482C;border-top:1px solid #c2c2c2;border-radius:0 0 5px 5px}.layui-m-layer-footer .layui-m-layerbtn span[yes]{margin-top:10px;border-radius:5px}body .layui-m-layer .layui-m-layer-msg{width:auto;max-width:90%;margin:0 auto;bottom:-150px;background-color:rgba(0,0,0,.7);color:#fff}.layui-m-layer-msg .layui-m-layercont{padding:10px 20px} -------------------------------------------------------------------------------- /lib/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /lib/layui/css/modules/laydate/default/laydate.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | .laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:laydate-upbit;animation-name:laydate-upbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@-webkit-keyframes laydate-upbit{from{-webkit-transform:translate3d(0,20px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes laydate-upbit{from{transform:translate3d(0,20px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-0 .laydate-next-m,.layui-laydate-range .laydate-main-list-0 .laydate-next-y,.layui-laydate-range .laydate-main-list-1 .laydate-prev-m,.layui-laydate-range .laydate-main-list-1 .laydate-prev-y{display:none}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#00F7DE}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eaeaea;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px} -------------------------------------------------------------------------------- /lib/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /lib/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /lib/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /lib/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /lib/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /lib/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/font/iconfont.eot -------------------------------------------------------------------------------- /lib/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /lib/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/font/iconfont.woff -------------------------------------------------------------------------------- /lib/layui/font/iconfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/font/iconfont.woff2 -------------------------------------------------------------------------------- /lib/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/0.gif -------------------------------------------------------------------------------- /lib/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/1.gif -------------------------------------------------------------------------------- /lib/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/10.gif -------------------------------------------------------------------------------- /lib/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/11.gif -------------------------------------------------------------------------------- /lib/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/12.gif -------------------------------------------------------------------------------- /lib/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/13.gif -------------------------------------------------------------------------------- /lib/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/14.gif -------------------------------------------------------------------------------- /lib/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/15.gif -------------------------------------------------------------------------------- /lib/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/16.gif -------------------------------------------------------------------------------- /lib/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/17.gif -------------------------------------------------------------------------------- /lib/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/18.gif -------------------------------------------------------------------------------- /lib/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/19.gif -------------------------------------------------------------------------------- /lib/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/2.gif -------------------------------------------------------------------------------- /lib/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/20.gif -------------------------------------------------------------------------------- /lib/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/21.gif -------------------------------------------------------------------------------- /lib/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/22.gif -------------------------------------------------------------------------------- /lib/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/23.gif -------------------------------------------------------------------------------- /lib/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/24.gif -------------------------------------------------------------------------------- /lib/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/25.gif -------------------------------------------------------------------------------- /lib/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/26.gif -------------------------------------------------------------------------------- /lib/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/27.gif -------------------------------------------------------------------------------- /lib/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/28.gif -------------------------------------------------------------------------------- /lib/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/29.gif -------------------------------------------------------------------------------- /lib/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/3.gif -------------------------------------------------------------------------------- /lib/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/30.gif -------------------------------------------------------------------------------- /lib/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/31.gif -------------------------------------------------------------------------------- /lib/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/32.gif -------------------------------------------------------------------------------- /lib/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/33.gif -------------------------------------------------------------------------------- /lib/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/34.gif -------------------------------------------------------------------------------- /lib/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/35.gif -------------------------------------------------------------------------------- /lib/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/36.gif -------------------------------------------------------------------------------- /lib/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/37.gif -------------------------------------------------------------------------------- /lib/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/38.gif -------------------------------------------------------------------------------- /lib/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/39.gif -------------------------------------------------------------------------------- /lib/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/4.gif -------------------------------------------------------------------------------- /lib/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/40.gif -------------------------------------------------------------------------------- /lib/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/41.gif -------------------------------------------------------------------------------- /lib/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/42.gif -------------------------------------------------------------------------------- /lib/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/43.gif -------------------------------------------------------------------------------- /lib/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/44.gif -------------------------------------------------------------------------------- /lib/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/45.gif -------------------------------------------------------------------------------- /lib/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/46.gif -------------------------------------------------------------------------------- /lib/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/47.gif -------------------------------------------------------------------------------- /lib/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/48.gif -------------------------------------------------------------------------------- /lib/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/49.gif -------------------------------------------------------------------------------- /lib/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/5.gif -------------------------------------------------------------------------------- /lib/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/50.gif -------------------------------------------------------------------------------- /lib/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/51.gif -------------------------------------------------------------------------------- /lib/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/52.gif -------------------------------------------------------------------------------- /lib/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/53.gif -------------------------------------------------------------------------------- /lib/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/54.gif -------------------------------------------------------------------------------- /lib/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/55.gif -------------------------------------------------------------------------------- /lib/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/56.gif -------------------------------------------------------------------------------- /lib/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/57.gif -------------------------------------------------------------------------------- /lib/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/58.gif -------------------------------------------------------------------------------- /lib/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/59.gif -------------------------------------------------------------------------------- /lib/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/6.gif -------------------------------------------------------------------------------- /lib/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/60.gif -------------------------------------------------------------------------------- /lib/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/61.gif -------------------------------------------------------------------------------- /lib/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/62.gif -------------------------------------------------------------------------------- /lib/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/63.gif -------------------------------------------------------------------------------- /lib/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/64.gif -------------------------------------------------------------------------------- /lib/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/65.gif -------------------------------------------------------------------------------- /lib/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/66.gif -------------------------------------------------------------------------------- /lib/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/67.gif -------------------------------------------------------------------------------- /lib/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/68.gif -------------------------------------------------------------------------------- /lib/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/69.gif -------------------------------------------------------------------------------- /lib/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/7.gif -------------------------------------------------------------------------------- /lib/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/70.gif -------------------------------------------------------------------------------- /lib/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/71.gif -------------------------------------------------------------------------------- /lib/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/8.gif -------------------------------------------------------------------------------- /lib/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PrintNow/MD-qBittorrent-web-ui/5c76fffcdf83a7ed49be1f1206b77f7002b2888c/lib/layui/images/face/9.gif -------------------------------------------------------------------------------- /lib/layui/lay/modules/carousel.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
    ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /lib/layui/lay/modules/colorpicker.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.jquery,o={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var o=this;return o.config=i.extend({},o.config,e),o},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},r=function(){var e=this,i=e.config;return{config:i}},t="colorpicker",n="layui-show",l="layui-colorpicker",c=".layui-colorpicker-main",a="layui-icon-down",s="layui-icon-close",f="layui-colorpicker-trigger-span",d="layui-colorpicker-trigger-i",u="layui-colorpicker-side",p="layui-colorpicker-side-slider",g="layui-colorpicker-basis",v="layui-colorpicker-alpha-bgcolor",h="layui-colorpicker-alpha-slider",m="layui-colorpicker-basis-cursor",b="layui-colorpicker-main-input",k=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),t=r-o;return i.b=r,i.s=0!=r?255*t/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/t:e.g==r?i.h=2+(e.b-e.r)/t:i.h=4+(e.r-e.g)/t:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},y=function(e){var e=e.indexOf("#")>-1?e.substring(1):e;if(3==e.length){var i=e.split("");e=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]}e=parseInt(e,16);var o={r:e>>16,g:(65280&e)>>8,b:255&e};return k(o)},x=function(e){var i={},o=e.h,r=255*e.s/100,t=255*e.b/100;if(0==r)i.r=i.g=i.b=t;else{var n=t,l=(255-r)*t/255,c=(n-l)*(o%60)/60;360==o&&(o=0),o<60?(i.r=n,i.b=l,i.g=l+c):o<120?(i.g=n,i.b=l,i.r=n-c):o<180?(i.g=n,i.r=l,i.b=l+c):o<240?(i.b=n,i.r=l,i.g=n-c):o<300?(i.b=n,i.g=l,i.r=l+c):o<360?(i.r=n,i.g=l,i.b=n-c):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}},C=function(e){var o=x(e),r=[o.r.toString(16),o.g.toString(16),o.b.toString(16)];return i.each(r,function(e,i){1==i.length&&(r[e]="0"+i)}),r.join("")},P=function(e){var i=/[0-9]{1,3}/g,o=e.match(i)||[];return{r:o[0],g:o[1],b:o[2]}},B=i(window),w=i(document),D=function(e){var r=this;r.index=++o.index,r.config=i.extend({},r.config,o.config,e),r.render()};D.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},D.prototype.render=function(){var e=this,o=e.config,r=i(['
',"",'3&&(o.alpha&&"rgb"==o.format||(e="#"+C(k(P(o.color))))),"background: "+e):e}()+'">','',"","","
"].join("")),t=i(o.elem);o.size&&r.addClass("layui-colorpicker-"+o.size),t.addClass("layui-inline").html(e.elemColorBox=r),e.color=e.elemColorBox.find("."+f)[0].style.background,e.events()},D.prototype.renderPicker=function(){var e=this,o=e.config,r=e.elemColorBox[0],t=e.elemPicker=i(['
','
','
','
','
','
',"
",'
','
',"
","
",'
','
','
',"
","
",function(){if(o.predefine){var e=['
'];return layui.each(o.colors,function(i,o){e.push(['
','
',"
"].join(""))}),e.push("
"),e.join("")}return""}(),'
','
','',"
",'
','','',"","
"].join(""));e.elemColorBox.find("."+f)[0];i(c)[0]&&i(c).data("index")==e.index?e.removePicker(D.thisElemInd):(e.removePicker(D.thisElemInd),i("body").append(t)),D.thisElemInd=e.index,D.thisColor=r.style.background,e.position(),e.pickerEvents()},D.prototype.removePicker=function(e){var o=this;o.config;return i("#layui-colorpicker"+(e||o.index)).remove(),o},D.prototype.position=function(){var e=this,i=e.config,o=e.bindElem||e.elemColorBox[0],r=e.elemPicker[0],t=o.getBoundingClientRect(),n=r.offsetWidth,l=r.offsetHeight,c=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},a=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},s=5,f=t.left,d=t.bottom;f-=(n-o.offsetWidth)/2,d+=s,f+n+s>a("width")?f=a("width")-n-s:fa()&&(d=t.top>l?t.top-l:a()-l,d-=2*s),i.position&&(r.style.position=i.position),r.style.left=f+("fixed"===i.position?0:c(1))+"px",r.style.top=d+("fixed"===i.position?0:c())+"px"},D.prototype.val=function(){var e=this,i=(e.config,e.elemColorBox.find("."+f)),o=e.elemPicker.find("."+b),r=i[0],t=r.style.backgroundColor;if(t){var n=k(P(t)),l=i.attr("lay-type");if(e.select(n.h,n.s,n.b),"torgb"===l&&o.find("input").val(t),"rgba"===l){var c=P(t);if(3==(t.match(/[0-9]{1,3}/g)||[]).length)o.find("input").val("rgba("+c.r+", "+c.g+", "+c.b+", 1)"),e.elemPicker.find("."+h).css("left",280);else{o.find("input").val(t);var a=280*t.slice(t.lastIndexOf(",")+1,t.length-1);e.elemPicker.find("."+h).css("left",a)}e.elemPicker.find("."+v)[0].style.background="linear-gradient(to right, rgba("+c.r+", "+c.g+", "+c.b+", 0), rgb("+c.r+", "+c.g+", "+c.b+"))"}}else e.select(0,100,100),o.find("input").val(""),e.elemPicker.find("."+v)[0].style.background="",e.elemPicker.find("."+h).css("left",280)},D.prototype.side=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=r.attr("lay-type"),n=e.elemPicker.find("."+u),l=e.elemPicker.find("."+p),c=e.elemPicker.find("."+g),y=e.elemPicker.find("."+m),C=e.elemPicker.find("."+v),w=e.elemPicker.find("."+h),D=l[0].offsetTop/180*360,E=100-(y[0].offsetTop+3)/180*100,H=(y[0].offsetLeft+3)/260*100,W=Math.round(w[0].offsetLeft/280*100)/100,j=e.elemColorBox.find("."+d),F=e.elemPicker.find(".layui-colorpicker-pre").children("div"),L=function(i,n,l,c){e.select(i,n,l);var f=x({h:i,s:n,b:l});if(j.addClass(a).removeClass(s),r[0].style.background="rgb("+f.r+", "+f.g+", "+f.b+")","torgb"===t&&e.elemPicker.find("."+b).find("input").val("rgb("+f.r+", "+f.g+", "+f.b+")"),"rgba"===t){var d=0;d=280*c,w.css("left",d),e.elemPicker.find("."+b).find("input").val("rgba("+f.r+", "+f.g+", "+f.b+", "+c+")"),r[0].style.background="rgba("+f.r+", "+f.g+", "+f.b+", "+c+")",C[0].style.background="linear-gradient(to right, rgba("+f.r+", "+f.g+", "+f.b+", 0), rgb("+f.r+", "+f.g+", "+f.b+"))"}o.change&&o.change(e.elemPicker.find("."+b).find("input").val())},M=i(['
t&&(r=t);var l=r/180*360;D=l,L(l,H,E,W),e.preventDefault()};Y(r),e.preventDefault()}),n.on("click",function(e){var o=e.clientY-i(this).offset().top;o<0&&(o=0),o>this.offsetHeight&&(o=this.offsetHeight);var r=o/180*360;D=r,L(r,H,E,W),e.preventDefault()}),y.on("mousedown",function(e){var i=this.offsetTop,o=this.offsetLeft,r=e.clientY,t=e.clientX,n=function(e){var n=i+(e.clientY-r),l=o+(e.clientX-t),a=c[0].offsetHeight-3,s=c[0].offsetWidth-3;n<-3&&(n=-3),n>a&&(n=a),l<-3&&(l=-3),l>s&&(l=s);var f=(l+3)/260*100,d=100-(n+3)/180*100;E=d,H=f,L(D,f,d,W),e.preventDefault()};layui.stope(e),Y(n),e.preventDefault()}),c.on("mousedown",function(e){var o=e.clientY-i(this).offset().top-3+B.scrollTop(),r=e.clientX-i(this).offset().left-3+B.scrollLeft();o<-3&&(o=-3),o>this.offsetHeight-3&&(o=this.offsetHeight-3),r<-3&&(r=-3),r>this.offsetWidth-3&&(r=this.offsetWidth-3);var t=(r+3)/260*100,n=100-(o+3)/180*100;E=n,H=t,L(D,t,n,W),e.preventDefault(),y.trigger(e,"mousedown")}),w.on("mousedown",function(e){var i=this.offsetLeft,o=e.clientX,r=function(e){var r=i+(e.clientX-o),t=C[0].offsetWidth;r<0&&(r=0),r>t&&(r=t);var n=Math.round(r/280*100)/100;W=n,L(D,H,E,n),e.preventDefault()};Y(r),e.preventDefault()}),C.on("click",function(e){var o=e.clientX-i(this).offset().left;o<0&&(o=0),o>this.offsetWidth&&(o=this.offsetWidth);var r=Math.round(o/280*100)/100;W=r,L(D,H,E,r),e.preventDefault()}),F.each(function(){i(this).on("click",function(){i(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e,o=this.style.backgroundColor,r=k(P(o)),t=o.slice(o.lastIndexOf(",")+1,o.length-1);D=r.h,H=r.s,E=r.b,3==(o.match(/[0-9]{1,3}/g)||[]).length&&(t=1),W=t,e=280*t,L(r.h,r.s,r.b,t)})})},D.prototype.select=function(e,i,o,r){var t=this,n=(t.config,C({h:e,s:100,b:100})),l=C({h:e,s:i,b:o}),c=e/360*180,a=180-o/100*180-3,s=i/100*260-3;t.elemPicker.find("."+p).css("top",c),t.elemPicker.find("."+g)[0].style.background="#"+n,t.elemPicker.find("."+m).css({top:a,left:s}),"change"!==r&&t.elemPicker.find("."+b).find("input").val("#"+l)},D.prototype.pickerEvents=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=e.elemPicker.find("."+b+" input"),n={clear:function(i){r[0].style.background="",e.elemColorBox.find("."+d).removeClass(a).addClass(s),e.color="",o.done&&o.done(""),e.removePicker()},confirm:function(i,n){var l=t.val(),c=l,f={};if(l.indexOf(",")>-1){if(f=k(P(l)),e.select(f.h,f.s,f.b),r[0].style.background=c="#"+C(f),(l.match(/[0-9]{1,3}/g)||[]).length>3&&"rgba"===r.attr("lay-type")){var u=280*l.slice(l.lastIndexOf(",")+1,l.length-1);e.elemPicker.find("."+h).css("left",u),r[0].style.background=l,c=l}}else f=y(l),r[0].style.background=c="#"+C(f),e.elemColorBox.find("."+d).removeClass(s).addClass(a);return"change"===n?(e.select(f.h,f.s,f.b,n),void(o.change&&o.change(c))):(e.color=l,o.done&&o.done(l),void e.removePicker())}};e.elemPicker.on("click","*[colorpicker-events]",function(){var e=i(this),o=e.attr("colorpicker-events");n[o]&&n[o].call(this,e)}),t.on("keyup",function(e){var o=i(this);n.confirm.call(this,o,13===e.keyCode?null:"change")})},D.prototype.events=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f);e.elemColorBox.on("click",function(){e.renderPicker(),i(c)[0]&&(e.val(),e.side())}),o.elem[0]&&!e.elemColorBox[0].eventHandler&&(w.on("click",function(o){if(!i(o.target).hasClass(l)&&!i(o.target).parents("."+l)[0]&&!i(o.target).hasClass(c.replace(/\./g,""))&&!i(o.target).parents(c)[0]&&e.elemPicker){if(e.color){var t=k(P(e.color));e.select(t.h,t.s,t.b)}else e.elemColorBox.find("."+d).removeClass(a).addClass(s);r[0].style.background=e.color||"",e.removePicker()}}),B.on("resize",function(){return!(!e.elemPicker||!i(c)[0])&&void e.position()}),e.elemColorBox[0].eventHandler=!0)},o.render=function(e){var i=new D(e);return r.call(i)},e(t,o)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/element.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='
  • "+(i.title||"unnaming")+"
  • ";return s[0]?s.before(r):n.append(r),o.append('
    '+(i.content||"")+"
    "),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a(''),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append(''),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after(""+e+"")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html(''+l+"")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append(''+(l?"":"")+""),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),!i&&f.width()&&(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/form.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=this,n=t(r+'[lay-filter="'+e+'"]');return n.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value==t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e),a.getValue(e)},u.prototype.getValue=function(e,i){i=i||t(r+'[lay-filter="'+e+'"]').eq(0);var a={},n={},l=i.find("input,select,textarea");return layui.each(l,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];a[i]=0|a[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+a[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(n[t.name]=t.value)}}),n},u.prototype.render=function(e,i){var n=this,u=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(i,l){t(i.target).parent().hasClass(n)&&!l||(t("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(i,u,f){var y,p=t(this),m=i.find("."+n),k=m.find("input"),g=i.find("dl"),x=g.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=i.offset().top+i.outerHeight()+5-h.scrollTop(),t=g.outerHeight();b=p[0].selectedIndex,i.addClass(a+"ed"),x.removeClass(o),y=null,x.eq(b).addClass(s).siblings().removeClass(s),e+t>h.height()&&e>=t&&i.addClass(a+"up"),T()},w=function(e){i.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||$(k.val(),function(e){var i=p[0].selectedIndex;e&&(d=t(p[0].options[i]).html(),0===i&&d===k.attr("placeholder")&&(d=""),k.val(d||""))})},T=function(){var e=g.children("dd."+s);if(e[0]){var t=e.position().top,i=g.height(),a=e.height();t>i&&g.scrollTop(t+g.scrollTop()-i+a-5),t<0&&g.scrollTop(t+g.scrollTop()-5)}};m.on("click",function(e){i.hasClass(a+"ed")?w():(v(e,!0),C()),g.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var t=e.keyCode;9===t&&C()}).on("keydown",function(e){var t=e.keyCode;9===t&&w();var i=function(t,a){var n,l;e.preventDefault();var r=function(){var e=g.children("dd."+s);if(g.children("dd."+o)[0]&&"next"===t){var i=g.children("dd:not(."+o+",."+c+")"),n=i.eq(0).index();if(n>=0&&n无匹配项

    '):g.find("."+r).remove()},"keyup"),""===t&&g.find("."+r).remove(),void T())};f&&k.on("keyup",q).on("blur",function(i){var a=p[0].selectedIndex;e=k,d=t(p[0].options[a]).html(),0===a&&d===k.attr("placeholder")&&(d=""),setTimeout(function(){$(k.val(),function(e){d||k.val("")},"blur")},200)}),x.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerHTML||i:i,m=t(['
    ','
    ','','
    ','
    ',function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?t.push("
    "+a.label+"
    "):t.push('
    '+a.innerHTML+"
    "):t.push('
    '+(a.innerHTML||i)+"
    ")}),0===t.length&&t.push('
    没有选项
    '),t.join("")}(r.find("*"))+"
    ","
    "].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=u.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['
    ",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?""+n.title+"":"",''].join(""),_switch:""+((n.checked?s[0]:s[1])||"")+""};return t[r]||t.checkbox}(),"
    "].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["",""],a=u.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(i[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=t(['
    ',''+i[l.checked?0:1]+"","
    "+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"
    ","
    "].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=null,a=f.config.verify,s="layui-form-danger",o={},c=t(this),u=c.parents(r),d=u.find("*[lay-verify]"),v=c.parents("form")[0],h=c.attr("lay-filter");return layui.each(d,function(l,r){var o=t(this),c=o.attr("lay-verify").split("|"),u=o.attr("lay-verType"),d=o.val();if(o.removeClass(s),layui.each(c,function(t,l){var c,f="",v="function"==typeof a[l];if(a[l]){var c=v?f=a[l](d,r):!a[l][0].test(d);if(f=f||a[l][1],"required"===l&&(f=o.attr("lay-reqText")||f),c)return"tips"===u?i.tips(f,function(){return"string"==typeof o.attr("lay-ignore")||"select"!==r.tagName.toLowerCase()&&!/^checkbox|radio$/.test(r.type)?o:o.next()}(),{tips:1}):"alert"===u?i.alert(f,{title:"提示",shadeClose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||setTimeout(function(){r.focus()},7),o.addClass(s),e=!0}}),e)return e}),!e&&(o=f.getValue(null,u),layui.event.call(this,l,"submit("+h+")",{elem:this,form:v,field:o}))},f=new u,v=t(document),h=t(window);f.render(),v.on("reset",r,function(){var e=t(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/layedit.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define(["layer","form"],function(t){"use strict";var e=layui.$,i=layui.layer,a=layui.form,l=(layui.hint(),layui.device()),n="layedit",o="layui-show",r="layui-disabled",c=function(){var t=this;t.index=0,t.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hideTool:[],height:280}};c.prototype.set=function(t){var i=this;return e.extend(!0,i.config,t),i},c.prototype.on=function(t,e){return layui.onevent(n,t,e)},c.prototype.build=function(t,i){i=i||{};var a=this,n=a.config,r="layui-layedit",c=e("string"==typeof t?"#"+t:t),u="LAY_layedit_"+ ++a.index,d=c.next("."+r),y=e.extend({},n,i),f=function(){var t=[],e={};return layui.each(y.hideTool,function(t,i){e[i]=!0}),layui.each(y.tool,function(i,a){C[a]&&!e[a]&&t.push(C[a])}),t.join("")}(),m=e(['
    ','
    '+f+"
    ",'
    ','',"
    ","
    "].join(""));return l.ie&&l.ie<8?c.removeClass("layui-hide").addClass(o):(d[0]&&d.remove(),s.call(a,m,c[0],y),c.addClass("layui-hide").after(m),a.index)},c.prototype.getContent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerHTML)},c.prototype.getText=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},c.prototype.setContent=function(t,i,a){var l=u(t);l[0]&&(a?e(l[0].document.body).append(i):e(l[0].document.body).html(i),layedit.sync(t))},c.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerHTML))}},c.prototype.getSelection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.toString()}};var s=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentWindow"),c=o.find("head"),s=e([""].join("")),u=o.find("body");c.append(s),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#LAY_layedit_"+t),a=i.prop("contentWindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),t},y=function(t,a,n,o){var r=t.document,c=e(r.body);c.on("keydown",function(t){var e=t.keyCode;if(13===e){var a=m(r),l=p(a),n=l.parentNode;if("pre"===n.tagName.toLowerCase()){if(t.shiftKey)return;return i.msg("请暂时用shift+enter"),!1}r.execCommand("formatBlock",!1,"

    ")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),n.value=t}),c.on("paste",function(e){r.execCommand("formatBlock",!1,"

    "),setTimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},p=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,i,a){var l=this.document,n=document.createElement(t);for(var o in i)n.setAttribute(o,i[o]);if(n.removeAttribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.pasteHTML(e(n).prop("outerHTML")),a.select()}else{var r=a.toString()||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.deleteContents(),a.insertNode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasClass(l)?"removeClass":"addClass"](l),t.find(">i").removeClass(l),o("unlink").addClass(r),e(n).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||o("b").addClass(l),"i"!==t&&"em"!==t||o("i").addClass(l),"u"===t&&o("u").addClass(l),"strike"===t&&o("d").addClass(l),"p"===t&&("center"===e?o("center").addClass(l):"right"===e?o("right").addClass(l):o("left").addClass(l)),"a"===t&&(o("link").addClass(l),o("unlink").removeClass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"A"===a.tagName?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execCommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadImage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasClass(r)){o.focus();var u=m(n);u.commonAncestorContainer;l?(n.execCommand(l),/justifyLeft|justifyCenter|justifyRight/.test(l)&&n.execCommand("formatBlock",!1,"

    "),setTimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['

      ','
    • ','','
      ','',"
      ","
    • ",'
    • ','','
      ','",'","
      ","
    • ",'
    • ','','',"
    • ","
    "].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('
  • '+e+'
  • ')}),'
      '+t.join("")+"
    "}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(l,n){l.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"插入代码",skin:"layui-layer-msg",content:['
      ','
    • ','','
      ','","
      ","
    • ",'
    • ','','
      ','',"
      ","
    • ",'
    • ','','',"
    • ","
    "].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},C={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''},w=new c;t(n,w)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
    ',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
    "].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/rate.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='
      ",u=1;u<=i.length;u++){var r='
    • ";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'
    • ":n+=r}n+="
    "+(i.text?''+i.value+"星":"")+"";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/slider.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.jquery,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,n,e,i)}},a=function(){var e=this,i=e.config;return{setValue:function(i,t){return e.slide("set",i,t||0)},config:i}},n="slider",l="layui-disabled",s="layui-slider",r="layui-slider-bar",o="layui-slider-wrap",u="layui-slider-wrap-btn",d="layui-slider-tips",v="layui-slider-input",c="layui-slider-input-txt",m="layui-slider-input-btn",p="layui-slider-hover",f=function(e){var a=this;a.index=++t.index,a.config=i.extend({},a.config,t.config,e),a.render()};f.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},f.prototype.render=function(){var e=this,t=e.config;if(t.step<1&&(t.step=1),t.maxt.min?a:t.min,t.value[1]=n>t.min?n:t.min,t.value[0]=t.value[0]>t.max?t.max:t.value[0],t.value[1]=t.value[1]>t.max?t.max:t.value[1];var r=Math.floor((t.value[0]-t.min)/(t.max-t.min)*100),v=Math.floor((t.value[1]-t.min)/(t.max-t.min)*100),m=v-r+"%";r+="%",v+="%"}else{"object"==typeof t.value&&(t.value=Math.min.apply(null,t.value)),t.valuet.max&&(t.value=t.max);var m=Math.floor((t.value-t.min)/(t.max-t.min)*100)+"%"}var p=t.disabled?"#c2c2c2":t.theme,f='
    '+(t.tips?'
    ':"")+'
    '+(t.range?'
    ':"")+"
    ",h=i(t.elem),y=h.next("."+s);if(y[0]&&y.remove(),e.elemTemp=i(f),t.range?(e.elemTemp.find("."+o).eq(0).data("value",t.value[0]),e.elemTemp.find("."+o).eq(1).data("value",t.value[1])):e.elemTemp.find("."+o).data("value",t.value),h.html(e.elemTemp),"vertical"===t.type&&e.elemTemp.height(t.height+"px"),t.showstep){for(var g=(t.max-t.min)/t.step,b="",x=1;x
    ')}e.elemTemp.append(b)}if(t.input&&!t.range){var w=i('
    ');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemTemp.css("margin-right",w.outerWidth()+15)}t.disabled?(e.elemTemp.addClass(l),e.elemTemp.find("."+u).addClass(l)):e.slide(),e.elemTemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemTemp[0].offsetWidth,n=e.elemTemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsetTop-n.height():i(this).parent()[0].offsetLeft,s=l/a*100,r=i(this).parent().data("value"),u=t.setTips?t.setTips(r):r;e.elemTemp.find("."+d).html(u),"vertical"===t.type?e.elemTemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemTemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemTemp.find("."+d).css("display","none")})},f.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemTemp,f=function(){return"vertical"===l.type?l.height:s[0].offsetWidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/Math.ceil(l.step)),x=function(e,i){e=Math.ceil(e)*b>100?Math.ceil(e)*b:Math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=T(h[0].offsetLeft),a=l.range?T(h[1].offsetLeft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=T(f()-h[0].offsetTop-h.height()),a=l.range?T(f()-h[1].offsetTop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=Math.min(t,a),o=Math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+Math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),u=l.setTips?l.setTips(u):u,s.find("."+d).html(u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},T=function(e){var i=e/f()*100/b,t=Math.round(i)*b;return e==f()&&(t=Math.ceil(i)*b),t},w=i(['
    f()&&(r=f());var o=r/f()*100/b;x(o,e),t.addClass(p),s.find("."+d).show(),i.preventDefault()},o=function(){t.removeClass(p),s.find("."+d).hide()};M(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?f()-e.clientY+i(this).offset().top:e.clientX-i(this).offset().left;n<0&&(n=0),n>f()&&(n=f());var s=n/f()*100/b;a=l.range?"vertical"===l.type?Math.abs(n-parseInt(i(h[0]).css("bottom")))>Math.abs(n-parseInt(i(h[1]).css("bottom")))?1:0:Math.abs(n-h[0].offsetLeft)>Math.abs(n-h[1].offsetLeft)?1:0:0,x(s,a),e.preventDefault()}}),y.hover(function(){var e=i(this);e.children("."+m).fadeIn("fast")},function(){var e=i(this);e.children("."+m).fadeOut("fast")}),y.children("."+m).children("i").each(function(e){i(this).on("click",function(){g=1==e?g-l.stepl.max?l.max:Number(g)+l.step;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isNaN(e)?0:e,e=el.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),q.call(this))}).on("change",q)},f.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new f(e);return a.call(i)},e(n,t)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/transfer.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,n=layui.form,i="transfer",l={config:{},index:layui[i]?layui[i].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,i,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getData:function(){return e.getData.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['
    ','
    ','","
    ","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
      ',"
      "].join("")},v=['
      ',p({index:0,checkAllName:"layTransferLeftCheckAll"}),'
      ','",'","
      ",p({index:1,checkAllName:"layTransferRightCheckAll"}),"
      "].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},x.prototype.reload=function(e){var t=this;layui.each(e,function(e,a){a.constructor===Array&&delete t.config[e]}),t.config=a.extend(!0,{},t.config,e),t.render()},x.prototype.render=function(){var e=this,n=e.config,i=e.elem=a(t(v).render({data:n,index:e.index})),l=n.elem=a(n.elem);l[0]&&(n.data=n.data||[],n.value=n.value||[],e.key=n.id||e.index,l.html(e.elem),e.layBox=e.elem.find("."+s),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+h),e.layData=i.find("."+y),e.layBtn=i.find("."+f+" .layui-btn"),e.layBox.css({width:n.width,height:n.height}),e.layData.css({height:function(){return n.height-e.layHeader.outerHeight()-e.laySearch.outerHeight()-2}()}),e.renderData(),e.events())},x.prototype.renderData=function(){var e=this,a=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,n=["
    • ",'',"
    • "].join("");a[t].views.push(n),delete e.selected}),e.layData.eq(0).html(a[0].views.join("")),e.layData.eq(1).html(a[1].views.join("")),e.renderCheckBtn()},x.prototype.renderForm=function(e){n.render(e,"LAY-transfer-"+this.index)},x.prototype.renderCheckBtn=function(e){var t=this,n=t.config;e=e||{},t.layBox.each(function(i){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.layBtn.eq(i)[f?"removeClass":"addClass"](o),!e.stopNone){var p=r.children("li:not(."+c+")").length;t.noneView(r,p?"":n.text.none)}}),t.renderForm("checkbox")},x.prototype.noneView=function(e,t){var n=a('

      '+(t||"")+"

      ");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(n)},x.prototype.setValue=function(){var e=this,t=e.config,n=[];return e.layBox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||n.push(this.value)}),t.value=n,e},x.prototype.parseData=function(e){var t=this,n=t.config,i=[];return layui.each(n.data,function(t,l){l=("function"==typeof n.parseData?n.parseData(l):l)||l,i.push(l=a.extend({},l)),layui.each(n.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),n.data=i,t},x.prototype.getData=function(e){var a=this,t=a.config,n=[];return a.setValue(),layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&n.push(t)})}),n},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var t=a(this).prev(),n=t[0].checked,i=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&i.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=n)}),e.renderCheckBtn({stopNone:!0}))}),e.layBtn.on("click",function(){var n=a(this),i=n.data("index"),l=e.layBox.eq(i),r=[];if(!n.hasClass(o)){e.layBox.eq(i).each(function(t){var n=a(this),i=n.find("."+y);i.children("li").each(function(){var t=a(this),n=t.find('input[type="checkbox"]'),i=n.data("hide");n[0].checked&&!i&&(n[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value)),e.setValue()})}),e.renderCheckBtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getData(r),i)}}),e.laySearch.find("input").on("keyup",function(){var n=this.value,i=a(this).parents("."+h).eq(0).siblings("."+y),l=i.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),i=t[0].title.indexOf(n)!==-1;e[i?"removeClass":"addClass"](c),t.data("hide",!i)}),e.renderCheckBtn();var r=l.length===i.children("li."+c).length;e.noneView(i,r?t.text.searchNone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getData=function(e){var a=r.that[e];return a.getData()},l.render=function(e){var a=new x(e);return r.call(a)},e(i,l)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/tree.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define("form",function(e){"use strict";var i=layui.$,a=layui.form,n=layui.layer,t="tree",r={config:{},index:layui[t]?layui[t].index+1e4:0,set:function(e){var a=this;return a.config=i.extend({},a.config,e),a},on:function(e,i){return layui.onevent.call(this,t,e,i)}},l=function(){var e=this,i=e.config,a=i.id||e.index;return l.that[a]=e,l.config[a]=i,{config:i,reload:function(i){e.reload.call(e,i)},getChecked:function(){return e.getChecked.call(e)},setChecked:function(i){return e.setChecked.call(e,i)}}},c="layui-hide",d="layui-disabled",s="layui-tree-set",o="layui-tree-iconClick",h="layui-icon-addition",u="layui-icon-subtraction",p="layui-tree-entry",f="layui-tree-main",y="layui-tree-txt",v="layui-tree-pack",C="layui-tree-spread",k="layui-tree-setLineShort",m="layui-tree-showLine",x="layui-tree-lineExtend",b=function(e){var a=this;a.index=++r.index,a.config=i.extend({},a.config,r.config,e),a.render()};b.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"未命名",none:"无数据"}},b.prototype.reload=function(e){var a=this;layui.each(e,function(e,i){i.constructor===Array&&delete a.config[e]}),a.config=i.extend(!0,{},a.config,e),a.render()},b.prototype.render=function(){var e=this,a=e.config;e.checkids=[];var n=i('
      ');e.tree(n);var t=a.elem=i(a.elem);if(t[0]){if(e.key=a.id||e.index,e.elem=n,e.elemNone=i('
      '+a.text.none+"
      "),t.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);a.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=i(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(k),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(k)}),e.events()}},b.prototype.renderForm=function(e){a.render(e,"LAY-tree-"+this.index)},b.prototype.tree=function(e,a){var n=this,t=n.config,r=a||t.data;layui.each(r,function(a,r){var l=r.children&&r.children.length>0,o=i('
      '),h=i(['
      ','
      ','
      ',function(){return t.showLine?l?'':'':''}(),function(){return t.showCheckbox?'':""}(),function(){return t.isJump&&r.href?''+(r.title||r.label||t.text.defaultNodeName)+"":''+(r.title||r.label||t.text.defaultNodeName)+""}(),"
      ",function(){if(!t.edit)return"";var e={add:'',update:'',del:''},i=['
      '];return t.edit===!0&&(t.edit=["update","del"]),"object"==typeof t.edit?(layui.each(t.edit,function(a,n){i.push(e[n]||"")}),i.join("")+"
      "):void 0}(),"
      "].join(""));l&&(h.append(o),n.tree(o,r.children)),e.append(h),h.prev("."+s)[0]&&h.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),l||h.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),n.spread(h,r),t.showCheckbox&&(r.checked&&n.checkids.push(r.id),n.checkClick(h,r)),t.edit&&n.operate(h,r)})},b.prototype.spread=function(e,a){var n=this,t=n.config,r=e.children("."+p),l=r.children("."+f),c=r.find("."+o),k=r.find("."+y),m=t.onlyIconControl?c:l,x="";m.on("click",function(i){var a=e.children("."+v),n=m.children(".layui-icon")[0]?m.children(".layui-icon"):m.find(".layui-tree-icon").children(".layui-icon");if(a[0]){if(e.hasClass(C))e.removeClass(C),a.slideUp(200),n.removeClass(u).addClass(h);else if(e.addClass(C),a.slideDown(200),n.addClass(u).removeClass(h),t.accordion){var r=e.siblings("."+s);r.removeClass(C),r.children("."+v).slideUp(200),r.find(".layui-tree-icon").children(".layui-icon").removeClass(u).addClass(h)}}else x="normal"}),k.on("click",function(){var n=i(this);n.hasClass(d)||(x=e.hasClass(C)?t.onlyIconControl?"open":"close":t.onlyIconControl?"close":"open",t.click&&t.click({elem:e,state:x,data:a}))})},b.prototype.setCheckbox=function(e,i,a){var n=this,t=(n.config,a.prop("checked"));if(!a.prop("disabled")){if("object"==typeof i.children||e.find("."+v)[0]){var r=e.find("."+v).find('input[same="layuiTreeCheck"]');r.each(function(){this.disabled||(this.checked=t)})}var l=function(e){if(e.parents("."+s)[0]){var i,a=e.parent("."+v),n=a.parent(),r=a.prev().find('input[same="layuiTreeCheck"]');t?r.prop("checked",t):(a.find('input[same="layuiTreeCheck"]').each(function(){this.checked&&(i=!0)}),i||r.prop("checked",!1)),l(n)}};l(e),n.renderForm("checkbox")}},b.prototype.checkClick=function(e,a){var n=this,t=n.config,r=e.children("."+p),l=r.children("."+f);l.on("click",'input[same="layuiTreeCheck"]+',function(r){layui.stope(r);var l=i(this).prev(),c=l.prop("checked");l.prop("disabled")||(n.setCheckbox(e,a,l),t.oncheck&&t.oncheck({elem:e,checked:c,data:a}))})},b.prototype.operate=function(e,a){var t=this,r=t.config,l=e.children("."+p),d=l.children("."+f);l.children(".layui-tree-btnGroup").on("click",".layui-icon",function(l){layui.stope(l);var f=i(this).data("type"),b=e.children("."+v),g={data:a,type:f,elem:e};if("add"==f){b[0]||(r.showLine?(d.find("."+o).addClass("layui-tree-icon"),d.find("."+o).children(".layui-icon").addClass(h).removeClass("layui-icon-file")):d.find(".layui-tree-iconArrow").removeClass(c),e.append('
      '));var w=r.operate&&r.operate(g),N={};if(N.title=r.text.defaultNodeName,N.id=w,t.tree(e.children("."+v),[N]),r.showLine)if(b[0])b.hasClass(x)||b.addClass(x),e.find("."+v).each(function(){i(this).children("."+s).last().addClass(k)}),b.children("."+s).last().prev().hasClass(k)?b.children("."+s).last().prev().removeClass(k):b.children("."+s).last().removeClass(k),!e.parent("."+v)[0]&&e.next()[0]&&b.children("."+s).last().removeClass(k);else{var T=e.siblings("."+s),L=1,A=e.parent("."+v);layui.each(T,function(e,a){i(a).children("."+v)[0]||(L=0)}),1==L?(T.children("."+v).addClass(m),T.children("."+v).children("."+s).removeClass(k),e.children("."+v).addClass(m),A.removeClass(x),A.children("."+s).last().children("."+v).children("."+s).last().addClass(k)):e.children("."+v).children("."+s).addClass(k)}if(!r.showCheckbox)return;if(d.find('input[same="layuiTreeCheck"]')[0].checked){var I=e.children("."+v).children("."+s).last();I.find('input[same="layuiTreeCheck"]')[0].checked=!0}t.renderForm("checkbox")}else if("update"==f){var F=d.children("."+y).html();d.children("."+y).html(""),d.append(''),d.children(".layui-tree-editInput").val(F).focus();var j=function(e){var i=e.val().trim();i=i?i:r.text.defaultNodeName,e.remove(),d.children("."+y).html(i),g.data.title=i,r.operate&&r.operate(g)};d.children(".layui-tree-editInput").blur(function(){j(i(this))}),d.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),j(i(this)))})}else n.confirm('确认删除该节点 "'+(a.title||"")+'" 吗?',function(a){if(r.operate&&r.operate(g),g.status="remove",n.close(a),!e.prev("."+s)[0]&&!e.next("."+s)[0]&&!e.parent("."+v)[0])return e.remove(),void t.elem.append(t.elemNone);if(e.siblings("."+s).children("."+p)[0]){if(r.showCheckbox){var l=function(e){if(e.parents("."+s)[0]){var a=e.siblings("."+s).children("."+p),n=e.parent("."+v).prev(),r=n.find('input[same="layuiTreeCheck"]')[0],c=1,d=0;0==r.checked&&(a.each(function(e,a){var n=i(a).find('input[same="layuiTreeCheck"]')[0];0!=n.checked||n.disabled||(c=0),n.disabled||(d=1)}),1==c&&1==d&&(r.checked=!0,t.renderForm("checkbox"),l(n.parent("."+s))))}};l(e)}if(r.showLine){var d=e.siblings("."+s),h=1,f=e.parent("."+v);layui.each(d,function(e,a){i(a).children("."+v)[0]||(h=0)}),1==h?(b[0]||(f.removeClass(x),d.children("."+v).addClass(m),d.children("."+v).children("."+s).removeClass(k)),e.next()[0]?f.children("."+s).last().children("."+v).children("."+s).last().addClass(k):e.prev().children("."+v).children("."+s).last().addClass(k),e.next()[0]||e.parents("."+s)[1]||e.parents("."+s).eq(0).next()[0]||e.prev("."+s).addClass(k)):!e.next()[0]&&e.hasClass(k)&&e.prev().addClass(k)}}else{var y=e.parent("."+v).prev();if(r.showLine){y.find("."+o).removeClass("layui-tree-icon"),y.find("."+o).children(".layui-icon").removeClass(u).addClass("layui-icon-file");var w=y.parents("."+v).eq(0);w.addClass(x),w.children("."+s).each(function(){i(this).children("."+v).children("."+s).last().addClass(k)})}else y.find(".layui-tree-iconArrow").addClass(c);e.parents("."+s).eq(0).removeClass(C),e.parent("."+v).remove()}e.remove()})})},b.prototype.events=function(){var e=this,a=e.config;e.elem.find(".layui-tree-checkedFirst");e.setChecked(e.checkids),e.elem.find(".layui-tree-search").on("keyup",function(){var n=i(this),t=n.val(),r=n.nextAll(),l=[];r.find("."+y).each(function(){var e=i(this).parents("."+p);if(i(this).html().indexOf(t)!=-1){l.push(i(this).parent());var a=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+v)[0]&&a(e.parent("."+v).parent("."+s))};a(e.parent("."+s))}}),r.find("."+p).each(function(){var e=i(this).parent("."+s);e.hasClass("layui-tree-searchShow")||e.addClass(c)}),0==r.find(".layui-tree-searchShow").length&&e.elem.append(e.elemNone),a.onsearch&&a.onsearch({elem:l})}),e.elem.find(".layui-tree-search").on("keydown",function(){i(this).nextAll().find("."+p).each(function(){var e=i(this).parent("."+s);e.removeClass("layui-tree-searchShow "+c)}),i(".layui-tree-emptyText")[0]&&i(".layui-tree-emptyText").remove()})},b.prototype.getChecked=function(){var e=this,a=e.config,n=[],t=[];e.elem.find(".layui-form-checked").each(function(){n.push(i(this).prev()[0].value)});var r=function(e,a){layui.each(e,function(e,t){layui.each(n,function(e,n){if(t.id==n){var l=i.extend({},t);return delete l.children,a.push(l),t.children&&(l.children=[],r(t.children,l.children)),!0}})})};return r(i.extend({},a.data),t),t},b.prototype.setChecked=function(e){var a=this;a.config;a.elem.find("."+s).each(function(a,n){var t=i(this).data("id"),r=i(n).children("."+p).find('input[same="layuiTreeCheck"]'),l=r.next();if("number"==typeof e){if(t==e)return r[0].checked||l.click(),!1}else"object"==typeof e&&layui.each(e,function(e,i){if(i==t&&!r[0].checked)return l.click(),!0})})},l.that={},l.config={},r.reload=function(e,i){var a=l.that[e];return a.reload(i),l.call(a)},r.getChecked=function(e){var i=l.that[e];return i.getChecked()},r.setChecked=function(e,i){var a=l.that[e];return a.setChecked(i)},r.render=function(e){var i=new b(e);return l.call(i)},e(t,r)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/upload.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,n=layui.hint(),o=layui.device(),a={config:{},set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,r,e,t)}},l=function(){var e=this;return{upload:function(t){e.upload.call(e,t)},reload:function(t){e.reload.call(e,t)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var i=this;i.config=t.extend({},i.config,a.config,e),i.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var i=this,e=i.config;e.elem=t(e.elem),e.bindAction=t(e.bindAction),i.file(),i.events()},p.prototype.file=function(){var e=this,i=e.config,n=e.elemFile=t(['"].join("")),a=i.elem.next();(a.hasClass(u)||a.hasClass(c))&&a.remove(),o.ie&&o.ie<10&&i.elem.wrap('
      '),e.isFile()?(e.elemFile=i.elem,i.field=i.elem[0].name):i.elem.after(n),o.ie&&o.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,i=e.config,n=t(''),o=t(['
      ',"
      "].join(""));t("#"+f)[0]||t("body").append(n),i.elem.next().hasClass(c)||(e.elemFile.wrap(o),i.elem.next("."+c).append(function(){var e=[];return layui.each(i.data,function(t,i){i="function"==typeof i?i():i,e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return i.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var t=this;window.FileReader&&layui.each(t.chooseFiles,function(t,i){var n=new FileReader;n.readAsDataURL(i),n.onload=function(){e&&e(t,i,this.result)}})},p.prototype.upload=function(e,i){var n,a=this,l=a.config,r=a.elemFile[0],u=function(){var i=0,n=0,o=e||a.files||a.chooseFiles||r.files,u=function(){l.multiple&&i+n===a.fileLength&&"function"==typeof l.allDone&&l.allDone({total:a.fileLength,successful:i,aborted:n})};layui.each(o,function(e,o){var r=new FormData;r.append(l.field,o),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,r.append(e,t)});var c={url:l.url,type:"post",data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(t){i++,d(e,t),u()},error:function(){n++,a.msg("请求上传接口出现异常"),m(e),u()}};"function"==typeof l.progress&&(c.xhr=function(){var e=t.ajaxSettings.xhr();return e.upload.addEventListener("progress",function(e){if(e.lengthComputable){var t=Math.floor(e.loaded/e.total*100);l.progress(t,l.item[0],e)}}),e}),t.ajax(c)})},c=function(){var e=t("#"+f);a.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var t,i=e.contents().find("body");try{t=i.text()}catch(n){a.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}t&&(clearInterval(p.timer),i.html(""),d(0,t))},30)},d=function(e,t){if(a.elemFile.next("."+s).remove(),r.value="","object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},a.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(t,e||0,function(e){a.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){a.upload(e)})},h=l.exts,v=function(){var t=[];return layui.each(e||a.chooseFiles,function(e,i){t.push(i.name)}),t}(),g={preview:function(e){a.preview(e)},upload:function(e,t){var i={};i[e]=t,a.upload(i)},pushFile:function(){return a.files=a.files||{},layui.each(a.chooseFiles,function(e,t){a.files[e]=t}),a.files},resetFile:function(e,t,i){var n=new File([t],i);a.files=a.files||{},a.files[e]=n}},y=function(){if("choose"!==i&&!l.auto||(l.choose&&l.choose(g),"choose"!==i))return l.before&&l.before(g),o.ie?o.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return a.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return a.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return a.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,t){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(n=!0)}),n)return a.msg("选择的图片中包含不支持的格式"),r.value=""}if(a.fileLength=function(){var t=0,i=e||a.files||a.chooseFiles||r.files;return layui.each(i,function(){t++}),t}(),l.number&&a.fileLength>l.number)return a.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(o.ie&&o.ie<10)){var F;if(layui.each(a.chooseFiles,function(e,t){if(t.size>1024*l.size){var i=l.size/1024;i=i>=1?i.toFixed(2)+"MB":l.size+"KB",r.value="",F=i}}),F)return a.msg("文件不能超过"+F)}y()}},p.prototype.reload=function(e){e=e||{},delete e.elem,delete e.bindAction;var i=this,e=i.config=t.extend({},i.config,a.config,e),n=e.elem.next();n.attr({name:e.name,accept:e.acceptMime,multiple:e.multiple})},p.prototype.events=function(){var e=this,i=e.config,a=function(t){e.chooseFiles={},layui.each(t,function(t,i){var n=(new Date).getTime();e.chooseFiles[n+"-"+t]=i})},l=function(t,n){var o=e.elemFile,a=t.length>1?t.length+"个文件":(t[0]||{}).name||o[0].value.match(/[^\/\\]+\..+/g)||[]||"";o.next().hasClass(s)&&o.next().remove(),e.upload(null,"choose"),e.isFile()||i.choose||o.after(''+a+"")};i.elem.off("upload.start").on("upload.start",function(){var o=t(this),a=o.attr("lay-data");if(a)try{a=new Function("return "+a)(),e.config=t.extend({},i,a)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+a)}e.config.item=o,e.elemFile[0].click()}),o.ie&&o.ie<10||i.elem.off("upload.over").on("upload.over",function(){var e=t(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=t(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,o){var r=t(this),u=o.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),a(u),i.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var t=this.files||[];a(t),i.auto?e.upload():l(t)}),i.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),i.elem.data("haveEvents")||(e.elemFile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){e.isFile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(e){e.preventDefault(),t(this).trigger("upload.over")}).on("dragleave",function(e){t(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),t(this).trigger("upload.drop",e)}),i.bindAction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveEvents",!0))},a.render=function(e){var t=new p(e);return l.call(t)},e(r,a)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var t=layui.$,i={fixbar:function(e){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=t(document),l=t("body");e=t.extend({showHeight:200},e),e.bar1=e.bar1===!0?"":e.bar1,e.bar2=e.bar2===!0?"":e.bar2,e.bgcolor=e.bgcolor?"background-color:"+e.bgcolor:"";var c=[e.bar1,e.bar2,""],u=t(['
        ',e.bar1?'
      • '+c[0]+"
      • ":"",e.bar2?'
      • '+c[1]+"
      • ":"",'
      • '+c[2]+"
      • ","
      "].join("")),g=u.find("."+o),s=function(){var t=r.scrollTop();t>=e.showHeight?i||(g.show(),i=1):i&&(g.hide(),i=0)};t("."+a)[0]||("object"==typeof e.css&&u.css(e.css),l.append(u),s(),u.find("li").on("click",function(){var i=t(this),n=i.attr("lay-type");"top"===n&&t("html,body").animate({scrollTop:0},200),e.click&&e.click.call(this,n)}),r.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){s()},100)}))},countdown:function(e,t,i){var n=this,a="function"==typeof t,o=new Date(e).getTime(),r=new Date(!t||a?(new Date).getTime():t).getTime(),l=o-r,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=t);var u=setTimeout(function(){n.countdown(e,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],t,u),l<=0&&clearTimeout(u),u},timeAgo:function(e,t){var i=this,n=[[],[]],a=(new Date).getTime()-new Date(e).getTime();return a>26784e5?(a=new Date(e),n[0][0]=i.digit(a.getFullYear(),4),n[0][1]=i.digit(a.getMonth()+1),n[0][2]=i.digit(a.getDate()),t||(n[1][0]=i.digit(a.getHours()),n[1][1]=i.digit(a.getMinutes()),n[1][2]=i.digit(a.getSeconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=18e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(e,t){var i="";e=String(e),t=t||2;for(var n=e.length;n/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(e,n,a){var o=t("body");return a=a||"click",n=i.event[e]=t.extend(!0,i.event[e],n)||{},i.event.UTIL_EVENT_CALLBACK=i.event.UTIL_EVENT_CALLBACK||{},o.off(a,"*["+e+"]",i.event.UTIL_EVENT_CALLBACK[e]),i.event.UTIL_EVENT_CALLBACK[e]=function(){var i=t(this),a=i.attr(e);"function"==typeof n[a]&&n[a].call(this,i)},o.on(a,"*["+e+"]",i.event.UTIL_EVENT_CALLBACK[e]),n}};!function(e,t,i){"$:nomunge";function n(){a=t[l](function(){o.each(function(){var t=e(this),i=t.width(),n=t.height(),a=e.data(this,u);(i!==a.w||n!==a.h)&&t.trigger(c,[a.w=i,a.h=n])}),n()},r[g])}var a,o=e([]),r=e.resize=e.extend(e.resize,{}),l="setTimeout",c="resize",u=c+"-special-event",g="delay",s="throttleWindow";r[g]=250,r[s]=!0,e.event.special[c]={setup:function(){if(!r[s]&&this[l])return!1;var t=e(this);o=o.add(t),e.data(this,u,{w:t.width(),h:t.height()}),1===o.length&&n()},teardown:function(){if(!r[s]&&this[l])return!1;var t=e(this);o=o.not(t),t.removeData(u),o.length||clearTimeout(a)},add:function(t){function n(t,n,o){var r=e(this),l=e.data(this,u)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[s]&&this[l])return!1;var a;return e.isFunction(t)?(a=t,n):(a=t.handler,void(t.handler=n))}}}(t,window),e("util",i)}); -------------------------------------------------------------------------------- /lib/layui/layui.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.6 MIT License By https://www.layui.com */ 2 | ;!function(e){"use strict";var t=document,n={modules:{},status:{},timeout:10,event:{}},r=function(){this.v="2.5.6"},o=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,n=t.scripts,r=n.length-1,o=r;o>0;o--)if("interactive"===n[o].readyState){e=n[o].src;break}return e||n[r].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),a=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},i="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",transfer:"modules/transfer",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};r.prototype.cache=n,r.prototype.define=function(e,t){var r=this,o="function"==typeof e,a=function(){var e=function(e,t){layui[e]=t,n.status[e]=!0};return"function"==typeof t&&t(function(r,o){e(r,o),n.callback[r]=function(){t(e)}}),this};return o&&(t=e,e=[]),!layui["layui.all"]&&layui["layui.mobile"]?a.call(r):(r.use(e,a),r)},r.prototype.use=function(e,r,l){function c(e,t){var r="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||r.test((e.currentTarget||e.srcElement).readyState))&&(n.modules[d]=t,y.removeChild(h),function o(){return++m>1e3*n.timeout/4?a(d+" is not a valid module"):void(n.status[d]?s():setTimeout(o,4))}())}function s(){l.push(layui[d]),e.length>1?p.use(e.slice(1),r,l):"function"==typeof r&&r.apply(layui,l)}var p=this,f=n.dir=n.dir?n.dir:o,y=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(p.each(e,function(t,n){"jquery"===n&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var d=e[0],m=0;if(l=l||[],n.host=n.host||(f.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[d]||!layui["layui.all"]&&layui["layui.mobile"]&&u[d])return s(),p;var v=(u[d]?f+"lay/":/^\{\/\}/.test(p.modules[d])?"":n.base||"")+(p.modules[d]||d)+".js";if(v=v.replace(/^\{\/\}/,""),!n.modules[d]&&layui[d]&&(n.modules[d]=v),n.modules[d])!function g(){return++m>1e3*n.timeout/4?a(d+" is not a valid module"):void("string"==typeof n.modules[d]&&n.status[d]?s():setTimeout(g,4))}();else{var h=t.createElement("script");h.async=!0,h.charset="utf-8",h.src=v+function(){var e=n.version===!0?n.v||(new Date).getTime():n.version||"";return e?"?v="+e:""}(),y.appendChild(h),!h.attachEvent||h.attachEvent.toString&&h.attachEvent.toString().indexOf("[native code")<0||i?h.addEventListener("load",function(e){c(e,v)},!1):h.attachEvent("onreadystatechange",function(e){c(e,v)}),n.modules[d]=v}return p},r.prototype.getStyle=function(t,n){var r=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return r[r.getPropertyValue?"getPropertyValue":"getAttribute"](n)},r.prototype.link=function(e,r,o){var i=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof r&&(o=r);var c=(o||e).replace(/\.|\//g,""),s=u.id="layuicss-"+c,p=0;return u.rel="stylesheet",u.href=e+(n.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(s)||l.appendChild(u),"function"!=typeof r?i:(function f(){return++p>1e3*n.timeout/100?a(e+" timeout"):void(1989===parseInt(i.getStyle(t.getElementById(s),"width"))?function(){r()}():setTimeout(f,100))}(),i)},n.callback={},r.prototype.factory=function(e){if(layui[e])return"function"==typeof n.callback[e]?n.callback[e]:null},r.prototype.addcss=function(e,t,r){return layui.link(n.dir+"css/"+e,t,r)},r.prototype.img=function(e,t,n){var r=new Image;return r.src=e,r.complete?t(r):(r.onload=function(){r.onload=null,"function"==typeof t&&t(r)},void(r.onerror=function(e){r.onerror=null,"function"==typeof n&&n(e)}))},r.prototype.config=function(e){e=e||{};for(var t in e)n[t]=e[t];return this},r.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),r.prototype.extend=function(e){var t=this;e=e||{};for(var n in e)t[n]||t.modules[n]?a("模块名 "+n+" 已被占用"):t.modules[n]=e[n];return t},r.prototype.router=function(e){var t=this,e=e||location.hash,n={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),n.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),n.search[t[0]]=t[1]}():n.path.push(t)}),n):n},r.prototype.url=function(e){var t=this,n={pathname:function(){var t=e?function(){var t=(e.match(/\.[^.]+?\/.+/)||[])[0]||"";return t.replace(/^[^\/]+/,"").replace(/\?.+/,"")}():location.pathname;return t.replace(/^\//,"").split("/")}(),search:function(){var n={},r=(e?function(){var t=(e.match(/\?.+/)||[])[0]||"";return t.replace(/\#.+/,"")}():location.search).replace(/^\?+/,"").split("&");return t.each(r,function(e,t){var r=t.indexOf("="),o=function(){return r<0?t.substr(0,t.length):0!==r&&t.substr(0,r)}();o&&(n[o]=r>0?t.substr(r+1):null)}),n}(),hash:t.router(function(){return e?(e.match(/#.+/)||[])[0]||"":location.hash}())};return n},r.prototype.data=function(t,n,r){if(t=t||"layui",r=r||localStorage,e.JSON&&e.JSON.parse){if(null===n)return delete r[t];n="object"==typeof n?n:{key:n};try{var o=JSON.parse(r[t])}catch(a){var o={}}return"value"in n&&(o[n.key]=n.value),n.remove&&delete o[n.key],r[t]=JSON.stringify(o),n.key?o[n.key]:o}},r.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},r.prototype.device=function(t){var n=navigator.userAgent.toLowerCase(),r=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(n.match(t)||[])[1],e||!1},o={os:function(){return/windows/.test(n)?"windows":/linux/.test(n)?"linux":/iphone|ipod|ipad|ios/.test(n)?"ios":/mac/.test(n)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((n.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:r("micromessenger")};return t&&!o[t]&&(o[t]=r(t)),o.android=/android/.test(n),o.ios="ios"===o.os,o.mobile=!(!o.android&&!o.ios),o},r.prototype.hint=function(){return{error:a}},r.prototype.each=function(e,t){var n,r=this;if("function"!=typeof t)return r;if(e=e||[],e.constructor===Object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;na?1:o