summaryrefslogtreecommitdiff
path: root/share/www/browse
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/browse')
-rw-r--r--share/www/browse/_compact_database.html28
-rw-r--r--share/www/browse/_create_database.html33
-rw-r--r--share/www/browse/_create_document.html31
-rw-r--r--share/www/browse/_delete_database.html27
-rw-r--r--share/www/browse/_delete_document.html26
-rw-r--r--share/www/browse/_save_view_as.html35
-rw-r--r--share/www/browse/_upload_attachment.html36
-rw-r--r--share/www/browse/database.html186
-rw-r--r--share/www/browse/document.html117
-rw-r--r--share/www/browse/index.html87
10 files changed, 0 insertions, 606 deletions
diff --git a/share/www/browse/_compact_database.html b/share/www/browse/_compact_database.html
deleted file mode 100644
index efa5d345..00000000
--- a/share/www/browse/_compact_database.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<form action="" method="post">
- <h2>Compact Database</h2>
- <fieldset>
- <p class="help">
- Compacting a database removes deleted documents and previous revisions.
- It is an <strong>irreversible operation</strong> and my take
- a while to complete for large databases.
- </p>
- </fieldset>
- <div class="buttons">
- <button type="submit">Compact</button>
- <button type="button" class="cancel">Cancel</button>
- </div>
-</form>
diff --git a/share/www/browse/_create_database.html b/share/www/browse/_create_database.html
deleted file mode 100644
index 5c909a7a..00000000
--- a/share/www/browse/_create_database.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<form action="" method="post">
- <h2>Create New Database</h2>
- <fieldset>
- <p class="help">
- Please enter the name of the database. Note that only lowercase
- characters (<tt>a-z</tt>), digits (<tt>0-9</tt>), or any of the
- characters <tt>_</tt>, <tt>$</tt>, <tt>(</tt>, <tt>)</tt>, <tt>+</tt>,
- <tt>-</tt>, and <tt>/</tt> are allowed.
- </p>
- <table summary=""><tbody><tr>
- <th><label>Database Name:</label></th>
- <td><input type="text" name="name" size="24"></td>
- </tr></table>
- </fieldset>
- <div class="buttons">
- <button type="submit">Create</button>
- <button type="button" class="cancel">Cancel</button>
- </div>
-</form>
diff --git a/share/www/browse/_create_document.html b/share/www/browse/_create_document.html
deleted file mode 100644
index fc9eef02..00000000
--- a/share/www/browse/_create_document.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<form action="" method="post">
- <h2>Create New Document</h2>
- <fieldset>
- <p class="help">
- Please enter a unique ID of the document, or leave the field empty to get
- an auto-generated ID.
- </p>
- <table summary=""><tbody><tr>
- <th><label>Document ID:</label></th>
- <td><input type="text" name="docid" size="32"></td>
- </tr></table>
- </fieldset>
- <div class="buttons">
- <button type="submit">Create</button>
- <button type="button" class="cancel">Cancel</button>
- </div>
-</form>
diff --git a/share/www/browse/_delete_database.html b/share/www/browse/_delete_database.html
deleted file mode 100644
index 16be8f30..00000000
--- a/share/www/browse/_delete_database.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<form action="" method="post">
- <h2>Delete Database</h2>
- <fieldset>
- <p class="help">
- Are you sure you want to delete this database? Note that this is an
- <strong>irreversible operation</strong>!
- </p>
- </fieldset>
- <div class="buttons">
- <button type="submit">Delete</button>
- <button type="button" class="cancel">Cancel</button>
- </div>
-</form>
diff --git a/share/www/browse/_delete_document.html b/share/www/browse/_delete_document.html
deleted file mode 100644
index 6b5497a4..00000000
--- a/share/www/browse/_delete_document.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<form action="" method="post">
- <h2>Delete Document</h2>
- <fieldset>
- <p class="help">
- Are you sure you want to delete this document?
- </p>
- </fieldset>
- <div class="buttons">
- <button type="submit">Delete</button>
- <button type="button" class="cancel">Cancel</button>
- </div>
-</form>
diff --git a/share/www/browse/_save_view_as.html b/share/www/browse/_save_view_as.html
deleted file mode 100644
index a7f10785..00000000
--- a/share/www/browse/_save_view_as.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<form action="" method="post" id="view-save-as" onload="initForm(this)">
- <h2>Save View As&hellip;</h2>
- <fieldset>
- <p class="help">
- You can save this function code as a permanent view in the database. Just
- enter or select the design document and the name of the view below. Note
- that if you choose an existing view, it will be overwritten!
- </p>
- <table summary=""><tbody><tr>
- <th><label for="input_docid">Design Document:</label></th>
- <td><tt>_design/</tt><input type="text" id="input_docid" name="docid" size="20"></td>
- </tr><tr>
- <th><label for="input_name">View Name:<label></th>
- <td><input type="text" id="input_name" name="name" size="30"></td>
- </tr></table>
- </fieldset>
- <div class="buttons">
- <button type="submit">Save</button>
- <button type="button" class="cancel">Cancel</button>
- </div>
-</form>
diff --git a/share/www/browse/_upload_attachment.html b/share/www/browse/_upload_attachment.html
deleted file mode 100644
index 941fcc47..00000000
--- a/share/www/browse/_upload_attachment.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<form action="" method="post" id="upload-form">
- <h2>Upload Attachment</h2>
- <fieldset>
- <p class="help">
- Please select the file you want to upload as an attachment to this
- document. Please note that this will result in the immediate creation of
- a new revision of the document, so it's not necessary to save the
- document after the upload.
- </p>
- <table summary=""><tbody><tr>
- <th><label>File:</label></th>
- <td><input type="file" name="_attachments"></td>
- </tr><tr>
- <td id="progress" colspan="2">&nbsp;</td>
- </tr></table>
- </fieldset>
- <div class="buttons">
- <input type="hidden" name="_rev" value="">
- <button type="submit">Upload</button>
- <button type="button" class="cancel">Cancel</button>
- </div>
-</form>
diff --git a/share/www/browse/database.html b/share/www/browse/database.html
deleted file mode 100644
index 6b12ed7d..00000000
--- a/share/www/browse/database.html
+++ /dev/null
@@ -1,186 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<html lang="en">
- <head>
- <title>Browse Database</title>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
- <link rel="stylesheet" href="../style/layout.css?0.8.0" type="text/css">
- <script src="../script/json2.js"></script>
- <script src="../script/jquery.js?1.2.6"></script>
- <script src="../script/jquery.cookies.js?0.8.0"></script>
- <script src="../script/jquery.couch.js?0.8.0"></script>
- <script src="../script/jquery.dialog.js?0.8.0"></script>
- <script src="../script/jquery.resizer.js?0.8.0"></script>
- <script src="../script/jquery.suggest.js?0.8.0"></script>
- <script src="../script/browse.js?0.8.0"></script>
- <script src="../script/pprint.js?0.8.0"></script>
- <script>
- var page = new CouchDatabasePage();
- if (window != parent) {
- parent.updateNavigation(location.pathname,
- encodeURIComponent(location.search.split("/", 2)[0]));
- var recentDbs = $.cookies.get("recent", "").split(",");
- if ($.inArray(page.db.name, recentDbs) == -1) {
- recentDbs.unshift(page.db.name);
- if (recentDbs.length > 10) recentDbs.length = 10;
- $.cookies.set("recent", recentDbs.join(","), parent.location.pathname);
- parent.updateRecentDatabasesList();
- }
- }
-
- $(document).ready(function() {
- $("h1 strong").text(page.db.name);
- $("#viewcode span").click(function() {
- $("#viewcode").toggleClass("collapsed");
- });
- $("#viewcode button.run").click(function() {
- page.updateDocumentListing();
- });
- $("#viewcode button.revert").click(function() {
- page.revertViewChanges();
- });
- $("#viewcode button.save").click(function() {
- page.saveViewChanges();
- });
- $("#viewcode button.saveas").click(function() {
- page.saveViewAs();
- });
- $("#viewcode textarea").makeResizable({
- always: true,
- grippie: $("#viewcode .bottom"),
- vertical: true
- });
- $("#viewcode td.map").makeResizable({
- always: true,
- grippie: $("#viewcode td.splitter"),
- horizontal: true
- });
-
- // Restore preferences/state from cookies
- var query = $.cookies.get(page.db.name + ".query");
- if (query) $("#viewcode_map").val(query);
- var desc = $.cookies.get(page.db.name + ".desc");
- if (desc) $("#documents thead th.key").addClass("desc");
- var rowsPerPage = $.cookies.get(page.db.name + ".perpage");
- if (rowsPerPage) $("#perpage").val(rowsPerPage);
-
- page.populateViewsMenu();
- page.populateViewEditor();
- if (!page.isTempView) {
- page.updateDocumentListing();
- } else {
- $("#viewcode").show().removeClass("collapsed").find("textarea")[0].focus();
- $("#documents").hide();
- }
-
- $("#switch select").change(function() {
- var viewName = $(this).val();
- if (!viewName) $.cookies.remove(page.db.name + ".view");
- location.href = "?" + encodeURIComponent(page.db.name) +
- (viewName ? "/" + encodeURIComponent(viewName) : "");
- });
- $("#documents thead th.key").click(function() {
- $(this).toggleClass("desc");
- page.updateDocumentListing();
- });
- $("#perpage").change(function() {
- page.updateDocumentListing();
- $.cookies.set(page.db.name + ".perpage", this.value);
- });
- $("#toolbar button.add").click(page.addDocument);
- $("#toolbar button.compact").click(page.compactDatabase);
- $("#toolbar button.delete").click(page.deleteDatabase);
- });
- </script>
- </head>
-
- <body>
- <h1>
- <a href="index.html">Overview</a>
- <strong>?</strong>
- </h1>
- <div id="wrap">
- <div id="switch">
- <label>Select view: <select autocomplete="false">
- <option value="">All documents</option>
- <option value="_design_docs">Design documents</option>
- <option value="_slow_view">Custom query…</option>
- </select></label>
- </div>
- <ul id="toolbar">
- <li><button class="add">Create Document …</button></li>
- <li><button class="compact">Compact Database</button></li>
- <li><button class="delete">Delete Database</button></li>
- </ul>
-
- <div id="viewcode" class="collapsed" style="display: none">
- <div class="top">
- <a id="designdoc-link"></a>
- <span id="view-toggle">View Code</span>
- </div>
- <table summary="View functions" cellspacing="0"><tr>
- <td class="code map">
- <label for="viewcode_map">Map Function:</label>
- <textarea id="viewcode_map" class="map" rows="5" cols="20" spellcheck="false" wrap="off">function(doc) {
- emit(null, doc);
-}</textarea>
- </td>
- <td class="splitter"></td>
- <td class="code reduce">
- <label for="viewcode_reduce">Reduce Function (optional):</label>
- <textarea id="viewcode_reduce" class="reduce" rows="5" cols="20" spellcheck="false" wrap="off"></textarea>
- </td>
- </tr></table>
- <div class="bottom">
- <button class="save" type="button" disabled>Save</button>
- <button class="saveas" type="button">Save As…</button>
- <button class="revert" type="button" disabled>Revert</button>
- <button class="run" type="button">Run</button>
- </div>
- </div>
-
- <table id="documents" class="listing" cellspacing="0">
- <caption>Documents</caption>
- <thead>
- <tr>
- <th class="key"><div>Key</div></th>
- <th class="value">Value</th>
- </tr>
- </thead>
- <tbody class="content">
- </tbody>
- <tbody class="footer">
- <tr>
- <td colspan="4">
- <div id="paging">
- <a class="prev">← Previous Page</a> |
- <label>Rows per page: <select id="perpage">
- <option selected>10</option>
- <option>25</option>
- <option>50</option>
- <option>100</option>
- </select></label> |
- <a class="next">Next Page →</a>
- </div>
- <span></span>
- </td>
- </tr>
- </tbody>
- </table>
-
- </div>
- </body>
-</html>
diff --git a/share/www/browse/document.html b/share/www/browse/document.html
deleted file mode 100644
index 09136533..00000000
--- a/share/www/browse/document.html
+++ /dev/null
@@ -1,117 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<html lang="en">
- <head>
- <title>View Document</title>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
- <link rel="stylesheet" href="../style/layout.css?0.8.0" type="text/css">
- <script src="../script/json2.js"></script>
- <script src="../script/jquery.js?1.2.6"></script>
- <script src="../script/jquery.cookies.js?0.8.0"></script>
- <script src="../script/jquery.couch.js?0.8.0"></script>
- <script src="../script/jquery.dialog.js?0.8.0"></script>
- <script src="../script/jquery.form.js?0.8.0"></script>
- <script src="../script/jquery.resizer.js?0.8.0"></script>
- <script src="../script/browse.js?0.8.0"></script>
- <script src="../script/pprint.js?0.8.0"></script>
- <script>
- var page = new CouchDocumentPage();
- if (window != parent) {
- var dbLink = $("h1 a.dbname").get(0);
- parent.updateNavigation(
- location.pathname.replace(/document\.html/, "database.html"),
- encodeURIComponent(location.search.split("/")[0])
- );
- }
-
- $(function() {
- $("h1 a.dbname").text(page.dbName)
- .attr("href", "database.html?" + encodeURIComponent(page.db.name));
- $("h1 strong").text(page.docId);
- page.updateFieldListing();
-
- $("#tabs li.tabular a").click(function() {
- $("#tabs li").removeClass("active");
- $(this).parent().addClass("active");
- $("#fields thead th:first").text("Field").attr("colspan", 1).next().show();
- $("#fields tbody.content").show();
- $("#fields tbody.source").hide();
- });
- $("#tabs li.source a").click(function() {
- $("#tabs li").removeClass("active");
- $(this).parent().addClass("active");
- $("#fields thead th:first").text("Source").attr("colspan", 2).next().hide();
- $("#fields tbody.content").hide();
- $("#fields tbody.source").find("td").each(function() {
- $(this).html($("<code></code>").text(prettyPrintJSON(page.doc)));
- }).end().show();
- });
-
- $("#toolbar button.save").click(page.saveDocument);
- $("#toolbar button.add").click(page.addField);
- $("#toolbar button.load").click(page.uploadAttachment);
- $("#toolbar button.delete").click(page.deleteDocument);
- });
- </script>
- </head>
-
- <body>
- <h1>
- <a href="index.html">Overview</a>
- <a class="dbname" href="#">?</a>
- <strong>?</strong>
- </h1>
- <div id="wrap">
- <ul id="toolbar">
- <li><button class="save">Save Document</button></li>
- <li><button class="add">Add Field</button></li>
- <li><button class="load">Upload Attachment</button></li>
- <li><button class="delete">Delete Document</button></li>
- </ul>
-
- <ul id="tabs">
- <li class="active tabular"><a href="#tabular">Fields</a></li>
- <li class="source"><a href="#source">Source</a></li>
- </ul>
- <table id="fields" class="listing" cellspacing="0">
- <col class="field"><col class="value">
- <caption>Fields</caption>
- <thead>
- <tr>
- <th>Field</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody class="content">
- </tbody>
- <tbody class="source" style="display: none">
- <tr><td colspan="2"></td></tr>
- </tbody>
- <tbody class="footer">
- <tr>
- <td colspan="2">
- <div id="paging">
- <a class="prev">← Previous Version</a> | <a class="next">Next Version →</a>
- </div>
- <span></span>
- </td>
- </tr>
- </tbody>
- </table>
-
- </div>
- </body>
-</html>
diff --git a/share/www/browse/index.html b/share/www/browse/index.html
deleted file mode 100644
index 93f5a21a..00000000
--- a/share/www/browse/index.html
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
-
--->
-<html lang="en">
- <head>
- <title>Welcome</title>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
- <link rel="stylesheet" href="../style/layout.css?0.8.0" type="text/css">
- <script src="../script/json2.js"></script>
- <script src="../script/jquery.js?1.2.6"></script>
- <script src="../script/jquery.cookies.js?0.8.0"></script>
- <script src="../script/jquery.couch.js?0.8.0"></script>
- <script src="../script/jquery.dialog.js?0.8.0"></script>
- <script src="../script/browse.js?0.8.0"></script>
- <script src="../script/pprint.js?0.8.0"></script>
- <script>
- var page = new CouchIndexPage();
- $(document).ready(function() {
- var dbsPerPage = $.cookies.get("perpage");
- if (dbsPerPage) $("#perpage").val(dbsPerPage);
- $("#perpage").change(function() {
- page.updateDatabaseListing();
- $.cookies.set("perpage", this.value);
- });
-
- page.updateDatabaseListing();
-
- $("#toolbar button.add").click(function() {
- page.addDatabase();
- });
- if (window != parent) parent.updateNavigation();
- });
- </script>
- </head>
- <body>
- <h1><strong>Overview</strong></h1>
- <div id="wrap">
- <ul id="toolbar">
- <li><button class="add">Create Database …</button></li>
- </ul>
-
- <table class="listing" id="databases" cellspacing="0">
- <caption>Databases</caption>
- <thead>
- <tr>
- <th>Name</th>
- <th class="size">Size</th>
- <th class="count">Number of Documents</th>
- <th class="seq">Update Seq</th>
- </tr>
- </thead>
- <tbody class="content">
- </tbody>
- <tbody class="footer">
- <tr>
- <td colspan="4">
- <div id="paging">
- <a class="prev">← Previous Page</a> |
- <label>Rows per page: <select id="perpage">
- <option selected>10</option>
- <option>25</option>
- <option>50</option>
- <option>100</option>
- </select></label> |
- <a class="next">Next Page →</a>
- </div>
- <span></span>
- </td>
- </tr>
- </tbody>
- </table>
-
- </div>
- </body>
-</html>