Skip to content

Commit e66b96e

Browse files
author
harry
committed
内嵌网页
1 parent e29b740 commit e66b96e

298 files changed

Lines changed: 181984 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# AndroidControl
22

3+
> **非常抱歉,因为工作繁忙,有很长一段时间没有更新了。 有很多人加群也没有及时通过。。。在这里郑重的说声 抱歉! 非常感谢大家的支持!**
4+
5+
6+
7+
我打算重构此项目的代码,下面介绍原因:
8+
9+
1. 去ADB化
10+
1. ADB很容易被其他程序或者用户操作干扰,导致连接中断
11+
2. Android的碎片化导致很多人不知道如何配置ADB环境
12+
3. 性能较差
13+
2. 服务器准备使用python替代java
14+
1. 一开始选择Java的原因是因为ddmlib,既然去adb了,那就不想使用java了
15+
2. 编译方法很多,导致很多朋友不知道如何编译java
16+
3. 脚本是趋势,尤其是python的跳一跳外挂更是掀起了一阵波澜
17+
18+
19+
20+
当然,原先的版本保留,不更新了(随着时间的发展,本菜鸟觉得以前的设计确实脑残。。。)
21+
22+
23+
24+
---
25+
26+
27+
328
**它可以仅仅使用浏览器控制一台或者多台安卓设备,不仅仅局限于手机,如平板、手表等都可以**
429

530
**如果有问题或者建议,请加qq群: 1476686**

‎resources/web/LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 朱辉
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.

