mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: updated activity & session layout
This commit is contained in:
1 parent
a1c6ea1dbb
commit
276c488533
3 files changed
+49
-42
No files matched your search
@@ -37,23 +37,25 @@
|
||||
{#each response.logs as log}
|
||||
<TableRow>
|
||||
<TableCellText title="Client">
|
||||
<div class="image-item">
|
||||
<img
|
||||
height="20"
|
||||
width="20"
|
||||
src={`/icons/color/${log?.clientName.toLocaleLowerCase()}.svg`}
|
||||
alt={log.clientName} />
|
||||
</div>
|
||||
<span class="">
|
||||
<p>
|
||||
{log.clientName}
|
||||
{log.clientVersion}
|
||||
</p>
|
||||
<span class="u-small">
|
||||
on {log.osName}
|
||||
{log.osVersion}
|
||||
<div class="u-flex u-cross-center u-gap-12">
|
||||
<div class="image-item">
|
||||
<img
|
||||
height="20"
|
||||
width="20"
|
||||
src={`/icons/color/${log?.clientName.toLocaleLowerCase()}.svg`}
|
||||
alt={log.clientName} />
|
||||
</div>
|
||||
<span class="u-line-height-1-5">
|
||||
<p>
|
||||
{log.clientName}
|
||||
{log.clientVersion}
|
||||
</p>
|
||||
<span class="u-small">
|
||||
on {log.osName}
|
||||
{log.osVersion}
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</TableCellText>
|
||||
<TableCellText title="Event">{log.event}</TableCellText>
|
||||
|
||||
|
||||
@@ -37,19 +37,25 @@
|
||||
{#each response.logs as log}
|
||||
<TableRow>
|
||||
<TableCellText title="Client">
|
||||
<div class="image-item">
|
||||
<img
|
||||
height="20"
|
||||
width="20"
|
||||
src={`/icons/color/${log?.clientName.toLocaleLowerCase()}.svg`}
|
||||
alt={log.clientName} />
|
||||
<div class="u-flex u-cross-center u-gap-12">
|
||||
<div class="image-item">
|
||||
<img
|
||||
height="20"
|
||||
width="20"
|
||||
src={`/icons/color/${log?.clientName.toLocaleLowerCase()}.svg`}
|
||||
alt={log.clientName} />
|
||||
</div>
|
||||
<span class="u-line-height-1-5">
|
||||
<p>
|
||||
{log.clientName}
|
||||
{log.clientVersion}
|
||||
</p>
|
||||
<span class="u-small">
|
||||
on {log.osName}
|
||||
{log.osVersion}
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<p>
|
||||
{log.clientName}
|
||||
{log.clientVersion}
|
||||
</p>
|
||||
on {log.osName}
|
||||
{log.osVersion}
|
||||
</TableCellText>
|
||||
<TableCellText title="Event">{log.event}</TableCellText>
|
||||
|
||||
|
||||
@@ -50,21 +50,20 @@
|
||||
{#each response.sessions as session}
|
||||
<TableRow>
|
||||
<TableCellText title="Client">
|
||||
<div class="image-item">
|
||||
<img
|
||||
height="20"
|
||||
width="20"
|
||||
src={`/icons/color/${session?.clientName.toLocaleLowerCase()}.svg`}
|
||||
alt={session.clientName} />
|
||||
<div class="u-flex u-cross-center u-gap-12">
|
||||
<div class="image-item">
|
||||
<img
|
||||
height="20"
|
||||
width="20"
|
||||
src={`/icons/color/${session?.clientName.toLocaleLowerCase()}.svg`}
|
||||
alt={session.clientName} />
|
||||
</div>
|
||||
<span class="u-line-height-1-5">
|
||||
<p>{session.clientName}</p>
|
||||
<span class="u-small">
|
||||
Last activity: {toLocaleDateTime(session?.expire)}
|
||||
</span></span>
|
||||
</div>
|
||||
<span>
|
||||
<p>
|
||||
{session.clientName}
|
||||
</p>
|
||||
<span class="u-small">
|
||||
Last activity: {toLocaleDateTime(session?.expire)}
|
||||
</span>
|
||||
</span>
|
||||
</TableCellText>
|
||||
|
||||
<TableCellText title="IP">{session.ip}</TableCellText>
|
||||
|
||||
Reference in new issue
Block a user