Ahmedramadan24 commited on
Commit
5efe7ef
·
verified ·
1 Parent(s): 6bc699f

Add src/SilkroadBot.UI/Views/LogsPage.xaml

Browse files
src/SilkroadBot.UI/Views/LogsPage.xaml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <Page x:Class="SilkroadBot.UI.Views.LogsPage"
2
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+ Background="{StaticResource PrimaryBrush}">
5
+ <DockPanel Margin="24">
6
+ <DockPanel DockPanel.Dock="Top" Margin="0,0,0,16">
7
+ <TextBlock Text="Live Logs" FontSize="24" FontWeight="Bold" Foreground="{StaticResource TextBrush}" DockPanel.Dock="Left"/>
8
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
9
+ <ComboBox x:Name="LogLevelFilter" Width="120" Margin="0,0,8,0">
10
+ <ComboBoxItem Content="All" IsSelected="True"/>
11
+ <ComboBoxItem Content="Debug"/>
12
+ <ComboBoxItem Content="Info"/>
13
+ <ComboBoxItem Content="Warning"/>
14
+ <ComboBoxItem Content="Error"/>
15
+ </ComboBox>
16
+ <Button Content="Clear" Style="{StaticResource PrimaryButton}" Margin="0,0,8,0" Click="ClearLogs_Click"/>
17
+ <Button Content="Export" Style="{StaticResource PrimaryButton}" Click="ExportLogs_Click"/>
18
+ </StackPanel>
19
+ </DockPanel>
20
+ <Border Background="{StaticResource SecondaryBrush}" CornerRadius="8" Padding="12">
21
+ <ListBox x:Name="LogsList" Background="Transparent" BorderThickness="0"
22
+ Foreground="{StaticResource TextBrush}" FontFamily="Consolas" FontSize="11">
23
+ <ListBoxItem Content="[INF] 22:50:01 | System | SilkroadBot framework initialized"/>
24
+ <ListBoxItem Content="[INF] 22:50:01 | Plugins | Plugin system ready - scanning for DLLs"/>
25
+ <ListBoxItem Content="[INF] 22:50:01 | Profiles | Profile manager loaded"/>
26
+ <ListBoxItem Content="[DBG] 22:50:01 | Core | Event dispatcher online"/>
27
+ <ListBoxItem Content="[INF] 22:50:01 | System | All systems nominal. Awaiting commands."/>
28
+ </ListBox>
29
+ </Border>
30
+ </DockPanel>
31
+ </Page>