Browse Source

...

sisyphus
Dustin Falgout 9 years ago
parent
commit
0d4c638783
  1. 41
      themes/antergos/js/greeter-compiled.js
  2. 2
      themes/antergos/js/greeter-compiled.js.map
  3. 1
      themes/antergos/js/greeter.js

41
themes/antergos/js/greeter-compiled.js

@ -1,34 +1,8 @@
'use strict'; 'use strict';
var _createClass = (function() { 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 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 ) { function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
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 * Register callbacks for the LDM Greeter as well as any others that haven't been registered
* registered elsewhere. * elsewhere.
*/ */
}, { }, {
@ -263,8 +237,8 @@ var AntergosTheme = (function() {
// For backwards compatibility // For backwards compatibility
last_session = localStorage.getItem(user.name); last_session = localStorage.getItem(user.name);
if (null === last_session) { if (null === last_session) {
// This user has never logged in before let's enable the system's // This user has never logged in before let's enable the system's default
// default session. // session.
last_session = lightdm.default_session; last_session = lightdm.default_session;
} }
this.cache_set(last_session, 'user', user.name, '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>'; 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 // Register event handler here so we don't have to iterate over the users again later.
// again later.
$(template).appendTo(this.$user_list).click(this.start_authentication).children('img').on('error', this.image_not_found); $(template).appendTo(this.$user_list).click(this.start_authentication).children('img').on('error', this.image_not_found);
} // END for ( var user of lightdm.users ) } // END for ( var user of lightdm.users )
} catch (err) { } catch (err) {

2
themes/antergos/js/greeter-compiled.js.map

File diff suppressed because one or more lines are too long

1
themes/antergos/js/greeter.js

@ -26,6 +26,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/** /**
* This is used to access our main class from within jQuery callbacks. * This is used to access our main class from within jQuery callbacks.
*/ */

Loading…
Cancel
Save