mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
feat: add system creation date field to system card
This commit is contained in:
parent
cd81c62371
commit
4c7869ae1d
3 changed files with 21 additions and 1 deletions
|
|
@ -1,11 +1,14 @@
|
|||
<script lang="ts">
|
||||
import { Row, Col, Modal, Image, Button } from 'sveltestrap';
|
||||
import moment from 'moment';
|
||||
import { toHTML } from 'discord-markdown';
|
||||
|
||||
export let user;
|
||||
export let editMode: boolean;
|
||||
|
||||
$: htmlDescription = toHTML(user.description, {embed: true});
|
||||
import { toHTML } from 'discord-markdown';
|
||||
|
||||
let created = moment(user.created).format("MMM D, YYYY");
|
||||
|
||||
let bannerOpen = false;
|
||||
const toggleBannerModal = () => (bannerOpen = !bannerOpen);
|
||||
|
|
@ -22,6 +25,9 @@
|
|||
<Col xs={12} lg={4} class="mb-2">
|
||||
<b>Tag:</b> {user.tag}
|
||||
</Col>
|
||||
<Col xs={12} lg={4} class="mb-2">
|
||||
<b>Created:</b> {created}
|
||||
</Col>
|
||||
{/if}
|
||||
<Col xs={12} lg={4} class="mb-2">
|
||||
<b>Timezone:</b> {user.timezone}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue