This commit is contained in:
IsaykinEugene 2025-04-29 15:33:18 +03:00
commit 9638abfb0a
525 changed files with 42043 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/projectSettingsUpdater.xml
/.idea.PresenceDesktop.iml
/contentModel.xml
/modules.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AvaloniaProject">
<option name="projectPerEditor">
<map>
<entry key="PresenceDesktop/MainWindow.axaml" value="PresenceDesktop/PresenceDesktop.csproj" />
</map>
</option>
</component>
</project>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings" defaultProject="true" />
</project>

40
PresenceDesktop.sln Normal file
View File

@ -0,0 +1,40 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PresenceDesktop", "PresenceDesktop\PresenceDesktop.csproj", "{F23030E1-A7DF-4DBC-B7B3-6056D8F391EF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "data", "data\data.csproj", "{F2FCC5EF-BF36-4CCD-9EC8-AB71E091C04E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "domain", "domain\domain.csproj", "{7D4EBB6B-E8E0-4508-B420-AE5B3E9197F4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ui", "ui\ui.csproj", "{71A02240-C0FC-48C1-B21D-64936A577849}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "presence_console", "presence_console\presence_console.csproj", "{FF14A48E-4354-4D65-92D7-221639CE6397}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F23030E1-A7DF-4DBC-B7B3-6056D8F391EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F23030E1-A7DF-4DBC-B7B3-6056D8F391EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F23030E1-A7DF-4DBC-B7B3-6056D8F391EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F23030E1-A7DF-4DBC-B7B3-6056D8F391EF}.Release|Any CPU.Build.0 = Release|Any CPU
{F2FCC5EF-BF36-4CCD-9EC8-AB71E091C04E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F2FCC5EF-BF36-4CCD-9EC8-AB71E091C04E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F2FCC5EF-BF36-4CCD-9EC8-AB71E091C04E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F2FCC5EF-BF36-4CCD-9EC8-AB71E091C04E}.Release|Any CPU.Build.0 = Release|Any CPU
{7D4EBB6B-E8E0-4508-B420-AE5B3E9197F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7D4EBB6B-E8E0-4508-B420-AE5B3E9197F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7D4EBB6B-E8E0-4508-B420-AE5B3E9197F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7D4EBB6B-E8E0-4508-B420-AE5B3E9197F4}.Release|Any CPU.Build.0 = Release|Any CPU
{71A02240-C0FC-48C1-B21D-64936A577849}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71A02240-C0FC-48C1-B21D-64936A577849}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71A02240-C0FC-48C1-B21D-64936A577849}.Release|Any CPU.ActiveCfg = Release|Any CPU
{71A02240-C0FC-48C1-B21D-64936A577849}.Release|Any CPU.Build.0 = Release|Any CPU
{FF14A48E-4354-4D65-92D7-221639CE6397}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FF14A48E-4354-4D65-92D7-221639CE6397}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FF14A48E-4354-4D65-92D7-221639CE6397}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FF14A48E-4354-4D65-92D7-221639CE6397}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

10
PresenceDesktop/App.axaml Normal file
View File

@ -0,0 +1,10 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="PresenceDesktop.App"
RequestedThemeVariant="Default">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.Styles>
<FluentTheme />
</Application.Styles>
</Application>

View File

@ -0,0 +1,23 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
namespace PresenceDesktop;
public partial class App : Application
{
public override void Initialize()
{
AvaloniaXamlLoader.Load(this);
}
public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.MainWindow = new MainWindow();
}
base.OnFrameworkInitializationCompleted();
}
}

View File

@ -0,0 +1,9 @@
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="PresenceDesktop.MainWindow"
Title="PresenceDesktop">
Welcome to Avalonia!
</Window>

View File

@ -0,0 +1,11 @@
using Avalonia.Controls;
namespace PresenceDesktop;
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}

View File

@ -0,0 +1,30 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.2.1"/>
<PackageReference Include="Avalonia.Desktop" Version="11.2.1"/>
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.1"/>
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.2.1"/>
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Include="Avalonia.Diagnostics" Version="11.2.1">
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
</PackageReference>
<PackageReference Include="ClosedXML" Version="0.105.0-rc" />
<PackageReference Include="CsvHelper" Version="33.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.0-rc.1.24451.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0-rc.1.24451.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.0-rc.1" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,21 @@
using Avalonia;
using System;
namespace PresenceDesktop;
class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
// yet and stuff might break.
[STAThread]
public static void Main(string[] args) => BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace();
}

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<!-- This manifest is used on Windows only.
Don't remove it as it might cause problems with window transparency and embedded controls.
For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests -->
<assemblyIdentity version="1.0.0.0" name="PresenceDesktop.Desktop"/>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on
and is designed to work with. Uncomment the appropriate elements
and Windows will automatically select the most compatible environment. -->
<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
</application>
</compatibility>
</assembly>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"runtimeOptions": {
"tfm": "net9.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "9.0.0"
},
"configProperties": {
"System.Reflection.NullabilityInfoContext.IsSupported": true,
"System.Runtime.InteropServices.BuiltInComInterop.IsSupported": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More