Skip to content

Commit

Permalink
Merge branch 'beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
GHJayce committed May 4, 2019
2 parents 21a5d38 + ca79320 commit 31eae58
Show file tree
Hide file tree
Showing 43 changed files with 1,078 additions and 483 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
vendor
.idea
register_table_file.zip
register_table_file.zip
download/
183 changes: 5 additions & 178 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,179 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>生成右键菜单注册文件 - RightClickMenu</title>

<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>

<nav class="navbar navbar-inverse navbar-static-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">RightClickMenu</a>
</div>
<ul class="nav navbar-nav navbar-right">
<li>
<a>
<iframe src="https://ghbtns.com/github-btn.html?user=GHBJayce&repo=RightClickMenu&type=star" frameborder="0" scrolling="0" width="60px" height="20px"></iframe>
<iframe src="https://ghbtns.com/github-btn.html?user=GHBJayce&repo=RightClickMenu&type=fork" frameborder="0" scrolling="0" width="60px" height="20px"></iframe>
</a>
</li>
</ul>

</div>
</nav>

<div class="container">
<h2>生成右键菜单注册文件 <a href="https://ghbjayce.github.io/RightClickMenu/" class="pull-right h4 text-primary">online</a></h2>
<div class="alert alert-warning h6" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<strong><i class="fa fa-exclamation-triangle"></i> 请在本地服务器环境中使用该程序</strong>
</div>
<div class="alert alert-info h6" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<p><i class="fa fa-info-circle" style="font-size: 20px;"></i> 直接点击生成按钮,能够得到一个右键菜单的小功能。</p>
<p>右键<strong>选中文件或文件夹</strong>能够复制选中目标的路径,可以放心下载到本地环境中导入使用。</p>
</div>
<br>
<form class="form-horizontal">
<div class="form-group">
<label for="itemName" class="col-sm-2 control-label">注册表名</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="itemName" placeholder="在注册表显示的注册名称" value="CopyPath">
</div>
</div>
<div class="form-group">
<label for="showName" class="col-sm-2 control-label">右键菜单名</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="showName" placeholder="右键菜单显示的名称" value="复制目标路径">
</div>
</div>
<div class="form-group">
<label for="path" class="col-sm-2 control-label">程序路径</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="path" placeholder="程序路径" value="mshta vbscript:clipboarddata.setdata(&#34;text&#34;,&#34;%1&#34;)(close)">
<!-- <input type="file" id="path" placeholder="程序路径"> -->
</div>
</div>
<div class="form-group">
<label for="icon" class="col-sm-2 control-label">图标</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="icon" placeholder="显示的图标,留空表示使用程序默认的图标" value="%SYSTEMROOT%\explorer.exe">
<!-- <input type="file" id="icon" placeholder="显示的图标"> -->
</div>
</div>
<div class="form-group">
<label for="options" class="col-sm-2 control-label">右键菜单</label>
<div class="col-sm-10">
<label class="checkbox-inline">
<input type="checkbox" name="option" id="inlineCheckbox1" value="1"> 目录背景
</label>
<label class="checkbox-inline">
<input type="checkbox" name="option" id="inlineCheckbox2" value="2" checked> 选中文件夹
</label>
<label class="checkbox-inline">
<input type="checkbox" name="option" id="inlineCheckbox3" value="3" checked> 所有选中文件
</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><b>目录背景</b> <br><code>shift</code>键出现</label>
<div class="col-sm-10">
<label class="radio-inline">
<input type="radio" name="backgroundExtended" value="">
</label>
<label class="radio-inline">
<input type="radio" name="backgroundExtended" value="no" checked>
</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><b>选中文件夹</b> <br><code>shift</code>键出现</label>
<div class="col-sm-10">
<label class="radio-inline">
<input type="radio" name="selectedDirectory" value="">
</label>
<label class="radio-inline">
<input type="radio" name="selectedDirectory" value="no" checked>
</label>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><b>所有选中文件</b> <br><code>shift</code>键出现</label>
<div class="col-sm-10">
<label class="radio-inline">
<input type="radio" name="selectedAll" value="">
</label>
<label class="radio-inline">
<input type="radio" name="selectedAll" value="no" checked>
</label>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" id="generateBtn" class="btn btn-primary col-xs-4">生成</button>
</div>
</div>
</form>
<div class="col-sm-12" id="downloadWrap" style="display: none;">
<div>
<a href="register_table_file.zip" download=""><button class="btn btn-success">下载文件</button></a>
</div>
<div class="col-sm-6">
<h5>创建注册表</h5>
<pre id="createRegText"></pre>
</div>
<div class="col-sm-6">
<h5>删除注册表</h5>
<pre id="removeRegText"></pre>
</div>
</div>
</div>

<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
$('#generateBtn').on('click', function (){
var options = [];
var extended = {
1: $('[name="backgroundExtended"]:checked').val(),
2: $('[name="selectedDirectory"]:checked').val(),
3: $('[name="selectedAll"]:checked').val()
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>right-click-menu-front</title><link rel=stylesheet href=https://cdn.bootcss.com/font-awesome/5.8.1/css/all.min.css integrity=sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf crossorigin=anonymous><link rel=stylesheet href=https://cdn.bootcss.com/element-ui/2.6.1/theme-chalk/index.css><link rel=stylesheet href=https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css><link rel=stylesheet href=https://unpkg.com/bootstrap-vue@2.0.0-rc.19/dist/bootstrap-vue.min.css><link rel=stylesheet href=https://unpkg.com/ant-design-vue@1.3.8/dist/antd.min.css><style>label {
margin-bottom: initial
}

$("input[name='option']:checked").each(function(i) {
options[i] = $(this).val();
});

$.ajax({
url: './php/index.php',
type: 'post',
data: {
item_name: $('#itemName').val(),
show_name: $('#showName').val(),
path: $('#path').val(),
icon: $('#icon').val(),
extended: JSON.stringify(extended),
options: JSON.stringify(options)
},
success: function (res){
$('#downloadWrap').show();
res = JSON.parse(res);
$('#createRegText').text(res.create_reg_text);
$('#removeRegText').text(res.remove_reg_text);
}
});
return false;
});
</script>
</body>
</html>
.anticon svg {
vertical-align: initial
}</style><link href=./static/css/app.css rel=stylesheet></head><body class=bg-light><div id=app></div><script src=https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.min.js></script><script src=https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js></script><script src=https://unpkg.com/j-weapons/dist/j-weapons.min.js></script><script src=https://cdn.bootcss.com/vue/2.6.8/vue.min.js></script><script src=https://cdn.bootcss.com/vue-router/3.0.2/vue-router.min.js></script><script src=https://cdn.bootcss.com/element-ui/2.6.1/index.js></script><script src=https://unpkg.com/bootstrap-vue@2.0.0-rc.19/dist/bootstrap-vue.min.js></script><script src=https://unpkg.com/ant-design-vue@1.3.8/dist/antd.min.js></script><script src=https://cdn.bootcss.com/clipboard.js/2.0.4/clipboard.min.js></script><script type=text/javascript src=./static/js/manifest.js></script><script type=text/javascript src=./static/js/vendor.js></script><script type=text/javascript src=./static/js/app.js></script></body></html>
65 changes: 0 additions & 65 deletions php/Business.php

This file was deleted.

71 changes: 0 additions & 71 deletions php/RightClickMenu/HkeyClassesRoot.php

This file was deleted.

Loading

0 comments on commit 31eae58

Please sign in to comment.