Commit graph

545 commits

Author SHA1 Message Date
Mauro Balades
c05abd76b2 refactor: Update ZenSidebarManager to use updated default mobile user agent 2024-08-16 22:23:40 +02:00
Mauro Balades
1f01cdac79 refactor: Update ZenThemeMarketplaceParent to download and install themes
This commit updates the ZenThemeMarketplaceParent module to include the functionality for downloading and installing themes. The `receiveMessage` method now handles the "ZenThemeMarketplace:InstallTheme" message by downloading the theme file contents and updating the themes data. The `downloadUrlToFile` method has been added to download the file from the provided URL and save it to the specified path. Additionally, the `downloadThemeFileContents` method has been added to download the style and readme files for a theme and save them to the appropriate directory.

Refactor ZenThemeMarketplaceParent.sys.mjs:
- Add `downloadUrlToFile` method
- Add `downloadThemeFileContents` method
2024-08-16 22:10:54 +02:00
Mauro Balades
2e098ebf17 refactor: Add lazy loading for images in ZenThemeMarketplaceChild.sys.mjs 2024-08-15 14:26:02 +02:00
Mauro Balades
52b4b2b7e4 refactor: Add lazy loading for images in ZenThemeMarketplaceChild.sys.mjs
Add lazy loading for images in the ZenThemeMarketplaceChild.sys.mjs file to improve page load performance. The `initiateThemeMarketplace` method now includes a `setTimeout` function that adds install buttons after a delay of 1000 milliseconds. The `addIntallButtons` method has been modified to select all action buttons and error messages, and remove any existing error messages. It also adds event listeners to the action buttons for installing themes. Additionally, a new `installTheme` method has been added to handle the installation of themes when a button is clicked.

Refactor ZenThemeMarketplaceChild.sys.mjs:
- Add `addIntallButtons` method
- Add `installTheme` method
2024-08-14 23:26:10 +02:00
Mauro Balades
08d4f2b959 refactor: Set Service pref if clicked in ZenThemeMarketplaceChild.sys.mjs 2024-08-14 22:27:34 +02:00
Mauro Balades
dba14de44c refactor: Initialize ZenThemeMarketplace and ZenThemeMarketplaceChild modules
Initialize the ZenThemeMarketplace module in ZenThemeMarketplace.mjs and the ZenThemeMarketplaceChild module in ZenThemeMarketplaceChild.sys.mjs. This commit sets up the basic structure for these modules, including empty `init` and `handleEvent` methods.

Refactor ZenThemeMarketplace.mjs:
- Add `init` method

Refactor ZenThemeMarketplaceChild.sys.mjs:
- Add `initiateThemeMarketplace` method
- Add `addIntallButton` method
2024-08-14 22:27:00 +02:00
Mauro Balades
ccea9cbae7 refactor: Remove unnecessary code in ZenViewSplitter.mjs and initialize workspace tab context menus in ZenWorkspaces.mjs
Remove the `insertSplitLinkIntoContextMenu` method in ZenViewSplitter.mjs as it is no longer needed. Additionally, initialize the workspace tab context menus in ZenWorkspaces.mjs to allow users to change the workspace of a tab.

Refactor ZenViewSplitter.mjs:
- Remove `insertSplitLinkIntoContextMenu` method

Refactor ZenWorkspaces.mjs:
- Initialize workspace tab context menus
2024-08-14 15:56:15 +02:00
Mauro Balades
bfda024538 refactor: Update ZenSidebarManager to use updated default mobile user agent
Update the ZenSidebarManager module to use the updated default mobile user agent. This change ensures that the mobile user agent string is compatible with Android 12 and Firefox version 129.0.
2024-08-11 16:12:47 +02:00
Mauro Balades
0ab7cda4d5 refactor: Update ZenKeyboardShortcuts to include split view and workspace actions
This commit updates the ZenKeyboardShortcuts module to include new actions for split view and workspace management. It adds shortcuts for toggling between grid, vertical, and horizontal split views, as well as closing split views. Additionally, it introduces a shortcut for changing workspaces.

The changes also include the addition of default shortcuts for the new actions and the initialization of shortcuts only on the browser page.

Refactor other modules:
- Remove unnecessary console.log statement in ZenThemeBuilder
- Disable Firefox shortcuts in ZenKeyboardShortcuts
- Remove redundant code in ZenViewSplitter

Refactor ZenProfileDialogUI:
- Improve profiles list and profile creation

Refactor ZenWorkspaces.mjs:
- Remove unnecessary code

