Skip to content

Commit

Permalink
Refactoring components structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dyatlov-a committed Sep 29, 2024
1 parent 2b7aec6 commit cb7d170
Show file tree
Hide file tree
Showing 27 changed files with 29 additions and 67 deletions.
6 changes: 0 additions & 6 deletions src/Inc.TeamAssistant.Gateway/Apps/MainApp.razor
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
@using Inc.TeamAssistant.Gateway.Configs
@using Inc.TeamAssistant.Primitives.Languages
@using Inc.TeamAssistant.WebUI.Contracts
@using Microsoft.AspNetCore.Components.Web
@using Inc.TeamAssistant.WebUI.Features

@inject AnalyticsOptions AnalyticsOptions
@inject IRenderContext RenderContext
@inject IHostEnvironment HostEnvironment
Expand Down
5 changes: 5 additions & 0 deletions src/Inc.TeamAssistant.Gateway/Apps/_Imports.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@using Inc.TeamAssistant.Gateway.Configs
@using Inc.TeamAssistant.Primitives.Languages
@using Inc.TeamAssistant.WebUI.Contracts
@using Microsoft.AspNetCore.Components.Web
@using Inc.TeamAssistant.WebUI.Features
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Connector.Model.Queries.GetBotsByCurrentUser

@inject IBotService BotService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Constructor.Model.Queries.GetFeatures

@inherits InputBase<IEnumerable<Guid>>

@inject DragAndDropService<Guid> DragAndDropService
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Constructor.Model.Queries.GetBotDetails

@inject IBotService BotService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Primitives.FeatureProperties

@inject IBotService BotService
@inject IServiceProvider ServiceProvider
@inject ResourcesManager Resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
@using Inc.TeamAssistant.WebUI.Features.Constructor.Stages.Stage1
@using Inc.TeamAssistant.WebUI.Features.Constructor.Stages.Stage2
@using Inc.TeamAssistant.WebUI.Features.Constructor.Stages.Stage3
@using Inc.TeamAssistant.WebUI.Features.Constructor.Stages.Stage4
@using Inc.TeamAssistant.WebUI.Features.Constructor.Stages.Stage4
@using Inc.TeamAssistant.Constructor.Model.Queries.GetFeatures
@using Inc.TeamAssistant.Constructor.Model.Queries.GetBotDetails
@using Inc.TeamAssistant.Primitives.FeatureProperties
@using Inc.TeamAssistant.Connector.Model.Queries.GetBotsByCurrentUser
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Appraiser.Model.Queries.GetAssessmentHistory

@inject IAppraiserService AppraiserService
@inject ResourcesManager Resources
@inject NavRouter NavRouter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Connector.Model.Commands.DisableIntegration

@inject IIntegrationService IntegrationService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

@attribute [Authorize]

@using Inc.TeamAssistant.Connector.Model.Queries.GetWidgets

@inject IBotService BotService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Connector.Model.Queries.GetTeamConnector

@inject IBotService BotService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Connector.Model.Queries.GetBotsByCurrentUser

@inject IBotService BotService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.RandomCoffee.Model.Queries.GetHistory

@inject IRandomCoffeeService RandomCoffeeService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Reviewer.Model.Queries.GetAverageByTeam

@inject IReviewService ReviewService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
@using System.Text
@using Inc.TeamAssistant.Primitives
@using Inc.TeamAssistant.Reviewer.Model.Queries.GetLastTasks

@inject IReviewService ReviewService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Reviewer.Model.Queries.GetHistoryByTeam

@inject IReviewService ReviewService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Connector.Model.Queries.GetWidgets

@inject IBotService BotService
@inject RequestProcessor RequestProcessor
@inject ResourcesManager Resources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
@using Inc.TeamAssistant.Connector.Model.Commands.RemoveTeammate
@using Inc.TeamAssistant.Connector.Model.Queries.GetTeammates

@inject IBotService BotService
@inject ResourcesManager Resources
@inject RequestProcessor RequestProcessor
Expand Down
13 changes: 12 additions & 1 deletion src/Inc.TeamAssistant.WebUI/Features/Dashboard/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,15 @@
@using Inc.TeamAssistant.WebUI.Features.Dashboard.RandomCoffee
@using Inc.TeamAssistant.WebUI.Features.Dashboard.Appraiser
@using Inc.TeamAssistant.WebUI.Features.Dashboard.Teams
@using Inc.TeamAssistant.WebUI.Features.Dashboard.Settings
@using Inc.TeamAssistant.WebUI.Features.Dashboard.Settings
@using Inc.TeamAssistant.Appraiser.Model.Queries.GetAssessmentHistory
@using Inc.TeamAssistant.Connector.Model.Commands.DisableIntegration
@using Inc.TeamAssistant.RandomCoffee.Model.Queries.GetHistory
@using Inc.TeamAssistant.Reviewer.Model.Queries.GetAverageByTeam
@using Inc.TeamAssistant.Reviewer.Model.Queries.GetLastTasks
@using Inc.TeamAssistant.Reviewer.Model.Queries.GetHistoryByTeam
@using Inc.TeamAssistant.Connector.Model.Queries.GetWidgets
@using Inc.TeamAssistant.Connector.Model.Commands.RemoveTeammate
@using Inc.TeamAssistant.Connector.Model.Queries.GetTeammates
@using Inc.TeamAssistant.Connector.Model.Queries.GetTeamConnector
@using Inc.TeamAssistant.Connector.Model.Queries.GetBotsByCurrentUser
2 changes: 0 additions & 2 deletions src/Inc.TeamAssistant.WebUI/Features/Main/MainPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
@page "/en"
@page "/ru"

@using Inc.TeamAssistant.Primitives

