mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
Enable plugins to access the Node.js 'os' module for system information gathering alongside the existing fs and path modules. Changes: - Updated canExecuteDirectly() regex pattern to allow 'os' module imports - Added os module import to executeDirectly() sandbox environment - Extended sandbox require() function to provide access to os module This allows plugins to access system information like platform, architecture, memory usage, CPU info, and network interfaces through the standard Node.js os module while maintaining the existing security restrictions. The os module is considered safe as it provides read-only system information and doesn't allow file system modifications or process execution. |
||
|---|---|---|
| .. | ||
| assets/icons | ||
| overlay-indicator | ||
| shared-with-frontend | ||
| backup.ts | ||
| common.const.ts | ||
| CONFIG.ts | ||
| debug.ts | ||
| electronAPI.d.ts | ||
| error-handler-with-frontend-inform.ts | ||
| full-screen-blocker.ts | ||
| get-settings.ts | ||
| idle-time-handler.ts | ||
| indicator.ts | ||
| ipc-handler.ts | ||
| jira.ts | ||
| local-file-sync.ts | ||
| lockscreen.ts | ||
| main-window.ts | ||
| main.ts | ||
| plugin-node-executor.ts | ||
| preload.ts | ||
| protocol-handler.ts | ||
| simple-store.ts | ||
| start-app.ts | ||
| tsconfig.electron.json | ||
| various-shared.ts | ||