From 914e8688852b4d3961ca5ed2d1c2d087160bc126 Mon Sep 17 00:00:00 2001 From: TrickyPR <23250792+trickypr@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:53:44 +1100 Subject: [PATCH 01/30] Delete everything --- apps/content/package.json | 1 - apps/content/src/bookmarks/Bookmarks.svelte | 45 - .../index.ts => bookmarks/bookmarks.js} | 0 apps/content/src/bookmarks/bookmarks.ts | 10 - .../components/BookmarkEditor.svelte | 65 - .../bookmarks/components/BookmarkItem.svelte | 67 - .../bookmarks/components/BookmarkTree.svelte | 23 - apps/content/src/browser/Browser.svelte | 30 - apps/content/src/browser/browser.css | 8 - .../bookmarks.css => browser/browser.js} | 4 - apps/content/src/browser/browser.ts | 30 - .../src/browser/components/Browser.svelte | 47 - .../components/customizableUI/Block.svelte | 25 - .../customizableUI/BrowserView.svelte | 29 - .../customizableUI/CustomizableUI.svelte | 37 - .../customizableUI/IconButton.svelte | 32 - .../customizableUI/OmniboxContainer.svelte | 24 - .../components/customizableUI/Spacer.svelte | 17 - .../components/customizableUI/Tabs.svelte | 79 - .../customizableUI/UIItemBase.svelte | 34 - .../components/keybindings/Keybinding.svelte | 33 - .../components/keybindings/Keybindings.svelte | 76 - .../menus/BrowserContextMenu.svelte | 61 - .../menus/HamburgerMenu/HamburgerMenu.svelte | 76 - .../HamburgerMenu/HamburgerMenuItem.svelte | 19 - .../src/browser/components/menus/index.ts | 18 - .../components/omnibox/Bookmarks.svelte | 134 -- .../browser/components/omnibox/Omnibox.svelte | 202 --- .../components/omnibox/PageAction.svelte | 153 -- .../components/omnibox/ZoomDisplay.svelte | 28 - .../src/browser/components/tabs/Tab.svelte | 151 -- .../src/browser/components/tabs/tabDrag.ts | 202 --- apps/content/src/browser/lib/binaryEnums.ts | 7 - apps/content/src/browser/lib/devtools.ts | 13 - apps/content/src/browser/lib/fp.ts | 34 - apps/content/src/browser/lib/keybinds.ts | 159 -- .../lib/modules/EPageActionsBindings.ts | 46 - apps/content/src/browser/lib/resources.ts | 15 - apps/content/src/browser/lib/shortcuts.ts | 39 - apps/content/src/browser/lib/spinlock.ts | 13 - apps/content/src/browser/lib/window/api.ts | 80 - .../src/browser/lib/window/arguments.ts | 30 - .../src/browser/lib/window/contextMenu.ts | 14 - apps/content/src/browser/lib/window/index.ts | 6 - .../src/browser/lib/window/initialize.ts | 30 - apps/content/src/browser/lib/window/tab.ts | 465 ------ apps/content/src/browser/lib/window/tabs.ts | 126 -- apps/content/src/browser/lib/window/window.ts | 47 - .../src/browser/lib/xul/NSBrowserAccess.ts | 78 - .../src/browser/lib/xul/XULBrowserWindow.ts | 109 -- apps/content/src/browser/lib/xul/browser.ts | 73 - apps/content/src/browser/lib/xul/ccWrapper.ts | 11 - apps/content/src/browser/lib/xul/domevents.ts | 25 - .../src/credits/{credits.ts => credits.js} | 2 - apps/content/src/history/History.svelte | 40 - .../src/history/component/Entry.svelte | 58 - .../component/HistoryContainerNode.svelte | 51 - .../history/component/HistoryItemNode.svelte | 24 - .../src/history/component/HistoryNode.svelte | 20 - .../settings.css => history/history.js} | 4 - apps/content/src/history/history.ts | 12 - apps/content/src/settings/Settings.svelte | 113 -- .../src/settings/components/Category.svelte | 39 - .../settings/components/SubCategory.svelte | 29 - .../ContextMenuPref/ContextMenuPref.svelte | 54 - .../ContextMenuPref/ContextMenuPreview.svelte | 34 - .../pref/ContextMenuPref/InsertItem.svelte | 44 - .../pref/ContextMenuPref/PreviewItem.svelte | 107 -- .../components/pref/ContextMenuPref/index.ts | 7 - .../pref/ContextMenuPref/prefWrapper.ts | 22 - .../pref/CustomizableUI/Component.svelte | 160 -- .../CustomizableUI/Components/Block.svelte | 28 - .../CustomizableUI/Components/Browser.svelte | 11 - .../Components/IconButton.svelte | 14 - .../CustomizableUI/Components/Omnibox.svelte | 15 - .../CustomizableUI/Components/Spacer.svelte | 32 - .../CustomizableUI/Components/Tabs.svelte | 25 - .../Components/TempDropTarget.svelte | 13 - .../pref/CustomizableUI/Components/index.ts | 13 - .../pref/CustomizableUI/Configure.svelte | 98 -- .../CustomizableUI/CustomizableUIPref.svelte | 103 -- .../components/pref/CustomizableUI/index.ts | 7 - .../components/pref/SelectPref.svelte | 32 - .../components/pref/StringPref.svelte | 38 - .../src/settings/components/pref/index.ts | 10 - .../components/sidebar/Sidebar.svelte | 71 - .../src/settings/components/sidebar/index.ts | 7 - .../settings/components/sidebar/sidebar.ts | 29 - .../pageactions.ts => settings/settings.js} | 2 - apps/content/src/settings/settings.ts | 13 - apps/content/src/shared/ExtBookmarkAPI.ts | 197 --- apps/content/src/shared/ExtHistoryAPI.ts | 159 -- .../src/shared/TypedImportUtilities.ts | 18 - .../src/shared/components/Button.svelte | 39 - .../src/shared/components/FancySelect.svelte | 53 - .../src/shared/components/Spinner.svelte | 32 - .../src/shared/components/TextInput.svelte | 42 - .../shared/components/ToolbarButton.svelte | 47 - .../shared/components/Tree/TreeView.svelte | 32 - .../src/shared/components/Tree/index.ts | 7 - apps/content/src/shared/components/index.ts | 12 - .../src/shared/contextMenus/MenuItem.ts | 61 - apps/content/src/shared/contextMenus/index.ts | 6 - .../src/shared/contextMenus/menuItems.ts | 166 -- .../src/shared/customizableUI/helpers.ts | 294 ---- .../src/shared/customizableUI/index.ts | 8 - .../src/shared/customizableUI/items.ts | 94 -- .../src/shared/customizableUI/style.ts | 98 -- .../src/shared/customizableUI/types.ts | 95 -- apps/content/src/shared/domUtils.ts | 26 - apps/content/src/shared/search/constants.ts | 12 - apps/content/src/shared/search/engine.ts | 94 -- apps/content/src/shared/search/provider.ts | 47 - .../shared/search/providers/EngineProvider.ts | 87 - .../shared/search/providers/URLProvider.ts | 81 - .../src/shared/search/providers/data/tld.txt | 1455 ----------------- .../src/shared/search/providers/index.ts | 6 - apps/content/src/shared/search/resources.ts | 9 - apps/content/src/shared/search/suggestions.ts | 55 - apps/content/src/shared/styles/global.css | 40 - apps/content/src/shared/styles/window.css | 14 - apps/content/src/tests/browser/index.ts | 9 - .../src/tests/{manager.ts => manager.js} | 61 +- .../content/src/tests/shared/ExtHistoryAPI.ts | 13 - .../src/tests/shared/contextMenus/MenuItem.ts | 31 - .../src/tests/shared/contextMenus/index.ts | 9 - apps/content/src/tests/shared/index.ts | 13 - apps/content/src/tests/shared/search/index.ts | 11 - .../shared/search/providers/EngineProvider.ts | 99 -- .../shared/search/providers/URLProvider.ts | 90 - .../tests/shared/search/providers/index.ts | 10 - .../src/tests/shared/search/suggestions.ts | 40 - apps/content/src/tests/{tests.ts => tests.js} | 9 +- apps/content/webpack.config.js | 5 +- 134 files changed, 38 insertions(+), 8309 deletions(-) delete mode 100644 apps/content/src/bookmarks/Bookmarks.svelte rename apps/content/src/{browser/components/customizableUI/index.ts => bookmarks/bookmarks.js} (100%) delete mode 100644 apps/content/src/bookmarks/bookmarks.ts delete mode 100644 apps/content/src/bookmarks/components/BookmarkEditor.svelte delete mode 100644 apps/content/src/bookmarks/components/BookmarkItem.svelte delete mode 100644 apps/content/src/bookmarks/components/BookmarkTree.svelte delete mode 100644 apps/content/src/browser/Browser.svelte delete mode 100644 apps/content/src/browser/browser.css rename apps/content/src/{bookmarks/bookmarks.css => browser/browser.js} (88%) delete mode 100644 apps/content/src/browser/browser.ts delete mode 100644 apps/content/src/browser/components/Browser.svelte delete mode 100644 apps/content/src/browser/components/customizableUI/Block.svelte delete mode 100644 apps/content/src/browser/components/customizableUI/BrowserView.svelte delete mode 100644 apps/content/src/browser/components/customizableUI/CustomizableUI.svelte delete mode 100644 apps/content/src/browser/components/customizableUI/IconButton.svelte delete mode 100644 apps/content/src/browser/components/customizableUI/OmniboxContainer.svelte delete mode 100644 apps/content/src/browser/components/customizableUI/Spacer.svelte delete mode 100644 apps/content/src/browser/components/customizableUI/Tabs.svelte delete mode 100644 apps/content/src/browser/components/customizableUI/UIItemBase.svelte delete mode 100644 apps/content/src/browser/components/keybindings/Keybinding.svelte delete mode 100644 apps/content/src/browser/components/keybindings/Keybindings.svelte delete mode 100644 apps/content/src/browser/components/menus/BrowserContextMenu.svelte delete mode 100644 apps/content/src/browser/components/menus/HamburgerMenu/HamburgerMenu.svelte delete mode 100644 apps/content/src/browser/components/menus/HamburgerMenu/HamburgerMenuItem.svelte delete mode 100644 apps/content/src/browser/components/menus/index.ts delete mode 100644 apps/content/src/browser/components/omnibox/Bookmarks.svelte delete mode 100644 apps/content/src/browser/components/omnibox/Omnibox.svelte delete mode 100644 apps/content/src/browser/components/omnibox/PageAction.svelte delete mode 100644 apps/content/src/browser/components/omnibox/ZoomDisplay.svelte delete mode 100644 apps/content/src/browser/components/tabs/Tab.svelte delete mode 100644 apps/content/src/browser/components/tabs/tabDrag.ts delete mode 100644 apps/content/src/browser/lib/binaryEnums.ts delete mode 100644 apps/content/src/browser/lib/devtools.ts delete mode 100644 apps/content/src/browser/lib/fp.ts delete mode 100644 apps/content/src/browser/lib/keybinds.ts delete mode 100644 apps/content/src/browser/lib/modules/EPageActionsBindings.ts delete mode 100644 apps/content/src/browser/lib/resources.ts delete mode 100644 apps/content/src/browser/lib/shortcuts.ts delete mode 100644 apps/content/src/browser/lib/spinlock.ts delete mode 100644 apps/content/src/browser/lib/window/api.ts delete mode 100644 apps/content/src/browser/lib/window/arguments.ts delete mode 100644 apps/content/src/browser/lib/window/contextMenu.ts delete mode 100644 apps/content/src/browser/lib/window/index.ts delete mode 100644 apps/content/src/browser/lib/window/initialize.ts delete mode 100644 apps/content/src/browser/lib/window/tab.ts delete mode 100644 apps/content/src/browser/lib/window/tabs.ts delete mode 100644 apps/content/src/browser/lib/window/window.ts delete mode 100644 apps/content/src/browser/lib/xul/NSBrowserAccess.ts delete mode 100644 apps/content/src/browser/lib/xul/XULBrowserWindow.ts delete mode 100644 apps/content/src/browser/lib/xul/browser.ts delete mode 100644 apps/content/src/browser/lib/xul/ccWrapper.ts delete mode 100644 apps/content/src/browser/lib/xul/domevents.ts rename apps/content/src/credits/{credits.ts => credits.js} (88%) delete mode 100644 apps/content/src/history/History.svelte delete mode 100644 apps/content/src/history/component/Entry.svelte delete mode 100644 apps/content/src/history/component/HistoryContainerNode.svelte delete mode 100644 apps/content/src/history/component/HistoryItemNode.svelte delete mode 100644 apps/content/src/history/component/HistoryNode.svelte rename apps/content/src/{settings/settings.css => history/history.js} (84%) delete mode 100644 apps/content/src/history/history.ts delete mode 100644 apps/content/src/settings/Settings.svelte delete mode 100644 apps/content/src/settings/components/Category.svelte delete mode 100644 apps/content/src/settings/components/SubCategory.svelte delete mode 100644 apps/content/src/settings/components/pref/ContextMenuPref/ContextMenuPref.svelte delete mode 100644 apps/content/src/settings/components/pref/ContextMenuPref/ContextMenuPreview.svelte delete mode 100644 apps/content/src/settings/components/pref/ContextMenuPref/InsertItem.svelte delete mode 100644 apps/content/src/settings/components/pref/ContextMenuPref/PreviewItem.svelte delete mode 100644 apps/content/src/settings/components/pref/ContextMenuPref/index.ts delete mode 100644 apps/content/src/settings/components/pref/ContextMenuPref/prefWrapper.ts delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/Component.svelte delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/Components/Block.svelte delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/Components/Browser.svelte delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/Components/IconButton.svelte delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/Components/Omnibox.svelte delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/Components/Spacer.svelte delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/Components/Tabs.svelte delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/Components/TempDropTarget.svelte delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/Components/index.ts delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/Configure.svelte delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/CustomizableUIPref.svelte delete mode 100644 apps/content/src/settings/components/pref/CustomizableUI/index.ts delete mode 100644 apps/content/src/settings/components/pref/SelectPref.svelte delete mode 100644 apps/content/src/settings/components/pref/StringPref.svelte delete mode 100644 apps/content/src/settings/components/pref/index.ts delete mode 100644 apps/content/src/settings/components/sidebar/Sidebar.svelte delete mode 100644 apps/content/src/settings/components/sidebar/index.ts delete mode 100644 apps/content/src/settings/components/sidebar/sidebar.ts rename apps/content/src/{tests/browser/pageactions.ts => settings/settings.js} (84%) delete mode 100644 apps/content/src/settings/settings.ts delete mode 100644 apps/content/src/shared/ExtBookmarkAPI.ts delete mode 100644 apps/content/src/shared/ExtHistoryAPI.ts delete mode 100644 apps/content/src/shared/TypedImportUtilities.ts delete mode 100644 apps/content/src/shared/components/Button.svelte delete mode 100644 apps/content/src/shared/components/FancySelect.svelte delete mode 100644 apps/content/src/shared/components/Spinner.svelte delete mode 100644 apps/content/src/shared/components/TextInput.svelte delete mode 100644 apps/content/src/shared/components/ToolbarButton.svelte delete mode 100644 apps/content/src/shared/components/Tree/TreeView.svelte delete mode 100644 apps/content/src/shared/components/Tree/index.ts delete mode 100644 apps/content/src/shared/components/index.ts delete mode 100644 apps/content/src/shared/contextMenus/MenuItem.ts delete mode 100644 apps/content/src/shared/contextMenus/index.ts delete mode 100644 apps/content/src/shared/contextMenus/menuItems.ts delete mode 100644 apps/content/src/shared/customizableUI/helpers.ts delete mode 100644 apps/content/src/shared/customizableUI/index.ts delete mode 100644 apps/content/src/shared/customizableUI/items.ts delete mode 100644 apps/content/src/shared/customizableUI/style.ts delete mode 100644 apps/content/src/shared/customizableUI/types.ts delete mode 100644 apps/content/src/shared/domUtils.ts delete mode 100644 apps/content/src/shared/search/constants.ts delete mode 100644 apps/content/src/shared/search/engine.ts delete mode 100644 apps/content/src/shared/search/provider.ts delete mode 100644 apps/content/src/shared/search/providers/EngineProvider.ts delete mode 100644 apps/content/src/shared/search/providers/URLProvider.ts delete mode 100644 apps/content/src/shared/search/providers/data/tld.txt delete mode 100644 apps/content/src/shared/search/providers/index.ts delete mode 100644 apps/content/src/shared/search/resources.ts delete mode 100644 apps/content/src/shared/search/suggestions.ts delete mode 100644 apps/content/src/shared/styles/global.css delete mode 100644 apps/content/src/shared/styles/window.css delete mode 100644 apps/content/src/tests/browser/index.ts rename apps/content/src/tests/{manager.ts => manager.js} (51%) delete mode 100644 apps/content/src/tests/shared/ExtHistoryAPI.ts delete mode 100644 apps/content/src/tests/shared/contextMenus/MenuItem.ts delete mode 100644 apps/content/src/tests/shared/contextMenus/index.ts delete mode 100644 apps/content/src/tests/shared/index.ts delete mode 100644 apps/content/src/tests/shared/search/index.ts delete mode 100644 apps/content/src/tests/shared/search/providers/EngineProvider.ts delete mode 100644 apps/content/src/tests/shared/search/providers/URLProvider.ts delete mode 100644 apps/content/src/tests/shared/search/providers/index.ts delete mode 100644 apps/content/src/tests/shared/search/suggestions.ts rename apps/content/src/tests/{tests.ts => tests.js} (65%) diff --git a/apps/content/package.json b/apps/content/package.json index dc71cf6..f69e4e5 100644 --- a/apps/content/package.json +++ b/apps/content/package.json @@ -34,7 +34,6 @@ }, "dependencies": { "@catppuccin/palette": "^1.0.1", - "@experiment/shared": "workspace:*", "@melt-ui/svelte": "^0.67.0", "fnts": "^2.1.0", "mitt": "^3.0.1", diff --git a/apps/content/src/bookmarks/Bookmarks.svelte b/apps/content/src/bookmarks/Bookmarks.svelte deleted file mode 100644 index 6d16001..0000000 --- a/apps/content/src/bookmarks/Bookmarks.svelte +++ /dev/null @@ -1,45 +0,0 @@ - - - - -
- {#await $fullTree} -

Loading...

- {:then tree} - - - {#if selectedBookmark} - { - selectedBookmarkId = undefined - selectedBookmark = undefined - }} - /> - {/if} - {/await} -
- - diff --git a/apps/content/src/browser/components/customizableUI/index.ts b/apps/content/src/bookmarks/bookmarks.js similarity index 100% rename from apps/content/src/browser/components/customizableUI/index.ts rename to apps/content/src/bookmarks/bookmarks.js diff --git a/apps/content/src/bookmarks/bookmarks.ts b/apps/content/src/bookmarks/bookmarks.ts deleted file mode 100644 index ef5c124..0000000 --- a/apps/content/src/bookmarks/bookmarks.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -import 'remixicon/fonts/remixicon.css' - -import '@shared/styles/window.css' - -import App from './Bookmarks.svelte' - -new App({ target: document.body }) diff --git a/apps/content/src/bookmarks/components/BookmarkEditor.svelte b/apps/content/src/bookmarks/components/BookmarkEditor.svelte deleted file mode 100644 index 97b55cd..0000000 --- a/apps/content/src/bookmarks/components/BookmarkEditor.svelte +++ /dev/null @@ -1,65 +0,0 @@ - - - - -
- Title - - {#if url} - URL - {/if} - - -
- - diff --git a/apps/content/src/bookmarks/components/BookmarkItem.svelte b/apps/content/src/bookmarks/components/BookmarkItem.svelte deleted file mode 100644 index 521f803..0000000 --- a/apps/content/src/bookmarks/components/BookmarkItem.svelte +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - -
{ - opened = !opened - selectedBookmark = node.id - }} - aria-selected={selectedBookmark == node.id} -> -
-