You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by be...@apache.org on 2014/01/09 01:22:27 UTC
[51/51] [partial] git commit: updated refs/heads/1994-merge-rcouch to
b90c3b0
move src/apps/fauxton -> src/share/fauxton
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/b90c3b0a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/b90c3b0a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/b90c3b0a
Branch: refs/heads/1994-merge-rcouch
Commit: b90c3b0a66794387808980b57068e59075456efd
Parents: 63edb0a
Author: Benoit Chesneau <be...@apache.org>
Authored: Thu Jan 9 01:20:49 2014 +0100
Committer: Benoit Chesneau <be...@apache.org>
Committed: Thu Jan 9 01:20:49 2014 +0100
----------------------------------------------------------------------
src/apps/fauxton/Gruntfile.js | 441 -
src/apps/fauxton/TODO.md | 26 -
.../activetasks/assets/less/activetasks.less | 18 -
src/apps/fauxton/app/addons/activetasks/base.js | 26 -
.../fauxton/app/addons/activetasks/resources.js | 118 -
.../fauxton/app/addons/activetasks/routes.js | 58 -
.../addons/activetasks/templates/detail.html | 21 -
.../app/addons/activetasks/templates/table.html | 52 -
.../activetasks/templates/tabledetail.html | 36 -
.../app/addons/activetasks/templates/tabs.html | 46 -
.../app/addons/activetasks/tests/viewsSpec.js | 139 -
.../fauxton/app/addons/activetasks/views.js | 181 -
.../app/addons/auth/assets/less/auth.less | 15 -
src/apps/fauxton/app/addons/auth/base.js | 69 -
src/apps/fauxton/app/addons/auth/resources.js | 364 -
src/apps/fauxton/app/addons/auth/routes.js | 93 -
.../addons/auth/templates/change_password.html | 26 -
.../app/addons/auth/templates/create_admin.html | 37 -
.../app/addons/auth/templates/login.html | 26 -
.../app/addons/auth/templates/nav_dropdown.html | 26 -
.../addons/auth/templates/nav_link_title.html | 31 -
.../app/addons/auth/templates/noAccess.html | 20 -
.../compaction/assets/less/compaction.less | 19 -
src/apps/fauxton/app/addons/compaction/base.js | 31 -
.../fauxton/app/addons/compaction/resources.js | 48 -
.../fauxton/app/addons/compaction/routes.js | 65 -
.../compaction/templates/compact_view.html | 14 -
.../app/addons/compaction/templates/layout.html | 28 -
src/apps/fauxton/app/addons/compaction/views.js | 140 -
.../app/addons/config/assets/less/config.less | 13 -
src/apps/fauxton/app/addons/config/base.js | 28 -
src/apps/fauxton/app/addons/config/resources.js | 176 -
src/apps/fauxton/app/addons/config/routes.js | 59 -
.../app/addons/config/templates/dashboard.html | 52 -
.../app/addons/config/templates/item.html | 31 -
src/apps/fauxton/app/addons/contribute/base.js | 33 -
src/apps/fauxton/app/addons/exampleAuth/base.js | 59 -
.../addons/exampleAuth/templates/noAccess.html | 19 -
src/apps/fauxton/app/addons/logs/base.js | 28 -
src/apps/fauxton/app/addons/logs/resources.js | 225 -
src/apps/fauxton/app/addons/logs/routes.js | 58 -
.../app/addons/logs/templates/dashboard.html | 46 -
.../app/addons/logs/templates/filterItem.html | 16 -
.../app/addons/logs/templates/sidebar.html | 27 -
.../fauxton/app/addons/logs/tests/logSpec.js | 38 -
.../permissions/assets/less/permissions.less | 44 -
src/apps/fauxton/app/addons/permissions/base.js | 25 -
.../fauxton/app/addons/permissions/resources.js | 70 -
.../fauxton/app/addons/permissions/routes.js | 63 -
.../app/addons/permissions/templates/item.html | 17 -
.../permissions/templates/permissions.html | 15 -
.../addons/permissions/templates/section.html | 46 -
.../addons/permissions/tests/resourceSpec.js | 51 -
.../app/addons/permissions/tests/viewsSpec.js | 159 -
.../fauxton/app/addons/permissions/views.js | 200 -
src/apps/fauxton/app/addons/plugins/base.js | 24 -
.../fauxton/app/addons/plugins/resources.js | 26 -
src/apps/fauxton/app/addons/plugins/routes.js | 47 -
.../app/addons/plugins/templates/plugins.html | 102 -
.../replication/assets/less/replication.less | 196 -
src/apps/fauxton/app/addons/replication/base.js | 24 -
.../fauxton/app/addons/replication/resources.js | 69 -
.../fauxton/app/addons/replication/route.js | 50 -
.../app/addons/replication/templates/form.html | 74 -
.../addons/replication/templates/progress.html | 22 -
.../addons/replication/tests/replicationSpec.js | 28 -
.../fauxton/app/addons/replication/views.js | 295 -
.../app/addons/stats/assets/less/stats.less | 19 -
src/apps/fauxton/app/addons/stats/base.js | 26 -
src/apps/fauxton/app/addons/stats/resources.js | 38 -
src/apps/fauxton/app/addons/stats/routes.js | 63 -
.../app/addons/stats/templates/by_method.html | 16 -
.../app/addons/stats/templates/pie_table.html | 54 -
.../app/addons/stats/templates/stats.html | 16 -
.../app/addons/stats/templates/statselect.html | 22 -
src/apps/fauxton/app/addons/stats/views.js | 171 -
.../assets/less/verifyinstall.less | 16 -
.../fauxton/app/addons/verifyinstall/base.js | 31 -
.../app/addons/verifyinstall/resources.js | 181 -
.../fauxton/app/addons/verifyinstall/routes.js | 37 -
.../addons/verifyinstall/templates/main.html | 50 -
.../fauxton/app/addons/verifyinstall/views.js | 127 -
src/apps/fauxton/app/api.js | 558 -
src/apps/fauxton/app/app.js | 122 -
src/apps/fauxton/app/config.js | 60 -
src/apps/fauxton/app/helpers.js | 78 -
src/apps/fauxton/app/initialize.js.underscore | 33 -
src/apps/fauxton/app/load_addons.js.underscore | 27 -
src/apps/fauxton/app/main.js | 48 -
src/apps/fauxton/app/mixins.js | 65 -
src/apps/fauxton/app/modules/databases/base.js | 37 -
.../fauxton/app/modules/databases/resources.js | 193 -
.../fauxton/app/modules/databases/routes.js | 69 -
src/apps/fauxton/app/modules/databases/views.js | 255 -
src/apps/fauxton/app/modules/documents/base.js | 24 -
.../fauxton/app/modules/documents/resources.js | 638 -
.../fauxton/app/modules/documents/routes.js | 408 -
.../modules/documents/tests/resourcesSpec.js | 84 -
src/apps/fauxton/app/modules/documents/views.js | 1805 --
src/apps/fauxton/app/modules/fauxton/base.js | 276 -
.../fauxton/app/modules/fauxton/components.js | 316 -
src/apps/fauxton/app/modules/fauxton/layout.js | 98 -
src/apps/fauxton/app/modules/pouchdb/base.js | 47 -
.../app/modules/pouchdb/pouch.collate.js | 115 -
.../app/modules/pouchdb/pouchdb.mapreduce.js | 324 -
src/apps/fauxton/app/resizeColumns.js | 87 -
src/apps/fauxton/app/router.js | 175 -
.../fauxton/app/templates/databases/item.html | 24 -
.../fauxton/app/templates/databases/list.html | 35 -
.../app/templates/databases/newdatabase.html | 17 -
.../app/templates/databases/sidebar.html | 31 -
.../templates/documents/advanced_options.html | 97 -
.../app/templates/documents/all_docs_item.html | 26 -
.../templates/documents/all_docs_layout.html | 20 -
.../app/templates/documents/all_docs_list.html | 43 -
.../templates/documents/all_docs_number.html | 21 -
.../app/templates/documents/changes.html | 38 -
.../app/templates/documents/ddoc_info.html | 28 -
.../documents/design_doc_selector.html | 35 -
.../fauxton/app/templates/documents/doc.html | 55 -
.../templates/documents/doc_field_editor.html | 74 -
.../documents/doc_field_editor_tabs.html | 19 -
.../documents/duplicate_doc_modal.html | 36 -
.../app/templates/documents/edit_tools.html | 44 -
.../templates/documents/index_menu_item.html | 17 -
.../templates/documents/index_row_docular.html | 26 -
.../templates/documents/index_row_tabular.html | 25 -
.../app/templates/documents/jumpdoc.html | 19 -
.../fauxton/app/templates/documents/search.html | 15 -
.../app/templates/documents/sidebar.html | 67 -
.../fauxton/app/templates/documents/tabs.html | 18 -
.../app/templates/documents/upload_modal.html | 42 -
.../app/templates/documents/view_editor.html | 87 -
.../fauxton/app/templates/fauxton/api_bar.html | 30 -
.../app/templates/fauxton/breadcrumbs.html | 24 -
.../fauxton/app/templates/fauxton/footer.html | 15 -
.../app/templates/fauxton/index_pagination.html | 24 -
.../fauxton/app/templates/fauxton/nav_bar.html | 75 -
.../app/templates/fauxton/notification.html | 18 -
.../app/templates/fauxton/pagination.html | 31 -
.../fauxton/app/templates/layouts/one_pane.html | 28 -
.../app/templates/layouts/one_pane_notabs.html | 27 -
.../fauxton/app/templates/layouts/two_pane.html | 30 -
.../templates/layouts/with_right_sidebar.html | 26 -
.../app/templates/layouts/with_sidebar.html | 27 -
.../app/templates/layouts/with_tabs.html | 28 -
.../templates/layouts/with_tabs_sidebar.html | 41 -
src/apps/fauxton/assets/css/nv.d3.css | 656 -
src/apps/fauxton/assets/img/FontAwesome.otf | Bin 61896 -> 0 bytes
src/apps/fauxton/assets/img/couchdb-site.png | Bin 4946 -> 0 bytes
src/apps/fauxton/assets/img/couchdblogo.png | Bin 2738 -> 0 bytes
.../fauxton/assets/img/fontawesome-webfont.eot | Bin 37405 -> 0 bytes
.../fauxton/assets/img/fontawesome-webfont.svg | 399 -
.../fauxton/assets/img/fontawesome-webfont.ttf | Bin 79076 -> 0 bytes
.../fauxton/assets/img/fontawesome-webfont.woff | Bin 43572 -> 0 bytes
.../fauxton/assets/img/fontcustom_fauxton.eot | Bin 7364 -> 0 bytes
.../fauxton/assets/img/fontcustom_fauxton.svg | 200 -
.../fauxton/assets/img/fontcustom_fauxton.ttf | Bin 9636 -> 0 bytes
.../fauxton/assets/img/fontcustom_fauxton.woff | Bin 4816 -> 0 bytes
.../assets/img/glyphicons-halflings-white.png | Bin 8777 -> 0 bytes
.../fauxton/assets/img/glyphicons-halflings.png | Bin 13826 -> 0 bytes
src/apps/fauxton/assets/img/linen.png | Bin 87134 -> 0 bytes
src/apps/fauxton/assets/img/loader.gif | Bin 5193 -> 0 bytes
src/apps/fauxton/assets/img/minilogo.png | Bin 2927 -> 0 bytes
src/apps/fauxton/assets/index.underscore | 47 -
src/apps/fauxton/assets/js/libs/ace/ace.js | 16541 -----------------
.../fauxton/assets/js/libs/ace/ext-chromevox.js | 537 -
.../js/libs/ace/ext-elastic_tabstops_lite.js | 301 -
.../fauxton/assets/js/libs/ace/ext-emmet.js | 1096 --
.../assets/js/libs/ace/ext-keybinding_menu.js | 207 -
.../assets/js/libs/ace/ext-language_tools.js | 1615 --
.../fauxton/assets/js/libs/ace/ext-modelist.js | 166 -
.../fauxton/assets/js/libs/ace/ext-old_ie.js | 499 -
.../fauxton/assets/js/libs/ace/ext-options.js | 252 -
.../fauxton/assets/js/libs/ace/ext-searchbox.js | 420 -
.../assets/js/libs/ace/ext-settings_menu.js | 634 -
.../assets/js/libs/ace/ext-spellcheck.js | 68 -
.../fauxton/assets/js/libs/ace/ext-split.js | 271 -
.../assets/js/libs/ace/ext-static_highlight.js | 165 -
.../fauxton/assets/js/libs/ace/ext-statusbar.js | 47 -
.../fauxton/assets/js/libs/ace/ext-textarea.js | 478 -
.../fauxton/assets/js/libs/ace/ext-themelist.js | 90 -
.../assets/js/libs/ace/ext-whitespace.js | 206 -
.../assets/js/libs/ace/mode-javascript.js | 886 -
.../fauxton/assets/js/libs/ace/mode-json.js | 578 -
.../fauxton/assets/js/libs/ace/mode-jsoniq.js | 2714 ---
.../assets/js/libs/ace/snippets/javascript.js | 202 -
.../fauxton/assets/js/libs/ace/snippets/json.js | 7 -
.../assets/js/libs/ace/snippets/jsoniq.js | 7 -
.../assets/js/libs/ace/theme-crimson_editor.js | 148 -
.../assets/js/libs/ace/worker-javascript.js | 10088 ----------
.../fauxton/assets/js/libs/ace/worker-json.js | 2271 ---
src/apps/fauxton/assets/js/libs/almond.js | 314 -
src/apps/fauxton/assets/js/libs/backbone.js | 1571 --
src/apps/fauxton/assets/js/libs/bootstrap.js | 2291 ---
src/apps/fauxton/assets/js/libs/d3.js | 7026 -------
src/apps/fauxton/assets/js/libs/jquery.js | 9789 ----------
src/apps/fauxton/assets/js/libs/lodash.js | 4493 -----
src/apps/fauxton/assets/js/libs/nv.d3.js | 13119 -------------
src/apps/fauxton/assets/js/libs/require.js | 2045 --
src/apps/fauxton/assets/js/libs/spin.min.js | 1 -
.../assets/js/plugins/backbone.layoutmanager.js | 996 -
.../fauxton/assets/js/plugins/jquery.form.js | 1190 --
src/apps/fauxton/assets/js/plugins/prettify.js | 28 -
.../assets/less/bootstrap/accordion.less | 34 -
.../fauxton/assets/less/bootstrap/alerts.less | 79 -
.../assets/less/bootstrap/bootstrap.less | 63 -
.../assets/less/bootstrap/breadcrumbs.less | 24 -
.../assets/less/bootstrap/button-groups.less | 229 -
.../fauxton/assets/less/bootstrap/buttons.less | 228 -
.../fauxton/assets/less/bootstrap/carousel.less | 158 -
.../fauxton/assets/less/bootstrap/close.less | 32 -
.../fauxton/assets/less/bootstrap/code.less | 61 -
.../less/bootstrap/component-animations.less | 22 -
.../assets/less/bootstrap/dropdowns.less | 248 -
.../less/bootstrap/font-awesome/bootstrap.less | 84 -
.../less/bootstrap/font-awesome/core.less | 129 -
.../less/bootstrap/font-awesome/extras.less | 93 -
.../font-awesome/font-awesome-ie7.less | 1953 --
.../bootstrap/font-awesome/font-awesome.less | 33 -
.../less/bootstrap/font-awesome/icons.less | 381 -
.../less/bootstrap/font-awesome/mixins.less | 48 -
.../less/bootstrap/font-awesome/path.less | 14 -
.../less/bootstrap/font-awesome/variables.less | 735 -
.../fauxton/assets/less/bootstrap/forms.less | 690 -
.../fauxton/assets/less/bootstrap/grid.less | 21 -
.../assets/less/bootstrap/hero-unit.less | 25 -
.../assets/less/bootstrap/labels-badges.less | 84 -
.../fauxton/assets/less/bootstrap/layouts.less | 16 -
.../fauxton/assets/less/bootstrap/media.less | 55 -
.../fauxton/assets/less/bootstrap/mixins.less | 716 -
.../fauxton/assets/less/bootstrap/modals.less | 95 -
.../fauxton/assets/less/bootstrap/navbar.less | 497 -
.../fauxton/assets/less/bootstrap/navs.less | 409 -
.../fauxton/assets/less/bootstrap/pager.less | 43 -
.../assets/less/bootstrap/pagination.less | 123 -
.../fauxton/assets/less/bootstrap/popovers.less | 133 -
.../assets/less/bootstrap/progress-bars.less | 122 -
.../fauxton/assets/less/bootstrap/reset.less | 216 -
.../less/bootstrap/responsive-1200px-min.less | 28 -
.../less/bootstrap/responsive-767px-max.less | 193 -
.../less/bootstrap/responsive-768px-979px.less | 19 -
.../less/bootstrap/responsive-navbar.less | 189 -
.../less/bootstrap/responsive-utilities.less | 59 -
.../assets/less/bootstrap/responsive.less | 48 -
.../assets/less/bootstrap/scaffolding.less | 53 -
.../fauxton/assets/less/bootstrap/sprites.less | 197 -
.../fauxton/assets/less/bootstrap/tables.less | 244 -
.../assets/less/bootstrap/tests/buttons.html | 139 -
.../assets/less/bootstrap/tests/css-tests.css | 150 -
.../assets/less/bootstrap/thumbnails.less | 53 -
.../fauxton/assets/less/bootstrap/tooltip.less | 70 -
.../fauxton/assets/less/bootstrap/type.less | 247 -
.../assets/less/bootstrap/utilities.less | 30 -
.../assets/less/bootstrap/variables.less | 301 -
.../fauxton/assets/less/bootstrap/wells.less | 29 -
src/apps/fauxton/assets/less/config.less | 46 -
src/apps/fauxton/assets/less/couchdb.less | 72 -
src/apps/fauxton/assets/less/database.less | 245 -
src/apps/fauxton/assets/less/fauxton.less | 1009 -
src/apps/fauxton/assets/less/icons.less | 111 -
src/apps/fauxton/assets/less/logs.less | 24 -
src/apps/fauxton/assets/less/prettyprint.less | 46 -
src/apps/fauxton/assets/less/variables.less | 82 -
src/apps/fauxton/bin/grunt | 18 -
src/apps/fauxton/couchapp.js | 39 -
src/apps/fauxton/extensions.md | 17 -
src/apps/fauxton/favicon.ico | Bin 1150 -> 0 bytes
src/apps/fauxton/index.html | 53 -
src/apps/fauxton/package.json | 48 -
src/apps/fauxton/readme.md | 79 -
src/apps/fauxton/settings.json.default | 55 -
src/apps/fauxton/settings.json.sample_external | 10 -
src/apps/fauxton/tasks/addon/rename.json | 5 -
.../fauxton/tasks/addon/root/base.js.underscore | 21 -
.../tasks/addon/root/resources.js.underscore | 21 -
.../tasks/addon/root/routes.js.underscore | 42 -
src/apps/fauxton/tasks/addon/template.js | 70 -
src/apps/fauxton/tasks/couchserver.js | 104 -
src/apps/fauxton/tasks/fauxton.js | 137 -
src/apps/fauxton/tasks/helper.js | 45 -
src/apps/fauxton/test/core/layoutSpec.js | 94 -
src/apps/fauxton/test/core/navbarSpec.js | 107 -
src/apps/fauxton/test/core/paginateSpec.js | 109 -
src/apps/fauxton/test/core/routeObjectSpec.js | 105 -
src/apps/fauxton/test/mocha/chai.js | 4330 -----
src/apps/fauxton/test/mocha/mocha.css | 251 -
src/apps/fauxton/test/mocha/mocha.js | 5428 ------
src/apps/fauxton/test/mocha/sinon-chai.js | 109 -
src/apps/fauxton/test/mocha/sinon.js | 4290 -----
src/apps/fauxton/test/mocha/testUtils.js | 50 -
src/apps/fauxton/test/runner.html | 33 -
src/apps/fauxton/test/test.config.underscore | 15 -
src/apps/fauxton/writing_addons.md | 173 -
src/share/fauxton/Gruntfile.js | 441 +
src/share/fauxton/TODO.md | 26 +
.../activetasks/assets/less/activetasks.less | 18 +
.../fauxton/app/addons/activetasks/base.js | 26 +
.../fauxton/app/addons/activetasks/resources.js | 118 +
.../fauxton/app/addons/activetasks/routes.js | 58 +
.../addons/activetasks/templates/detail.html | 21 +
.../app/addons/activetasks/templates/table.html | 52 +
.../activetasks/templates/tabledetail.html | 36 +
.../app/addons/activetasks/templates/tabs.html | 46 +
.../app/addons/activetasks/tests/viewsSpec.js | 139 +
.../fauxton/app/addons/activetasks/views.js | 181 +
.../app/addons/auth/assets/less/auth.less | 15 +
src/share/fauxton/app/addons/auth/base.js | 69 +
src/share/fauxton/app/addons/auth/resources.js | 364 +
src/share/fauxton/app/addons/auth/routes.js | 93 +
.../addons/auth/templates/change_password.html | 26 +
.../app/addons/auth/templates/create_admin.html | 37 +
.../app/addons/auth/templates/login.html | 26 +
.../app/addons/auth/templates/nav_dropdown.html | 26 +
.../addons/auth/templates/nav_link_title.html | 31 +
.../app/addons/auth/templates/noAccess.html | 20 +
.../compaction/assets/less/compaction.less | 19 +
src/share/fauxton/app/addons/compaction/base.js | 31 +
.../fauxton/app/addons/compaction/resources.js | 48 +
.../fauxton/app/addons/compaction/routes.js | 65 +
.../compaction/templates/compact_view.html | 14 +
.../app/addons/compaction/templates/layout.html | 28 +
.../fauxton/app/addons/compaction/views.js | 140 +
.../app/addons/config/assets/less/config.less | 13 +
src/share/fauxton/app/addons/config/base.js | 28 +
.../fauxton/app/addons/config/resources.js | 176 +
src/share/fauxton/app/addons/config/routes.js | 59 +
.../app/addons/config/templates/dashboard.html | 52 +
.../app/addons/config/templates/item.html | 31 +
src/share/fauxton/app/addons/contribute/base.js | 33 +
.../fauxton/app/addons/exampleAuth/base.js | 59 +
.../addons/exampleAuth/templates/noAccess.html | 19 +
src/share/fauxton/app/addons/logs/base.js | 28 +
src/share/fauxton/app/addons/logs/resources.js | 225 +
src/share/fauxton/app/addons/logs/routes.js | 58 +
.../app/addons/logs/templates/dashboard.html | 46 +
.../app/addons/logs/templates/filterItem.html | 16 +
.../app/addons/logs/templates/sidebar.html | 27 +
.../fauxton/app/addons/logs/tests/logSpec.js | 38 +
.../permissions/assets/less/permissions.less | 44 +
.../fauxton/app/addons/permissions/base.js | 25 +
.../fauxton/app/addons/permissions/resources.js | 70 +
.../fauxton/app/addons/permissions/routes.js | 63 +
.../app/addons/permissions/templates/item.html | 17 +
.../permissions/templates/permissions.html | 15 +
.../addons/permissions/templates/section.html | 46 +
.../addons/permissions/tests/resourceSpec.js | 51 +
.../app/addons/permissions/tests/viewsSpec.js | 159 +
.../fauxton/app/addons/permissions/views.js | 200 +
src/share/fauxton/app/addons/plugins/base.js | 24 +
.../fauxton/app/addons/plugins/resources.js | 26 +
src/share/fauxton/app/addons/plugins/routes.js | 47 +
.../app/addons/plugins/templates/plugins.html | 102 +
.../replication/assets/less/replication.less | 196 +
.../fauxton/app/addons/replication/base.js | 24 +
.../fauxton/app/addons/replication/resources.js | 69 +
.../fauxton/app/addons/replication/route.js | 50 +
.../app/addons/replication/templates/form.html | 74 +
.../addons/replication/templates/progress.html | 22 +
.../addons/replication/tests/replicationSpec.js | 28 +
.../fauxton/app/addons/replication/views.js | 295 +
.../app/addons/stats/assets/less/stats.less | 19 +
src/share/fauxton/app/addons/stats/base.js | 26 +
src/share/fauxton/app/addons/stats/resources.js | 38 +
src/share/fauxton/app/addons/stats/routes.js | 63 +
.../app/addons/stats/templates/by_method.html | 16 +
.../app/addons/stats/templates/pie_table.html | 54 +
.../app/addons/stats/templates/stats.html | 16 +
.../app/addons/stats/templates/statselect.html | 22 +
src/share/fauxton/app/addons/stats/views.js | 171 +
.../assets/less/verifyinstall.less | 16 +
.../fauxton/app/addons/verifyinstall/base.js | 31 +
.../app/addons/verifyinstall/resources.js | 181 +
.../fauxton/app/addons/verifyinstall/routes.js | 37 +
.../addons/verifyinstall/templates/main.html | 50 +
.../fauxton/app/addons/verifyinstall/views.js | 127 +
src/share/fauxton/app/api.js | 558 +
src/share/fauxton/app/app.js | 122 +
src/share/fauxton/app/config.js | 60 +
src/share/fauxton/app/helpers.js | 78 +
src/share/fauxton/app/initialize.js.underscore | 33 +
src/share/fauxton/app/load_addons.js.underscore | 27 +
src/share/fauxton/app/main.js | 48 +
src/share/fauxton/app/mixins.js | 65 +
src/share/fauxton/app/modules/databases/base.js | 37 +
.../fauxton/app/modules/databases/resources.js | 193 +
.../fauxton/app/modules/databases/routes.js | 69 +
.../fauxton/app/modules/databases/views.js | 255 +
src/share/fauxton/app/modules/documents/base.js | 24 +
.../fauxton/app/modules/documents/resources.js | 638 +
.../fauxton/app/modules/documents/routes.js | 408 +
.../modules/documents/tests/resourcesSpec.js | 84 +
.../fauxton/app/modules/documents/views.js | 1805 ++
src/share/fauxton/app/modules/fauxton/base.js | 276 +
.../fauxton/app/modules/fauxton/components.js | 316 +
src/share/fauxton/app/modules/fauxton/layout.js | 98 +
src/share/fauxton/app/modules/pouchdb/base.js | 47 +
.../app/modules/pouchdb/pouch.collate.js | 115 +
.../app/modules/pouchdb/pouchdb.mapreduce.js | 324 +
src/share/fauxton/app/resizeColumns.js | 87 +
src/share/fauxton/app/router.js | 175 +
.../fauxton/app/templates/databases/item.html | 24 +
.../fauxton/app/templates/databases/list.html | 35 +
.../app/templates/databases/newdatabase.html | 17 +
.../app/templates/databases/sidebar.html | 31 +
.../templates/documents/advanced_options.html | 97 +
.../app/templates/documents/all_docs_item.html | 26 +
.../templates/documents/all_docs_layout.html | 20 +
.../app/templates/documents/all_docs_list.html | 43 +
.../templates/documents/all_docs_number.html | 21 +
.../app/templates/documents/changes.html | 38 +
.../app/templates/documents/ddoc_info.html | 28 +
.../documents/design_doc_selector.html | 35 +
.../fauxton/app/templates/documents/doc.html | 55 +
.../templates/documents/doc_field_editor.html | 74 +
.../documents/doc_field_editor_tabs.html | 19 +
.../documents/duplicate_doc_modal.html | 36 +
.../app/templates/documents/edit_tools.html | 44 +
.../templates/documents/index_menu_item.html | 17 +
.../templates/documents/index_row_docular.html | 26 +
.../templates/documents/index_row_tabular.html | 25 +
.../app/templates/documents/jumpdoc.html | 19 +
.../fauxton/app/templates/documents/search.html | 15 +
.../app/templates/documents/sidebar.html | 67 +
.../fauxton/app/templates/documents/tabs.html | 18 +
.../app/templates/documents/upload_modal.html | 42 +
.../app/templates/documents/view_editor.html | 87 +
.../fauxton/app/templates/fauxton/api_bar.html | 30 +
.../app/templates/fauxton/breadcrumbs.html | 24 +
.../fauxton/app/templates/fauxton/footer.html | 15 +
.../app/templates/fauxton/index_pagination.html | 24 +
.../fauxton/app/templates/fauxton/nav_bar.html | 75 +
.../app/templates/fauxton/notification.html | 18 +
.../app/templates/fauxton/pagination.html | 31 +
.../fauxton/app/templates/layouts/one_pane.html | 28 +
.../app/templates/layouts/one_pane_notabs.html | 27 +
.../fauxton/app/templates/layouts/two_pane.html | 30 +
.../templates/layouts/with_right_sidebar.html | 26 +
.../app/templates/layouts/with_sidebar.html | 27 +
.../app/templates/layouts/with_tabs.html | 28 +
.../templates/layouts/with_tabs_sidebar.html | 41 +
src/share/fauxton/assets/css/nv.d3.css | 656 +
src/share/fauxton/assets/img/FontAwesome.otf | Bin 0 -> 61896 bytes
src/share/fauxton/assets/img/couchdb-site.png | Bin 0 -> 4946 bytes
src/share/fauxton/assets/img/couchdblogo.png | Bin 0 -> 2738 bytes
.../fauxton/assets/img/fontawesome-webfont.eot | Bin 0 -> 37405 bytes
.../fauxton/assets/img/fontawesome-webfont.svg | 399 +
.../fauxton/assets/img/fontawesome-webfont.ttf | Bin 0 -> 79076 bytes
.../fauxton/assets/img/fontawesome-webfont.woff | Bin 0 -> 43572 bytes
.../fauxton/assets/img/fontcustom_fauxton.eot | Bin 0 -> 7364 bytes
.../fauxton/assets/img/fontcustom_fauxton.svg | 200 +
.../fauxton/assets/img/fontcustom_fauxton.ttf | Bin 0 -> 9636 bytes
.../fauxton/assets/img/fontcustom_fauxton.woff | Bin 0 -> 4816 bytes
.../assets/img/glyphicons-halflings-white.png | Bin 0 -> 8777 bytes
.../fauxton/assets/img/glyphicons-halflings.png | Bin 0 -> 13826 bytes
src/share/fauxton/assets/img/linen.png | Bin 0 -> 87134 bytes
src/share/fauxton/assets/img/loader.gif | Bin 0 -> 5193 bytes
src/share/fauxton/assets/img/minilogo.png | Bin 0 -> 2927 bytes
src/share/fauxton/assets/index.underscore | 47 +
src/share/fauxton/assets/js/libs/ace/ace.js | 16541 +++++++++++++++++
.../fauxton/assets/js/libs/ace/ext-chromevox.js | 537 +
.../js/libs/ace/ext-elastic_tabstops_lite.js | 301 +
.../fauxton/assets/js/libs/ace/ext-emmet.js | 1096 ++
.../assets/js/libs/ace/ext-keybinding_menu.js | 207 +
.../assets/js/libs/ace/ext-language_tools.js | 1615 ++
.../fauxton/assets/js/libs/ace/ext-modelist.js | 166 +
.../fauxton/assets/js/libs/ace/ext-old_ie.js | 499 +
.../fauxton/assets/js/libs/ace/ext-options.js | 252 +
.../fauxton/assets/js/libs/ace/ext-searchbox.js | 420 +
.../assets/js/libs/ace/ext-settings_menu.js | 634 +
.../assets/js/libs/ace/ext-spellcheck.js | 68 +
.../fauxton/assets/js/libs/ace/ext-split.js | 271 +
.../assets/js/libs/ace/ext-static_highlight.js | 165 +
.../fauxton/assets/js/libs/ace/ext-statusbar.js | 47 +
.../fauxton/assets/js/libs/ace/ext-textarea.js | 478 +
.../fauxton/assets/js/libs/ace/ext-themelist.js | 90 +
.../assets/js/libs/ace/ext-whitespace.js | 206 +
.../assets/js/libs/ace/mode-javascript.js | 886 +
.../fauxton/assets/js/libs/ace/mode-json.js | 578 +
.../fauxton/assets/js/libs/ace/mode-jsoniq.js | 2714 +++
.../assets/js/libs/ace/snippets/javascript.js | 202 +
.../fauxton/assets/js/libs/ace/snippets/json.js | 7 +
.../assets/js/libs/ace/snippets/jsoniq.js | 7 +
.../assets/js/libs/ace/theme-crimson_editor.js | 148 +
.../assets/js/libs/ace/worker-javascript.js | 10088 ++++++++++
.../fauxton/assets/js/libs/ace/worker-json.js | 2271 +++
src/share/fauxton/assets/js/libs/almond.js | 314 +
src/share/fauxton/assets/js/libs/backbone.js | 1571 ++
src/share/fauxton/assets/js/libs/bootstrap.js | 2291 +++
src/share/fauxton/assets/js/libs/d3.js | 7026 +++++++
src/share/fauxton/assets/js/libs/jquery.js | 9789 ++++++++++
src/share/fauxton/assets/js/libs/lodash.js | 4493 +++++
src/share/fauxton/assets/js/libs/nv.d3.js | 13119 +++++++++++++
src/share/fauxton/assets/js/libs/require.js | 2045 ++
src/share/fauxton/assets/js/libs/spin.min.js | 1 +
.../assets/js/plugins/backbone.layoutmanager.js | 996 +
.../fauxton/assets/js/plugins/jquery.form.js | 1190 ++
src/share/fauxton/assets/js/plugins/prettify.js | 28 +
.../assets/less/bootstrap/accordion.less | 34 +
.../fauxton/assets/less/bootstrap/alerts.less | 79 +
.../assets/less/bootstrap/bootstrap.less | 63 +
.../assets/less/bootstrap/breadcrumbs.less | 24 +
.../assets/less/bootstrap/button-groups.less | 229 +
.../fauxton/assets/less/bootstrap/buttons.less | 228 +
.../fauxton/assets/less/bootstrap/carousel.less | 158 +
.../fauxton/assets/less/bootstrap/close.less | 32 +
.../fauxton/assets/less/bootstrap/code.less | 61 +
.../less/bootstrap/component-animations.less | 22 +
.../assets/less/bootstrap/dropdowns.less | 248 +
.../less/bootstrap/font-awesome/bootstrap.less | 84 +
.../less/bootstrap/font-awesome/core.less | 129 +
.../less/bootstrap/font-awesome/extras.less | 93 +
.../font-awesome/font-awesome-ie7.less | 1953 ++
.../bootstrap/font-awesome/font-awesome.less | 33 +
.../less/bootstrap/font-awesome/icons.less | 381 +
.../less/bootstrap/font-awesome/mixins.less | 48 +
.../less/bootstrap/font-awesome/path.less | 14 +
.../less/bootstrap/font-awesome/variables.less | 735 +
.../fauxton/assets/less/bootstrap/forms.less | 690 +
.../fauxton/assets/less/bootstrap/grid.less | 21 +
.../assets/less/bootstrap/hero-unit.less | 25 +
.../assets/less/bootstrap/labels-badges.less | 84 +
.../fauxton/assets/less/bootstrap/layouts.less | 16 +
.../fauxton/assets/less/bootstrap/media.less | 55 +
.../fauxton/assets/less/bootstrap/mixins.less | 716 +
.../fauxton/assets/less/bootstrap/modals.less | 95 +
.../fauxton/assets/less/bootstrap/navbar.less | 497 +
.../fauxton/assets/less/bootstrap/navs.less | 409 +
.../fauxton/assets/less/bootstrap/pager.less | 43 +
.../assets/less/bootstrap/pagination.less | 123 +
.../fauxton/assets/less/bootstrap/popovers.less | 133 +
.../assets/less/bootstrap/progress-bars.less | 122 +
.../fauxton/assets/less/bootstrap/reset.less | 216 +
.../less/bootstrap/responsive-1200px-min.less | 28 +
.../less/bootstrap/responsive-767px-max.less | 193 +
.../less/bootstrap/responsive-768px-979px.less | 19 +
.../less/bootstrap/responsive-navbar.less | 189 +
.../less/bootstrap/responsive-utilities.less | 59 +
.../assets/less/bootstrap/responsive.less | 48 +
.../assets/less/bootstrap/scaffolding.less | 53 +
.../fauxton/assets/less/bootstrap/sprites.less | 197 +
.../fauxton/assets/less/bootstrap/tables.less | 244 +
.../assets/less/bootstrap/tests/buttons.html | 139 +
.../assets/less/bootstrap/tests/css-tests.css | 150 +
.../assets/less/bootstrap/thumbnails.less | 53 +
.../fauxton/assets/less/bootstrap/tooltip.less | 70 +
.../fauxton/assets/less/bootstrap/type.less | 247 +
.../assets/less/bootstrap/utilities.less | 30 +
.../assets/less/bootstrap/variables.less | 301 +
.../fauxton/assets/less/bootstrap/wells.less | 29 +
src/share/fauxton/assets/less/config.less | 46 +
src/share/fauxton/assets/less/couchdb.less | 72 +
src/share/fauxton/assets/less/database.less | 245 +
src/share/fauxton/assets/less/fauxton.less | 1009 +
src/share/fauxton/assets/less/icons.less | 111 +
src/share/fauxton/assets/less/logs.less | 24 +
src/share/fauxton/assets/less/prettyprint.less | 46 +
src/share/fauxton/assets/less/variables.less | 82 +
src/share/fauxton/bin/grunt | 18 +
src/share/fauxton/couchapp.js | 39 +
src/share/fauxton/extensions.md | 17 +
src/share/fauxton/favicon.ico | Bin 0 -> 1150 bytes
src/share/fauxton/index.html | 53 +
src/share/fauxton/package.json | 48 +
src/share/fauxton/readme.md | 79 +
src/share/fauxton/settings.json.default | 55 +
src/share/fauxton/settings.json.sample_external | 10 +
src/share/fauxton/tasks/addon/rename.json | 5 +
.../fauxton/tasks/addon/root/base.js.underscore | 21 +
.../tasks/addon/root/resources.js.underscore | 21 +
.../tasks/addon/root/routes.js.underscore | 42 +
src/share/fauxton/tasks/addon/template.js | 70 +
src/share/fauxton/tasks/couchserver.js | 104 +
src/share/fauxton/tasks/fauxton.js | 137 +
src/share/fauxton/tasks/helper.js | 45 +
src/share/fauxton/test/core/layoutSpec.js | 94 +
src/share/fauxton/test/core/navbarSpec.js | 107 +
src/share/fauxton/test/core/paginateSpec.js | 109 +
src/share/fauxton/test/core/routeObjectSpec.js | 105 +
src/share/fauxton/test/mocha/chai.js | 4330 +++++
src/share/fauxton/test/mocha/mocha.css | 251 +
src/share/fauxton/test/mocha/mocha.js | 5428 ++++++
src/share/fauxton/test/mocha/sinon-chai.js | 109 +
src/share/fauxton/test/mocha/sinon.js | 4290 +++++
src/share/fauxton/test/mocha/testUtils.js | 50 +
src/share/fauxton/test/runner.html | 33 +
src/share/fauxton/test/test.config.underscore | 15 +
src/share/fauxton/writing_addons.md | 173 +
588 files changed, 125055 insertions(+), 125055 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/Gruntfile.js
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/Gruntfile.js b/src/apps/fauxton/Gruntfile.js
deleted file mode 100644
index 3afaa1f..0000000
--- a/src/apps/fauxton/Gruntfile.js
+++ /dev/null
@@ -1,441 +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.
-
-
-// This is the main application configuration file. It is a Grunt
-// configuration file, which you can learn more about here:
-// https://github.com/cowboy/grunt/blob/master/docs/configuring.md
-
-module.exports = function(grunt) {
- var helper = require('./tasks/helper').init(grunt),
- _ = grunt.util._,
- path = require('path');
-
- var couch_config = function () {
-
- var default_couch_config = {
- fauxton: {
- db: 'http://localhost:5984/fauxton',
- app: './couchapp.js',
- options: {
- okay_if_missing: true
- }
- }
- };
-
- var settings_couch_config = helper.readSettingsFile().couch_config;
- return settings_couch_config || default_couch_config;
- }();
-
- var cleanableAddons = function () {
- var theListToClean = [];
- helper.processAddons(function(addon){
- // Only clean addons that are included from a local dir
- if (addon.path){
- theListToClean.push("app/addons/" + addon.name);
- }
- });
-
- return theListToClean;
- }();
-
- var cleanable = function(){
- // Whitelist files and directories to be cleaned
- // You'll always want to clean these two directories
- // Now find the external addons you have and add them for cleaning up
- return _.union(["dist/", "app/load_addons.js"], cleanableAddons);
- }();
-
- var assets = function(){
- // Base assets
- var theAssets = {
- less:{
- paths: ["assets/less"],
- files: {
- "dist/debug/css/fauxton.css": "assets/less/fauxton.less"
- }
- },
- img: ["assets/img/**"]
- };
- helper.processAddons(function(addon){
- // Less files from addons
- var root = addon.path || "app/addons/" + addon.name;
- var lessPath = root + "/assets/less";
- if(path.existsSync(lessPath)){
- // .less files exist for this addon
- theAssets.less.paths.push(lessPath);
- theAssets.less.files["dist/debug/css/" + addon.name + ".css"] =
- lessPath + "/" + addon.name + ".less";
- }
- // Images
- root = addon.path || "app/addons/" + addon.name;
- var imgPath = root + "/assets/img";
- if(path.existsSync(imgPath)){
- theAssets.img.push(imgPath + "/**");
- }
- });
- return theAssets;
- }();
-
- var templateSettings = function(){
- var defaultSettings = {
- "development": {
- "src": "assets/index.underscore",
- "dest": "dist/debug/index.html",
- "variables": {
- "requirejs": "/assets/js/libs/require.js",
- "css": "./css/index.css",
- "base": null
- }
- },
- "release": {
- "src": "assets/index.underscore",
- "dest": "dist/debug/index.html",
- "variables": {
- "requirejs": "./js/require.js",
- "css": "./css/index.css",
- "base": null
- }
- }
- };
-
- var settings = helper.readSettingsFile();
- return settings.template || defaultSettings;
- }();
-
- grunt.initConfig({
-
- // The clean task ensures all files are removed from the dist/ directory so
- // that no files linger from previous builds.
- clean: {
- release: cleanable,
- watch: cleanableAddons
- },
-
- // The lint task will run the build configuration and the application
- // JavaScript through JSHint and report any errors. You can change the
- // options for this task, by reading this:
- // https://github.com/cowboy/grunt/blob/master/docs/task_lint.md
- lint: {
- files: [
- "build/config.js", "app/**/*.js"
- ]
- },
-
- less: {
- compile: {
- options: {
- paths: assets.less.paths
- },
- files: assets.less.files
- }
- },
-
- // The jshint option for scripturl is set to lax, because the anchor
- // override inside main.js needs to test for them so as to not accidentally
- // route. Settings expr true so we can do `migtBeNullObject && mightBeNullObject.coolFunction()`
- jshint: {
- all: ['app/**/*.js', 'Gruntfile.js', "test/core/*.js"],
- options: {
- scripturl: true,
- evil: true,
- expr: true
- }
- },
-
- // The jst task compiles all application templates into JavaScript
- // functions with the underscore.js template function from 1.2.4. You can
- // change the namespace and the template options, by reading this:
- // https://github.com/gruntjs/grunt-contrib/blob/master/docs/jst.md
- //
- // The concat task depends on this file to exist, so if you decide to
- // remove this, ensure concat is updated accordingly.
- jst: {
- "dist/debug/templates.js": [
- "app/templates/**/*.html",
- "app/addons/**/templates/**/*.html"
- ]
- },
-
- template: templateSettings,
-
- // The concatenate task is used here to merge the almond require/define
- // shim and the templates into the application code. It's named
- // dist/debug/require.js, because we want to only load one script file in
- // index.html.
- concat: {
- requirejs: {
- src: [ "assets/js/libs/require.js", "dist/debug/templates.js", "dist/debug/require.js"],
- dest: "dist/debug/js/require.js"
- },
-
- index_css: {
- src: ["dist/debug/css/*.css", 'assets/css/*.css'],
- dest: 'dist/debug/css/index.css'
- },
-
- test_config_js: {
- src: ["dist/debug/templates.js", "test/test.config.js"],
- dest: 'test/test.config.js'
- },
- },
-
- cssmin: {
- compress: {
- files: {
- "dist/release/css/index.css": [
- "dist/debug/css/index.css", 'assets/css/*.css',
- "app/addons/**/assets/css/*.css"
- ]
- },
- options: {
- report: 'min'
- }
- }
- },
-
- uglify: {
- release: {
- files: {
- "dist/release/js/require.js": [
- "dist/debug/js/require.js"
- ]
- }
- }
- },
-
- // Runs a proxy server for easier development, no need to keep deploying to couchdb
- couchserver: {
- dist: './dist/debug/',
- port: 8000,
- proxy: {
- target: {
- host: 'localhost',
- port: 5984,
- https: false
- },
- // This sets the Host header in the proxy so that you can use external
- // CouchDB instances and not have the Host set to 'localhost'
- changeOrigin: true
- }
- },
-
- watch: {
- js: {
- files: helper.watchFiles(['.js'], ["./app/**/*.js", '!./app/load_addons.js',"./assets/**/*.js", "./test/**/*.js"]),
- tasks: ['watchRun'],
- },
- style: {
- files: helper.watchFiles(['.less','.css'],["./app/**/*.css","./app/**/*.less","./assets/**/*.css", "./assets/**/*.less"]),
- tasks: ['clean:watch', 'dependencies','less', 'concat:index_css'],
- },
- html: {
- // the index.html is added in as a dummy file incase there is no
- // html dependancies this will break. So we need one include pattern
- files: helper.watchFiles(['.html'], ['./index.html']),
- tasks: ['clean:watch', 'dependencies']
- },
- options: {
- nospawn: true,
- debounceDelay: 500
- }
- },
-
- requirejs: {
- compile: {
- options: {
- baseUrl: 'app',
- // Include the main configuration file.
- mainConfigFile: "app/config.js",
-
- // Output file.
- out: "dist/debug/require.js",
-
- // Root application module.
- name: "config",
-
- // Do not wrap everything in an IIFE.
- wrap: false,
- optimize: "none",
- findNestedDependencies: true
- }
- }
- },
-
- // Copy build artifacts and library code into the distribution
- // see - http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically
- copy: {
- couchdb: {
- files: [
- // this gets built in the template task
- {src: "dist/release/index.html", dest: "../../share/www/fauxton/index.html"},
- {src: ["**"], dest: "../../share/www/fauxton/js/", cwd:'dist/release/js/', expand: true},
- {src: ["**"], dest: "../../share/www/fauxton/img/", cwd:'dist/release/img/', expand: true},
- {src: ["**"], dest: "../../share/www/fauxton/css/", cwd:"dist/release/css/", expand: true}
- ]
- },
- couchdebug: {
- files: [
- // this gets built in the template task
- {src: "dist/debug/index.html", dest: "../../share/www/fauxton/index.html"},
- {src: ["**"], dest: "../../share/www/fauxton/js/", cwd:'dist/debug/js/', expand: true},
- {src: ["**"], dest: "../../share/www/fauxton/img/", cwd:'dist/debug/img/', expand: true},
- {src: ["**"], dest: "../../share/www/fauxton/css/", cwd:"dist/debug/css/", expand: true}
- ]
- },
- ace: {
- files: [
- {src: "assets/js/libs/ace/worker-json.js", dest: "dist/release/js/ace/worker-json.js"},
- {src: "assets/js/libs/ace/mode-json.js", dest: "dist/release/js/ace/mode-json.js"},
- {src: "assets/js/libs/ace/theme-crimson_editor.js", dest: "dist/release/js/ace/theme-crimson_editor.js"},
- {src: "assets/js/libs/ace/mode-javascript.js", dest: "dist/release/js/ace/mode-javascript.js"},
- {src: "assets/js/libs/ace/worker-javascript.js", dest: "dist/release/js/ace/worker-javascript.js"},
- ]
- },
-
- dist:{
- files:[
- {src: "dist/debug/index.html", dest: "dist/release/index.html"},
- {src: assets.img, dest: "dist/release/img/", flatten: true, expand: true}
- ]
- },
- debug:{
- files:[
- {src: assets.img, dest: "dist/debug/img/", flatten: true, expand: true}
- ]
- }
- },
-
- get_deps: {
- "default": {
- src: "settings.json"
- }
- },
-
- gen_load_addons: {
- "default": {
- src: "settings.json"
- }
- },
- gen_initialize: templateSettings,
- /*gen_initialize: {
- "default": {
- src: "settings.json"
- }
- },*/
-
- mkcouchdb: couch_config,
- rmcouchdb: couch_config,
- couchapp: couch_config,
-
- mochaSetup: {
- default: {
- files: { src: helper.watchFiles(['[Ss]pec.js'], ['./test/core/**/*[Ss]pec.js', './app/**/*[Ss]pec.js'])},
- template: 'test/test.config.underscore',
- config: './app/config.js'
- }
- },
-
- mocha_phantomjs: {
- all: ['test/runner.html']
- }
-
- });
-
- // on watch events configure jshint:all to only run on changed file
- grunt.event.on('watch', function(action, filepath) {
- if (!!filepath.match(/.js$/) && filepath.indexOf('test.config.js') === -1) {
- grunt.config(['jshint', 'all'], filepath);
- }
-
- if (!!filepath.match(/[Ss]pec.js$/)) {
- //grunt.task.run(['mochaSetup','jst', 'concat:test_config_js', 'mocha_phantomjs']);
- }
- });
-
- /*
- * Load Grunt plugins
- */
- // Load fauxton specific tasks
- grunt.loadTasks('tasks');
- // Load the couchapp task
- grunt.loadNpmTasks('grunt-couchapp');
- // Load the copy task
- grunt.loadNpmTasks('grunt-contrib-watch');
- // Load the exec task
- grunt.loadNpmTasks('grunt-exec');
- // Load Require.js task
- grunt.loadNpmTasks('grunt-contrib-requirejs');
- // Load Copy task
- grunt.loadNpmTasks('grunt-contrib-copy');
- // Load Clean task
- grunt.loadNpmTasks('grunt-contrib-clean');
- // Load jshint task
- grunt.loadNpmTasks('grunt-contrib-jshint');
- // Load jst task
- grunt.loadNpmTasks('grunt-contrib-jst');
- // Load less task
- grunt.loadNpmTasks('grunt-contrib-less');
- // Load concat task
- grunt.loadNpmTasks('grunt-contrib-concat');
- // Load UglifyJS task
- grunt.loadNpmTasks('grunt-contrib-uglify');
- // Load CSSMin task
- grunt.loadNpmTasks('grunt-contrib-cssmin');
- grunt.loadNpmTasks('grunt-mocha-phantomjs');
-
- /*
- * Default task
- */
- // defult task - install minified app to local CouchDB
- grunt.registerTask('default', 'couchdb');
-
- /*
- * Transformation tasks
- */
- // clean out previous build artefactsa and lint
- grunt.registerTask('lint', ['clean', 'jshint']);
- grunt.registerTask('test', ['lint', 'mochaSetup','jst', 'concat:test_config_js', 'mocha_phantomjs']);
- // Fetch dependencies (from git or local dir), lint them and make load_addons
- grunt.registerTask('dependencies', ['get_deps', 'gen_load_addons:default']);
- // build templates, js and css
- grunt.registerTask('build', ['less', 'concat:index_css', 'jst', 'requirejs', 'concat:requirejs', 'template:release']);
- // minify code and css, ready for release.
- grunt.registerTask('minify', ['uglify', 'cssmin:compress']);
-
- /*
- * Build the app in either dev, debug, or release mode
- */
- // dev server
- grunt.registerTask('dev', ['debugDev', 'couchserver']);
- // build a debug release
- grunt.registerTask('debug', ['lint', 'dependencies', "gen_initialize:development", 'concat:requirejs','less', 'concat:index_css', 'template:development', 'copy:debug']);
- grunt.registerTask('debugDev', ['clean', 'dependencies', "gen_initialize:development",'jshint','less', 'concat:index_css', 'template:development', 'copy:debug']);
-
- grunt.registerTask('watchRun', ['clean:watch', 'dependencies', 'jshint']);
- // build a release
- grunt.registerTask('release', ['clean' ,'dependencies', "gen_initialize:release", 'jshint', 'build', 'minify', 'copy:dist', 'copy:ace']);
-
- /*
- * Install into CouchDB in either debug, release, or couchapp mode
- */
- // make a development install that is server by mochiweb under _utils
- grunt.registerTask('couchdebug', ['debug', 'copy:couchdebug']);
- // make a minimized install that is server by mochiweb under _utils
- grunt.registerTask('couchdb', ['release', 'copy:couchdb']);
- // make an install that can be deployed as a couchapp
- grunt.registerTask('couchapp_setup', ['release']);
- // install fauxton as couchapp
- grunt.registerTask('couchapp_install', ['rmcouchdb:fauxton', 'mkcouchdb:fauxton', 'couchapp:fauxton']);
- // setup and install fauxton as couchapp
- grunt.registerTask('couchapp_deploy', ['couchapp_setup', 'couchapp_install']);
-};
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/TODO.md
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/TODO.md b/src/apps/fauxton/TODO.md
deleted file mode 100644
index b929e05..0000000
--- a/src/apps/fauxton/TODO.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# Fauxton todo
-In no particular order
-
-- [ ] docco docs
-- [ ] user management
-- [ ] view options
-- [ ] view editor
-- [ ] visual view builder
-- [ ] new db as modal
-- [ ] new view button
-- [ ] show design docs only
-- [ ] fix delete doc button UI bug
-- [ ] delete multiple docs via _bulk_docs
-- [x] show change events in database view
-- [ ] pouchdb addon
-- [ ] bespoke bootstrap style
-- [ ] responsive interface
-- [ ] sticky subnav for some UI components on _all_docs
-- [ ] "show me" button in API bar doesn't
-- [ ] edit index button doesn't
-- [ ] replicate UI
-- [x] delete database
-- [x] format dates better (e.g. in logs plugin)
-- [ ] format log entry better
-- [ ] filter logs by method
-- [ ] restore unfiltered data in logs UI
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/activetasks/assets/less/activetasks.less
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/activetasks/assets/less/activetasks.less b/src/apps/fauxton/app/addons/activetasks/assets/less/activetasks.less
deleted file mode 100644
index 743917d..0000000
--- a/src/apps/fauxton/app/addons/activetasks/assets/less/activetasks.less
+++ /dev/null
@@ -1,18 +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.
-
-.task-tabs li {
- cursor: pointer;
-}
-table.active-tasks{
- font-size: 16px;
-}
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/activetasks/base.js
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/activetasks/base.js b/src/apps/fauxton/app/addons/activetasks/base.js
deleted file mode 100644
index 647add0..0000000
--- a/src/apps/fauxton/app/addons/activetasks/base.js
+++ /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.
-
-define([
- "app",
- "api",
- "addons/activetasks/routes"
-],
-
-function (app, FauxtonAPI, Activetasks) {
-
- Activetasks.initialize = function() {
- FauxtonAPI.addHeaderLink({title: "Active Tasks", icon: "fonticon-activetasks", href: "#/activetasks"});
- };
-
- return Activetasks;
-});
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/activetasks/resources.js
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/activetasks/resources.js b/src/apps/fauxton/app/addons/activetasks/resources.js
deleted file mode 100644
index ca732fb..0000000
--- a/src/apps/fauxton/app/addons/activetasks/resources.js
+++ /dev/null
@@ -1,118 +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.
-
-define([
- "app",
- "backbone",
- "modules/fauxton/base",
- "d3"
-],
-
-function (app, backbone, Fauxton) {
- var Active = {},
- apiv = app.versionAPI;
- app.taskSortBy = 'type';
-
- Active.Task = Backbone.Model.extend({
- initialize: function() {
- this.set({"id": this.get('pid')});
- }
- });
-
-// ALL THE TASKS
- Active.Tasks = Backbone.Model.extend({
- alltypes: {
- "all": "All tasks",
- "replication": "Replication",
- "database_compaction":" Database Compaction",
- "indexer": "Indexer",
- "view_compaction": "View Compaction"
- },
- documentation: "_active_tasks",
- url: function (context) {
- if (context === "apiurl"){
- return window.location.origin + '/_active_tasks';
- } else {
- return app.host + '/_active_tasks';
- }
- },
- fetch: function (options) {
- var fetchoptions = options || {};
- fetchoptions.cache = false;
- return Backbone.Model.prototype.fetch.call(this, fetchoptions);
- },
- parse: function(resp){
- var types = this.getUniqueTypes(resp),
- that = this;
-
- var typeCollections = _.reduce(types, function (collection, val, key) {
- collection[key] = new Active.AllTasks(that.sortThis(resp, key));
- return collection;
- }, {});
-
- typeCollections.all = new Active.AllTasks(resp);
-
- this.set(typeCollections); //now set them all to the model
- },
- getUniqueTypes: function(resp){
- var types = this.alltypes;
-
- _.each(resp, function(type){
- if( typeof(types[type.type]) === "undefined"){
- types[type.type] = type.type.replace(/_/g,' ');
- }
- },this);
-
- this.alltypes = types;
- return types;
- },
- sortThis: function(resp, type){
- return _.filter(resp, function(item) { return item.type === type; });
- },
- changeView: function (view){
- this.set({
- "currentView": view
- });
- },
- getCurrentViewData: function(){
- var currentView = this.get('currentView');
- return this.get(currentView);
- },
- getDatabaseCompactions: function(){
- return this.get('databaseCompactions');
- },
- getIndexes: function(){
- return this.get('indexes');
- },
- getViewCompactions: function(){
- return this.get('viewCompactions');
- }
- });
-
-//ALL TASKS
-
-//NEW IDEA. Lets make this extremely generic, so if there are new weird tasks, they get sorted and collected.
-
- Active.AllTasks = Backbone.Collection.extend({
- model: Active.Task,
- sortByColumn: function(colName) {
- app.taskSortBy = colName;
- this.sort();
- },
- comparator: function(item) {
- return item.get(app.taskSortBy);
- }
- });
-
-
- return Active;
-});
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/activetasks/routes.js
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/activetasks/routes.js b/src/apps/fauxton/app/addons/activetasks/routes.js
deleted file mode 100644
index 89bcfcc..0000000
--- a/src/apps/fauxton/app/addons/activetasks/routes.js
+++ /dev/null
@@ -1,58 +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.
-
-define([
- "app",
- "api",
- "addons/activetasks/resources",
- "addons/activetasks/views"
-],
-
-function (app, FauxtonAPI, Activetasks, Views) {
-
- var ActiveTasksRouteObject = FauxtonAPI.RouteObject.extend({
- layout: "with_sidebar",
- routes: {
- "activetasks/:id": "defaultView",
- "activetasks": "defaultView"
- },
- selectedHeader: 'Active Tasks',
- crumbs: [
- {"name": "Active tasks", "link": "activetasks"}
- ],
- apiUrl: function(){
- return [this.newtasks.url("apiurl"), this.newtasks.documentation];
- },
-
- roles: ["_admin"],
-
- defaultView: function(id){
- this.newtasks = new Activetasks.Tasks({
- currentView: "all",
- id:'activeTasks'
- });
- this.setView("#sidebar-content", new Views.TabMenu({
- currentView: "all",
- model: this.newtasks
- }));
-
- this.setView("#dashboard-content", new Views.DataSection({
- model: this.newtasks,
- currentView: "all"
- }));
- }
- });
-
- Activetasks.RouteObjects = [ActiveTasksRouteObject];
-
- return Activetasks;
-});
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/activetasks/templates/detail.html
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/activetasks/templates/detail.html b/src/apps/fauxton/app/addons/activetasks/templates/detail.html
deleted file mode 100644
index 5e53129..0000000
--- a/src/apps/fauxton/app/addons/activetasks/templates/detail.html
+++ /dev/null
@@ -1,21 +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.
--->
-
-<div class="progress progress-striped active">
- <div class="bar" style="width: <%=model.get("progress")%>%;"><%=model.get("progress")%>%</div>
-</div>
-<p>
- <%= model.get("type").replace('_',' ')%> on
- <%= model.get("node")%>
-</p>
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/activetasks/templates/table.html
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/activetasks/templates/table.html b/src/apps/fauxton/app/addons/activetasks/templates/table.html
deleted file mode 100644
index 885cb47..0000000
--- a/src/apps/fauxton/app/addons/activetasks/templates/table.html
+++ /dev/null
@@ -1,52 +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.
--->
-
-<!--
-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.
--->
-
-<% if (collection.length === 0){%>
- <tr>
- <td>
- <p>No tasks.</p>
- </td>
- </tr>
-<%}else{%>
-
- <thead>
- <tr>
- <th data-type="type">Type</th>
- <th data-type="node">Object</th>
- <th data-type="started_on">Started on</th>
- <th data-type="updated_on">Last updated on</th>
- <th data-type="pid">PID</th>
- <th data-type="progress" width="200">Status</th>
- </tr>
- </thead>
-
- <tbody id="tasks_go_here">
-
- </tbody>
-
-<% } %>
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/activetasks/templates/tabledetail.html
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/activetasks/templates/tabledetail.html b/src/apps/fauxton/app/addons/activetasks/templates/tabledetail.html
deleted file mode 100644
index 67c0dc8..0000000
--- a/src/apps/fauxton/app/addons/activetasks/templates/tabledetail.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.
--->
-
-<td>
- <%= model.get("type")%>
-</td>
-<td>
- <%= objectField %>
-</td>
-<td>
- <%= formatDate(model.get("started_on")) %>
-</td>
-<td>
- <%= formatDate(model.get("updated_on")) %>
-</td>
-<td>
- <%= model.get("pid")%>
-</td>
-<td>
- <div class="progress progress-striped active">
- <div class="bar" style="width: <%=model.get("progress")%>%;"><%=model.get("progress")%>%</div>
-
- </div>
- <p><%=progress%> </p>
-</td>
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/activetasks/templates/tabs.html
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/activetasks/templates/tabs.html b/src/apps/fauxton/app/addons/activetasks/templates/tabs.html
deleted file mode 100644
index 5869748..0000000
--- a/src/apps/fauxton/app/addons/activetasks/templates/tabs.html
+++ /dev/null
@@ -1,46 +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.
--->
-
-
-
-
-
-<div id="sidenav">
- <header class="row-fluid">
- <h3>Filter by: </h3>
- </header>
-
- <nav>
- <ul class="task-tabs nav nav-list">
- <% for (var filter in filters) { %>
- <li data-type="<%=filter%>">
- <a>
- <%=filters[filter]%>
- </a>
- </li>
- <% } %>
- </ul>
- <ul class="nav nav-list views">
- <li class="nav-header">Polling interval</li>
- <li>
- <input id="pollingRange" type="range"
- min="1"
- max="30"
- step="1"
- value="5"/>
- <label for="pollingRange"><span>5</span> second(s)</label>
- </li>
- </ul>
- </nav>
-</div>
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/activetasks/tests/viewsSpec.js
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/activetasks/tests/viewsSpec.js b/src/apps/fauxton/app/addons/activetasks/tests/viewsSpec.js
deleted file mode 100644
index 395b60a..0000000
--- a/src/apps/fauxton/app/addons/activetasks/tests/viewsSpec.js
+++ /dev/null
@@ -1,139 +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.
-define([
- 'api',
- 'addons/activetasks/views',
- 'addons/activetasks/resources',
- 'testUtils'
-], function (FauxtonAPI, Views, Models, testUtils) {
- var assert = testUtils.assert,
- ViewSandbox = testUtils.ViewSandbox;
-
- describe("TabMenu", function () {
- var tabMenu;
-
- beforeEach(function () {
- var newtasks = new Models.Tasks({
- currentView: "all",
- id:'activeTasks'
- });
-
- tabMenu = new Views.TabMenu({
- currentView: "all",
- model: newtasks
- });
- });
-
- describe("on change polling rate", function () {
- var viewSandbox;
- beforeEach(function () {
- viewSandbox = new ViewSandbox();
- viewSandbox.renderView(tabMenu);
- });
-
- afterEach(function () {
- viewSandbox.remove();
- });
-
- it("Should set polling rate", function () {
- $range = tabMenu.$('#pollingRange');
- $range.val(15);
- $range.trigger('change');
-
- assert.equal(tabMenu.$('span').text(), 15);
- });
-
- it("Should clearInterval", function () {
- $range = tabMenu.$('#pollingRange');
- clearIntervalMock = sinon.spy(window,'clearInterval');
- $range.trigger('change');
-
- assert.ok(clearIntervalMock.calledOnce);
-
- });
-
- it("Should trigger update:poll event", function () {
- var spy = sinon.spy();
- Views.Events.on('update:poll', spy);
- $range = tabMenu.$('#pollingRange');
- $range.trigger('change');
-
- assert.ok(spy.calledOnce);
- });
-
- });
-
- describe('on request by type', function () {
- var viewSandbox;
- beforeEach(function () {
- viewSandbox = new ViewSandbox();
- viewSandbox.renderView(tabMenu);
- });
-
- afterEach(function () {
- viewSandbox.remove();
- });
-
- it("should change model view", function () {
- var spy = sinon.spy(tabMenu.model, 'changeView');
- var $rep = tabMenu.$('li[data-type="replication"]');
- $rep.click();
- assert.ok(spy.calledOnce);
- });
-
- it("should set correct active tab", function () {
- var spy = sinon.spy(tabMenu.model, 'changeView');
- var $rep = tabMenu.$('li[data-type="replication"]');
- $rep.click();
- assert.ok($rep.hasClass('active'));
- });
-
- });
-
- });
-
- describe('DataSection', function () {
- var viewSandbox, dataSection;
- beforeEach(function () {
- var newtasks = new Models.Tasks({
- currentView: "all",
- id:'activeTasks'
- });
- newtasks.parse([]);
-
- dataSection = new Views.DataSection({
- currentView: "all",
- model: newtasks
- });
-
- viewSandbox = new ViewSandbox();
- viewSandbox.renderView(dataSection);
- });
-
- afterEach(function () {
- viewSandbox.remove();
- });
-
- describe('#setPolling', function () {
-
- it('Should set polling interval', function () {
- var spy = sinon.spy(window, 'setInterval');
- dataSection.setPolling();
- assert.ok(spy.calledOnce);
- });
-
- });
-
-
-
- });
-});
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/activetasks/views.js
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/activetasks/views.js b/src/apps/fauxton/app/addons/activetasks/views.js
deleted file mode 100644
index 005d487..0000000
--- a/src/apps/fauxton/app/addons/activetasks/views.js
+++ /dev/null
@@ -1,181 +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.
-
-define([
- "app",
- "api",
- "addons/activetasks/resources"
-],
-
-function (app, FauxtonAPI, activetasks) {
-
- var Views = {},
- Events = {},
- pollingInfo ={
- rate: "5",
- intervalId: null
- };
-
-
- Views.Events = _.extend(Events, Backbone.Events);
-
- Views.TabMenu = FauxtonAPI.View.extend({
- template: "addons/activetasks/templates/tabs",
- events: {
- "click .task-tabs li": "requestByType",
- "change #pollingRange": "changePollInterval"
- },
- establish: function(){
- return [this.model.fetch({reset: true})];
- },
- serialize: function(){
- return {
- filters: this.model.alltypes
- };
- },
- afterRender: function(){
- this.$('.task-tabs').find('li').eq(0).addClass('active');
- },
- changePollInterval: function(e){
- var range = this.$(e.currentTarget).val();
- this.$('label[for="pollingRange"] span').text(range);
- pollingInfo.rate = range;
- clearInterval(pollingInfo.intervalId);
- Events.trigger('update:poll');
- },
-
- cleanup: function () {
- clearInterval(pollingInfo.intervalId);
- },
-
- requestByType: function(e){
- var currentTarget = e.currentTarget;
- datatype = this.$(currentTarget).attr("data-type");
-
- this.$('.task-tabs').find('li').removeClass('active');
- this.$(currentTarget).addClass('active');
- this.model.changeView(datatype);
- }
- });
-
- Views.DataSection = FauxtonAPI.View.extend({
- showData: function(){
- var currentData = this.model.getCurrentViewData();
-
- if (this.dataView) {
- this.dataView.update(currentData, this.model.get('currentView').replace('_',' '));
- } else {
- this.dataView = this.insertView( new Views.TableData({
- collection: currentData,
- currentView: this.model.get('currentView').replace('_',' ')
- }));
- }
- },
- showDataAndRender: function () {
- this.showData();
- this.dataView.render();
- },
-
- beforeRender: function () {
- this.showData();
- },
- establish: function(){
- return [this.model.fetch()];
- },
- setPolling: function(){
- var that = this;
- clearInterval(pollingInfo.intervalId);
- pollingInfo.intervalId = setInterval(function() {
- that.establish();
- }, pollingInfo.rate*1000);
- },
- cleanup: function(){
- clearInterval(pollingInfo.intervalId);
- },
- afterRender: function(){
- this.listenTo(this.model, "change", this.showDataAndRender);
- Events.bind('update:poll', this.setPolling, this);
- this.setPolling();
- }
- });
-
- Views.TableData = FauxtonAPI.View.extend({
- tagName: "table",
- className: "table table-bordered table-striped active-tasks",
- template: "addons/activetasks/templates/table",
- events: {
- "click th": "sortByType"
- },
- initialize: function(){
- currentView = this.options.currentView;
- },
- sortByType: function(e){
- var currentTarget = e.currentTarget;
- datatype = $(currentTarget).attr("data-type");
- this.collection.sortByColumn(datatype);
- this.render();
- },
- serialize: function(){
- return {
- currentView: currentView,
- collection: this.collection
- };
- },
-
- update: function (collection, currentView) {
- this.collection = collection;
- this.currentView = currentView;
- },
-
- beforeRender: function(){
- //iterate over the collection to add each
- this.collection.forEach(function(item) {
- this.insertView("#tasks_go_here", new Views.TableDetail({
- model: item
- }));
- }, this);
- }
- });
-
- Views.TableDetail = FauxtonAPI.View.extend({
- tagName: 'tr',
- template: "addons/activetasks/templates/tabledetail",
- initialize: function(){
- this.type = this.model.get('type');
- },
- getObject: function(){
- var objectField = this.model.get('database');
- if (this.type === "replication"){
- objectField = this.model.get('source') + " to " + this.model.get('target');
- }
- return objectField;
- },
- getProgress: function(){
- var progress = "";
- if (this.type === "indexer"){
- progress = "Processed " +this.model.get('changes_done')+ " of "+this.model.get('total_changes')+ ' changes';
- }
- return progress;
- },
- serialize: function(){
- return {
- model: this.model,
- objectField: this.getObject(),
- progress: this.getProgress()
- };
- }
- });
-
-
-
- return Views;
-});
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/auth/assets/less/auth.less
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/auth/assets/less/auth.less b/src/apps/fauxton/app/addons/auth/assets/less/auth.less
deleted file mode 100644
index 598da10..0000000
--- a/src/apps/fauxton/app/addons/auth/assets/less/auth.less
+++ /dev/null
@@ -1,15 +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.
-
-.menuDropdown {
- display: none;
-}
http://git-wip-us.apache.org/repos/asf/couchdb/blob/b90c3b0a/src/apps/fauxton/app/addons/auth/base.js
----------------------------------------------------------------------
diff --git a/src/apps/fauxton/app/addons/auth/base.js b/src/apps/fauxton/app/addons/auth/base.js
deleted file mode 100644
index 9f9a332..0000000
--- a/src/apps/fauxton/app/addons/auth/base.js
+++ /dev/null
@@ -1,69 +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.
-
-define([
- "app",
- "api",
- "addons/auth/routes"
-],
-
-function(app, FauxtonAPI, Auth) {
-
- Auth.session = new Auth.Session();
- FauxtonAPI.setSession(Auth.session);
-
- Auth.initialize = function() {
- Auth.navLink = new Auth.NavLink({model: Auth.session});
-
- FauxtonAPI.addHeaderLink({
- title: "Auth",
- href: "#_auth",
- view: Auth.navLink,
- icon: "fonticon-user",
- bottomNav: true,
- establish: [FauxtonAPI.session.fetchUser()]
- });
-
-
- var auth = function (session, roles) {
- var deferred = $.Deferred();
-
- if (session.isAdminParty()) {
- deferred.resolve();
- } else if(session.matchesRoles(roles)) {
- deferred.resolve();
- } else {
- deferred.reject();
- }
-
- return [deferred];
- };
-
- var authDenied = function () {
- FauxtonAPI.navigate('/noAccess');
- };
-
- FauxtonAPI.auth.registerAuth(auth);
- FauxtonAPI.auth.registerAuthDenied(authDenied);
-
- FauxtonAPI.session.on('change', function () {
- if (FauxtonAPI.session.isLoggedIn()) {
- FauxtonAPI.addHeaderLink({footerNav: true, href:"#logout", title:"Logout", icon: "", className: 'logout'});
- } else {
- FauxtonAPI.removeHeaderLink({title: "Logout", footerNav: true});
- }
- });
- };
-
-
- return Auth;
-});