mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Some checks are pending
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64, ubuntu-latest) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64, ubuntu-latest) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda126-image (linux/amd64, ubuntu-latest) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda126-image (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64, ubuntu-latest) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Create and publish Docker images with specific build args / build-slim-image (linux/amd64, ubuntu-latest) (push) Waiting to run
Create and publish Docker images with specific build args / build-slim-image (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda126-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-slim-images (push) Blocked by required conditions
Python CI / Format Backend (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
49 lines
1.2 KiB
Svelte
49 lines
1.2 KiB
Svelte
<script lang="ts">
|
|
import { getContext, onMount } from 'svelte';
|
|
|
|
const i18n = getContext('i18n');
|
|
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
|
|
|
|
export let user = null;
|
|
</script>
|
|
|
|
{#if user}
|
|
<div class=" flex gap-3.5 w-full py-3 px-3 items-center">
|
|
<div class=" items-center flex shrink-0">
|
|
<img
|
|
src={`${WEBUI_API_BASE_URL}/users/${user?.id}/profile/image`}
|
|
class=" size-12 object-cover rounded-xl"
|
|
alt="profile"
|
|
/>
|
|
</div>
|
|
|
|
<div class=" flex flex-col w-full flex-1">
|
|
<div class="mb-0.5 font-medium line-clamp-1 pr-2">
|
|
{user.name}
|
|
</div>
|
|
|
|
<div class=" flex items-center gap-2">
|
|
{#if user?.active}
|
|
<div>
|
|
<span class="relative flex size-2">
|
|
<span
|
|
class="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"
|
|
/>
|
|
<span class="relative inline-flex rounded-full size-2 bg-green-500" />
|
|
</span>
|
|
</div>
|
|
|
|
<span class="text-xs"> {$i18n.t('Active')} </span>
|
|
{:else}
|
|
<div>
|
|
<span class="relative flex size-2">
|
|
<span class="relative inline-flex rounded-full size-2 bg-gray-500" />
|
|
</span>
|
|
</div>
|
|
|
|
<span class="text-xs"> {$i18n.t('Away')} </span>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|