-
Notifications
You must be signed in to change notification settings - Fork 1
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
Eagle 1375 #805
Eagle 1375 #805
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -371,9 +371,9 @@ export class FileInfo { | |
getText = () : string => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe rename to getHtml() here too |
||
if (this.repositoryName !== ""){ | ||
if (this.path === ""){ | ||
return this.repositoryService + ": " + this.repositoryName + " (" + this.repositoryBranch + "): " + this.name; | ||
return "<strong>" + this.repositoryService + "</strong>: " + this.repositoryName + " (" + this.repositoryBranch + "): " + this.name; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚨 issue (security): Consider using a safe HTML encoding method for repository information Direct string concatenation with HTML tags could lead to XSS vulnerabilities if any of the fields contain special characters. Consider using a sanitization function or template system. |
||
} else { | ||
return this.repositoryService + ": " + this.repositoryName + " (" + this.repositoryBranch + "): " + this.path + "/" + this.name; | ||
return "<strong>" + this.repositoryService + "</strong>: " + this.repositoryName + " (" + this.repositoryBranch + "): " + this.path + "/" + this.name; | ||
} | ||
} else { | ||
return this.name; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,17 +271,18 @@ <h4>Graph Info</h4> | |
<div class="headerButtons inspectorHeaderButtons" id="objectInspectorHeaderIconRow"> | ||
<div class="row"> | ||
<div class="col col-6"> | ||
<i class="material-icons interactive" data-bs-placement="right" data-bind="eagleTooltip: $root.logicalGraph().fileInfo().fullPath()" data-bs-toggle="tooltip" data-html="true">link</i> | ||
<i class="material-icons interactive clickable" data-bs-placement="right" data-bind="eagleTooltip: $root.logicalGraph().fileInfo().shortDescription, click: function(){Utils.showModelDataModal('Graph Info', $root.logicalGraph().fileInfo());}" data-bs-toggle="tooltip" data-html="true">sticky_note_2</i> | ||
<i class="material-icons interactive clickable" data-bs-placement="right" data-bind="eagleTooltip: $root.logicalGraph().fileInfo().detailedDescription, click: function(){Utils.showModelDataModal('Graph Info', $root.logicalGraph().fileInfo());}" data-bs-toggle="tooltip" data-html="true">menu_book</i> | ||
</div> | ||
<div class="col-6 col text-right"> | ||
<!-- ko if: $root.logicalGraph().fileInfo().repositoryService === Repository.Service.File --> | ||
<i class="material-icons interactive" data-bs-placement="right" data-bind="eagleTooltip: 'This is a Local Graph File'" data-bs-toggle="tooltip" data-html="true">folder_open</i> | ||
<i class="material-icons interactive" data-bs-placement="right" data-bind="eagleTooltip: 'This is a Local Graph File'" data-bs-toggle="tooltip" data-html="true">folder_open</i> | ||
<!-- /ko --> | ||
<!-- ko if: $root.logicalGraph().fileInfo().repositoryService === Repository.Service.GitHub || $root.logicalGraph().fileInfo().repositoryService === Repository.Service.GitLab --> | ||
<i class="material-icons interactive" data-bs-placement="right" data-bind="eagleTooltip: 'This is a Graph File from GitHub or GitLab'" data-bs-toggle="tooltip" data-html="true">account_tree</i> | ||
<!-- /ko --> | ||
<i class="material-icons interactive" data-bs-placement="right" data-bind="eagleTooltip: $root.logicalGraph().fileInfo().fullPath()" data-bs-toggle="tooltip" data-html="true">link</i> | ||
<i class="material-icons interactive clickable" data-bs-placement="right" data-bind="eagleTooltip: $root.logicalGraph().fileInfo().shortDescription, click: function(){Utils.showModelDataModal('Graph Info', $root.logicalGraph().fileInfo());}" data-bs-toggle="tooltip" data-html="true">sticky_note_2</i> | ||
<i class="material-icons interactive clickable" data-bs-placement="right" data-bind="eagleTooltip: $root.logicalGraph().fileInfo().detailedDescription, click: function(){Utils.showModelDataModal('Graph Info', $root.logicalGraph().fileInfo());}" data-bs-toggle="tooltip" data-html="true">menu_book</i> | ||
</div> | ||
<div class="col-6 col text-right"> | ||
<i class="material-icons interactive clickable" data-bs-placement="right" data-bind="eagleTooltip: 'View graph configurations table', click: GraphConfigurationsTable.openTable" data-bs-toggle="tooltip" data-html="true">dns</i> | ||
</div> | ||
</div> | ||
</div> | ||
|
@@ -310,6 +311,22 @@ <h5>Modified Author: </h5> | |
<span data-bind="text:$root.logicalGraph().fileInfo().lastModifiedName, eagleTooltip:$root.logicalGraph().fileInfo().lastModifiedName"></span> | ||
</div> | ||
</div> | ||
<div class="row inspectorEdgeSrcNodeId contentObject"> | ||
<div class="col-6 col contentObjectTitle"> | ||
<h5>Active Config: </h5> | ||
</div> | ||
<div class="col-6 col contentObjectValue"> | ||
<span data-bind="text:$root.logicalGraph().getActiveGraphConfig()?.getName(), eagleTooltip:$root.logicalGraph().getActiveGraphConfig()?.getDescription()"></span> | ||
</div> | ||
</div> | ||
<div class="row inspectorEdgeSrcNodeId contentObject"> | ||
<div class="col-6 col contentObjectTitle"> | ||
<h5>Config Length: </h5> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe "Config Fields:" instead of length? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yea maybe, i wasnt quite sure what to call it without making it too long |
||
</div> | ||
<div class="col-6 col contentObjectValue"> | ||
<span data-bind="text:$root.logicalGraph().getActiveGraphConfig()?.numFields(), eagleTooltip:'Number of fields overwritten by the active config.'"></span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- /ko --> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we name this 'activeConfigHtml' to indicate that it returns html