From 1546dd4d91f1d5d4ef36354d7e8ad92af6004a91 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 11 Jan 2017 14:48:40 +0100 Subject: [PATCH] Added Frontend Socket project --- Backend/Backend.csproj | 1 + FrontSocket/App.config | 6 ++ FrontSocket/Frontend-Socket.csproj | 62 +++++++++++++++++++ FrontSocket/Program.cs | 15 +++++ FrontSocket/Properties/AssemblyInfo.cs | 36 +++++++++++ .../etcsystemd/swarmops-frontend.service | 12 ++++ Site/App_GlobalResources/Menu5.designer.cs | 2 +- Site/App_GlobalResources/Menu5.resx | 2 +- Swarmops.sln | 24 ++++++- 9 files changed, 157 insertions(+), 3 deletions(-) create mode 100644 FrontSocket/App.config create mode 100644 FrontSocket/Frontend-Socket.csproj create mode 100644 FrontSocket/Program.cs create mode 100644 FrontSocket/Properties/AssemblyInfo.cs create mode 100644 FrontSocket/etcsystemd/swarmops-frontend.service diff --git a/Backend/Backend.csproj b/Backend/Backend.csproj index 8643b853..de3957ca 100644 --- a/Backend/Backend.csproj +++ b/Backend/Backend.csproj @@ -114,6 +114,7 @@ + diff --git a/FrontSocket/App.config b/FrontSocket/App.config new file mode 100644 index 00000000..88fa4027 --- /dev/null +++ b/FrontSocket/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/FrontSocket/Frontend-Socket.csproj b/FrontSocket/Frontend-Socket.csproj new file mode 100644 index 00000000..93ba97ba --- /dev/null +++ b/FrontSocket/Frontend-Socket.csproj @@ -0,0 +1,62 @@ + + + + + Debug + AnyCPU + {8424E871-028B-4BFA-B956-E575A8F413E2} + Exe + Properties + Swarmops.Frontend.Socket + Swarmops.Frontend.Socket + v4.5.2 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/FrontSocket/Program.cs b/FrontSocket/Program.cs new file mode 100644 index 00000000..574f134c --- /dev/null +++ b/FrontSocket/Program.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FrontSocket +{ + class Program + { + static void Main(string[] args) + { + } + } +} diff --git a/FrontSocket/Properties/AssemblyInfo.cs b/FrontSocket/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..b2c91b01 --- /dev/null +++ b/FrontSocket/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("FrontSocket")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("FrontSocket")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("8424e871-028b-4bfa-b956-e575a8f413e2")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/FrontSocket/etcsystemd/swarmops-frontend.service b/FrontSocket/etcsystemd/swarmops-frontend.service new file mode 100644 index 00000000..ed0fca6e --- /dev/null +++ b/FrontSocket/etcsystemd/swarmops-frontend.service @@ -0,0 +1,12 @@ +[Unit] +Description=Swarmops Frontend +After=network.target + +[Service] +ExecStart=/usr/bin/mono /usr/share/swarmops/frontend/Swarmops.Frontend.Socket.exe +WorkingDirectory=/usr/share/swarmops/frontend +Restart=on-abort + +[Install] +WantedBy=multi-user.target + diff --git a/Site/App_GlobalResources/Menu5.designer.cs b/Site/App_GlobalResources/Menu5.designer.cs index fb7cbc8b..3ac4e8d6 100644 --- a/Site/App_GlobalResources/Menu5.designer.cs +++ b/Site/App_GlobalResources/Menu5.designer.cs @@ -394,7 +394,7 @@ namespace Resources { } /// - /// Looks up a localized string similar to Manage my Budgets. + /// Looks up a localized string similar to Manage My Budgets. /// internal static string Menu5_Financial_ManageBudgets { get { diff --git a/Site/App_GlobalResources/Menu5.resx b/Site/App_GlobalResources/Menu5.resx index 90cc8dd9..b76131cc 100644 --- a/Site/App_GlobalResources/Menu5.resx +++ b/Site/App_GlobalResources/Menu5.resx @@ -214,7 +214,7 @@ Salaries - Manage my Budgets + Manage My Budgets Pay Out Money diff --git a/Swarmops.sln b/Swarmops.sln index 80c5b608..54fa4203 100644 --- a/Swarmops.sln +++ b/Swarmops.sln @@ -1,5 +1,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 +# Visual Studio 14 +VisualStudioVersion = 14.0.25123.0 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Logic", "Logic\Logic.csproj", "{13E59551-34AC-43DC-9A03-EF5E4721DC61}" ProjectSection(ProjectDependencies) = postProject {BBF83512-8486-469E-9D7B-C3C1B78C3F4D} = {BBF83512-8486-469E-9D7B-C3C1B78C3F4D} @@ -40,6 +42,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Site", "Site\Site.csproj", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Interface", "Interface\Interface.csproj", "{BA24FAF7-D518-49E8-952A-45595682877E}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Frontend-Socket", "FrontSocket\Frontend-Socket.csproj", "{8424E871-028B-4BFA-B956-E575A8F413E2}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Autobuild|.NET = Autobuild|.NET @@ -200,6 +204,24 @@ Global {BA24FAF7-D518-49E8-952A-45595682877E}.Release|Any CPU.Build.0 = Release|Any CPU {BA24FAF7-D518-49E8-952A-45595682877E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {BA24FAF7-D518-49E8-952A-45595682877E}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Autobuild|.NET.ActiveCfg = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Autobuild|.NET.Build.0 = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Autobuild|Any CPU.ActiveCfg = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Autobuild|Any CPU.Build.0 = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Autobuild|Mixed Platforms.ActiveCfg = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Autobuild|Mixed Platforms.Build.0 = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Debug|.NET.ActiveCfg = Debug|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Debug|.NET.Build.0 = Debug|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Release|.NET.ActiveCfg = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Release|.NET.Build.0 = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Release|Any CPU.Build.0 = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {8424E871-028B-4BFA-B956-E575A8F413E2}.Release|Mixed Platforms.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE