mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-21 06:45:24 -06:00
fix: default parameters + int type
This commit is contained in:
parent
bd588029e2
commit
7d6f520718
2 changed files with 5 additions and 5 deletions
|
|
@ -42,7 +42,7 @@ class Restore(Resource):
|
|||
parser = api.parser()
|
||||
parser.add_argument('pass', type=str, help='Password to use for encrypted backups')
|
||||
parser.add_argument('format', type=str, help='Returning archive format')
|
||||
parser.add_argument('strip', type=int, help='Number of elements to strip in the path')
|
||||
parser.add_argument('strip', type=int, required=True, help='Number of elements to strip in the path', default=0)
|
||||
parser.add_argument('list', type=str, required=True, help='List of files/directories to restore (example: \'{"restore":[{"folder":true,"key":"/etc"}]}\')')
|
||||
|
||||
@api.doc(
|
||||
|
|
@ -220,9 +220,9 @@ class ScheduleRestore(Resource):
|
|||
"""
|
||||
parser = api.parser()
|
||||
parser.add_argument('list-sc', type=str, required=True, help='List of files/directories to restore (example: \'{"restore":[{"folder":true,"key":"/etc"}]}\')')
|
||||
parser.add_argument('strip-sc', type=int, help='Number of elements to strip in the path')
|
||||
parser.add_argument('strip-sc', type=int, required=True, help='Number of elements to strip in the path', default=0)
|
||||
parser.add_argument('prefix-sc', type=str, help='Prefix to the restore path')
|
||||
parser.add_argument('force-sc', type=bool, help='Whether to overwrite existing files')
|
||||
parser.add_argument('force-sc', type=bool, help='Whether to overwrite existing files', default=False)
|
||||
parser.add_argument('restoreto-sc', type=str, help='Restore files on an other client')
|
||||
|
||||
@api.doc(
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
<button type="submit" class="btn btn-info" id="perform"><span class="glyphicon glyphicon-cloud-download"></span> Download selected files</button>
|
||||
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||
<ul class="dropdown-menu browse">
|
||||
<li><label for="strip">Number of leading path components to strip: </label><input type="text" id="strip" name="strip" placeholder="0" autocomplete="off" maxlength="2" size="2"></li>
|
||||
<li><label for="strip">Number of leading path components to strip: </label><input type="text" id="strip" name="strip" placeholder="0" autocomplete="off" maxlength="2" size="2" value="0"></li>
|
||||
<li><label for="format">Archive format: </label><select id="format" name="format" style="color: #000;"><option>zip</option><option>tar.gz</option><option>tar.bz2</option></select></li>
|
||||
<li><label for="pass">Encryption password: </label><input type="password" id="pass" name="pass" placeholder="password" autocomplete="off" size="20"></li>
|
||||
</ul>
|
||||
|
|
@ -93,7 +93,7 @@
|
|||
<button type="submit" class="btn btn-info" id="perform-schedule"><span class="glyphicon glyphicon-cloud-upload"></span> Schedule restore</button>
|
||||
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||
<ul class="dropdown-menu dropdown-menu-right browse">
|
||||
<li><label for="strip-sc">Number of leading path components to strip: </label><input type="text" id="strip-sc" name="strip-sc" placeholder="0" autocomplete="off" maxlength="2" size="2"></li>
|
||||
<li><label for="strip-sc">Number of leading path components to strip: </label><input type="text" id="strip-sc" name="strip-sc" placeholder="0" autocomplete="off" maxlength="2" size="2" value="0"></li>
|
||||
<li><label for="prefix-sc">Prefix to the restore path: </label><input type="text" id="prefix-sc" name="prefix-sc" placeholder="prefix" autocomplete="off"></li>
|
||||
<li><label for="restoreto-sc">Restore files on an other client: </label><input type="text" id="restoreto-sc" name="restoreto-sc" placeholder="name" autocomplete="off"></li>
|
||||
<li><label for="force-sc">Whether to overwrite existing files: </label><input type="checkbox" id="force-sc" name="force-sc"></li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue