+
+ updateUsers(e.detail)}
+ placeholder={`${$_("username")}`}
+ items={searchItems}
+ >
+
+
+
+
+
diff --git a/web/src/lib/i18n/locales/de.json b/web/src/lib/i18n/locales/de.json
index c1945a81..534ec7f6 100644
--- a/web/src/lib/i18n/locales/de.json
+++ b/web/src/lib/i18n/locales/de.json
@@ -18,10 +18,12 @@
"change": "Ändern",
"changelog": "Changelog",
"chinese": "Chinesisch (vereinfacht)",
+ "close": "",
"comment": "{n, plural, =1 {Kommentar} other {Kommentare}}",
"completed": "Abgeschlossen",
"completion-status": "Abschlussstatus",
"contribute": "Mitwirken",
+ "copy-link": "",
"create-new-list": "Neue Liste erstellen",
"creation-date": "Erstellungsdatum",
"cycling": "Radfahren",
@@ -81,6 +83,7 @@
"language": "Sprache",
"latitude": "Breitengrad",
"license": "Lizenz",
+ "link-copied": "",
"list": "{n, plural, =1 {Liste} other {Listen}}",
"location": "Standort",
"login": "Login",
@@ -130,6 +133,7 @@
"search-trails": "Route suchen",
"select-list": "Liste auswählen",
"settings": "Einstellungen",
+ "share": "",
"show-in-overview": "In der Übersicht anzeigen",
"show-on-map": "Auf der Karte anzeigen",
"slogan": "Speichere deine Abenteuer!",
diff --git a/web/src/lib/i18n/locales/en.json b/web/src/lib/i18n/locales/en.json
index 6c801ba1..8a13b31d 100644
--- a/web/src/lib/i18n/locales/en.json
+++ b/web/src/lib/i18n/locales/en.json
@@ -18,10 +18,12 @@
"change": "Change",
"changelog": "Changelog",
"chinese": "Chinese (simplified)",
+ "close": "Close",
"comment": "{n, plural, =1 {Comment} other {Comments}}",
"completed": "Completed",
"completion-status": "Completion Status",
"contribute": "Contribute",
+ "copy-link": "Copy Link",
"create-new-list": "Create new list",
"creation-date": "Creation date",
"cycling": "Cycling",
@@ -81,6 +83,7 @@
"language": "Language",
"latitude": "Latitude",
"license": "License",
+ "link-copied": "Link copied!",
"list": "{n, plural, =1 {List} other {Lists}}",
"location": "Location",
"login": "Login",
@@ -130,6 +133,7 @@
"search-trails": "Search trails",
"select-list": "Select List",
"settings": "Settings",
+ "share": "Share",
"show-in-overview": "Show in overview",
"show-on-map": "Show on map",
"slogan": "Save your adventures!",
diff --git a/web/src/lib/i18n/locales/fr.json b/web/src/lib/i18n/locales/fr.json
index e7959947..f191cf51 100644
--- a/web/src/lib/i18n/locales/fr.json
+++ b/web/src/lib/i18n/locales/fr.json
@@ -18,10 +18,12 @@
"change": "Changement",
"changelog": "Journal des modifications",
"chinese": "Chinois (simplifié)",
+ "close": "",
"comment": "{n, plural, =1 {Commentaire} other {Commentaires}}",
"completed": "Compléter",
"completion-status": "L'état d'achèvement",
"contribute": "Contribuer",
+ "copy-link": "",
"create-new-list": "Créer une nouvelle liste",
"creation-date": "Date de création",
"cycling": "",
@@ -81,6 +83,7 @@
"language": "Langue",
"latitude": "Latitude",
"license": "Licence",
+ "link-copied": "",
"list": "{n, plural, =1 {Liste} other {Listes}}",
"location": "Localisation",
"login": "Connexion",
@@ -130,6 +133,7 @@
"search-trails": "Chercher un itinéraire",
"select-list": "Liste de choix",
"settings": "Paramètres",
+ "share": "",
"show-in-overview": "Voir dans l'aperçu",
"show-on-map": "Voir sur la carte",
"slogan": "Sauvegarder vos aventures !",
diff --git a/web/src/lib/i18n/locales/hu.json b/web/src/lib/i18n/locales/hu.json
index ea91b0a9..491e5dd8 100644
--- a/web/src/lib/i18n/locales/hu.json
+++ b/web/src/lib/i18n/locales/hu.json
@@ -18,10 +18,12 @@
"change": "Változás",
"changelog": "Változás napló",
"chinese": "Kínai (egyszerűsítve)",
+ "close": "",
"comment": "{n, plural, =1 {Megjegyzés} other {Megjegyzés}}",
"completed": "Teljesítve",
"completion-status": "Befejezés állapota",
"contribute": "Hozzájárulás",
+ "copy-link": "",
"create-new-list": "Új lista létrehozása",
"creation-date": "létrehozás dátuma",
"cycling": "",
@@ -81,6 +83,7 @@
"language": "Nyelf",
"latitude": "Szélesség",
"license": "License",
+ "link-copied": "",
"list": "{n, plural, =1 {Lista} other {Listák}}",
"location": "Helyszín",
"login": "Bejelentkezés",
@@ -130,6 +133,7 @@
"search-trails": "Nyomvonalak keresése",
"select-list": "Lista kiválasztása",
"settings": "Beállítások",
+ "share": "",
"show-in-overview": "Áttekintés",
"show-on-map": "Mutatás térképen",
"slogan": "Mentse el a kalandjait!",
diff --git a/web/src/lib/i18n/locales/nl.json b/web/src/lib/i18n/locales/nl.json
index f62ca4f9..283b285b 100644
--- a/web/src/lib/i18n/locales/nl.json
+++ b/web/src/lib/i18n/locales/nl.json
@@ -18,10 +18,12 @@
"change": "Wijzigen",
"changelog": "Wijzigingslog",
"chinese": "Versimpeld Chinees",
+ "close": "",
"comment": "{n, plural, =1 {Opmerking} other {Opmerkingen}}",
"completed": "Voltooid",
"completion-status": "Voltooiingsstatus",
"contribute": "Bijdragen",
+ "copy-link": "",
"create-new-list": "Nieuwe lijst",
"creation-date": "Aanmaakdatum",
"cycling": "",
@@ -81,6 +83,7 @@
"language": "Taal",
"latitude": "Breedtegraad",
"license": "Licentie",
+ "link-copied": "",
"list": "{n, plural, =1 {Lijst} other {Lijsten}}",
"location": "Locatie",
"login": "Inloggen",
@@ -130,6 +133,7 @@
"search-trails": "Zoeken naar wandelroutes",
"select-list": "Kies een lijst",
"settings": "Instellingen",
+ "share": "",
"show-in-overview": "Tonen op overzicht",
"show-on-map": "Tonen op kaart",
"slogan": "Bewaar je avonturen!",
diff --git a/web/src/lib/i18n/locales/pl.json b/web/src/lib/i18n/locales/pl.json
index 866f5367..2f240479 100644
--- a/web/src/lib/i18n/locales/pl.json
+++ b/web/src/lib/i18n/locales/pl.json
@@ -18,10 +18,12 @@
"change": "Zmień",
"changelog": "Dziennik zmian",
"chinese": "Uproszczony chiński",
+ "close": "",
"comment": "{n, plural, =1 {Komentarz} other {Komentarze}}",
"completed": "Zakończono",
"completion-status": "Stan ukończenia",
"contribute": "Kontrybuuj",
+ "copy-link": "",
"create-new-list": "Stwórz nową listę",
"creation-date": "Data dodania",
"cycling": "",
@@ -81,6 +83,7 @@
"language": "Język",
"latitude": "Szerokość",
"license": "Licencja",
+ "link-copied": "",
"list": "{n, plural, =1 {Lista} other {Listy}}",
"location": "Lokalizacja",
"login": "Zaloguj się",
@@ -130,6 +133,7 @@
"search-trails": "Szukaj ścieżek",
"select-list": "Wybierz Listę",
"settings": "Ustawienia",
+ "share": "",
"show-in-overview": "Pokaż w przeglądzie",
"show-on-map": "Pokaż na mapie",
"slogan": "Zapisz swoją wyprawę!",
diff --git a/web/src/lib/i18n/locales/pt.json b/web/src/lib/i18n/locales/pt.json
index b68cd1f3..2be53605 100644
--- a/web/src/lib/i18n/locales/pt.json
+++ b/web/src/lib/i18n/locales/pt.json
@@ -18,10 +18,12 @@
"change": "Alterar",
"changelog": "Registo de alterações",
"chinese": "Chinês (simplificado)",
+ "close": "",
"comment": "{n, plural, =1 {Comentário} other {Comentários}}",
"completed": "Completada",
"completion-status": "Status de conclusão",
"contribute": "Contribuir",
+ "copy-link": "",
"create-new-list": "Criar nova lista",
"creation-date": "Data de criação",
"cycling": "",
@@ -81,6 +83,7 @@
"language": "Língua",
"latitude": "Latitude",
"license": "Licença",
+ "link-copied": "",
"list": "{n, plural, =1 {Lista} other {Listas}}",
"location": "Localização",
"login": "Login",
@@ -130,6 +133,7 @@
"search-trails": "Procurar trilhos",
"select-list": "Selecionar lista",
"settings": "Definições",
+ "share": "",
"show-in-overview": "Mostrar na vista geral",
"show-on-map": "Mostrar no mapa",
"slogan": "Guarde as suas aventuras!",
diff --git a/web/src/lib/i18n/locales/zh.json b/web/src/lib/i18n/locales/zh.json
index 096147c9..b19243d9 100644
--- a/web/src/lib/i18n/locales/zh.json
+++ b/web/src/lib/i18n/locales/zh.json
@@ -18,10 +18,12 @@
"change": "更换",
"changelog": "变更日志",
"chinese": "华人",
+ "close": "",
"comment": "{n, plural, =1 {评论} other {评论}}",
"completed": "已完成",
"completion-status": "完成状态",
"contribute": "贡献",
+ "copy-link": "",
"create-new-list": "创建新列表",
"creation-date": "创建日期",
"cycling": "",
@@ -81,6 +83,7 @@
"language": "语言",
"latitude": "维度",
"license": "开源协议",
+ "link-copied": "",
"list": "{n, plural, =1 {列表} other {列表}}",
"location": "地点",
"login": "登录",
@@ -130,6 +133,7 @@
"search-trails": "搜索路线",
"select-list": "选择列表",
"settings": "设置",
+ "share": "",
"show-in-overview": "详情中展示",
"show-on-map": "地图中展示",
"slogan": "保存你的冒险!",
diff --git a/web/src/lib/stores/user_store.ts b/web/src/lib/stores/user_store.ts
index de50fd8d..7b9e6c3b 100644
--- a/web/src/lib/stores/user_store.ts
+++ b/web/src/lib/stores/user_store.ts
@@ -23,6 +23,21 @@ export async function users_create(user: User) {
await settings_create(settings);
}
+export async function users_search(q: string) {
+ let r = await fetch('/api/v1/user?' + new URLSearchParams({
+ "filter": `username~"${q}"`,
+ }), {
+ method: 'GET',
+ })
+ const response = await r.json()
+
+ if (r.ok) {
+ return response.items;
+ } else {
+ throw new ClientResponseError(response)
+ }
+}
+
export async function users_auth_methods(f: (url: RequestInfo | URL, config?: RequestInit) => Promise