Refactor ZenViewSplitter.mjs:
- Activate docShell for tab
- Remove redundant code
2024-08-11 13:37:44 +02:00
Mauro Balades
3e1d38d907 refactor: Fix bug preventing ZenKeyboardShortcuts from initializing shortcuts on the browser page 2024-08-10 18:18:56 +02:00
Mauro Balades
fbde484df9 refactor: Update ZenKeyboardShortcuts to use 'accel' instead of 'control' for modifiers 2024-08-10 13:01:46 +02:00
Mauro Balades
714a4428ef refactor: Update ZenKeyboardShortcuts to toggle web panels and improve shortcuts
Remove unnecessary console.log statement in ZenThemeBuilder
Disable Firefox shortcuts in ZenKeyboardShortcuts
Initialize shortcuts only on the browser page
Update ZenProfileDialogUI to improve profiles list and profile creation
Remove unnecessary code in ZenWorkspaces.mjs
Activate docShell for tab in ZenViewSplitter
Remove redundant code in ZenViewSplitter
2024-08-10 10:52:53 +02:00
Mauro Balades
3f80eea589 refactor: Add keyboard shortcut to toggle web panels in ZenKeyboardShortcuts 2024-08-09 23:25:09 +02:00
Mauro Balades
c5f418f25f refactor: Improve shortcuts to run commands instead of snippets 2024-08-09 22:38:00 +02:00
Mauro Balades
b1d5b8e642 refactor: Disable Firefox shortcuts in ZenKeyboardShortcuts 2024-08-09 16:26:57 +02:00
Mauro Balades
f349477728 refactor: Remove unnecessary console.log statement in ZenThemeBuilder 2024-08-09 14:24:05 +02:00
Mauro Balades
0e9849bab8 refactor: Initialize shortcuts only on the browser page 2024-08-09 00:00:23 +02:00
Mauro Balades
fd893e06f6 refactor: Initialize shortcuts only on the browser page 2024-08-08 20:09:53 +02:00
Mauro Balades
47c4361082 refactor: Update ZenProfileDialogUI to improve profiles list and profile creation 2024-08-08 17:22:46 +02:00
Mauro Balades
751b71035b refactor: Remove unnecessary code in ZenWorkspaces.mjs 2024-08-08 14:14:39 +02:00
Mauro Balades
42bd1e72c8 refactor: Activate docShell for tab in ZenViewSplitter 2024-08-07 19:44:12 +02:00
Mauro Balades
11233e0057 refactor: Remove redundant code in ZenViewSplitter 2024-08-07 11:15:12 +02:00
Mauro Balades
783f9c01ed refactor: Update ZenProfileDialogUI to improve profiles list and profile creation 2024-08-07 10:37:10 +02:00
Mauro Balades
448da51206 refactor: Hide panel in ZenViewSplitter after setting grid type 2024-08-07 00:06:30 +02:00
Mauro Balades
99ba15e4e8 refactor: Improve profiles list and profile creation in ZenProfileDialogUI 2024-08-06 20:22:49 +02:00
Mauro Balades
8fe0426311 refactor: Update ZenProfileDialogUI to improve profiles list and profile creation 2024-08-06 20:18:44 +02:00
Mauro Balades
ea286eb8a6 refactor: Update ZenSidebarManager and ZenViewSplitter modules 2024-08-06 20:13:57 +02:00
Mauro Balades
828ecbbf10 refactor: Remove unused type declarations and package.json dependencies 2024-08-06 20:05:53 +02:00
Mauro Balades
de5090fe9c refactor: Add split indicator attribute to styleContainer method 2024-08-06 18:46:35 +02:00
Mauro Balades
8284c96473 refactor: Improve logging in createOrChangeSplitView method 2024-08-06 18:38:54 +02:00
Mauro Balades
3b299aa604 refactor: Update splitViews module and split-views configuration 2024-08-06 18:31:24 +02:00
Mauro Balades
4cae1153d7 refactor: Update splitViews module and split-views configuration 2024-08-06 18:23:04 +02:00
Mauro Balades
edfd563927 refactor: Update splitViews module and split-views configuration 2024-08-06 15:57:10 +02:00
Mauro Balades
f5f5f4b9c1 refactor: Add getActiveViewType method to SplitViews class 2024-08-06 12:10:32 +02:00
Mauro Balades
856de195c8 feat: Update splitViews module and split-views configuration 2024-08-06 11:46:10 +02:00
Mauro Balades
dcc7aafbe9 refactor: Update splitViews module and split-views configuration 2024-08-06 11:16:53 +02:00
Mauro Balades
0b1af942fe feat: Refactor splitViews module and add browser-splitViews module 2024-08-06 11:01:17 +02:00
Mauro Balades
779a0251ba feat: Configure TypeScript language for JavaScript files 2024-08-06 10:57:50 +02:00
Mauro Balades
fc5933fcfd Remove unused code and update types 2024-08-06 10:57:17 +02:00
Mauro Balades
8d0d7b3902 feat: Remove unused code and update types 2024-08-06 10:29:56 +02:00
Mauro Balades
6ad0e99b54 feat: Add export statement for split-views module 2024-08-06 01:14:27 +02:00
Mauro Balades
bde9763255 feat: Add SplitViewsBase class with event listeners and public API 2024-08-06 00:40:31 +02:00
Mauro Balades
d4e80c2719 Add SplitViewsBase class with event listeners and public API 2024-08-05 19:19:49 +02:00
Mauro Balades
6b1bf7b7e5 feat: Add split-views module with types and initial implementation 2024-08-05 19:09:34 +02:00
mauro 🤙
26252b47d5
Initial commit 2024-08-05 19:01:01 +02:00