aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Web/Security/WebTokenResponse.cs
blob: e68305fbba62786534ed924fc8902affe5b62fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Transport.Web;

namespace Tango.Web.Security
{
    public class WebTokenResponse : WebResponseMessage
    {
        public String AccessToken { get; set; }
    }
}
or: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
<Window x:Class="Tango.PPC.Publisher.UI.MainWindow"
        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:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:common="clr-namespace:Tango.PPC.Common;assembly=Tango.PPC.Common"
        xmlns:examiner="clr-namespace:Tango.SQLExaminer;assembly=Tango.SQLExaminer"
        xmlns:web="clr-namespace:Tango.Web;assembly=Tango.Web"
        xmlns:local="clr-namespace:Tango.PPC.Publisher.UI"
        mc:Ignorable="d"
        Title="Tango PPC Publisher" d:DesignHeight="1200" Height="800" Width="500" d:DataContext="{d:DesignInstance Type=local:MainWindowVM, IsDesignTimeCreatable=False}" WindowStartupLocation="CenterScreen">

    <Window.Resources>
        <converters:EnumToItemsSourceConverter x:Key="EnumToItemsSourceConverter" />
    </Window.Resources>

    <Window.Style>
        <Style TargetType="Window">
            <Setter Property="Cursor" Value="Arrow"></Setter>
            <Style.Triggers>
                <DataTrigger Binding="{Binding IsBusy}" Value="True">
                    <Setter Property="Cursor" Value="Wait"></Setter>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </Window.Style>

    <Grid IsEnabled="{Binding IsFree}">
        <DockPanel Margin="10">
            <TextBlock DockPanel.Dock="Top" FontSize="22">Tango Publish Utility</TextBlock>
            <Grid DockPanel.Dock="Bottom" Margin="0 20 0 0">
                <StackPanel>
                    <StackPanel VerticalAlignment="Bottom">
                        <TextBlock Text="{Binding PublishArgs.Message}" Foreground="Gray"></TextBlock>
                        <ProgressBar Height="15" Margin="0 5 0 10" Maximum="{Binding PublishArgs.Total}" Value="{Binding PublishArgs.Progress}"></ProgressBar>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Height="40">
                        <Button Width="150" Command="{Binding CreateTupCommand}">CREATE TUP FILE</Button>
                        <Button Width="150" Command="{Binding PublishCommand}">PUBLISH</Button>
                    </StackPanel>
                </StackPanel>
            </Grid>

            <Grid>
                <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" Padding="0 0 10 0">
                    <StackPanel>

                        <DockPanel Margin="0 40 0 0">
                            <TextBlock VerticalAlignment="Center" Width="136" DockPanel.Dock="Left">Deployment Slot:</TextBlock>
                            <ComboBox x:Name="combo" ItemsSource="{Binding Source={x:Type web:DeploymentSlot},Converter={StaticResource EnumToItemsSourceConverter}}" SelectedValue="{Binding Options.Environment}" SelectedValuePath="Value" DisplayMemberPath="DisplayName" Margin="5 0 0 0" />
                        </DockPanel>

                        <DockPanel Margin="0 20 0 0">
                            <TextBlock VerticalAlignment="Center" Width="136" DockPanel.Dock="Left">Build Configuration:</TextBlock>
                            <ComboBox Margin="20 0 0 0" SelectedItem="{Binding Options.BuildConfig}" SelectedIndex="0">
                                <sys:String>Release</sys:String>
                                <sys:String>Debug</sys:String>
                                <sys:String>Eureka</sys:String>
                            </ComboBox>
                        </DockPanel>

                        <DockPanel Margin="0 20 0 0">
                            <TextBlock VerticalAlignment="Center" DockPanel.Dock="Left">Selected machine version:</TextBlock>
                            <ComboBox Margin="20 0 0 0" ItemsSource="{Binding MachineVersions}" SelectedItem="{Binding SelectedMachineVersion}" DisplayMemberPath="Name" />
                        </DockPanel>

                        <TextBlock Margin="0 20 0 0">
                        <TextBlock>
                            <Run>Remote Versions:</Run>
                            <Run Text="{Binding RemoteVersion}"></Run>,
                            <Run Text="{Binding RemoteFirmwareVersion}"></Run>
                        </TextBlock>
                    </TextBlock>

                        <TextBlock Margin="0 20 0 0">
                        <TextBlock>
                            <Run>Local Versions:</Run>
                            <Run Text="{Binding LocalVersion}"></Run>,
                            <Run Text="{Binding LocalFirmwareVersion}"></Run>,
                            <Run Text="{Binding PackageSize}"></Run>
                        </TextBlock>
                    </TextBlock>

                        <TextBlock Margin="0 20 0 0">Examiner Provision Sequence Items</TextBlock>

                        <DataGrid Height="110" SelectionMode="Single" SelectionUnit="FullRow" HorizontalScrollBarVisibility="Disabled" AutoGenerateColumns="False" ItemsSource="{Binding ProvisionSequenceItemsView}" CanUserAddRows="True" CanUserReorderColumns="False" CanUserDeleteRows="True" CanUserSortColumns="False" AddingNewItem="DataGrid_AddingNewItem">
                            <DataGrid.Columns>
                                <DataGridTextColumn IsReadOnly="True" Width="100" Header="File Name" Binding="{Binding FileName}" />
                                <DataGridComboBoxColumn Width="75" Header="Type" ItemsSource="{Binding Source={x:Type examiner:ExaminerSequenceItemType},Converter={StaticResource EnumToItemsSourceConverter}}" SelectedValueBinding="{Binding Type}" SelectedValuePath="Value" DisplayMemberPath="DisplayName" />
                                <DataGridComboBoxColumn Width="90" Header="Direction" ItemsSource="{Binding Source={x:Type examiner:ExaminerSequenceItemDirection},Converter={StaticResource EnumToItemsSourceConverter}}" SelectedValueBinding="{Binding Direction}" SelectedValuePath="Value" DisplayMemberPath="DisplayName" />
                                <DataGridCheckBoxColumn Width="35" Header="S/N" Binding="{Binding RequiresSerialNumber}" />
                                <DataGridTextColumn Header="Name" Width="1*" Binding="{Binding Name}" />
                                <DataGridTextColumn Header="Index" Width="40" Binding="{Binding Index}" />
                            </DataGrid.Columns>
                        </DataGrid>

                        <TextBlock Margin="0 20 0 0">Examiner Update Sequence Items</TextBlock>

                        <DataGrid Height="110" SelectionMode="Single" SelectionUnit="FullRow" HorizontalScrollBarVisibility="Disabled" AutoGenerateColumns="False" ItemsSource="{Binding UpdateSequenceItemsView}" CanUserAddRows="True" CanUserReorderColumns="False" CanUserDeleteRows="True" CanUserSortColumns="False" AddingNewItem="DataGrid_AddingNewItem_1">
                            <DataGrid.Columns>
                                <DataGridTextColumn IsReadOnly="True" Width="100" Header="File Name" Binding="{Binding FileName}" />
                                <DataGridComboBoxColumn Width="75" Header="Type" ItemsSource="{Binding Source={x:Type examiner:ExaminerSequenceItemType},Converter={StaticResource EnumToItemsSourceConverter}}" SelectedValueBinding="{Binding Type}" SelectedValuePath="Value" DisplayMemberPath="DisplayName" />
                                <DataGridComboBoxColumn Width="90" Header="Direction" ItemsSource="{Binding Source={x:Type examiner:ExaminerSequenceItemDirection},Converter={StaticResource EnumToItemsSourceConverter}}" SelectedValueBinding="{Binding Direction}" SelectedValuePath="Value" DisplayMemberPath="DisplayName" />
                                <DataGridCheckBoxColumn Width="35" Header="S/N" Binding="{Binding RequiresSerialNumber}" />
                                <DataGridTextColumn Header="Name" Width="1*" Binding="{Binding Name}" />
                                <DataGridTextColumn Header="Index" Width="40" Binding="{Binding Index}" />
                            </DataGrid.Columns>
                        </DataGrid>

                        <TextBlock Margin="0 20 0 0">Firmware Upgrade Package</TextBlock>
                        <DockPanel Margin="0 5 0 0">
                            <Button DockPanel.Dock="Right" Margin="10 0 0 0" Command="{Binding FirmwareUpgradePackageBrowseCommand}">BROWSE</Button>
                            <TextBox IsReadOnly="True" Text="{Binding Options.TfpPath}"></TextBox>
                        </DockPanel>

                        <StackPanel Margin="0 20 0 0">
                            <TextBlock>Installer Project</TextBlock>
                            <TextBox Margin="0 5 0 0" Text="{Binding Options.InstallerProject,UpdateSourceTrigger=PropertyChanged}"></TextBox>
                            <TextBlock Margin="0 10 0 0">Installer Output Folder</TextBlock>
                            <TextBox Margin="0 5 0 0" Text="{Binding Options.InstallerOutputFolder,UpdateSourceTrigger=PropertyChanged}"></TextBox>
                        </StackPanel>

                        <StackPanel Margin="0 20 0 0">
                            <TextBlock>Tag</TextBlock>
                            <ComboBox IsEditable="True" ItemsSource="{Binding Tags}" Text="{Binding Options.Tag,Delay=1000,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></ComboBox>
                        </StackPanel>

                        <StackPanel Margin="0 20 0 0">

                            <TextBlock>Comments</TextBlock>
                            <TextBox Margin="0 5 0 0" Text="{Binding Options.Comments}" Height="50" AcceptsReturn="True" TextWrapping="Wrap"></TextBox>

                            <TextBlock>Email</TextBlock>
                            <TextBox Margin="0 5 0 0" Text="{Binding Options.Email}"></TextBox>

                            <TextBlock Margin="0 10 0 0">Password</TextBlock>
                            <TextBox Margin="0 5 0 0" Text="{Binding Options.Password}"></TextBox>
                        </StackPanel>

                        <StackPanel Margin="0 20 0 0">
                            <CheckBox x:Name="chkCreateTag" IsChecked="{Binding Options.CreateTag}">Create Tag On Repository</CheckBox>
                            <CheckBox Margin="0 5 0 0" IsChecked="{Binding Options.AutoCommitAndPush}">Auto Commit &amp; Push</CheckBox>
                            <TextBlock Margin="0 10 0 0">Personal Access Token</TextBlock>
                            <TextBox  IsEnabled="{Binding ElementName=chkCreateTag,Path=IsChecked}" Margin="0 5 0 0" Text="{Binding Options.PersonalAccessToken}"></TextBox>
                        </StackPanel>
                    </StackPanel>
                </ScrollViewer>
            </Grid>
        </DockPanel>
    </Grid>
</Window>