feat: show oauth sub in admin panel

This commit is contained in:
Jun Siang Cheah 2024-06-21 14:21:34 +01:00
parent 983112d17c
commit 49a00d61ac
38 changed files with 51 additions and 0 deletions

View File

@ -355,6 +355,7 @@
"Notifications": "إشعارات", "Notifications": "إشعارات",
"November": "نوفمبر", "November": "نوفمبر",
"num_thread (Ollama)": "num_thread (أولاما)", "num_thread (Ollama)": "num_thread (أولاما)",
"OAuth ID": "",
"October": "اكتوبر", "October": "اكتوبر",
"Off": "أغلاق", "Off": "أغلاق",
"Okay, Let's Go!": "حسنا دعنا نذهب!", "Okay, Let's Go!": "حسنا دعنا نذهب!",

View File

@ -355,6 +355,7 @@
"Notifications": "Десктоп Известия", "Notifications": "Десктоп Известия",
"November": "Ноември", "November": "Ноември",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Октомври", "October": "Октомври",
"Off": "Изкл.", "Off": "Изкл.",
"Okay, Let's Go!": "ОК, Нека започваме!", "Okay, Let's Go!": "ОК, Нека започваме!",

View File

@ -355,6 +355,7 @@
"Notifications": "নোটিফিকেশনসমূহ", "Notifications": "নোটিফিকেশনসমূহ",
"November": "নভেম্বর", "November": "নভেম্বর",
"num_thread (Ollama)": "num_thread (ওলামা)", "num_thread (Ollama)": "num_thread (ওলামা)",
"OAuth ID": "",
"October": "অক্টোবর", "October": "অক্টোবর",
"Off": "বন্ধ", "Off": "বন্ধ",
"Okay, Let's Go!": "ঠিক আছে, চলুন যাই!", "Okay, Let's Go!": "ঠিক আছে, চলুন যাই!",

View File

@ -355,6 +355,7 @@
"Notifications": "Notificacions d'Escriptori", "Notifications": "Notificacions d'Escriptori",
"November": "Novembre", "November": "Novembre",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Octubre", "October": "Octubre",
"Off": "Desactivat", "Off": "Desactivat",
"Okay, Let's Go!": "D'acord, Anem!", "Okay, Let's Go!": "D'acord, Anem!",

View File

@ -355,6 +355,7 @@
"Notifications": "Mga pahibalo sa desktop", "Notifications": "Mga pahibalo sa desktop",
"November": "", "November": "",
"num_thread (Ollama)": "", "num_thread (Ollama)": "",
"OAuth ID": "",
"October": "", "October": "",
"Off": "Napuo", "Off": "Napuo",
"Okay, Let's Go!": "Okay, lakaw na!", "Okay, Let's Go!": "Okay, lakaw na!",

View File

@ -355,6 +355,7 @@
"Notifications": "Desktop-Benachrichtigungen", "Notifications": "Desktop-Benachrichtigungen",
"November": "November", "November": "November",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Oktober", "October": "Oktober",
"Off": "Aus", "Off": "Aus",
"Okay, Let's Go!": "Okay, los geht's!", "Okay, Let's Go!": "Okay, los geht's!",

View File

@ -355,6 +355,7 @@
"Notifications": "Notifications", "Notifications": "Notifications",
"November": "", "November": "",
"num_thread (Ollama)": "", "num_thread (Ollama)": "",
"OAuth ID": "",
"October": "", "October": "",
"Off": "Off", "Off": "Off",
"Okay, Let's Go!": "Okay, Let's Go!", "Okay, Let's Go!": "Okay, Let's Go!",

View File

@ -355,6 +355,7 @@
"Notifications": "", "Notifications": "",
"November": "", "November": "",
"num_thread (Ollama)": "", "num_thread (Ollama)": "",
"OAuth ID": "",
"October": "", "October": "",
"Off": "", "Off": "",
"Okay, Let's Go!": "", "Okay, Let's Go!": "",

View File

@ -355,6 +355,7 @@
"Notifications": "", "Notifications": "",
"November": "", "November": "",
"num_thread (Ollama)": "", "num_thread (Ollama)": "",
"OAuth ID": "",
"October": "", "October": "",
"Off": "", "Off": "",
"Okay, Let's Go!": "", "Okay, Let's Go!": "",

View File

@ -355,6 +355,7 @@
"Notifications": "Notificaciones", "Notifications": "Notificaciones",
"November": "Noviembre", "November": "Noviembre",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Octubre", "October": "Octubre",
"Off": "Desactivado", "Off": "Desactivado",
"Okay, Let's Go!": "Bien, ¡Vamos!", "Okay, Let's Go!": "Bien, ¡Vamos!",

