| 
									
										
										
										
											2020-01-04 07:24:43 +01:00
										 |  |  | /* | 
					
						
							| 
									
										
										
										
											2020-02-23 06:37:37 +01:00
										 |  |  |  * profile.js | 
					
						
							| 
									
										
										
										
											2020-01-25 06:08:56 +01:00
										 |  |  |  * Copyright (c) 2019 james@firefly-iii.org | 
					
						
							| 
									
										
										
										
											2020-01-04 07:24:43 +01:00
										 |  |  |  * | 
					
						
							|  |  |  |  * This file is part of Firefly III (https://github.com/firefly-iii).
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software: you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU Affero General Public License as | 
					
						
							|  |  |  |  * published by the Free Software Foundation, either version 3 of the | 
					
						
							|  |  |  |  * License, or (at your option) any later version. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program 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 Affero General Public License for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * You should have received a copy of the GNU Affero General Public License | 
					
						
							|  |  |  |  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import Clients from './components/passport/Clients'; | 
					
						
							|  |  |  | import AuthorizedClients from "./components/passport/AuthorizedClients"; | 
					
						
							|  |  |  | import PersonalAccessTokens from "./components/passport/PersonalAccessTokens"; | 
					
						
							|  |  |  | import ProfileOptions from "./components/profile/ProfileOptions"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							| 
									
										
										
										
											2020-02-19 17:13:01 +01:00
										 |  |  |  * First we will load Axios via bootstrap.js | 
					
						
							|  |  |  |  * jquery and bootstrap-sass preloaded in app.js | 
					
						
							|  |  |  |  * vue, uiv and vuei18n are in app_vue.js | 
					
						
							| 
									
										
										
										
											2020-01-04 07:24:43 +01:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require('./bootstrap'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Vue.component('passport-clients', Clients); | 
					
						
							| 
									
										
										
										
											2020-10-17 21:41:13 +02:00
										 |  |  | Vue.component('passport-authorized-clients', AuthorizedClients); | 
					
						
							| 
									
										
										
										
											2020-01-04 07:24:43 +01:00
										 |  |  | Vue.component('passport-personal-access-tokens', PersonalAccessTokens); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Vue.component('profile-options', ProfileOptions); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-27 16:17:24 +02:00
										 |  |  | const i18n = require('./i18n'); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-04 07:24:43 +01:00
										 |  |  | let props = {}; | 
					
						
							| 
									
										
										
										
											2021-07-11 09:31:10 +02:00
										 |  |  | const app = new Vue({ | 
					
						
							| 
									
										
										
										
											2020-10-17 21:41:13 +02:00
										 |  |  |     i18n, | 
					
						
							|  |  |  |     el: "#passport_clients", | 
					
						
							|  |  |  |     render: (createElement) => { | 
					
						
							|  |  |  |         return createElement(ProfileOptions, {props: props}) | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | }); |