Browse Source

unstaged changes

release/v0.1
vineetbhargav86 9 years ago
parent
commit
097751cb82
  1. 12
      iguana/app/startup.js
  2. 55
      iguana/example.js
  3. 668
      iguana/index.html
  4. 5
      iguana/js/api.js
  5. 52
      iguana/manifest.json

12
iguana/app/startup.js

@ -4,7 +4,7 @@ $(function () {
$(".select ").dropdown({ "autoinit ": ".select " }); $(".select ").dropdown({ "autoinit ": ".select " });
startCoinManagement(); startCoinManagement();
startPeerManagement(); //startPeerManagement();
// Event Handlers // Event Handlers
@ -15,10 +15,16 @@ $(function () {
deleteCoin(e.getAttribute('data-id')); deleteCoin(e.getAttribute('data-id'));
} }
else if (e.className && e.className.indexOf('addPeerToFav') != -1) { else if (e.className && e.className.indexOf('addPeerToFav') != -1) {
addPeerToFav(e.getAttribute('data-id')); addPeerToFav(e.getAttribute('data-id'),e.getAttribute('data-coin'));
} }
else if (e.className && e.className.indexOf('removePeerFromFav') != -1) { else if (e.className && e.className.indexOf('removePeerFromFav') != -1) {
removePeerFromFav(e.getAttribute('data-id')); removePeerFromFav(e.getAttribute('data-id'),e.getAttribute('data-coin'));
}else if(e.className && e.className.indexOf('disconnectPeer') != -1){
disconnectPeer(e.getAttribute('data-ip'),e.getAttribute('data-coin'));
}else if(e.className && e.className.indexOf('connectPeer') != -1){
connectPeer(e.getAttribute('data-ip'),e.getAttribute('data-coin'));
} }
}; };
}); });

55
iguana/example.js

