From a03c11794a1e7973fa087bf0e1efa648a9c33e9d Mon Sep 17 00:00:00 2001 From: mic Date: Fri, 10 Jan 2025 23:13:54 +0100 Subject: [PATCH] get_calendar_event added in the options page. see micz/ThunderAI/#182 --- _locales/en/messages.json | 16 ++++++++++++++-- options/mzta-options-default.js | 1 + options/mzta-options.html | 11 +++++++++++ options/mzta-options.js | 20 ++++++++++++++++++++ popup/mzta-popup.css | 4 ++-- 5 files changed, 48 insertions(+), 4 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index e99fed29..a7dd77f1 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -955,12 +955,24 @@ "message": "Typed text before the quoted mail body", "description": "" }, - "prompt_get_calitem": { + "prompt_get_calendar_event": { "message": "Add a new calendar event", "description": "" }, - "prompt_get_calitem_full_text": { + "prompt_get_calendar_event_full_text": { "message": "Extract all relevant details required to generate an iCalendar (iCal) file from the following text. The extracted information should include:\n- Event Title\n- Start Date and Time (including timezone, if specified)\n- End Date and Time (including timezone, if specified)\n- Location (if available)\n- Description or Additional Notes (if available)\n- Organizer's Name and Contact Details (if available)\n- Recurrence Rules (if mentioned)\nEnsure the data is formatted clearly and consistently so that it can be directly used for creating an iCal file. Highlight any missing or ambiguous details that might require clarification. Here's the text:\"{%selected_text%}\"", "description": "" + }, + "prefs_OptionText_get_calendar_event": { + "message": "Add a new calendar event from selected text", + "description": "" + }, + "prefs_OptionText_get_calendar_event_Info": { + "message": "If checked, an item will be included in the menu to get a calendar event information from selected text.", + "description": "" + }, + "prefs_OptionText_btnManageCalendarEventInfo": { + "message": "Manage calendar event settings", + "description": "" } } \ No newline at end of file diff --git a/options/mzta-options-default.js b/options/mzta-options-default.js index 36f70640..10e08fe6 100644 --- a/options/mzta-options-default.js +++ b/options/mzta-options-default.js @@ -46,4 +46,5 @@ export const prefs_default = { add_tags_hide_exclusions: false, add_tags_first_uppercase: true, add_tags_force_lang: true, + get_calendar_event: true, } \ No newline at end of file diff --git a/options/mzta-options.html b/options/mzta-options.html index 76e99676..709ad7eb 100644 --- a/options/mzta-options.html +++ b/options/mzta-options.html @@ -334,6 +334,17 @@ + + + __MSG_prefs_OptionText_get_calendar_event__ +
+ + + +