fix(dashboard): fix twemoji CDN
This commit is contained in:
parent
4d4852caf6
commit
bf3168460b
@ -20,7 +20,7 @@
|
|||||||
} else htmlName = "";
|
} else htmlName = "";
|
||||||
|
|
||||||
$: if (settings && settings.appearance.twemoji) {
|
$: if (settings && settings.appearance.twemoji) {
|
||||||
if (nameElement) twemoji.parse(nameElement);
|
if (nameElement) twemoji.parse(nameElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
}
|
}
|
||||||
|
|
||||||
$: icon_url = item.avatar_url ? item.avatar_url : item.icon ? item.icon : default_avatar;
|
$: icon_url = item.avatar_url ? item.avatar_url : item.icon ? item.icon : default_avatar;
|
||||||
|
@ -35,8 +35,8 @@
|
|||||||
let displayNameElement: any;
|
let displayNameElement: any;
|
||||||
|
|
||||||
$: if (settings && settings.appearance.twemoji) {
|
$: if (settings && settings.appearance.twemoji) {
|
||||||
if (descriptionElement) twemoji.parse(descriptionElement);
|
if (descriptionElement) twemoji.parse(descriptionElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (displayNameElement) twemoji.parse(displayNameElement);
|
if (displayNameElement) twemoji.parse(displayNameElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
};
|
};
|
||||||
|
|
||||||
let created = moment(group.created).format("MMM D, YYYY");
|
let created = moment(group.created).format("MMM D, YYYY");
|
||||||
|
@ -46,9 +46,9 @@
|
|||||||
else htmlName = toHTML(group.name);
|
else htmlName = toHTML(group.name);
|
||||||
}
|
}
|
||||||
if (settings && settings.appearance.twemoji) {
|
if (settings && settings.appearance.twemoji) {
|
||||||
if (nameElement) twemoji.parse(nameElement);
|
if (nameElement) twemoji.parse(nameElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (descElement) twemoji.parse(descElement);
|
if (descElement) twemoji.parse(descElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (dnElement) twemoji.parse(dnElement);
|
if (dnElement) twemoji.parse(dnElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
}
|
}
|
||||||
|
|
||||||
let avatarOpen = false;
|
let avatarOpen = false;
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
let listGroupElements: any[] = [];
|
let listGroupElements: any[] = [];
|
||||||
$: if (settings && settings.appearance.twemoji) {
|
$: if (settings && settings.appearance.twemoji) {
|
||||||
if (listGroupElements && listGroupElements.length > 0) {
|
if (listGroupElements && listGroupElements.length > 0) {
|
||||||
listGroupElements.forEach(element => element && twemoji.parse(element));
|
listGroupElements.forEach(element => element && twemoji.parse(element), { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,9 +42,9 @@
|
|||||||
let pronounElement: any;
|
let pronounElement: any;
|
||||||
|
|
||||||
$: if (settings && settings.appearance.twemoji) {
|
$: if (settings && settings.appearance.twemoji) {
|
||||||
if (descriptionElement) twemoji.parse(descriptionElement);
|
if (descriptionElement) twemoji.parse(descriptionElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (displayNameElement) twemoji.parse(displayNameElement);
|
if (displayNameElement) twemoji.parse(displayNameElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (pronounElement) twemoji.parse(pronounElement);
|
if (pronounElement) twemoji.parse(pronounElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
};
|
};
|
||||||
|
|
||||||
let bannerOpen = false;
|
let bannerOpen = false;
|
||||||
|
@ -49,10 +49,10 @@
|
|||||||
else htmlName = toHTML(member.name);
|
else htmlName = toHTML(member.name);
|
||||||
}
|
}
|
||||||
if (settings && settings.appearance.twemoji) {
|
if (settings && settings.appearance.twemoji) {
|
||||||
if (nameElement) twemoji.parse(nameElement);
|
if (nameElement) twemoji.parse(nameElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (descElement) twemoji.parse(descElement);
|
if (descElement) twemoji.parse(descElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (dnElement) twemoji.parse(dnElement);
|
if (dnElement) twemoji.parse(dnElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (prnsElement) twemoji.parse(prnsElement);
|
if (prnsElement) twemoji.parse(prnsElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
}
|
}
|
||||||
|
|
||||||
let avatarOpen = false;
|
let avatarOpen = false;
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
let listGroupElements: any[] = [];
|
let listGroupElements: any[] = [];
|
||||||
$: if (settings && settings.appearance.twemoji) {
|
$: if (settings && settings.appearance.twemoji) {
|
||||||
if (listGroupElements && listGroupElements.length > 0) {
|
if (listGroupElements && listGroupElements.length > 0) {
|
||||||
listGroupElements.forEach(element => element && twemoji.parse(element));
|
listGroupElements.forEach(element => element && twemoji.parse(element), { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,10 +42,10 @@
|
|||||||
let pronounElement: any;
|
let pronounElement: any;
|
||||||
|
|
||||||
$: if (settings && settings.appearance.twemoji) {
|
$: if (settings && settings.appearance.twemoji) {
|
||||||
if (descriptionElement) twemoji.parse(descriptionElement);
|
if (descriptionElement) twemoji.parse(descriptionElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (nameElement) twemoji.parse(nameElement);
|
if (nameElement) twemoji.parse(nameElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (tagElement) twemoji.parse(tagElement);
|
if (tagElement) twemoji.parse(tagElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
if (pronounElement) twemoji.parse(pronounElement);
|
if (pronounElement) twemoji.parse(pronounElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
htmlName = toHTML(user.name);
|
htmlName = toHTML(user.name);
|
||||||
}
|
}
|
||||||
$: if (settings && settings.appearance.twemoji) {
|
$: if (settings && settings.appearance.twemoji) {
|
||||||
if (welcomeElement) twemoji.parse(welcomeElement);
|
if (welcomeElement) twemoji.parse(welcomeElement, { base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' });
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user