mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-13 06:30:43 +00:00
style: refine layout and improve visual design
This commit is contained in:
parent
49c0acbdd1
commit
c5a6142b15
@ -4762,9 +4762,6 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T2260642992"] =
|
|||||||
-- Attempt to change the AI's role
|
-- Attempt to change the AI's role
|
||||||
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T2340508370"] = "Attempt to change the AI's role"
|
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T2340508370"] = "Attempt to change the AI's role"
|
||||||
|
|
||||||
-- AI Studio blocked this content before it reached a model or agent.
|
|
||||||
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T2378027194"] = "AI Studio blocked this content before it reached a model or agent."
|
|
||||||
|
|
||||||
-- Hidden instructions using markup
|
-- Hidden instructions using markup
|
||||||
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T2526538070"] = "Hidden instructions using markup"
|
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T2526538070"] = "Hidden instructions using markup"
|
||||||
|
|
||||||
@ -4798,9 +4795,6 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T3788064862"] =
|
|||||||
-- Persistent or delayed instruction
|
-- Persistent or delayed instruction
|
||||||
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T4169123215"] = "Persistent or delayed instruction"
|
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T4169123215"] = "Persistent or delayed instruction"
|
||||||
|
|
||||||
-- Security active
|
|
||||||
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T4212328947"] = "Security active"
|
|
||||||
|
|
||||||
-- Typical attacks on AI systems (e.g. prompt injection) hide instructions within untrusted content to trick an AI model into ignoring its intended rules or performing unintended actions.
|
-- Typical attacks on AI systems (e.g. prompt injection) hide instructions within untrusted content to trick an AI model into ignoring its intended rules or performing unintended actions.
|
||||||
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T4221674400"] = "Typical attacks on AI systems (e.g. prompt injection) hide instructions within untrusted content to trick an AI model into ignoring its intended rules or performing unintended actions."
|
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::PROMPTINJECTIONALERTDIALOG::T4221674400"] = "Typical attacks on AI systems (e.g. prompt injection) hide instructions within untrusted content to trick an AI model into ignoring its intended rules or performing unintended actions."
|
||||||
|
|
||||||
|
|||||||
@ -7,56 +7,34 @@
|
|||||||
|
|
||||||
@if (Result is not null)
|
@if (Result is not null)
|
||||||
{
|
{
|
||||||
<MudPaper Class="pa-6 mb-4" Elevation="0" Style="background:#fff5f5;border:1px solid #f5d0d0;">
|
<MudPaper Class="pa-6 mb-4" Elevation="0" Style="background:#fff3e0; border:1px solid #ffcc80;">
|
||||||
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="3">
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="3">
|
||||||
<MudAvatar Size="Size.Large"
|
<MudAvatar Size="Size.Large"
|
||||||
Color="Color.Error"
|
Color="Color.Warning"
|
||||||
Variant="Variant.Filled">
|
Variant="Variant.Filled">
|
||||||
<MudIcon Icon="@Icons.Material.Filled.GppMaybe"/>
|
<MudIcon Icon="@Icons.Material.Filled.GppMaybe"/>
|
||||||
</MudAvatar>
|
</MudAvatar>
|
||||||
|
|
||||||
<MudStack Spacing="0">
|
<MudStack Spacing="0">
|
||||||
<MudText Typo="Typo.h5">
|
<MudJustifiedText Typo="Typo.h5">
|
||||||
@T("Security warning")
|
@T("Security warning")
|
||||||
</MudText>
|
</MudJustifiedText>
|
||||||
|
|
||||||
<MudText Typo="Typo.body2"
|
<MudJustifiedText Typo="Typo.body2">
|
||||||
Color="Color.Error">
|
@T("AI Studio has reliably detected and blocked the suspicious content. Your applications and data remain protected. Please review the content you uploaded.")
|
||||||
@T("AI Studio blocked this content before it reached a model or agent.")
|
</MudJustifiedText>
|
||||||
</MudText>
|
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
<MudAlert Severity="Severity.Info" Variant="Variant.Outlined" Class="mt-4">
|
<MudAlert Severity="Severity.Warning" Variant="Variant.Outlined" Class="mt-4" Style="border:1px solid #ffcc80;">
|
||||||
<Content>
|
<Content>
|
||||||
<MudText Typo="Typo.body2">
|
<MudJustifiedText Typo="Typo.body2" Color="Color.Dark">
|
||||||
@T("Typical attacks on AI systems (e.g. prompt injection) hide instructions within untrusted content to trick an AI model into ignoring its intended rules or performing unintended actions.")
|
@T("Typical attacks on AI systems (e.g. prompt injection) hide instructions within untrusted content to trick an AI model into ignoring its intended rules or performing unintended actions.")
|
||||||
</MudText>
|
</MudJustifiedText>
|
||||||
</Content>
|
</Content>
|
||||||
</MudAlert>
|
</MudAlert>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
|
|
||||||
<MudPaper Class="pa-6 mb-4" Elevation="0" Style="background:#f0fff0;border:1px solid #90ee90;">
|
|
||||||
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="3">
|
|
||||||
<MudAvatar Size="Size.Large"
|
|
||||||
Color="Color.Success"
|
|
||||||
Variant="Variant.Filled">
|
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Check"/>
|
|
||||||
</MudAvatar>
|
|
||||||
|
|
||||||
<MudStack Spacing="0">
|
|
||||||
<MudText Typo="Typo.h5">
|
|
||||||
@T("Security active")
|
|
||||||
</MudText>
|
|
||||||
|
|
||||||
<MudText Typo="Typo.body2"
|
|
||||||
Color="Color.Success">
|
|
||||||
@T("AI Studio has reliably detected and blocked the suspicious content. Your applications and data remain protected. Please review the content you uploaded.")
|
|
||||||
</MudText>
|
|
||||||
</MudStack>
|
|
||||||
</MudStack>
|
|
||||||
</MudPaper>
|
|
||||||
|
|
||||||
<MudDivider />
|
<MudDivider />
|
||||||
<MudStack Row="true" Justify="Justify.Center" Class="my-2">
|
<MudStack Row="true" Justify="Justify.Center" Class="my-2">
|
||||||
<MudButton Variant="Variant.Text"
|
<MudButton Variant="Variant.Text"
|
||||||
@ -77,13 +55,13 @@
|
|||||||
<MudStack>
|
<MudStack>
|
||||||
<MudIcon Icon="@Icons.Material.Filled.Source" />
|
<MudIcon Icon="@Icons.Material.Filled.Source" />
|
||||||
|
|
||||||
<MudText Typo="Typo.subtitle2">
|
<MudJustifiedText Typo="Typo.subtitle2">
|
||||||
@T("Source type")
|
@T("Source type")
|
||||||
</MudText>
|
</MudJustifiedText>
|
||||||
|
|
||||||
<MudText Typo="Typo.body2">
|
<MudJustifiedText Typo="Typo.body2">
|
||||||
@this.GetSourceKindLabel(Result.Source.Kind)
|
@this.GetSourceKindLabel(Result.Source.Kind)
|
||||||
</MudText>
|
</MudJustifiedText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
|
|
||||||
@ -91,14 +69,14 @@
|
|||||||
<MudStack>
|
<MudStack>
|
||||||
<MudIcon Icon="@Icons.Material.Outlined.Description"/>
|
<MudIcon Icon="@Icons.Material.Outlined.Description"/>
|
||||||
|
|
||||||
<MudText Typo="Typo.subtitle2">
|
<MudJustifiedText Typo="Typo.subtitle2">
|
||||||
@T("Content source")
|
@T("Content source")
|
||||||
</MudText>
|
</MudJustifiedText>
|
||||||
|
|
||||||
<MudText Typo="Typo.body2"
|
<MudJustifiedText Typo="Typo.body2"
|
||||||
Style="word-break:break-all;">
|
Style="word-break:break-all;">
|
||||||
@Result.Source.Label
|
@Result.Source.Label
|
||||||
</MudText>
|
</MudJustifiedText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
|
|
||||||
@ -106,22 +84,22 @@
|
|||||||
<MudStack>
|
<MudStack>
|
||||||
<MudIcon Icon="@Icons.Material.Outlined.WarningAmber"/>
|
<MudIcon Icon="@Icons.Material.Outlined.WarningAmber"/>
|
||||||
|
|
||||||
<MudText Typo="Typo.subtitle2">
|
<MudJustifiedText Typo="Typo.subtitle2">
|
||||||
@T("Detected content")
|
@T("Detected content")
|
||||||
</MudText>
|
</MudJustifiedText>
|
||||||
|
|
||||||
@foreach (var finding in Result.Findings)
|
@foreach (var finding in Result.Findings)
|
||||||
{
|
{
|
||||||
<MudStack Spacing="0">
|
<MudStack Spacing="0">
|
||||||
<MudText Typo="Typo.body2">
|
<MudJustifiedText Typo="Typo.body2">
|
||||||
<b>
|
<b>
|
||||||
@($"{this.GetFindingCategoryLabel(finding.Category)}")
|
@($"{this.GetFindingCategoryLabel(finding.Category)}")
|
||||||
</b>
|
</b>
|
||||||
</MudText>
|
</MudJustifiedText>
|
||||||
|
|
||||||
<MudText Typo="Typo.body2" Class="ml-4 mt-1">
|
<MudJustifiedText Typo="Typo.body2" Class="ml-4 mt-1">
|
||||||
@finding.Snippet
|
@finding.Snippet
|
||||||
</MudText>
|
</MudJustifiedText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
}
|
}
|
||||||
</MudStack>
|
</MudStack>
|
||||||
@ -132,9 +110,9 @@
|
|||||||
<MudPaper Class="pa-4 mt-2"
|
<MudPaper Class="pa-4 mt-2"
|
||||||
Style="background:#fafafa;">
|
Style="background:#fafafa;">
|
||||||
|
|
||||||
<MudText Typo="Typo.body2" Class="mb-3">
|
<MudJustifiedText Typo="Typo.body2" Class="mb-3">
|
||||||
@T("Prompt injection is a method used to manipulate AI systems such as chatbots. An attacker places misleading instructions in content so that the AI treats them as legitimate. This can cause the AI to ignore safeguards, expose private information, or generate harmful content.")
|
@T("Prompt injection is a method used to manipulate AI systems such as chatbots. An attacker places misleading instructions in content so that the AI treats them as legitimate. This can cause the AI to ignore safeguards, expose private information, or generate harmful content.")
|
||||||
</MudText>
|
</MudJustifiedText>
|
||||||
|
|
||||||
<MudLink Href="@PromptInjectionGuardService.WIKI_URL"
|
<MudLink Href="@PromptInjectionGuardService.WIKI_URL"
|
||||||
Target="_blank">
|
Target="_blank">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user