commit 67b5e727aebb5af86bf49d2fd29e674851668d29 Author: Sewmina Date: Tue Jan 31 19:27:18 2023 +0530 Init diff --git a/.vs/ProjectEvaluation/titanic.metadata.v5.2 b/.vs/ProjectEvaluation/titanic.metadata.v5.2 new file mode 100644 index 0000000..0a4bd9c Binary files /dev/null and b/.vs/ProjectEvaluation/titanic.metadata.v5.2 differ diff --git a/.vs/ProjectEvaluation/titanic.projects.v5.2 b/.vs/ProjectEvaluation/titanic.projects.v5.2 new file mode 100644 index 0000000..471e248 Binary files /dev/null and b/.vs/ProjectEvaluation/titanic.projects.v5.2 differ diff --git a/.vs/Titanic/DesignTimeBuild/.dtbcache.v2 b/.vs/Titanic/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..2b02892 Binary files /dev/null and b/.vs/Titanic/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/Titanic/FileContentIndex/5e500cb8-fd32-4f47-9fe1-daa113f0997c.vsidx b/.vs/Titanic/FileContentIndex/5e500cb8-fd32-4f47-9fe1-daa113f0997c.vsidx new file mode 100644 index 0000000..c80ac3f Binary files /dev/null and b/.vs/Titanic/FileContentIndex/5e500cb8-fd32-4f47-9fe1-daa113f0997c.vsidx differ diff --git a/.vs/Titanic/FileContentIndex/846b6baa-f343-4b11-8529-52ef89be2c82.vsidx b/.vs/Titanic/FileContentIndex/846b6baa-f343-4b11-8529-52ef89be2c82.vsidx new file mode 100644 index 0000000..0c81147 Binary files /dev/null and b/.vs/Titanic/FileContentIndex/846b6baa-f343-4b11-8529-52ef89be2c82.vsidx differ diff --git a/.vs/Titanic/FileContentIndex/a263dd3e-4aca-4ae9-87e3-4686d6127164.vsidx b/.vs/Titanic/FileContentIndex/a263dd3e-4aca-4ae9-87e3-4686d6127164.vsidx new file mode 100644 index 0000000..818e4c5 Binary files /dev/null and b/.vs/Titanic/FileContentIndex/a263dd3e-4aca-4ae9-87e3-4686d6127164.vsidx differ diff --git a/.vs/Titanic/FileContentIndex/ca41507d-9bee-4658-abd3-be9c589d6a1a.vsidx b/.vs/Titanic/FileContentIndex/ca41507d-9bee-4658-abd3-be9c589d6a1a.vsidx new file mode 100644 index 0000000..84c1ee3 Binary files /dev/null and b/.vs/Titanic/FileContentIndex/ca41507d-9bee-4658-abd3-be9c589d6a1a.vsidx differ diff --git a/.vs/Titanic/FileContentIndex/read.lock b/.vs/Titanic/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/.vs/Titanic/v17/.futdcache.v2 b/.vs/Titanic/v17/.futdcache.v2 new file mode 100644 index 0000000..c48dc1b Binary files /dev/null and b/.vs/Titanic/v17/.futdcache.v2 differ diff --git a/.vs/Titanic/v17/.suo b/.vs/Titanic/v17/.suo new file mode 100644 index 0000000..0a90480 Binary files /dev/null and b/.vs/Titanic/v17/.suo differ diff --git a/Titanic.sln b/Titanic.sln new file mode 100644 index 0000000..44d6524 --- /dev/null +++ b/Titanic.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33122.133 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Titanic", "Titanic\Titanic.csproj", "{53B9C60D-9C9B-44BC-A103-D423ABE0B941}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {53B9C60D-9C9B-44BC-A103-D423ABE0B941}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {53B9C60D-9C9B-44BC-A103-D423ABE0B941}.Debug|Any CPU.Build.0 = Debug|Any CPU + {53B9C60D-9C9B-44BC-A103-D423ABE0B941}.Release|Any CPU.ActiveCfg = Release|Any CPU + {53B9C60D-9C9B-44BC-A103-D423ABE0B941}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {30310D9E-CE3E-415E-86DE-3C5B31738146} + EndGlobalSection +EndGlobal diff --git a/Titanic/Form1.Designer.cs b/Titanic/Form1.Designer.cs new file mode 100644 index 0000000..7b9a290 --- /dev/null +++ b/Titanic/Form1.Designer.cs @@ -0,0 +1,166 @@ +namespace Titanic +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.listView1 = new System.Windows.Forms.ListView(); + this.name = new System.Windows.Forms.ColumnHeader(); + this.last_change = new System.Windows.Forms.ColumnHeader(); + this.author = new System.Windows.Forms.ColumnHeader(); + this.last_modifier = new System.Windows.Forms.ColumnHeader(); + this.btn_new_project = new System.Windows.Forms.Button(); + this.btn_remove_selected_project = new System.Windows.Forms.Button(); + this.btn_exit = new System.Windows.Forms.Button(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.path = new System.Windows.Forms.ColumnHeader(); + this.SuspendLayout(); + // + // listView1 + // + this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.name, + this.path, + this.last_change, + this.author, + this.last_modifier}); + this.listView1.Location = new System.Drawing.Point(12, 12); + this.listView1.Name = "listView1"; + this.listView1.Size = new System.Drawing.Size(525, 426); + this.listView1.TabIndex = 0; + this.listView1.UseCompatibleStateImageBehavior = false; + this.listView1.View = System.Windows.Forms.View.Details; + // + // name + // + this.name.Text = "Project"; + this.name.Width = 150; + // + // last_change + // + this.last_change.Text = "Last When"; + this.last_change.Width = 120; + // + // author + // + this.author.Text = "Author"; + this.author.Width = 100; + // + // last_modifier + // + this.last_modifier.Text = "Last Who"; + this.last_modifier.Width = 100; + // + // btn_new_project + // + this.btn_new_project.Location = new System.Drawing.Point(543, 108); + this.btn_new_project.Name = "btn_new_project"; + this.btn_new_project.Size = new System.Drawing.Size(156, 23); + this.btn_new_project.TabIndex = 1; + this.btn_new_project.Text = "Add New Project"; + this.btn_new_project.UseVisualStyleBackColor = true; + this.btn_new_project.Click += new System.EventHandler(this.btn_new_project_Click); + // + // btn_remove_selected_project + // + this.btn_remove_selected_project.Location = new System.Drawing.Point(543, 137); + this.btn_remove_selected_project.Name = "btn_remove_selected_project"; + this.btn_remove_selected_project.Size = new System.Drawing.Size(156, 23); + this.btn_remove_selected_project.TabIndex = 2; + this.btn_remove_selected_project.Text = "Remove Selected Project"; + this.btn_remove_selected_project.UseVisualStyleBackColor = true; + this.btn_remove_selected_project.Click += new System.EventHandler(this.btn_remove_selected_project_Click); + // + // btn_exit + // + this.btn_exit.Location = new System.Drawing.Point(543, 415); + this.btn_exit.Name = "btn_exit"; + this.btn_exit.Size = new System.Drawing.Size(156, 23); + this.btn_exit.TabIndex = 3; + this.btn_exit.Text = "Exit"; + this.btn_exit.UseVisualStyleBackColor = true; + this.btn_exit.Click += new System.EventHandler(this.btn_exit_Click); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(543, 12); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(156, 47); + this.button1.TabIndex = 4; + this.button1.Text = "Refresh"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // button2 + // + this.button2.Location = new System.Drawing.Point(543, 65); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(156, 23); + this.button2.TabIndex = 5; + this.button2.Text = "Info"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // path + // + this.path.Text = "path"; + this.path.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.path.Width = 15; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(708, 450); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.Controls.Add(this.btn_exit); + this.Controls.Add(this.btn_remove_selected_project); + this.Controls.Add(this.btn_new_project); + this.Controls.Add(this.listView1); + this.Name = "Form1"; + this.Text = "Titanic"; + this.ResumeLayout(false); + + } + + #endregion + + private ListView listView1; + private ColumnHeader name; + private ColumnHeader last_change; + private ColumnHeader author; + private ColumnHeader last_modifier; + private Button btn_new_project; + private Button btn_remove_selected_project; + private Button btn_exit; + private Button button1; + private Button button2; + private ColumnHeader path; + } +} \ No newline at end of file diff --git a/Titanic/Form1.cs b/Titanic/Form1.cs new file mode 100644 index 0000000..f5c4b8c --- /dev/null +++ b/Titanic/Form1.cs @@ -0,0 +1,82 @@ +namespace Titanic +{ + public partial class Form1 : Form + { + Settings settings; + public Form1() + { + InitializeComponent(); + + settings = Helpers.Settings; + Refresh(); + } + + private void btn_exit_Click(object sender, EventArgs e) + { + Application.Exit(); + } + + private void btn_new_project_Click(object sender, EventArgs e) + { + + new_project_form newProjectForm = new new_project_form(OnNewProjectSuccess); + newProjectForm.ShowDialog(); + } + + void OnNewProjectSuccess(KeyValuePair newProject) + { + Logger.Log("New project info successfully added : " + newProject.Key + ":" + newProject.Value); + + Helpers.AddNewProject(newProject); + Refresh(); + } + + public override void Refresh() + { + listView1.Items.Clear(); + + Dictionary projects = Helpers.Settings.projects; + foreach(KeyValuePair project in projects) + { + ListViewItem item = new ListViewItem(); + item.Text = project.Key; + item.SubItems.Add(project.Value); + + listView1.Items.Add(item); + + ProjectInfo info = ProjectInfo.FromDirectory(project.Value); + } + + base.Refresh(); + } + + private void button1_Click(object sender, EventArgs e) + { + Refresh(); + } + + private void btn_remove_selected_project_Click(object sender, EventArgs e) + { + if(listView1.SelectedItems.Count <= 0) + { + MessageBox.Show("No item selected to remove"); + return; + } + + Helpers.RemoveProject(listView1.SelectedItems[0].Text); + Refresh(); + } + + private void button2_Click(object sender, EventArgs e) + { + if (listView1.SelectedItems.Count <= 0) + { + MessageBox.Show("No item selected"); + return; + } + + ProjectInfoForm projectInfo = new ProjectInfoForm(listView1.SelectedItems[0].SubItems[1].Text); + projectInfo.ShowDialog(); + } + } +} \ No newline at end of file diff --git a/Titanic/Form1.resx b/Titanic/Form1.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/Titanic/Form1.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Titanic/Helpers.cs b/Titanic/Helpers.cs new file mode 100644 index 0000000..0dba86b --- /dev/null +++ b/Titanic/Helpers.cs @@ -0,0 +1,189 @@ +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using static System.Windows.Forms.VisualStyles.VisualStyleElement.Window; + +namespace Titanic +{ + static class Helpers + { + public const string GIT_LOG_CMD = "git log --pretty=format:\"%h%n%ce%n%at%n%s%n\""; + private static Settings m_settings; + private static string SettingsLocation { get { return Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\Documents\\Titanic.json"; } } + public static Settings Settings { + get { + + if(!File.Exists(SettingsLocation)) + { + m_settings = new Settings(); + File.WriteAllText(SettingsLocation, JsonConvert.SerializeObject(m_settings)); + Logger.Log("Wrote new settings to file @ " + SettingsLocation); + } + else + { + try + { + m_settings = JsonConvert.DeserializeObject(File.ReadAllText(SettingsLocation)); + Logger.Log("Reading settings from file success"); + } + catch(Exception e) + { + if(e is FileNotFoundException) + { + Logger.Log("No settings file was found, Creating new"); + } + else + { + Logger.Log("Failed to read existing settings file. Creating new"); + File.Move(SettingsLocation, SettingsLocation +".bkp"); + } + + + m_settings = new Settings(); + File.WriteAllText(SettingsLocation, JsonConvert.SerializeObject(m_settings)); + Logger.Log("Wrote new settings to file @ " + SettingsLocation); + } + } + return m_settings; + } + } + + public static void SaveSettings() + { + File.WriteAllText(SettingsLocation, JsonConvert.SerializeObject(m_settings)); + Logger.Log("Saved new settings to file @ " + SettingsLocation); + } + + + public static void AddNewProject(KeyValuePair project) + { + if (m_settings.projects.ContainsKey(project.Key)) + { + MessageBox.Show("Project name already exists"); + return; + } + m_settings.projects.Add(project.Key, project.Value); + SaveSettings(); + } + + public static void RemoveProject(string projectName) + { + foreach(KeyValuePair project in Settings.projects) + { + if(project.Key == projectName) + { + m_settings.projects.Remove(projectName); + Logger.Log($"Removed {projectName}"); + SaveSettings(); + + return; + break; + } + } + + + Logger.Log("Failed to remove project " + projectName); + } + + + public static string GetResponseFromCmd(string cmd, string directory) + { + Process p = new Process(); + // Redirect the output stream of the child process. + p.StartInfo.UseShellExecute = false; + p.StartInfo.RedirectStandardInput = true; + p.StartInfo.RedirectStandardOutput = true; + p.StartInfo.WorkingDirectory = directory; + p.StartInfo.FileName = "cmd.exe"; + //p.StartInfo.Arguments = "/C git /b log"; + p.Start(); + p.StandardInput.WriteLine(cmd); + p.StandardInput.Flush(); + p.StandardInput.Close(); + // Do not wait for the child process to exit before + // reading to the end of its redirected stream. + // p.WaitForExit(); + // Read the output stream first and then wait. + string output = p.StandardOutput.ReadToEnd(); + p.WaitForExit(); + + + return output; + } + + + public static string DeleteLines(string text, int lineCount) + { + string[] lines = text + .Split(Environment.NewLine.ToCharArray()) + .Skip(lineCount) + .ToArray(); + + string output = string.Join(Environment.NewLine, lines); + return output; + } + + public static DateTime UnixTimeStampToDateTime(double unixTimeStamp) + { + // Unix timestamp is seconds past epoch + DateTime dateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); + dateTime = dateTime.AddSeconds(unixTimeStamp).ToLocalTime(); + return dateTime; + } + + } + + + [Serializable] + class Settings + { + public Dictionary projects = new Dictionary(); + } + + + class ProjectInfo + { + public string Directory; + public List Commits; + + + public static ProjectInfo FromDirectory(string directory) + { + ProjectInfo info = new ProjectInfo() { Directory = directory }; + string gitLog = Helpers.GetResponseFromCmd(Helpers.GIT_LOG_CMD, directory); + + string actualOutput = Helpers.DeleteLines(gitLog.Substring(gitLog.LastIndexOf(Helpers.GIT_LOG_CMD) + 1), 1); + List commitsList = new List(); + string[] commits = actualOutput.Split(""); + + for (int i = 0; i < commits.Length; i++) + { + // MessageBox.Show(commits[i]); + string[] commitData = commits[i].Split('\n'); + if (commitData.Length < 5) { continue; } + DateTime time = Helpers.UnixTimeStampToDateTime(double.Parse(commitData[3])); + + commitsList.Add(new CommitData() { hash = commitData[1], Author = commitData[2], time = time, comments = commitData[4] }); + + } + + info.Commits = commitsList; + + return info; + } + } + + + class CommitData + { + public string hash; + public string Author; + public DateTime time; + public string comments; + } +} diff --git a/Titanic/Logger.cs b/Titanic/Logger.cs new file mode 100644 index 0000000..fc4ad09 --- /dev/null +++ b/Titanic/Logger.cs @@ -0,0 +1,57 @@ +using System; +using System.IO; + +public class Logger +{ + public static bool Enabled = true; + private static Logger m_instance = null; + private static string ApplicationDirectory + { + get + { + string path = AppDomain.CurrentDomain.BaseDirectory; + + return path; + } + } + public string LogFilePath {get; private set;} + public static Logger instance + { + get + { + if (m_instance == null) + { + m_instance = new Logger(); + } + + return m_instance; + } + } + + public Logger() + { + if(!Enabled){return;} + if(LogFilePath == null){ + LogFilePath = ApplicationDirectory + "Log.txt"; + } + File.WriteAllText(LogFilePath, "Logger initiated at " + DateTime.Now + "\n\n"); + } + + public void log(string message){ + if(!Enabled){return;} + + File.AppendAllText(LogFilePath,$"[{DateTime.Now}] {message}\n"); + } + + public static void Log(string message){ + instance.log(message); + } + + public static void SetFileName(string fileName){ + instance.LogFilePath = ApplicationDirectory+fileName + ".txt"; + } + + public static void SetFilePath(string path){ + instance.LogFilePath= path; + } +} \ No newline at end of file diff --git a/Titanic/Program.cs b/Titanic/Program.cs new file mode 100644 index 0000000..e65766a --- /dev/null +++ b/Titanic/Program.cs @@ -0,0 +1,19 @@ +namespace Titanic +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + Logger.Log("Initiating Titanic, Infamous Syncer"); + + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file diff --git a/Titanic/ProjectInfoForm.Designer.cs b/Titanic/ProjectInfoForm.Designer.cs new file mode 100644 index 0000000..4f0aebe --- /dev/null +++ b/Titanic/ProjectInfoForm.Designer.cs @@ -0,0 +1,92 @@ +namespace Titanic +{ + partial class ProjectInfoForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.listView1 = new System.Windows.Forms.ListView(); + this.hash = new System.Windows.Forms.ColumnHeader(); + this.author = new System.Windows.Forms.ColumnHeader(); + this.date = new System.Windows.Forms.ColumnHeader(); + this.comment = new System.Windows.Forms.ColumnHeader(); + this.SuspendLayout(); + // + // listView1 + // + this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.hash, + this.author, + this.date, + this.comment}); + this.listView1.Location = new System.Drawing.Point(12, 12); + this.listView1.Name = "listView1"; + this.listView1.Size = new System.Drawing.Size(665, 426); + this.listView1.TabIndex = 0; + this.listView1.UseCompatibleStateImageBehavior = false; + this.listView1.View = System.Windows.Forms.View.Details; + // + // hash + // + this.hash.Text = "hash"; + // + // author + // + this.author.Text = "Author"; + this.author.Width = 120; + // + // date + // + this.date.Text = "Date"; + this.date.Width = 120; + // + // comment + // + this.comment.Text = "Comment"; + this.comment.Width = 250; + // + // ProjectInfoForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(688, 450); + this.Controls.Add(this.listView1); + this.Name = "ProjectInfoForm"; + this.Text = "ProjectInfoForm"; + this.Load += new System.EventHandler(this.ProjectInfoForm_Load); + this.ResumeLayout(false); + + } + + #endregion + + private ListView listView1; + private ColumnHeader hash; + private ColumnHeader author; + private ColumnHeader date; + private ColumnHeader comment; + } +} \ No newline at end of file diff --git a/Titanic/ProjectInfoForm.cs b/Titanic/ProjectInfoForm.cs new file mode 100644 index 0000000..1fe1924 --- /dev/null +++ b/Titanic/ProjectInfoForm.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Titanic +{ + public partial class ProjectInfoForm : Form + { + string directory; + public ProjectInfoForm(string directory) + { + InitializeComponent(); + this.directory = directory; + Refresh(); + } + + private void ProjectInfoForm_Load(object sender, EventArgs e) + { + + } + + + + public override void Refresh() + { + base.Refresh(); + + listView1.Items.Clear(); + ProjectInfo info = ProjectInfo.FromDirectory(directory); + foreach(CommitData commit in info.Commits) + { + ListViewItem item = new ListViewItem(); + item.Text = commit.hash; + item.SubItems.Add(commit.Author); + item.SubItems.Add(commit.time.ToShortDateString() + " " + commit.time.ToShortTimeString()); + item.SubItems.Add(commit.comments); + + listView1.Items.Add(item); + } + + } + } +} diff --git a/Titanic/ProjectInfoForm.resx b/Titanic/ProjectInfoForm.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/Titanic/ProjectInfoForm.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Titanic/Titanic.csproj b/Titanic/Titanic.csproj new file mode 100644 index 0000000..6bf2ac4 --- /dev/null +++ b/Titanic/Titanic.csproj @@ -0,0 +1,15 @@ + + + + WinExe + net6.0-windows + enable + true + enable + + + + + + + \ No newline at end of file diff --git a/Titanic/Titanic.csproj.user b/Titanic/Titanic.csproj.user new file mode 100644 index 0000000..bf3fe5c --- /dev/null +++ b/Titanic/Titanic.csproj.user @@ -0,0 +1,14 @@ + + + + + Form + + + Form + + + Form + + + \ No newline at end of file diff --git a/Titanic/bin/Debug/net6.0-windows/Log.txt b/Titanic/bin/Debug/net6.0-windows/Log.txt new file mode 100644 index 0000000..a7b1ab2 --- /dev/null +++ b/Titanic/bin/Debug/net6.0-windows/Log.txt @@ -0,0 +1,5 @@ +Logger initiated at 1/31/2023 7:25:47 PM + +[1/31/2023 7:25:47 PM] Initiating Titanic, Infamous Syncer +[1/31/2023 7:25:47 PM] Reading settings from file success +[1/31/2023 7:25:47 PM] Reading settings from file success diff --git a/Titanic/bin/Debug/net6.0-windows/Log.txtLog.txt b/Titanic/bin/Debug/net6.0-windows/Log.txtLog.txt new file mode 100644 index 0000000..715d7af --- /dev/null +++ b/Titanic/bin/Debug/net6.0-windows/Log.txtLog.txt @@ -0,0 +1,4 @@ +Logger initiated at 1/31/2023 12:59:32 PM + +[1/31/2023 12:59:32 PM] Initiating Titanic, Infamous Syncer +[1/31/2023 12:59:33 PM] Wrote new settings to file @ C:\Users\warlock\Documents\Titanic.json diff --git a/Titanic/bin/Debug/net6.0-windows/Newtonsoft.Json.dll b/Titanic/bin/Debug/net6.0-windows/Newtonsoft.Json.dll new file mode 100644 index 0000000..8ba89bf Binary files /dev/null and b/Titanic/bin/Debug/net6.0-windows/Newtonsoft.Json.dll differ diff --git a/Titanic/bin/Debug/net6.0-windows/Titanic.deps.json b/Titanic/bin/Debug/net6.0-windows/Titanic.deps.json new file mode 100644 index 0000000..431e626 --- /dev/null +++ b/Titanic/bin/Debug/net6.0-windows/Titanic.deps.json @@ -0,0 +1,41 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v6.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v6.0": { + "Titanic/1.0.0": { + "dependencies": { + "Newtonsoft.Json": "13.0.2" + }, + "runtime": { + "Titanic.dll": {} + } + }, + "Newtonsoft.Json/13.0.2": { + "runtime": { + "lib/net6.0/Newtonsoft.Json.dll": { + "assemblyVersion": "13.0.0.0", + "fileVersion": "13.0.2.27524" + } + } + } + } + }, + "libraries": { + "Titanic/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Newtonsoft.Json/13.0.2": { + "type": "package", + "serviceable": true, + "sha512": "sha512-R2pZ3B0UjeyHShm9vG+Tu0EBb2lC8b0dFzV9gVn50ofHXh9Smjk6kTn7A/FdAsC8B5cKib1OnGYOXxRBz5XQDg==", + "path": "newtonsoft.json/13.0.2", + "hashPath": "newtonsoft.json.13.0.2.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/Titanic/bin/Debug/net6.0-windows/Titanic.dll b/Titanic/bin/Debug/net6.0-windows/Titanic.dll new file mode 100644 index 0000000..098f386 Binary files /dev/null and b/Titanic/bin/Debug/net6.0-windows/Titanic.dll differ diff --git a/Titanic/bin/Debug/net6.0-windows/Titanic.exe b/Titanic/bin/Debug/net6.0-windows/Titanic.exe new file mode 100644 index 0000000..dc1855a Binary files /dev/null and b/Titanic/bin/Debug/net6.0-windows/Titanic.exe differ diff --git a/Titanic/bin/Debug/net6.0-windows/Titanic.pdb b/Titanic/bin/Debug/net6.0-windows/Titanic.pdb new file mode 100644 index 0000000..258c381 Binary files /dev/null and b/Titanic/bin/Debug/net6.0-windows/Titanic.pdb differ diff --git a/Titanic/bin/Debug/net6.0-windows/Titanic.runtimeconfig.json b/Titanic/bin/Debug/net6.0-windows/Titanic.runtimeconfig.json new file mode 100644 index 0000000..f9988b2 --- /dev/null +++ b/Titanic/bin/Debug/net6.0-windows/Titanic.runtimeconfig.json @@ -0,0 +1,15 @@ +{ + "runtimeOptions": { + "tfm": "net6.0", + "frameworks": [ + { + "name": "Microsoft.NETCore.App", + "version": "6.0.0" + }, + { + "name": "Microsoft.WindowsDesktop.App", + "version": "6.0.0" + } + ] + } +} \ No newline at end of file diff --git a/Titanic/new_project_form.Designer.cs b/Titanic/new_project_form.Designer.cs new file mode 100644 index 0000000..7d66fe3 --- /dev/null +++ b/Titanic/new_project_form.Designer.cs @@ -0,0 +1,133 @@ +namespace Titanic +{ + partial class new_project_form + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 75); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(79, 15); + this.label1.TabIndex = 0; + this.label1.Text = "Project Name"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(36, 20); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(55, 15); + this.label2.TabIndex = 1; + this.label2.Text = "Directory"; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(99, 72); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(359, 23); + this.textBox1.TabIndex = 2; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(99, 17); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(286, 23); + this.textBox2.TabIndex = 3; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(391, 17); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(67, 23); + this.button1.TabIndex = 4; + this.button1.Text = "Browse..."; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // button2 + // + this.button2.Location = new System.Drawing.Point(302, 101); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 5; + this.button2.Text = "Add"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // button3 + // + this.button3.Location = new System.Drawing.Point(383, 101); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(75, 23); + this.button3.TabIndex = 6; + this.button3.Text = "Cancel"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); + // + // new_project_form + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(470, 131); + this.Controls.Add(this.button3); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "new_project_form"; + this.Text = "New Project"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private Label label1; + private Label label2; + private TextBox textBox1; + private TextBox textBox2; + private Button button1; + private Button button2; + private Button button3; + } +} \ No newline at end of file diff --git a/Titanic/new_project_form.cs b/Titanic/new_project_form.cs new file mode 100644 index 0000000..841e386 --- /dev/null +++ b/Titanic/new_project_form.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Titanic +{ + public partial class new_project_form : Form + { + Action> OnSuccess; + public new_project_form(Action> onSuccess) + { + InitializeComponent(); + OnSuccess = onSuccess; + } + + private void button3_Click(object sender, EventArgs e) + { + this.Close(); + } + + private void button2_Click(object sender, EventArgs e) + { + if(textBox1.Text.Length < 3) + { + MessageBox.Show("Project name must be longer than 2 letters"); + return; + } + + if (!Directory.Exists(textBox2.Text)) { + MessageBox.Show("Invalid git link"); + return; + } + + OnSuccess.Invoke(new KeyValuePair(textBox1.Text, textBox2.Text)); + this.Close(); + } + + private void button1_Click(object sender, EventArgs e) + { + FolderBrowserDialog fbd = new FolderBrowserDialog(); + if(fbd.ShowDialog() == DialogResult.OK) + { + textBox2.Text= fbd.SelectedPath; + textBox1.Text = fbd.SelectedPath.Substring(fbd.SelectedPath.LastIndexOf("\\")+1); + } + } + } +} diff --git a/Titanic/new_project_form.resx b/Titanic/new_project_form.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/Titanic/new_project_form.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Titanic/obj/Debug/net6.0-windows/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/Titanic/obj/Debug/net6.0-windows/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..ed92695 --- /dev/null +++ b/Titanic/obj/Debug/net6.0-windows/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.AssemblyInfo.cs b/Titanic/obj/Debug/net6.0-windows/Titanic.AssemblyInfo.cs new file mode 100644 index 0000000..a260ae4 --- /dev/null +++ b/Titanic/obj/Debug/net6.0-windows/Titanic.AssemblyInfo.cs @@ -0,0 +1,25 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Titanic")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Titanic")] +[assembly: System.Reflection.AssemblyTitleAttribute("Titanic")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] +[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")] +[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.AssemblyInfoInputs.cache b/Titanic/obj/Debug/net6.0-windows/Titanic.AssemblyInfoInputs.cache new file mode 100644 index 0000000..bf76567 --- /dev/null +++ b/Titanic/obj/Debug/net6.0-windows/Titanic.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +2e3912672eb24ce5ea4a1771006d7e973aa1758b diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.Form1.resources b/Titanic/obj/Debug/net6.0-windows/Titanic.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/Titanic.Form1.resources differ diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.GeneratedMSBuildEditorConfig.editorconfig b/Titanic/obj/Debug/net6.0-windows/Titanic.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..dc14ce7 --- /dev/null +++ b/Titanic/obj/Debug/net6.0-windows/Titanic.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,17 @@ +is_global = true +build_property.ApplicationManifest = +build_property.StartupObject = +build_property.ApplicationDefaultFont = +build_property.ApplicationHighDpiMode = +build_property.ApplicationUseCompatibleTextRendering = +build_property.ApplicationVisualStyles = +build_property.TargetFramework = net6.0-windows +build_property.TargetPlatformMinVersion = 7.0 +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = Titanic +build_property.ProjectDir = D:\Project\c#\shared\Titanic\Titanic\ diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.GlobalUsings.g.cs b/Titanic/obj/Debug/net6.0-windows/Titanic.GlobalUsings.g.cs new file mode 100644 index 0000000..84bbb89 --- /dev/null +++ b/Titanic/obj/Debug/net6.0-windows/Titanic.GlobalUsings.g.cs @@ -0,0 +1,10 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.Drawing; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; +global using global::System.Windows.Forms; diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.ProjectInfoForm.resources b/Titanic/obj/Debug/net6.0-windows/Titanic.ProjectInfoForm.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/Titanic.ProjectInfoForm.resources differ diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.assets.cache b/Titanic/obj/Debug/net6.0-windows/Titanic.assets.cache new file mode 100644 index 0000000..49b7e25 Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/Titanic.assets.cache differ diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.AssemblyReference.cache b/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.AssemblyReference.cache new file mode 100644 index 0000000..858fb49 Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.AssemblyReference.cache differ diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.BuildWithSkipAnalyzers b/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.CopyComplete b/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.CoreCompileInputs.cache b/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..fe8bdb4 --- /dev/null +++ b/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +df9c89a8c95990cc221e7d13453b50470fc9fac4 diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.FileListAbsolute.txt b/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..f8c33d1 --- /dev/null +++ b/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.FileListAbsolute.txt @@ -0,0 +1,21 @@ +D:\Project\c#\shared\Titanic\Titanic\bin\Debug\net6.0-windows\Titanic.exe +D:\Project\c#\shared\Titanic\Titanic\bin\Debug\net6.0-windows\Titanic.deps.json +D:\Project\c#\shared\Titanic\Titanic\bin\Debug\net6.0-windows\Titanic.runtimeconfig.json +D:\Project\c#\shared\Titanic\Titanic\bin\Debug\net6.0-windows\Titanic.dll +D:\Project\c#\shared\Titanic\Titanic\bin\Debug\net6.0-windows\Titanic.pdb +D:\Project\c#\shared\Titanic\Titanic\bin\Debug\net6.0-windows\Newtonsoft.Json.dll +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.csproj.AssemblyReference.cache +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.Form1.resources +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.new_project_form.resources +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.csproj.GenerateResource.cache +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.GeneratedMSBuildEditorConfig.editorconfig +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.AssemblyInfoInputs.cache +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.AssemblyInfo.cs +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.csproj.CoreCompileInputs.cache +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.csproj.CopyComplete +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.dll +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\refint\Titanic.dll +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.pdb +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.genruntimeconfig.cache +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\ref\Titanic.dll +D:\Project\c#\shared\Titanic\Titanic\obj\Debug\net6.0-windows\Titanic.ProjectInfoForm.resources diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.GenerateResource.cache b/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.GenerateResource.cache new file mode 100644 index 0000000..9b9edfc Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/Titanic.csproj.GenerateResource.cache differ diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.designer.deps.json b/Titanic/obj/Debug/net6.0-windows/Titanic.designer.deps.json new file mode 100644 index 0000000..eade7f6 --- /dev/null +++ b/Titanic/obj/Debug/net6.0-windows/Titanic.designer.deps.json @@ -0,0 +1,28 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v6.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v6.0": { + "Newtonsoft.Json/13.0.2": { + "runtime": { + "lib/net6.0/Newtonsoft.Json.dll": { + "assemblyVersion": "13.0.0.0", + "fileVersion": "13.0.2.27524" + } + } + } + } + }, + "libraries": { + "Newtonsoft.Json/13.0.2": { + "type": "package", + "serviceable": true, + "sha512": "sha512-R2pZ3B0UjeyHShm9vG+Tu0EBb2lC8b0dFzV9gVn50ofHXh9Smjk6kTn7A/FdAsC8B5cKib1OnGYOXxRBz5XQDg==", + "path": "newtonsoft.json/13.0.2", + "hashPath": "newtonsoft.json.13.0.2.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.designer.runtimeconfig.json b/Titanic/obj/Debug/net6.0-windows/Titanic.designer.runtimeconfig.json new file mode 100644 index 0000000..d6862d4 --- /dev/null +++ b/Titanic/obj/Debug/net6.0-windows/Titanic.designer.runtimeconfig.json @@ -0,0 +1,23 @@ +{ + "runtimeOptions": { + "tfm": "net6.0", + "frameworks": [ + { + "name": "Microsoft.NETCore.App", + "version": "6.0.0" + }, + { + "name": "Microsoft.WindowsDesktop.App", + "version": "6.0.0" + } + ], + "additionalProbingPaths": [ + "C:\\Users\\warlock\\.dotnet\\store\\|arch|\\|tfm|", + "C:\\Users\\warlock\\.nuget\\packages", + "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" + ], + "configProperties": { + "Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true + } + } +} \ No newline at end of file diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.dll b/Titanic/obj/Debug/net6.0-windows/Titanic.dll new file mode 100644 index 0000000..098f386 Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/Titanic.dll differ diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.genruntimeconfig.cache b/Titanic/obj/Debug/net6.0-windows/Titanic.genruntimeconfig.cache new file mode 100644 index 0000000..c592827 --- /dev/null +++ b/Titanic/obj/Debug/net6.0-windows/Titanic.genruntimeconfig.cache @@ -0,0 +1 @@ +05f51c83c12e719f0705ab134990205d8641eb35 diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.new_project_form.resources b/Titanic/obj/Debug/net6.0-windows/Titanic.new_project_form.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/Titanic.new_project_form.resources differ diff --git a/Titanic/obj/Debug/net6.0-windows/Titanic.pdb b/Titanic/obj/Debug/net6.0-windows/Titanic.pdb new file mode 100644 index 0000000..258c381 Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/Titanic.pdb differ diff --git a/Titanic/obj/Debug/net6.0-windows/apphost.exe b/Titanic/obj/Debug/net6.0-windows/apphost.exe new file mode 100644 index 0000000..dc1855a Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/apphost.exe differ diff --git a/Titanic/obj/Debug/net6.0-windows/ref/Titanic.dll b/Titanic/obj/Debug/net6.0-windows/ref/Titanic.dll new file mode 100644 index 0000000..4b09655 Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/ref/Titanic.dll differ diff --git a/Titanic/obj/Debug/net6.0-windows/refint/Titanic.dll b/Titanic/obj/Debug/net6.0-windows/refint/Titanic.dll new file mode 100644 index 0000000..4b09655 Binary files /dev/null and b/Titanic/obj/Debug/net6.0-windows/refint/Titanic.dll differ diff --git a/Titanic/obj/Titanic.csproj.nuget.dgspec.json b/Titanic/obj/Titanic.csproj.nuget.dgspec.json new file mode 100644 index 0000000..1889255 --- /dev/null +++ b/Titanic/obj/Titanic.csproj.nuget.dgspec.json @@ -0,0 +1,93 @@ +{ + "format": 1, + "restore": { + "D:\\Project\\c#\\shared\\Titanic\\Titanic\\Titanic.csproj": {} + }, + "projects": { + "D:\\Project\\c#\\shared\\Titanic\\Titanic\\Titanic.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Project\\c#\\shared\\Titanic\\Titanic\\Titanic.csproj", + "projectName": "Titanic", + "projectPath": "D:\\Project\\c#\\shared\\Titanic\\Titanic\\Titanic.csproj", + "packagesPath": "C:\\Users\\warlock\\.nuget\\packages\\", + "outputPath": "D:\\Project\\c#\\shared\\Titanic\\Titanic\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" + ], + "configFilePaths": [ + "C:\\Users\\warlock\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0-windows" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0-windows7.0": { + "targetAlias": "net6.0-windows", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0-windows7.0": { + "targetAlias": "net6.0-windows", + "dependencies": { + "Newtonsoft.Json": { + "target": "Package", + "version": "[13.0.2, )" + } + }, + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[6.0.12, 6.0.12]" + }, + { + "name": "Microsoft.NETCore.App.Host.win-x64", + "version": "[6.0.12, 6.0.12]" + }, + { + "name": "Microsoft.NETCore.App.Ref", + "version": "[6.0.12, 6.0.12]" + }, + { + "name": "Microsoft.WindowsDesktop.App.Ref", + "version": "[6.0.12, 6.0.12]" + } + ], + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + }, + "Microsoft.WindowsDesktop.App.WindowsForms": { + "privateAssets": "none" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/Titanic/obj/Titanic.csproj.nuget.g.props b/Titanic/obj/Titanic.csproj.nuget.g.props new file mode 100644 index 0000000..25235c6 --- /dev/null +++ b/Titanic/obj/Titanic.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\warlock\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder + PackageReference + 6.4.0 + + + + + + \ No newline at end of file diff --git a/Titanic/obj/Titanic.csproj.nuget.g.targets b/Titanic/obj/Titanic.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/Titanic/obj/Titanic.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Titanic/obj/project.assets.json b/Titanic/obj/project.assets.json new file mode 100644 index 0000000..3fedef1 --- /dev/null +++ b/Titanic/obj/project.assets.json @@ -0,0 +1,146 @@ +{ + "version": 3, + "targets": { + "net6.0-windows7.0": { + "Newtonsoft.Json/13.0.2": { + "type": "package", + "compile": { + "lib/net6.0/Newtonsoft.Json.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net6.0/Newtonsoft.Json.dll": { + "related": ".xml" + } + } + } + } + }, + "libraries": { + "Newtonsoft.Json/13.0.2": { + "sha512": "R2pZ3B0UjeyHShm9vG+Tu0EBb2lC8b0dFzV9gVn50ofHXh9Smjk6kTn7A/FdAsC8B5cKib1OnGYOXxRBz5XQDg==", + "type": "package", + "path": "newtonsoft.json/13.0.2", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.md", + "README.md", + "lib/net20/Newtonsoft.Json.dll", + "lib/net20/Newtonsoft.Json.xml", + "lib/net35/Newtonsoft.Json.dll", + "lib/net35/Newtonsoft.Json.xml", + "lib/net40/Newtonsoft.Json.dll", + "lib/net40/Newtonsoft.Json.xml", + "lib/net45/Newtonsoft.Json.dll", + "lib/net45/Newtonsoft.Json.xml", + "lib/net6.0/Newtonsoft.Json.dll", + "lib/net6.0/Newtonsoft.Json.xml", + "lib/netstandard1.0/Newtonsoft.Json.dll", + "lib/netstandard1.0/Newtonsoft.Json.xml", + "lib/netstandard1.3/Newtonsoft.Json.dll", + "lib/netstandard1.3/Newtonsoft.Json.xml", + "lib/netstandard2.0/Newtonsoft.Json.dll", + "lib/netstandard2.0/Newtonsoft.Json.xml", + "newtonsoft.json.13.0.2.nupkg.sha512", + "newtonsoft.json.nuspec", + "packageIcon.png" + ] + } + }, + "projectFileDependencyGroups": { + "net6.0-windows7.0": [ + "Newtonsoft.Json >= 13.0.2" + ] + }, + "packageFolders": { + "C:\\Users\\warlock\\.nuget\\packages\\": {}, + "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Project\\c#\\shared\\Titanic\\Titanic\\Titanic.csproj", + "projectName": "Titanic", + "projectPath": "D:\\Project\\c#\\shared\\Titanic\\Titanic\\Titanic.csproj", + "packagesPath": "C:\\Users\\warlock\\.nuget\\packages\\", + "outputPath": "D:\\Project\\c#\\shared\\Titanic\\Titanic\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" + ], + "configFilePaths": [ + "C:\\Users\\warlock\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0-windows" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0-windows7.0": { + "targetAlias": "net6.0-windows", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0-windows7.0": { + "targetAlias": "net6.0-windows", + "dependencies": { + "Newtonsoft.Json": { + "target": "Package", + "version": "[13.0.2, )" + } + }, + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[6.0.12, 6.0.12]" + }, + { + "name": "Microsoft.NETCore.App.Host.win-x64", + "version": "[6.0.12, 6.0.12]" + }, + { + "name": "Microsoft.NETCore.App.Ref", + "version": "[6.0.12, 6.0.12]" + }, + { + "name": "Microsoft.WindowsDesktop.App.Ref", + "version": "[6.0.12, 6.0.12]" + } + ], + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + }, + "Microsoft.WindowsDesktop.App.WindowsForms": { + "privateAssets": "none" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.101\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/Titanic/obj/project.nuget.cache b/Titanic/obj/project.nuget.cache new file mode 100644 index 0000000..16e88b4 --- /dev/null +++ b/Titanic/obj/project.nuget.cache @@ -0,0 +1,14 @@ +{ + "version": 2, + "dgSpecHash": "Ol4IX0IuZlcC9xH5LVwXhEnJ6ET5J0Kpd8v/wGXmTufCnbnNleJjMfEYxeF+bvCA72cYPkf+Mpkdls5dA3qLoQ==", + "success": true, + "projectFilePath": "D:\\Project\\c#\\shared\\Titanic\\Titanic\\Titanic.csproj", + "expectedPackageFiles": [ + "C:\\Users\\warlock\\.nuget\\packages\\newtonsoft.json\\13.0.2\\newtonsoft.json.13.0.2.nupkg.sha512", + "C:\\Users\\warlock\\.nuget\\packages\\microsoft.windowsdesktop.app.ref\\6.0.12\\microsoft.windowsdesktop.app.ref.6.0.12.nupkg.sha512", + "C:\\Users\\warlock\\.nuget\\packages\\microsoft.netcore.app.ref\\6.0.12\\microsoft.netcore.app.ref.6.0.12.nupkg.sha512", + "C:\\Users\\warlock\\.nuget\\packages\\microsoft.aspnetcore.app.ref\\6.0.12\\microsoft.aspnetcore.app.ref.6.0.12.nupkg.sha512", + "C:\\Users\\warlock\\.nuget\\packages\\microsoft.netcore.app.host.win-x64\\6.0.12\\microsoft.netcore.app.host.win-x64.6.0.12.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file