Browse Source

feat: show oauth sub in admin panel

Jun Siang Cheah 1 year ago
parent
commit
49a00d61ac
38 changed files with 51 additions and 0 deletions
  1. 1 0
      src/lib/i18n/locales/ar-BH/translation.json
  2. 1 0
      src/lib/i18n/locales/bg-BG/translation.json
  3. 1 0
      src/lib/i18n/locales/bn-BD/translation.json
  4. 1 0
      src/lib/i18n/locales/ca-ES/translation.json
  5. 1 0
      src/lib/i18n/locales/ceb-PH/translation.json
  6. 1 0
      src/lib/i18n/locales/de-DE/translation.json
  7. 1 0
      src/lib/i18n/locales/dg-DG/translation.json
  8. 1 0
      src/lib/i18n/locales/en-GB/translation.json
  9. 1 0
      src/lib/i18n/locales/en-US/translation.json
  10. 1 0
      src/lib/i18n/locales/es-ES/translation.json
  11. 1 0
      src/lib/i18n/locales/fa-IR/translation.json
  12. 1 0
      src/lib/i18n/locales/fi-FI/translation.json
  13. 1 0
      src/lib/i18n/locales/fr-CA/translation.json
  14. 1 0
      src/lib/i18n/locales/fr-FR/translation.json
  15. 1 0
      src/lib/i18n/locales/he-IL/translation.json
  16. 1 0
      src/lib/i18n/locales/hi-IN/translation.json
  17. 1 0
      src/lib/i18n/locales/hr-HR/translation.json
  18. 1 0
      src/lib/i18n/locales/it-IT/translation.json
  19. 1 0
      src/lib/i18n/locales/ja-JP/translation.json
  20. 1 0
      src/lib/i18n/locales/ka-GE/translation.json
  21. 1 0
      src/lib/i18n/locales/ko-KR/translation.json
  22. 1 0
      src/lib/i18n/locales/lt-LT/translation.json
  23. 1 0
      src/lib/i18n/locales/nb-NO/translation.json
  24. 1 0
      src/lib/i18n/locales/nl-NL/translation.json
  25. 1 0
      src/lib/i18n/locales/pa-IN/translation.json
  26. 1 0
      src/lib/i18n/locales/pl-PL/translation.json
  27. 1 0
      src/lib/i18n/locales/pt-BR/translation.json
  28. 1 0
      src/lib/i18n/locales/pt-PT/translation.json
  29. 1 0
      src/lib/i18n/locales/ru-RU/translation.json
  30. 1 0
      src/lib/i18n/locales/sr-RS/translation.json
  31. 1 0
      src/lib/i18n/locales/sv-SE/translation.json
  32. 1 0
      src/lib/i18n/locales/tk-TW/translation.json
  33. 1 0
      src/lib/i18n/locales/tr-TR/translation.json
  34. 1 0
      src/lib/i18n/locales/uk-UA/translation.json
  35. 1 0
      src/lib/i18n/locales/vi-VN/translation.json
  36. 1 0
      src/lib/i18n/locales/zh-CN/translation.json
  37. 1 0
      src/lib/i18n/locales/zh-TW/translation.json
  38. 14 0
      src/routes/(app)/admin/+page.svelte

+ 1 - 0
src/lib/i18n/locales/ar-BH/translation.json

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

+ 1 - 0
src/lib/i18n/locales/bg-BG/translation.json

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

+ 1 - 0
src/lib/i18n/locales/bn-BD/translation.json

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

+ 1 - 0
src/lib/i18n/locales/ca-ES/translation.json

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

+ 1 - 0
src/lib/i18n/locales/ceb-PH/translation.json

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

+ 1 - 0
src/lib/i18n/locales/de-DE/translation.json

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

+ 1 - 0
src/lib/i18n/locales/dg-DG/translation.json

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

+ 1 - 0
src/lib/i18n/locales/en-GB/translation.json

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

+ 1 - 0
src/lib/i18n/locales/en-US/translation.json

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

+ 1 - 0
src/lib/i18n/locales/es-ES/translation.json

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

+ 1 - 0
src/lib/i18n/locales/fa-IR/translation.json

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

+ 1 - 0
src/lib/i18n/locales/fi-FI/translation.json

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

+ 1 - 0
src/lib/i18n/locales/fr-CA/translation.json

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

+ 1 - 0
src/lib/i18n/locales/fr-FR/translation.json

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

+ 1 - 0
src/lib/i18n/locales/he-IL/translation.json

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

+ 1 - 0
src/lib/i18n/locales/hi-IN/translation.json

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

+ 1 - 0
src/lib/i18n/locales/hr-HR/translation.json

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

+ 1 - 0
src/lib/i18n/locales/it-IT/translation.json

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

+ 1 - 0
src/lib/i18n/locales/ja-JP/translation.json

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

+ 1 - 0
src/lib/i18n/locales/ka-GE/translation.json

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

+ 1 - 0
src/lib/i18n/locales/ko-KR/translation.json

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

+ 1 - 0
src/lib/i18n/locales/lt-LT/translation.json

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

+ 1 - 0
src/lib/i18n/locales/nb-NO/translation.json

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

+ 1 - 0
src/lib/i18n/locales/nl-NL/translation.json

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

+ 1 - 0
src/lib/i18n/locales/pa-IN/translation.json

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

+ 1 - 0
src/lib/i18n/locales/pl-PL/translation.json

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

+ 1 - 0
src/lib/i18n/locales/pt-BR/translation.json

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

+ 1 - 0
src/lib/i18n/locales/pt-PT/translation.json

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

+ 1 - 0
src/lib/i18n/locales/ru-RU/translation.json

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

+ 1 - 0
src/lib/i18n/locales/sr-RS/translation.json

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

+ 1 - 0
src/lib/i18n/locales/sv-SE/translation.json

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

+ 1 - 0
src/lib/i18n/locales/tk-TW/translation.json

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

+ 1 - 0
src/lib/i18n/locales/tr-TR/translation.json

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

+ 1 - 0
src/lib/i18n/locales/uk-UA/translation.json

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

+ 1 - 0
src/lib/i18n/locales/vi-VN/translation.json

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

+ 1 - 0
src/lib/i18n/locales/zh-CN/translation.json

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

+ 1 - 0
src/lib/i18n/locales/zh-TW/translation.json

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

+ 14 - 0
src/routes/(app)/admin/+page.svelte

@@ -195,6 +195,18 @@
 							<span class="invisible">▲</span>
 						{/if}
 					</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
 						scope="col"
 						class="px-3 py-2 cursor-pointer select-none"
@@ -283,6 +295,8 @@
 						</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">
 							{dayjs(user.last_active_at * 1000).fromNow()}
 						</td>