Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
deribaucourt committed Feb 6, 2025
1 parent 10f3946 commit f7053eb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/src/ui/DependsDotView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class DependsDotViewProvider implements vscode.WebviewViewProvider {
private openRecipe(recipeName: string) {
recipeName = recipeName.replace(/\r/g, '');
let recipeFound = false;
this.bitbakeProjectScanner.scanResult._recipes.forEach((recipe: ElementInfo) => {
this.bitbakeProjectScanner.activeScanResult._recipes.forEach((recipe: ElementInfo) => {
// TODO fix resolving -native recipes (put that logic in a utility function) (could be shared with BitbakeRecipesView.getChildren)
// TODO fix resolving some packages like xz or busybox (only when in the bottom row?)
if (recipe.name === recipeName) {
Expand Down
6 changes: 6 additions & 0 deletions client/web/depends-dot/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ body {
background: var(--vscode-list-hoverBackground);
cursor: pointer;
}

.inputHorizontal {
display: flex;
flex-direction: row; /* Arrange items horizontally */
padding: 0;
}
17 changes: 11 additions & 6 deletions client/web/depends-dot/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@ <h3>Select an image <b>Recipe</b> to analyze:</h3>

<div>
<h3>You want to know:</h3>
<ul id="depType">
<li><input type="radio" name="dependencyType" value="why" checked><h3><b>Why</b> a package is included</h3></li>
<li><input type="radio" name="dependencyType" value="depends"><h3>What it <b>Depends</b> on</h3></li>
</ul>
<div class="inputHorizontal"></div>
<input type="radio" id="why" name="dependencyType" value="why" checked>
<label for="why"><h3><b>Why</b> a package is included</h3></label>
</div>
<div class="horizontal">
<input type="radio" id="depends" name="dependencyType" value="depends">
<label for="depends"><h3>What it <b>Depends</b> on</h3></label>
</div>
</div>

<div>
Expand All @@ -57,9 +61,10 @@ <h3>Select which <b>Package</b> you want to examine:</h3>
</div>

<div>
<hr>
<h3>Results:</h3>
</div>
<div id="results">
<div id="results">
</div>
</div>

<script nonce="<%= nonce %>" src="<%= scriptUri %>"></script>
Expand Down
2 changes: 2 additions & 0 deletions client/web/depends-dot/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ h5,
h6,
p,
ol,
input,
label,
ul {
margin: 0;
padding: 0;
Expand Down

0 comments on commit f7053eb

Please sign in to comment.