11 changed files with 75 additions and 21 deletions
			
			
		| @ -1,19 +0,0 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> |  | ||||||
| <gresources> |  | ||||||
| 	<gresource prefix="/com/antergos/webkit2-greeter/"> |  | ||||||
| 		<file>css/style.css</file> |  | ||||||
| 		<file>js/bundle.js</file> |  | ||||||
| 		<!--<file>js/_vendor/moment-with-locales.min.js</file> |  | ||||||
| 		<file>js/LightDMObjects.js</file> |  | ||||||
| 		<file>js/Greeter.js</file> |  | ||||||
| 		<file>js/GreeterConfig.js</file> |  | ||||||
| 		<file>js/ThemeUtils.js</file> |  | ||||||
| 		<file>js/ThemeHeartbeat.js</file>--> |  | ||||||
| 	</gresource> |  | ||||||
| </gresources> |  | ||||||
| 
 |  | ||||||
| <!-- |  | ||||||
| 	glib-compile-resources -\-c-name greeter_resources -\-generate -\-target greeter-resources-css.h greeter-resources.gresource.xml |  | ||||||
| 	glib-compile-resources -\-c-name greeter_resources -\-generate -\-target greeter-resources-css.c greeter-resources.gresource.xml |  | ||||||
| --> |  | ||||||
| 
 |  | ||||||
| @ -0,0 +1,40 @@ | |||||||
|  | /* | ||||||
|  |  * bootstrap.js | ||||||
|  |  * | ||||||
|  |  * Copyright © 2017 Antergos Developers <dev@antergos.com> | ||||||
|  |  * | ||||||
|  |  * This file is part of lightdm-webkit2-greeter. | ||||||
|  |  * | ||||||
|  |  * lightdm-webkit2-greeter is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; either version 3 of the License, or | ||||||
|  |  * (at your option) any later version. | ||||||
|  |  * | ||||||
|  |  * lightdm-webkit2-greeter is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  * | ||||||
|  |  * The following additional terms are in effect as per Section 7 of the license: | ||||||
|  |  * | ||||||
|  |  * The preservation of all legal notices and author attributions in | ||||||
|  |  * the material or in the Appropriate Legal Notices displayed | ||||||
|  |  * by works containing it is required. | ||||||
|  |  * | ||||||
|  |  * You should have received a copy of the GNU General Public License | ||||||
|  |  * along with lightdm-webkit2-greeter; If not, see <http://www.gnu.org/licenses/>.
 | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | let _channel; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | function initialize() { | ||||||
|  | 	new QWebChannel( qt.webChannelTransport, channel => { | ||||||
|  | 		_channel = channel; | ||||||
|  | 		window.lightdm = _channel.objects.LightDMGreeter; | ||||||
|  | 		window.greeter_config = _channel.objects.Config; | ||||||
|  | 	}); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | $(window).on('load', initialize); | ||||||
					Loading…
					
					
				
		Reference in new issue