couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject fauxton commit: updated refs/heads/master to 9f26ac1
Date Thu, 29 Jan 2015 16:36:19 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 18bd88f2f -> 9f26ac1e2


Remove old modules

Neither of these modules are used any more. Time to remove them


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/9f26ac1e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/9f26ac1e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/9f26ac1e

Branch: refs/heads/master
Commit: 9f26ac1e22afba81e4df99dbeaf7afd0c8effa8d
Parents: 18bd88f
Author: Garren Smith <garren.smith@gmail.com>
Authored: Thu Jan 29 16:40:21 2015 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Thu Jan 29 18:35:53 2015 +0200

----------------------------------------------------------------------
 .gitignore                                     |  2 -
 app/addons/contribute/base.js                  | 33 ------------
 app/addons/exampleAuth/base.js                 | 59 ---------------------
 app/addons/exampleAuth/templates/noAccess.html | 19 -------
 4 files changed, 113 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/9f26ac1e/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 191d84b..db58376 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,9 +8,7 @@ app/addons/*
 !app/addons/config
 !app/addons/plugins
 !app/addons/replication
-!app/addons/contribute
 !app/addons/auth
-!app/addons/exampleAuth
 !app/addons/permissions
 !app/addons/verifyinstall
 !app/addons/compaction

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/9f26ac1e/app/addons/contribute/base.js
----------------------------------------------------------------------
diff --git a/app/addons/contribute/base.js b/app/addons/contribute/base.js
deleted file mode 100644
index 8f622fe..0000000
--- a/app/addons/contribute/base.js
+++ /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.
-
-define([
-  // Libraries.
-  "jquery",
-  "lodash"
-],
-function($, _){
-  $.contribute = function(message, file){
-    /*
-    var JST = window.JST = window.JST || {};
-    var template = JST['app/addons/contribute/templates/modal.html'];
-    console.log(template);
-    var compiled = template({message: message, file: file});
-    */
-    console.log('contribute!contribute!monorail!contribute!');
-    /*
-    console.log(compiled);
-    var elem = $(compiled);
-    elem.modal('show');
-    */
-  };
-});

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/9f26ac1e/app/addons/exampleAuth/base.js
----------------------------------------------------------------------
diff --git a/app/addons/exampleAuth/base.js b/app/addons/exampleAuth/base.js
deleted file mode 100644
index aa99670..0000000
--- a/app/addons/exampleAuth/base.js
+++ /dev/null
@@ -1,59 +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"
-],
-
-function(app, FauxtonAPI) {
-  // This is an example module of using the new auth module.
-
-  var noAccessView = FauxtonAPI.View.extend({
-    template: "addons/exampleAuth/templates/noAccess"
-
-  });
-
-  // To utilise the authentication - all that is required, is one callback
-  // that is registered with the auth api. This function can return an array
-  // of deferred objects.
-  // The roles argument that is passed in is the required roles for the current user
-  // to be allowed to access the current page.
-  // The layout is the main layout for use when you want to render a view onto the page
-  var auth = function (roles) {
-    var deferred = $.Deferred();
-
-    if (roles.indexOf('_admin') > -1) {
-      deferred.reject();
-    } else {
-      deferred.resolve();
-    }
-
-    return [deferred];
-  };
-
-  // If you would like to do something with when access is denied you can register this callback.
-  // It will be called is access has been denied on the previous page.
-  var authFail = function () {
-    app.masterLayout.setView('#dashboard', new noAccessView());
-    app.masterLayout.renderView('#dashboard');
-  };
-
-  // Register the auth call back. This will be called before new route rendered
-  FauxtonAPI.auth.registerAuth(auth);
-  // Register a failed route request callback. This is called if access is denied.
-  FauxtonAPI.auth.registerAuthDenied(authFail);
-
-
-
-});

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/9f26ac1e/app/addons/exampleAuth/templates/noAccess.html
----------------------------------------------------------------------
diff --git a/app/addons/exampleAuth/templates/noAccess.html b/app/addons/exampleAuth/templates/noAccess.html
deleted file mode 100644
index f1a9506..0000000
--- a/app/addons/exampleAuth/templates/noAccess.html
+++ /dev/null
@@ -1,19 +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="row-fluid" >
-  <div class="span6 offset4">
-  <h3> You do not have permission to view this page </h3>
-</div>
-</div>


Mime
View raw message