|
|
|
@ -1,34 +1,8 @@
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
var _createClass = (function() { |
|
|
|
|
function defineProperties( target, props ) { |
|
|
|
|
for ( var i = 0; i < props.length; i ++ ) { |
|
|
|
|
var descriptor = props[ i ]; |
|
|
|
|
descriptor.enumerable = descriptor.enumerable || false; |
|
|
|
|
descriptor.configurable = true; |
|
|
|
|
if ( "value" in descriptor ) { |
|
|
|
|
descriptor.writable = true; |
|
|
|
|
} |
|
|
|
|
Object.defineProperty( target, descriptor.key, descriptor ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return function( Constructor, protoProps, staticProps ) { |
|
|
|
|
if ( protoProps ) { |
|
|
|
|
defineProperties( Constructor.prototype, protoProps ); |
|
|
|
|
} |
|
|
|
|
if ( staticProps ) { |
|
|
|
|
defineProperties( Constructor, staticProps ); |
|
|
|
|
} |
|
|
|
|
return Constructor; |
|
|
|
|
}; |
|
|
|
|
})(); |
|
|
|
|
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); |
|
|
|
|
|
|
|
|
|
function _classCallCheck( instance, Constructor ) { |
|
|
|
|
if ( ! (instance instanceof Constructor) ) { |
|
|
|
|
throw new TypeError( "Cannot call a class as a function" ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
* |
|
|
|
@ -220,8 +194,8 @@ var AntergosTheme = (function() {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Register callbacks for the LDM Greeter as well as any others that haven't been |
|
|
|
|
* registered elsewhere. |
|
|
|
|
* Register callbacks for the LDM Greeter as well as any others that haven't been registered |
|
|
|
|
* elsewhere. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
}, { |
|
|
|
@ -263,8 +237,8 @@ var AntergosTheme = (function() {
|
|
|
|
|
// For backwards compatibility
|
|
|
|
|
last_session = localStorage.getItem(user.name); |
|
|
|
|
if (null === last_session) { |
|
|
|
|
// This user has never logged in before let's enable the system's
|
|
|
|
|
// default session.
|
|
|
|
|
// This user has never logged in before let's enable the system's default
|
|
|
|
|
// session.
|
|
|
|
|
last_session = lightdm.default_session; |
|
|
|
|
} |
|
|
|
|
this.cache_set(last_session, 'user', user.name, 'session'); |
|
|
|
@ -274,8 +248,7 @@ var AntergosTheme = (function() {
|
|
|
|
|
|
|
|
|
|
template = '\n\t\t\t\t<a href="#" id="' + user.name + '" class="list-group-item ' + user.name + '" data-session="' + last_session + '">\n\t\t\t\t\t<img src="' + image_src + '" class="img-circle" alt="' + user.display_name + '" />\n\t\t\t\t\t<span>' + user.display_name + '</span>\n\t\t\t\t\t<span class="badge"><i class="fa fa-check"></i></span>\n\t\t\t\t</a>'; |
|
|
|
|
|
|
|
|
|
// Register event handler here so we don't have to iterate over the users
|
|
|
|
|
// again later.
|
|
|
|
|
// Register event handler here so we don't have to iterate over the users again later.
|
|
|
|
|
$(template).appendTo(this.$user_list).click(this.start_authentication).children('img').on('error', this.image_not_found); |
|
|
|
|
} // END for ( var user of lightdm.users )
|
|
|
|
|
} catch (err) { |
|
|
|
|