Skip to content

Commit

Permalink
Merge pull request #73 from PidgeyL/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
PidgeyL committed Feb 25, 2015
2 parents ed09a5f + 0157f76 commit 32bdb8b
Show file tree
Hide file tree
Showing 20 changed files with 78 additions and 9,333 deletions.
470 changes: 0 additions & 470 deletions web/static/css/bootstrap-theme.css

This file was deleted.

1 change: 0 additions & 1 deletion web/static/css/bootstrap-theme.css.map

This file was deleted.

5 changes: 0 additions & 5 deletions web/static/css/bootstrap-theme.min.css

This file was deleted.

6,332 changes: 0 additions & 6,332 deletions web/static/css/bootstrap.css

This file was deleted.

1 change: 0 additions & 1 deletion web/static/css/bootstrap.css.map

This file was deleted.

Binary file added web/static/flash/ZeroClipboard.swf
Binary file not shown.
10 changes: 10 additions & 0 deletions web/static/js/ZeroClipboard.min.js

Large diffs are not rendered by default.

2,320 changes: 0 additions & 2,320 deletions web/static/js/bootstrap.js

This file was deleted.

24 changes: 24 additions & 0 deletions web/static/js/custom/cve.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
function copyToClipboard() {
var oTable = document.getElementById('cveInfo');
var rowLength = oTable.rows.length;
var text = ""
for (i = 0; i < rowLength; i++){
var oCells = oTable.rows.item(i).cells;
var cellLength = oCells.length;
var attribute = oCells.item(0).innerHTML;
var value = oCells.item(1).innerHTML;
var toAdd = attribute + ": \t" + value;
text = text + toAdd + "\n";
}
text = text.replace(/<\/?[^>]+(>|$)/g, "");
text = text.replace(/\n\s+\n/g, "\n");
text = text.trim();
return text;
}

jQuery(document).ready(function() {
jQuery('.colfield').on('click', function (event) {
if (event.target !== this) return;
Expand All @@ -6,3 +24,9 @@ jQuery(document).ready(function() {
})
});

$(document).ready(function() {
var client = new ZeroClipboard($("#copy-button"), {
moviePath: "/static/js/ZeroClipboard.swf"
});
client.setText(copyToClipboard());
});
13 changes: 0 additions & 13 deletions web/static/js/npm.js

This file was deleted.

21 changes: 2 additions & 19 deletions web/templates/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,12 @@
<html lang="en">
<head>
<title>Admin page</title>
<!-- metadata -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Common Vulnerability Exposure most recent entries"/>
<meta name="author" content="http://github.com/adulau/cve-search - cve-search"/>
<meta name="author" content="http://github.com/pidgeyl/cve-search - cve-search"/>

<!-- defaults -->
{% include 'defaultHead.html' %}
<!-- css -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/style.css" rel="stylesheet" />
<link href="/static/css/custom/admin.css" rel="stylesheet" />

<!-- favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico" />

<!-- javascript -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/custom/scripts.js"></script>
<script type="text/javascript" src="/static/js/custom/admin.js"></script>
</head>

Expand Down
24 changes: 2 additions & 22 deletions web/templates/browse.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,8 @@
<html lang="en">
<head>
<title>Vendor browsing</title>
<!-- metadata -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Common Vulnerability Exposure most recent entries"/>
<meta name="author" content="http://github.com/adulau/cve-search - cve-search"/>
<meta name="author" content="http://github.com/pidgeyl/cve-search - cve-search"/>

<!-- css -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/style.css" rel="stylesheet" />

<!-- favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico" />

<!-- javascript -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/custom/scripts.js"></script>
<!-- defaults -->
{% include 'defaultHead.html' %}
</head>

<body>
Expand Down
31 changes: 6 additions & 25 deletions web/templates/cve.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,10 @@
<html lang="en">
<head>
<title>{{cve['id']}} - {{cve['summary'][:100]}}</title>
<!-- metadata -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Common Vulnerability Exposure most recent entries"/>
<meta name="author" content="http://github.com/adulau/cve-search - cve-search"/>
<meta name="author" content="http://github.com/pidgeyl/cve-search - cve-search"/>
-
<!-- css -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/style.css" rel="stylesheet" />

<!-- favicon -->
<link rel="apple-touch-glyphicon-precomposed" sizes="144x144" href="href" static="static" img="img" apple-touch-glyphicon-144-precomposed.png="apple-touch-glyphicon-144-precomposed.png"/>
<link rel="apple-touch-glyphicon-precomposed" sizes="72x72" href="/static/img/apple-touch-glyphicon-72-precomposed.png"/>
<link rel="apple-touch-glyphicon-precomposed" href="/static/img/apple-touch-glyphicon-57-precomposed.png"/>
<link rel="shortcut icon" href="/static/img/favicon.ico" />

<!-- defaults -->
{% include 'defaultHead.html' %}
<!-- javascript -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/custom/scripts.js"></script>
<script type="text/javascript" src="/static/js/ZeroClipboard.min.js"></script>
<script type="text/javascript" src="/static/js/custom/cve.js"></script>
</head>

Expand All @@ -45,7 +24,9 @@
<li class="active">{{cve['id']}}</li>
</ol>
<!-- CVE -->
<table class="table table-hover table-striped">

<input type="button" id="copy-button" name="copy" value="Copy to Clipboard" />
<table id="cveInfo" class="table table-hover table-striped">
<tbody>
<tr>
<td class="warning">ID</td>
Expand Down
22 changes: 22 additions & 0 deletions web/templates/defaultHead.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- metadata -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Common Vulnerability Exposure most recent entries"/>
<meta name="author" content="http://github.com/adulau/cve-search - cve-search"/>
<meta name="author" content="http://github.com/pidgeyl/cve-search - cve-search"/>

<!-- css -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/style.css" rel="stylesheet" />

<!-- favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico" />

<!-- javascript -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/custom/scripts.js"></script>
20 changes: 2 additions & 18 deletions web/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,13 @@
<html lang="en">
<head>
<title>Common Vulnerability Exposure most recent entries</title>
<!-- metadata -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Common Vulnerability Exposure most recent entries"/>
<meta name="author" content="http://github.com/adulau/cve-search - cve-search"/>
<meta name="author" content="http://github.com/pidgeyl/cve-search - cve-search"/>
<!-- defaults -->
{% include 'defaultHead.html' %}

<!-- css -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/style.css" rel="stylesheet" />
<link href="/static/css/custom/filter.css" rel="stylesheet" />

<!-- favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico" />

<!-- javascript -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/custom/scripts.js"></script>
<script type="text/javascript" src="/static/js/custom/filter.js"></script>
<script type="text/javascript">
function setSettings(){
Expand Down
22 changes: 2 additions & 20 deletions web/templates/linked.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,11 @@
<html lang="en">
<head>
<title>CVE's linked by {{field}}</title>
<!-- metadata -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Common Vulnerability Exposure most recent entries"/>
<meta name="author" content="http://github.com/adulau/cve-search - cve-search"/>
<meta name="author" content="http://github.com/pidgeyl/cve-search - cve-search"/>
<!-- defaults -->
{% include 'defaultHead.html' %}

<!-- css -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/style.css" rel="stylesheet" />
<link href="/static/css/custom/filter.css" rel="stylesheet" />

<!-- favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico" />

<!-- javascript -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/custom/scripts.js"></script>
</head>

<body>
Expand Down
23 changes: 2 additions & 21 deletions web/templates/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,9 @@
<html lang="en">
<head>
<title>{{ listType }} management</title>
<!-- metadata -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Common Vulnerability Exposure most recent entries"/>
<meta name="author" content="http://github.com/adulau/cve-search - cve-search"/>
<meta name="author" content="http://github.com/pidgeyl/cve-search - cve-search"/>

<!-- css -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/style.css" rel="stylesheet" />

<!-- favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico" />

<!-- defaults -->
{% include 'defaultHead.html' %}
<!-- javascript -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/custom/scripts.js"></script>
<script type="text/javascript">
var editedCPE
function addItem() {
Expand Down
23 changes: 2 additions & 21 deletions web/templates/listmanagement.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,9 @@
<html lang="en">
<head>
<title>CPE browser</title>
<!-- metadata -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Common Vulnerability Exposure most recent entries"/>
<meta name="author" content="http://github.com/adulau/cve-search - cve-search"/>
<meta name="author" content="http://github.com/pidgeyl/cve-search - cve-search"/>

<!-- css -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/style.css" rel="stylesheet" />

<!-- favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico" />

<!-- defaults -->
{% include 'defaultHead.html' %}
<!-- javascript -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/custom/scripts.js"></script>
<script type="text/javascript">
function addCPE(list, item){
var url = "/admin/listmanagement/add";
Expand Down
25 changes: 2 additions & 23 deletions web/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,8 @@
<html lang="en">
<head>
<title>Login page</title>
<!-- metadata -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Common Vulnerability Exposure most recent entries"/>
<meta name="author" content="http://github.com/adulau/cve-search - cve-search"/>
<meta name="author" content="http://github.com/pidgeyl/cve-search - cve-search"/>

<!-- css -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/style.css" rel="stylesheet" />

<!-- favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico" />

<!-- javascript -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/custom/scripts.js"></script>
<script type="text/javascript" src="/static/js/custom/admin.js"></script>
<!-- defaults -->
{% include 'defaultHead.html' %}
</head>

<body>
Expand Down
24 changes: 2 additions & 22 deletions web/templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,8 @@
<html lang="en">
<head>
<title>Vendor browsing</title>
<!-- metadata -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Common Vulnerability Exposure most recent entries"/>
<meta name="author" content="http://github.com/adulau/cve-search - cve-search"/>
<meta name="author" content="http://github.com/pidgeyl/cve-search - cve-search"/>

<!-- css -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
<link href="/static/css/style.css" rel="stylesheet" />

<!-- favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico" />

<!-- javascript -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/js/custom/scripts.js"></script>
<!-- defaults -->
{% include 'defaultHead.html' %}
</head>

<body>
Expand Down

0 comments on commit 32bdb8b

Please sign in to comment.