mirror of
https://github.com/mathuo/dockview
synced 2025-02-13 03:45:47 +00:00
Merge branch 'master' of https://github.com/mathuo/dockview into 100-docs
This commit is contained in:
commit
28f77ac3ae
@ -12,7 +12,7 @@ console.log(`isCI: ${process.env.CI}`);
|
|||||||
const config = {
|
const config = {
|
||||||
title: 'Dockview',
|
title: 'Dockview',
|
||||||
tagline: 'Zero dependency layout manager for React',
|
tagline: 'Zero dependency layout manager for React',
|
||||||
url: 'https://your-docusaurus-test-site.com',
|
url: 'https://dockview.dev',
|
||||||
baseUrl: process.env.CI ? `/` : '/',
|
baseUrl: process.env.CI ? `/` : '/',
|
||||||
onBrokenLinks: 'throw',
|
onBrokenLinks: 'throw',
|
||||||
onBrokenMarkdownLinks: 'warn',
|
onBrokenMarkdownLinks: 'warn',
|
||||||
@ -87,6 +87,28 @@ const config = {
|
|||||||
themeConfig:
|
themeConfig:
|
||||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
({
|
({
|
||||||
|
metadata: [
|
||||||
|
{
|
||||||
|
name: 'keywords',
|
||||||
|
content: [
|
||||||
|
'react',
|
||||||
|
'components',
|
||||||
|
'typescript',
|
||||||
|
'drag-and-drop',
|
||||||
|
'reactjs',
|
||||||
|
'layout',
|
||||||
|
'drag',
|
||||||
|
'drop',
|
||||||
|
'tabs',
|
||||||
|
'dock',
|
||||||
|
'docking',
|
||||||
|
'splitter',
|
||||||
|
'docking-library',
|
||||||
|
'layout-manager',
|
||||||
|
'docking-layout',
|
||||||
|
].join(' ,'),
|
||||||
|
},
|
||||||
|
],
|
||||||
navbar: {
|
navbar: {
|
||||||
title: 'Dockview',
|
title: 'Dockview',
|
||||||
logo: {
|
logo: {
|
||||||
|
@ -98,12 +98,18 @@ export const ContextMenuDockview = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const onContextMenu = (event: TabContextMenuEvent) => {
|
||||||
|
event.event.preventDefault();
|
||||||
|
alert(`Content appear event fired for panel ${event.panel.id}`);
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DockviewReact
|
<DockviewReact
|
||||||
components={components}
|
components={components}
|
||||||
tabComponents={tabComponents}
|
tabComponents={tabComponents}
|
||||||
onReady={onReady}
|
onReady={onReady}
|
||||||
className="dockview-theme-dark"
|
className="dockview-theme-dark"
|
||||||
|
onTabContextMenu={onContextMenu}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user