Moved to ts for other dependencies.

This commit is contained in:
SamTV12345 2023-06-23 21:18:12 +02:00
parent 7b99edc471
commit 237f7242ec
No known key found for this signature in database
GPG key ID: E63EEC7466038043
8 changed files with 884 additions and 1379 deletions

View file

@ -4,7 +4,7 @@
*/
import AttributeMap from '../../static/js/AttributeMap';
import {applyToAText, makeAText} from '../../static/js/Changeset';
import {applyToAText, copyAText, makeAText} from '../../static/js/Changeset';
import ChatMessage from '../../static/js/ChatMessage';
import {AttributePool} from '../../static/js/AttributePool';
import {Stream} from '../utils/Stream';

View file

@ -21,7 +21,7 @@
import AttributeMap from '../../static/js/AttributeMap';
import {getPad} from '../db/PadManager';
import Changeset from '../../static/js/Changeset';
import {} from '../../static/js/Changeset';
import ChatMessage from '../../static/js/ChatMessage';
import {AttributePool} from '../../static/js/AttributePool';
import AttributeManager from '../../static/js/AttributeManager';
@ -797,6 +797,7 @@ const _correctMarkersInPad = (atext, apool) => {
return builder.toString();
};
export let clientVars:any
/**
* Handles a CLIENT_READY. A CLIENT_READY is the first message from the client
* to the server. The Client sends his token
@ -954,7 +955,7 @@ const handleClientReady = async (socket, message) => {
// Warning: never ever send sessionInfo.padId to the client. If the client is read only you
// would open a security hole 1 swedish mile wide...
const clientVars = {
clientVars = {
skinName: skinName,
skinVariants: skinVariants,
randomVersionString: randomString(4),