mirror of
https://github.com/adiguno/hello-nemesis.git
synced 2026-07-22 05:37:31 +00:00
update panel view name
This commit is contained in:
parent
5ca590fb7c
commit
8dd3678a06
1 changed files with 10 additions and 9 deletions
|
|
@ -10,7 +10,7 @@ export const VIEW_TYPE_EXAMPLE = "example-view";
|
|||
|
||||
export class ExampleView extends ItemView {
|
||||
root: Root | null = null;
|
||||
content: string = '';
|
||||
content: string = "";
|
||||
contents: string[] = [];
|
||||
|
||||
constructor(leaf: WorkspaceLeaf) {
|
||||
|
|
@ -22,7 +22,7 @@ export class ExampleView extends ItemView {
|
|||
}
|
||||
|
||||
getDisplayText() {
|
||||
return "Example view";
|
||||
return "Nemesis Panel";
|
||||
}
|
||||
|
||||
async onOpen() {
|
||||
|
|
@ -34,9 +34,10 @@ export class ExampleView extends ItemView {
|
|||
// this.root.render(<ExampleReactView />);
|
||||
this.root.render(
|
||||
React.createElement(NemesisRightReactView, {
|
||||
contents: this.contents
|
||||
contents: this.contents,
|
||||
})
|
||||
); }
|
||||
);
|
||||
}
|
||||
|
||||
async onClose() {
|
||||
// Nothing to clean up.
|
||||
|
|
@ -45,13 +46,13 @@ export class ExampleView extends ItemView {
|
|||
|
||||
updateContent(content: string) {
|
||||
this.content = content;
|
||||
this.contents = this.content.split("<section-done>")
|
||||
this.contents = this.content.split("<section-done>");
|
||||
// console.log(this.content)
|
||||
// console.log(this.contents)
|
||||
if (!this.root) return null;
|
||||
this.root.render(
|
||||
React.createElement(NemesisRightReactView, {
|
||||
contents: this.contents
|
||||
contents: this.contents,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue