Skip to content

Commit

Permalink
chore: cleanup playground
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Oct 22, 2024
1 parent ab1da53 commit 9032992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 62 deletions.
7 changes: 1 addition & 6 deletions packages/core/component-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16153,18 +16153,13 @@
"docs": "",
"docsTags": [],
"encapsulation": "shadow",
"dependents": [
"ix-playground-internal"
],
"dependents": [],
"dependencies": [
"ix-tree-item"
],
"dependencyGraph": {
"ix-tree": [
"ix-tree-item"
],
"ix-playground-internal": [
"ix-tree"
]
},
"props": [
Expand Down
58 changes: 2 additions & 56 deletions packages/core/src/components/playground/playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This source code is licensed under the MIT license found in the
* LICENxSE file in the root directory of this source tree.
*/
import { Component, h, Host, State } from '@stencil/core';
import { Component, h, Host } from '@stencil/core';

/** @internal */
@Component({
Expand All @@ -17,61 +17,7 @@ import { Component, h, Host, State } from '@stencil/core';
scoped: true,
})
export class PlaygroundInternal {
@State() model = {
root: {
id: 'root',
data: {
name: '',
},
hasChildren: true,
children: ['sample'],
},
sample: {
id: 'sample',
data: {
name: 'Sample',
},
hasChildren: true,
children: ['sample-child-1', 'sample-child-2', 'sample-child-3'],
},
'sample-child-1': {
id: 'sample-child-1',
data: {
name: 'Sample Child 1',
},
hasChildren: false,
children: [],
},
'sample-child-2': {
id: 'sample-child-2',
data: {
name: 'Sample Child 2',
},
hasChildren: true,
children: ['sample-child-4'],
},
'sample-child-3': {
id: 'sample-child-3',
data: {
name: 'Sample Child 3',
},
hasChildren: false,
children: [],
},
'sample-child-4': {
id: 'sample-child-4',
data: {
name: 'Sample Child 4',
},
hasChildren: false,
children: [],
},
};
render() {
return (
<Host>
<ix-tree model={this.model} root="root"></ix-tree>
</Host>
);
return <Host></Host>;
}
}

0 comments on commit 9032992

Please sign in to comment.