1
0
mirror of https://github.com/XFox111/TabsAsideExtension.git synced 2026-07-02 19:52:47 +03:00

Compare commits

..

73 Commits

Author SHA1 Message Date
xfox111 c0037cc3a7 fix(ci): firefox patch task fail 2025-07-19 02:40:53 +03:00
xfox111 db30e81765 fix(ci): set runners container to node 24 and enable corepack for yarn 4 2025-07-19 02:37:01 +03:00
xfox111 7e57488896 chore: release candidate 8 2025-07-19 02:31:12 +03:00
xfox111 61d0e54e58 fix: eslint errors 2025-07-19 02:30:27 +03:00
xfox111 a03f2ab442 chore: migration to yarn berry 2025-07-19 02:30:08 +03:00
xfox111 2f6ed6cbfa chore(deps): dependency updates / audit resolutions 2025-07-19 02:28:52 +03:00
xfox111 aac4ac9a7e chore(loc): minor typos in Russian and Ukrainian locales 2025-07-18 21:03:11 +03:00
xfox111 bc2e2489e6 fix: misplaced draggable item 2025-07-18 21:02:25 +03:00
xfox111 57e87aace0 chore: minor dnd collision detection improvements 2025-07-18 21:01:28 +03:00
xfox111 5f2d18f509 chore: large groups now collapse on drag-n-drop 2025-07-18 20:58:05 +03:00
xfox111 54a1e48672 hotfix: drag and drop doesn't work in Firefox popup 2025-07-18 20:55:58 +03:00
xfox111 e803636c35 chore: release candidate 7 2025-07-13 16:54:54 +03:00
xfox111 c8b4ef3e15 fix: tabs in collection list view overlap on overflow on Firefox 2025-07-13 16:50:02 +03:00
xfox111 eeefd1feff fix: collection context menus flickering in Firefox popup view 2025-07-13 16:20:17 +03:00
xfox111 53adbd4f75 fix: adding forbidden tabs via "Add selected tabs" 2025-07-11 13:53:27 +03:00
xfox111 3eed3b4b01 fix: list view horizontal overflow in sidebar on firefox 2025-07-09 00:49:09 +03:00
xfox111 525130b7e9 fix: collection collapses on tab/group drag 2025-07-06 12:34:02 +03:00
xfox111 1a274348e0 fix!: incorrect byte calculation for cloud storage (changed encoding) 2025-07-06 12:17:17 +03:00
xfox111 2c8cfa1583 chore: release candidate 6 2025-07-03 12:58:37 +03:00
xfox111 e844a68f49 chore(ui): remove fixed collection height for list view 2025-07-03 12:56:58 +03:00
xfox111 794f6e3af0 chore(locale): clarify action icon option for slaivc locales (ru, uk, pl) 2025-07-03 12:06:25 +03:00
xfox111 d85d10dc58 chore(ui): increase tab's dnd handle area 2025-07-03 11:46:53 +03:00
xfox111 213cc84602 chore: reduce delay and increase tolerance for mouse drag and drop 2025-07-03 11:33:05 +03:00
xfox111 9675b65e81 fix: pinned tab opens and closes infinitely if pwa window is opened 2025-07-03 11:24:53 +03:00
xfox111 6bce330a8f chore: dependabot reviewers deprecation 2025-06-03 18:55:01 +03:00
xfox111 405f9163f2 !feat: tabGroups API for Firefox 139 2025-05-23 16:45:50 +03:00
xfox111 e498e25c57 chore: version update 2025-05-08 10:07:18 +03:00
xfox111 d07c99e3a1 !feat: partial tab groups support on firefox 2025-05-08 10:06:47 +03:00
xfox111 0ff1d63cde fix: close firefox sidebar when list location changes 2025-05-08 10:05:53 +03:00
xfox111 dfcafae2b1 fix: options page crush on cloud storage disabling 2025-05-08 09:05:53 +03:00
xfox111 8f4cd4198a fix: groupig fails on private windows when group contains restricted tabs 2025-05-08 09:05:21 +03:00
xfox111 1b64f65e9f fix: empty collection/group title 2025-05-08 09:04:34 +03:00
xfox111 d249e07eca fix: corrupted json export 2025-05-08 09:04:08 +03:00
xfox111 4070907240 chore(loc): english locale fix 2025-05-08 09:03:15 +03:00
xfox111 9d250dc01d fix: MAX_CAPTURE_VISIBLE_TAB_CALLS_PER_SECOND exceeded 2025-05-08 06:59:55 +03:00
xfox111 24bf0e88ca Fix: window closes if all tabs were set aside 2025-05-08 06:56:06 +03:00
xfox111 ef94842066 fix: collections removed by their sorted index 2025-05-08 06:55:35 +03:00
xfox111 40490aec2d fix: open collection in a new window doesn't work 2025-05-08 02:26:08 +03:00
xfox111 06aca3d3ca fix: show timestamp-based title in edit dialog title placeholder 2025-05-08 02:20:44 +03:00
xfox111 a6a5c236c6 fix: broken chrome store link 2025-05-08 02:09:22 +03:00
xfox111 a144221e33 chore: chunk max size warning 2025-05-07 20:38:18 +03:00
xfox111 e6a69980c2 docs: privacy policy 2025-05-07 20:26:24 +03:00
xfox111 59b0547ec6 chore: version update 2025-05-07 20:01:17 +03:00
xfox111 eed5159a56 chore(loc): simplified chinese translation 2025-05-07 19:55:28 +03:00
xfox111 7effe309dd chore: minor updates 2025-05-07 19:40:03 +03:00
xfox111 6728a50056 chore(loc): spanish translation 2025-05-07 19:39:12 +03:00
xfox111 0cb036c69a chore(loc): italian translation 2025-05-07 19:18:48 +03:00
xfox111 4ef336da5b chore(loc): polish translation 2025-05-07 18:43:50 +03:00
xfox111 00492ad710 chore: tab list location logic improvement #117 2025-05-07 00:50:54 +03:00
xfox111 a706c3bc89 fix: when listLocation is "tab" or "pinned" add all tabs instead of selected #117 2025-05-07 00:28:48 +03:00
xfox111 4ef9e2651c fix: partial save notification appears when listLocation is "tab" or "pinned" 2025-05-07 00:27:16 +03:00
xfox111 bfb849fbdf fix: collection list refresh across multiple list views 2025-05-07 00:09:50 +03:00
xfox111 297a6aa95c feat: allow to create any group on firefox 2025-05-07 00:05:12 +03:00
xfox111 aa2ee02c79 chore: messenger refactoring 2025-05-07 00:04:19 +03:00
xfox111 8b77159abe hotfix: wrapped analytics into try/catch to prevent failing on firefox 2025-05-07 00:03:43 +03:00
xfox111 f5bf0db039 !feat: remove "pointer: coarse" media #117 2025-05-06 22:58:52 +03:00
xfox111 5d4a59153a feat: ga4 analytics #117 2025-05-05 19:25:25 +03:00
Maison da Silva b6be86aac9 locales pt_BR.yml
locales pt_BR.yml
2025-05-04 19:51:19 +03:00
Maison da Silva d872515b8b Update pt_BR.txt 2025-05-04 19:50:59 +03:00
Maison da Silva 8693e8d563 Create pt_BR.txt 2025-05-04 19:50:59 +03:00
xfox111 9c4121ea79 chore(ci): exclude locales from pr check 2025-05-04 19:50:29 +03:00
xfox111 f89d036ab8 feat: captureVisibleTab fallback for tab previews 2025-05-04 15:22:33 +03:00
xfox111 e59782973b feat: ability to disable cloud collection storage 2025-05-04 14:21:10 +03:00
xfox111 70ed16c286 chore: remove web-ext.config.js 2025-05-04 14:18:22 +03:00
xfox111 db78314a44 feat: remove context menu from "page" context #117 2025-05-04 13:17:01 +03:00
xfox111 a478352ca3 chore: cd pipeline refactoring 2025-05-04 11:15:04 +03:00
xfox111 2eba532901 chore: firefox extension id fix 2025-05-04 11:12:11 +03:00
xfox111 1e60b776c4 chore: npm scripts cleanup 2025-05-04 10:29:30 +03:00
xfox111 0c18a3de5a fix: firefox badge background color 2025-05-04 10:26:50 +03:00
xfox111 4e40742755 fix: partial save notification doesn't appear on firefox 2025-05-04 10:26:20 +03:00
xfox111 16023ac152 fix: clicking action button on firefox doesn't open sidebar 2025-05-04 10:25:31 +03:00
xfox111 39793a38c3 !feat: major 3.0 release candidate 2025-05-03 23:59:43 +03:00
xfox111 dbc8c7fd4d init: nuke the repo 2025-05-03 09:19:36 +03:00
8 changed files with 10034 additions and 10159 deletions
+1 -8
View File
@@ -12,7 +12,6 @@ import { settings } from "@/utils/settings";
import watchTabSelection from "@/utils/watchTabSelection";
import { Tabs, Windows } from "wxt/browser";
import { Unwatch } from "wxt/storage";
import { openCollection, openGroup } from "./sidepanel/utils/opener";
export default defineBackground(() =>
{
@@ -69,13 +68,7 @@ export default defineBackground(() =>
icon: graphicsCache[data.url]?.icon
};
});
onMessage("refreshCollections", () => { });
if (import.meta.env.FIREFOX)
{
onMessage("openCollection", ({ data }) => openCollection(data.collection, data.targetWindow));
onMessage("openGroup", ({ data }) => openGroup(data.group, data.newWindow));
}
onMessage("refreshCollections", () => {});
setupTabCaputre();
async function setupTabCaputre(): Promise<void>
-5
View File
@@ -37,12 +37,7 @@ export default async function importData(): Promise<boolean | null>
await browser.storage.local.set(data.local);
if (data.sync)
{
if (import.meta.env.FIREFOX && data.sync.contextAction === "context")
data.sync.contextAction = "open";
await browser.storage.sync.set(data.sync);
}
}
catch (error)
{
+70 -79
View File
@@ -24,13 +24,6 @@ export default function EditDialog(props: GroupEditDialogProps): ReactElement
const cls = useStyles_EditDialog();
const colorCls = useGroupColors();
const horizontalNavigationAttributes = fui.useArrowNavigationGroup({ axis: "horizontal" });
const onSubmit = (e: React.FormEvent<HTMLFormElement>) =>
{
e.preventDefault();
handleSave();
};
const handleSave = () =>
{
@@ -65,80 +58,78 @@ export default function EditDialog(props: GroupEditDialogProps): ReactElement
return (
<fui.DialogSurface className={ fui.mergeClasses(cls.surface, (color && color !== "pinned") && colorCls[color]) }>
<form onSubmit={ onSubmit }>
<fui.DialogBody>
<fui.DialogTitle>
{
props.type === "collection" ?
i18n.t(`dialogs.edit.title.${props.collection ? "edit" : "new"}_collection`) :
i18n.t(`dialogs.edit.title.${props.group ? "edit" : "new"}_group`)
}
</fui.DialogTitle>
<fui.DialogBody>
<fui.DialogTitle>
{
props.type === "collection" ?
i18n.t(`dialogs.edit.title.${props.collection ? "edit" : "new"}_collection`) :
i18n.t(`dialogs.edit.title.${props.group ? "edit" : "new"}_group`)
}
</fui.DialogTitle>
<fui.DialogContent>
<div className={ cls.content }>
<fui.Field label={ i18n.t("dialogs.edit.collection_title") }>
<fui.Input
contentBefore={ <Rename20Regular /> }
disabled={ color === "pinned" }
placeholder={
props.type === "collection" ? getCollectionTitle(props.collection, true) : ""
}
value={ color === "pinned" ? i18n.t("groups.pinned") : title }
onChange={ (_, e) => setTitle(e.value) } />
</fui.Field>
<fui.Field label="Color">
<div className={ cls.colorPicker } { ...horizontalNavigationAttributes }>
{ (props.type === "group" && (!props.hidePinned || props.group?.pinned)) &&
<fui.ToggleButton
checked={ color === "pinned" }
onClick={ () => setColor("pinned") }
icon={ <Pin20Filled /> }
shape="circular"
>
{ i18n.t("groups.pinned") }
</fui.ToggleButton>
}
{ props.type === "collection" &&
<fui.ToggleButton
checked={ color === undefined }
onClick={ () => setColor(undefined) }
icon={ <CircleOff20Regular /> }
shape="circular"
>
{ i18n.t("colors.none") }
</fui.ToggleButton>
}
{ Object.keys(colorCls).map(i =>
<fui.ToggleButton
checked={ color === i }
onClick={ () => setColor(i as chrome.tabGroups.ColorEnum) }
className={ fui.mergeClasses(cls.colorButton, colorCls[i as chrome.tabGroups.ColorEnum]) }
icon={ {
className: cls.colorButton_icon,
children: <Circle20Filled />
} }
key={ i }
shape="circular"
>
{ i18n.t(`colors.${i as chrome.tabGroups.ColorEnum}`) }
</fui.ToggleButton>
) }
</div>
</fui.Field>
</div>
</fui.DialogContent>
<fui.DialogContent>
<form className={ cls.content }>
<fui.Field label={ i18n.t("dialogs.edit.collection_title") }>
<fui.Input
contentBefore={ <Rename20Regular /> }
disabled={ color === "pinned" }
placeholder={
props.type === "collection" ? getCollectionTitle(props.collection, true) : ""
}
value={ color === "pinned" ? i18n.t("groups.pinned") : title }
onChange={ (_, e) => setTitle(e.value) } />
</fui.Field>
<fui.Field label="Color">
<div className={ cls.colorPicker }>
{ (props.type === "group" && (!props.hidePinned || props.group?.pinned)) &&
<fui.ToggleButton
checked={ color === "pinned" }
onClick={ () => setColor("pinned") }
icon={ <Pin20Filled /> }
shape="circular"
>
{ i18n.t("groups.pinned") }
</fui.ToggleButton>
}
{ props.type === "collection" &&
<fui.ToggleButton
checked={ color === undefined }
onClick={ () => setColor(undefined) }
icon={ <CircleOff20Regular /> }
shape="circular"
>
{ i18n.t("colors.none") }
</fui.ToggleButton>
}
{ Object.keys(colorCls).map(i =>
<fui.ToggleButton
checked={ color === i }
onClick={ () => setColor(i as chrome.tabGroups.ColorEnum) }
className={ fui.mergeClasses(cls.colorButton, colorCls[i as chrome.tabGroups.ColorEnum]) }
icon={ {
className: cls.colorButton_icon,
children: <Circle20Filled />
} }
key={ i }
shape="circular"
>
{ i18n.t(`colors.${i as chrome.tabGroups.ColorEnum}`) }
</fui.ToggleButton>
) }
</div>
</fui.Field>
</form>
</fui.DialogContent>
<fui.DialogActions>
<fui.DialogTrigger disableButtonEnhancement>
<fui.Button appearance="primary" as="button" type="submit">{ i18n.t("common.actions.save") }</fui.Button>
</fui.DialogTrigger>
<fui.DialogTrigger disableButtonEnhancement>
<fui.Button appearance="subtle">{ i18n.t("common.actions.cancel") }</fui.Button>
</fui.DialogTrigger>
</fui.DialogActions>
</fui.DialogBody>
</form>
<fui.DialogActions>
<fui.DialogTrigger disableButtonEnhancement>
<fui.Button appearance="primary" onClick={ handleSave }>{ i18n.t("common.actions.save") }</fui.Button>
</fui.DialogTrigger>
<fui.DialogTrigger disableButtonEnhancement>
<fui.Button appearance="subtle">{ i18n.t("common.actions.cancel") }</fui.Button>
</fui.DialogTrigger>
</fui.DialogActions>
</fui.DialogBody>
</fui.DialogSurface>
);
}
@@ -7,12 +7,11 @@ import getSelectedTabs from "@/entrypoints/sidepanel/utils/getSelectedTabs";
import { useDangerStyles } from "@/hooks/useDangerStyles";
import useSettings from "@/hooks/useSettings";
import { TabItem } from "@/models/CollectionModels";
import { sendMessage } from "@/utils/messaging";
import saveTabsToCollection from "@/utils/saveTabsToCollection";
import { Button, Menu, MenuItem, MenuList, MenuPopover, MenuTrigger, Tooltip } from "@fluentui/react-components";
import * as ic from "@fluentui/react-icons";
import { ReactElement } from "react";
import { openGroup } from "../../utils/opener";
import saveTabsToCollection from "@/utils/saveTabsToCollection";
export default function GroupMoreMenu(): ReactElement
{
@@ -57,14 +56,6 @@ export default function GroupMoreMenu(): ReactElement
onSave={ item => updateGroup(item, collection.timestamp, indices[1]) } />
);
const openGroupInNewWindow = () =>
{
if (import.meta.env.FIREFOX && listLocation === "popup")
sendMessage("openGroup", { group, newWindow: true });
else
openGroup(group, true);
};
const handleAddSelected = async () =>
{
const newTabs: TabItem[] = isTab ?
@@ -84,7 +75,7 @@ export default function GroupMoreMenu(): ReactElement
<MenuPopover>
<MenuList>
{ group.items.length > 0 &&
<MenuItem icon={ <NewWindowIcon /> } onClick={ openGroupInNewWindow }>
<MenuItem icon={ <NewWindowIcon /> } onClick={ () => openGroup(group, true) }>
{ i18n.t("groups.menu.new_window") }
</MenuItem>
}
@@ -1,7 +1,6 @@
import { useDialog } from "@/contexts/DialogProvider";
import useSettings from "@/hooks/useSettings";
import browserLocaleKey from "@/utils/browserLocaleKey";
import { sendMessage } from "@/utils/messaging";
import { Menu, MenuButtonProps, MenuItem, MenuList, MenuOpenChangeData, MenuOpenEvent, MenuPopover, MenuTrigger, SplitButton } from "@fluentui/react-components";
import * as ic from "@fluentui/react-icons";
import CollectionContext, { CollectionContextType } from "../../contexts/CollectionContext";
@@ -11,7 +10,6 @@ import { openCollection } from "../../utils/opener";
export default function OpenCollectionButton({ onOpenChange }: OpenCollectionButtonProps): React.ReactElement
{
const [defaultAction] = useSettings("defaultRestoreAction");
const [listLocation] = useSettings("listLocation");
const { removeItem } = useCollections();
const dialog = useDialog();
const { collection } = useContext<CollectionContextType>(CollectionContext);
@@ -24,12 +22,7 @@ export default function OpenCollectionButton({ onOpenChange }: OpenCollectionBut
const handleIncognito = async () =>
{
if (await browser.extension.isAllowedIncognitoAccess())
{
if (import.meta.env.FIREFOX && listLocation === "popup")
sendMessage("openCollection", { collection, targetWindow: "incognito" });
else
openCollection(collection, "incognito");
}
openCollection(collection, "incognito");
else
dialog.pushPrompt({
title: i18n.t("collections.incognito_check.title"),
@@ -52,9 +45,7 @@ export default function OpenCollectionButton({ onOpenChange }: OpenCollectionBut
};
const handleOpen = (mode: "current" | "new") =>
import.meta.env.FIREFOX && listLocation === "popup" && mode === "new" ?
() => sendMessage("openCollection", { collection, targetWindow: "new" }) :
() => openCollection(collection, mode);
() => openCollection(collection, mode);
const handleRestore = async () =>
{
+13 -13
View File
@@ -1,7 +1,7 @@
{
"name": "tabs-aside",
"private": true,
"version": "3.0.0",
"version": "3.0.0-rc8",
"type": "module",
"scripts": {
"dev": "wxt",
@@ -16,31 +16,31 @@
"@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@fluentui/react-components": "^9.68.1",
"@fluentui/react-icons": "^2.0.307",
"@fluentui/react-components": "^9.67.0",
"@fluentui/react-icons": "^2.0.306",
"@webext-core/messaging": "^2.3.0",
"@wxt-dev/analytics": "^0.4.1",
"@wxt-dev/analytics": "0.4.1",
"@wxt-dev/i18n": "^0.2.4",
"lzutf8": "^0.6.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"@eslint/css": "^0.10.0",
"@eslint/js": "^9.32.0",
"@eslint/json": "^0.13.1",
"@stylistic/eslint-plugin": "^5.2.2",
"@eslint/js": "^9.31.0",
"@eslint/json": "^0.13.0",
"@stylistic/eslint-plugin": "^5.2.0",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"@types/scheduler": "0.23.0",
"@types/scheduler": "^0",
"@wxt-dev/module-react": "^1.1.3",
"eslint": "^9.32.0",
"eslint": "^9.31.0",
"eslint-plugin-react": "^7.37.5",
"globals": "^16.3.0",
"scheduler": "0.23.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.38.0",
"vite": "^7.0.6",
"typescript-eslint": "^8.37.0",
"vite": "^6.3.5",
"wxt": "~0.19.29"
},
"packageManager": "yarn@4.9.2"
+1 -4
View File
@@ -1,5 +1,5 @@
import { trackError } from "@/features/analytics";
import { CollectionItem, GraphicsStorage, GroupItem } from "@/models/CollectionModels";
import { GraphicsStorage } from "@/models/CollectionModels";
import { defineExtensionMessaging, ExtensionMessagingConfig, ExtensionMessenger, ExtensionSendMessageArgs, GetDataType, GetReturnType } from "@webext-core/messaging";
type ProtocolMap =
@@ -7,9 +7,6 @@ type ProtocolMap =
addThumbnail(data: { url: string; thumbnail: string; }): void;
getGraphicsCache(): GraphicsStorage;
refreshCollections(): void;
openCollection(data: { collection: CollectionItem; targetWindow: "new" | "incognito"; }): void;
openGroup(data: { group: GroupItem; newWindow: boolean; }): void;
};
function defineMessaging(config?: ExtensionMessagingConfig): ExtensionMessenger<ProtocolMap>
+9945 -10028
View File
File diff suppressed because it is too large Load Diff