|
|
@ -33,7 +33,7 @@ Prompts are the core user-facing feature of ThunderAI. Each prompt defines an AI
|
|||
| `position_compose` | number | Sort order for the popup menu in compose view |
|
||||
| `position_context` | number | Sort order for the context menu |
|
||||
| `show_in` | string | `"popup"` = popup only, `"context"` = context menu only, `"both"` = both, `"none"` = hidden from all menus. Default: `"popup"` for default/custom prompts, `"both"` for special prompts |
|
||||
| `custom_icon` | string | Filename (with extension) of an icon in `images/custom_menu/` used as the context-menu icon. Empty string = no icon. Only used for non-special prompts (special prompts use their hard-coded icons in `specialPromptToContextMenuID`). Selectable from a dropdown on the Menu Order page, context-menu tab. |
|
||||
| `custom_icon` | string | Filename (with extension) of an icon in `images/context_menu/custom/` used as the context-menu icon. Empty string = no icon. Only used for non-special prompts (special prompts use their hard-coded icons in `specialPromptToContextMenuID`). Selectable from a dropdown on the Menu Order page, context-menu tab. |
|
||||
|
||||
### Per-Prompt API Override Properties
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 954 B After Width: | Height: | Size: 954 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 705 B After Width: | Height: | Size: 705 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 733 B After Width: | Height: | Size: 733 B |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 677 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 859 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
|
@ -16,7 +16,13 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { prefs_default, getDynamicSettingValue } from '../options/mzta-options-default.js';
|
||||
import {
|
||||
prefs_default,
|
||||
getDynamicSettingValue
|
||||
} from '../options/mzta-options-default.js';
|
||||
|
||||
import { customMenuIconsPath } from '../pages/menu_order/mzta-custom-menu-icons.js'
|
||||
|
||||
const sparks_min = '1.2.0'; // Minimum version of ThunderAI-Sparks required for the add-on to work
|
||||
export const ChatGPTWeb_models = ['gpt-5','gpt-5-instant','gpt-5-t-mini','gpt-5-thinking']; // List of models available in ChatGPT Web
|
||||
const MICZ_IT_LOCALIZED_LANGS = ['es', 'de', 'fr', 'it'];
|
||||
|
|
@ -29,10 +35,10 @@ export const contextMenuID_Spamfilter = 'mzta-spamfilter';
|
|||
export const contextMenuID_Summarize = 'mzta-summarize';
|
||||
export const contextMenuID_Translate = 'mzta-translate';
|
||||
export const contextMenuIconsPath = {
|
||||
[contextMenuID_AddTags]: 'moz-extension:images/menu_autotags.png',
|
||||
[contextMenuID_Spamfilter]: 'moz-extension:images/menu_spamfilter.png',
|
||||
[contextMenuID_Summarize]: 'moz-extension:images/menu_summarize.png',
|
||||
[contextMenuID_Translate]: 'moz-extension:images/menu_translate.png',
|
||||
[contextMenuID_AddTags]: 'moz-extension:images/context_menu/autotags.png',
|
||||
[contextMenuID_Spamfilter]: 'moz-extension:images/context_menu/spamfilter.png',
|
||||
[contextMenuID_Summarize]: 'moz-extension:images/context_menu/summarize.png',
|
||||
[contextMenuID_Translate]: 'moz-extension:images/context_menu/translate.png',
|
||||
};
|
||||
|
||||
// Map from special prompt IDs to context menu IDs
|
||||
|
|
@ -59,7 +65,7 @@ export function getContextMenuIcon(prompt) {
|
|||
}
|
||||
|
||||
if (typeof prompt === 'object' && prompt !== null && prompt.custom_icon) {
|
||||
return 'moz-extension:images/custom_menu/' + prompt.custom_icon;
|
||||
return 'moz-extension:' + customMenuIconsPath + prompt.custom_icon;
|
||||
}
|
||||
|
||||
return defaultContextMenuIcon;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
export const customMenuIconsPath = 'images/custom_menu/';
|
||||
export const customMenuIconsPath = 'images/context_menu/custom/';
|
||||
|
||||
export const customMenuIcons = [
|
||||
'adventure-game.png',
|
||||
|
|
|
|||