1
0
forked from mirror/misskey
This commit is contained in:
syuilo 2017-11-13 04:19:36 +09:00
parent 8630828c00
commit 78b9bef0a4
4 changed files with 3 additions and 21 deletions

View File

@ -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;

View File

@ -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;
};

View File

@ -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;

View File

@ -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;