refactor user page to use MkTime component

This commit is contained in:
Johann150 2022-08-14 14:46:18 +02:00
parent 5548b585df
commit 4e41fa8767
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
22 changed files with 2 additions and 23 deletions

View file

@ -254,7 +254,6 @@ remoteUserCaution: "هذه المعلومات قد لا تكون مكتملة ب
activity: "النشاط" activity: "النشاط"
images: "الصور" images: "الصور"
birthday: "تاريخ الميلاد" birthday: "تاريخ الميلاد"
yearsOld: "{age} سنة"
registeredDate: "انضم في" registeredDate: "انضم في"
location: "الموقع الجغرافي" location: "الموقع الجغرافي"
theme: "المظهر" theme: "المظهر"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "এই ব্যাবহারকারী রিমোট
activity: "কার্যকলাপ" activity: "কার্যকলাপ"
images: "ছবি" images: "ছবি"
birthday: "জন্মদিন" birthday: "জন্মদিন"
yearsOld: "{age} বছর"
registeredDate: "যোগদানের তারিখ" registeredDate: "যোগদানের তারিখ"
location: "অবস্থান" location: "অবস্থান"
theme: "থিম" theme: "থিম"

View file

@ -241,7 +241,6 @@ remoteUserCaution: "Tyto informace nemusí být aktuální jelikož uživatel je
activity: "Aktivita" activity: "Aktivita"
images: "Obrázky" images: "Obrázky"
birthday: "Datum narození" birthday: "Datum narození"
yearsOld: "{age} let"
registeredDate: "Datum registrace" registeredDate: "Datum registrace"
location: "Lokace" location: "Lokace"
theme: "Vzhled" theme: "Vzhled"

View file

@ -259,7 +259,6 @@ remoteUserCaution: "Diese Informationen sind möglicherweise unvollständig, da
activity: "Aktivität" activity: "Aktivität"
images: "Bilder" images: "Bilder"
birthday: "Geburtstag" birthday: "Geburtstag"
yearsOld: "{age} Jahre alt"
registeredDate: "Registrationsdatum" registeredDate: "Registrationsdatum"
location: "Ort" location: "Ort"
theme: "Farbschema" theme: "Farbschema"

View file

@ -259,7 +259,6 @@ remoteUserCaution: "As this user is from a remote instance, the shown informatio
activity: "Activity" activity: "Activity"
images: "Images" images: "Images"
birthday: "Birthday" birthday: "Birthday"
yearsOld: "{age} years old"
registeredDate: "Joined on" registeredDate: "Joined on"
location: "Location" location: "Location"
theme: "Themes" theme: "Themes"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "Para el usuario remoto, la información está incompleta"
activity: "Actividad" activity: "Actividad"
images: "Imágenes" images: "Imágenes"
birthday: "Fecha de nacimiento" birthday: "Fecha de nacimiento"
yearsOld: "{age} años"
registeredDate: "Fecha de registro" registeredDate: "Fecha de registro"
location: "Lugar" location: "Lugar"
theme: "Tema" theme: "Tema"

View file

@ -256,7 +256,6 @@ remoteUserCaution: "Les informations de ce compte risqueraient dêtre incompl
activity: "Activité" activity: "Activité"
images: "Images" images: "Images"
birthday: "Date de naissance" birthday: "Date de naissance"
yearsOld: "{age} ans"
registeredDate: "Inscrit le" registeredDate: "Inscrit le"
location: "Localisation" location: "Localisation"
theme: "Thème" theme: "Thème"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "Informasi ini mungkin tidak mutakhir, karena pengguna ini be
activity: "Aktivitas" activity: "Aktivitas"
images: "Gambar" images: "Gambar"
birthday: "Tanggal lahir" birthday: "Tanggal lahir"
yearsOld: "{age} tahun"
registeredDate: "Bergabung pada" registeredDate: "Bergabung pada"
location: "Lokasi" location: "Lokasi"
theme: "Tema" theme: "Tema"

View file

@ -254,7 +254,6 @@ remoteUserCaution: "Può darsi che le informazioni siano incomplete perché ques
activity: "Attività" activity: "Attività"
images: "Immagini" images: "Immagini"
birthday: "Compleanno" birthday: "Compleanno"
yearsOld: "{age}Anni"
registeredDate: "Iscrizione a.." registeredDate: "Iscrizione a.."
location: "Posizione" location: "Posizione"
theme: "Tema" theme: "Tema"

View file

@ -259,7 +259,6 @@ remoteUserCaution: "リモートユーザーのため、情報が不完全です
activity: "アクティビティ" activity: "アクティビティ"
images: "画像" images: "画像"
birthday: "誕生日" birthday: "誕生日"
yearsOld: "{age}歳"
registeredDate: "登録日" registeredDate: "登録日"
location: "場所" location: "場所"
theme: "テーマ" theme: "テーマ"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "リモートユーザーやから、足りひん情報ある
activity: "アクティビティ" activity: "アクティビティ"
images: "画像" images: "画像"
birthday: "生まれた日" birthday: "生まれた日"
yearsOld: "{age}歳"
registeredDate: "始めた日" registeredDate: "始めた日"
location: "場所" location: "場所"
theme: "テーマ" theme: "テーマ"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "리모트 유저이기 때문에, 정보가 정확하지 않
activity: "활동" activity: "활동"
images: "이미지" images: "이미지"
birthday: "생일" birthday: "생일"
yearsOld: "{age}세"
registeredDate: "등록일" registeredDate: "등록일"
location: "장소" location: "장소"
theme: "테마" theme: "테마"

