mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
fix(core): ctrl/cmd + click on add page button opens in new tab (#7701)
fix PD-1521
This commit is contained in:
@@ -3,11 +3,12 @@ import { useI18n } from '@affine/i18n';
|
|||||||
import { PlusIcon } from '@blocksuite/icons/rc';
|
import { PlusIcon } from '@blocksuite/icons/rc';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import type React from 'react';
|
import type React from 'react';
|
||||||
|
import type { MouseEventHandler } from 'react';
|
||||||
|
|
||||||
import * as styles from './index.css';
|
import * as styles from './index.css';
|
||||||
|
|
||||||
interface AddPageButtonProps {
|
interface AddPageButtonProps {
|
||||||
onClick?: () => void;
|
onClick?: MouseEventHandler;
|
||||||
className?: string;
|
className?: string;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import { useExportPage } from '@affine/core/hooks/affine/use-export-page';
|
|||||||
import { useTrashModalHelper } from '@affine/core/hooks/affine/use-trash-modal-helper';
|
import { useTrashModalHelper } from '@affine/core/hooks/affine/use-trash-modal-helper';
|
||||||
import { useAsyncCallback } from '@affine/core/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@affine/core/hooks/affine-async-hooks';
|
||||||
import { mixpanel } from '@affine/core/mixpanel';
|
import { mixpanel } from '@affine/core/mixpanel';
|
||||||
|
import { WorkbenchService } from '@affine/core/modules/workbench';
|
||||||
import { useDetailPageHeaderResponsive } from '@affine/core/pages/workspace/detail-page/use-header-responsive';
|
import { useDetailPageHeaderResponsive } from '@affine/core/pages/workspace/detail-page/use-header-responsive';
|
||||||
import { WorkspaceFlavour } from '@affine/env/workspace';
|
import { WorkspaceFlavour } from '@affine/env/workspace';
|
||||||
import { useI18n } from '@affine/i18n';
|
import { useI18n } from '@affine/i18n';
|
||||||
@@ -31,8 +32,10 @@ import {
|
|||||||
HistoryIcon,
|
HistoryIcon,
|
||||||
ImportIcon,
|
ImportIcon,
|
||||||
InformationIcon,
|
InformationIcon,
|
||||||
|
OpenInNewIcon,
|
||||||
PageIcon,
|
PageIcon,
|
||||||
ShareIcon,
|
ShareIcon,
|
||||||
|
SplitViewIcon,
|
||||||
} from '@blocksuite/icons/rc';
|
} from '@blocksuite/icons/rc';
|
||||||
import type { Doc } from '@blocksuite/store';
|
import type { Doc } from '@blocksuite/store';
|
||||||
import {
|
import {
|
||||||
@@ -73,6 +76,8 @@ export const PageHeaderMenuButton = ({
|
|||||||
const isInTrash = useLiveData(doc.meta$.map(m => m.trash));
|
const isInTrash = useLiveData(doc.meta$.map(m => m.trash));
|
||||||
const currentMode = useLiveData(doc.mode$);
|
const currentMode = useLiveData(doc.mode$);
|
||||||
|
|
||||||
|
const workbench = useService(WorkbenchService).workbench;
|
||||||
|
|
||||||
const { favorite, toggleFavorite } = useFavorite(pageId);
|
const { favorite, toggleFavorite } = useFavorite(pageId);
|
||||||
|
|
||||||
const { duplicate } = useBlockSuiteMetaHelper(docCollection);
|
const { duplicate } = useBlockSuiteMetaHelper(docCollection);
|
||||||
@@ -94,6 +99,18 @@ export const PageHeaderMenuButton = ({
|
|||||||
setOpenInfoModal(true);
|
setOpenInfoModal(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleOpenInNewTab = useCallback(() => {
|
||||||
|
workbench.openDoc(pageId, {
|
||||||
|
at: 'new-tab',
|
||||||
|
});
|
||||||
|
}, [pageId, workbench]);
|
||||||
|
|
||||||
|
const handleOpenInSplitView = useCallback(() => {
|
||||||
|
workbench.openDoc(pageId, {
|
||||||
|
at: 'tail',
|
||||||
|
});
|
||||||
|
}, [pageId, workbench]);
|
||||||
|
|
||||||
const handleOpenTrashModal = useCallback(() => {
|
const handleOpenTrashModal = useCallback(() => {
|
||||||
setTrashModal({
|
setTrashModal({
|
||||||
open: true,
|
open: true,
|
||||||
@@ -237,16 +254,35 @@ export const PageHeaderMenuButton = ({
|
|||||||
? t['com.affine.favoritePageOperation.remove']()
|
? t['com.affine.favoritePageOperation.remove']()
|
||||||
: t['com.affine.favoritePageOperation.add']()}
|
: t['com.affine.favoritePageOperation.add']()}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
{/* {TODO(@Peng): add tag function support} */}
|
<MenuSeparator />
|
||||||
{/* <MenuItem
|
<MenuItem
|
||||||
icon={<TagsIcon />}
|
preFix={
|
||||||
data-testid="editor-option-menu-add-tag"
|
<MenuIcon>
|
||||||
onClick={() => {}}
|
<OpenInNewIcon />
|
||||||
|
</MenuIcon>
|
||||||
|
}
|
||||||
|
data-testid="editor-option-menu-open-in-new-tab"
|
||||||
|
onSelect={handleOpenInNewTab}
|
||||||
style={menuItemStyle}
|
style={menuItemStyle}
|
||||||
>
|
>
|
||||||
{t['com.affine.header.option.add-tag']()}
|
{t['com.affine.workbench.tab.page-menu-open']()}
|
||||||
</MenuItem> */}
|
</MenuItem>
|
||||||
|
|
||||||
|
<MenuItem
|
||||||
|
preFix={
|
||||||
|
<MenuIcon>
|
||||||
|
<SplitViewIcon />
|
||||||
|
</MenuIcon>
|
||||||
|
}
|
||||||
|
data-testid="editor-option-menu-open-in-split-new"
|
||||||
|
onSelect={handleOpenInSplitView}
|
||||||
|
style={menuItemStyle}
|
||||||
|
>
|
||||||
|
{t['com.affine.workbench.split-view.page-menu-open']()}
|
||||||
|
</MenuItem>
|
||||||
|
|
||||||
<MenuSeparator />
|
<MenuSeparator />
|
||||||
|
|
||||||
{runtimeConfig.enableInfoModal && (
|
{runtimeConfig.enableInfoModal && (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
preFix={
|
preFix={
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { openSettingModalAtom } from '@affine/core/atoms';
|
import { openSettingModalAtom } from '@affine/core/atoms';
|
||||||
import { useAsyncCallback } from '@affine/core/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@affine/core/hooks/affine-async-hooks';
|
||||||
import { useNavigateHelper } from '@affine/core/hooks/use-navigate-helper';
|
|
||||||
import { mixpanel } from '@affine/core/mixpanel';
|
import { mixpanel } from '@affine/core/mixpanel';
|
||||||
import {
|
import {
|
||||||
ExplorerCollections,
|
ExplorerCollections,
|
||||||
@@ -19,7 +18,7 @@ import type { Doc } from '@blocksuite/store';
|
|||||||
import type { Workspace } from '@toeverything/infra';
|
import type { Workspace } from '@toeverything/infra';
|
||||||
import { useLiveData, useService, WorkspaceService } from '@toeverything/infra';
|
import { useLiveData, useService, WorkspaceService } from '@toeverything/infra';
|
||||||
import { useAtomValue, useSetAtom } from 'jotai';
|
import { useAtomValue, useSetAtom } from 'jotai';
|
||||||
import type { ReactElement } from 'react';
|
import type { MouseEvent, ReactElement } from 'react';
|
||||||
import { useCallback, useEffect } from 'react';
|
import { useCallback, useEffect } from 'react';
|
||||||
|
|
||||||
import { useAppSettingHelper } from '../../hooks/affine/use-app-setting-helper';
|
import { useAppSettingHelper } from '../../hooks/affine/use-app-setting-helper';
|
||||||
@@ -72,14 +71,12 @@ export type RootAppSidebarProps = {
|
|||||||
export const RootAppSidebar = (): ReactElement => {
|
export const RootAppSidebar = (): ReactElement => {
|
||||||
const currentWorkspace = useService(WorkspaceService).workspace;
|
const currentWorkspace = useService(WorkspaceService).workspace;
|
||||||
const currentWorkspaceId = currentWorkspace.id;
|
const currentWorkspaceId = currentWorkspace.id;
|
||||||
const { openPage } = useNavigateHelper();
|
|
||||||
const { appSettings } = useAppSettingHelper();
|
const { appSettings } = useAppSettingHelper();
|
||||||
const docCollection = currentWorkspace.docCollection;
|
const docCollection = currentWorkspace.docCollection;
|
||||||
const t = useI18n();
|
const t = useI18n();
|
||||||
|
const workbench = useService(WorkbenchService).workbench;
|
||||||
const currentPath = useLiveData(
|
const currentPath = useLiveData(
|
||||||
useService(WorkbenchService).workbench.location$.map(
|
workbench.location$.map(location => location.pathname)
|
||||||
location => location.pathname
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
const cmdkQuickSearchService = useService(CMDKQuickSearchService);
|
const cmdkQuickSearchService = useService(CMDKQuickSearchService);
|
||||||
const onOpenQuickSearchModal = useCallback(() => {
|
const onOpenQuickSearchModal = useCallback(() => {
|
||||||
@@ -93,27 +90,29 @@ export const RootAppSidebar = (): ReactElement => {
|
|||||||
const allPageActive = currentPath === '/all';
|
const allPageActive = currentPath === '/all';
|
||||||
|
|
||||||
const pageHelper = usePageHelper(currentWorkspace.docCollection);
|
const pageHelper = usePageHelper(currentWorkspace.docCollection);
|
||||||
const createPage = useCallback(() => {
|
|
||||||
return pageHelper.createPage();
|
|
||||||
}, [pageHelper]);
|
|
||||||
|
|
||||||
const onClickNewPage = useAsyncCallback(async () => {
|
const onClickNewPage = useAsyncCallback(
|
||||||
const page = createPage();
|
async (e?: MouseEvent) => {
|
||||||
page.load();
|
const page = pageHelper.createPage('page', false);
|
||||||
openPage(currentWorkspaceId, page.id);
|
page.load();
|
||||||
mixpanel.track('DocCreated', {
|
mixpanel.track('DocCreated', {
|
||||||
segment: 'navigation panel',
|
segment: 'navigation panel',
|
||||||
module: 'bottom button',
|
module: 'bottom button',
|
||||||
control: 'new doc button',
|
control: 'new doc button',
|
||||||
category: 'page',
|
category: 'page',
|
||||||
type: 'doc',
|
type: 'doc',
|
||||||
});
|
});
|
||||||
}, [createPage, currentWorkspaceId, openPage]);
|
workbench.openDoc(page.id, {
|
||||||
|
at: e?.ctrlKey || e?.metaKey ? 'new-tab' : 'active',
|
||||||
|
});
|
||||||
|
},
|
||||||
|
[pageHelper, workbench]
|
||||||
|
);
|
||||||
|
|
||||||
// Listen to the "New Page" action from the menu
|
// Listen to the "New Page" action from the menu
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (environment.isDesktop) {
|
if (environment.isDesktop) {
|
||||||
return events?.applicationMenu.onNewPageAction(onClickNewPage);
|
return events?.applicationMenu.onNewPageAction(() => onClickNewPage());
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}, [onClickNewPage]);
|
}, [onClickNewPage]);
|
||||||
|
|||||||
@@ -1,20 +1,25 @@
|
|||||||
import { Unreachable } from '@affine/env/constant';
|
import { Unreachable } from '@affine/env/constant';
|
||||||
import { Entity, LiveData } from '@toeverything/infra';
|
import { Entity, LiveData } from '@toeverything/infra';
|
||||||
import type { To } from 'history';
|
import { type To } from 'history';
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
|
|
||||||
|
import type { WorkbenchNewTabHandler } from '../services/workbench-new-tab-handler';
|
||||||
import type { WorkbenchDefaultState } from '../services/workbench-view-state';
|
import type { WorkbenchDefaultState } from '../services/workbench-view-state';
|
||||||
import { View } from './view';
|
import { View } from './view';
|
||||||
|
|
||||||
export type WorkbenchPosition = 'beside' | 'active' | 'head' | 'tail' | number;
|
export type WorkbenchPosition = 'beside' | 'active' | 'head' | 'tail' | number;
|
||||||
|
|
||||||
interface WorkbenchOpenOptions {
|
type WorkbenchOpenOptions = {
|
||||||
at?: WorkbenchPosition;
|
at?: WorkbenchPosition | 'new-tab';
|
||||||
replaceHistory?: boolean;
|
replaceHistory?: boolean;
|
||||||
}
|
show?: boolean; // only for new tab
|
||||||
|
};
|
||||||
|
|
||||||
export class Workbench extends Entity {
|
export class Workbench extends Entity {
|
||||||
constructor(private readonly defaultState: WorkbenchDefaultState) {
|
constructor(
|
||||||
|
private readonly defaultState: WorkbenchDefaultState,
|
||||||
|
private readonly newTabHandler: WorkbenchNewTabHandler
|
||||||
|
) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,26 +79,45 @@ export class Workbench extends Entity {
|
|||||||
this.sidebarOpen$.next(!this.sidebarOpen$.value);
|
this.sidebarOpen$.next(!this.sidebarOpen$.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
open(
|
open(to: To, option: WorkbenchOpenOptions = {}) {
|
||||||
to: To,
|
if (option.at === 'new-tab') {
|
||||||
{ at = 'active', replaceHistory = false }: WorkbenchOpenOptions = {}
|
this.newTab(to, {
|
||||||
) {
|
show: option.show,
|
||||||
let view = this.viewAt(at);
|
});
|
||||||
if (!view) {
|
|
||||||
const newIndex = this.createView(at, to);
|
|
||||||
view = this.viewAt(newIndex);
|
|
||||||
if (!view) {
|
|
||||||
throw new Unreachable();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (replaceHistory) {
|
const { at = 'active', replaceHistory = false } = option;
|
||||||
view.history.replace(to);
|
let view = this.viewAt(at);
|
||||||
|
if (!view) {
|
||||||
|
const newIndex = this.createView(at, to);
|
||||||
|
view = this.viewAt(newIndex);
|
||||||
|
if (!view) {
|
||||||
|
throw new Unreachable();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
view.history.push(to);
|
if (replaceHistory) {
|
||||||
|
view.history.replace(to);
|
||||||
|
} else {
|
||||||
|
view.history.push(to);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newTab(
|
||||||
|
to: To,
|
||||||
|
{
|
||||||
|
show,
|
||||||
|
}: {
|
||||||
|
show?: boolean;
|
||||||
|
} = {}
|
||||||
|
) {
|
||||||
|
this.newTabHandler({
|
||||||
|
basename: this.basename$.value,
|
||||||
|
to,
|
||||||
|
show: show ?? true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
openDoc(
|
openDoc(
|
||||||
id: string | { docId: string; blockId?: string },
|
id: string | { docId: string; blockId?: string },
|
||||||
options?: WorkbenchOpenOptions
|
options?: WorkbenchOpenOptions
|
||||||
|
|||||||
@@ -20,6 +20,11 @@ import { ViewScope } from './scopes/view';
|
|||||||
import { DesktopStateSynchronizer } from './services/desktop-state-synchronizer';
|
import { DesktopStateSynchronizer } from './services/desktop-state-synchronizer';
|
||||||
import { ViewService } from './services/view';
|
import { ViewService } from './services/view';
|
||||||
import { WorkbenchService } from './services/workbench';
|
import { WorkbenchService } from './services/workbench';
|
||||||
|
import {
|
||||||
|
BrowserWorkbenchNewTabHandler,
|
||||||
|
DesktopWorkbenchNewTabHandler,
|
||||||
|
WorkbenchNewTabHandler,
|
||||||
|
} from './services/workbench-new-tab-handler';
|
||||||
import {
|
import {
|
||||||
DesktopWorkbenchDefaultState,
|
DesktopWorkbenchDefaultState,
|
||||||
InMemoryWorkbenchDefaultState,
|
InMemoryWorkbenchDefaultState,
|
||||||
@@ -30,7 +35,7 @@ export function configureWorkbenchCommonModule(services: Framework) {
|
|||||||
services
|
services
|
||||||
.scope(WorkspaceScope)
|
.scope(WorkspaceScope)
|
||||||
.service(WorkbenchService)
|
.service(WorkbenchService)
|
||||||
.entity(Workbench, [WorkbenchDefaultState])
|
.entity(Workbench, [WorkbenchDefaultState, WorkbenchNewTabHandler])
|
||||||
.entity(View)
|
.entity(View)
|
||||||
.scope(ViewScope)
|
.scope(ViewScope)
|
||||||
.service(ViewService, [ViewScope])
|
.service(ViewService, [ViewScope])
|
||||||
@@ -41,7 +46,8 @@ export function configureBrowserWorkbenchModule(services: Framework) {
|
|||||||
configureWorkbenchCommonModule(services);
|
configureWorkbenchCommonModule(services);
|
||||||
services
|
services
|
||||||
.scope(WorkspaceScope)
|
.scope(WorkspaceScope)
|
||||||
.impl(WorkbenchDefaultState, InMemoryWorkbenchDefaultState);
|
.impl(WorkbenchDefaultState, InMemoryWorkbenchDefaultState)
|
||||||
|
.impl(WorkbenchNewTabHandler, () => BrowserWorkbenchNewTabHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function configureDesktopWorkbenchModule(services: Framework) {
|
export function configureDesktopWorkbenchModule(services: Framework) {
|
||||||
@@ -51,5 +57,6 @@ export function configureDesktopWorkbenchModule(services: Framework) {
|
|||||||
.impl(WorkbenchDefaultState, DesktopWorkbenchDefaultState, [
|
.impl(WorkbenchDefaultState, DesktopWorkbenchDefaultState, [
|
||||||
GlobalStateService,
|
GlobalStateService,
|
||||||
])
|
])
|
||||||
|
.impl(WorkbenchNewTabHandler, () => DesktopWorkbenchNewTabHandler)
|
||||||
.service(DesktopStateSynchronizer, [WorkbenchService]);
|
.service(DesktopStateSynchronizer, [WorkbenchService]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
import { popupWindow } from '@affine/core/utils';
|
||||||
|
import { apis } from '@affine/electron-api';
|
||||||
|
import { createIdentifier } from '@toeverything/infra';
|
||||||
|
import { parsePath, type To } from 'history';
|
||||||
|
|
||||||
|
export type WorkbenchNewTabHandler = (option: {
|
||||||
|
basename: string;
|
||||||
|
to: To;
|
||||||
|
show: boolean;
|
||||||
|
}) => void;
|
||||||
|
|
||||||
|
export const WorkbenchNewTabHandler = createIdentifier<WorkbenchNewTabHandler>(
|
||||||
|
'WorkbenchNewTabHandler'
|
||||||
|
);
|
||||||
|
|
||||||
|
export const BrowserWorkbenchNewTabHandler: WorkbenchNewTabHandler = ({
|
||||||
|
basename,
|
||||||
|
to,
|
||||||
|
}) => {
|
||||||
|
const link =
|
||||||
|
basename +
|
||||||
|
(typeof to === 'string' ? to : `${to.pathname}${to.search}${to.hash}`);
|
||||||
|
popupWindow(link);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const DesktopWorkbenchNewTabHandler: WorkbenchNewTabHandler = ({
|
||||||
|
basename,
|
||||||
|
to,
|
||||||
|
}) => {
|
||||||
|
const path = typeof to === 'string' ? parsePath(to) : to;
|
||||||
|
apis?.ui
|
||||||
|
.addTab({
|
||||||
|
basename,
|
||||||
|
view: { path },
|
||||||
|
show: false,
|
||||||
|
})
|
||||||
|
.catch(console.error);
|
||||||
|
};
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
import { useAppSettingHelper } from '@affine/core/hooks/affine/use-app-setting-helper';
|
import { useAppSettingHelper } from '@affine/core/hooks/affine/use-app-setting-helper';
|
||||||
import { useAsyncCallback } from '@affine/core/hooks/affine-async-hooks';
|
import { useAsyncCallback } from '@affine/core/hooks/affine-async-hooks';
|
||||||
import { popupWindow } from '@affine/core/utils';
|
|
||||||
import { apis } from '@affine/electron-api';
|
|
||||||
import { useLiveData, useService } from '@toeverything/infra';
|
import { useLiveData, useService } from '@toeverything/infra';
|
||||||
import { parsePath, type To } from 'history';
|
import { type To } from 'history';
|
||||||
import { forwardRef, type MouseEvent } from 'react';
|
import { forwardRef, type MouseEvent } from 'react';
|
||||||
|
|
||||||
import { WorkbenchService } from '../services/workbench';
|
import { WorkbenchService } from '../services/workbench';
|
||||||
@@ -31,26 +29,18 @@ export const WorkbenchLink = forwardRef<
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.ctrlKey || event.metaKey) {
|
const at = (() => {
|
||||||
if (environment.isDesktop) {
|
if (event.ctrlKey || event.metaKey) {
|
||||||
if (event.altKey && appSettings.enableMultiView) {
|
return event.altKey && appSettings.enableMultiView
|
||||||
workbench.open(to, { at: 'tail' });
|
? 'tail'
|
||||||
} else {
|
: 'new-tab';
|
||||||
const path = typeof to === 'string' ? parsePath(to) : to;
|
|
||||||
await apis?.ui.addTab({
|
|
||||||
basename,
|
|
||||||
view: { path },
|
|
||||||
show: false,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else if (!environment.isDesktop) {
|
|
||||||
popupWindow(link);
|
|
||||||
}
|
}
|
||||||
} else {
|
return 'active';
|
||||||
workbench.open(to);
|
})();
|
||||||
}
|
|
||||||
|
workbench.open(to, { at });
|
||||||
},
|
},
|
||||||
[appSettings.enableMultiView, basename, link, onClick, to, workbench]
|
[appSettings.enableMultiView, onClick, to, workbench]
|
||||||
);
|
);
|
||||||
|
|
||||||
// eslint suspicious runtime error
|
// eslint suspicious runtime error
|
||||||
|
|||||||
@@ -4,7 +4,5 @@ export function popupWindow(target: string) {
|
|||||||
? target
|
? target
|
||||||
: runtimeConfig.serverUrlPrefix + target;
|
: runtimeConfig.serverUrlPrefix + target;
|
||||||
url.searchParams.set('redirect_uri', target);
|
url.searchParams.set('redirect_uri', target);
|
||||||
|
|
||||||
console.log(url.href);
|
|
||||||
return window.open(url, '_blank', `noreferrer noopener`);
|
return window.open(url, '_blank', `noreferrer noopener`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1349,6 +1349,7 @@
|
|||||||
"com.affine.workbench.split-view-menu.move-left": "Move Left",
|
"com.affine.workbench.split-view-menu.move-left": "Move Left",
|
||||||
"com.affine.workbench.split-view-menu.move-right": "Move Right",
|
"com.affine.workbench.split-view-menu.move-right": "Move Right",
|
||||||
"com.affine.workbench.split-view.page-menu-open": "Open in split view",
|
"com.affine.workbench.split-view.page-menu-open": "Open in split view",
|
||||||
|
"com.affine.workbench.tab.page-menu-open": "Open in new tab",
|
||||||
"com.affine.workspace.cannot-delete": "You cannot delete the last workspace",
|
"com.affine.workspace.cannot-delete": "You cannot delete the last workspace",
|
||||||
"com.affine.workspace.cloud": "Cloud Workspaces",
|
"com.affine.workspace.cloud": "Cloud Workspaces",
|
||||||
"com.affine.workspace.cloud.account.logout": "Sign Out",
|
"com.affine.workspace.cloud.account.logout": "Sign Out",
|
||||||
|
|||||||
Reference in New Issue
Block a user