View File

@ -355,6 +355,7 @@
"Notifications": "اعلان", "Notifications": "اعلان",
"November": "نوامبر", "November": "نوامبر",
"num_thread (Ollama)": "num_thread (اولاما)", "num_thread (Ollama)": "num_thread (اولاما)",
"OAuth ID": "",
"October": "اکتبر", "October": "اکتبر",
"Off": "خاموش", "Off": "خاموش",
"Okay, Let's Go!": "باشه، بزن بریم!", "Okay, Let's Go!": "باشه، بزن بریم!",

View File

@ -355,6 +355,7 @@
"Notifications": "Ilmoitukset", "Notifications": "Ilmoitukset",
"November": "marraskuu", "November": "marraskuu",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "lokakuu", "October": "lokakuu",
"Off": "Pois", "Off": "Pois",
"Okay, Let's Go!": "Eikun menoksi!", "Okay, Let's Go!": "Eikun menoksi!",

View File

@ -355,6 +355,7 @@
"Notifications": "Notifications de bureau", "Notifications": "Notifications de bureau",
"November": "Novembre", "November": "Novembre",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Octobre", "October": "Octobre",
"Off": "Éteint", "Off": "Éteint",
"Okay, Let's Go!": "Okay, Allons-y !", "Okay, Let's Go!": "Okay, Allons-y !",

View File

@ -355,6 +355,7 @@
"Notifications": "Notifications de bureau", "Notifications": "Notifications de bureau",
"November": "Novembre", "November": "Novembre",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Octobre", "October": "Octobre",
"Off": "Désactivé", "Off": "Désactivé",
"Okay, Let's Go!": "D'accord, allons-y !", "Okay, Let's Go!": "D'accord, allons-y !",

View File

@ -355,6 +355,7 @@
"Notifications": "התראות", "Notifications": "התראות",
"November": "נובמבר", "November": "נובמבר",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "אוקטובר", "October": "אוקטובר",
"Off": "כבוי", "Off": "כבוי",
"Okay, Let's Go!": "בסדר, בואו נתחיל!", "Okay, Let's Go!": "בסדר, בואו נתחיל!",

View File

@ -355,6 +355,7 @@
"Notifications": "सूचनाएं", "Notifications": "सूचनाएं",
"November": "नवंबर", "November": "नवंबर",
"num_thread (Ollama)": "num_thread (ओलामा)", "num_thread (Ollama)": "num_thread (ओलामा)",
"OAuth ID": "",
"October": "अक्टूबर", "October": "अक्टूबर",
"Off": "बंद", "Off": "बंद",
"Okay, Let's Go!": "ठीक है, चलिए चलते हैं!", "Okay, Let's Go!": "ठीक है, चलिए चलते हैं!",

View File

@ -355,6 +355,7 @@
"Notifications": "Obavijesti", "Notifications": "Obavijesti",
"November": "Studeni", "November": "Studeni",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Listopad", "October": "Listopad",
"Off": "Isključeno", "Off": "Isključeno",
"Okay, Let's Go!": "U redu, idemo!", "Okay, Let's Go!": "U redu, idemo!",

View File

@ -355,6 +355,7 @@
"Notifications": "Notifiche desktop", "Notifications": "Notifiche desktop",
"November": "Novembre", "November": "Novembre",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Ottobre", "October": "Ottobre",
"Off": "Disattivato", "Off": "Disattivato",
"Okay, Let's Go!": "Ok, andiamo!", "Okay, Let's Go!": "Ok, andiamo!",

View File

@ -355,6 +355,7 @@
"Notifications": "デスクトップ通知", "Notifications": "デスクトップ通知",
"November": "11月", "November": "11月",
"num_thread (Ollama)": "num_thread(オラマ)", "num_thread (Ollama)": "num_thread(オラマ)",
"OAuth ID": "",
"October": "10月", "October": "10月",
"Off": "オフ", "Off": "オフ",
"Okay, Let's Go!": "OK、始めましょう", "Okay, Let's Go!": "OK、始めましょう",

View File

@ -355,6 +355,7 @@
"Notifications": "შეტყობინება", "Notifications": "შეტყობინება",
"November": "ნოემბერი", "November": "ნოემბერი",
"num_thread (Ollama)": "num_thread (ოლამა)", "num_thread (Ollama)": "num_thread (ოლამა)",
"OAuth ID": "",
"October": "ოქტომბერი", "October": "ოქტომბერი",
"Off": "გამორთვა", "Off": "გამორთვა",
"Okay, Let's Go!": "კარგი, წავედით!", "Okay, Let's Go!": "კარგი, წავედით!",

