mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +00:00
feat(dashboard): add system pronouns + editing (I forgot to)
This commit is contained in:
parent
34926660c8
commit
45bbc26ff3
3 changed files with 18 additions and 0 deletions
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
let htmlDescription: string;
|
||||
let htmlName: string;
|
||||
let htmlPronouns: string;
|
||||
|
||||
if (user.description) {
|
||||
htmlDescription = toHTML(parseTimestamps(user.description), {embed: true});
|
||||
} else {
|
||||
|
|
@ -24,6 +26,10 @@
|
|||
htmlName = toHTML(user.name);
|
||||
}
|
||||
|
||||
if (user.pronouns) {
|
||||
htmlPronouns = toHTML(user.pronouns);
|
||||
}
|
||||
|
||||
let created = moment(user.created).format("MMM D, YYYY");
|
||||
|
||||
let bannerOpen = false;
|
||||
|
|
@ -33,11 +39,13 @@
|
|||
let descriptionElement: any;
|
||||
let nameElement: any;
|
||||
let tagElement: any;
|
||||
let pronounElement: any;
|
||||
|
||||
$: if (settings && settings.appearance.twemoji) {
|
||||
if (descriptionElement) twemoji.parse(descriptionElement);
|
||||
if (nameElement) twemoji.parse(nameElement);
|
||||
if (tagElement) twemoji.parse(tagElement);
|
||||
if (pronounElement) twemoji.parse(pronounElement);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
@ -58,6 +66,11 @@
|
|||
<span bind:this={tagElement}><b>Tag:</b> {user.tag}</span>
|
||||
</Col>
|
||||
{/if}
|
||||
{#if user.pronouns}
|
||||
<Col xs={12} lg={4} class="mb-2">
|
||||
<span bind:this={pronounElement}><b>Pronouns:</b> {@html htmlPronouns}</span>
|
||||
</Col>
|
||||
{/if}
|
||||
{#if user.created && !isPublic}
|
||||
<Col xs={12} lg={4} class="mb-2">
|
||||
<b>Created:</b> {created}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue