_.template removed
This commit is contained in:
parent
a1e098680d
commit
9f280e320d
|
@ -1,4 +1,4 @@
|
|||
/* global APP, $, _ */
|
||||
/* global APP, $ */
|
||||
|
||||
import {processReplacements, linkify} from './Replacement';
|
||||
import CommandsProcessor from './Commands';
|
||||
|
@ -10,8 +10,9 @@ import UIEvents from '../../../../service/UI/UIEvents';
|
|||
|
||||
import { smileys } from './smileys';
|
||||
|
||||
const sidePannelsContainerId = 'sideToolbarContainer';
|
||||
const compiledTpl = _.template(`
|
||||
let unreadMessages = 0;
|
||||
const sidePanelsContainerId = 'sideToolbarContainer';
|
||||
const htmlStr = `
|
||||
<div id="chat_container" class="sideToolbarContainer__inner">
|
||||
<div id="nickname">
|
||||
<span data-i18n="chat.nickname.title"></span>
|
||||
|
@ -31,13 +32,12 @@ const compiledTpl = _.template(`
|
|||
<img src="images/smile.svg"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>`);
|
||||
function initHTML() {
|
||||
$(`#${sidePannelsContainerId}`)
|
||||
.append(compiledTpl());
|
||||
}
|
||||
</div>`;
|
||||
|
||||
var unreadMessages = 0;
|
||||
function initHTML() {
|
||||
$(`#${sidePanelsContainerId}`)
|
||||
.append(htmlStr);
|
||||
}
|
||||
|
||||
/**
|
||||
* The container id, which is and the element id.
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
/* global $, APP, interfaceConfig, _ */
|
||||
/* global $, APP, interfaceConfig */
|
||||
import Avatar from '../../avatar/Avatar';
|
||||
import UIEvents from '../../../../service/UI/UIEvents';
|
||||
import UIUtil from '../../util/UIUtil';
|
||||
|
||||
const sidePannelsContainerId = 'sideToolbarContainer';
|
||||
const compiledTpl = _.template(`
|
||||
let numberOfContacts = 0;
|
||||
const sidePanelsContainerId = 'sideToolbarContainer';
|
||||
const htmlStr = `
|
||||
<div id="contacts_container" class="sideToolbarContainer__inner">
|
||||
<div class="title" data-i18n="contactlist"
|
||||
data-i18n-options='{"pcount":"1"}'></div>
|
||||
<ul id="contacts"></ul>
|
||||
</div>`);
|
||||
</div>`;
|
||||
|
||||
function initHTML() {
|
||||
$(`#${sidePannelsContainerId}`)
|
||||
.append(compiledTpl());
|
||||
$(`#${sidePanelsContainerId}`)
|
||||
.append(htmlStr);
|
||||
}
|
||||
let numberOfContacts = 0;
|
||||
|
||||
/**
|
||||
* Updates the number of participants in the contact list button and sets
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/* global $, _ */
|
||||
/* global $ */
|
||||
import UIUtil from "../../util/UIUtil";
|
||||
import UIEvents from "../../../../service/UI/UIEvents";
|
||||
import Settings from '../../../settings/Settings';
|
||||
|
||||
const sidePannelsContainerId = 'sideToolbarContainer';
|
||||
const compiledTpl = _.template(`
|
||||
const sidePanelsContainerId = 'sideToolbarContainer';
|
||||
const htmlStr = `
|
||||
<div id="profile_container" class="sideToolbarContainer__inner">
|
||||
<div class="title" data-i18n="profile.title"></div>
|
||||
<div class="sideToolbarBlock first">
|
||||
|
@ -31,10 +31,11 @@ const compiledTpl = _.template(`
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>`);
|
||||
</div>`;
|
||||
|
||||
function initHTML() {
|
||||
$(`#${sidePannelsContainerId}`)
|
||||
.append(compiledTpl());
|
||||
$(`#${sidePanelsContainerId}`)
|
||||
.append(htmlStr);
|
||||
}
|
||||
|
||||
export default {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
/* global $, _, APP, AJS, interfaceConfig, JitsiMeetJS */
|
||||
/* global $, APP, AJS, interfaceConfig, JitsiMeetJS */
|
||||
|
||||
import UIUtil from "../../util/UIUtil";
|
||||
import UIEvents from "../../../../service/UI/UIEvents";
|
||||
import languages from "../../../../service/translation/languages";
|
||||
import Settings from '../../../settings/Settings';
|
||||
|
||||
const sidePannelsContainerId = 'sideToolbarContainer';
|
||||
const compiledTpl = _.template(`
|
||||
const sidePanelsContainerId = 'sideToolbarContainer';
|
||||
const htmlStr = `
|
||||
<div id="settings_container" class="sideToolbarContainer__inner">
|
||||
<div class="title" data-i18n="settings.title"></div>
|
||||
<form class="aui">
|
||||
|
@ -55,10 +55,11 @@ const compiledTpl = _.template(`
|
|||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>`);
|
||||
</div>`;
|
||||
|
||||
function initHTML() {
|
||||
$(`#${sidePannelsContainerId}`)
|
||||
.append(compiledTpl());
|
||||
$(`#${sidePanelsContainerId}`)
|
||||
.append(htmlStr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue