Fixed some minor import issues
parent
bdf09b2077
commit
5c5d138c30
|
@ -3,7 +3,7 @@ import {LogCategory} from "tc-shared/log";
|
|||
import {ChannelEntry} from "tc-shared/ui/channel";
|
||||
import {ConnectionHandler} from "tc-shared/ConnectionHandler";
|
||||
import {ServerCommand} from "tc-shared/connection/ConnectionBase";
|
||||
import {CommandResult, ErrorID} from "tc-shared/connection/ServerConnectionDeclaration";
|
||||
import {CommandResult} from "tc-shared/connection/ServerConnectionDeclaration";
|
||||
import {AbstractCommandHandler} from "tc-shared/connection/AbstractCommandHandler";
|
||||
import {IconManager} from "tc-shared/file/Icons";
|
||||
import {AvatarManager} from "tc-shared/file/Avatars";
|
||||
|
|
|
@ -2,11 +2,11 @@ import {createErrorModal, createModal} from "tc-shared/ui/elements/Modal";
|
|||
import {LogCategory} from "tc-shared/log";
|
||||
import {ConnectionHandler} from "tc-shared/ConnectionHandler";
|
||||
import {base64_encode_ab} from "tc-shared/utils/buffers";
|
||||
import {media_image_type} from "tc-shared/file/FileManager";
|
||||
import {spawnYesNo} from "tc-shared/ui/modal/ModalYesNo";
|
||||
import {ClientEntry} from "tc-shared/ui/client";
|
||||
import * as log from "tc-shared/log";
|
||||
import * as moment from "moment";
|
||||
import {media_image_type} from "tc-shared/file/ImageCache";
|
||||
|
||||
const avatar_to_uid = (id: string) => {
|
||||
const buffer = new Uint8Array(id.length / 2);
|
||||
|
|
|
@ -11,7 +11,6 @@ import {
|
|||
save_bookmark
|
||||
} from "tc-shared/bookmarks";
|
||||
import {connection_log, Regex} from "tc-shared/ui/modal/ModalConnect";
|
||||
import {icon_cache_loader, IconManager} from "tc-shared/file/FileManager";
|
||||
import {profiles} from "tc-shared/profiles/ConnectionProfile";
|
||||
import {spawnYesNo} from "tc-shared/ui/modal/ModalYesNo";
|
||||
import {Settings, settings} from "tc-shared/settings";
|
||||
|
@ -21,6 +20,7 @@ import * as i18nc from "tc-shared/i18n/country";
|
|||
import {formatMessage} from "tc-shared/ui/frames/chat";
|
||||
import * as top_menu from "../frames/MenuBar";
|
||||
import {control_bar_instance} from "tc-shared/ui/frames/control-bar";
|
||||
import {icon_cache_loader, IconManager} from "tc-shared/file/Icons";
|
||||
|
||||
export function spawnBookmarkModal() {
|
||||
let modal: Modal;
|
||||
|
|
|
@ -5,10 +5,10 @@ import * as loader from "tc-loader";
|
|||
import {createModal} from "tc-shared/ui/elements/Modal";
|
||||
import {ConnectionProfile, default_profile, find_profile, profiles} from "tc-shared/profiles/ConnectionProfile";
|
||||
import {KeyCode} from "tc-shared/PPTListener";
|
||||
import {icon_cache_loader, IconManager} from "tc-shared/file/FileManager";
|
||||
import * as i18nc from "tc-shared/i18n/country";
|
||||
import {spawnSettingsModal} from "tc-shared/ui/modal/ModalSettings";
|
||||
import {server_connections} from "tc-shared/ui/frames/connection_handlers";
|
||||
import {icon_cache_loader, IconManager} from "tc-shared/file/Icons";
|
||||
|
||||
//FIXME: Move this shit out of this file!
|
||||
export namespace connection_log {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {ConnectionHandler} from "tc-shared/ConnectionHandler";
|
||||
import PermissionType from "tc-shared/permission/PermissionType";
|
||||
import {createErrorModal, createModal} from "tc-shared/ui/elements/Modal";
|
||||
import {FileEntry, spawn_upload_transfer, UploadKey} from "tc-shared/file/FileManager";
|
||||
import {FileEntry, UploadKey} from "tc-shared/file/FileManager";
|
||||
import {LogCategory} from "tc-shared/log";
|
||||
import * as log from "tc-shared/log";
|
||||
import {CommandResult, ErrorID} from "tc-shared/connection/ServerConnectionDeclaration";
|
||||
|
@ -9,6 +9,7 @@ import {tra} from "tc-shared/i18n/localize";
|
|||
import {arrayBufferBase64} from "tc-shared/utils/buffers";
|
||||
import {Settings, settings} from "tc-shared/settings";
|
||||
import * as crc32 from "tc-shared/crypto/crc32";
|
||||
import {transfer_provider} from "tc-shared/file/FileManager";
|
||||
|
||||
export function spawnIconSelect(client: ConnectionHandler, callback_icon?: (id: number) => any, selected_icon?: number) {
|
||||
selected_icon = selected_icon || 0;
|
||||
|
@ -414,7 +415,7 @@ function handle_icon_upload(file: File, client: ConnectionHandler) : UploadingIc
|
|||
bar.set_value(50);
|
||||
bar.set_message(tr("uploading"));
|
||||
|
||||
const connection = spawn_upload_transfer(upload_key);
|
||||
const connection = transfer_provider().spawn_upload_transfer(upload_key);
|
||||
try {
|
||||
await connection.put_data(icon.file)
|
||||
} catch(error) {
|
||||
|
|
|
@ -10,7 +10,6 @@ import * as contextmenu from "tc-shared/ui/elements/ContextMenu";
|
|||
import {createInfoModal} from "tc-shared/ui/elements/Modal";
|
||||
import {copy_to_clipboard} from "tc-shared/utils/helpers";
|
||||
import PermissionType from "tc-shared/permission/PermissionType";
|
||||
import {icon_cache_loader, IconManager} from "tc-shared/file/FileManager";
|
||||
import {LogCategory} from "tc-shared/log";
|
||||
import * as log from "tc-shared/log";
|
||||
import {
|
||||
|
@ -18,6 +17,7 @@ import {
|
|||
ChangedPermissionValue,
|
||||
PermissionEditorMode
|
||||
} from "tc-shared/ui/modal/permission/AbstractPermissionEditor";
|
||||
import {icon_cache_loader, IconManager} from "tc-shared/file/Icons";
|
||||
|
||||
class HTMLPermission {
|
||||
readonly handle: HTMLPermissionEditor;
|
||||
|
|
|
@ -35,7 +35,7 @@ export interface ChannelTreeViewState {
|
|||
tree_version: number;
|
||||
}
|
||||
|
||||
type TreeEntry = ChannelEntry | ServerEntry | ClientEntry;
|
||||
export type TreeEntry = ChannelEntry | ServerEntry | ClientEntry;
|
||||
type FlatTreeEntry = {
|
||||
rendered: any;
|
||||
entry: TreeEntry;
|
||||
|
|
Loading…
Reference in New Issue