Commit graph

71 commits

Author SHA1 Message Date
Julius Enriquez
b1b90fac4a
Update LICENSE: Add full CC-BY-SA 4.0 text 2024-08-22 12:50:44 +08:00
Mauro Balades
b5f536691a refactor: Update Zen Core Components license information 2024-08-21 23:10:50 +02:00
Mauro Balades
2ef396ee87 refactor: Add event listener for tab close in ZenWorkspaces
This commit adds an event listener for the "TabClose" event in the ZenWorkspaces module. When a tab is closed, the listener checks if it is the last tab in a workspace and creates a new tab if necessary. It also closes other tabs in the workspace. This enhancement improves the functionality and user experience of ZenWorkspaces.
2024-08-21 20:48:13 +02:00
Mauro Balades
7bf34b6f28 Fixed license name 2024-08-21 20:29:20 +02:00
Mauro Balades
5afe9873d1 refactor: Update Zen Core Components license information 2024-08-21 20:23:38 +02:00
Mauro Balades
dab7fd0b2f refactor: Update ZenWorkspaces to enable setting default workspace and opening workspaces 2024-08-20 22:00:46 +02:00
Mauro Balades
43c47ad710 refactor: Improve lazy loading for images in ZenSidebarManager.mjs 2024-08-20 11:14:00 +02:00
Mauro Balades
f5d5bc918b ```text
refactor: Fix incorrect split view actions in ZenKeyboardShortcuts.mjs

Correct the split view actions in the ZenKeyboardShortcuts.mjs file to ensure that the vertical and horizontal split view actions are assigned to the correct functions. This fix resolves the issue where the vertical and horizontal split view actions were swapped.
2024-08-20 09:31:04 +02:00
Mauro Balades
8926b7cd23 refactor: Improve lazy loading for images in ZenThemesImporter.mjs 2024-08-20 01:30:19 +02:00
Mauro Balades
6fc860c3e5 refactor: Improve lazy loading for images in ZenThemesImporter.mjs 2024-08-20 01:24:02 +02:00
Mauro Balades
ea8b4c36dc refactor: Improve lazy loading for images in ZenThemesImporter.mjs
Optimize the lazy loading implementation for images in the ZenThemesImporter.mjs file. This refactor enhances the page load performance and improves the overall user experience.
2024-08-20 01:11:09 +02:00
Mauro Balades
1f27bc40cd Starter rewriting stylesheets manager 2024-08-20 01:04:59 +02:00
Mauro Balades
9a0959c50e refactor: Add lazy loading for images in ZenThemesImporter.mjs
Improve page load performance by adding lazy loading for images in the ZenThemesImporter.mjs file. This enhancement optimizes the loading of images and improves the overall user experience.
2024-08-19 19:10:41 +02:00
Mauro Balades
5cb3a8da2c refactor: Add lazy loading for images in ZenThemeMarketplaceParent.sys.mjs 2024-08-18 00:51:37 +02:00
Mauro Balades
7617286d3e refactor: Add lazy loading for images in ZenThemeMarketplaceParent.sys.mjs
Improve page load performance by adding lazy loading for images in the ZenThemeMarketplaceParent.sys.mjs file. The code now downloads the preferences.json file if it exists in the theme object. This enhancement optimizes the loading of images and improves the overall user experience.
2024-08-17 17:07:02 +02:00
Mauro Balades
ae03ba527a refactor: Update ZenThemeImporter and ZenThemeMarketplaceParent
Improve page load performance by adding lazy loading for images in the ZenThemeImporter and ZenThemeMarketplaceParent files. In ZenThemeImporter, the observer method has been updated to call the rebuildThemeStylesheet function instead of updateStylesheet. Additionally, the sss.loadAndRegisterSheet method has been modified to use the AGENT_SHEET parameter instead of USER_SHEET. In ZenThemeMarketplaceParent, the console.info statement for downloading files has been removed and replaced with a console.error statement for error handling. These changes optimize the loading of images and enhance the overall user experience.
2024-08-17 15:27:49 +02:00
Mauro Balades
cd1de4db6f refactor: Add lazy loading for images in ZenThemeMarketplaceChild.sys.mjs
Improve page load performance by adding lazy loading for images in the ZenThemeMarketplaceChild.sys.mjs file. 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.
2024-08-17 13:13:37 +02:00
Mauro Balades
306cd13a9b refactor: Add lazy loading for images in ZenThemeMarketplaceChild.sys.mjs 2024-08-17 11:02:27 +02:00
Mauro Balades
582dae1769 remove test 2024-08-17 02:15:45 +02:00
Mauro Balades
c7a2cebf43 test 2024-08-17 02:11:36 +02:00
Mauro Balades
1ff19edeb3 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 `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.
2024-08-17 01:32:35 +02:00
Mauro Balades
272f8be26d refactor: Add lazy loading for images in ZenThemeMarketplaceChild.sys.mjs 2024-08-17 01:31:33 +02:00
Mauro Balades
6ef29801ee refactor: Add lazy loading for images in ZenThemeMarketplaceChild.sys.mjs 2024-08-16 23:22:58 +02:00
Mauro Balades
7ede54fb72 before release 2024-08-16 23:20:05 +02:00
Mauro Balades
090ad742af refactor: Add lazy loading for images in ZenThemeMarketplaceChild.sys.mjs 2024-08-16 22:44:25 +02:00
Mauro Balades
67356d77ed refactor: Add lazy loading for images in ZenThemeMarketplaceChild.sys.mjs 2024-08-16 22:43:42 +02:00
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