mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
initial layout for network info
This commit is contained in:
parent
80d02d189a
commit
9ba5c91d4a
8 changed files with 1236 additions and 0 deletions
BIN
windows/WinUI/Fonts/segoeui.ttf
Normal file
BIN
windows/WinUI/Fonts/segoeui.ttf
Normal file
Binary file not shown.
BIN
windows/WinUI/Fonts/segoeuib.ttf
Normal file
BIN
windows/WinUI/Fonts/segoeuib.ttf
Normal file
Binary file not shown.
BIN
windows/WinUI/Fonts/segoeuii.ttf
Normal file
BIN
windows/WinUI/Fonts/segoeuii.ttf
Normal file
Binary file not shown.
BIN
windows/WinUI/Fonts/segoeuiz.ttf
Normal file
BIN
windows/WinUI/Fonts/segoeuiz.ttf
Normal file
Binary file not shown.
55
windows/WinUI/NetworkInfoView.xaml
Normal file
55
windows/WinUI/NetworkInfoView.xaml
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
<Page x:Class="WinUI.NetworkInfoView"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="NetworkInfoView" FontFamily="/ZeroTier One;component/Fonts/#Segoe UI" Height="284" Width="316.333">
|
||||||
|
<DockPanel LastChildFill="True">
|
||||||
|
<StatusBar DockPanel.Dock="Top">
|
||||||
|
<StatusBar.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
</Grid>
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</StatusBar.ItemsPanel>
|
||||||
|
<StatusBarItem Grid.Column="0">
|
||||||
|
<TextBlock x:Name="networkId" TextWrapping="Wrap" Text="8056c2e21c000001" Foreground="#FF91A2A3"/>
|
||||||
|
</StatusBarItem>
|
||||||
|
<StatusBarItem Grid.Column="1"/>
|
||||||
|
<StatusBarItem Grid.Column="2">
|
||||||
|
<TextBlock x:Name="networkName" TextWrapping="Wrap" Text="earth.zerotier.net"/>
|
||||||
|
</StatusBarItem>
|
||||||
|
|
||||||
|
</StatusBar>
|
||||||
|
<StackPanel Width="80.483" OpacityMask="Black" Background="White">
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="Status" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="Type" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="MAC" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="MTU" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="Broadcast" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="Bridging" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="Device" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="Managed IPs" HorizontalAlignment="Right"/>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Background="#FFEEEEEE" DockPanel.Dock="Right">
|
||||||
|
<TextBlock TextWrapping="Wrap" HorizontalAlignment="Right" Text="OK" TextAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="PUBLIC" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" HorizontalAlignment="Right"><Span><Run Text="02:83:4a:1e:4b:3a"/></Span></TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="2800" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="ENABLED" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" Text="DISABLED" HorizontalAlignment="Right"/>
|
||||||
|
<TextBlock TextWrapping="Wrap" HorizontalAlignment="Right"><Span><Run Text="ethernet_32771"/></Span></TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap" HorizontalAlignment="Right" TextAlignment="Right"><Span><Run Text="28.2.169.248/7 "/></Span><LineBreak/><Span><Run Text="fd80:56c2:e21c:0000:0199:9383:4a02:a9f8/88"/></Span></TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
<StatusBar DockPanel.Dock="Bottom"/>
|
||||||
|
</DockPanel>
|
||||||
|
</Page>
|
28
windows/WinUI/NetworkInfoView.xaml.cs
Normal file
28
windows/WinUI/NetworkInfoView.xaml.cs
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace WinUI
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for NetworkInfoView.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class NetworkInfoView : Page
|
||||||
|
{
|
||||||
|
public NetworkInfoView()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1121
windows/WinUI/Simple Styles.xaml
Normal file
1121
windows/WinUI/Simple Styles.xaml
Normal file
File diff suppressed because it is too large
Load diff
|
@ -97,12 +97,23 @@
|
||||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Page Include="NetworkInfoView.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
<Page Include="Simple Styles.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
<Page Include="Themes\Generic.xaml">
|
<Page Include="Themes\Generic.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="NetworkInfoView.xaml.cs">
|
||||||
|
<DependentUpon>NetworkInfoView.xaml</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Properties\AssemblyInfo.cs">
|
<Compile Include="Properties\AssemblyInfo.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
@ -147,9 +158,30 @@
|
||||||
</BootstrapperPackage>
|
</BootstrapperPackage>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<BlendEmbeddedFont Include="Fonts\segoeui.ttf">
|
||||||
|
<IsSystemFont>True</IsSystemFont>
|
||||||
|
<All>True</All>
|
||||||
|
<AutoFill>True</AutoFill>
|
||||||
|
</BlendEmbeddedFont>
|
||||||
|
<BlendEmbeddedFont Include="Fonts\segoeuib.ttf">
|
||||||
|
<IsSystemFont>True</IsSystemFont>
|
||||||
|
<All>True</All>
|
||||||
|
<AutoFill>True</AutoFill>
|
||||||
|
</BlendEmbeddedFont>
|
||||||
|
<BlendEmbeddedFont Include="Fonts\segoeuii.ttf">
|
||||||
|
<IsSystemFont>True</IsSystemFont>
|
||||||
|
<All>True</All>
|
||||||
|
<AutoFill>True</AutoFill>
|
||||||
|
</BlendEmbeddedFont>
|
||||||
|
<BlendEmbeddedFont Include="Fonts\segoeuiz.ttf">
|
||||||
|
<IsSystemFont>True</IsSystemFont>
|
||||||
|
<All>True</All>
|
||||||
|
<AutoFill>True</AutoFill>
|
||||||
|
</BlendEmbeddedFont>
|
||||||
<Resource Include="ZeroTierIcon.ico" />
|
<Resource Include="ZeroTierIcon.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Expression\Blend\.NETFramework\v4.5\Microsoft.Expression.Blend.WPF.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
|
Loading…
Add table
Reference in a new issue