Commit graph

86 commits

Author SHA1 Message Date
mauro 🤙
d92a8949c4
Merge pull request #1 from win8linux/license-ccbysa
Update CC-BY-SA licensing
2024-08-25 00:28:45 +02:00
mauro 🤙
ca6aeb1c3a
Merge pull request #2 from anatasiajp/patch-1
Ctrl+Shift+P is defauft private browsing
2024-08-24 15:18:23 +02:00
Mauro Balades
d83b0ac342 refactor: Update ZenKeyboardShortcuts to use gZenUIManager.createValidXULText for key attribute 2024-08-24 15:17:08 +02:00
Mauro Balades
e12618009e refactor: Update ZenWorkspaces to use textContent instead of innerHTML for XSS prevention 2024-08-23 19:57:16 +02:00
Mauro Balades
dde5f80b8b Fixed Ampersand & character in Workspace Name breaks Workspace Menu permanently 2024-08-23 19:53:19 +02:00
Anatasia
dee5f14ef9
Ctrl+Shift+P is defauft private browsing 2024-08-24 00:41:11 +07:00
Mauro Balades
bbc9e79c2a refactor: Remove unused attributes from ZenSidebarManager
Remove the "disableglobalhistory" and "disablesecurity" attributes from the ZenSidebarManager module. These attributes are no longer needed and can be safely removed. This cleanup improves the code readability and reduces unnecessary clutter.
2024-08-23 16:36:12 +02:00
Mauro Balades
5d5a706087 Added support for multitab splitting with the shortcuts 2024-08-23 12:55:11 +02:00
Mauro Balades
a2cc3ed395 Split views now add missing tabs to the group 2024-08-23 12:27:05 +02:00
Mauro Balades
76f54a4f21 Fixed changing workspaces again 2024-08-22 20:34:39 +02:00
Mauro Balades
be8eafad5f Fixed closing workspaces 2024-08-22 20:23:41 +02:00
Mauro Balades
dcea272d88 Added "open split view in new tab" context menu button 2024-08-22 16:11:28 +02:00
Mauro Balades
fbf63e4bc1 refactor: Update ZenKeyboardShortcuts to use SidebarController for managing bookmarks
Update the ZenKeyboardShortcuts module to use the SidebarController instead of the deprecated SidebarUI for managing bookmarks. This refactor ensures compatibility with the latest version of the browser and improves the overall stability and performance of the application.
2024-08-22 10:15:21 +02:00
Julius Enriquez
0da31f3f46
Update README.md: Specify license version 2024-08-22 12:52:27 +08:00
Julius Enriquez
0d58a3a021
Create COPYRIGHT 2024-08-22 12:51:38 +08:00
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