‎resources/web/README.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# RemoteControl-Web
2+
RemoteControl Web Client
3+
4+
# What's this
5+
The Web Client For [RemoteControl](https://github.com/yeetor/AndroidControl)
6+
7+
# How to use
8+
9+
1. open the [RemoteControl](https://github.com/yeetor/AndroidControl) server (see RemoteControl README.md)
10+
2. connect your phones
11+
3. double click `index.html`
12+
13+
![demo](demo.gif)
14+
15+
# Give me five
16+
🤗

‎resources/web/device.html‎

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="stylesheet" href="static/lib/bootstrap-3.3.7/css/bootstrap.min.css">
6+
<link rel="stylesheet" href="static/lib/font-awesome-4.7.0/css/font-awesome.min.css">
7+
<link rel="stylesheet" href="static/lib/jquery-ui-1.12.1/jquery-ui.min.css">
8+
<link rel="stylesheet" href="static/css/device.css">
9+
</head>
10+
<body>
11+
<div id="main">
12+
<div class="content" id="content">
13+
<nav class="navbar">
14+
<p id="title" class="text-center">{{title}}</p>
15+
</nav>
16+
<canvas id="phone-screen"></canvas>
17+
<footer class="footer">
18+
<div class="container-fluid">
19+
<div class="row">
20+
<!-- <div class="col-xs-3 text-center menu-button" id="btn-scale"><span class="fa "></div> -->
21+
<!-- <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="Tooltip on left">Tooltip on left</button> -->
22+
<div class="col-xs-3 text-center menu-button" id="btn-back"><span class="fa fa-chevron-left"></span></div>
23+
<div class="col-xs-3 text-center menu-button" id="btn-home"><span class="fa fa-circle-o"></span></div>
24+
<div class="col-xs-3 text-center menu-button" id="btn-menu"><span class="fa fa-align-justify"></span></div>
25+
<div class="col-xs-3 text-center menu-button" id="btn-more" data-toggle="modal" data-target="#myModal"><span class="fa fa-wheelchair"></span></div>
26+
<!-- Button trigger modal -->
27+
</div>
28+
</div>
29+
</footer>
30+
</div>
31+
</div>
32+
<!-- Modal -->
33+
<!-- 设置 -->
34+
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
35+
<div class="modal-dialog" role="document">
36+
<!-- <div class="modal-content"> -->
37+
<ul class="list-group">
38+
<li class="list-group-item">
39+
<p>窗口大小设置</p>
40+
<div id="display-scale-slider"></div>
41+
</li>
42+
<li class="list-group-item">
43+
<p>输出清晰度</p>
44+
<div id="scale-slider"></div>
45+
</li>
46+
<li class="list-group-item text-center">
47+
<div class="checkbox">
48+
<label>
49+
<input type="checkbox" id="rotateCheckBox"> 屏幕旋转
50+
</label>
51+
</div>
52+
<div class="checkbox">
53+
<label>
54+
<input type="checkbox" id="keyEventCheckBox"> 键盘映射
55+
</label>
56+
<p class="help-block">将你键盘按下的键位信息发送到手机</p>
57+
</div>
58+
</li>
59+
</ul>
60+
<!-- </div> -->
61+
</div>
62+
</div>
63+
<!-- 重置scale -->
64+
<div class="modal" id="resetScaleModal" tabindex="-1" role="dialog" data-backdrop="static">
65+
<div class="modal-dialog" role="document">
66+
<div class="modal-content">
67+
<div class="modal-body">
68+
<div>请等待CapService重启</div>
69+
</div>
70+
</div>
71+
</div>
72+
</div>
73+
</body>
74+
<script src="static/lib/jquery-3.2.1.min.js"></script>
75+
<script>if (typeof module === 'object') {window.jQuery = window.$ = module.exports;};</script>
76+
<script src="static/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
77+
<script src="static/lib/jquery-ui-1.12.1/jquery-ui.min.js"></script>
78+
<script src="static/lib/vue.js"></script>
79+
<script src="static/js/keyeventConvert.js"></script>
80+
<script src="static/js/device.js"></script>
81+
</html>

‎resources/web/index.html‎

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>RemoteControl-Desktop</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
7+
<link rel="stylesheet" href="static/lib/bootstrap-3.3.7/css/bootstrap.min.css">
8+
<link rel="stylesheet" href="static/lib/font-awesome-4.7.0/css/font-awesome.min.css">
9+
<link rel="stylesheet" href="static/css/index.css">
10+
</head>
11+
<body class="noselect">
12+
<nav class="navbar">
13+
<h1 class="text-center">AndroidControl</h1>
14+
</nav>
15+
<div class="content">
16+
<ul class="phone-list" id="phone-list">
17+
<li v-for="p in devices.slice(0, 4)">
18+
<div class="phone">
19+
<div class="phone-header phone-info">
20+
<p>{{p.sn}}@{{p.server.ip}}:{{p.server.port}}</p>
21+
</div>
22+
<div class="phone-body">
23+
<img v-bind:onclick="'phoneClick(\'' + p.sn + '\')'" style="max-width: 100%;" class="phone-shot" v-bind:src="'http://127.0.0.1:6655/shot/' + p.sn" />
24+
</div>
25+
<div class="phone-footer phone-info">
26+
<div>{{p.sn}}<a style="float: right; margin-right:8px;">🖕</a></div>
27+
</div>
28+
</div>
29+
</li>
30+
<!-- 群控机 -->
31+
<!-- <li>
32+
<div class="phone">
33+
<div class="phone-header phone-info">
34+
<p>群控机@1920x1080</p>
35+
</div>
36+
<div class="phone-body" id="control-all-phone">
37+
<div v-for="p in devices" class="small-phone">
38+
<img style="max-width: 100%;" class="phone-shot" v-bind:src="'http://127.0.0.1:6655/shot/' + p.sn">
39+
</div>
40+
</div>
41+
<div class="phone-footer phone-info">
42+
<div>别问那么多了,点开试试</div>
43+
</div>
44+
</div>
45+
</li> -->
46+
<!-- 群控机 end -->
47+
</ul>
48+
<div class="bottom text-center"><span>Copyright © Harry 2017</span></div>
49+
</div>
50+
<!-- modal -->
51+
<div class="modal fade" id="serverModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
52+
<div class="modal-dialog" role="document">
53+
<div class="modal-content">
54+
<div class="modal-body">
55+
<div class="panel panel-default">
56+
<div class="panel-heading">添加服务器</div>
57+
<div class="panel-body">
58+
<div class="input-group">
59+
<span class="input-group-addon" id="basic-addon3">服务器地址</span>
60+
<input type="text" class="form-control" id="server-input" placeholder="localhost:6655">
61+
<span class="input-group-btn">
62+
<button class="btn btn-default" type="button" id="btn-addserver">添加</button>
63+
</span>
64+
</div>
65+
</div>
66+
</div>
67+
</div>
68+
</div>
69+
</div>
70+
</div>
71+
</body>
72+
<script src="static/lib/jquery-3.2.1.min.js"></script>
73+
<script>if (typeof module === 'object') {window.jQuery = window.$ = module.exports;};</script>
74+
<script src="static/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
75+
<script src="static/lib/vue.js"></script>
76+
<script src="static/js/index.js"></script>
77+
</html>

0 commit comments

Comments
 (0)