Files
logikonline 2b9527cc5f feat(settings): add initial addon implementation with demo views
Creates complete addon structure with manifest, main/renderer modules, shared types, and demo views. Includes comprehensive README documenting addon API, lifecycle methods, permissions, capabilities, and contribution points. Implements settings panel and demo repository view to showcase addon features.
2026-01-18 13:08:11 -05:00

42 lines
722 B
JavaScript

/**
* Shared Types and Constants
*
* This file contains type definitions and constants shared between
* the main process and renderer process.
*/
/**
* Default settings for the addon.
* These should match the settingsDefinitions in addon.json.
*/
const DEFAULT_SETTINGS = {
enableFeature: true,
apiKey: '',
mode: 'normal',
maxItems: 10,
};
/**
* Available modes for the addon.
*/
const MODES = {
NORMAL: 'normal',
ADVANCED: 'advanced',
DEBUG: 'debug',
};
/**
* Event names used by the addon.
*/
const EVENTS = {
SETTINGS_CHANGED: 'settings-changed',
ACTION_COMPLETED: 'action-completed',
ERROR_OCCURRED: 'error-occurred',
};
module.exports = {
DEFAULT_SETTINGS,
MODES,
EVENTS,
};