@inject IRenderContext RenderContext
@inject ResourcesManager Resources
@inject NavRouter NavRouter
Expand Down
2 changes: 0 additions & 2 deletions src/Inc.TeamAssistant.WebUI/Features/Meta/MetaData.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Primitives

@inject ResourcesManager Resources

<meta name="description" content="@Resources[_data.Description]">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Primitives

@inject ResourcesManager ResourcesManager

<PageTitle>@_title</PageTitle>
Expand Down
2 changes: 0 additions & 2 deletions src/Inc.TeamAssistant.WebUI/Features/Meta/OpenGraph.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@using Inc.TeamAssistant.Primitives

@inject IRenderContext RenderContext
@inject ResourcesManager Resources

Expand Down
5 changes: 1 addition & 4 deletions src/Inc.TeamAssistant.WebUI/Features/Routes.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
@using FluentValidation
@using Inc.TeamAssistant.WebUI.Services

@implements IAsyncDisposable
@implements IAsyncDisposable

@inject IRenderContext RenderContext
@inject ResourcesManager ResourcesManager
Expand Down
4 changes: 3 additions & 1 deletion src/Inc.TeamAssistant.WebUI/Features/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
@using Inc.TeamAssistant.WebUI.Features.Layouts
@using Inc.TeamAssistant.WebUI.Features.Meta
@using Inc.TeamAssistant.WebUI.Features.Dialogs
@using Inc.TeamAssistant.WebUI.Services
@using Inc.TeamAssistant.WebUI.Services.ClientCore
@using Inc.TeamAssistant.WebUI.Routing
@using Inc.TeamAssistant.WebUI.Extensions
@using Inc.TeamAssistant.WebUI.Features.Icons
@using Inc.TeamAssistant.WebUI.Features.Auth
@using Inc.TeamAssistant.WebUI.Components
@using Inc.TeamAssistant.WebUI.Features.Notifications
@using Inc.TeamAssistant.WebUI.Features.Notifications
@using Inc.TeamAssistant.Primitives
12 changes: 0 additions & 12 deletions src/Inc.TeamAssistant.WebUI/Messages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,10 @@ internal static class Messages
public static readonly MessageId Constructor_FeatureReviewerName = new(nameof(Constructor_FeatureReviewerName));
public static readonly MessageId Constructor_FeatureRandomCoffeeName = new(nameof(Constructor_FeatureRandomCoffeeName));
public static readonly MessageId Constructor_FeatureCheckInName = new(nameof(Constructor_FeatureCheckInName));
public static readonly MessageId Constructor_FeatureAppraiserDescription = new(nameof(Constructor_FeatureAppraiserDescription));
public static readonly MessageId Constructor_FeatureReviewerDescription = new(nameof(Constructor_FeatureReviewerDescription));
public static readonly MessageId Constructor_FeatureRandomCoffeeDescription = new(nameof(Constructor_FeatureRandomCoffeeDescription));
public static readonly MessageId Constructor_FeatureCheckInDescription = new(nameof(Constructor_FeatureCheckInDescription));
public static readonly MessageId Constructor_FeatureAdd = new(nameof(Constructor_FeatureAdd));
public static readonly MessageId Constructor_FeatureRemove = new(nameof(Constructor_FeatureRemove));
public static readonly MessageId Constructor_FormSectionFeaturesAvailableEmptyText = new(nameof(Constructor_FormSectionFeaturesAvailableEmptyText));
public static readonly MessageId Constructor_FormSectionFeaturesSelectedEmptyText = new(nameof(Constructor_FormSectionFeaturesSelectedEmptyText));
public static readonly MessageId Constructor_FormSectionSetSettingsRoundRobinDescription = new(nameof(Constructor_FormSectionSetSettingsRoundRobinDescription));
public static readonly MessageId Constructor_FormSectionSetSettingsRandomDescription = new(nameof(Constructor_FormSectionSetSettingsRandomDescription));
public static readonly MessageId Constructor_FormSectionSetSettingsAppraiserHeader = new(nameof(Constructor_FormSectionSetSettingsAppraiserHeader));
public static readonly MessageId Constructor_FormSectionSetSettingsAppraiserHelp = new(nameof(Constructor_FormSectionSetSettingsAppraiserHelp));
public static readonly MessageId Constructor_FormSectionSetSettingsStoryTypeFieldLabel = new(nameof(Constructor_FormSectionSetSettingsStoryTypeFieldLabel));
public static readonly MessageId Constructor_FormSectionSetSettingsReviewerHeader = new(nameof(Constructor_FormSectionSetSettingsReviewerHeader));
public static readonly MessageId Constructor_FormSectionSetSettingsReviewerHelp = new(nameof(Constructor_FormSectionSetSettingsReviewerHelp));
public static readonly MessageId Constructor_FormSectionSetSettingsNextReviewerStrategyFieldLabel = new(nameof(Constructor_FormSectionSetSettingsNextReviewerStrategyFieldLabel));
public static readonly MessageId Constructor_FormSectionTokenCheckHelp = new(nameof(Constructor_FormSectionTokenCheckHelp));
public static readonly MessageId Constructor_FormSectionFeaturesCheckHelp = new(nameof(Constructor_FormSectionFeaturesCheckHelp));
public static readonly MessageId Constructor_ButtonCreateText = new(nameof(Constructor_ButtonCreateText));
Expand Down
4 changes: 3 additions & 1 deletion src/Inc.TeamAssistant.WebUI/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.Forms
@using FluentValidation
@using Blazored.FluentValidation
@using Microsoft.AspNetCore.Components.QuickGrid
@using ApexCharts
@using ApexCharts
@using System.Text

0 comments on commit cb7d170

Please sign in to comment.