View file

@ -244,7 +244,6 @@ remoteUserCaution: "Aangezien deze gebruiker van een externe server afkomstig is
activity: "Activiteit" activity: "Activiteit"
images: "Afbeeldingen" images: "Afbeeldingen"
birthday: "Geboortedatum" birthday: "Geboortedatum"
yearsOld: "{age} jaar"
registeredDate: "Inschrijvingsdatum" registeredDate: "Inschrijvingsdatum"
location: "Locatie" location: "Locatie"
theme: "Thema's" theme: "Thema's"

View file

@ -253,7 +253,6 @@ remoteUserCaution: "Te informacje mogą nie być aktualne, ponieważ użytkownik
activity: "Aktywność" activity: "Aktywność"
images: "Zdjęcia" images: "Zdjęcia"
birthday: "Data urodzenia" birthday: "Data urodzenia"
yearsOld: "{age} lat"
registeredDate: "Zarejestrowano" registeredDate: "Zarejestrowano"
location: "Lokalizacja" location: "Lokalizacja"
theme: "Motywy" theme: "Motywy"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "Deoarece acest utilizator este dintr-o instanță externă,
activity: "Activitate" activity: "Activitate"
images: "Imagini" images: "Imagini"
birthday: "Zi de naștere" birthday: "Zi de naștere"
yearsOld: "{age} ani"
registeredDate: "Data înregistrării" registeredDate: "Data înregistrării"
location: "Locație" location: "Locație"
theme: "Teme" theme: "Teme"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "Это пользователь с другого сайта
activity: "Активность" activity: "Активность"
images: "Изображения" images: "Изображения"
birthday: "День рождения" birthday: "День рождения"
yearsOld: "Возраст: {age}"
registeredDate: "Дата регистрации" registeredDate: "Дата регистрации"
location: "Местоположение" location: "Местоположение"
theme: "Тема" theme: "Тема"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "Tieto informácie nemusia byť aktuálne, keďže používat
activity: "Aktivita" activity: "Aktivita"
images: "Obrázky" images: "Obrázky"
birthday: "Dátum narodenia" birthday: "Dátum narodenia"
yearsOld: "{age} rokov"
registeredDate: "Dátum registrácie" registeredDate: "Dátum registrácie"
location: "Lokalita" location: "Lokalita"
theme: "Téma" theme: "Téma"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "Інформація може бути неповною, о
activity: "Активність" activity: "Активність"
images: "Зображення" images: "Зображення"
birthday: "День народження" birthday: "День народження"
yearsOld: "{age} років"
registeredDate: "Приєднався(лась)" registeredDate: "Приєднався(лась)"
location: "Локація" location: "Локація"
theme: "Тема" theme: "Тема"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "Vì người dùng này ở máy chủ khác, thông tin hi
activity: "Hoạt động" activity: "Hoạt động"
images: "Hình ảnh" images: "Hình ảnh"
birthday: "Sinh nhật" birthday: "Sinh nhật"
yearsOld: "{age} tuổi"
registeredDate: "Tham gia" registeredDate: "Tham gia"
location: "Đến từ" location: "Đến từ"
theme: "Chủ đề" theme: "Chủ đề"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "由于此用户来自其它实例,显示的信息可能不
activity: "活动" activity: "活动"
images: "图片" images: "图片"
birthday: "生日" birthday: "生日"
yearsOld: "{age}岁"
registeredDate: "注册于" registeredDate: "注册于"
location: "位置" location: "位置"
theme: "主题" theme: "主题"

View file

@ -258,7 +258,6 @@ remoteUserCaution: "由於該使用者來自遠端實例,因此資訊可能非
activity: "動態" activity: "動態"
images: "圖片" images: "圖片"
birthday: "生日" birthday: "生日"
yearsOld: "{age}歲"
registeredDate: "註冊日期" registeredDate: "註冊日期"
location: "位置" location: "位置"
theme: "外觀主題" theme: "外觀主題"

View file

@ -51,11 +51,11 @@
</dl> </dl>
<dl v-if="user.birthday" class="field"> <dl v-if="user.birthday" class="field">
<dt class="name"><i class="fas fa-birthday-cake fa-fw"></i> {{ i18n.ts.birthday }}</dt> <dt class="name"><i class="fas fa-birthday-cake fa-fw"></i> {{ i18n.ts.birthday }}</dt>
<dd class="value">{{ user.birthday.replace('-', '/').replace('-', '/') }} ({{ $t('yearsOld', { age }) }})</dd> <dd class="value"><MkTime format="date" mode="detail" :time="user.birthday"/></dd>
</dl> </dl>
<dl class="field"> <dl class="field">
<dt class="name"><i class="fas fa-calendar-alt fa-fw"></i> {{ i18n.ts.registeredDate }}</dt> <dt class="name"><i class="fas fa-calendar-alt fa-fw"></i> {{ i18n.ts.registeredDate }}</dt>
<dd class="value">{{ new Date(user.createdAt).toLocaleString() }} (<MkTime :time="user.createdAt"/>)</dd> <dd class="value"><MkTime mode="detail" :time="user.createdAt"/></dd>
</dl> </dl>
</div> </div>
<div v-if="user.fields.length > 0" class="fields"> <div v-if="user.fields.length > 0" class="fields">