mirror of https://gitee.com/bigwinds/arangodb
485 lines
21 KiB
HTML
485 lines
21 KiB
HTML
<html>
|
|
|
|
<head>
|
|
<title>WebAdmin</title>
|
|
<style type="text/css" title="screen">
|
|
@import "css/layout.css";
|
|
@import "css/jquery.snippet.css";
|
|
@import "css/jquery-ui-1.8.19.custom.css";
|
|
@import "css/jquery.dataTables_themeroller.css";
|
|
</style>
|
|
<script type="text/javascript" language="javascript" src="js/jquery-1.7.2.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/jquery.snippet.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/json2.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/jquery.sha256.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/jquery.layout-latest.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/jquery.address-1.4.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/jquery.dataTables.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/jquery.jeditable.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/master.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/print.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/avocsh1.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/modules/simple-query-basics.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/modules/simple-query.js"></script>
|
|
<script type="text/javascript" language="javascript" src="js/client.js"></script>
|
|
<!-- <script type="text/javascript" language="javascript" src="js/jsunity.js"></script> -->
|
|
<!-- <script type="text/javascript" language="javascript" src="js/test.js"></script> -->
|
|
<style>
|
|
a:link {color: #797979; text-decoration: none;}
|
|
a:visited {color: #797979; text-decoration: none;}
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="header" class="ui-layout-north">
|
|
<div id="menue" class="ui-layout-north">
|
|
|
|
<div id="menue-left">
|
|
<a href="/_admin/html/index.html"><img src="../html/media/images/ArangoDB_Logo.png"></a>
|
|
</div>
|
|
|
|
<div id="menue-right">
|
|
<button class="minimal" id="Collections">Collections</button>
|
|
<button class="minimal" id="Query">Query</button>
|
|
<button class="minimal" id="AvocSH">Shell</button>
|
|
<button class="minimal" id="Logs">Logs</button>
|
|
<button class="minimal" id="Configuration">Configuration</button>
|
|
<a href="http://www.arangodb.org/manuals/" target="_blank"><button class="minimal" id="Documentation">Documentation</button></a>
|
|
</div>
|
|
|
|
</div>
|
|
<div id="brotkruemelnavi" class="ui-layout-south">
|
|
<a id="nav1" class="nonhighlighted"></a>
|
|
<a id="nav2" class="nonhighlighted"></a>
|
|
<a id="nav3" class="nonhighlighted"></a>
|
|
<a id="nav4" class="nonhighlighted"></a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="centerView" class="ui-layout-center" class="ui-layout-content">
|
|
<div id="collectionsView">
|
|
<button class="toolbar enabled" id="createCollection">
|
|
<img src="/_admin/html/media/icons/round_plus_icon16.png" width="16" height="16">
|
|
<a>New Collection</a>
|
|
</button>
|
|
<button class="toolbar enabled" id="refreshCollections">
|
|
<img src="/_admin/html/media/icons/refresh_icon16.png" width="16" height="16">
|
|
<a>Refresh</a>
|
|
</button>
|
|
<table cellpadding="0" cellspacing="0" border="0" class="display" id="collectionsTableID" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>ID</th>
|
|
<th>Name</th>
|
|
<th>Status</th>
|
|
<th>Size Documents</th>
|
|
<th>Number of Documents</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="subCenterView">
|
|
|
|
<div id="createCollectionView" style="display: none">
|
|
<button class="minimal enabled" id="saveNewCollection">
|
|
<img src="/_admin/html/media/icons/save_icon16.png" width="16" height="16">
|
|
<a>Save Collection</a>
|
|
</button>
|
|
<button class="minimal enabled" id="cancelNewCollection">
|
|
<img src="/_admin/html/media/icons/cancel_icon16.png" width="16" height="16">
|
|
<a>Cancel</a>
|
|
</button>
|
|
<br></br>
|
|
<table cellpadding="3" cellspacing="0" border="0">
|
|
<tr><td>Name:</td>
|
|
<td>
|
|
<input type="text" class="smallInput" id="createCollName"></input>
|
|
</td>
|
|
<td class="longTD">New collection name.</td>
|
|
</tr>
|
|
</tr>
|
|
<tr><td>journalSize:</td></td>
|
|
<td>
|
|
<input type="text" onkeypress='validate(event)' class="smallInput" id="createCollSize"></input>
|
|
</td>
|
|
<td class="longTD">
|
|
(MB) The maximal size of a journal or datafile. Note that this also limits the maximal size of a single object. Must be at least 1MB.
|
|
</td></tr>
|
|
<tr><td>waitForSync:</td><td>
|
|
<form action="#" id="waitForSyncForm">
|
|
<input type="radio" name="waitForSync" value=true>yes</input>
|
|
<input type="radio" name="waitForSync" value=false checked>no</input>
|
|
</form>
|
|
</td>
|
|
<td class="longTD">If true then the data is synchronised to disk before returning from a create or update of an document.
|
|
</td>
|
|
</tr>
|
|
<tr><td>isSystem:</td><td>
|
|
<form action="#" id="isSystemForm">
|
|
<input type="radio" name="isSystem" value=true>yes</input>
|
|
<input type="radio" name="isSystem" value=false checked>no</input>
|
|
</form>
|
|
</td>
|
|
<td class="longTD">If true, create a system collection. In this case collection-name should start with an underscore.
|
|
</td>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="editCollectionView" style="display: none">
|
|
<button class="minimal enabled" id="saveEditedCollection">
|
|
<img src="/_admin/html/media/icons/doc_plus_icon16.png" width="16" height="16">
|
|
<a>Save Collection</a>
|
|
</button>
|
|
<br></br>
|
|
<table cellpadding="3" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="first" align="left">Name:</td>
|
|
<td class="longTD"><input id="editCollectionName" type="text" placeholder="unknown" name="username"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="first" align="left">ID:</td>
|
|
<td id="editCollectionID">unknown</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="first" align="left">Status:</td>
|
|
<td id="editCollectionStatus">unknown</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="documentsView" style="display: none">
|
|
<button class="minimal enabled" id="addDocumentButton">
|
|
<img src="/_admin/html/media/icons/doc_plus_icon16.png" width="16" height="16">
|
|
<a>Add Document</a>
|
|
</button>
|
|
|
|
<form id="uploadFile" action="/_api/import/?collection=...&createCollection=false" method=POST enctype="multipart/form-data">
|
|
<input type="submit" value="Import" />
|
|
<input type="file" name="filename" />
|
|
</form>
|
|
|
|
<table cellpadding="0" cellspacing="0" border="0" class="display" id="documentsTableID" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>_id</th>
|
|
<th>_rev</th>
|
|
<th>Content</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<div id="documentsToolbar">
|
|
|
|
<div class="floatLeft">
|
|
<a id="documents_status">Showing</a>
|
|
</div>
|
|
|
|
<div class="floatRight">
|
|
<form id="docPageForm">
|
|
Jump to: <input type="text" id="docPageInput" placeholder="Page"></input>
|
|
<button id="submitDocPageInput">Ok</button>
|
|
</form>
|
|
<button class="enabled" id="documents_first"><img src="/_admin/html/media/icons/rnd_br_last_icon16.png"></button>
|
|
<button class="enabled" id="documents_prev"><img src="/_admin/html/media/icons/rnd_br_next_icon16.png"></button>
|
|
<button class="enabled" id="documents_next"><img src="/_admin/html/media/icons/rnd_br_prev_icon16.png"></button>
|
|
<button class="enabled" id="documents_last"><img src="/_admin/html/media/icons/rnd_br_first_icon16.png"></button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="documentEditView" style="display: none">
|
|
<button class="minimal enabled" id="saveEditedDocButton">
|
|
<img src="/_admin/html/media/icons/save_icon16.png" width="16" height="16">
|
|
<a>Save Document</a>
|
|
</button>
|
|
<button class="minimal enabled" id="addEditedDocRowButton">
|
|
<img src="/_admin/html/media/icons/round_plus_icon16.png" width="16" height="16">
|
|
<a>Add row</a>
|
|
</button>
|
|
<button class="minimal enabled" id="toggleEditedDocButton">
|
|
<img src="/_admin/html/media/icons/doc_edit_icon16.png" width="16" height="16">
|
|
<a id="toggleEditedDocButtonText">Edit Source</a>
|
|
</button>
|
|
<div id="documentEditTableView">
|
|
<table cellpadding="0" cellspacing="0" border="0" class="display" id="documentEditTableID" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Key</th>
|
|
<th>Value</th>
|
|
<th>type</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="documentEditSourceView" style="display: none">
|
|
<textarea id="documentEditSourceBox" class="editBox"></textarea>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="newDocumentView" style="display: none">
|
|
|
|
<div id="newDocumentTableView">
|
|
<button class="minimal enabled" id="saveNewDocButton">
|
|
<img src="/_admin/html/media/icons/save_icon16.png" width="16" height="16">
|
|
<a>Save Document</a>
|
|
</button>
|
|
<button class="minimal enabled" id="addNewDocButton">
|
|
<img src="/_admin/html/media/icons/round_plus_icon16.png" width="16" height="16">
|
|
<a>Add row</a>
|
|
</button>
|
|
<button class="minimal enabled" id="toggleNewDocButton">
|
|
<img src="/_admin/html/media/icons/doc_edit_icon16.png" width="16" height="16">
|
|
<a id="toggleNewDocButtonText">Edit Source</a>
|
|
</button>
|
|
<div id="NewDocumentTableView">
|
|
<table cellpadding="0" cellspacing="0" border="0" class="display" id="NewDocumentTableID" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Key</th>
|
|
<th>Value</th>
|
|
<th>type</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="NewDocumentSourceView" style="display:none">
|
|
<textarea id="NewDocumentSourceBox" class="editBox"></textarea>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="logView" style="display: none">
|
|
|
|
<div id="tabs">
|
|
<ul>
|
|
<li><a class="hoverClass" id="logAllTab" href="#All">All</a><li>
|
|
<li><a class="hoverClass" id="logCritTab" href="#Critical">Critical</a><li>
|
|
<li><a class="hoverClass" id="logWarnTab" href=#Warning">Warning</a><li>
|
|
<li><a class="hoverClass" id="logInfoTab" href="#Info">Info</a><li>
|
|
<li><a class="hoverClass" id="logDebuTab" href="#Debug">Debug</a><li>
|
|
</ul>
|
|
|
|
<div id="All">
|
|
<table cellpadding="0" cellspacing="0" border="0" class="display" id="logTableID" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Loglevel</th>
|
|
<th>Info</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<div id="logToolbar">
|
|
<div id="logToolbarAll">
|
|
<button class="enabled" id="logTableID_first"><img src="/_admin/html/media/icons/rnd_br_first_icon16.png"></button>
|
|
<button class="enabled" id="logTableID_prev"><img src="/_admin/html/media/icons/rnd_br_prev_icon16.png"></button>
|
|
<button class="enabled" id="logTableID_next"><img src="/_admin/html/media/icons/rnd_br_next_icon16.png"></button>
|
|
<button class="enabled" id="logTableID_last"><img src="/_admin/html/media/icons/rnd_br_last_icon16.png"></button>
|
|
</div>
|
|
<a id="logTableID_status">Showing</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="Critical">
|
|
<table cellpadding="0" cellspacing="0" border="0" class="display" id="critLogTableID" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Loglevel</th>
|
|
<th>Info</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<div id="logToolbar">
|
|
<div id="logToolbarCrit">
|
|
<button class="enabled" id="critLogTableID_first"><img src="/_admin/html/media/icons/rnd_br_first_icon16.png"></button>
|
|
<button class="enabled" id="critLogTableID_prev"><img src="/_admin/html/media/icons/rnd_br_prev_icon16.png"></button>
|
|
<button class="enabled" id="critLogTableID_next"><img src="/_admin/html/media/icons/rnd_br_next_icon16.png"></button>
|
|
<button class="enabled" id="critLogTableID_last"><img src="/_admin/html/media/icons/rnd_br_last_icon16.png"></button>
|
|
<a id="critLogTableID_status">Showing</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="Warning">
|
|
<table cellpadding="0" cellspacing="0" border="0" class="display" id="warnLogTableID" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Loglevel</th>
|
|
<th>Info</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<div id="logToolbar">
|
|
<div id="logToolbarWarn">
|
|
<button class="enabled" id="warnLogTableID_first"><img src="/_admin/html/media/icons/rnd_br_first_icon16.png"></button>
|
|
<button class="enabled" id="warnLogTableID_prev"><img src="/_admin/html/media/icons/rnd_br_prev_icon16.png"></button>
|
|
<button class="enabled" id="warnLogTableID_next"><img src="/_admin/html/media/icons/rnd_br_next_icon16.png"></button>
|
|
<button class="enabled" id="warnLogTableID_last"><img src="/_admin/html/media/icons/rnd_br_last_icon16.png"></button>
|
|
</div>
|
|
<a id="warnLogTableID_status">Showing</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="Info">
|
|
<table cellpadding="0" cellspacing="0" border="0" class="display" id="infoLogTableID" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Loglevel</th>
|
|
<th>Info</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<div id="logToolbar">
|
|
<div id="logToolbarInfo">
|
|
<button class="enabled" id="infoLogTableID_first"><img src="/_admin/html/media/icons/rnd_br_first_icon16.png"></button>
|
|
<button class="enabled" id="infoLogTableID_prev"><img src="/_admin/html/media/icons/rnd_br_prev_icon16.png"></button>
|
|
<button class="enabled" id="infoLogTableID_next"><img src="/_admin/html/media/icons/rnd_br_next_icon16.png"></button>
|
|
<button class="enabled" id="infoLogTableID_last"><img src="/_admin/html/media/icons/rnd_br_last_icon16.png"></button>
|
|
</div>
|
|
<a id="infoLogTableID_status">Showing</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="Debug">
|
|
<table cellpadding="0" cellspacing="0" border="0" class="display" id="debugLogTableID" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Loglevel</th>
|
|
<th>Info</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<div id="logToolbar">
|
|
<div id="logToolbarDebu">
|
|
<button class="enabled" id="debugLogTableID_first"><img src="/_admin/html/media/icons/rnd_br_first_icon16.png"></button>
|
|
<button class="enabled" id="debugLogTableID_prev"><img src="/_admin/html/media/icons/rnd_br_prev_icon16.png"></button>
|
|
<button class="enabled" id="debugLogTableID_next"><img src="/_admin/html/media/icons/rnd_br_next_icon16.png"></button>
|
|
<button class="enabled" id="debugLogTableID_last"><img src="/_admin/html/media/icons/rnd_br_last_icon16.png"></button>
|
|
</div>
|
|
<a id="debugLogTableID_status">Showing</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="statusView" style="display: none">
|
|
</div>
|
|
|
|
<div id="configView" style="display: none">
|
|
<button class="minimal enabled" id="updateConfiguration" style="visibility:hidden">
|
|
<img src="/_admin/html/media/icons/refresh_icon16.png" width="16" height="16">
|
|
<a>Update configuration</a>
|
|
</button>
|
|
<div id="configContent">
|
|
</div>
|
|
</div>
|
|
|
|
<div id="avocshView" style="display: none">
|
|
<div id="avocshWindow">
|
|
<pre id="welcomemsg" style="font-family: 'courier';">
|
|
_
|
|
__ _ _ __ __ _ _ __ __ _ ___ ___| |__
|
|
/ _` | '__/ _` | '_ \ / _` |/ _ \/ __| '_ \
|
|
| (_| | | | (_| | | | | (_| | (_) \__ \ | | |
|
|
\__,_|_| \__,_|_| |_|\__, |\___/|___/_| |_|
|
|
|___/
|
|
|
|
Welcome to arangosh 0.5.1. Copyright (c) 2012 triAGENS GmbH.</pre><br><br>
|
|
</div>
|
|
<form>
|
|
<input type="text" class="editBox" id="avocshContent"></input><button class="minimal" id="submitAvoc">Ok</button>
|
|
</form>
|
|
<a href="http://www.arangodb.org/manuals/UserManual.html" target="_blank">ArangoDB Shell - click for more information</a>
|
|
</div>
|
|
|
|
<div id="queryView" style="display: none">
|
|
<div id="queryOutput">
|
|
<a style="padding-left:10px">Please enter your query in the box below</a>
|
|
</div>
|
|
<form id="queryForm" method="post" onsubmit="return false">
|
|
<textarea placeholder="Type in your query..." class="editBox" id="queryContent"></textarea><br>
|
|
<button class="minimal" id="submitQuery">Execute</button>
|
|
<a href="http://www.arangodb.org/manuals/Aql.html" target="_blank">ArangoDB Query Language - click for more information</a>
|
|
<br></br>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="footerSlideContainer" class="ui-layout-south" class="footer-ui">
|
|
<div id="footerSlideButton"></div>
|
|
<div id="footerSlideContent">
|
|
<div id="footerSlideText">
|
|
|
|
<div id="footerLeft" style="visibility:hidden">
|
|
<a>Welcome </a><a id="activeUser" class="loggedout">Guest!</a>
|
|
<button class="minimal enabled" id="movetologinButton">Login</button><button class="minimal" id="logoutButton">Logout</button>
|
|
<form class="login-form" id="loginWindow" action="#">
|
|
<input type="text" name="username" id="usernameField" placeholder="username">
|
|
<input type="password" name="password" id="passwordField" placeholder="password">
|
|
<button class="minimal enabled" value="log in" id="loginButton">Login</button>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="footerCenter">
|
|
ArangoDB<br></br>
|
|
<div id="footerCenterContent">
|
|
<a> Stay in touch: </a>
|
|
<a href="http://twitter.com/arangodb">
|
|
<img src="/_admin/html/media/icons/twitter.png" width="32" height="32">
|
|
Twitter
|
|
</a>
|
|
<a href="http://github.com/triAGENS/ArangoDB">
|
|
<img src="/_admin/html/media/icons/git.png" width="32" height="32">
|
|
GitHub
|
|
</a>
|
|
<a href="http://arangodb.org">
|
|
<img src="/_admin/html/media/icons/arangodb32.png" width="32" height="32">
|
|
ArangoDB.org
|
|
</a><br>
|
|
<a href="http://groups.google.com/group/arangodb">
|
|
<img src="/_admin/html/media/icons/google.png" width="32" height="32">
|
|
GoogleGroup
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="footerRight">
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="dialog-deleteCollection" title="Really delete collection?">
|
|
<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>
|
|
The collection will be permanently deleted and cannot be recovered.</p>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|