diff --git a/src/_locales/en-US/messages.json b/src/_locales/en-US/messages.json index 158aa5c..899eae3 100644 --- a/src/_locales/en-US/messages.json +++ b/src/_locales/en-US/messages.json @@ -118,6 +118,27 @@ "popup.input.title": { "message": "Please enter a (sub)category" }, + "popup.detail.nickname": { + "message": "Nickname" + }, + "popup.detail.timezone": { + "message": "Timezone" + }, + "popup.detail.emails": { + "message": "Emails" + }, + "popup.detail.websites": { + "message": "Websites" + }, + "popup.detail.addresses": { + "message": "Addresses" + }, + "popup.detail.phone-numbers": { + "message": "Phone Numbers" + }, + "popup.detail.notes": { + "message": "Notes" + }, "tree.category.all": { "message": "All contacts" }, diff --git a/src/_locales/es-AR/messages.json b/src/_locales/es-AR/messages.json index 2e473c5..c90401f 100644 --- a/src/_locales/es-AR/messages.json +++ b/src/_locales/es-AR/messages.json @@ -118,6 +118,27 @@ "popup.input.title": { "message": "Please enter a (sub)category" }, + "popup.detail.nickname": { + "message": "Nickname" + }, + "popup.detail.timezone": { + "message": "Timezone" + }, + "popup.detail.emails": { + "message": "Emails" + }, + "popup.detail.websites": { + "message": "Websites" + }, + "popup.detail.addresses": { + "message": "Addresses" + }, + "popup.detail.phone-numbers": { + "message": "Phone Numbers" + }, + "popup.detail.notes": { + "message": "Notes" + }, "tree.category.all": { "message": "Todos los contactos" }, diff --git a/src/_locales/es-ES/messages.json b/src/_locales/es-ES/messages.json index ed4fd62..ddafeca 100644 --- a/src/_locales/es-ES/messages.json +++ b/src/_locales/es-ES/messages.json @@ -118,6 +118,27 @@ "popup.input.title": { "message": "Please enter a (sub)category" }, + "popup.detail.nickname": { + "message": "Nickname" + }, + "popup.detail.timezone": { + "message": "Timezone" + }, + "popup.detail.emails": { + "message": "Emails" + }, + "popup.detail.websites": { + "message": "Websites" + }, + "popup.detail.addresses": { + "message": "Addresses" + }, + "popup.detail.phone-numbers": { + "message": "Phone Numbers" + }, + "popup.detail.notes": { + "message": "Notes" + }, "tree.category.all": { "message": "Todos los contactos" }, diff --git a/src/_locales/fr/messages.json b/src/_locales/fr/messages.json index cd9d2c1..012c307 100644 --- a/src/_locales/fr/messages.json +++ b/src/_locales/fr/messages.json @@ -118,6 +118,27 @@ "popup.input.title": { "message": "Please enter a (sub)category" }, + "popup.detail.nickname": { + "message": "Nickname" + }, + "popup.detail.timezone": { + "message": "Timezone" + }, + "popup.detail.emails": { + "message": "Emails" + }, + "popup.detail.websites": { + "message": "Websites" + }, + "popup.detail.addresses": { + "message": "Addresses" + }, + "popup.detail.phone-numbers": { + "message": "Phone Numbers" + }, + "popup.detail.notes": { + "message": "Notes" + }, "tree.category.all": { "message": "Tous les contacts" }, diff --git a/src/_locales/nl/messages.json b/src/_locales/nl/messages.json index 3bd9aed..8d6856a 100644 --- a/src/_locales/nl/messages.json +++ b/src/_locales/nl/messages.json @@ -118,6 +118,27 @@ "popup.input.title": { "message": "Please enter a (sub)category" }, + "popup.detail.nickname": { + "message": "Nickname" + }, + "popup.detail.timezone": { + "message": "Timezone" + }, + "popup.detail.emails": { + "message": "Emails" + }, + "popup.detail.websites": { + "message": "Websites" + }, + "popup.detail.addresses": { + "message": "Addresses" + }, + "popup.detail.phone-numbers": { + "message": "Phone Numbers" + }, + "popup.detail.notes": { + "message": "Notes" + }, "tree.category.all": { "message": "Alle contacten" }, diff --git a/src/_locales/pt-BR/messages.json b/src/_locales/pt-BR/messages.json index 1993c59..34da2f0 100644 --- a/src/_locales/pt-BR/messages.json +++ b/src/_locales/pt-BR/messages.json @@ -118,6 +118,27 @@ "popup.input.title": { "message": "Please enter a (sub)category" }, + "popup.detail.nickname": { + "message": "Nickname" + }, + "popup.detail.timezone": { + "message": "Timezone" + }, + "popup.detail.emails": { + "message": "Emails" + }, + "popup.detail.websites": { + "message": "Websites" + }, + "popup.detail.addresses": { + "message": "Addresses" + }, + "popup.detail.phone-numbers": { + "message": "Phone Numbers" + }, + "popup.detail.notes": { + "message": "Notes" + }, "tree.category.all": { "message": "Todos os contatos" }, diff --git a/src/_locales/ru/messages.json b/src/_locales/ru/messages.json index cff6633..91d3003 100644 --- a/src/_locales/ru/messages.json +++ b/src/_locales/ru/messages.json @@ -118,6 +118,27 @@ "popup.input.title": { "message": "Please enter a (sub)category" }, + "popup.detail.nickname": { + "message": "Nickname" + }, + "popup.detail.timezone": { + "message": "Timezone" + }, + "popup.detail.emails": { + "message": "Emails" + }, + "popup.detail.websites": { + "message": "Websites" + }, + "popup.detail.addresses": { + "message": "Addresses" + }, + "popup.detail.phone-numbers": { + "message": "Phone Numbers" + }, + "popup.detail.notes": { + "message": "Notes" + }, "tree.category.all": { "message": "Все контакты" }, diff --git a/src/_locales/zh-CN/messages.json b/src/_locales/zh-CN/messages.json index bcfd318..a774da8 100644 --- a/src/_locales/zh-CN/messages.json +++ b/src/_locales/zh-CN/messages.json @@ -27,16 +27,16 @@ "message": "正在更新..." }, "manifest_action_title": { - "message": "Categories" + "message": "类别管理器" }, "manifest_description": { "message": "联系人类别管理器。你可以一次向整个类别的联系人发送邮件(基于类别的联系人群组)。" }, "menu.category.add_members_to_current_message": { - "message": "Add category members to ..." + "message": "添加类别成员到 ..." }, "menu.category.add_members_to_new_message": { - "message": "Compose new message with category members in ..." + "message": "编辑新消息并将此类别成员添加到 ..." }, "menu.category.add_to_bcc": { "message": "Bcc" @@ -51,7 +51,7 @@ "message": "删除此类别" }, "menu.category.rename": { - "message": "Rename or move this category" + "message": "重命名或移动此类别" }, "menu.contact.context.add_to_category": { "message": "添加到 '$CATEGORY$'", @@ -118,6 +118,27 @@ "popup.input.title": { "message": "请输入(子)类别" }, + "popup.detail.nickname": { + "message": "昵称" + }, + "popup.detail.timezone": { + "message": "时区" + }, + "popup.detail.emails": { + "message": "电子邮箱" + }, + "popup.detail.websites": { + "message": "网站" + }, + "popup.detail.addresses": { + "message": "地址" + }, + "popup.detail.phone-numbers": { + "message": "电话号码" + }, + "popup.detail.notes": { + "message": "备注" + }, "tree.category.none": { "message": "未分类" }, diff --git a/src/popup/contact-list.mjs b/src/popup/contact-list.mjs index 3c0b74a..6164be1 100644 --- a/src/popup/contact-list.mjs +++ b/src/popup/contact-list.mjs @@ -3,6 +3,7 @@ import { escapeHtmlContent, escapeHtmlAttr, } from "../modules/ui/ui.mjs"; +import { showDetailModal } from "./modal.mjs"; export function createContactList(data) { let component = new Component({ @@ -34,7 +35,7 @@ export function createContactList(data) {
` ); - }) + }); } return `${Nickname}
`); + tz && (html += `${tz}
`); + allEmails.length > 0 && + (html += `${allEmails.reduce((acc, cur) => {
+ return (
+ acc +
+ `${escapeHtmlContent(
+ cur
+ )}
`
+ );
+ }, "")}
${urls.reduce(
+ (acc, cur) =>
+ acc +
+ `${escapeHtmlContent(cur)}
`,
+ ""
+ )}
${tel.reduce(
+ (acc, cur) =>
+ acc +
+ `${escapeHtmlContent(
+ cur
+ )}
`,
+ ""
+ )}
${escapeHtmlContent(Notes)}
`); + document.querySelector("#modal-details .details__grid").innerHTML = html; + MicroModal.show("modal-details"); +} diff --git a/src/popup/popup.html b/src/popup/popup.html index 0052f45..fcc7607 100644 --- a/src/popup/popup.html +++ b/src/popup/popup.html @@ -141,5 +141,35 @@