Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new icon in tree view resource #191

Merged
merged 3 commits into from
Mar 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ Development of the Tekton Pipelines Extension is largely following development o

#### Icons Representation

<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/pipe.png" width="15" height="15" /><span style="margin: 20px">Pipeline Node</span></div>
<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/task.png" width="15" height="15" /><span style="margin: 20px">Task Node</span></div>
<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/clustertask.png" width="15" height="15" /><span style="margin: 20px">ClusterTask Node</span></div>
<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/pipe.png" width="15" height="15" /><span style="margin: 20px">PipelineResource Node</span></div>
<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/PL.svg" width="15" height="15" /><span style="margin: 20px">Pipeline Node</span></div>
<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/T.svg" width="15" height="15" /><span style="margin: 20px">Task Node</span></div>
<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/CT.svg" width="15" height="15" /><span style="margin: 20px">ClusterTask Node</span></div>
<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/PLR.svg" width="15" height="15" /><span style="margin: 20px">PipelineResource Node</span></div>
<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/running.gif" width="15" height="15" /><span style="margin: 20px">PipelineRun/TaskRun Running</span></div>
<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/success.png" width="15" height="15" /><span style="margin: 20px">PipelineRun/TaskRun Successful Run</span></div>
<div><img src="https://raw.githubusercontent.com/redhat-developer/vscode-tekton/master/images/failed.png" width="15" height="15" /><span style="margin: 20px">PipelineRun/TaskRun Failed Run</span></div>
Expand Down
1 change: 1 addition & 0 deletions images/C.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/CT.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/CTB.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/EL.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/PL.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/PLR.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/T.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/TB.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/TT.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/clustertask.png
Binary file not shown.
Binary file removed images/pipe.png
Binary file not shown.
Binary file removed images/task.png
Binary file not shown.
4 changes: 2 additions & 2 deletions src/pipeline/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ export class PipelinePreview extends Disposable {

private getImagesUri(): { [key: string]: string } {
const result: { [key: string]: string } = Object.create(null);
result['task'] = this.editor.webview.asWebviewUri(vscode.Uri.file(path.join(contextGlobalState.extensionPath, 'images', 'task.png'))).toString();
result['clustertask'] = this.editor.webview.asWebviewUri(vscode.Uri.file(path.join(contextGlobalState.extensionPath, 'images', 'clustertask.png'))).toString();
result['task'] = this.editor.webview.asWebviewUri(vscode.Uri.file(path.join(contextGlobalState.extensionPath, 'images', 'T.svg'))).toString();
result['clustertask'] = this.editor.webview.asWebviewUri(vscode.Uri.file(path.join(contextGlobalState.extensionPath, 'images', 'CT.svg'))).toString();
return result;
}

Expand Down
22 changes: 11 additions & 11 deletions src/tkn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,32 +263,32 @@ export class Command {
export class TektonNodeImpl implements TektonNode {
private readonly CONTEXT_DATA = {
pipelinenode: {
icon: 'pipe.png',
icon: 'PL.svg',
tooltip: 'Pipelines: {label}',
getChildren: () => this.tkn.getPipelines(this)
},
pipelineresourcenode: {
icon: 'pipe.png',
icon: 'PLR.svg',
tooltip: 'PipelineResources: {label}',
getChildren: () => this.tkn.getPipelineResources(this)
},
pipelineresource: {
icon: 'pipe.png',
icon: 'PLR.svg',
tooltip: 'PipelineResources: {label}',
getChildren: () => []
},
tasknode: {
icon: 'task.png',
icon: 'T.svg',
tooltip: 'Tasks: {label}',
getChildren: () => this.tkn.getTasks(this)
},
clustertasknode: {
icon: 'clustertask.png',
icon: 'CT.svg',
tooltip: 'ClusterTasks: {label}',
getChildren: () => this.tkn.getClusterTasks(this)
},
pipeline: {
icon: 'pipe.png',
icon: 'PL.svg',
tooltip: 'Pipeline: {label}',
getChildren: () => this.tkn.getPipelineRuns(this)
},
Expand All @@ -298,7 +298,7 @@ export class TektonNodeImpl implements TektonNode {
getChildren: () => this.tkn.getTaskRuns(this)
},
task: {
icon: 'task.png',
icon: 'T.svg',
tooltip: 'Task: {label}',
getChildren: () => this.tkn.getTaskRunsforTasks(this)
},
Expand All @@ -308,7 +308,7 @@ export class TektonNodeImpl implements TektonNode {
getChildren: () => []
},
clustertask: {
icon: 'clustertask.png',
icon: 'CT.svg',
tooltip: 'Clustertask: {label}',
getChildren: () => this.tkn.getTaskRunsforTasks(this)
},
Expand All @@ -318,17 +318,17 @@ export class TektonNodeImpl implements TektonNode {
getChildren: () => []
},
triggertemplates: {
icon: 'pipe.png',
icon: 'TT.svg',
tooltip: 'TriggerTemplates: {label}',
getChildren: () => this.tkn.getTriggerTemplates(this)
},
triggerbinding: {
icon: 'pipe.png',
icon: 'TB.svg',
tooltip: 'TriggerBinding: {label}',
getChildren: () => this.tkn.getTriggerBinding(this)
},
eventlistener: {
icon: 'pipe.png',
icon: 'EL.svg',
tooltip: 'EventListener: {label}',
getChildren: () => this.tkn.getEventListener(this)
},
Expand Down