Skip to content

Commit

Permalink
feat: migrate to generic construction
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Dec 23, 2024
1 parent f6e7e4e commit fade057
Show file tree
Hide file tree
Showing 23 changed files with 925 additions and 647 deletions.
283 changes: 249 additions & 34 deletions packages/dockview-core/src/__tests__/gridview/gridviewComponent.spec.ts

Large diffs are not rendered by default.

102 changes: 0 additions & 102 deletions packages/dockview-core/src/__tests__/panel/componentFactory.spec.ts

This file was deleted.

10 changes: 3 additions & 7 deletions packages/dockview-core/src/__tests__/paneview/paneview.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { CompositeDisposable } from '../../lifecycle';
import { Paneview } from '../../paneview/paneview';
import {
IPaneBodyPart,
IPaneHeaderPart,
PaneviewPanel,
} from '../../paneview/paneviewPanel';
import { IPanePart, PaneviewPanel } from '../../paneview/paneviewPanel';
import { Orientation } from '../../splitview/splitview';

class TestPanel extends PaneviewPanel {
protected getBodyComponent(): IPaneBodyPart {
protected getBodyComponent(): IPanePart {
return {
element: document.createElement('div'),
update: () => {
Expand All @@ -23,7 +19,7 @@ class TestPanel extends PaneviewPanel {
};
}

protected getHeaderComponent(): IPaneHeaderPart {
protected getHeaderComponent(): IPanePart {
return {
element: document.createElement('div'),
update: () => {
Expand Down
Loading

0 comments on commit fade057

Please sign in to comment.