Skip to content

Commit

Permalink
Added Samson.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnstee committed Nov 13, 2023
1 parent 431871f commit a74dc88
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Controllers/DashboardController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ public IActionResult Display()
Environment.SetEnvironmentVariable("TOPIC", "inray/#");
break;
}

if (key.Contains("Samson"))
{
Environment.SetEnvironmentVariable("TOPIC", "samson/#");
break;
}
}

_subscriber.Stop();
Expand Down
3 changes: 3 additions & 0 deletions UACloudDashboard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@
<Content Update="wwwroot\inray.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Update="wwwroot\samson.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>
10 changes: 8 additions & 2 deletions Views/Dashboard/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</tr>
<tr>
<td style="width:300px;height:100px">
<img src="~/trumpf.jpg" width="100" />
<img src="~/trumpf.jpg" width="120" />
<input type="submit" name="Trumpf" value="Display">
</td>
<td style="width:300px;height:100px">
Expand Down Expand Up @@ -120,7 +120,7 @@
</tr>
<tr>
<td style="width:300px;height:100px">
<img src="~/brand.png" width="100" />
<img src="~/brand.png" width="120" />
<input type="submit" name="Brand" value="Display">
</td>
<td style="width:300px;height:100px">
Expand Down Expand Up @@ -172,6 +172,12 @@
<input type="submit" name="Inray" value="Display">
</td>
</tr>
<tr>
<td style="width:300px;height:100px">
<img src="~/samson.png" width="120" />
<input type="submit" name="Samson" value="Display">
</td>
</tr>
</tbody>
</table>
</form>
Expand Down
Binary file added wwwroot/samson.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a74dc88

Please sign in to comment.