@ -10,9 +10,49 @@ function $(id) {
return document.getElementById(id); return document.getElementById(id);
} }
/*
* file system functions
*
*/
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
function errorHandler(e) {
var msg = '';
switch (e.code) {
case FileError.QUOTA_EXCEEDED_ERR:
msg = 'QUOTA_EXCEEDED_ERR';
break;
case FileError.NOT_FOUND_ERR:
msg = 'NOT_FOUND_ERR';
break;
case FileError.SECURITY_ERR:
msg = 'SECURITY_ERR';
break;
case FileError.INVALID_MODIFICATION_ERR:
msg = 'INVALID_MODIFICATION_ERR';
break;
case FileError.INVALID_STATE_ERR:
msg = 'INVALID_STATE_ERR';
break;
default:
msg = 'Unknown Error';
break;
};
console.log('Error: ' + msg);
}
var fileSystem;
function onInitFs(fs) {
console.log('Opened file system: ' + fs.name);
fileSystem = fs;
}
// Called by the common.js module. // Called by the common.js module.
function domContentLoaded(name, tc, config, width, height) { function domContentLoaded(name, tc, config, width, height) {
navigator.webkitPersistentStorage.requestQuota(10000000000, /* navigator.webkitPersistentStorage.requestQuota(10000000000,
function(bytes) { function(bytes) {
common.updateStatus( common.updateStatus(
'Allocated ' + bytes + ' bytes of persistent storage. Running the first time will take 17 seconds to load'); 'Allocated ' + bytes + ' bytes of persistent storage. Running the first time will take 17 seconds to load');
@ -20,6 +60,19 @@ function domContentLoaded(name, tc, config, width, height) {
common.createNaClModule(name, tc, config, width, height); common.createNaClModule(name, tc, config, width, height);
}, },
function(e) { alert('Failed to allocate space') }); function(e) { alert('Failed to allocate space') });
*/
navigator.webkitPersistentStorage.requestQuota(10000000000,
function(bytes){
window.requestFileSystem(PERSISTENT, bytes, onInitFs, errorHandler);
common.updateStatus(
'Allocated ' + bytes + ' bytes of persistent storage. Running the first time will take 17 seconds to load');
common.attachDefaultListeners();
common.createNaClModule(name, tc, config, width, height);
}, function(e){
console.log('Error', e);
});
} }
// Called by the common.js module. // Called by the common.js module.

668
iguana/index.html

@ -1,285 +1,415 @@
<!DOCTYPE HTML> <!DOCTYPE HTML>
<html style="overflow-y:scroll;-webkit-user-select: text">
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<title>iguana</title>
<script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/bootstrap.css" type="text/css">
</head>
<body data-custom-load="true" data-name="iguana" data-tools="pnacl newlib glibc clang-newlib mac" data-configs="Debug Release" data-path="{tc}/{config}">
<div class="iguana">
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<!-- <img alt="Brand" style="z-index:-1;" src="logo.png" width="25" height="25"> -->
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="navigation active" id="welcome" data-page="welcome"><a href="#">Welcome <span class="sr-only">(current)</span></a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">More <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Wiki</a></li>
<li><a href="#">Wallet</a></li>
<li><a href="#">Community</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Contact</a></li>
<li role="separator" class="divider"></li>
<li><a>Upload Conf<input type="file" id="files" name="file" /></a></li>
<div id="byte_range"></div>
<div id="byte_content"></div>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="container">
<div id="welcome_page" class="page" style="text-align: center;">
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">Welcome</div>
<div class="panel-body">
<h2>iguana</h2>
<p>
iguana is fast.
</p>
<p>
iguana does all bitcoin compatibles.
</p>
<p>
iguana is fast.
</p>
</div>
</div>
</div>
<div id="Wallet_page" class="page">
<div class="row" style="margin-bottom:15px;">
<div class="col-xs-4 col-sm-3 col-md-2">
<div class="api-navpills">
</div>
</div>
<div class="col-xs-8 col-sm-9 col-md-10">
<div class="panel-group">
<div class="panel panel-default api-call-All">
<div class="panel-heading">
<h4 class="panel-title api-panel-title">
Panel Title
</h4>
</div> <!-- panel-heading -->
<div class="panel-body">
<div class="row">
<div class="col-xs-9 col-sm-10 col-md-11">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group">
<code class="result json_submit_url" style="word-wrap: break-word">JSONExample</code>
</div>
<div class="form-group">
<button class="btn btn-primary submit_api_request">Submit</button>
</div>
</div>
</div>
</div>
</div>
<hr>
<small>Required input fields are marked green</small>
<div class="row">
<div class="col-xs-6 col-md-6 col-lg-6">
<form class="api_formfill">
</form>
</div>
<div class="col-xs-6 col-md-6 col-lg-6">
<div class="col-xs-12 col-lg-6" style="min-width: 50%;">
<h5 style="margin-top:0px;">
<span style="float:right;" class="uri-link"></span>
Response</h5>
<pre class="hljs json"><code class="result hljs">JSON response</code></pre>
<button class="clear-response btn btn-default">Clear Response</button>
</div>
</div>
</div>
</div> <!-- panel-body -->
</div>
</div>
</div>
</div>
</div>
<div id="iguana_page" class="page">
<div class="row" style="margin-bottom:15px;">
<div class="col-xs-8 col-sm-9 col-md-10">
<div class="panel-group">
<div class="panel panel-default api-call-All">
<div class="panel-heading">
<h4>
JSON API test page
</h4>
</div> <!-- panel-heading -->
<div class="panel-body">
<div class="row">
<div class="col-xs-9 col-sm-10 col-md-11">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group">
<textarea rows="5" cols = "100" id="json_submit_url"></textarea><br><br>
<button class="btn btn-primary submit_api_request">Submit</button>
</div>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-xs-9 col-sm-10 col-md-11">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group">
<pre class="hljs json"><code class="result hljs">JSON response</code></pre>
<button class="clear-response btn btn-default">Clear Response</button>
</div>
</div>
</div>
</div>
</div>
</div> <!-- panel-body -->
</div>
</div>
</div>
</div>
</div>
<!-- eyedea page is for creating front-end markup -->
<div id="eyedea_page" class="page">
<div class="row" style="margin-bottom:15px;">
<div class="col-xs-4 col-sm-3 col-md-2">
<div class="api-navpills">
</div> <html>
</div>
<head>
<title>iguana</title>
<!-- Bootstrap -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/jquery.dropdown.css">
<link rel="stylesheet" type="text/css" href="css/ripples.css">
<div class="col-xs-8 col-sm-9 col-md-10"> <!-- Gogole Theme -->
<link rel="stylesheet" type="text/css" href="css/googleFonts.css">
<div class="panel-group"> <link rel="stylesheet" type="text/css" href="css/googleIcons.css">
<div class="panel panel-default api-call-All"> <link rel="stylesheet" type="text/css" href="css/googleTheme.css">
<div class="panel-heading">
<h4 class="panel-title api-panel-title"> </head>
Json posting form
</h4> <body data-custom-load="true" data-name="iguana" data-tools="pnacl newlib glibc clang-newlib mac" data-configs="Debug Release"
</div> <!-- panel-heading --> data-path="{tc}/{config}">
<div class="panel-body">
<div class="row"> <!-- <div class="jumbotron" style="height:100px;">
<div class="col-xs-9 col-sm-10 col-md-8"> <h> Status: <code id="statusField">NO-STATUS</code></h>
<div class="panel panel-default"> <p>
<div class="panel-body"> <select id="pipe_name" hidden>
<div class="form-group"> <option>urand</option>
<textarea name="json_to_submit" id="json_src" cols="30" rows="5" class="result form-control" placeholder='Paste json here'></textarea> <option>Pangea</option>
</div> <option>MGW</option>
<div class="form-group"> </select>
<button class="btn btn-primary submit_api_request" id='submit_primary'>Submit</button> <input type="text" id="pipe_input_box" hidden>
</div> </p>
<p><textarea id="pipe_output" hidden></textarea></p>
</div> -->
<div class="iguana">
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse">
<!--Hamburger-->
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--<a class="navbar-brand" href="#">
<img alt="Brand" style="z-index:-1;" src="logo.png" width="25" height="25">
</a>-->
<a href="javascript:void(0)" class="navbar-brand">Iguana</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse">
<ul class="nav navbar-nav">
<li id="welcome"><a href="#">Welcome <span class="sr-only">(current)</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">More <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Wiki</a></li>
<li><a href="#">Wallet</a></li>
<li><a href="#">Community</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Contact</a></li>
<li role="separator" class="divider"></li>
<li><a>Upload Conf<input type="file" id="files" name="file" /></a></li>
<div id="byte_range"></div>
<div id="byte_content"></div>
</ul>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<div class="container">
<div id="welcome_page" class="page" style="text-align: center;">
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">Welcome</div>
<div class="panel-body">
<h2>iguana</h2>
<p>
iguana is fast.
</p>
<p>
iguana does all bitcoin compatibles.
</p>
<p>
iguana is fast.
</p>
</div>
</div>
</div>
<!-- eyedea page is for creating front-end markup -->
<div id="eyedea_page" class="page">
<div class="row" style="margin-bottom:15px;">
<div class="col-xs-4 col-sm-3 col-md-2">
<div class="api-navpills">
</div>
</div>
<div class="col-xs-8 col-sm-9 col-md-10">
<div class="panel-group">
<div class="panel panel-default api-call-All">
<div class="panel-heading">
<h4 class="panel-title api-panel-title">Json posting form</h4>
</div>
<!-- panel-heading -->
<div class="panel-body">
<div class="row">
<div class="col-xs-9 col-sm-10 col-md-8">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group">
<textarea name="json_to_submit" id="json_src" cols="30" rows="5" class="result form-control" placeholder='Paste json here'></textarea>
</div>
<div class="form-group">
<button class="btn btn-primary submit_api_request" id='submit_primary'>Submit</button>
</div> </div>
</div> </div>
</div> </div>
<div class="col-xs-6 col-md-4 col-lg-4"> </div>
<div class="panel-body"> <div class="col-xs-6 col-md-4 col-lg-4">
<h5 class='uri-link'>Response</h5> <div class="panel-body">
<pre class="hljs json result"> <h5 class='uri-link'>Response</h5>
JSON response <pre class="hljs json result">JSON response</pre>
</pre> <button class="btn btn-default clear-response">Clear response</button>
<button class="btn btn-default clear-response">Clear response</button>
</div>
</div> </div>
</div> </div>
<hr> </div>
<hr>
<h3>Submitted JSON history <h3>
<button id="clearHistory" style='float: right' class='btn btn-default'> <span>Submitted JSON history</span>
Clear history <button id="clearHistory" style='float: right' class='btn btn-default'>Clear history</button>
</button>
</h3> </h3>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<table class="table" id='submit_history'> <table class="table" id='submit_history'>
<tbody> <tbody>
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</div>
</div> <!-- panel-body -->
</div> </div>
<!-- panel-body -->
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
<div id="Settings_page" class="page">
<div class="panel panel-default">
<div class="panel-heading"> <!--Coin Management Starts-->
<h3 class="panel-title">Settings</h3> <div id="Coins_page" class="page">
</div> <div class="panel panel-default">
<div class="panel-body"> <div class="panel-heading">
<div class="row"> <h3>Coin Management</h3>
<div class="col-xs-6 col-md-6 col-lg-6"> </div>
<div id="agent_settings"></div> <div class="panel-body">
</div>
<div class="col-xs-6 col-md-6 col-lg-6"> <div class="pull-right">
<div id="config_settings"></div> <button id="Coins_reset" class="btn btn-raised" title="Reset">Reset</button>
<div class="function" id="fread" hidden> <button id="Coins_refresh" class="btn btn-raised" title="Refresh">Refresh</button>
<span> <button id="Coins_add" class="btn btn-raised btn-primary" type="button" data-toggle="modal" data-target="#CoinEditModal" title="Add">Add</button>
<select class="file-handle" id="freadHandle"></select> </div>
Count:
<input type="text" id="freadBytes"> <table id="Coins_table" class="table table-hover table-condensed table-bordered ">
<button>fread</button> <thead>
</span> <tr>
</div> <th>Symbol</th>
<div class="function" id="fwrite" hidden> <th>Description</th>
<span> <th>Status</th>
<select class="file-handle" id="fwriteHandle"></select> <th>Action</th>
Data: </tr>
<input type="text" id="fwriteData"> </thead>
<button>fwrite</button> <tbody>
</span> </tbody>
</div> </table>
</div> <!--Modal starts-->
</div> <div class="modal fade" id="CoinEditModal" tabindex="-1" role="dialog" aria-labelledby="editCoinHeader">
<div class="row"> <div class="modal-dialog" role="document">
<div class="col-xs-6 col-md-6 col-lg-6"> <div class="modal-content">
<div class="form-group"> <div class="modal-header">
<button class="btn btn-primary" id="save_settings">Save</button> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
</div> <h4 class="modal-title" id="editCoinHeader">Edit Coin</h4>
</div> </div>
</div> <div class="modal-body">
</div> <div id="coinEditFormContainer">
</div> <form class="form-horizontal" id="frmCoinEdit" name="frmCoinEdit">
</div> <div id="txtSymbolGroup" class="form-group">
<div id="Debug_page" class="page"> <label for="txtSymbol" class="control-label col-xs-2 col-md-2">Symbol</label>
<div class="jumbotron"> <div class="col-xs-10 col-md-10">
<div class="debuglog" hidden> <pre id="log" style="font-weight: bold"></pre></div> <input type="text" id="txtSymbol" name="txtSymbol" class="form-control input-sm" />
</div> </div>
</div> </div>
<div id="listener"></div> <div id="txtDescriptionGroup" class="form-group">
</div> <label for="txtDescription" class="control-label col-xs-2 col-md-2">Description</label>
</div> <div class="col-xs-10 col-md-10">
<input type="text" id="txtDescription" name="txtDescription" class="form-control input-sm" />
<script type="text/javascript" src="js/util.js"></script> <script type="text/javascript" src="js/common.js"></script> </div>
</div>
<div id="ddCoinStatus" class="form-group">
<label for="ddStatus" class="control-label col-xs-2 col-md-2">Status</label>
<div class="col-xs-10 col-md-10">
<select type="text" id="ddStatus" name="ddStatus" class="form-control input-sm"></select>
</div>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button id="btnClearCoinForm" type="button" class="btn btn-raised btn-default" data-dismiss="modal">Nevermind</button>
<button id="btnSaveCoinForm" type="button" class="btn btn-raised btn-primary" data-dismiss="modal">Save</button>
<!-- <button id="btnSaveCoinForm" type="button" class="btn btn-primary">Save</button> -->
</div>
</div>
</div>
</div>
<!--Modal Ends-->
</div>
</div>
</div>
<!--Coin Management Ends-->
<!-- peers tab -->
<div id="Peers_page" class="page">
<div class="row">
<div class="panel panel-default">
<div class="panel-heading">
<h3>
<span>Peer Management</span>
</h3>
</div>
<div class="panel-body">
<div class="pull-right">
<span class="checkbox"><label><input id="cbShowFavoritePeers" type="checkbox"/> Favorites</label></span>
</div>
<table id="peersTable" class="table table-hover table-bordered">
<thead>
<tr>
<th>IP Address</th>
<th>Coin Type</th>
<th>Height</th>
<th>Rank</th>
<th>Favourite </th>
<th>Actions</th>
</tr>
</thead>
<tbody id="peersTableBody"></tbody>
</table>
</div>
</div>
</div>
</div>
<div id="Settings_page" class="page">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Settings</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-6 col-md-6 col-lg-6">
<div id="agent_settings"></div>
</div>
<div class="col-xs-6 col-md-6 col-lg-6">
<div id="config_settings"></div>
<div class="function" id="fread" hidden>
<span>
<select class="file-handle" id="freadHandle"></select>
Count:
<input type="text" id="freadBytes">
<button>fread</button>
</span>
</div>
<div class="function" id="fwrite" hidden>
<span>
<select class="file-handle" id="fwriteHandle"></select>
Data:
<input type="text" id="fwriteData">
<button>fwrite</button>
</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 col-md-6 col-lg-6">
<div class="form-group">
<button class="btn btn-primary" id="save_settings">Save</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="Debug_page" class="page">
<div class="jumbotron">
<table>
<tr >
<td><img src="" height="90" width="90" class="imagAPI" data-id="1" id="dest-imagAPI-1" /></td>
<td><img src="" height="90" width="90" class="imagAPI" data-id="2" id="dest-imagAPI-2"/></td>
<td><img src="" height="90" width="90" class="imagAPI" data-id="3" id="dest-imagAPI-3" /></td>
<td><img src="" height="90" width="90" class="imagAPI" data-id="4" id="dest-imagAPI-4" /></td>
<td><img src="" height="90" width="90" class="imagAPI" data-id="5" id="dest-imagAPI-5" /></td>
<td><img src="" height="90" width="90" class="imagAPI" data-id="6" id="dest-imagAPI-6" /></td>
<td><img src="" height="90" width="90" class="imagAPI" data-id="7" id="dest-imagAPI-7" /></td>
<td><img src="" height="90" width="90" class="imagAPI" data-id="8" id="dest-imagAPI-8" /></td>
<td><img src="" height="90" width="90" class="imagAPI" data-id="9" id="dest-imagAPI-9" /></td>
<td><img src="" height="90" width="90" class="imagAPI" data-id="10" id="dest-imagAPI-10" /></td>
</tr>
<tr>
<td align="center" ><input id="name-imagAPI-1" type="text" value="abc1.jpg" size="7"/></td>
<td align="center" ><input id="name-imagAPI-2" type="text" value="abc2.jpg" size="7"/></td>
<td align="center" ><input id="name-imagAPI-3" type="text" value="abc3.jpg" size="7"/></td>
<td align="center" ><input id="name-imagAPI-4" type="text" value="abc4.jpg" size="7"/></td>
<td align="center" ><input id="name-imagAPI-5" type="text" value="abc5.jpg" size="7"/></td>
<td align="center" ><input id="name-imagAPI-6" type="text" value="abc6.jpg" size="7"/></td>
<td align="center" ><input id="name-imagAPI-7" type="text" value="abc7.jpg" size="7"/></td>
<td align="center" ><input id="name-imagAPI-8" type="text" value="abc8.jpg" size="7"/></td>
<td align="center" ><input id="name-imagAPI-9" type="text" value="abc9.jpg" size="7"/></td>
<td align="center" ><input id="name-imagAPI-10" type="text" value="abc10.jpg" size="7"/></td>
</tr>
<tr style="display: none;">
<td><img src="images/img1.png" height="90" width="90" id="src-imagAPI-1" /></td>
<td><img src="images/img2.jpg" height="90" width="90" id="src-imagAPI-2" /></td>
<td><img src="images/img3.png" height="90" width="90" id="src-imagAPI-3" /></td>
<td><img src="images/img4.png" height="90" width="90" id="src-imagAPI-4" /></td>
<td><img src="images/img1.png" height="90" width="90" id="src-imagAPI-5" /></td>
<td><img src="images/img2.jpg" height="90" width="90" id="src-imagAPI-6" /></td>
<td><img src="images/img3.png" height="90" width="90" id="src-imagAPI-7" /></td>
<td><img src="images/img4.png" height="90" width="90" id="src-imagAPI-8" /></td>
<td><img src="images/img1.png" height="90" width="90" id="src-imagAPI-9" /></td>
<td><img src="images/img2.jpg" height="90" width="90" id="src-imagAPI-10" /></td>
</tr>
<tr><td colspan="10">
<span id="mousexy"></span>
</td>
</tr>
</table>
<div class="debuglog" hidden> <pre id="log" style="font-weight: bold"></pre></div>
</div>
</div>
<div id="Blockexplorer_page" class="page">
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">
<h3>Block Explorer tab</h3>
</div>
<div class="panel-body center">
<h3>Block Explorer</h3>
<p>
Page dedicated to searching blockchain.
</p>
<p>
** Awaiting specific requirements **
</p>
</div>
</div>
<style type="text/css">
#Blockexplorer_page .center {
text-align: center;
}
</style>
</div>
<div id="listener"></div>
</div>
</div>
<!--if android style ripple effect is not working, try temporarily deleting the following line-->
<script type="text/javascript " src="example.js "></script>
<!--jQuery-->
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<!--Bootstrap-->
<script type="text/javascript" src="js/bootstrap.js"></script>
<!--Google Theme-->
<script type="text/javascript" src='js/googleTheme.min.js'></script>
<script type="text/javascript" src='js/ripples.min.js'></script>
<script type="text/javascript" src='js/jquery.dropdown.js'></script>
<!--Iguana genric code-->
<script type="text/javascript" src="js/api.js" " charset="utf-8 "></script>
<script type="text/javascript " src="js/util.js "></script>
<script type="text/javascript " src="js/sites.js " charset="utf-8 "></script>
<script type="text/javascript " src="app/common.js "></script>
<script type="text/javascript " src="app/startup.js " ></script>
<!--Iguana tabs-->
<script src='js/form.js'></script> <script src='js/form.js'></script>
<script type="text/javascript" src="js/example.js"></script> <script src="app/coin_mgmt.js "></script>
<script src="js/bootstrap.js" type="text/javascript"></script> <script src="js/api.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript " src='js/peerlist.js'></script>
<script src="js/methods.js" type="text/javascript" charset="utf-8"></script> <script src="js/sites.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript " src="js/methods.js " charset="utf-8 "></script>
<script src="js/settings.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript " src="js/settings.js " charset="utf-8 "></script>
</body> <script type="text/javascript " src="js/imgAPI.js " ></script>
</body>
</html> </html>

