@ -21,7 +21,7 @@ import { FuseSearchService } from "./service/FuseSearchService";
import { ChatMessageDTO } from "./dto/ChatMessageDTO" ;
import { NotificationService } from "./service/NotificationService" ;
import { AlertifyNotificationService } from "./service/AlertifyNotificationService" ;
///<reference path="./SprintfTest.d.ts" />
// import "./SprintfTest.d.ts"
// import { sprintf } from "sprintf-js";
// import sprintf = require('sprintf-js');
@ -29,12 +29,13 @@ import { TemplateFactory } from "./template/TemplateFactory";
import { UserViewDeps } from "./view/UserViewDeps" ;
import { ChatViewDeps } from "./view/ChatViewDeps" ;
import { MarkDownItMarkDownService } from "./service/MarkDownItMarkDownService" ;
import { Sprintf } from "./singleton/Sprintf" ;
const usersListElement = document . getElementById ( 'contacts-box' ) ;
const userSearchButton = document . getElementById ( 'user-search' ) ;
const userSearchInputElement = document . getElementById ( 'user-search-term' ) as HTMLInputElement ;
const userSearchCancelButton = document . getElementById ( 'user-search-cancel' ) ;
const searchService : SearchService < ActiveUserViewModel > = new FuseSearchService ( [ "userName" ] ) ;
const activeU serS earchService : SearchService < ActiveUserViewModel > = new FuseSearchService ( [ "userName" ] ) ;
log . setLevel ( "TRACE" )
@ -53,7 +54,7 @@ const uvDeps: UserViewDeps = {
userSearchButton : userSearchButton ,
// @ts-ignore: Argument of type 'HTMLElement | null' is not assignable to parameter of type 'HTMLElement'. Type 'null' is not assignable to type 'HTMLElement'.
userSearchCancelButton : userSearchCancelButton ,
searchService : searchService ,
searchService : activeU serS earchService,
userContactOnlineTemplate : TemplateFactory.getTemplate ( 'user-contact-online-template' ) ,
userContactOfflineTemplate : TemplateFactory.getTemplate ( 'user-contact-offline-template' )
}
@ -119,9 +120,10 @@ const testList: ChatMessageDTO[] = [];
// @ts-ignore
console . log ( )
// @ts-ignore
log . info ( Sprintf ( "test sprintf" ) )
// log.info(sprintf2.sprintf("test sprintf"))
const ns : NotificationService = new AlertifyNotificationService ( ) ;
ns . success ( "Welcome" ) ;
// ns.errorWithDelay("Hmm very long error notif", 10);
// ns.errorWithDelay("Hmm very long error notif", 10);
const ss = FuseSearchService . getInstance < ActiveUserViewModel > ( [ "" ] ) ;