Added more stuff for future version of the library
This commit is contained in:
		
							parent
							
								
									94c4ca00a3
								
							
						
					
					
						commit
						5f2488846b
					
				
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -122,6 +122,10 @@ socket.on('logged_out', function() { | |||||||
| 	document.getElementById('home_not_logged_in').classList.remove('hide') | 	document.getElementById('home_not_logged_in').classList.remove('hide') | ||||||
| }) | }) | ||||||
| 
 | 
 | ||||||
|  | socket.on('restoringQueue', function() { | ||||||
|  | 	toast(i18n.t('toasts.restoringQueue'), 'loading', false, 'restoring_queue') | ||||||
|  | }) | ||||||
|  | 
 | ||||||
| socket.on('cancellingCurrentItem', function(uuid) { | socket.on('cancellingCurrentItem', function(uuid) { | ||||||
| 	toast(i18n.t('toasts.cancellingCurrentItem'), 'loading', false, 'cancelling_' + uuid) | 	toast(i18n.t('toasts.cancellingCurrentItem'), 'loading', false, 'cancelling_' + uuid) | ||||||
| }) | }) | ||||||
|  | |||||||
| @ -96,7 +96,7 @@ export default { | |||||||
| 			} | 			} | ||||||
| 		}, | 		}, | ||||||
| 		initQueue(data) { | 		initQueue(data) { | ||||||
| 			const { queue: initQueue, queueComplete: initQueueComplete, currentItem, queueList: initQueueList } = data | 			const { queue: initQueue, queueComplete: initQueueComplete, currentItem, queueList: initQueueList, restored } = data | ||||||
| 
 | 
 | ||||||
| 			if (initQueueComplete.length) { | 			if (initQueueComplete.length) { | ||||||
| 				initQueueComplete.forEach(item => { | 				initQueueComplete.forEach(item => { | ||||||
| @ -114,6 +114,8 @@ export default { | |||||||
| 				initQueueList[item].init = true | 				initQueueList[item].init = true | ||||||
| 				this.addToQueue(initQueueList[item]) | 				this.addToQueue(initQueueList[item]) | ||||||
| 			}) | 			}) | ||||||
|  | 
 | ||||||
|  | 			if (restored) toast(this.$t('toasts.queueRestored'), 'done', true, 'restoring_queue') | ||||||
| 		}, | 		}, | ||||||
| 		addToQueue(queueItem, current = false) { | 		addToQueue(queueItem, current = false) { | ||||||
| 			this.queueList[queueItem.uuid] = queueItem | 			this.queueList[queueItem.uuid] = queueItem | ||||||
|  | |||||||
| @ -152,6 +152,8 @@ const en = { | |||||||
| 	searchbar: 'Search anything you want (or just paste a link)', | 	searchbar: 'Search anything you want (or just paste a link)', | ||||||
| 	downloads: 'downloads', | 	downloads: 'downloads', | ||||||
| 	toasts: { | 	toasts: { | ||||||
|  | 		restoringQueue: 'Restoring download queue...', | ||||||
|  | 		queueRestored: 'Download queue restored!', | ||||||
| 		addedToQueue: '{0} added to queue', | 		addedToQueue: '{0} added to queue', | ||||||
| 		alreadyInQueue: '{0} is already in queue!', | 		alreadyInQueue: '{0} is already in queue!', | ||||||
| 		finishDownload: '{0} finished downloading.', | 		finishDownload: '{0} finished downloading.', | ||||||
|  | |||||||
| @ -154,6 +154,8 @@ const it = { | |||||||
| 	searchbar: 'Cerca qualsiasi cosa (o incolla semplicemente un link)', | 	searchbar: 'Cerca qualsiasi cosa (o incolla semplicemente un link)', | ||||||
| 	downloads: 'download', | 	downloads: 'download', | ||||||
| 	toasts: { | 	toasts: { | ||||||
|  | 		restoringQueue: 'Ripristinando la coda di download...', | ||||||
|  | 		queueRestored: 'Coda di download ripristinata!', | ||||||
| 		addedToQueue: '{0} aggiunto alla coda', | 		addedToQueue: '{0} aggiunto alla coda', | ||||||
| 		alreadyInQueue: '{0} è già nella coda!', | 		alreadyInQueue: '{0} è già nella coda!', | ||||||
| 		finishDownload: '{0} ha finito di scaricarsi.', | 		finishDownload: '{0} ha finito di scaricarsi.', | ||||||
|  | |||||||
| @ -14,8 +14,8 @@ | |||||||
| 		left: 0; | 		left: 0; | ||||||
| 		bottom: 0; | 		bottom: 0; | ||||||
| 		background-color: var(--accent-color); | 		background-color: var(--accent-color); | ||||||
| 		-webkit-transition: width 0.1s linear; | 		-webkit-transition: width 0.3s linear; | ||||||
| 		transition: width 0.1s linear; | 		transition: width 0.3s linear; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	.converting { | 	.converting { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user