This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
<meta name="keywords" content="static code scan"> | ||
<meta name="description" content="Cobra is a code static security scan system"> | ||
<meta name="author" content="Feei <[email protected]>"> | ||
<title>Cobra - Static Code security scan & analyse</title> | ||
<title>Cobra - 自动化静态代码安全审计系统</title> | ||
|
||
<!-- Favicon--> | ||
<link rel="shortcut icon" href="{{ url_for('static', filename='ico/favicon.ico') }}" type="image/x-icon"> | ||
|
@@ -67,12 +67,11 @@ | |
<div id="top_line"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-6 col-sm-6 col-xs-6"><i class="icon-clock"></i><strong>Static Code security scan & | ||
analyse</strong></div> | ||
<div class="col-md-6 col-sm-6 col-xs-6"><i class="icon-clock"></i><strong>自动化静态代码安全审计系统</strong></div> | ||
|
||
<div class="col-md-6 col-sm-6 col-xs-6"> | ||
<ul id="top_links"> | ||
<li><a href="/admin/index">Manage</a></li> | ||
<li><a href="/admin/index">管理后台</a></li> | ||
</ul> | ||
</div> | ||
</div><!-- End row --> | ||
|
@@ -83,10 +82,10 @@ | |
<div class="row"> | ||
<div class="col-md-3 col-sm-3 col-xs-3"> | ||
<div id="logo"> | ||
<a href="index.html"><img src="{{ url_for('static', filename='img/logo.png') }}" width="160" | ||
height="34" alt="City tours" data-retina="true" class="logo_normal"></a> | ||
<a href="index.html"><img src="{{ url_for('static', filename='img/logo_sticky.png') }}" width="160" | ||
height="34" alt="City tours" data-retina="true" class="logo_sticky"></a> | ||
<a href="/"><img src="{{ url_for('static', filename='img/logo.png') }}" width="160" | ||
height="34" alt="City tours" data-retina="true" class="logo_normal"></a> | ||
<a href="/"><img src="{{ url_for('static', filename='img/logo_sticky.png') }}" width="160" | ||
height="34" alt="City tours" data-retina="true" class="logo_sticky"></a> | ||
</div> | ||
</div> | ||
</div> | ||
|
@@ -96,47 +95,44 @@ | |
<section id="search_container"> | ||
<div id="search"> | ||
<ul class="nav nav-tabs"> | ||
<li class="active"><a href="#config" data-toggle="tab">Git/SVN</a></li> | ||
<li><a href="#log" data-toggle="tab">Upload</a></li> | ||
{# <li><a href="#report" data-toggle="tab">Gitlab AccessToken</a></li>#} | ||
<li class="active"><a href="#config" data-toggle="tab">扫描Git/SVN项目或本地项目</a></li> | ||
<li><a href="#log" data-toggle="tab">上传压缩包扫描</a></li> | ||
</ul> | ||
|
||
<div class="tab-content"> | ||
<div class="tab-pane active" id="config"> | ||
<h3>Github/Gitlab/Subversion Repository</h3> | ||
<h3>Github/Gitlab/Subversion仓库地址</h3> | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<div class="col-md-12" style="padding-left:0;padding-right:0;"> | ||
<div class="form-group"> | ||
<label>GIT/SVN Repository</label> | ||
<input type="text" class="form-control" name="repository" | ||
placeholder="Type your gitlab/github/subversion repository url"> | ||
<label>GIT/SVN仓库地址(.git结尾)或者本地项目路径</label> | ||
<input type="text" class="form-control" name="repository" placeholder="例子:http://github.com/wufeifei/grw.git 或 /home/Feei/project_name"> | ||
</div> | ||
</div> | ||
<div class="col-md-12" style="padding-left:0;padding-right:0;"> | ||
<div class="form-group"> | ||
<label>Gitlab Branch</label> | ||
<input type="text" class="form-control" name="branch" | ||
placeholder="Type your branch;Default master" value="master"> | ||
<label>Gitlab分支</label> | ||
<input type="text" class="form-control" name="branch" placeholder="默认为master,可不填写" value="master"> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="form-group"> | ||
<label><i class="icon-backward"></i> Old Version</label> | ||
<input name="old_version" class="form-control" type="text"> | ||
<label><i class="icon-backward"></i> 老版本号</label> | ||
<input name="old_version" class="form-control" type="text" placeholder="可选"> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="form-group"> | ||
<label><i class="icon-forward-3"></i> New Version</label> | ||
<input name="new_version" class="form-control" type="text"> | ||
<label><i class="icon-forward-3"></i> 新版本号</label> | ||
<input name="new_version" class="form-control" type="text" placeholder="可选"> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-4"> | ||
<div class="col-md-12" style="padding-left:0;padding-right:0;"> | ||
<div class="form-group"> | ||
<label>Recently Scan SVN/GIT Project</label> | ||
<label>最近扫描的项目</label> | ||
<ul class="list_ok"> | ||
{% for task in data.recently_tasks %} | ||
<li><a>{{ task.target }}</a></li> | ||
|
@@ -149,27 +145,24 @@ <h3>Github/Gitlab/Subversion Repository</h3> | |
</div> | ||
</div><!-- End row --> | ||
<hr> | ||
<button class="btn_1 green" id="scan"><i class="icon-search"></i>Scan now</button> | ||
<button class="btn_1 green" id="scan"><i class="icon-search"></i>扫描</button> | ||
</div><!-- End rab --> | ||
<div class="tab-pane" id="log"> | ||
<h3>Select compress file to upload</h3> | ||
<h3>选择一个压缩包扫描</h3> | ||
<div class="col-md-12"> | ||
<div class="box_style_2" id="dropbox"> | ||
<i class="icon-upload-cloud"></i> | ||
<h4><span>Drag and Drop</span> File Uploading</h4> | ||
<h4><span>拖拽</span>文件上传</h4> | ||
<div align="center" id="selectFile"></div> | ||
<hr> | ||
<input type="file" class="btn_1" id="uploadFile" name="file" style="width: 100%;"> | ||
<small>Support Extensions: {{ data.extensions }}</small> | ||
<small>支持上传的后缀: {{ data.extensions }}</small> | ||
<div id="progress"> | ||
<div class="bar"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="tab-pane" id="report"> | ||
<h3>TODO</h3> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|