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