private test(event: MouseEvent): void {
const button = event.currentTarget as HTMLButtonElement;
- button.innerHTML = '<span class="icon icon16 fa-spinner"></span>';
+ button.innerHTML = '<fa-icon size="16" name="spinner" solid></fa-icon>';
this.buttons.forEach((button) => (button.disabled = true));
}
const syncAll = document.createElement("li");
- syncAll.innerHTML = `<a href="#" class="button"><span class="icon icon16 fa-refresh"></span> ${Language.get(
+ syncAll.innerHTML = `<a href="#" class="button"><fa-icon size="16" name="arrows-rotate" solid></fa-icon> ${Language.get(
"wcf.acp.devtools.sync.syncAll",
)}</a>`;
this.buttonSyncAll = syncAll.children[0] as HTMLAnchorElement;
private sync(pluginName: string, target: string): void {
const identifier = this.getButtonIdentifier(pluginName, target);
this.buttons.get(identifier)!.disabled = true;
- this.buttonStatus.get(identifier)!.innerHTML = '<span class="icon icon16 fa-spinner"></span>';
+ this.buttonStatus.get(identifier)!.innerHTML = '<fa-icon size="16" name="spinner" solid></fa-icon>';
Ajax.api(this, {
parameters: {
event.preventDefault();
this.buttonRunTest.classList.add("disabled");
- this.buttonRunTest.innerHTML = `<span class="icon icon16 fa-spinner"></span> ${Language.get("wcf.global.loading")}`;
+ this.buttonRunTest.innerHTML = `<fa-icon size="16" name="spinner" solid></fa-icon> ${Language.get("wcf.global.loading")}`;
DomUtil.innerError(this.buttonRunTest, false);
_dateMonthPrevious.className = "previous jsTooltip";
_dateMonthPrevious.title = Language.get("wcf.date.datePicker.previousMonth");
_dateMonthPrevious.setAttribute("aria-label", Language.get("wcf.date.datePicker.previousMonth"));
- _dateMonthPrevious.innerHTML = '<span class="icon icon16 fa-arrow-left"></span>';
+ _dateMonthPrevious.innerHTML = '<fa-icon size="16" name="arrow-left" solid></fa-icon>';
_dateMonthPrevious.addEventListener("click", () => DatePicker.previousMonth());
header.appendChild(_dateMonthPrevious);
_dateMonthNext.className = "next jsTooltip";
_dateMonthNext.title = Language.get("wcf.date.datePicker.nextMonth");
_dateMonthNext.setAttribute("aria-label", Language.get("wcf.date.datePicker.nextMonth"));
- _dateMonthNext.innerHTML = '<span class="icon icon16 fa-arrow-right"></span>';
+ _dateMonthNext.innerHTML = '<fa-icon size="16" name="arrow-right" solid></fa-icon>';
_dateMonthNext.addEventListener("click", () => DatePicker.nextMonth());
header.appendChild(_dateMonthNext);
<dd>
<div class="inputAddon">
<input type="text" id="wcfUiArticleSearchInput" class="long">
- <a href="#" class="inputSuffix"><span class="icon icon16 fa-search"></span></a>
+ <a href="#" class="inputSuffix"><fa-icon size="16" name="search" solid></fa-icon></a>
</div>
</dd>
</dl>
if (this._loadingOverlay === null) {
this._loadingOverlay = document.createElement("div");
this._loadingOverlay.className = "commentLoadingOverlay";
- this._loadingOverlay.innerHTML = '<span class="icon icon96 fa-spinner"></span>';
+ this._loadingOverlay.innerHTML = '<fa-icon size="96" name="spinner" solid></fa-icon>';
}
this._content.classList.add("loading");
protected _prepare(): void {
this._editorContainer = document.createElement("div");
this._editorContainer.className = "commentEditorContainer";
- this._editorContainer.innerHTML = '<span class="icon icon48 fa-spinner"></span>';
+ this._editorContainer.innerHTML = '<fa-icon size="48" name="spinner" solid></fa-icon>';
const content = this._activeElement!.querySelector(".commentContentContainer")!;
content.insertBefore(this._editorContainer, content.firstChild);
protected _prepare(): void {
this._editorContainer = document.createElement("div");
this._editorContainer.className = "commentEditorContainer";
- this._editorContainer.innerHTML = '<span class="icon icon48 fa-spinner"></span>';
+ this._editorContainer.innerHTML = '<fa-icon size="48" name="spinner" solid></fa-icon>';
const content = this._activeElement!.querySelector(".commentResponseContent")!;
content.insertBefore(this._editorContainer, content.firstChild);
this._clearButton.href = "#";
this._clearButton.className = "button inputSuffix disabled jsTooltip";
this._clearButton.title = Language.get("wcf.global.filter.button.clear");
- this._clearButton.innerHTML = '<span class="icon icon16 fa-times"></span>';
+ this._clearButton.innerHTML = '<fa-icon size="16" name="times" solid></fa-icon>';
this._clearButton.addEventListener("click", (event) => {
event.preventDefault();
visibilityButton.href = "#";
visibilityButton.className = "button inputSuffix jsTooltip";
visibilityButton.title = Language.get("wcf.global.filter.button.visibility");
- visibilityButton.innerHTML = '<span class="icon icon16 fa-eye"></span>';
+ visibilityButton.innerHTML = '<fa-icon size="16" name="eye"></fa-icon>';
visibilityButton.addEventListener("click", (ev) => this._toggleVisibility(ev));
inputAddon.appendChild(visibilityButton);
}
this.addButton.href = "#";
this.addButton.classList.add("button", "inputSuffix", "jsTooltip");
this.addButton.title = Language.get("wcf.global.button.add");
- this.addButton.innerHTML = '<span class="icon icon16 fa-plus"></span>';
+ this.addButton.innerHTML = '<fa-icon size="16" name="plus" solid></fa-icon>';
this.addButton.addEventListener("click", (ev) => this.addItem(ev));
inputAddon.appendChild(this.addButton);
this.clearButton.href = "#";
this.clearButton.classList.add("button", "inputSuffix", "jsTooltip");
this.clearButton.title = Language.get("wcf.global.button.delete");
- this.clearButton.innerHTML = '<span class="icon icon16 fa-times"></span>';
+ this.clearButton.innerHTML = '<fa-icon size="16" name="times" solid></fa-icon>';
this.clearButton.addEventListener("click", (ev) => this.clearList(ev));
inputAddon.appendChild(this.clearButton);
if (this.items.size === 0) {
if (this._loadingOverlay === null) {
this._loadingOverlay = document.createElement("div");
this._loadingOverlay.className = "messageContentLoadingOverlay";
- this._loadingOverlay.innerHTML = '<span class="icon icon96 fa-spinner"></span>';
+ this._loadingOverlay.innerHTML = '<fa-icon size="96" name="spinner" solid></fa-icon>';
}
this._content.classList.add("loading");
button.href = "";
button.title = Language.get("wcf.global.scrollUp");
button.setAttribute("aria-hidden", "true");
- button.innerHTML = '<span class="icon icon32 fa-angle-up"></span>';
+ button.innerHTML = '<fa-icon size="32" name="angle-up" solid></fa-icon>';
button.addEventListener("click", scrollToTop);
_buttonShowNext = document.createElement("a");
_buttonShowNext.className = "mainMenuShowNext";
_buttonShowNext.href = "#";
- _buttonShowNext.innerHTML = '<span class="icon icon32 fa-angle-right"></span>';
+ _buttonShowNext.innerHTML = '<fa-icon size="32" name="angle-right" solid></fa-icon>';
_buttonShowNext.setAttribute("aria-hidden", "true");
_buttonShowNext.addEventListener("click", (event) => {
event.preventDefault();
_buttonShowPrevious = document.createElement("a");
_buttonShowPrevious.className = "mainMenuShowPrevious";
_buttonShowPrevious.href = "#";
- _buttonShowPrevious.innerHTML = '<span class="icon icon32 fa-angle-left"></span>';
+ _buttonShowPrevious.innerHTML = '<fa-icon size="32" name="angle-left" solid></fa-icon>';
_buttonShowPrevious.setAttribute("aria-hidden", "true");
_buttonShowPrevious.addEventListener("click", (event) => {
event.preventDefault();
<dd>
<div class="inputAddon">
<input type="text" id="wcfUiPageSearchInput" class="long">
- <a href="#" class="inputSuffix"><span class="icon icon16 fa-search"></span></a>
+ <a href="#" class="inputSuffix"><fa-icon size="16" name="search" solid></fa-icon></a>
</div>
</dd>
</dl>
getMenuButtons(): UserMenuButton[] {
return [
{
- icon: '<span class="icon icon24 fa-trash-o"></span>',
+ icon: '<fa-icon size="24" name="trash-can"></fa-icon>',
link: this.options.deletedContentLink,
name: "deletedContent",
title: this.options.deletedContent,
getMenuButtons(): UserMenuButton[] {
return [
{
- icon: '<span class="icon icon24 fa-cog"></span>',
+ icon: '<fa-icon size="24" name="cog" solid></fa-icon>',
link: this.options.settingsLink,
name: "settings",
title: this.options.settingsTitle,
this.buildElement();
this.markAllAsReadButton = this.buildButton({
- icon: '<span class="icon icon24 fa-check"></span>',
+ icon: '<fa-icon size="24" name="check" solid></fa-icon>',
link: "#",
name: "markAllAsRead",
title: Language.get("wcf.global.button.markAllAsRead"),
private reset(): void {
const content = this.getContent();
- content.innerHTML = `<span class="userMenuContentStatus"><span class="icon icon24 fa-spinner"></span></span>`;
+ content.innerHTML = `<span class="userMenuContentStatus"><fa-icon size="24" name="spinner" solid></fa-icon></span>`;
}
private buildElement(): void {
const box = document.createElement("div");
box.className = "box16";
- box.innerHTML = item.type === "group" ? `<span class="icon icon16 fa-users"></span>` : item.icon;
+ box.innerHTML = item.type === "group" ? `<fa-icon size="16" name="users" solid></fa-icon>` : item.icon;
box.appendChild(listItem.children[0]);
listItem.appendChild(box);
*/
test(event) {
const button = event.currentTarget;
- button.innerHTML = '<span class="icon icon16 fa-spinner"></span>';
+ button.innerHTML = '<fa-icon size="16" name="spinner" solid></fa-icon>';
this.buttons.forEach((button) => (button.disabled = true));
Ajax.api(this, {
parameters: {
}
}
const syncAll = document.createElement("li");
- syncAll.innerHTML = `<a href="#" class="button"><span class="icon icon16 fa-refresh"></span> ${Language.get("wcf.acp.devtools.sync.syncAll")}</a>`;
+ syncAll.innerHTML = `<a href="#" class="button"><fa-icon size="16" name="arrows-rotate" solid></fa-icon> ${Language.get("wcf.acp.devtools.sync.syncAll")}</a>`;
this.buttonSyncAll = syncAll.children[0];
this.buttonSyncAll.addEventListener("click", this.syncAll.bind(this));
const list = document.querySelector(".contentHeaderNavigation > ul");
sync(pluginName, target) {
const identifier = this.getButtonIdentifier(pluginName, target);
this.buttons.get(identifier).disabled = true;
- this.buttonStatus.get(identifier).innerHTML = '<span class="icon icon16 fa-spinner"></span>';
+ this.buttonStatus.get(identifier).innerHTML = '<fa-icon size="16" name="spinner" solid></fa-icon>';
Ajax.api(this, {
parameters: {
pluginName,
onClick(event) {
event.preventDefault();
this.buttonRunTest.classList.add("disabled");
- this.buttonRunTest.innerHTML = `<span class="icon icon16 fa-spinner"></span> ${Language.get("wcf.global.loading")}`;
+ this.buttonRunTest.innerHTML = `<fa-icon size="16" name="spinner" solid></fa-icon> ${Language.get("wcf.global.loading")}`;
Util_1.default.innerError(this.buttonRunTest, false);
window.setTimeout(() => {
const startTls = document.querySelector('input[name="values[mail_smtp_starttls]"]:checked');
_dateMonthPrevious.className = "previous jsTooltip";
_dateMonthPrevious.title = Language.get("wcf.date.datePicker.previousMonth");
_dateMonthPrevious.setAttribute("aria-label", Language.get("wcf.date.datePicker.previousMonth"));
- _dateMonthPrevious.innerHTML = '<span class="icon icon16 fa-arrow-left"></span>';
+ _dateMonthPrevious.innerHTML = '<fa-icon size="16" name="arrow-left" solid></fa-icon>';
_dateMonthPrevious.addEventListener("click", () => DatePicker.previousMonth());
header.appendChild(_dateMonthPrevious);
const monthYearContainer = document.createElement("span");
_dateMonthNext.className = "next jsTooltip";
_dateMonthNext.title = Language.get("wcf.date.datePicker.nextMonth");
_dateMonthNext.setAttribute("aria-label", Language.get("wcf.date.datePicker.nextMonth"));
- _dateMonthNext.innerHTML = '<span class="icon icon16 fa-arrow-right"></span>';
+ _dateMonthNext.innerHTML = '<fa-icon size="16" name="arrow-right" solid></fa-icon>';
_dateMonthNext.addEventListener("click", () => DatePicker.nextMonth());
header.appendChild(_dateMonthNext);
_dateGrid = document.createElement("ul");
<dd>
<div class="inputAddon">
<input type="text" id="wcfUiArticleSearchInput" class="long">
- <a href="#" class="inputSuffix"><span class="icon icon16 fa-search"></span></a>
+ <a href="#" class="inputSuffix"><fa-icon size="16" name="search" solid></fa-icon></a>
</div>
</dd>
</dl>
if (this._loadingOverlay === null) {
this._loadingOverlay = document.createElement("div");
this._loadingOverlay.className = "commentLoadingOverlay";
- this._loadingOverlay.innerHTML = '<span class="icon icon96 fa-spinner"></span>';
+ this._loadingOverlay.innerHTML = '<fa-icon size="96" name="spinner" solid></fa-icon>';
}
this._content.classList.add("loading");
this._content.appendChild(this._loadingOverlay);
_prepare() {
this._editorContainer = document.createElement("div");
this._editorContainer.className = "commentEditorContainer";
- this._editorContainer.innerHTML = '<span class="icon icon48 fa-spinner"></span>';
+ this._editorContainer.innerHTML = '<fa-icon size="48" name="spinner" solid></fa-icon>';
const content = this._activeElement.querySelector(".commentContentContainer");
content.insertBefore(this._editorContainer, content.firstChild);
}
_prepare() {
this._editorContainer = document.createElement("div");
this._editorContainer.className = "commentEditorContainer";
- this._editorContainer.innerHTML = '<span class="icon icon48 fa-spinner"></span>';
+ this._editorContainer.innerHTML = '<fa-icon size="48" name="spinner" solid></fa-icon>';
const content = this._activeElement.querySelector(".commentResponseContent");
content.insertBefore(this._editorContainer, content.firstChild);
}
this._clearButton.href = "#";
this._clearButton.className = "button inputSuffix disabled jsTooltip";
this._clearButton.title = Language.get("wcf.global.filter.button.clear");
- this._clearButton.innerHTML = '<span class="icon icon16 fa-times"></span>';
+ this._clearButton.innerHTML = '<fa-icon size="16" name="times" solid></fa-icon>';
this._clearButton.addEventListener("click", (event) => {
event.preventDefault();
this.reset();
visibilityButton.href = "#";
visibilityButton.className = "button inputSuffix jsTooltip";
visibilityButton.title = Language.get("wcf.global.filter.button.visibility");
- visibilityButton.innerHTML = '<span class="icon icon16 fa-eye"></span>';
+ visibilityButton.innerHTML = '<fa-icon size="16" name="eye"></fa-icon>';
visibilityButton.addEventListener("click", (ev) => this._toggleVisibility(ev));
inputAddon.appendChild(visibilityButton);
}
this.addButton.href = "#";
this.addButton.classList.add("button", "inputSuffix", "jsTooltip");
this.addButton.title = Language.get("wcf.global.button.add");
- this.addButton.innerHTML = '<span class="icon icon16 fa-plus"></span>';
+ this.addButton.innerHTML = '<fa-icon size="16" name="plus" solid></fa-icon>';
this.addButton.addEventListener("click", (ev) => this.addItem(ev));
inputAddon.appendChild(this.addButton);
this.clearButton = document.createElement("a");
this.clearButton.href = "#";
this.clearButton.classList.add("button", "inputSuffix", "jsTooltip");
this.clearButton.title = Language.get("wcf.global.button.delete");
- this.clearButton.innerHTML = '<span class="icon icon16 fa-times"></span>';
+ this.clearButton.innerHTML = '<fa-icon size="16" name="times" solid></fa-icon>';
this.clearButton.addEventListener("click", (ev) => this.clearList(ev));
inputAddon.appendChild(this.clearButton);
if (this.items.size === 0) {
if (this._loadingOverlay === null) {
this._loadingOverlay = document.createElement("div");
this._loadingOverlay.className = "messageContentLoadingOverlay";
- this._loadingOverlay.innerHTML = '<span class="icon icon96 fa-spinner"></span>';
+ this._loadingOverlay.innerHTML = '<fa-icon size="96" name="spinner" solid></fa-icon>';
}
this._content.classList.add("loading");
this._content.appendChild(this._loadingOverlay);
button.href = "";
button.title = Language.get("wcf.global.scrollUp");
button.setAttribute("aria-hidden", "true");
- button.innerHTML = '<span class="icon icon32 fa-angle-up"></span>';
+ button.innerHTML = '<fa-icon size="32" name="angle-up" solid></fa-icon>';
button.addEventListener("click", scrollToTop);
return button;
}
_buttonShowNext = document.createElement("a");
_buttonShowNext.className = "mainMenuShowNext";
_buttonShowNext.href = "#";
- _buttonShowNext.innerHTML = '<span class="icon icon32 fa-angle-right"></span>';
+ _buttonShowNext.innerHTML = '<fa-icon size="32" name="angle-right" solid></fa-icon>';
_buttonShowNext.setAttribute("aria-hidden", "true");
_buttonShowNext.addEventListener("click", (event) => {
event.preventDefault();
_buttonShowPrevious = document.createElement("a");
_buttonShowPrevious.className = "mainMenuShowPrevious";
_buttonShowPrevious.href = "#";
- _buttonShowPrevious.innerHTML = '<span class="icon icon32 fa-angle-left"></span>';
+ _buttonShowPrevious.innerHTML = '<fa-icon size="32" name="angle-left" solid></fa-icon>';
_buttonShowPrevious.setAttribute("aria-hidden", "true");
_buttonShowPrevious.addEventListener("click", (event) => {
event.preventDefault();
<dd>
<div class="inputAddon">
<input type="text" id="wcfUiPageSearchInput" class="long">
- <a href="#" class="inputSuffix"><span class="icon icon16 fa-search"></span></a>
+ <a href="#" class="inputSuffix"><fa-icon size="16" name="search" solid></fa-icon></a>
</div>
</dd>
</dl>
getMenuButtons() {
return [
{
- icon: '<span class="icon icon24 fa-trash-o"></span>',
+ icon: '<fa-icon size="24" name="trash-can"></fa-icon>',
link: this.options.deletedContentLink,
name: "deletedContent",
title: this.options.deletedContent,
getMenuButtons() {
return [
{
- icon: '<span class="icon icon24 fa-cog"></span>',
+ icon: '<fa-icon size="24" name="cog" solid></fa-icon>',
link: this.options.settingsLink,
name: "settings",
title: this.options.settingsTitle,
this.element = document.createElement("div");
this.buildElement();
this.markAllAsReadButton = this.buildButton({
- icon: '<span class="icon icon24 fa-check"></span>',
+ icon: '<fa-icon size="24" name="check" solid></fa-icon>',
link: "#",
name: "markAllAsRead",
title: Language.get("wcf.global.button.markAllAsRead"),
}
reset() {
const content = this.getContent();
- content.innerHTML = `<span class="userMenuContentStatus"><span class="icon icon24 fa-spinner"></span></span>`;
+ content.innerHTML = `<span class="userMenuContentStatus"><fa-icon size="24" name="spinner" solid></fa-icon></span>`;
}
buildElement() {
this.element.hidden = true;
listItem.dataset.type = item.type;
const box = document.createElement("div");
box.className = "box16";
- box.innerHTML = item.type === "group" ? `<span class="icon icon16 fa-users"></span>` : item.icon;
+ box.innerHTML = item.type === "group" ? `<fa-icon size="16" name="users" solid></fa-icon>` : item.icon;
box.appendChild(listItem.children[0]);
listItem.appendChild(box);
return listItem;