5
iguana/js/api.js

@ -17,7 +17,7 @@ var SPNAPI = (function(SPNAPI, $, undefined) {
/* /*
* added variables for flexibility * added variables for flexibility
*/ */
SPNAPI.usePexe=true; SPNAPI.usePexe=false;
SPNAPI.domain="http://127.0.0.1"; SPNAPI.domain="http://127.0.0.1";
SPNAPI.port="7778"; SPNAPI.port="7778";
$(document).ready(function() { $(document).ready(function() {
@ -36,6 +36,9 @@ var SPNAPI = (function(SPNAPI, $, undefined) {
if(page==="Peers"){ if(page==="Peers"){
peer_resonse=[]; peer_resonse=[];
getPeerList(); getPeerList();
}else if(page==="Debug"){
filesystem_save();
} }
}); });

52
iguana/manifest.json

@ -1,17 +1,41 @@
{ {
"name": "iguana", "name": "SuperNET Iguana",
"uri": "iguana.pexe", // "url": "iguana.pexe",
"short_name": "iguana", "short_name": "iguana",
"version": "44.1.2", "version": "0.0.1",
"manifest_version": 2, "manifest_version": 2,
"description": "iguana", "description": "SuperNET Iguana",
"offline_enabled": true, "offline_enabled": true,
"icons": { "128": "icon128.png" }, "icons": {
"app": "128": "icon128.png"
{ },
"name": "iguana", "app": {
"background": { "scripts": ["background.js"] }, "background": {
"sockets": { "tcp": { "connect": "" }, "tcpServer": { "listen": "127.0.0.1:*" } }, "scripts": [
"permissions": [ "unlimitedStorage", "storage.local" ] "background.js"
]
} }
},
"sockets": {
"tcp": {
"connect": ""
},
"tcpServer": {
"listen": "127.0.0.1:*"
}
},
"permissions": [
"unlimitedStorage",
"nativeMessaging",
// "networking.config",
"dns",
"browser",
// "filesystem",
"storage",
"system.storage",
"system.display",
"system.network",
"system.cpu",
"http://127.0.0.1:7778/"
]
} }

Loading…
Cancel
Save