-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Things Explorer - Initial contribution (#49)
Added icons and quick reference to thing's binding docs Show Thing in Paper UI - WIP Generating Items from Things channels and more! Things Explorer is completed! Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
- Loading branch information
1 parent
b9b9868
commit a59a957
Showing
24 changed files
with
563 additions
and
55 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { IChannel } from './IChannel' | ||
import * as _ from 'lodash' | ||
|
||
export class Channel { | ||
|
||
constructor(private channel: IChannel) { | ||
} | ||
|
||
public get treeItemType(): string { | ||
return 'channel'; | ||
} | ||
|
||
public get label(): string { | ||
return this.channel.label ? this.channel.label : this.id; | ||
} | ||
|
||
public get id(): string { | ||
return this.channel.id; | ||
} | ||
|
||
public get itemType(): string { | ||
return this.channel.itemType; | ||
} | ||
|
||
public get uid(): string { | ||
return this.channel.uid; | ||
} | ||
|
||
public get kind(): string { | ||
return this.channel.kind; | ||
} | ||
|
||
public get binding(): string { | ||
return this.uid.split(':')[0]; | ||
} | ||
|
||
public get linkedItems(): string[] { | ||
return this.channel.linkedItems; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export interface IChannel { | ||
|
||
linkedItems?: any[]; | ||
|
||
uid?: string; | ||
|
||
id?: string; | ||
|
||
channelTypeUID?: string; | ||
|
||
itemType?: string; | ||
|
||
kind?: string; | ||
|
||
label?: string; | ||
|
||
description?: string; | ||
|
||
defaultTags?: string[]; | ||
|
||
properties?: object; | ||
|
||
configuration?: object; | ||
|
||
} |
Oops, something went wrong.