Clean up
This commit is contained in:
		
							parent
							
								
									8630828c00
								
							
						
					
					
						commit
						78b9bef0a4
					
				
					 4 changed files with 3 additions and 21 deletions
				
			
		| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
import Connection from './server-stream';
 | 
			
		||||
import uuid from './uuid';
 | 
			
		||||
import * as uuid from 'uuid';
 | 
			
		||||
 | 
			
		||||
export default class ServerStreamManager {
 | 
			
		||||
	private connection = null;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,18 +0,0 @@
 | 
			
		|||
/**
 | 
			
		||||
 * Generate a UUID
 | 
			
		||||
 */
 | 
			
		||||
export default () => {
 | 
			
		||||
	let uuid = '';
 | 
			
		||||
 | 
			
		||||
	for (let i = 0; i < 32; i++) {
 | 
			
		||||
		const random = Math.random() * 16 | 0;
 | 
			
		||||
 | 
			
		||||
		if (i == 8 || i == 12 || i == 16 || i == 20) {
 | 
			
		||||
			uuid += '-';
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		uuid += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return uuid;
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			@ -183,7 +183,7 @@
 | 
			
		|||
				clear both
 | 
			
		||||
	</style>
 | 
			
		||||
	<script>
 | 
			
		||||
		import uuid from '../../../common/scripts/uuid';
 | 
			
		||||
		import uuid from 'uuid';
 | 
			
		||||
 | 
			
		||||
		this.viewBoxX = 50;
 | 
			
		||||
		this.viewBoxY = 30;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -177,7 +177,7 @@
 | 
			
		|||
				width 100%
 | 
			
		||||
	</style>
 | 
			
		||||
	<script>
 | 
			
		||||
		import uuid from '../../common/scripts/uuid';
 | 
			
		||||
		import uuid from 'uuid';
 | 
			
		||||
 | 
			
		||||
		this.viewBoxX = 100;
 | 
			
		||||
		this.viewBoxY = 30;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue