You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2018/10/09 09:09:11 UTC
[07/27] lucene-solr:solr7896-login-page: WIP add login page with
bootstrap
WIP add login page with bootstrap
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/5728c9be
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5728c9be
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5728c9be
Branch: refs/heads/solr7896-login-page
Commit: 5728c9be70a4decb0747080b9f3fc4ebc10e0d6c
Parents: 2ac10e4
Author: Jan Høydahl <ja...@apache.org>
Authored: Fri Apr 20 13:43:14 2018 +0200
Committer: Jan Høydahl <ja...@apache.org>
Committed: Fri Apr 20 13:43:14 2018 +0200
----------------------------------------------------------------------
solr/webapp/templates/loginDialog.html | 30 +
solr/webapp/templates/logoutLink.html | 1 +
solr/webapp/web/WEB-INF/web.xml | 2 +-
solr/webapp/web/css/bootstrap.min.css | 7 +
solr/webapp/web/index.html | 3 +
solr/webapp/web/js/angular/app.js | 2 +-
solr/webapp/web/js/angular/directives.js | 68 +
.../web/js/angular/http-auth-interceptor.js | 122 ++
solr/webapp/web/js/angular/login-controllers.js | 37 +
solr/webapp/web/libs/bootstrap.js | 2006 ++++++++++++++++++
solr/webapp/web/libs/bootstrap.min.js | 7 +
11 files changed, 2283 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5728c9be/solr/webapp/templates/loginDialog.html
----------------------------------------------------------------------
diff --git a/solr/webapp/templates/loginDialog.html b/solr/webapp/templates/loginDialog.html
new file mode 100644
index 0000000..a217daa
--- /dev/null
+++ b/solr/webapp/templates/loginDialog.html
@@ -0,0 +1,30 @@
+<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true" data-backdrop="static">
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <form ng-submit="submit()" name="loginCredentialsForm" role="form">
+ <div class="modal-header">
+ <h4 class="modal-title" id="loginModalLabel">Enter credentials</h4>
+ </div>
+ <div class="modal-body">
+ <div class="form-horizontal">
+ <div class="form-group">
+ <label class="col-lg-4 control-label" for="userName">User name</label>
+ <div class="col-lg-4">
+ <input type="text" class="form-control" ng-model="credentials.userName" id="userName" placeholder="User name">
+ </div>
+ </div>
+ <div class="form-group">
+ <label class="col-lg-4 control-label" for="password">Password</label>
+ <div class="col-lg-4">
+ <input type="password" class="form-control" ng-model="credentials.password" id="password" placeholder="Password">
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="modal-footer">
+ <input type="submit" class="btn btn-primary" value="Log in"></input>
+ </div>
+ </form>
+ </div>
+ </div>
+</div>
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5728c9be/solr/webapp/templates/logoutLink.html
----------------------------------------------------------------------
diff --git a/solr/webapp/templates/logoutLink.html b/solr/webapp/templates/logoutLink.html
new file mode 100644
index 0000000..0796ed9
--- /dev/null
+++ b/solr/webapp/templates/logoutLink.html
@@ -0,0 +1 @@
+<p ng-show="isLoggedIn()" class="navbar-text navbar-right"><a href="" ng-click="logOut()">Log out</a></p>
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5728c9be/solr/webapp/web/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/solr/webapp/web/WEB-INF/web.xml b/solr/webapp/web/WEB-INF/web.xml
index 22082c8..d3ec13e 100644
--- a/solr/webapp/web/WEB-INF/web.xml
+++ b/solr/webapp/web/WEB-INF/web.xml
@@ -56,7 +56,7 @@
-->
<init-param>
<param-name>excludePatterns</param-name>
- <param-value>/partials/.+,/libs/.+,/css/.+,/js/.+,/img/.+</param-value>
+ <param-value>/partials/.+,/libs/.+,/css/.+,/js/.+,/img/.+,/templates/.+</param-value>
</init-param>
</filter>