-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterface.xaml
72 lines (72 loc) · 6.81 KB
/
Interface.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<Window x:Class="WpfApp1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="Matrix-Synapse Admin GUI" Height="281.988" Width="491.17">
<Grid>
<TabControl RenderTransformOrigin="0.5,0.5">
<TabItem Header="User Management">
<Grid Background="#FFE5E5E5" Margin="0,0,0,-1">
<TextBox x:Name="usernamebox" HorizontalAlignment="Left" Height="23" Margin="10,39,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="188" Grid.ColumnSpan="2"/>
<Button Content="Get Info" HorizontalAlignment="Left" VerticalAlignment="Top" Width="94" Margin="10,84,0,0" Click="Button_Click" Height="20"/>
<Label Content="Username(@user:homeserver.com)" HorizontalAlignment="Left" Height="29" Margin="7,14,0,0" VerticalAlignment="Top" Width="206" Grid.ColumnSpan="2"/>
<Button Content="Deactivate" HorizontalAlignment="Left" VerticalAlignment="Top" Width="94" Margin="10,109,0,0" Click="Button_Click_1" Height="20"/>
<Button Content="Reset Password" HorizontalAlignment="Left" VerticalAlignment="Top" Width="94" Margin="10,134,0,0" Click="Button_Click_2" Height="20"/>
<RichTextBox x:Name="statusbox2" Margin="212,23,10,19" ScrollViewer.CanContentScroll="True" VerticalScrollBarVisibility="Visible">
<FlowDocument>
<Paragraph>
</Paragraph>
</FlowDocument>
</RichTextBox>
</Grid>
</TabItem>
<TabItem Header="Create User">
<Grid Background="#FFE5E5E5" Margin="0,0,0,-1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="434*"/>
<ColumnDefinition Width="43*"/>
</Grid.ColumnDefinitions>
<Button x:Name="create_button" Content="Create" HorizontalAlignment="Left" VerticalAlignment="Top" Width="79" Margin="119,169,0,0" Click="create_click" Height="23"/>
<TextBox x:Name="username_create" HorizontalAlignment="Left" Height="23" Margin="10,39,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="188" />
<Label Content="Username(example: Alice)" HorizontalAlignment="Left" Height="29" Margin="7,14,0,0" VerticalAlignment="Top" Width="206"/>
<PasswordBox x:Name="password_create" HorizontalAlignment="Left" Height="23" Margin="10,87,0,0" VerticalAlignment="Top" Width="188"/>
<Label Content="Password" HorizontalAlignment="Left" Height="29" Margin="7,62,0,0" VerticalAlignment="Top" Width="206"/>
<PasswordBox x:Name="secret_create" HorizontalAlignment="Left" Height="23" Margin="10,134,0,0" VerticalAlignment="Top" Width="188"/>
<Label Content="Server Shared Secret" HorizontalAlignment="Left" Height="29" Margin="7,109,0,0" VerticalAlignment="Top" Width="206"/>
<CheckBox x:Name="admin_check" Content="Make Admin" HorizontalAlignment="Left" Margin="10,174,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.211,-0.867" Width="94" Height="15"/>
<Label x:Name="statusboxcreate" Content="" HorizontalAlignment="Left" Margin="218,14,0,0" VerticalAlignment="Top" Grid.ColumnSpan="2" Width="234" Height="29"/>
</Grid>
</TabItem>
<TabItem Header="Rooms" Height="22" VerticalAlignment="Bottom">
<Grid Background="#FFE5E5E5" Margin="0,0,0,-1">
<Label Content="Public Rooms" HorizontalAlignment="Left" Margin="10,11,0,0" VerticalAlignment="Top" Width="107"/>
<TextBox x:Name="roomidbox" HorizontalAlignment="Left" Height="23" Margin="230,41,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="233"/>
<Label Content="Room ID(RMID:homeserver.com)" HorizontalAlignment="Left" Height="29" Margin="226,11,0,0" VerticalAlignment="Top" Width="196"/>
<Button x:Name="Purge_Room" Content="Purge Room" HorizontalAlignment="Left" Margin="230,69,0,0" VerticalAlignment="Top" Width="94" Click="Purge_Button"/>
<Button x:Name="Purge_Room_Copy" Content="Query Rooms" HorizontalAlignment="Left" Margin="122,13,0,0" VerticalAlignment="Top" Width="94" Click="Button_Click_3"/>
<ListBox x:Name="roomlist" HorizontalAlignment="Left" Height="167" VerticalAlignment="Top" Width="206" Margin="10,41,0,0" SelectionChanged="roomlist_SelectionChanged"/>
</Grid>
</TabItem>
<TabItem Header="Server Version">
<Grid Background="#FFE5E5E5" Margin="0,0,0,-1">
<Label Content="This Matrix Server Supports Version:" HorizontalAlignment="Left" Margin="129,90,0,0" VerticalAlignment="Top" FontWeight="Bold" Width="217"/>
<Image HorizontalAlignment="Left" Height="75" Margin="157,15,0,0" VerticalAlignment="Top" Width="161" Source="logo1.png"/>
<TextBlock x:Name="versionbox" HorizontalAlignment="Left" Margin="79,121,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="317" Height="81" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="True" UseLayoutRounding="False" TextAlignment="Center"/>
</Grid>
</TabItem>
<TabItem Header="Information">
<Grid Background="#FFE5E5E5" Margin="0,0,0,-1">
<Label Content="Copyright: Amin Husni" HorizontalAlignment="Left" Margin="168,105,0,0" VerticalAlignment="Top" FontWeight="Bold" Width="140"/>
<Label Content="GNU General Public License v3.0" HorizontalAlignment="Left" Margin="138,79,0,0" VerticalAlignment="Top" FontWeight="Bold" Width="195"/>
<Label Content="Thanks: Volgy" HorizontalAlignment="Left" Margin="193,131,0,0" VerticalAlignment="Top" FontWeight="Bold" Width="90"/>
<Label Content="https://github.com/aminhusni/Trinity_Matrix_Management_GUI" HorizontalAlignment="Left" Margin="51,173,0,0" VerticalAlignment="Top" FontWeight="Bold" Width="370"/>
<Label Content="Trinity - Matrix Administrative GUI" HorizontalAlignment="Left" Margin="117,11,0,0" VerticalAlignment="Top" FontWeight="Bold" Width="242" FontSize="14"/>
<Label Content="VERSION BETA 1.0" HorizontalAlignment="Left" Margin="182,54,0,0" VerticalAlignment="Top" FontWeight="Bold" Width="115"/>
</Grid>
</TabItem>
</TabControl>
</Grid>
</Window>