195
source/Plugins/AyaNova.Plugin.V8/Auth.Designer.cs
generated
Normal file
@@ -0,0 +1,195 @@
|
||||
namespace AyaNova.PlugIn.V8
|
||||
{
|
||||
partial class Auth
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Auth));
|
||||
this.edUserName = new System.Windows.Forms.TextBox();
|
||||
this.edPassword = new System.Windows.Forms.TextBox();
|
||||
this.pictureBox2 = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox3 = new System.Windows.Forms.PictureBox();
|
||||
this.btnCancel = new System.Windows.Forms.Button();
|
||||
this.btnOk = new System.Windows.Forms.Button();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.edServerUrl = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.btnTest = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// edUserName
|
||||
//
|
||||
this.edUserName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.edUserName.Location = new System.Drawing.Point(100, 334);
|
||||
this.edUserName.Name = "edUserName";
|
||||
this.edUserName.Size = new System.Drawing.Size(408, 26);
|
||||
this.edUserName.TabIndex = 1;
|
||||
this.edUserName.Text = "manager";
|
||||
//
|
||||
// edPassword
|
||||
//
|
||||
this.edPassword.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.edPassword.Location = new System.Drawing.Point(100, 383);
|
||||
this.edPassword.Name = "edPassword";
|
||||
this.edPassword.Size = new System.Drawing.Size(408, 26);
|
||||
this.edPassword.TabIndex = 2;
|
||||
this.edPassword.Text = "l3tm3in";
|
||||
//
|
||||
// pictureBox2
|
||||
//
|
||||
this.pictureBox2.Image = global::AyaNova.PlugIn.V8.Resource1.LoginPassword32;
|
||||
this.pictureBox2.Location = new System.Drawing.Point(26, 383);
|
||||
this.pictureBox2.Name = "pictureBox2";
|
||||
this.pictureBox2.Size = new System.Drawing.Size(68, 35);
|
||||
this.pictureBox2.TabIndex = 31;
|
||||
this.pictureBox2.TabStop = false;
|
||||
//
|
||||
// pictureBox3
|
||||
//
|
||||
this.pictureBox3.Image = global::AyaNova.PlugIn.V8.Resource1.Login32;
|
||||
this.pictureBox3.Location = new System.Drawing.Point(26, 334);
|
||||
this.pictureBox3.Name = "pictureBox3";
|
||||
this.pictureBox3.Size = new System.Drawing.Size(68, 39);
|
||||
this.pictureBox3.TabIndex = 30;
|
||||
this.pictureBox3.TabStop = false;
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnCancel.Image = global::AyaNova.PlugIn.V8.Resource1.Cancel24;
|
||||
this.btnCancel.Location = new System.Drawing.Point(26, 450);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(68, 41);
|
||||
this.btnCancel.TabIndex = 26;
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// btnOk
|
||||
//
|
||||
this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnOk.Image = global::AyaNova.PlugIn.V8.Resource1.OK24;
|
||||
this.btnOk.Location = new System.Drawing.Point(440, 450);
|
||||
this.btnOk.Name = "btnOk";
|
||||
this.btnOk.Size = new System.Drawing.Size(68, 41);
|
||||
this.btnOk.TabIndex = 3;
|
||||
this.btnOk.UseVisualStyleBackColor = true;
|
||||
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
|
||||
this.pictureBox1.Location = new System.Drawing.Point(191, 12);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(136, 126);
|
||||
this.pictureBox1.TabIndex = 0;
|
||||
this.pictureBox1.TabStop = false;
|
||||
//
|
||||
// edServerUrl
|
||||
//
|
||||
this.edServerUrl.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.edServerUrl.Location = new System.Drawing.Point(26, 192);
|
||||
this.edServerUrl.Name = "edServerUrl";
|
||||
this.edServerUrl.Size = new System.Drawing.Size(482, 26);
|
||||
this.edServerUrl.TabIndex = 32;
|
||||
this.edServerUrl.Text = "http://localhost:7575";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(28, 168);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(149, 16);
|
||||
this.label1.TabIndex = 33;
|
||||
this.label1.Text = "AyaNova 8 server URL:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label2.Location = new System.Drawing.Point(28, 302);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(298, 16);
|
||||
this.label2.TabIndex = 34;
|
||||
this.label2.Text = "Login as v8 user with ``Business Admin Full`` role:";
|
||||
//
|
||||
// btnTest
|
||||
//
|
||||
this.btnTest.Location = new System.Drawing.Point(432, 225);
|
||||
this.btnTest.Name = "btnTest";
|
||||
this.btnTest.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnTest.TabIndex = 35;
|
||||
this.btnTest.Text = "Test URL";
|
||||
this.btnTest.UseVisualStyleBackColor = true;
|
||||
this.btnTest.Click += new System.EventHandler(this.btnTest_Click);
|
||||
//
|
||||
// Auth
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(537, 513);
|
||||
this.Controls.Add(this.btnTest);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.edServerUrl);
|
||||
this.Controls.Add(this.pictureBox2);
|
||||
this.Controls.Add(this.pictureBox3);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOk);
|
||||
this.Controls.Add(this.edPassword);
|
||||
this.Controls.Add(this.edUserName);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "Auth";
|
||||
this.Text = "AyaNova 8";
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.TextBox edUserName;
|
||||
private System.Windows.Forms.TextBox edPassword;
|
||||
private System.Windows.Forms.Button btnOk;
|
||||
private System.Windows.Forms.Button btnCancel;
|
||||
private System.Windows.Forms.PictureBox pictureBox3;
|
||||
private System.Windows.Forms.PictureBox pictureBox2;
|
||||
private System.Windows.Forms.TextBox edServerUrl;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button btnTest;
|
||||
}
|
||||
}
|
||||
43
source/Plugins/AyaNova.Plugin.V8/Auth.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AyaNova.PlugIn.V8
|
||||
{
|
||||
public partial class Auth : Form
|
||||
{
|
||||
public Auth()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnTest_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
private async void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
var result = await util.TestUrlAsync(edServerUrl.Text);
|
||||
if (result == "OK")
|
||||
{
|
||||
MessageBox.Show("Server URL is GOOD!");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Server could not be reached at that URL\n" + result);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
2459
source/Plugins/AyaNova.Plugin.V8/Auth.resx
Normal file
@@ -9,8 +9,9 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>AyaNova.PlugIn.V8</RootNamespace>
|
||||
<AssemblyName>AyaNova.PlugIn.V8</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -20,6 +21,7 @@
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
@@ -28,6 +30,7 @@
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
@@ -42,6 +45,7 @@
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
@@ -50,6 +54,18 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Auth.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Auth.Designer.cs">
|
||||
<DependentUpon>Auth.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Resource1.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resource1.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="util.cs" />
|
||||
<Compile Include="V8.cs" />
|
||||
<Compile Include="ProgressForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
@@ -58,11 +74,6 @@
|
||||
<DependentUpon>ProgressForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Resource1.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resource1.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Timestamp.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -107,6 +118,9 @@
|
||||
<None Include="AyaNova.snk" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Auth.resx">
|
||||
<DependentUpon>Auth.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ProgressForm.resx">
|
||||
<DependentUpon>ProgressForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -121,6 +135,33 @@
|
||||
<ItemGroup>
|
||||
<None Include="Resources\Dump32.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\tshirt_128.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\signon.bmp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\Cancel24.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\Login24.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\LoginPassword24.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\OK24.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\tshirt_1281.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\Login32.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\LoginPassword32.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>"C:\data\AyaNova\utils\TimeStamp\bin\Release\TimeStamp.exe" "$(ProjectDir)Timestamp.cs" "/N:AyaNova.PlugIn.V8"</PreBuildEvent>
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
{
|
||||
this.edOut = new System.Windows.Forms.TextBox();
|
||||
this.btnClose = new System.Windows.Forms.Button();
|
||||
this.lblCurrent = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// edOut
|
||||
@@ -42,7 +43,7 @@
|
||||
this.edOut.Name = "edOut";
|
||||
this.edOut.ReadOnly = true;
|
||||
this.edOut.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.edOut.Size = new System.Drawing.Size(870, 546);
|
||||
this.edOut.Size = new System.Drawing.Size(870, 513);
|
||||
this.edOut.TabIndex = 0;
|
||||
//
|
||||
// btnClose
|
||||
@@ -59,6 +60,15 @@
|
||||
this.btnClose.UseVisualStyleBackColor = true;
|
||||
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
|
||||
//
|
||||
// lblCurrent
|
||||
//
|
||||
this.lblCurrent.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblCurrent.Location = new System.Drawing.Point(13, 529);
|
||||
this.lblCurrent.Name = "lblCurrent";
|
||||
this.lblCurrent.Size = new System.Drawing.Size(846, 23);
|
||||
this.lblCurrent.TabIndex = 2;
|
||||
//
|
||||
// ProgressForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
@@ -66,13 +76,14 @@
|
||||
this.CancelButton = this.btnClose;
|
||||
this.ClientSize = new System.Drawing.Size(870, 620);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.lblCurrent);
|
||||
this.Controls.Add(this.btnClose);
|
||||
this.Controls.Add(this.edOut);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.Name = "ProgressForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Dumping...";
|
||||
this.Text = "Exporting...";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -82,5 +93,6 @@
|
||||
|
||||
private System.Windows.Forms.TextBox edOut;
|
||||
private System.Windows.Forms.Button btnClose;
|
||||
private System.Windows.Forms.Label lblCurrent;
|
||||
}
|
||||
}
|
||||
@@ -60,6 +60,16 @@ namespace AyaNova.PlugIn.V8 {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Cancel24 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Cancel24", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
@@ -79,5 +89,75 @@ namespace AyaNova.PlugIn.V8 {
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Login24 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Login24", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Login32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Login32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap LoginPassword24 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LoginPassword24", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap LoginPassword32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LoginPassword32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap OK24 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("OK24", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap signon {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("signon", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap tshirt_128 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tshirt_128", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,7 +121,31 @@
|
||||
<data name="Dump16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>Resources\Dump16.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="signon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>Resources\signon.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Cancel24" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>Resources\Cancel24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Login24" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>Resources\Login24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="LoginPassword24" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>Resources\LoginPassword24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Dump32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>Resources\Dump32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="OK24" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>Resources\OK24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="tshirt_128" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>Resources\tshirt_1281.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Login32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>Resources\Login32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="LoginPassword32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>Resources\LoginPassword32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
BIN
source/Plugins/AyaNova.Plugin.V8/Resources/Cancel24.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
BIN
source/Plugins/AyaNova.Plugin.V8/Resources/Login24.png
Normal file
|
After Width: | Height: | Size: 886 B |
BIN
source/Plugins/AyaNova.Plugin.V8/Resources/Login32.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
source/Plugins/AyaNova.Plugin.V8/Resources/LoginPassword24.png
Normal file
|
After Width: | Height: | Size: 846 B |
BIN
source/Plugins/AyaNova.Plugin.V8/Resources/LoginPassword32.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
source/Plugins/AyaNova.Plugin.V8/Resources/OK24.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
source/Plugins/AyaNova.Plugin.V8/Resources/signon.bmp
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
source/Plugins/AyaNova.Plugin.V8/Resources/tshirt_128.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
source/Plugins/AyaNova.Plugin.V8/Resources/tshirt_1281.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
@@ -22,7 +22,7 @@ namespace AyaNova.PlugIn.V8
|
||||
/// <remarks>
|
||||
/// Do not modify the definition of BuildAt as your changes will be discarded.
|
||||
/// </remarks>
|
||||
public static DateTime BuildAt { get { return new DateTime(637235775737131241); } } //--**
|
||||
public static DateTime BuildAt { get { return new DateTime(637235924335290569); } } //--**
|
||||
/// <summary>
|
||||
/// The program that time stamped it.
|
||||
/// </summary>
|
||||
|
||||
@@ -131,8 +131,10 @@ namespace AyaNova.PlugIn.V8
|
||||
MessageBox.Show("** WARNING: before proceeding make sure your AyaNova Generator service is STOPPED to ensure the integrity of your exported data. Failing to do so *will* result in damaged data. ***");
|
||||
}
|
||||
|
||||
Auth d = new Auth();
|
||||
d.ShowDialog();
|
||||
//Only one command
|
||||
DumpIt();
|
||||
// DumpIt();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/></startup></configuration>
|
||||
|
||||
62
source/Plugins/AyaNova.Plugin.V8/util.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace AyaNova.PlugIn.V8
|
||||
{
|
||||
class util
|
||||
{
|
||||
const string TEST_ROUTE = "ServerInfo";
|
||||
const string API_BASE_ROUTE = "api/v8/";
|
||||
static HttpClient client = new HttpClient();
|
||||
static string ApiBaseUrl { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Only a return value of "OK" is ok
|
||||
/// </summary>
|
||||
/// <param name="serverUrl"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<string> TestUrlAsync(string serverUrl)
|
||||
{
|
||||
if (string.IsNullOrEmpty(serverUrl)) return "Server url required";
|
||||
|
||||
if (!serverUrl.Contains("/api/")) {
|
||||
if (!serverUrl.EndsWith("/")) serverUrl+="/";
|
||||
serverUrl += API_BASE_ROUTE;
|
||||
}
|
||||
|
||||
//try to connect, ping the server api
|
||||
client.BaseAddress = new Uri(serverUrl);
|
||||
client.DefaultRequestHeaders.Accept.Clear();
|
||||
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
||||
|
||||
try
|
||||
{
|
||||
HttpResponseMessage response = await client.GetAsync(serverUrl + TEST_ROUTE);
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
var ret = await response.Content.ReadAsStringAsync();
|
||||
if (ret.Contains("AyaNova")) return "OK";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "Failed: " + response.StatusCode.ToString();
|
||||
}
|
||||
}
|
||||
catch { return "Failed"; }
|
||||
|
||||
|
||||
return "failed";
|
||||
}
|
||||
|
||||
//eoc
|
||||
|
||||
}
|
||||
}//ens
|
||||