Skip to content

Commit 9055656

Browse files
committed
feat: minor test tool v2 UI update
1 parent 8b90fa5 commit 9055656

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+59628
-150
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" data-bs-theme="dark">
33

44
<head>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<base href="/" />
8-
<link rel="stylesheet" href="bootstrap/bootstrap.min.css" />
8+
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
99
<link rel="stylesheet" href="app.css" />
1010
<link rel="stylesheet" href="Amazon.Lambda.TestTool.styles.css" />
1111
<link rel="icon" type="image/ico" href="favicon.ico" />
@@ -15,6 +15,7 @@
1515
<body>
1616
<Routes @rendermode="InteractiveServer" />
1717
<script src="_framework/blazor.web.js"></script>
18+
<script src="bootstrap/js/bootstrap.bundle.min.js"></script>
1819
</body>
1920

2021
</html>

Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/Components/Layout/MainLayout.razor

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,39 @@
11
@using Amazon.Lambda.TestTool.Utilities
22
@inherits LayoutComponentBase
33

4-
<div class="page">
5-
<div class="sidebar">
6-
<NavMenu />
4+
<nav class="navbar navbar-expand-lg bd-navbar sticky-top bg-body-tertiary">
5+
<div class="container-fluid">
6+
<a class="navbar-brand py-0 me-4 d-flex align-items-center gap-3" href="/">
7+
<img src="aws.svg" width="42" height="42" class="d-inline-block align-text-top"/>
8+
Lambda Test Tool
9+
</a>
10+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
11+
<span class="navbar-toggler-icon"></span>
12+
</button>
13+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
14+
<ul class="navbar-nav nav-underline me-auto mb-2 mb-lg-0">
15+
<li class="nav-item">
16+
<NavLink class="nav-link d-flex align-items-center gap-1" href="/" Match="NavLinkMatch.All">
17+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" class="bi bi-house-fill" viewBox="0 0 16 16">
18+
<path d="M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L8 2.207l6.646 6.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293z"/>
19+
<path d="m8 3.293 6 6V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5V9.293z"/>
20+
</svg>
21+
Function Tester
22+
</NavLink>
23+
</li>
24+
<li class="nav-item">
25+
<NavLink class="nav-link d-flex align-items-center gap-1" href="/documentation">
26+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" class="bi bi-file-text-fill" viewBox="0 0 16 16">
27+
<path d="M12 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2M5 4h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1m-.5 2.5A.5.5 0 0 1 5 6h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5M5 8h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1m0 2h3a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1"/>
28+
</svg>
29+
Documentation
30+
</NavLink>
31+
</li>
32+
</ul>
33+
</div>
734
</div>
8-
35+
</nav>
36+
<div class="page">
937
<main>
1038
<article class="content px-4">
1139
@Body
@@ -22,4 +50,4 @@
2250
An unhandled error has occurred.
2351
<a href="" class="reload">Reload</a>
2452
<a class="dismiss">🗙</a>
25-
</div>
53+
</div>

Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/Components/Layout/NavMenu.razor

Lines changed: 0 additions & 26 deletions
This file was deleted.

Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/Components/Layout/NavMenu.razor.css

Lines changed: 0 additions & 105 deletions
This file was deleted.

Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/Components/Pages/Home.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
@inject IRuntimeApiDataStore RuntimeApiModel
1313
@inject IDirectoryManager DirectoryManager
1414

15-
<PageTitle>Lambd Function Tester</PageTitle>
15+
<PageTitle>Lambda Function Tester</PageTitle>
1616

17-
<h2>Lambd Function Tester</h2>
17+
<h3>Lambda Function Tester</h3>
1818

19-
<p>
19+
<div class="alert alert-secondary" role="alert">
2020
For Lambda functions written as executable assemblies, i.e. custom runtimes functions and top level statement functions, this page can be used for testing the functions locally.
2121
Set the <b>AWS_LAMBDA_RUNTIME_API</b> environment variable to <b>@HttpContextAccessor?.HttpContext?.Request?.Host</b> while debugging executable assembly
2222
Lambda function. More information can be found in the <a href="/documentation">documentation</a>.
23-
</p>
23+
</div>
2424

2525
<div class="row">
2626
<div class="col-sm-6">

Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/wwwroot/bootstrap/bootstrap.min.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/wwwroot/bootstrap/bootstrap.min.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)