Clean up
This commit is contained in:
parent
8630828c00
commit
78b9bef0a4
|
@ -1,5 +1,5 @@
|
||||||
import Connection from './server-stream';
|
import Connection from './server-stream';
|
||||||
import uuid from './uuid';
|
import * as uuid from 'uuid';
|
||||||
|
|
||||||
export default class ServerStreamManager {
|
export default class ServerStreamManager {
|
||||||
private connection = null;
|
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
|
clear both
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import uuid from '../../../common/scripts/uuid';
|
import uuid from 'uuid';
|
||||||
|
|
||||||
this.viewBoxX = 50;
|
this.viewBoxX = 50;
|
||||||
this.viewBoxY = 30;
|
this.viewBoxY = 30;
|
||||||
|
|
|
@ -177,7 +177,7 @@
|
||||||
width 100%
|
width 100%
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import uuid from '../../common/scripts/uuid';
|
import uuid from 'uuid';
|
||||||
|
|
||||||
this.viewBoxX = 100;
|
this.viewBoxX = 100;
|
||||||
this.viewBoxY = 30;
|
this.viewBoxY = 30;
|
||||||
|
|
Loading…
Reference in New Issue