-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from mpast/dev
Include top 10 mobile risk reference
- Loading branch information
Showing
22 changed files
with
1,453 additions
and
34 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by Django 3.2.2 on 2021-05-09 12:08 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('app', '0002_scan_task'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Risk', | ||
fields=[ | ||
('risk', models.IntegerField(primary_key=True, serialize=False)), | ||
('description', models.TextField()), | ||
('reference', models.TextField()), | ||
('created_on', models.DateTimeField(auto_now_add=True, null=True)), | ||
('updated_on', models.DateTimeField(auto_now=True, null=True)), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='finding', | ||
name='risk', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='app.risk'), | ||
), | ||
migrations.AddField( | ||
model_name='pattern', | ||
name='default_risk', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='app.risk'), | ||
), | ||
] |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* @fileOverview CSS for jquery-autocomplete, the jQuery Autocompleter | ||
* @author <a href="mailto:[email protected]">Dylan Verheul</a> | ||
* @license MIT | GPL | Apache 2.0, see LICENSE.txt | ||
* @see https://github.com/dyve/jquery-autocomplete | ||
*/ | ||
.acResults { | ||
padding: 0px; | ||
border: 1px solid WindowFrame; | ||
background-color: Window; | ||
overflow: hidden; | ||
} | ||
|
||
.acResults ul { | ||
margin: 0px; | ||
padding: 0px; | ||
list-style-position: outside; | ||
list-style: none; | ||
} | ||
|
||
.acResults ul li { | ||
margin: 0px; | ||
padding: 2px 5px; | ||
cursor: pointer; | ||
display: block; | ||
font: menu; | ||
font-size: 12px; | ||
overflow: hidden; | ||
} | ||
|
||
.acLoading { | ||
background : url('../img/indicator.gif') right center no-repeat; | ||
} | ||
|
||
.acSelect { | ||
background-color: Highlight; | ||
color: HighlightText; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,119 @@ | ||
/** | ||
* Ajax Queue Plugin | ||
* | ||
* Homepage: http://jquery.com/plugins/project/ajaxqueue | ||
* Documentation: http://docs.jquery.com/AjaxQueue | ||
*/ | ||
|
||
/** | ||
<script> | ||
$(function(){ | ||
jQuery.ajaxQueue({ | ||
url: "test.php", | ||
success: function(html){ jQuery("ul").append(html); } | ||
}); | ||
jQuery.ajaxQueue({ | ||
url: "test.php", | ||
success: function(html){ jQuery("ul").append(html); } | ||
}); | ||
jQuery.ajaxSync({ | ||
url: "test.php", | ||
success: function(html){ jQuery("ul").append("<b>"+html+"</b>"); } | ||
}); | ||
jQuery.ajaxSync({ | ||
url: "test.php", | ||
success: function(html){ jQuery("ul").append("<b>"+html+"</b>"); } | ||
}); | ||
}); | ||
</script> | ||
<ul style="position: absolute; top: 5px; right: 5px;"></ul> | ||
*/ | ||
/* | ||
* Queued Ajax requests. | ||
* A new Ajax request won't be started until the previous queued | ||
* request has finished. | ||
*/ | ||
|
||
/* | ||
* Synced Ajax requests. | ||
* The Ajax request will happen as soon as you call this method, but | ||
* the callbacks (success/error/complete) won't fire until all previous | ||
* synced requests have been completed. | ||
*/ | ||
|
||
|
||
(function(jQuery) { | ||
|
||
var ajax = jQuery.ajax; | ||
|
||
var pendingRequests = {}; | ||
|
||
var synced = []; | ||
var syncedData = []; | ||
|
||
jQuery.ajax = function(settings) { | ||
// create settings for compatibility with ajaxSetup | ||
settings = jQuery.extend(settings, jQuery.extend({}, jQuery.ajaxSettings, settings)); | ||
|
||
var port = settings.port; | ||
|
||
switch(settings.mode) { | ||
case "abort": | ||
if ( pendingRequests[port] ) { | ||
pendingRequests[port].abort(); | ||
} | ||
return pendingRequests[port] = ajax.apply(this, arguments); | ||
case "queue": | ||
var _old = settings.complete; | ||
settings.complete = function(){ | ||
if ( _old ) | ||
_old.apply( this, arguments ); | ||
jQuery([ajax]).dequeue("ajax" + port );; | ||
}; | ||
|
||
jQuery([ ajax ]).queue("ajax" + port, function(){ | ||
ajax( settings ); | ||
}); | ||
return; | ||
case "sync": | ||
var pos = synced.length; | ||
|
||
synced[ pos ] = { | ||
error: settings.error, | ||
success: settings.success, | ||
complete: settings.complete, | ||
done: false | ||
}; | ||
|
||
syncedData[ pos ] = { | ||
error: [], | ||
success: [], | ||
complete: [] | ||
}; | ||
|
||
settings.error = function(){ syncedData[ pos ].error = arguments; }; | ||
settings.success = function(){ syncedData[ pos ].success = arguments; }; | ||
settings.complete = function(){ | ||
syncedData[ pos ].complete = arguments; | ||
synced[ pos ].done = true; | ||
|
||
if ( pos == 0 || !synced[ pos-1 ] ) | ||
for ( var i = pos; i < synced.length && synced[i].done; i++ ) { | ||
if ( synced[i].error ) synced[i].error.apply( jQuery, syncedData[i].error ); | ||
if ( synced[i].success ) synced[i].success.apply( jQuery, syncedData[i].success ); | ||
if ( synced[i].complete ) synced[i].complete.apply( jQuery, syncedData[i].complete ); | ||
|
||
synced[i] = null; | ||
syncedData[i] = null; | ||
} | ||
}; | ||
} | ||
return ajax.apply(this, arguments); | ||
}; | ||
|
||
})((typeof window.jQuery == 'undefined' && typeof window.django != 'undefined') | ||
? django.jQuery | ||
: jQuery | ||
); |
Oops, something went wrong.