Skip to content

feat: minor test tool v2 UI update #1913

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

Merged
merged 1 commit into from
Dec 20, 2024
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
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-bs-theme="dark">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
<link rel="stylesheet" href="bootstrap/bootstrap.min.css" />
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="app.css" />
<link rel="stylesheet" href="Amazon.Lambda.TestTool.styles.css" />
<link rel="icon" type="image/ico" href="favicon.ico" />
Expand All @@ -15,6 +15,7 @@
<body>
<Routes @rendermode="InteractiveServer" />
<script src="_framework/blazor.web.js"></script>
<script src="bootstrap/js/bootstrap.bundle.min.js"></script>
</body>

</html>
Original file line number Diff line number Diff line change
@@ -1,11 +1,39 @@
@using Amazon.Lambda.TestTool.Utilities
@inherits LayoutComponentBase

<div class="page">
<div class="sidebar">
<NavMenu />
<nav class="navbar navbar-expand-lg bd-navbar sticky-top bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand py-0 me-4 d-flex align-items-center gap-3" href="/">
<img src="aws.svg" width="42" height="42" class="d-inline-block align-text-top"/>
Lambda Test Tool
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav nav-underline me-auto mb-2 mb-lg-0">
<li class="nav-item">
<NavLink class="nav-link d-flex align-items-center gap-1" href="/" Match="NavLinkMatch.All">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" class="bi bi-house-fill" viewBox="0 0 16 16">
<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"/>
<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"/>
</svg>
Function Tester
</NavLink>
</li>
<li class="nav-item">
<NavLink class="nav-link d-flex align-items-center gap-1" href="/documentation">
<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">
<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"/>
</svg>
Documentation
</NavLink>
</li>
</ul>
</div>
</div>

</nav>
<div class="page">
<main>
<article class="content px-4">
@Body
Expand All @@ -22,4 +50,4 @@
An unhandled error has occurred.
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>
</div>

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
@inject IRuntimeApiDataStore RuntimeApiModel
@inject IDirectoryManager DirectoryManager

<PageTitle>Lambd Function Tester</PageTitle>
<PageTitle>Lambda Function Tester</PageTitle>

<h2>Lambd Function Tester</h2>
<h3>Lambda Function Tester</h3>

<p>
<div class="alert alert-secondary" role="alert">
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.
Set the <b>AWS_LAMBDA_RUNTIME_API</b> environment variable to <b>@HttpContextAccessor?.HttpContext?.Request?.Host</b> while debugging executable assembly
Lambda function. More information can be found in the <a href="/documentation">documentation</a>.
</p>
</div>

<div class="row">
<div class="col-sm-6">
Expand Down

This file was deleted.

This file was deleted.

Loading
Loading