View File

@ -355,6 +355,7 @@
"Notifications": "알림", "Notifications": "알림",
"November": "11월", "November": "11월",
"num_thread (Ollama)": "num_thread (올라마)", "num_thread (Ollama)": "num_thread (올라마)",
"OAuth ID": "",
"October": "10월", "October": "10월",
"Off": "끄기", "Off": "끄기",
"Okay, Let's Go!": "좋아요, 시작합시다!", "Okay, Let's Go!": "좋아요, 시작합시다!",

View File

@ -355,6 +355,7 @@
"Notifications": "Pranešimai", "Notifications": "Pranešimai",
"November": "lapkritis", "November": "lapkritis",
"num_thread (Ollama)": "", "num_thread (Ollama)": "",
"OAuth ID": "",
"October": "spalis", "October": "spalis",
"Off": "Išjungta", "Off": "Išjungta",
"Okay, Let's Go!": "Gerai, važiuojam!", "Okay, Let's Go!": "Gerai, važiuojam!",

View File

@ -355,6 +355,7 @@
"Notifications": "Varsler", "Notifications": "Varsler",
"November": "November", "November": "November",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Oktober", "October": "Oktober",
"Off": "Av", "Off": "Av",
"Okay, Let's Go!": "Ok, la oss gå!", "Okay, Let's Go!": "Ok, la oss gå!",

View File

@ -355,6 +355,7 @@
"Notifications": "Desktop Notificaties", "Notifications": "Desktop Notificaties",
"November": "November", "November": "November",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Oktober", "October": "Oktober",
"Off": "Uit", "Off": "Uit",
"Okay, Let's Go!": "Okay, Laten we gaan!", "Okay, Let's Go!": "Okay, Laten we gaan!",

View File

@ -355,6 +355,7 @@
"Notifications": "ਸੂਚਨਾਵਾਂ", "Notifications": "ਸੂਚਨਾਵਾਂ",
"November": "ਨਵੰਬਰ", "November": "ਨਵੰਬਰ",
"num_thread (Ollama)": "num_thread (ਓਲਾਮਾ)", "num_thread (Ollama)": "num_thread (ਓਲਾਮਾ)",
"OAuth ID": "",
"October": "ਅਕਤੂਬਰ", "October": "ਅਕਤੂਬਰ",
"Off": "ਬੰਦ", "Off": "ਬੰਦ",
"Okay, Let's Go!": "ਠੀਕ ਹੈ, ਚੱਲੋ ਚੱਲੀਏ!", "Okay, Let's Go!": "ਠੀਕ ਹੈ, ਚੱਲੋ ਚੱਲੀਏ!",

View File

@ -355,6 +355,7 @@
"Notifications": "Powiadomienia", "Notifications": "Powiadomienia",
"November": "Listopad", "November": "Listopad",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Październik", "October": "Październik",
"Off": "Wyłączony", "Off": "Wyłączony",
"Okay, Let's Go!": "Okej, zaczynamy!", "Okay, Let's Go!": "Okej, zaczynamy!",

View File

@ -355,6 +355,7 @@
"Notifications": "Notificações da Área de Trabalho", "Notifications": "Notificações da Área de Trabalho",
"November": "Novembro", "November": "Novembro",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Outubro", "October": "Outubro",
"Off": "Desligado", "Off": "Desligado",
"Okay, Let's Go!": "Ok, Vamos Lá!", "Okay, Let's Go!": "Ok, Vamos Lá!",

View File

@ -355,6 +355,7 @@
"Notifications": "Notificações da Área de Trabalho", "Notifications": "Notificações da Área de Trabalho",
"November": "Novembro", "November": "Novembro",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Outubro", "October": "Outubro",
"Off": "Desligado", "Off": "Desligado",
"Okay, Let's Go!": "Ok, Vamos Lá!", "Okay, Let's Go!": "Ok, Vamos Lá!",

View File

@ -355,6 +355,7 @@
"Notifications": "Уведомления на рабочем столе", "Notifications": "Уведомления на рабочем столе",
"November": "Ноябрь", "November": "Ноябрь",
"num_thread (Ollama)": "num_thread (Оллама)", "num_thread (Ollama)": "num_thread (Оллама)",
"OAuth ID": "",
"October": "Октябрь", "October": "Октябрь",
"Off": "Выключено.", "Off": "Выключено.",
"Okay, Let's Go!": "Давайте начнём!", "Okay, Let's Go!": "Давайте начнём!",

View File

