DeliveriesDocuments { get; set; }
6 | }
7 |
--------------------------------------------------------------------------------
/BlazorServerLib/Components/Account/Pages/_Imports.razor:
--------------------------------------------------------------------------------
1 | @using BlazorLib.Components.Shared.Layouts
2 | @using Microsoft.AspNetCore.Components.Web
3 | @using Microsoft.AspNetCore.Http
4 | @using BlazorLib.Components.Account.Shared
5 |
6 | @layout MainLayout
7 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Account/Pages/InvalidPasswordResetPage.razor:
--------------------------------------------------------------------------------
1 | @page "/Account/InvalidPasswordReset"
2 |
3 | Incorrect password reset
4 |
5 | Incorrect password reset
6 |
7 | The password reset link is invalid.
8 |
9 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Documents/_Imports.razor:
--------------------------------------------------------------------------------
1 | @using BlazorLib.Components.Documents.Forms.fields.simple
2 | @using BlazorLib.Components.Documents
3 | @using BlazorLib.Components.Documents.Forms
4 | @using BlazorLib.Components.Documents.Forms.fields
5 | @using MudBlazor
--------------------------------------------------------------------------------
/SharedLib/Models/result/ExternalLoginSignInResponseModel.cs:
--------------------------------------------------------------------------------
1 | namespace SharedLib;
2 |
3 | ///
4 | public class ExternalLoginSignInResponseModel : IdentityResultResponseModel
5 | {
6 | ///
7 | public string? Email { get; set; }
8 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace ToolsMauiApp;
2 |
3 | ///
4 | public partial class MainPage : ContentPage
5 | {
6 | ///
7 | public MainPage()
8 | {
9 | InitializeComponent();
10 | }
11 | }
--------------------------------------------------------------------------------
/micro-services/BankService/README.md:
--------------------------------------------------------------------------------
1 | ## Bank
2 |
3 | Т-Банк
4 | - Классический расчётный счёт. Получение информации об операциях на р/с.
5 | - Интернет-эквайринг (merchant). Формирование url для оплаты банковской картой.
6 | - QR СБП. Генерация QR для оплаты СБП/НСПК.
--------------------------------------------------------------------------------
/BlazorLib/Components/ParametersShared/DecimalParameterStorageComponent.razor:
--------------------------------------------------------------------------------
1 | @using MudBlazor
2 | @inherits BlazorBusyComponentBaseModel
3 |
4 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Account/Pages/InvalidUserPage.razor:
--------------------------------------------------------------------------------
1 | @page "/Account/InvalidUser"
2 |
3 | Invalid user
4 |
5 | Invalid user
6 |
7 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Account/Pages/LockoutPage.razor:
--------------------------------------------------------------------------------
1 | @page "/Account/Lockout"
2 |
3 | Blocked
4 |
5 |
9 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Shared/Layouts/WithoutMenuLayout.razor.cs:
--------------------------------------------------------------------------------
1 | namespace BlazorLib.Components.Shared.Layouts;
2 |
3 | ///
4 | /// WithoutMenuLayout
5 | ///
6 | public partial class WithoutMenuLayout
7 | {
8 | private bool _isDarkMode = true;
9 | }
10 |
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Resources/AppIcon/appicon.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/devops/secrets/email-conf.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "SmtpConfig": {
3 | "PublicName": "iq-s.pro",
4 | "Email": "badhitman@yandex.ru",
5 | "Login": "badhitman",
6 | "Password": "*************",
7 |
8 | "Host": "smtp.yandex.ru",
9 | "Port": 465
10 | }
11 | }
--------------------------------------------------------------------------------
/BlankBlazorApp/BlankBlazorApp/.config/dotnet-tools.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "isRoot": true,
4 | "tools": {
5 | "dotnet-ef": {
6 | "version": "9.0.0",
7 | "commands": [
8 | "dotnet-ef"
9 | ],
10 | "rollForward": false
11 | }
12 | }
13 | }
--------------------------------------------------------------------------------
/BlankCRM.AppHost/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft.AspNetCore": "Warning",
6 | "Aspire.Hosting.Dcp": "Warning"
7 | }
8 | },
9 | "Parameters": {
10 | "WithAspire": "default"
11 | }
12 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Account/Pages/ForgotPasswordConfirmationPage.razor:
--------------------------------------------------------------------------------
1 | @page "/Account/ForgotPasswordConfirmation"
2 |
3 | Recover forgotten password
4 |
5 | Recover forgotten password
6 |
7 | Please check your email to reset your password.
8 |
9 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Pages/ToolsPage.razor:
--------------------------------------------------------------------------------
1 | @page "/help-desk/tools"
2 |
3 | @using BlazorLib.Components.HelpDesk
4 |
5 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
6 | @attribute [Authorize(Roles = GlobalStaticConstantsRoles.Roles.Admin)]
7 |
8 |
--------------------------------------------------------------------------------
/BlazorLib/RedirectToLogin.razor:
--------------------------------------------------------------------------------
1 | @inject NavigationManager NavigationManager
2 |
3 | @code {
4 | protected override void OnInitialized()
5 | {
6 | NavigationManager.NavigateTo($"Account/Login?returnUrl={Uri.EscapeDataString(NavigationManager.Uri)}", forceLoad: true);
7 | }
8 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Platforms/Android/Resources/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #512BD4
4 | #2B0B98
5 | #2B0B98
6 |
--------------------------------------------------------------------------------
/micro-services/ApiRestService/.config/dotnet-tools.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "isRoot": true,
4 | "tools": {
5 | "dotnet-ef": {
6 | "version": "9.0.0",
7 | "commands": [
8 | "dotnet-ef"
9 | ],
10 | "rollForward": false
11 | }
12 | }
13 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Commerce/Pages/AttendanceCreateOderPage.razor:
--------------------------------------------------------------------------------
1 | @page "/attendance/create-order"
2 |
3 | @using BlazorLib.Components.Commerce.Attendances
4 |
5 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
6 | @attribute [Authorize]
7 |
8 |
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Components/Pages/TakePhotoPage.razor:
--------------------------------------------------------------------------------
1 | @page "/take-photo"
2 | @inject IJSRuntime js
3 |
4 | @using BlazorLib.Components.ToolsApp
5 | @using DbcLib
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiAppMigration/migrations.md:
--------------------------------------------------------------------------------
1 | ```
2 | Add-Migration ToolsAppContext002 -Context ToolsAppContext -Project ToolsMauiAppMigration -StartupProject ToolsMauiAppMigration
3 | Update-Database -Context ToolsAppContext -Project ToolsMauiAppMigration -StartupProject ToolsMauiAppMigration
4 | ```
--------------------------------------------------------------------------------
/BlazorLib/Components/Constructor/FieldsClient/GeneratorClientViewComponent.razor:
--------------------------------------------------------------------------------
1 | @inherits FieldComponentBaseModel
2 |
3 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Constructor/Pages/ConstructorPage.razor:
--------------------------------------------------------------------------------
1 | @page "/constructor"
2 |
3 | @using BlazorLib.Components.Constructor
4 |
5 | @attribute [Authorize]
6 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
7 |
8 | Конструктор
9 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Users/Pages/UsersPage.razor:
--------------------------------------------------------------------------------
1 | @page "/Users/Profiles"
2 | @page "/Users"
3 |
4 | @attribute [Authorize(Roles = GlobalStaticConstantsRoles.Roles.Admin)]
5 |
6 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
7 |
8 | Пользователи
9 |
--------------------------------------------------------------------------------
/SharedLibStandard21/Enum/StockSharp/BondTypesEnum.cs:
--------------------------------------------------------------------------------
1 | namespace SharedLib;
2 |
3 | ///
4 | /// BndTypes
5 | ///
6 | public enum BondTypesEnum
7 | {
8 | ///
9 | Govt,
10 |
11 | ///
12 | Muni,
13 |
14 | ///
15 | Corp
16 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Account/Pages/ResetPasswordConfirmationPage.razor:
--------------------------------------------------------------------------------
1 | @page "/Account/ResetPasswordConfirmation"
2 |
3 | Confirm password reset
4 |
5 | Confirm password reset
6 |
7 | Your password has been reset. Please, click here to login.
8 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Retail/Delivery/DeliveryOrdersLinksAboutComponent.razor:
--------------------------------------------------------------------------------
1 | x @Orders.Count
2 |
3 | @code {
4 | ///
5 | /// Заказы (документы)
6 | ///
7 | [Parameter,EditorRequired]
8 | public required List Orders { get; set; }
9 | }
--------------------------------------------------------------------------------
/micro-services/KladrService/appsettings.Staging.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/micro-services/StorageService/appsettings.Staging.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Retail/Orders/OrderPaymentsAboutComponent.razor:
--------------------------------------------------------------------------------
1 |
2 | Платежи x @PaymentsDocuments.Count
3 |
4 | @code {
5 | [Parameter, EditorRequired]
6 | public required List PaymentsDocuments { get; set; }
7 | }
8 |
--------------------------------------------------------------------------------
/micro-services/KladrService/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/micro-services/StorageService/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Retail/Orders/OrderConversionsAboutComponent.razor:
--------------------------------------------------------------------------------
1 |
2 | Переводы x @ConversionsDocuments.Count
3 |
4 | @code {
5 | [Parameter, EditorRequired]
6 | public required List ConversionsDocuments { get; set; }
7 | }
8 |
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Components/Routes.razor:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/micro-services/FilesIndexingService/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/micro-services/FilesIndexingService/appsettings.Staging.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/micro-services/outer/ApiBreezRuService/appsettings.Staging.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Shared/FiltersUniversalComponent.razor:
--------------------------------------------------------------------------------
1 | @using MudBlazor
2 |
3 | @foreach (var state in States)
4 | {
5 | @state
6 | }
7 |
--------------------------------------------------------------------------------
/BlazorServerLib/IdleCircuitOptions.cs:
--------------------------------------------------------------------------------
1 | namespace BlazorWebLib;
2 |
3 | ///
4 | /// IdleCircuitOptions
5 | ///
6 | public class IdleCircuitOptions
7 | {
8 | ///
9 | /// IdleTimeout
10 | ///
11 | public TimeSpan IdleTimeout { get; set; } = TimeSpan.FromMinutes(5);
12 | }
--------------------------------------------------------------------------------
/micro-services/outer/ApiBreezRuService/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/micro-services/outer/ApiRusklimatComService/appsettings.Staging.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Constructor/_Imports.razor:
--------------------------------------------------------------------------------
1 | @using MudBlazor
2 | @using BlazorLib.Components.Constructor.DirectoriesCatalog
3 | @using BlazorLib.Components.Constructor.Document
4 | @using BlazorLib.Components.Constructor.Form
5 | @using BlazorLib.Components.Constructor.Manufacture
6 | @using BlazorLib.Components.Constructor.Projects
7 |
--------------------------------------------------------------------------------
/micro-services/outer/ApiDaichiBusinessService/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/micro-services/outer/ApiDaichiBusinessService/appsettings.Staging.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/micro-services/outer/ApiRusklimatComService/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/micro-services/outer/FeedsHaierProffRuService/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/micro-services/outer/FeedsHaierProffRuService/appsettings.Staging.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Trace",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | },
8 | "NLog": {
9 | "RemoveLoggerFactoryFilter": true
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Account/Pages/AccessDeniedPage.razor:
--------------------------------------------------------------------------------
1 | @page "/Account/AccessDenied"
2 |
3 |
4 | Access denied
5 |
6 |
7 |
13 |
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Platforms/iOS/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | using Foundation;
2 |
3 | namespace ToolsMauiApp;
4 |
5 | ///
6 | [Register("AppDelegate")]
7 | public class AppDelegate : MauiUIApplicationDelegate
8 | {
9 | ///
10 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
11 | }
--------------------------------------------------------------------------------
/micro-services/ApiRestService/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft.AspNetCore": "Warning"
6 | }
7 | },
8 | "PartUploadSessionConfig": {
9 | "PartUploadSessionTimeoutSeconds": 60000,
10 | "PartUploadSize": 2000000
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Platforms/MacCatalyst/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | using Foundation;
2 |
3 | namespace ToolsMauiApp;
4 |
5 | ///
6 | [Register("AppDelegate")]
7 | public class AppDelegate : MauiUIApplicationDelegate
8 | {
9 | ///
10 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
11 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Commerce/Pages/OfferCardEditPage.razor:
--------------------------------------------------------------------------------
1 | @page "/nomenclature/offer-card/{OfferId:int}"
2 |
3 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
4 | @attribute [Authorize]
5 |
6 |
7 |
8 | @code {
9 | [Parameter]
10 | public int OfferId { get; set; }
11 | }
12 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Pages/ConsolePage.razor:
--------------------------------------------------------------------------------
1 | @page "/help-desk/console"
2 | @using BlazorLib.Components.HelpDesk
3 |
4 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
5 | @attribute [Authorize(Roles = $"{GlobalStaticConstantsRoles.Roles.HelpDeskRubricsManage},{GlobalStaticConstantsRoles.Roles.Admin}")]
6 |
7 |
--------------------------------------------------------------------------------
/BlazorServerLib/Components/Account/Pages/RegisterConfirmationPage.razor:
--------------------------------------------------------------------------------
1 | @page "/Account/RegisterConfirmation"
2 |
3 | Подтверждение регистрации
4 |
5 | Подтверждение регистрации
6 |
7 |
8 |
9 | Пожалуйста, проверьте свою электронную почту, чтобы подтвердить свою учетную запись.
--------------------------------------------------------------------------------
/SharedLib/Models/UserMdStruct.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// UserMdStruct
9 | ///
10 | public record struct UserMdStruct(string Id, string Email, long? Tg);
--------------------------------------------------------------------------------
/micro-services/outer/FeedsHaierProffRuService/README.md:
--------------------------------------------------------------------------------
1 | ## RSS feed Haierproff
2 |
3 | Интеграция RSS фида каталога кондиционеров Haierproff.
4 | Фид содержит и отображает полную информацию о моделях оборудования представленных на Haierproff.ru, его параметрах и характеристиках.
5 |
6 | Ссылка на фид HaierProff
7 | https://haierproff.ru/feeds/cond/?type=partners
--------------------------------------------------------------------------------
/BlazorLib/Components/Shared/tabs/TabComponent.razor:
--------------------------------------------------------------------------------
1 | @implements ITab
2 | @inherits BlazorBusyComponentBaseModel
3 |
4 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
5 |
6 |
7 |
8 | @Title
9 |
10 |
--------------------------------------------------------------------------------
/devops/secrets/top-menu.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "NavMenuConfig": {
3 | "TopNavMenuItems": [
4 | {
5 | "Title": "WhatsApp",
6 | "IsNavLinkMatchAll": true,
7 | "HrefNav": "https://wa.me/+10000000000",
8 | "CssClass": "link-success",
9 | "Tooltip": "Обратная связь (Поддержка)"
10 | }
11 | ]
12 | }
13 | }
--------------------------------------------------------------------------------
/micro-services/TelegramBotService/Services/PollingService.cs:
--------------------------------------------------------------------------------
1 | namespace TelegramBotService;
2 |
3 | ///
4 | /// Compose Polling and ReceiverService implementations
5 | ///
6 | public class PollingService(IServiceProvider serviceProvider, ILogger logger) : PollingServiceBase(serviceProvider, logger)
7 | {
8 |
9 | }
--------------------------------------------------------------------------------
/ServerLib/DateTimeConverter.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json.Converters;
2 |
3 | namespace ServerLib;
4 |
5 | ///
6 | /// DateTimeConverter
7 | ///
8 | public class DateTimeConverter : IsoDateTimeConverter
9 | {
10 | ///
11 | ///
12 | ///
13 | public DateTimeConverter() => DateTimeFormat = "dd.MM.yyyy";
14 | }
15 |
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/StockSharp/ConnectRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// ConnectRequestModel
9 | ///
10 | public class ConnectRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/micro-services/LdapService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "LdapService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development"
9 | }
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/micro-services/TelegramBotService/Abstract/IReceiverService.cs:
--------------------------------------------------------------------------------
1 | namespace TelegramBotService;
2 |
3 | ///
4 | /// A marker interface for Update Receiver service
5 | ///
6 | public interface IReceiverService
7 | {
8 | ///
9 | /// Receive
10 | ///
11 | Task ReceiveAsync(CancellationToken stoppingToken);
12 | }
13 |
--------------------------------------------------------------------------------
/SharedLib/Models/auth/EmailSingleModel.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel.DataAnnotations;
2 |
3 | namespace SharedLib;
4 |
5 | ///
6 | /// Email
7 | ///
8 | public class EmailSingleModel
9 | {
10 | ///
11 | /// Email
12 | ///
13 | [Required]
14 | [EmailAddress]
15 | public string Email { get; set; } = "";
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/SelectAccountsRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SelectAccountsRequestModel
9 | ///
10 | public class SelectAccountsRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Platforms/Windows/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/micro-services/KladrService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "KladrService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development"
9 | }
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/BlazorLib/Components/TinyMCEComponent.razor:
--------------------------------------------------------------------------------
1 | @inherits BlazorBusyComponentBaseModel
2 |
3 |
4 |
5 | @if (!string.IsNullOrWhiteSpace(HelperText))
6 | {
7 | @HelperText
8 | }
--------------------------------------------------------------------------------
/SharedLib/Models/auth/PasswordSingleModel.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel.DataAnnotations;
2 |
3 | namespace SharedLib;
4 |
5 | ///
6 | /// Пароль
7 | ///
8 | public class PasswordSingleModel
9 | {
10 | ///
11 | /// Пароль
12 | ///
13 | [DataType(DataType.Password)]
14 | public string Password { get; set; } = "";
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/outer/daichi/DaichiRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// DaichiRequestModel
9 | ///
10 | public class DaichiRequestModel : SimplePaginationRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/SharedLib/Models/outer/haier/HaierRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// HaierRequestModel
9 | ///
10 | public class HaierRequestModel : SimplePaginationRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/StockSharp/StrategyStopRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// StrategyStopRequestModel
9 | ///
10 | public class StrategyStopRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/TelegramBot/SearchUsersTelegramModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SearchUsersTelegramModel
9 | ///
10 | public class SearchUsersTelegramModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/micro-services/ApiRestService/wwwroot/assets/css/swagger-style.css:
--------------------------------------------------------------------------------
1 | html, body, #swagger-ui, .swagger-ui {
2 | height: 100%;
3 | }
4 |
5 | html, #swagger-ui, .swagger-ui {
6 | height: 100%;
7 | }
8 |
9 | body, #swagger-ui, .swagger-ui {
10 | min-height: 100%;
11 | }
12 |
13 | .swagger-container {
14 | background-color: #c7c7c7 !important;
15 | overflow: auto;
16 | }
--------------------------------------------------------------------------------
/micro-services/TelegramBotService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "TelegramBotService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development"
9 | }
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/SharedLib/Models/outer/breez/request/BreezRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// BreezRequestModel
9 | ///
10 | public class BreezRequestModel : SimplePaginationRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiAppMigration/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "profiles": {
3 | "ToolsMauiAppMigration": {
4 | "commandName": "Project",
5 | "launchBrowser": true,
6 | "environmentVariables": {
7 | "ASPNETCORE_ENVIRONMENT": "Development"
8 | },
9 | "applicationUrl": "https://localhost:54652;http://localhost:54653"
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/micro-services/outer/ApiBreezRuService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "ApiBreezRuService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development"
9 | }
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/SharedLib/Models/request/SelectTransfersBanksRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SelectTransfersBanksRequestModel
9 | ///
10 | public class SelectTransfersBanksRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Constructor/SessionsValuesOfFieldViewComponent.razor:
--------------------------------------------------------------------------------
1 | @inherits BlazorBusyComponentBaseModel
2 |
3 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Retail/Clients/ClientsBalancesComponent.razor:
--------------------------------------------------------------------------------
1 | @foreach (WalletRetailModelDB _w in Wallets)
2 | {
3 | [@_w.WalletType?.Name] @_w.Balance
4 | }
5 |
6 | @code {
7 | [Parameter, EditorRequired]
8 | public required List Wallets { get; set; }
9 | }
10 |
--------------------------------------------------------------------------------
/SharedLib/IServices/transmission/IBreezRuApiTransmission.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// IBreezRuApiTransmission
9 | ///
10 | public interface IBreezRuApiTransmission : IBreezRuApiService
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/SharedLib/Models/auth/PhoneSingleModel.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel.DataAnnotations;
2 |
3 | namespace SharedLib;
4 |
5 | ///
6 | /// Phone
7 | ///
8 | public class PhoneSingleModel
9 | {
10 | ///
11 | /// Phone
12 | ///
13 | [Phone]
14 | [Display(Name = "Номер телефона")]
15 | public string? PhoneNumber { get; set; }
16 | }
17 |
--------------------------------------------------------------------------------
/SharedLib/Models/request/SelectCustomersBanksIdsRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SelectCustomersBanksIdsRequestModel
9 | ///
10 | public class SelectCustomersBanksIdsRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Pages/ArticlesPage.razor:
--------------------------------------------------------------------------------
1 | @page "/articles"
2 |
3 | @using BlazorLib.Components.Articles
4 | @using BlazorLib.Components.HelpDesk
5 | @using BlazorLib.Components.Rubrics
6 | @using MudBlazor
7 | @using static SharedLib.GlobalStaticConstantsRoutes
8 |
9 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
10 | @attribute [Authorize]
11 |
12 |
--------------------------------------------------------------------------------
/SharedLib/Models/commerce/WarehouseRowDocumentRecord.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// WarehouseRowDocumentRecord
9 | ///
10 | public record WarehouseRowDocumentRecord(int WarehouseId, RowOfOrderDocumentModelDB Row);
--------------------------------------------------------------------------------
/SharedLib/Models/db/telegram/PhotoMessageTelegramModelDB.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// PhotoMessageTelegramModelDB
9 | ///
10 | public class PhotoMessageTelegramModelDB : PhotoSizeTelegramModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/SharedLib/Models/outer/rusklimat/request/RusklimatRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// RusklimatRequestModel
9 | ///
10 | public class RusklimatRequestModel : SimplePaginationRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/SelectInitPaymentsTBankRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SelectInitPaymentsTBankRequestModel
9 | ///
10 | public class SelectInitPaymentsTBankRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Enum/StringLocalizeAreaEnum.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// StringLocalizeAreaEnum
9 | ///
10 | public enum StringLocalizeAreaEnum
11 | {
12 | ///
13 | LeftMainMenu
14 | }
--------------------------------------------------------------------------------
/devops/etc/systemd/system/docker-compose-app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Docker Compose Application Service
3 | Requires=docker.service
4 | After=docker.service
5 |
6 | [Service]
7 | Type=oneshot
8 | RemainAfterExit=yes
9 | WorkingDirectory=/srv
10 | ExecStart=docker compose up -d
11 | ExecStop=docker compose down
12 | TimeoutStartSec=0
13 | User=root
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/micro-services/outer/ApiDaichiBusinessService/README.md:
--------------------------------------------------------------------------------
1 | ## API Daichi Бизнес (daichi.business)
2 | Интеграция https://daichi.business/
3 | GET https://api.daichi.ru/b2b/<версия>/<метод>?<параметры>
4 | - Получение списка доступных складов (GET: `/stores/get`)
5 | - Получение информации об остатках товара на складе (GET: `/products/get`)
6 | - Получение информации о характеристиках товаров (GET: `/productparams/get`)
--------------------------------------------------------------------------------
/BlazorLib/Components/Shared/tabs/TabSetComponent.razor:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 |
10 | @ActiveTab?.ChildContent
11 |
--------------------------------------------------------------------------------
/SharedLib/Models/commerce/WarehouseDocumentRecord.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// WarehouseDocumentRecord
9 | ///
10 | public record WarehouseDocumentRecord(int WarehouseId, int WritingOffWarehouseId, bool IsDisabled);
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/StockSharp/OrdersSelectStockSharpRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// OrdersSelectStockSharpRequestModel
9 | ///
10 | public class OrdersSelectStockSharpRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/micro-services/outer/outers-credentials-example.json:
--------------------------------------------------------------------------------
1 | {
2 | "BreezApiConfig": {
3 | "UserId": "",
4 | "Password": "",
5 | "Version": "v1"
6 | },
7 | "DaichiApiConfig": {
8 | "Token": "",
9 | "Version": "v1"
10 | },
11 | "RusklimarApiConfig": {
12 | "PartnerId": "xxxxxxxxxxxx",
13 | "UserId": "9990001122",
14 | "Password": "------",
15 | "Version": "v1"
16 | }
17 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Commerce/Pages/OrganizationEditPage.razor:
--------------------------------------------------------------------------------
1 | @page "/organizations/edit/{OrganizationId:int}"
2 |
3 | @using BlazorLib.Components.Commerce.Organizations
4 | @using MudBlazor
5 |
6 | @inherits BlazorBusyComponentBaseModel
7 |
8 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
9 | @attribute [Authorize]
10 |
11 |
--------------------------------------------------------------------------------
/SharedLib/Models/request/retail/SelectWalletsRetailsTypesRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SelectWalletsRetailsTypesRequestModel
9 | ///
10 | public class SelectWalletsRetailsTypesRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/SharedLib/Models/telegram/TelegramAuthModel.cs:
--------------------------------------------------------------------------------
1 | namespace SharedLib;
2 |
3 | ///
4 | /// TelegramAuthModel
5 | ///
6 | public class TelegramAuthModel
7 | {
8 | ///
9 | /// InitData
10 | ///
11 | public string? InitData { get; set; }
12 |
13 | ///
14 | /// IsPremium
15 | ///
16 | public bool IsPremium { get; set; }
17 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Pages/ArticleEditPage.razor:
--------------------------------------------------------------------------------
1 | @page "/articles/edit-card/{ArticleId:int}"
2 | @page "/articles/edit-card/"
3 |
4 | @using BlazorLib.Components.Articles
5 |
6 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
7 | @attribute [Authorize]
8 |
9 |
10 |
11 | @code {
12 | [Parameter]
13 | public int? ArticleId { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/IServices/transmission/IRusklimatComApiTransmission.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// IRusklimatComApiTransmission
9 | ///
10 | public interface IRusklimatComApiTransmission : IRusklimatComApiService
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/SharedLib/Models/auth/NewEmailSingleModel.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel.DataAnnotations;
2 |
3 | namespace SharedLib;
4 |
5 | ///
6 | /// Email
7 | ///
8 | public class NewEmailSingleModel
9 | {
10 | ///
11 | /// Email
12 | ///
13 | [Required]
14 | [EmailAddress]
15 | [Display(Name = "Новый E-mail")]
16 | public string? NewEmail { get; set; }
17 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/result/ResponseSimpleModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | public partial class ResponseSimpleModel : ResponseBaseModel
9 | {
10 | ///
11 | public string? Response { get; set; }
12 | }
13 |
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Components/_Imports.razor:
--------------------------------------------------------------------------------
1 | @using System.Net.Http
2 | @using System.Net.Http.Json
3 | @using Microsoft.AspNetCore.Components.Forms
4 | @using Microsoft.AspNetCore.Components.Routing
5 | @using Microsoft.AspNetCore.Components.Web
6 | @using Microsoft.AspNetCore.Components.Web.Virtualization
7 | @using Microsoft.JSInterop
8 | @using ToolsMauiApp
9 | @using ToolsMauiApp.Components
10 | @using MudBlazor
--------------------------------------------------------------------------------
/micro-services/BankService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "BankService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development",
9 | "TransmissionQueueNamePrefix": ""
10 | }
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/SharedLib/IServices/transmission/IDaichiBusinessApiTransmission.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// IDaichiBusinessApiTransmission
9 | ///
10 | public interface IDaichiBusinessApiTransmission : IDaichiBusinessApiService
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/micro-services/CommerceService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "CommerceService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development",
9 | "TransmissionQueueNamePrefix": ""
10 | }
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/micro-services/HelpDeskService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "HelpDeskService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development",
9 | "TransmissionQueueNamePrefix": ""
10 | }
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/micro-services/StorageService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "StorageService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development",
9 | "TransmissionQueueNamePrefix": ""
10 | }
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/micro-services/IdentityService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "IdentityService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development",
9 | "TransmissionQueueNamePrefix": ""
10 | }
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Retail/Pages/OrderRetailPage.razor:
--------------------------------------------------------------------------------
1 | @page "/retail/order-document/{OrderId:int}"
2 |
3 | @using BlazorLib.Components.Retail.Orders
4 |
5 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
6 | @attribute [Authorize]
7 |
8 | Заказ (розница) # @OrderId
9 |
10 |
11 | @code {
12 | [Parameter]
13 | public int OrderId { get; set; }
14 | }
--------------------------------------------------------------------------------
/micro-services/ConstructorService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "ConstructorService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development",
9 | "TransmissionQueueNamePrefix": ""
10 | }
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/micro-services/FilesIndexingService/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/launchsettings.json",
3 | "profiles": {
4 | "FileIndexingService": {
5 | "commandName": "Project",
6 | "dotnetRunMessages": true,
7 | "environmentVariables": {
8 | "DOTNET_ENVIRONMENT": "Development",
9 | "TransmissionQueueNamePrefix": ""
10 | }
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Bank/TBankMerchantTableComponent.razor:
--------------------------------------------------------------------------------
1 | @using MudBlazor
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Commerce/Pages/OfficeOrganizationPage.razor:
--------------------------------------------------------------------------------
1 | @page "/organizations/edit/office/{AddressForOrganization:int}"
2 | @using BlazorLib.Components.Commerce.Organizations
3 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
4 |
5 |
6 |
7 | @code {
8 | [Parameter]
9 | public int AddressForOrganization { get; set; }
10 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/SelectIncomingMerchantPaymentsTBankRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SelectIncomingMerchantPaymentsTBankRequestModel
9 | ///
10 | public class SelectIncomingMerchantPaymentsTBankRequestModel
11 | {
12 |
13 | }
--------------------------------------------------------------------------------
/micro-services/LdapService/Program.cs:
--------------------------------------------------------------------------------
1 | using System.Text;
2 |
3 | namespace LdapService;
4 |
5 | public class Program
6 | {
7 | public static void Main(string[] args)
8 | {
9 | Console.OutputEncoding = Encoding.UTF8;
10 | var builder = Host.CreateApplicationBuilder(args);
11 | builder.Services.AddHostedService();
12 |
13 | var host = builder.Build();
14 | host.Run();
15 | }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/auth/CheckToken2FARequestModel.cs:
--------------------------------------------------------------------------------
1 | namespace SharedLib;
2 |
3 | ///
4 | /// Check Token 2FA Request
5 | ///
6 | public class CheckToken2FARequestModel
7 | {
8 | ///
9 | /// UserAlias
10 | ///
11 | public required string UserAlias { get; set; }
12 |
13 | ///
14 | /// Token
15 | ///
16 | public required string Token { get; set; }
17 | }
--------------------------------------------------------------------------------
/BlankBlazorApp/BlankBlazorApp/appsettings.Staging.json:
--------------------------------------------------------------------------------
1 | {
2 | "DetailedErrors": true,
3 | "UserManage": {
4 | "UpdatesUsersRoles": [
5 | {
6 | "EmailUser": "badhitman@ya.ru",
7 | "SetRoles": [ "admin", "HelpDeskManager", "debug" ]
8 | },
9 | {
10 | "EmailUser": "badhitman@yandex.ru",
11 | "SetRoles": [ "admin", "HelpDeskManager", "HelpDeskUnit", "debug" ]
12 | }
13 | ]
14 | }
15 | }
--------------------------------------------------------------------------------
/BlankBlazorApp/BlankBlazorApp/wwwroot/js/ckeditor5/translations/kk.js:
--------------------------------------------------------------------------------
1 | (function(n){const t=n["kk"]=n["kk"]||{};t.dictionary=Object.assign(t.dictionary||{},{"Align center":"Ортадан туралау","Align left":"Солға туралау","Align right":"Оңға туралау",Justify:"","Text alignment":"Мәтінді туралау","Text alignment toolbar":"Мәтінді туралау құралдар тақтасы"});t.getPluralForm=function(n){return n!=1}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
--------------------------------------------------------------------------------
/BlazorLib/Components/Pages/JournalUniversalPage.razor:
--------------------------------------------------------------------------------
1 | @page "/documents-journal/{DocumentNameOrId}"
2 | @page "/documents-journal"
3 |
4 | @attribute [Authorize]
5 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
6 |
7 | @using MudBlazor
8 |
9 | @inherits BlazorBusyComponentBaseModel
10 |
11 | Документы
12 |
13 |
--------------------------------------------------------------------------------
/SharedLib/Models/outer/daichi/StoreInfoDaichiModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// StoreInfoDaichiModel
9 | ///
10 | public class StoreInfoDaichiModel : DaichiEntryModel
11 | {
12 | ///
13 | public string? IS_DEFAULT { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/GetTBankAccountsRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// GetTBankAccountsRequest
9 | ///
10 | public class GetTBankAccountsRequestModel
11 | {
12 | ///
13 | public int BankConnectionId { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Enum/BanksIdentifyTypesEnum.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// BanksIdentifyTypesEnum
9 | ///
10 | public enum BanksIdentifyTypesEnum
11 | {
12 | ///
13 | ByInn,
14 |
15 | ///
16 | ByName
17 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiLib/Extensions.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace ToolsMauiLib;
6 |
7 | public static class Extensions
8 | {
9 |
10 | ///
11 | /// NormalizedUri
12 | ///
13 | public static string NormalizedUriEnd(this string cli)=> cli.EndsWith('/') ? cli : $"{cli}/";
14 | }
--------------------------------------------------------------------------------
/BlankBlazorApp/BlankBlazorApp/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "DetailedErrors": true,
3 | "UserManage": {
4 | "UpdatesUsersRoles": [
5 | {
6 | "EmailUser": "badhitman@ya.ru",
7 | "SetRoles": [ "admin", "HelpDeskManager", "debug" ]
8 | },
9 | {
10 | "EmailUser": "badhitman@yandex.ru",
11 | "SetRoles": [ "admin", "HelpDeskManager", "HelpDeskUnit", "debug" ]
12 | }
13 | ]
14 | }
15 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/FilesIndexing/SheetViewComponent.razor:
--------------------------------------------------------------------------------
1 |
2 |
3 | @for (uint _r = 0; _r <= maxRowIndex; _r++)
4 | {
5 |
6 | @for (uint _c = 0; _c <= maxColIndex; _c++)
7 | {
8 | | @GetData(_c, _r) |
9 | }
10 |
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Shared/Layouts/AccountManageLayout.razor:
--------------------------------------------------------------------------------
1 | @layout MainLayout
2 | @inherits LayoutComponentBase
3 |
4 | Set up your account
5 |
6 |
7 |
Editing your account settings
8 |
9 |
10 |
13 |
14 | @Body
15 |
16 |
17 |
--------------------------------------------------------------------------------
/SharedLib/Models/outer/breez/CategoryBreezRuModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 |
6 | namespace SharedLib;
7 |
8 | ///
9 | /// CategoryBreezRuBaseModel
10 | ///
11 | public class CategoryBreezRuModel : BreezRuBaseModel
12 | {
13 | ///
14 | public string? Level { get; set; }
15 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/StockSharp/ResetStrategyRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// ResetStrategyRequestModel
9 | ///
10 | public class ResetStrategyRequestModel
11 | {
12 | ///
13 | public int InstrumentId { get; set; }
14 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/App.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace ToolsMauiApp;
2 |
3 | ///
4 | public partial class App : Application
5 | {
6 | ///
7 | public App()
8 | {
9 | InitializeComponent();
10 | }
11 |
12 | ///
13 | protected override Window CreateWindow(IActivationState? activationState)
14 | {
15 | return new Window(new MainPage()) { Title = "ToolsMauiApp" };
16 | }
17 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/InputRichTextComponent.razor:
--------------------------------------------------------------------------------
1 | @inherits InputTextArea
2 |
3 |
13 |
14 |
--------------------------------------------------------------------------------
/SharedLib/Models/RowOrderDocumentRecord.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 |
6 | namespace SharedLib;
7 |
8 | ///
9 | /// RowOrderDocumentRecord
10 | ///
11 | public record RowOrderDocumentRecord(int DocumentId, StatusesDocumentsEnum? DocumentStatus, int OfferId, int GoodsId, decimal Quantity, int WarehouseId);
--------------------------------------------------------------------------------
/SharedLib/Models/spec/EntryAltTagModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// EntryAltTagModel
9 | ///
10 | public class EntryAltTagModel : EntryAltModel
11 | {
12 | ///
13 | /// Tag
14 | ///
15 | public string? Tag { get; set; }
16 | }
--------------------------------------------------------------------------------
/BlankBlazorApp/BlankBlazorApp/wwwroot/js/ckeditor5/translations/oc.js:
--------------------------------------------------------------------------------
1 | (function(r){const o=r["oc"]=r["oc"]||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Bold:"Gras",Cancel:"Anullar",Clear:"",Code:"",Italic:"Italica","Remove color":"","Restore default":"",Save:"Enregistrar","Show more items":"",Strikethrough:"",Subscript:"",Superscript:"",Underline:""});o.getPluralForm=function(r){return r>1}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
--------------------------------------------------------------------------------
/BlazorLib/Components/Account/Shared/ShowRecoveryCodes.razor.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore.Components;
2 |
3 | namespace BlazorLib.Components.Account.Shared;
4 |
5 | ///
6 | public partial class ShowRecoveryCodes : ComponentBase
7 | {
8 | ///
9 | [Parameter]
10 | public string[] RecoveryCodes { get; set; } = [];
11 |
12 | ///
13 | [Parameter]
14 | public string? StatusMessage { get; set; }
15 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/FilesIndexing/TableWordViewComponent.razor:
--------------------------------------------------------------------------------
1 |
2 |
3 | @for (uint _r = 0; _r <= maxRowIndex; _r++)
4 | {
5 |
6 | @for (uint _c = 0; _c <= maxColIndex; _c++)
7 | {
8 | | @GetData(_c, _r) |
9 | }
10 |
11 | }
12 |
13 |
14 |
--------------------------------------------------------------------------------
/SharedLib/Models/outer/daichi/BaseDaichiModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | public class BaseDaichiModel : DaichiEntryModel
9 | {
10 | ///
11 | public string? PRICE { get; set; }
12 | ///
13 | public string? CURRENCY { get; set; }
14 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Retail/Pages/ClientCardPage.razor:
--------------------------------------------------------------------------------
1 | @page "/retail/client-card/{ClientId}"
2 |
3 | @using BlazorLib.Components.Retail.Clients
4 |
5 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
6 | @attribute [Authorize]
7 |
8 | @if (!string.IsNullOrWhiteSpace(ClientId))
9 | {
10 |
11 | }
12 |
13 | @code {
14 | [Parameter]
15 | public string? ClientId { get; set; }
16 | }
17 |
--------------------------------------------------------------------------------
/SharedLib/Models/commerce/OfferActionModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// OfferActionModel
9 | ///
10 | public class OfferActionModel : OfferModelDB
11 | {
12 | ///
13 | /// Quantity
14 | ///
15 | public decimal Quantity { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/outer/daichi/PricesdDaichiModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | public class PricesdDaichiModel
9 | {
10 | ///
11 | public BaseDaichiModel? BASE { get; set; }
12 |
13 | ///
14 | public BaseDaichiModel? mprc { get; set; }
15 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Enum/MerchantsBanksEnum.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using System.ComponentModel;
6 |
7 | namespace SharedLib;
8 |
9 | ///
10 | /// MerchantsBanksEnum
11 | ///
12 | public enum MerchantsBanksEnum
13 | {
14 | ///
15 | [Description("T-Bank касса")]
16 | TBankCash,
17 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/StatusMessage.razor:
--------------------------------------------------------------------------------
1 | @using SharedLib
2 |
3 | @if (Messages?.Any() == true)
4 | {
5 |
6 |
7 |
8 | @foreach (ResultMessage ie in Messages)
9 | {
10 | - @ie.Text
11 | }
12 |
13 |
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/PaginationMeta.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// PaginationMeta
9 | ///
10 | public class PaginationMeta
11 | {
12 | ///
13 | public long At { get; set; }
14 |
15 | ///
16 | public int Page_size { get; set; }
17 | }
18 |
--------------------------------------------------------------------------------
/SharedLib/Models/api/PartUploadedBaseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// PartUploadedBaseModel
9 | ///
10 | public class PartUploadedBaseModel
11 | {
12 | ///
13 | /// SessionId
14 | ///
15 | public required string SessionId { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/api/request/KladrsRequestBaseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// KladrsRequestBaseModel
9 | ///
10 | public class KladrsRequestBaseModel
11 | {
12 | ///
13 | /// Code (КЛАДР)
14 | ///
15 | public string? Code { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/api/request/UpdateSystemNameModel.cs:
--------------------------------------------------------------------------------
1 | namespace SharedLib;
2 |
3 | ///
4 | /// Установить системное имя сущности.
5 | ///
6 | ///
7 | /// Если установить null (или пустую строку), тогда значение удаляется
8 | ///
9 | public class UpdateSystemNameModel : SystemNameEntryModel
10 | {
11 | ///
12 | /// Генератор кода
13 | ///
14 | public required int ManufactureId { get; set; }
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/bank/PaymentsForReceiptTBankModelDB.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// PaymentsForReceiptTBankModelDB
9 | ///
10 | public class PaymentsForReceiptTBankModelDB : PaymentsForReceiptTBankModel
11 | {
12 | ///
13 | public int Id { get; set; }
14 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/libman.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0",
3 | "defaultProvider": "cdnjs",
4 | "libraries": [
5 | {
6 | "library": "bootstrap@5.3.3",
7 | "destination": "wwwroot/lib/bootstrap/"
8 | },
9 | {
10 | "library": "tinymce@7.4.0",
11 | "destination": "wwwroot/lib/tinymce/"
12 | },
13 | {
14 | "library": "bootstrap-icons@1.11.3",
15 | "destination": "wwwroot/lib/bootstrap-icons/"
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/micro-services/BankService/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "ProductEndpoint": "http://bankservice",
3 | "ProductEndpointHttps": "https://bankservice",
4 | "Logging": {
5 | "LogLevel": {
6 | "Default": "Information",
7 | "Microsoft.Hosting.Lifetime": "Information"
8 | }
9 | },
10 | "RabbitMQConfig": {
11 | "HostName": "localhost",
12 | "Port": 5672,
13 | "ClientProvidedName": "debug",
14 | "RemoteCallTimeoutMs": 100000
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/SharedLib/Models/auth/RecoveryCodeSingleModel.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel.DataAnnotations;
2 |
3 | namespace SharedLib;
4 |
5 | ///
6 | /// Код восстановления
7 | ///
8 | public class RecoveryCodeSingleModel
9 | {
10 | ///
11 | /// Код восстановления
12 | ///
13 | [Required]
14 | [DataType(DataType.Text)]
15 | [Display(Name = "Код восстановления")]
16 | public string RecoveryCode { get; set; } = "";
17 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/helpdesk/PulseIssueBaseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// PulseIssueBaseModel
9 | ///
10 | public class PulseIssueBaseModel : PulseIssueLowModel
11 | {
12 | ///
13 | /// Issue
14 | ///
15 | public int IssueId { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/StockSharp/StrategyStartRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// StrategyStartRequestModel
9 | ///
10 | public class StrategyStartRequestModel
11 | {
12 | ///
13 | public PortfolioStockSharpModel? SelectedPortfolio { get; set; }
14 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Platforms/Tizen/Main.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Microsoft.Maui;
3 | using Microsoft.Maui.Hosting;
4 |
5 | namespace ToolsMauiApp
6 | {
7 | internal class Program : MauiApplication
8 | {
9 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
10 |
11 | static void Main(string[] args)
12 | {
13 | var app = new Program();
14 | app.Run(args);
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Shared/UsersManageNavMenu.razor:
--------------------------------------------------------------------------------
1 |
2 | -
3 | Пользователи
4 |
5 | -
6 | Роли
7 |
8 | -
9 | Telegram
10 |
11 |
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/BankContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class BankContext(DbContextOptions options) : BankLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/MainAppContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using DbLayerLib;
6 | using Microsoft.EntityFrameworkCore;
7 |
8 | namespace DbcLib;
9 |
10 | ///
11 | /// Контекст доступа к MySQL БД
12 | ///
13 | public class MainAppContext(DbContextOptions options) : LayerContext(options)
14 | {
15 |
16 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/BankContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class BankContext(DbContextOptions options) : BankLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/NLogsContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public class NLogsContext(DbContextOptions options) : NLogsLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/BankContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class BankContext(DbContextOptions options) : BankLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/auth/AuthAlterModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// AuthAlterModel
9 | ///
10 | public class AuthAlterModel : IdentityPasswordVersionModel
11 | {
12 | ///
13 | /// Version
14 | ///
15 | public required string PartnerId { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/commerce/OrderRowsQueryRecord.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// OrderRowsQueryRecord
9 | ///
10 | public record OrderRowsQueryRecord(OrderDocumentModelDB Document, TabOfficeForOrderModelDb TabAddress, RowOfOrderDocumentModelDB Row, OfferModelDB Offer, NomenclatureModelDB Goods);
--------------------------------------------------------------------------------
/SharedLib/Models/forms/SingleStringPropertyModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @fakegov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Single string property
9 | ///
10 | public class SingleStringPropertyModel
11 | {
12 | ///
13 | /// Property
14 | ///
15 | public required string Property { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/spec/EntryAltDescriptionModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | ///
9 | ///
10 | public class EntryAltDescriptionModel : EntryAltModel
11 | {
12 | ///
13 | /// Описание
14 | ///
15 | public string? Description { get; set; }
16 | }
17 |
--------------------------------------------------------------------------------
/devops/etc/systemd/system/bank.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=bank.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/BankService
6 | ExecStart=/usr/bin/dotnet /srv/services/BankService/BankService.dll
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-bank-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/devops/etc/systemd/system/ldap.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=ldap.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/LdapService
6 | ExecStart=/usr/bin/dotnet /srv/services/LdapService/LdapService.dll
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-ldap-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/micro-services/CommerceService/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "ProductEndpoint": "http://commerceservice",
3 | "ProductEndpointHttps": "https://commerceservice",
4 | "Logging": {
5 | "LogLevel": {
6 | "Default": "Information",
7 | "Microsoft.Hosting.Lifetime": "Information"
8 | }
9 | },
10 | "RabbitMQConfig": {
11 | "HostName": "localhost",
12 | "Port": 5672,
13 | "ClientProvidedName": "debug",
14 | "RemoteCallTimeoutMs": 100000
15 | }
16 | }
--------------------------------------------------------------------------------
/BlankBlazorApp/BlankBlazorApp/wwwroot/js/ckeditor5/translations/gu.js:
--------------------------------------------------------------------------------
1 | (function(e){const o=e["gu"]=e["gu"]||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"",Bold:"ઘાટુ - બોલ્ડ્",Cancel:"",Clear:"",Code:"",Italic:"ત્રાંસુ - ઇટલિક્","Remove color":"","Restore default":"",Save:"","Show more items":"",Strikethrough:"",Subscript:"",Superscript:"",Underline:"નીચે લિટી - અન્ડરલાઇન્"});o.getPluralForm=function(e){return e!=1}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/NLogsContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class NLogsContext(DbContextOptions options) : NLogsLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/MainAppContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using DbLayerLib;
6 | using Microsoft.EntityFrameworkCore;
7 |
8 | namespace DbcLib;
9 |
10 | ///
11 | /// Контекст доступа к Postgres
12 | ///
13 | public class MainAppContext(DbContextOptions options) : LayerContext(options)
14 | {
15 |
16 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/MainAppContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using DbLayerLib;
6 | using Microsoft.EntityFrameworkCore;
7 |
8 | namespace DbcLib;
9 |
10 | ///
11 | /// Контекст доступа к SQLite БД
12 | ///
13 | public class MainAppContext(DbContextOptions options) : LayerContext(options)
14 | {
15 |
16 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/NLogsContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class NLogsContext(DbContextOptions options) : NLogsLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/RemoteCallLib/MQTTCallLib/base/IBaseReceive.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Обработчик входящего сообщения
9 | ///
10 | public interface IBaseReceive
11 | {
12 | ///
13 | /// Имя очереди
14 | ///
15 | public static string QueueName { get; } = string.Empty;
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/RequestKeyModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// RequestKeyModel
9 | ///
10 | public class RequestKeyModel
11 | {
12 | ///
13 | public string? RequestKey { get; set; }
14 |
15 | ///
16 | public DateTime Expire { get; set; }
17 | }
--------------------------------------------------------------------------------
/SharedLib/Models/constructor/fit/BaseFormFitModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Базовая модель
9 | ///
10 | public abstract class BaseFormFitModel : SortableFitModel
11 | {
12 | ///
13 | /// CSS класс формы
14 | ///
15 | public string? Css { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/constructor/fit/DocumentFitModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Документ
9 | ///
10 | public class DocumentFitModel : BaseFitModel
11 | {
12 | ///
13 | /// Формы документа
14 | ///
15 | public required List Tabs { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/storage/TableWordIndexFileModelDB.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// TableWordIndexFileModel
9 | ///
10 | public class TableWordIndexFileModelDB : IndexFileSortedModel
11 | {
12 | ///
13 | public List? Data { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/StockSharp/ShiftCurveRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// ShiftCurveRequestModel
9 | ///
10 | public class ShiftCurveRequestModel
11 | {
12 | ///
13 | /// YieldChange
14 | ///
15 | public decimal YieldChange { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/api/request/TRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Авторизованный запрос (от имени пользователя)
9 | ///
10 | public class TRequestModel
11 | {
12 | ///
13 | /// Request
14 | ///
15 | public T? Payload { get; set; }
16 | }
--------------------------------------------------------------------------------
/micro-services/TelegramBotService/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "ProductEndpoint": "http://telegrambotpolling",
3 | "ProductEndpointHttps": "https://telegrambotpolling",
4 | "Logging": {
5 | "LogLevel": {
6 | "Default": "Information",
7 | "Microsoft.Hosting.Lifetime": "Information"
8 | }
9 | },
10 | "RabbitMQConfig": {
11 | "HostName": "localhost",
12 | "Port": 5672,
13 | "ClientProvidedName": "debug",
14 | "RemoteCallTimeoutMs": 10000
15 | }
16 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Retail/Pages/ConversionRetailDocumentPage.razor:
--------------------------------------------------------------------------------
1 | @page "/retail/conversion-document/{ConversionId:int}"
2 |
3 | @using BlazorLib.Components.Retail.Conversions
4 |
5 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
6 | @attribute [Authorize]
7 |
8 | Перевод/обмен # @ConversionId
9 |
10 |
11 |
12 | @code {
13 | [Parameter]
14 | public int ConversionId { get; set; }
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/StorageContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class StorageContext(DbContextOptions options) : StorageLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/constructor/FormFieldOfSessionModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Form field of session
9 | ///
10 | public class FormFieldOfSessionModel : FormFieldModel
11 | {
12 | ///
13 | /// Session Id
14 | ///
15 | public int? SessionId { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/constructor/fit/SortableFitModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SortableFitModel
9 | ///
10 | public class SortableFitModel : BaseFitModel
11 | {
12 | ///
13 | /// Индекс сортировки
14 | ///
15 | public required int SortIndex { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/constructor/fit/TabFitModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Таб/Вкладка документа
9 | ///
10 | public class TabFitModel : SortableFitModel
11 | {
12 | ///
13 | /// Формы документа
14 | ///
15 | public required FormFitModel[] Forms { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/constructor/snapshot/FieldSnapshotModelDB.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Field of document snapshot
9 | ///
10 | public class FieldSnapshotModelDB : BaseFieldModel
11 | {
12 |
13 | ///
14 | public required TypesFieldsFormsEnum TypeField { get; set; }
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/constructor/snapshot/SortableSystemSnapshotModelDB.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Sortable
9 | ///
10 | public class SortableSystemSnapshotModelDB : SystemEntryDescriptionOwnedModel
11 | {
12 | ///
13 | public required int SortIndex { get; set; }
14 | }
15 |
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/storage/FundedParametersModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// FundedParametersModel
9 | ///
10 | public class FundedParametersModel : StorageBaseModel
11 | {
12 | ///
13 | /// Payload
14 | ///
15 | public T? Payload { get; set; }
16 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Platforms/Android/MainApplication.cs:
--------------------------------------------------------------------------------
1 | using Android.App;
2 | using Android.Runtime;
3 |
4 | namespace ToolsMauiApp
5 | {
6 | [Application]
7 | public class MainApplication : MauiApplication
8 | {
9 | public MainApplication(IntPtr handle, JniHandleOwnership ownership)
10 | : base(handle, ownership)
11 | {
12 | }
13 |
14 | protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/devops/etc/systemd/system/bus.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=bus.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/StorageService
6 | ExecStart=/usr/bin/dotnet /srv/services/StorageService/StorageService.dll
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-bus-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/devops/etc/systemd/system/hd.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=hd.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/HelpDeskService
6 | ExecStart=/usr/bin/dotnet /srv/services/HelpDeskService/HelpDeskService.dll
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-hd-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/devops/etc/systemd/system/kladr.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=kladr.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/KladrService
6 | ExecStart=/usr/bin/dotnet /srv/services/KladrService/KladrService.dll
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-kladr-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/devops/secrets/api-access.json:
--------------------------------------------------------------------------------
1 | {
2 | "ApiAccess": {
3 | "Permissions": [
4 | {
5 | "User": "testSystem",
6 | "Secret": "00000000-0000-0000-0000-000000000000",
7 | "Roles": [
8 | "SystemRoot"
9 | ]
10 | },
11 | {
12 | "User": "test",
13 | "Secret": "00000000-0000-0000-0000-000000000000",
14 | "Roles": [
15 | "OrganizationsWriteCommerce",
16 | "PaymentsWriteCommerce",
17 | "OrdersWriteCommerce"
18 | ]
19 | }
20 | ]
21 | }
22 | }
--------------------------------------------------------------------------------
/BlankBlazorApp/BlankBlazorApp.Client/_Imports.razor:
--------------------------------------------------------------------------------
1 | @using System.Net.Http
2 | @using System.Net.Http.Json
3 | @using Microsoft.AspNetCore.Components.Authorization
4 | @using Microsoft.AspNetCore.Components.Forms
5 | @using Microsoft.AspNetCore.Components.Routing
6 | @using Microsoft.AspNetCore.Components.Web
7 | @using static Microsoft.AspNetCore.Components.Web.RenderMode
8 | @using Microsoft.AspNetCore.Components.Web.Virtualization
9 | @using Microsoft.JSInterop
10 | @using BlankBlazorApp.Client
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/CommerceContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class CommerceContext(DbContextOptions options) : CommerceLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/HelpdeskContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class HelpDeskContext(DbContextOptions options) : HelpDeskLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/StorageContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class StorageContext(DbContextOptions options) : StorageLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/CommerceContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class CommerceContext(DbContextOptions options) : CommerceLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/HelpdeskContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class HelpDeskContext(DbContextOptions options) : HelpDeskLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/StorageContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class StorageContext(DbContextOptions options) : StorageLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/LDAP/LdapGroupViewClientModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// LdapGroupViewClientModel
9 | ///
10 | public class LdapGroupViewClientModel : EntryDictModel
11 | {
12 | ///
13 | /// Group
14 | ///
15 | public LdapGroupViewModel? Group { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/bank/BankConnectionCheckResponseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// BankConnectionCheckResponseModel
9 | ///
10 | public class BankConnectionCheckResponseModel : ResponseBaseModel
11 | {
12 | ///
13 | public List? Operations { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/bank/TBankSettings.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// TBankSettings
9 | ///
10 | public class TBankSettings
11 | {
12 | ///
13 | public required string TerminalKey { get; set; }
14 |
15 | ///
16 | public required string Password { get; set; }
17 | }
--------------------------------------------------------------------------------
/SharedLib/Models/kladr/GetMetadataKladrRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// GetMetadataKladrRequestModel
9 | ///
10 | public class GetMetadataKladrRequestModel
11 | {
12 | ///
13 | /// Для временных таблиц
14 | ///
15 | public bool ForTemporary { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/outer/daichi/ProductDaichiBaseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 |
6 | namespace SharedLib;
7 |
8 | ///
9 | public class ProductDaichiBaseModel : DaichiEntryModel
10 | {
11 | ///
12 | [Newtonsoft.Json.JsonIgnore]
13 | [System.Text.Json.Serialization.JsonIgnore]
14 | public int KeyIndex { get; set; }
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/BindCustomerTBankRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// BindCustomerTBankRequestModel
9 | ///
10 | public class BindCustomerTBankRequestModel
11 | {
12 | ///
13 | /// UserId
14 | ///
15 | public required string UserId { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/spec/EntryDescriptionOwnedModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// EntryDescriptionOwnedModel
9 | ///
10 | public class EntryDescriptionOwnedModel : EntryDescriptionModel
11 | {
12 | ///
13 | /// владелец
14 | ///
15 | public int OwnerId { get; set; }
16 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Platforms/iOS/Program.cs:
--------------------------------------------------------------------------------
1 | using ObjCRuntime;
2 | using UIKit;
3 |
4 | namespace ToolsMauiApp;
5 |
6 | ///
7 | public class Program
8 | {
9 | // This is the main entry point of the application.
10 | static void Main(string[] args)
11 | {
12 | // if you want to use a different Application Delegate class from "AppDelegate"
13 | // you can specify it here.
14 | UIApplication.Main(args, null, typeof(AppDelegate));
15 | }
16 | }
--------------------------------------------------------------------------------
/devops/etc/systemd/system/comm.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=comm.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/CommerceService
6 | ExecStart=/usr/bin/dotnet /srv/services/CommerceService/CommerceService.dll
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-comm-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/devops/etc/systemd/system/tg.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=tg.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/TelegramBotService
6 | ExecStart=/usr/bin/dotnet /srv/services/TelegramBotService/TelegramBotService.dll
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-tg-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/micro-services/TelegramBotService/Services/ReceiverService.cs:
--------------------------------------------------------------------------------
1 | using Telegram.Bot;
2 |
3 | namespace TelegramBotService;
4 |
5 | ///
6 | /// Compose Receiver and UpdateHandler implementation
7 | ///
8 | ///
9 | public class ReceiverService(
10 | ITelegramBotClient botClient,
11 | UpdateHandler updateHandler,
12 | ILogger> logger) : ReceiverServiceBase(botClient, updateHandler, logger)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Retail/Pages/PaymentRetailPage.razor:
--------------------------------------------------------------------------------
1 | @page "/retail/payment-document/{PaymentId:int}"
2 |
3 | @using BlazorLib.Components.Retail.Orders
4 | @using BlazorLib.Components.Retail.Payments
5 |
6 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
7 | @attribute [Authorize]
8 |
9 | Платёж/оплата # @PaymentId
10 |
11 |
12 |
13 | @code {
14 | [Parameter]
15 | public int PaymentId { get; set; }
16 | }
17 |
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/CommerceContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class CommerceContext(DbContextOptions options) : CommerceLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/HelpdeskContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class HelpDeskContext(DbContextOptions options) : HelpDeskLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/LDAP/LdapMemberViewClientModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | ///LdapMemberViewClientModel
9 | ///
10 | public class LdapMemberViewClientModel : EntryDictModel
11 | {
12 | ///
13 | ///Member
14 | ///
15 | public LdapMemberViewModel? Member { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/auth/IdentityPasswordTokenModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// IdentityPasswordTokenModel
9 | ///
10 | public class IdentityPasswordTokenModel: IdentityPasswordModel
11 | {
12 | ///
13 | /// Token
14 | ///
15 | public required string Token { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/outer/daichi/PhotoParameterDaichiModelDB.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | public class PhotoParameterDaichiModelDB : EntryModel
9 | {
10 | ///
11 | public ParameterEntryDaichiModelDB? Parent { get; set; }
12 | ///
13 | public int ParentId { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/outer/daichi/SectionParameterDaichiModelDB.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | public class SectionParameterDaichiModelDB : EntryModel
9 | {
10 | ///
11 | public ParameterEntryDaichiModelDB? Parent { get; set; }
12 | ///
13 | public int ParentId { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/outer/breez/request/TechRequestBreezModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// TechRequestBreezModel
9 | ///
10 | public class TechRequestBreezModel
11 | {
12 | ///
13 | /// Запрашиваемый идентификатор
14 | ///
15 | public required int Id { get; set; }
16 | }
17 |
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Components/KladrManageComponent.razor:
--------------------------------------------------------------------------------
1 | @using BlazorLib
2 | @using SharedLib
3 | @using System.Text
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | ~
14 |
15 |
--------------------------------------------------------------------------------
/devops/etc/systemd/system/identity.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=identity.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/IdentityService/
6 | ExecStart=/usr/bin/dotnet /srv/services/IdentityService/IdentityService.dll
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-api-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/BlazorLib/Components/Retail/Pages/DeliveryDocumentPage.razor:
--------------------------------------------------------------------------------
1 | @page "/retail/delivery-document/{DeliveryDocumentId:int}"
2 |
3 | @using BlazorLib.Components.Retail.Delivery
4 |
5 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
6 | @attribute [Authorize]
7 |
8 | Доставка/отгрузка # @DeliveryDocumentId
9 |
10 |
11 | @code {
12 | [Parameter]
13 | public int DeliveryDocumentId { get; set; }
14 | }
15 |
--------------------------------------------------------------------------------
/SharedLib/Models/db/storage/TStorageCloudParameterModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Typed storage cloud parameter
9 | ///
10 | public class TStorageCloudParameterModel : StorageMetadataModel
11 | {
12 | ///
13 | /// Payload
14 | ///
15 | public T? Payload { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/result/UserBooleanResponseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// UserInfoModel + Boolean
9 | ///
10 | public class UserBooleanResponseModel : TResponseModel
11 | {
12 | ///
13 | /// User info
14 | ///
15 | public UserInfoModel? UserInfo { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/StockSharp/InitialLoadRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using System.Collections.Generic;
6 |
7 | namespace SharedLib;
8 |
9 | ///
10 | /// InitialLoadRequestModel
11 | ///
12 | public class InitialLoadRequestModel
13 | {
14 | ///
15 | public List? BigPriceDifferences { get; set; }
16 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Platforms/MacCatalyst/Program.cs:
--------------------------------------------------------------------------------
1 | using ObjCRuntime;
2 | using UIKit;
3 |
4 | namespace ToolsMauiApp;
5 |
6 | ///
7 | public class Program
8 | {
9 | // This is the main entry point of the application.
10 | static void Main(string[] args)
11 | {
12 | // if you want to use a different Application Delegate class from "AppDelegate"
13 | // you can specify it here.
14 | UIApplication.Main(args, null, typeof(AppDelegate));
15 | }
16 | }
--------------------------------------------------------------------------------
/BlankBlazorApp/BlankBlazorApp.Client/Pages/Counter.razor:
--------------------------------------------------------------------------------
1 | @page "/counter"
2 |
3 | @rendermode @(new InteractiveServerRenderMode(prerender: false))
4 |
5 | Counter
6 |
7 | Counter
8 |
9 | Current count: @currentCount
10 |
11 |
12 |
13 | @code {
14 | private int currentCount = 0;
15 |
16 | private void IncrementCount()
17 | {
18 | currentCount++;
19 | }
20 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/Kladr/control/find/KladrFindDialogComponent.razor:
--------------------------------------------------------------------------------
1 | @using MudBlazor
2 |
3 | @inherits BlazorBusyComponentBaseModel
4 |
5 |
6 |
7 | Поиск: @FindText
8 |
9 |
10 |
11 |
12 |
13 | Cancel
14 |
15 |
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/TelegramBotContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class TelegramBotContext(DbContextOptions options) : TelegramBotLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/TelegramBotContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class TelegramBotContext(DbContextOptions options) : TelegramBotLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/outer/ApiBreezRuContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class ApiBreezRuContext(DbContextOptions options) : ApiBreezRuLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/TelegramBotContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class TelegramBotContext(DbContextOptions options) : TelegramBotLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/SpreadsheetDocumentIndexingFileResponseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SpreadsheetDocumentIndexingFileResponseModel
9 | ///
10 | public class SpreadsheetDocumentIndexingFileResponseModel
11 | {
12 | ///
13 | public List? Sheets { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/datatable/core/TableDataBodyModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Тело таблицы
9 | ///
10 | public class TableDataBodyModel
11 | {
12 | ///
13 | /// Строки таблицы
14 | ///
15 | public List Rows { get; set; } = new List();
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/datatable/core/TableDataHeadModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Головная часть таблицы
9 | ///
10 | public class TableDataHeadModel
11 | {
12 | ///
13 | /// Колонки таблицы
14 | ///
15 | public required IEnumerable Columns { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/outer/haier/FileFeedItemHaierModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// FileFeedItemHaierModel
9 | ///
10 | public class FileFeedItemHaierModel
11 | {
12 | ///
13 | public required string Name { get; set; }
14 | ///
15 | public required string Url { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/retail/SelectOrderStatusesRetailDocumentsRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SelectOrderStatusesRetailDocumentsRequestModel
9 | ///
10 | public class SelectOrderStatusesRetailDocumentsRequestModel
11 | {
12 | ///
13 | public int OrderDocumentId { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/result/SignInResultResponseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Результат авторизауии пользователя
9 | ///
10 | public class SignInResultResponseModel: IdentityResultResponseModel
11 | {
12 | ///
13 | /// UserId
14 | ///
15 | public string? UserId { get; set; }
16 | }
--------------------------------------------------------------------------------
/ToolsApp/ToolsMauiApp/Platforms/Android/MainActivity.cs:
--------------------------------------------------------------------------------
1 | using Android.App;
2 | using Android.Content.PM;
3 | using Android.OS;
4 |
5 | namespace ToolsMauiApp
6 | {
7 | [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
8 | public class MainActivity : MauiAppCompatActivity
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/devops/etc/systemd/system/web.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=web.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/BlankBlazorApp
6 | ExecStart=/usr/bin/dotnet /srv/services/BlankBlazorApp/BlankBlazorApp.dll --urls "http://*:5005"
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-web-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/outer/ApiBreezRuContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class ApiBreezRuContext(DbContextOptions options) : ApiBreezRuLayerContext(options)
13 | {
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/outer/ApiBreezRuContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class ApiBreezRuContext(DbContextOptions options) : ApiBreezRuLayerContext(options)
13 | {
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/SharedLib/Models/auth/IdentityPasswordVersionModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// IdentityPasswordVersionModel
9 | ///
10 | public class IdentityPasswordVersionModel : IdentityPasswordModel
11 | {
12 | ///
13 | /// Version
14 | ///
15 | public required string Version { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/conf/KeysPairsConfigClientModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Публичная часть конфигурации
9 | ///
10 | public class KeysPairsConfigClientModel
11 | {
12 | ///
13 | /// Публичный ключ конфигурации
14 | ///
15 | public string PublicKey { get; set; } = string.Empty;
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/commerce/payments/PaymentDocumentModelDb.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// PaymentDocument
9 | ///
10 | public class PaymentDocumentModelDb : PaymentDocumentBaseModel
11 | {
12 | ///
13 | /// OrderDocument
14 | ///
15 | public OrderDocumentModelDB? Order { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/outer/breez/BrandBreezRuModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 |
6 | namespace SharedLib;
7 |
8 | ///
9 | /// BrandBreezRuBaseModel
10 | ///
11 | public class BrandBreezRuModel : BreezRuBaseModel
12 | {
13 | ///
14 | public string? Image { get; set; }
15 |
16 | ///
17 | public string? Url { get; set; }
18 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/retail/ReadWalletsRetailsConversionDocumentsRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// ReadWalletsRetailsConversionDocumentsRequestModel
9 | ///
10 | public class ReadWalletsRetailsConversionDocumentsRequestModel
11 | {
12 | ///
13 | public required int[] Ids { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/retail/SelectRowsRetailDocumentsRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SelectRowsRetailDocumentsRequestModel
9 | ///
10 | public class SelectRowsRetailDocumentsRequestModel
11 | {
12 | ///
13 | /// OrderId
14 | ///
15 | public int OrderId { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/storage/FindStorageBaseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// FindStorageBaseModel
9 | ///
10 | public class FindStorageBaseModel : RequestStorageBaseModel
11 | {
12 | ///
13 | /// OwnersPrimaryKeys
14 | ///
15 | public int[]? OwnersPrimaryKeys { get; set; }
16 | }
--------------------------------------------------------------------------------
/devops/etc/systemd/system/constructor.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=web.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/ConstructorService
6 | ExecStart=/usr/bin/dotnet /srv/services/ConstructorService/ConstructorService.dll
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-constructor-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/BlankBlazorApp/BlankBlazorApp.Client/Pages/Auth.razor:
--------------------------------------------------------------------------------
1 | @page "/auth"
2 |
3 | @using Microsoft.AspNetCore.Authorization
4 | @using System.Security.Claims
5 |
6 | @attribute [Authorize]
7 |
8 | Авторизация
9 |
10 | Вы прошли аутентификацию
11 |
12 |
13 | Привет @context.User.Identity?.Name!
14 |
15 | @foreach (Claim c in context.User.Claims)
16 | {
17 | - [@c.Type] @c.Value
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/BlazorLib/Components/Shared/Layouts/UsersManageLayout.razor:
--------------------------------------------------------------------------------
1 | @using BlazorLib.Components.Shared.Layouts
2 |
3 | @layout MainLayout
4 | @inherits LayoutComponentBase
5 |
6 | Users
7 |
8 |
9 |
Editing user account settings
10 |
11 |
12 |
13 |
14 |
15 |
16 | @Body
17 |
18 |
19 |
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/FilesIndexingContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class FilesIndexingContext(DbContextOptions options) : FilesIndexingLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/bank/BankAccountConnectionsCheckResponseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// BankAccountConnectionsCheckResponseModel
9 | ///
10 | public class BankAccountConnectionsCheckResponseModel : ResponseBaseModel
11 | {
12 | ///
13 |
14 | public List? Accounts { get; set; }
15 | }
--------------------------------------------------------------------------------
/SharedLib/Models/constructor/fit/EnumFitModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Перечисление (лёгкая модель)
9 | ///
10 | public class EnumFitModel : BaseFitModel
11 | {
12 | ///
13 | /// Элементы/состав перечисления
14 | ///
15 | public required SortableFitModel[] EnumItems { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/storage/IndexFileSortedModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace SharedLib;
8 |
9 | ///
10 | /// IndexFileSortedModel
11 | ///
12 | [Index(nameof(SortIndex))]
13 | public class IndexFileSortedModel : IndexFileBaseModel
14 | {
15 | ///
16 | public int SortIndex { get; set; }
17 | }
--------------------------------------------------------------------------------
/SharedLib/Models/outer/rusklimat/ProductSimplePropertyModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// ProductSimplePropertyModel
9 | ///
10 | public class ProductSimplePropertyModel
11 | {
12 | ///
13 | public required string Value { get; set; }
14 | ///
15 | public string? Unit { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/retail/GetDeliveryDocumentsRetailRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// GetDeliveryDocumentsRetailRequestModel
9 | ///
10 | public class GetDeliveryDocumentsRetailRequestModel
11 | {
12 | ///
13 | /// Ids
14 | ///
15 | public required int[] Ids { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/retail/SelectDeliveryStatusesRetailDocumentsRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SelectDeliveryStatusesRetailDocumentsRequestModel
9 | ///
10 | public class SelectDeliveryStatusesRetailDocumentsRequestModel
11 | {
12 | ///
13 | public int DeliveryDocumentId { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/retail/SelectRowsOfDeliveriesRetailDocumentsRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// SelectRowsOfDeliveriesRetailDocumentsRequestModel
9 | ///
10 | public class SelectRowsOfDeliveriesRetailDocumentsRequestModel
11 | {
12 | ///
13 | public int DeliveryDocumentId { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/retail/WalletRetailTypeViewModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 |
6 | namespace SharedLib;
7 |
8 | ///
9 | /// WalletRetailTypeViewModel
10 | ///
11 | public class WalletRetailTypeViewModel : WalletRetailTypeModelDB
12 | {
13 | ///
14 | /// Сумма всех балансов
15 | ///
16 | public decimal SumBalances { get; set; }
17 | }
--------------------------------------------------------------------------------
/SharedLib/Models/telegram/BotConfiguration.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// BotConfiguration
9 | ///
10 | public class BotConfiguration
11 | {
12 | ///
13 | public static readonly string Configuration = "BotConfiguration";
14 |
15 | ///
16 | public string BotToken { get; set; } = "";
17 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Enum/StockSharp/TypesInstrumentsManualEnum.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// TypesInstrumentsManualEnum
9 | ///
10 | public enum TypesInstrumentsManualEnum
11 | {
12 | ///
13 | Bond,
14 |
15 | ///
16 | Equity,
17 |
18 | ///
19 | Futures
20 | }
21 |
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/storage/StorageContextMetadataModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// StorageContextMetadataModel
9 | ///
10 | public class StorageContextMetadataModel : StorageMetadataModel
11 | {
12 | ///
13 | /// ContextName
14 | ///
15 | public string? ContextName { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/api/request/KladrSelectRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// KladrSelectRequestModel
9 | ///
10 | public class KladrSelectRequestModel : PaginationRequestModel
11 | {
12 | ///
13 | /// Применение фильтра к коду
14 | ///
15 | public string? CodeLikeFilter { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/outer/rusklimat/CategoryRusklimatModelDB.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace SharedLib;
8 |
9 | ///
10 | /// Категории товаров
11 | ///
12 | [Index(nameof(Parent))]
13 | public class CategoryRusklimatModelDB : EntryAltModel
14 | {
15 | ///
16 | public string? Parent { get; set; }
17 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/outer/rusklimat/PropertyRusklimatModelDB.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace SharedLib;
8 |
9 | ///
10 | /// Свойства товаров
11 | ///
12 | [Index(nameof(Sort))]
13 | public class PropertyRusklimatModelDB : EntryAltModel
14 | {
15 | ///
16 | public required int Sort { get; set; }
17 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Enum/LdapRouteSegmentsTypesEnum.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Сегменты маршрутизации пути LDAP
9 | ///
10 | public enum LdapRouteSegmentsTypesEnum
11 | {
12 | ///
13 | /// OU
14 | ///
15 | Ou,
16 |
17 | ///
18 | /// DC
19 | ///
20 | Dc
21 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/StockSharp/AboutConnectionRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// AboutConnectionRequestModel
9 | ///
10 | public class AboutConnectionRequestModel
11 | {
12 | ///
13 | /// Send status connection for-each clients
14 | ///
15 | public bool EchoStatus { get; set; }
16 | }
--------------------------------------------------------------------------------
/BlazorLib/Components/IDomBaseComponent.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace BlazorLib.Components;
6 |
7 | ///
8 | /// DOM
9 | ///
10 | public interface IDomBaseComponent
11 | {
12 | ///
13 | /// Идентификатор DOM элемента. Уникальность строгая в рамках всей страницы т.к. используется как @key
14 | ///
15 | public string DomID { get; }
16 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/ConstructorContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using DbLayerLib;
6 | using Microsoft.EntityFrameworkCore;
7 |
8 | namespace DbcLib;
9 |
10 | ///
11 | /// Промежуточный/общий слой контекста базы данных
12 | ///
13 | public partial class ConstructorContext(DbContextOptions options) : ConstructorLayerContext(options)
14 | {
15 |
16 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/ConstructorContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using DbLayerLib;
6 | using Microsoft.EntityFrameworkCore;
7 |
8 | namespace DbcLib;
9 |
10 | ///
11 | /// Промежуточный/общий слой контекста базы данных
12 | ///
13 | public partial class ConstructorContext(DbContextOptions options) : ConstructorLayerContext(options)
14 | {
15 |
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/bank/AgentBaseTBankModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using System.Text.Json.Serialization;
6 |
7 | namespace SharedLib;
8 |
9 | ///
10 | /// AgentBaseTBankModel
11 | ///
12 | public partial class AgentBaseTBankModel : AgentModel
13 | {
14 | ///
15 | [JsonPropertyName("bankName")]
16 | public required string BankName { get; set; }
17 | }
--------------------------------------------------------------------------------
/SharedLib/Models/request/retail/TotalWeightDeliveriesOrdersLinksDocumentsRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// TotalWeightDeliveriesOrdersLinksDocumentsRequestModel
9 | ///
10 | public class TotalWeightDeliveriesOrdersLinksDocumentsRequestModel
11 | {
12 | ///
13 | public int DeliveryDocumentId { get; set; }
14 | }
--------------------------------------------------------------------------------
/SharedLib/Models/telegram/TelegramIncomingMessageModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// TelegramIncomingMessageModel
9 | ///
10 | public class TelegramIncomingMessageModel : MessageTelegramModelDB
11 | {
12 | ///
13 | /// User
14 | ///
15 | public required CheckTelegramUserAuthModel User { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Enum/MarginModesEnum.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Margin modes.
9 | ///
10 | public enum MarginModesEnum
11 | {
12 | ///
13 | /// Cross margin mode.
14 | ///
15 | Cross,
16 | ///
17 | /// Isolated margin mode.
18 | ///
19 | Isolated
20 | }
21 |
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/StockSharp/ResetStrategyRequestBaseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// ResetStrategyRequestModel
9 | ///
10 | public class ResetStrategyRequestBaseModel
11 | {
12 | ///
13 | public decimal Volume { get; set; }
14 |
15 | ///
16 | public decimal Size { get; set; }
17 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Models/api/request/TPaginationRequestStandardModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Запрос с пагинацией
9 | ///
10 | public class TPaginationRequestStandardModel : SimplePaginationRequestModel
11 | {
12 | ///
13 | /// Payload
14 | ///
15 | public virtual T? Payload { get; set; }
16 | }
--------------------------------------------------------------------------------
/devops/etc/systemd/system/api.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=api.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/ApiRestService/
6 | ExecStart=/usr/bin/dotnet /srv/services/ApiRestService/ApiRestService.dll --urls "https://*:6066;http://*:6067;"
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-api-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/devops/etc/systemd/system/filesindexing.app.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=filesindexing.app.service
3 |
4 | [Service]
5 | WorkingDirectory=/srv/services/FilesIndexing
6 | ExecStart=/usr/bin/dotnet /srv/services/FilesIndexingService/FilesIndexingService.dll
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier=dotnet-filesindexing-app
11 | User=www-data
12 | Environment=DOTNET_ENVIRONMENT=Production
13 | Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/.dockerignore:
--------------------------------------------------------------------------------
1 | **/.classpath
2 | **/.dockerignore
3 | **/.env
4 | **/.git
5 | **/.gitignore
6 | **/.project
7 | **/.settings
8 | **/.toolstarget
9 | **/.vs
10 | **/.vscode
11 | **/*.*proj.user
12 | **/*.dbmdl
13 | **/*.jfm
14 | **/azds.yaml
15 | **/bin
16 | **/charts
17 | **/docker-compose*
18 | **/Dockerfile*
19 | **/node_modules
20 | **/npm-debug.log
21 | **/obj
22 | **/secrets.dev.yaml
23 | **/values.dev.yaml
24 | LICENSE
25 | README.md
26 | !**/.gitignore
27 | !.git/HEAD
28 | !.git/config
29 | !.git/packed-refs
30 | !.git/refs/heads/**
--------------------------------------------------------------------------------
/BlazorLib/Components/ParametersShared/CKEditorParameterStorageComponent.razor:
--------------------------------------------------------------------------------
1 | @using MudBlazor
2 | @inherits BlazorBusyComponentBaseModel
3 |
4 | @if (IsBusyProgress)
5 | {
6 |
7 | }
8 |
9 |
10 |
11 | @if (!string.IsNullOrWhiteSpace(HelperText))
12 | {
13 | @HelperText
14 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/outer/ApiRusklimatComContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class ApiRusklimatComContext(DbContextOptions options) : ApiRusklimatComLayerContext(options)
13 | {
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/ConstructorContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using DbLayerLib;
6 | using Microsoft.EntityFrameworkCore;
7 |
8 | namespace DbcLib;
9 |
10 | ///
11 | /// Промежуточный/общий слой контекста базы данных
12 | ///
13 | public partial class ConstructorContext(DbContextOptions options) : ConstructorLayerContext(options)
14 | {
15 |
16 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/outer/ApiRusklimatComContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class ApiRusklimatComContext(DbContextOptions options) : ApiRusklimatComLayerContext(options)
13 | {
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/SharedLib/Models/api/request/FindWithOwnedRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Запрос поиска с указанием владельца
9 | ///
10 | public class FindWithOwnedRequestModel : SimplePaginationRequestModel
11 | {
12 | ///
13 | /// Идентификатор владельца
14 | ///
15 | public string? OwnerId { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/commerce/OrganizationsSelectRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// OrganizationsSelectRequestModel
9 | ///
10 | public class OrganizationsSelectRequestModel : UniversalSelectRequestModel
11 | {
12 | ///
13 | /// OffersFilter
14 | ///
15 | public int[]? OffersFilter { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/db/commerce/organisations/OfficeOrganizationModelDB.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Офис организации
9 | ///
10 | public class OfficeOrganizationModelDB : AddressOrganizationBaseModel
11 | {
12 | ///
13 | /// Организация
14 | ///
15 | public OrganizationModelDB? Organization { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/user/RegisterNewUserPasswordModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Создание нового пользователя (Identity)
9 | ///
10 | public class RegisterNewUserPasswordModel : UserAuthorizationLiteModel
11 | {
12 | ///
13 | /// BaseAddress
14 | ///
15 | public required string BaseAddress { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLibStandard21/Enum/StockSharp/BondsTypesInstrumentsManualEnum.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// BondsTypesInstrumentsManualEnum
9 | ///
10 | public enum BondsTypesInstrumentsManualEnum
11 | {
12 | ///
13 | Regular,
14 |
15 | ///
16 | Floater,
17 |
18 | ///
19 | Linker
20 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbMySQLLib/outer/FeedsHaierProffRuContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class FeedsHaierProffRuContext(DbContextOptions options) : FeedsHaierProffRuLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/outer/ApiRusklimatComContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class ApiRusklimatComContext(DbContextOptions options) : ApiRusklimatComLayerContext(options)
13 | {
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/DBContextLibs/DbPostgreLib/outer/FeedsHaierProffRuContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class FeedsHaierProffRuContext(DbContextOptions options) : FeedsHaierProffRuLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/DBContextLibs/DbSqliteLib/outer/FeedsHaierProffRuContext.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using Microsoft.EntityFrameworkCore;
6 |
7 | namespace DbcLib;
8 |
9 | ///
10 | /// Промежуточный/общий слой контекста базы данных
11 | ///
12 | public partial class FeedsHaierProffRuContext(DbContextOptions options) : FeedsHaierProffRuLayerContext(options)
13 | {
14 |
15 | }
--------------------------------------------------------------------------------
/IdentityLib/ApplicationUserResponseModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | using SharedLib;
6 |
7 | namespace IdentityLib;
8 |
9 | ///
10 | /// ApplicationUser response
11 | ///
12 | public class ApplicationUserResponseModel : ResponseBaseModel
13 | {
14 | ///
15 | /// ApplicationUser
16 | ///
17 | public ApplicationUser? ApplicationUser { get; set; }
18 | }
--------------------------------------------------------------------------------
/SharedLib/Models/auth/UserAuthorizationModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// Объект пользователя для авторизация (создание сессии)
9 | ///
10 | public class UserAuthorizationModel : UserAuthorizationLiteModel
11 | {
12 | ///
13 | /// Чекбокс: запомнить меня
14 | ///
15 | public bool RememberMe { get; set; }
16 | }
--------------------------------------------------------------------------------
/SharedLib/Models/commerce/RecordsAttendancesRequestModel.cs:
--------------------------------------------------------------------------------
1 | ////////////////////////////////////////////////
2 | // © https://github.com/badhitman - @FakeGov
3 | ////////////////////////////////////////////////
4 |
5 | namespace SharedLib;
6 |
7 | ///
8 | /// RecordsAttendancesRequestModel
9 | ///
10 | public class RecordsAttendancesRequestModel: DocumentsSelectRequestBaseModel
11 | {
12 | ///
13 | /// ContextName
14 | ///
15 | public required string? ContextName { get; set; }
16 | }
--------------------------------------------------------------------------------