From 23f580f1180a85e7536deb45eb48c8db68bad7c8 Mon Sep 17 00:00:00 2001 From: Aan Date: Fri, 23 Apr 2021 15:00:09 +0700 Subject: [PATCH] Added Tooltip Helper info in every label for easy to understand --- CHANGELOG.md | 1 + .../Components/Launchers/LauncherForm.razor | 38 ++++++++- .../Listeners/BridgeListenerForm.razor | 25 ++++++ .../Listeners/HttpListenerForm.razor | 38 +++++++++ Covenant/wwwroot/css/covenant.css | 78 ++++++++++++++++++- 5 files changed, 178 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a354433..fb777585 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added GetLauncherDownload API endpoint - Added Grunt FileBrowser - Added back missing GetNetShares task +- Added Tooltip Helper info in every label for easy to understand ### Changed - Disallow Administrators from changing other user's passwords diff --git a/Covenant/Components/Launchers/LauncherForm.razor b/Covenant/Components/Launchers/LauncherForm.razor index 374aeb4a..dfe11e78 100644 --- a/Covenant/Components/Launchers/LauncherForm.razor +++ b/Covenant/Components/Launchers/LauncherForm.razor @@ -35,6 +35,11 @@
+ +
+ The ImplantTemplate is the type of implant that the launcher will generate. +
+
@foreach (string n in GetApplicableDotNetVersions()) { @@ -137,6 +148,11 @@ { @@ -144,16 +160,31 @@
@@ -161,6 +192,11 @@
diff --git a/Covenant/Components/Listeners/BridgeListenerForm.razor b/Covenant/Components/Listeners/BridgeListenerForm.razor index b01cebf5..4d76130e 100644 --- a/Covenant/Components/Listeners/BridgeListenerForm.razor +++ b/Covenant/Components/Listeners/BridgeListenerForm.razor @@ -15,11 +15,21 @@
@@ -27,6 +37,11 @@
@@ -34,12 +49,22 @@
+ +
+ The BridgeProfile determines the behavior of Grunt and Listener communication. +
+
@@ -30,6 +43,11 @@
@@ -37,9 +55,19 @@ @for (int i = 0; i < Listener.ConnectAddresses.Count; i++) @@ -74,6 +102,11 @@
+ +
+ The UseSSL value determines if the listener should use the HTTPS or HTTP protocol. If UseSSL value is true, an SSLCertificate needs to be provided. +
+
@foreach (var Profile in Profiles) { diff --git a/Covenant/wwwroot/css/covenant.css b/Covenant/wwwroot/css/covenant.css index 9959197c..8df7d5fe 100644 --- a/Covenant/wwwroot/css/covenant.css +++ b/Covenant/wwwroot/css/covenant.css @@ -296,4 +296,80 @@ main { .dropdown-menu > a:hover { background-color: rgba(0,0,0,0.1); -} \ No newline at end of file +} + + +a.tooltips-info { + position: relative; + display: inline; +} + +a.tooltips-info:before +{ + content: '?'; + display: inline-block; + font-family: sans-serif; + font-weight: bold; + text-align: center; + width: 2.1ex; + height: 2.1ex; + font-size: 1.7ex; + line-height: 1.8ex; + border-radius: 1.2ex; + margin-right: 4px; + padding: 1px; + color: black; + background: white; + border: 1px solid black; + text-decoration: none; +} + +a.tooltips-info:hover:before +{ + color: white; + background: black; + border-color: white; + text-decoration: none; +} + +a.tooltips-info .tooltiptext { + opacity: 0; + bottom: 30px; + left: 50%; + margin-left: -76px; + position: absolute; + color: #FFFFFF; + background: #000000; + line-height: 30px; + text-align: justify; + visibility: hidden; + border-radius: 6px; + box-shadow: 0px 0px 0px #800000; + max-height: 300px; + max-width: 1000px; + min-height: 50px; + min-width: 600px; + display: block; + padding: 6px; +} +a.tooltips-info .tooltiptext:after { + content: ''; + position: absolute; + top: 100%; + left: 50%; + margin-left: -8px; + width: 0; height: 0; + /* + border-top: 8px solid #000000; + border-right: 8px solid transparent; + border-left: 8px solid transparent; + */ +} +a:hover.tooltips-info .tooltiptext { + visibility: visible; + opacity: 0.8; + bottom: 30px; + left: 50%; + margin-left: -76px; + z-index: 999; +}