@ -355,6 +355,7 @@
"Notifications": "Обавештења", "Notifications": "Обавештења",
"November": "Новембар", "November": "Новембар",
"num_thread (Ollama)": "нум _тхреад (Оллама)", "num_thread (Ollama)": "нум _тхреад (Оллама)",
"OAuth ID": "",
"October": "Октобар", "October": "Октобар",
"Off": "Искључено", "Off": "Искључено",
"Okay, Let's Go!": "У реду, хајде да кренемо!", "Okay, Let's Go!": "У реду, хајде да кренемо!",

View File

@ -355,6 +355,7 @@
"Notifications": "Notifikationer", "Notifications": "Notifikationer",
"November": "november", "November": "november",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "oktober", "October": "oktober",
"Off": "Av", "Off": "Av",
"Okay, Let's Go!": "Okej, nu kör vi!", "Okay, Let's Go!": "Okej, nu kör vi!",

View File

@ -355,6 +355,7 @@
"Notifications": "", "Notifications": "",
"November": "", "November": "",
"num_thread (Ollama)": "", "num_thread (Ollama)": "",
"OAuth ID": "",
"October": "", "October": "",
"Off": "", "Off": "",
"Okay, Let's Go!": "", "Okay, Let's Go!": "",

View File

@ -355,6 +355,7 @@
"Notifications": "Bildirimler", "Notifications": "Bildirimler",
"November": "Kasım", "November": "Kasım",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Ekim", "October": "Ekim",
"Off": "Kapalı", "Off": "Kapalı",
"Okay, Let's Go!": "Tamam, Hadi Başlayalım!", "Okay, Let's Go!": "Tamam, Hadi Başlayalım!",

View File

@ -355,6 +355,7 @@
"Notifications": "Сповіщення", "Notifications": "Сповіщення",
"November": "Листопад", "November": "Листопад",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Жовтень", "October": "Жовтень",
"Off": "Вимк", "Off": "Вимк",
"Okay, Let's Go!": "Гаразд, давайте почнемо!", "Okay, Let's Go!": "Гаразд, давайте почнемо!",

View File

@ -355,6 +355,7 @@
"Notifications": "Thông báo trên máy tính (Notification)", "Notifications": "Thông báo trên máy tính (Notification)",
"November": "Tháng 11", "November": "Tháng 11",
"num_thread (Ollama)": "num_thread (Ollama)", "num_thread (Ollama)": "num_thread (Ollama)",
"OAuth ID": "",
"October": "Tháng 10", "October": "Tháng 10",
"Off": "Tắt", "Off": "Tắt",
"Okay, Let's Go!": "Được rồi, Bắt đầu thôi!", "Okay, Let's Go!": "Được rồi, Bắt đầu thôi!",

View File

@ -355,6 +355,7 @@
"Notifications": "桌面通知", "Notifications": "桌面通知",
"November": "十一月", "November": "十一月",
"num_thread (Ollama)": "num_threadOllama", "num_thread (Ollama)": "num_threadOllama",
"OAuth ID": "",
"October": "十月", "October": "十月",
"Off": "关闭", "Off": "关闭",
"Okay, Let's Go!": "确认,开始使用!", "Okay, Let's Go!": "确认,开始使用!",

View File

@ -355,6 +355,7 @@
"Notifications": "桌面通知", "Notifications": "桌面通知",
"November": "11月", "November": "11月",
"num_thread (Ollama)": "num_thread奧拉馬", "num_thread (Ollama)": "num_thread奧拉馬",
"OAuth ID": "",
"October": "10 月", "October": "10 月",
"Off": "關閉", "Off": "關閉",
"Okay, Let's Go!": "好的,啟動吧!", "Okay, Let's Go!": "好的,啟動吧!",

View File

@ -195,6 +195,18 @@
<span class="invisible"></span> <span class="invisible"></span>
{/if} {/if}
</th> </th>
<th
scope="col"
class="px-3 py-2 cursor-pointer select-none"
on:click={() => setSortKey('oauth_sub')}
>
{$i18n.t('OAuth ID')}
{#if sortKey === 'oauth_sub'}
{sortOrder === 'asc' ? '▲' : '▼'}
{:else}
<span class="invisible"></span>
{/if}
</th>
<th <th
scope="col" scope="col"
class="px-3 py-2 cursor-pointer select-none" class="px-3 py-2 cursor-pointer select-none"
@ -283,6 +295,8 @@
</td> </td>
<td class=" px-3 py-2"> {user.email} </td> <td class=" px-3 py-2"> {user.email} </td>
<td class=" px-3 py-2"> {user.oauth_sub ?? ""} </td>
<td class=" px-3 py-2"> <td class=" px-3 py-2">
{dayjs(user.last_active_at * 1000).fromNow()} {dayjs(user.last_active_at * 1000).fromNow()}
</td> </td>