From 570247cc13f2c4544548a6e54e0bcca6901d1389 Mon Sep 17 00:00:00 2001 From: Vladislav Frolov <50615459+Cheshiriks@users.noreply.github.com> Date: Thu, 29 Feb 2024 12:25:54 +0300 Subject: [PATCH] Rename save-frontend-common to frontend-common (#2929) * Rename save-frontend-common to frontend-common --- .github/workflows/build_and_test.yml | 24 ++++++------- cosv-frontend/README.md | 6 ++-- cosv-frontend/build.gradle.kts | 2 +- .../com/saveourtool/cosv/frontend/App.kt | 12 +++---- .../cosv/frontend/components/ErrorBoundary.kt | 4 +-- .../components/RequestModalHandler.kt | 10 +++--- .../components/basic/CosvOrganizationType.kt | 4 +-- .../VulnerabilityIntroductionComponent.kt | 4 +-- .../cosv/frontend/components/topbar/TopBar.kt | 12 +++---- .../frontend/components/topbar/TopBarLinks.kt | 2 +- .../components/topbar/TopBarUrlSplits.kt | 2 +- .../components/topbar/TopBarUserField.kt | 16 ++++----- .../components/views/vuln/CosvSchemaView.kt | 10 +++--- .../views/vuln/CreateVulnerabilityView.kt | 28 +++++++-------- .../views/vuln/UploadVulnerabilityView.kt | 10 +++--- .../views/vuln/VulnerabilityBadge.kt | 14 ++++---- .../views/vuln/VulnerabilityChangesTab.kt | 4 +-- .../views/vuln/VulnerabilityCollectionView.kt | 12 +++---- .../views/vuln/VulnerabilityCommentTab.kt | 8 ++--- .../views/vuln/VulnerabilityDateModal.kt | 16 ++++----- .../vuln/VulnerabilityGeneralInfoProps.kt | 22 ++++++------ .../views/vuln/VulnerabilityHeader.kt | 18 +++++----- .../views/vuln/VulnerabilityHistoryTab.kt | 10 +++--- .../views/vuln/VulnerabilityInfoTab.kt | 26 +++++++------- .../views/vuln/VulnerabilityProjectWindow.kt | 16 ++++----- .../views/vuln/VulnerabilityRawDataTab.kt | 3 +- .../views/vuln/VulnerabilityTagsComponent.kt | 10 +++--- .../views/vuln/VulnerabilityView.kt | 2 +- .../component/CosvFileManagerComponent.kt | 22 ++++++------ .../vuln/component/CvssBaseScoreCalculator.kt | 4 ++- .../views/vuln/component/TimelineComponent.kt | 5 +-- .../vuln/toprating/OrganizationRatingTab.kt | 12 +++---- .../views/vuln/toprating/RatingUtils.kt | 4 +-- .../views/vuln/toprating/TopRatingView.kt | 11 +++--- .../views/vuln/toprating/UserRatingTab.kt | 10 +++--- .../views/welcome/MarketingTitles.kt | 4 +-- .../views/welcome/VulnerabilityWelcomeView.kt | 22 ++++++------ .../views/welcome/pagers/vuln/WhatIsVuln.kt | 2 +- .../cosv/frontend/routing/BasicRouting.kt | 16 ++++----- .../README.md | 0 .../build.gradle.kts | 2 +- .../detekt.yml | 0 .../karma.config.d/custom-config.js | 0 .../frontend/common/components/Footer.kt | 2 +- .../common/components/HasErrorModal.kt | 4 +-- .../components/basic/AddUserComponent.kt | 8 ++--- .../common/components/basic/AvatarForm.kt | 6 ++-- .../components/basic/AvatarRenderers.kt | 5 +-- .../frontend/common/components/basic/Card.kt | 6 ++-- .../common/components/basic/Carousel.kt | 4 +-- .../common/components/basic/CookieBanner.kt | 16 ++++----- .../frontend/common/components/basic/Forum.kt | 16 ++++----- .../components/basic/LanguageSelector.kt | 15 ++++---- .../components/basic/ManageUserRoleCard.kt | 10 +++--- .../common/components/basic/Markdown.kt | 4 +-- .../common/components/basic/ScoreCard.kt | 4 +-- .../components/basic/ScrollToTopButton.kt | 6 ++-- .../common/components/basic/SelectForm.kt | 8 ++--- .../components/basic/TestSuitesDisplayer.kt | 4 +-- .../common/components/basic/UserBoard.kt | 2 +- .../contests/ContestCreationComponent.kt | 22 ++++++------ .../basic/contests/ContestInfoMenu.kt | 8 ++--- .../basic/contests/ContestSubmissionsMenu.kt | 12 +++---- .../basic/contests/ContestSummaryMenu.kt | 4 +-- .../basic/contests/PublicTestCardComponent.kt | 8 ++--- .../DefaultProgressBarComponent.kt | 4 +-- .../basic/fileuploader/FileUploaderUtils.kt | 8 ++--- .../basic/table/filters/NameFiltersRow.kt | 12 +++---- .../filters/VulnerabilitiesFiltersRow.kt | 21 ++++++------ .../testsuiteselector/TestSuiteSelector.kt | 14 ++++---- .../TestSuiteSelectorBrowserMode.kt | 12 +++---- .../TestSuiteSelectorManagerMode.kt | 6 ++-- .../TestSuiteSelectorSearchMode.kt | 10 +++--- .../ManageTestSuitePermissionsCard.kt | 28 +++++++-------- .../PermissionManagerMode.kt | 2 +- .../TestSuiteSourceUpsertComponent.kt | 24 ++++++------- .../fetch/TestSuitesSourceFetcher.kt | 18 +++++----- .../components/inputform/DragAndDropForm.kt | 2 +- .../inputform/InputDateFormRequired.kt | 2 +- .../common/components/inputform/InputForms.kt | 2 +- .../inputform/InputTextFormDisabled.kt | 2 +- .../inputform/InputTextFormOptional.kt | 8 ++--- .../inputform/InputTextFormRequired.kt | 4 +-- .../components/inputform/InputWithDebounce.kt | 6 ++-- .../components/mobile/AboutUsMobileView.kt | 14 ++++---- .../mobile/SaveWelcomeMobileView.kt | 20 +++++------ .../common/components/modal/LogoutModal.kt | 12 +++---- .../frontend/common/components/modal/Modal.kt | 8 ++--- .../common/components/modal/ModalBuilder.kt | 12 +++---- .../common/components/modal/ModalDialog.kt | 4 +-- .../components/modal/ModalDialogStrings.kt | 2 +- .../common/components/modal/ModalStyles.kt | 4 +-- .../common/components/tables/Builders.kt | 2 +- .../common/components/tables/PagingControl.kt | 2 +- .../components/tables/TableComponent.kt | 16 ++++----- .../common/components/tables/TableUtils.kt | 2 +- .../common/components/views/AboutUsView.kt | 18 +++++----- .../common/components/views/AbstractView.kt | 6 ++-- .../common/components/views/FallbackView.kt | 6 ++-- .../components/views/RegistrationView.kt | 22 ++++++------ .../organization/CreateOrganizationView.kt | 14 ++++---- .../views/organization/GitWindow.kt | 10 +++--- .../organization/ManageGitCredentialsCard.kt | 12 +++---- .../organization/OrganizationContestsMenu.kt | 18 +++++----- .../views/organization/OrganizationMenuBar.kt | 2 +- .../organization/OrganizationSettingsMenu.kt | 12 +++---- .../organization/OrganizationTestsMenu.kt | 20 +++++------ .../organization/OrganizationToolsMenu.kt | 30 ++++++++-------- .../views/organization/OrganizationType.kt | 2 +- .../views/organization/OrganizationView.kt | 8 ++--- .../views/organization/RenderAdminTab.kt | 2 +- .../views/organization/RenderInfoTab.kt | 14 ++++---- .../organization/RenderOrganizationMenuBar.kt | 10 +++--- .../organization/RenderVulnerabilitiesTab.kt | 5 +-- .../TestSuitesSourcesDisplayer.kt | 6 ++-- .../userprofile/UserProfileNewUsersTab.kt | 14 ++++---- .../views/userprofile/UserProfileView.kt | 18 +++++----- .../views/usersettings/SettingsView.kt | 12 +++---- .../usersettings/SettingsViewLeftColumn.kt | 14 ++++---- .../usersettings/SettingsViewRightColumn.kt | 12 +++---- .../views/usersettings/right/Delete.kt | 10 +++--- .../views/usersettings/right/Email.kt | 18 +++++----- .../views/usersettings/right/Organizations.kt | 16 ++++----- .../usersettings/right/SettingsInputFields.kt | 4 +-- .../views/usersettings/right/Token.kt | 8 ++--- .../right/profile/AvatarSelector.kt | 14 ++++---- .../usersettings/right/profile/Profile.kt | 26 +++++++------- .../right/validation/InputValidationUtils.kt | 4 +-- .../components/views/vuln/UploadCosvButton.kt | 8 ++--- .../views/vuln/VulnerabilityTableComponent.kt | 18 +++++----- .../views/welcome/MarketingTitles.kt | 6 ++-- .../views/welcome/SaveWelcomeView.kt | 20 +++++------ .../components/views/welcome/WelcomeUtils.kt | 12 +++---- .../views/welcome/pagers/WelcomePager.kt | 6 ++-- .../welcome/pagers/save/AwesomeBenchmarks.kt | 6 ++-- .../views/welcome/pagers/save/Contests.kt | 6 ++-- .../views/welcome/pagers/save/GeneralInfo.kt | 2 +- .../pagers/save/GeneralInfoPictures.kt | 6 ++-- .../welcome/pagers/save/HighLevelSave.kt | 6 ++-- .../views/welcome/pagers/save/ReadMore.kt | 2 +- .../views/welcome/pagers/save/Slogan.kt | 8 ++--- .../welcome/pagers/save/TestsSelector.kt | 6 ++-- .../common/externals/animations/Particles.kt | 2 +- .../common/externals/animations/RingLoader.kt | 2 +- .../externals/animations/ScrollMotion.kt | 2 +- .../animations/ScrollMotionConstants.kt | 2 +- .../common/externals/cookie/Cookie.kt | 2 +- .../externals/diffviewer/ReactDiffViewer.kt | 2 +- .../externals/fontawesome/BrandIcons.kt | 2 +- .../common/externals/fontawesome/FaSetup.kt | 2 +- .../externals/fontawesome/FontAwesomeIcon.kt | 2 +- .../fontawesome/FontAwesomeIconBuilders.kt | 2 +- .../fontawesome/FontAwesomeIconProps.kt | 2 +- .../common/externals/fontawesome/Icons.kt | 2 +- .../frontend/common/externals/i18next/I18n.kt | 2 +- .../common/externals/i18next/InitI18n.kt | 2 +- .../common/externals/i18next/Translation.kt | 8 ++--- .../externals/i18next/UseTranslation.kt | 2 +- .../imageeditor/ReactAvatarImageCropper.kt | 2 +- .../common/externals/jsonview/JsonView.kt | 2 +- .../common/externals/lodash/Debounce.kt | 2 +- .../externals/markdown/ReactMarkdown.kt | 2 +- .../markdown/rehype/RehypeMarkdownPlugin.kt | 2 +- .../common/externals/modal/ReactModal.kt | 2 +- .../externals/progressbar/ReactCircle.kt | 2 +- .../progressbar/ReactCircleBuilder.kt | 4 +-- .../externals/slider/MultiRangeSlider.kt | 2 +- .../frontend/common/http/Exceptions.kt | 2 +- .../frontend/common/http/Requests.kt | 6 ++-- .../frontend/common/themes/Colors.kt | 2 +- .../frontend/common/utils/Action.kt | 4 +-- .../frontend/common/utils/CComponent.kt | 2 +- .../common/utils/ChildrenBuilderUtils.kt | 6 ++-- .../common/utils/ComponentWithScope.kt | 2 +- .../frontend/common/utils/CustomHooks.kt | 6 ++-- .../frontend/common/utils/FilterParamUtils.kt | 2 +- .../frontend/common/utils/HtmlElements.kt | 6 ++-- .../frontend/common/utils/JsUtils.kt | 2 +- .../frontend/common/utils/LocationUtils.kt | 2 +- .../frontend/common/utils/LoginUtils.kt | 6 ++-- .../frontend/common/utils/Particles.kt | 4 +-- .../frontend/common/utils/RequestUtils.kt | 8 ++--- .../frontend/common/utils/RouterUtils.kt | 2 +- .../frontend/common/utils/StateWithRole.kt | 2 +- .../frontend/common/utils/TopBarUrl.kt | 2 +- .../frontend/common/utils/UsefulUrls.kt | 2 +- .../common/utils/UserInfoAwareProps.kt | 2 +- .../frontend/common/utils/Utils.kt | 6 ++-- .../frontend/common/utils/WindowOpenness.kt | 2 +- .../src/test/kotlin/components/FooterTest.kt | 2 +- .../kotlin/components/basic/SelectFormTest.kt | 10 +++--- .../components/views/OrganizationViewTest.kt | 10 +++--- .../kotlin/externals/MockServiceWorker.kt | 0 .../kotlin/externals/ReactTestingLibrary.kt | 0 .../src/test/kotlin/externals/UserEvent.kt | 0 .../test/kotlin/utils/ServerSentEventTest.kt | 2 +- .../src/test/kotlin/utils/TestMessage.kt | 0 .../src/test/kotlin/utils/TestUtils.kt | 4 +-- .../src/test/kotlin/utils/UseRequestTest.kt | 8 ++--- .../src/test/kotlin/utils/Utils.kt | 0 .../saveourtool/save/utils/PlatformUtils.kt | 1 - save-frontend/build.gradle.kts | 2 +- .../com/saveourtool/save/frontend/App.kt | 10 +++--- .../save/frontend/components/ErrorBoundary.kt | 4 +-- .../save/frontend/components/HasErrorModal.kt | 12 +++---- .../components/basic/ContestEnroller.kt | 10 +++--- .../components/basic/ExecutionLabels.kt | 4 +-- .../frontend/components/basic/ProjectInfo.kt | 10 +++--- .../frontend/components/basic/SdkSelection.kt | 4 +-- .../basic/TestResourcesSelection.kt | 10 +++--- .../components/basic/TestStatusComponent.kt | 6 ++-- .../components/basic/TimelineComponent.kt | 2 +- .../basic/codeeditor/EditorToolbar.kt | 8 ++--- .../basic/demo/GraphDemoComponent.kt | 6 ++-- .../basic/demo/management/DemoButtons.kt | 2 +- .../demo/management/DemoContainerLogButton.kt | 10 +++--- .../basic/demo/management/DemoFileUploader.kt | 2 +- .../basic/demo/management/DemoModeLabel.kt | 2 +- .../basic/demo/management/DemoModeModal.kt | 8 ++--- .../basic/demo/management/DemoRunCommands.kt | 8 ++--- .../basic/demo/run/DemoOutputComponent.kt | 4 +-- .../basic/demo/run/DemoRunComponent.kt | 14 ++++---- .../demo/welcome/DemoIntroductionComponent.kt | 2 +- .../basic/demo/welcome/DemoListComponent.kt | 6 ++-- .../basic/demo/welcome/DemoStatistics.kt | 6 ++-- .../basic/demo/welcome/FeaturedDemos.kt | 8 ++--- .../fileuploader/FileManagerComponent.kt | 12 +++---- .../fileuploader/ProgressBarComponent.kt | 2 +- .../basic/fileuploader/SimpleFileUploader.kt | 6 ++-- .../basic/graph/AdditionalInfoDisplayer.kt | 5 +-- .../projects/CreateProjectProblemView.kt | 8 ++--- .../projects/EditProjectProblemWindow.kt | 10 +++--- .../basic/projects/ProjectDemoMenu.kt | 4 +-- .../basic/projects/ProjectInfoMenu.kt | 18 +++++----- .../basic/projects/ProjectProblemView.kt | 16 ++++----- .../basic/projects/ProjectRunMenu.kt | 12 +++---- .../basic/projects/ProjectSecurityMenu.kt | 12 +++---- .../basic/projects/ProjectSettingsMenu.kt | 10 +++--- .../basic/projects/ProjectStatisticMenu.kt | 10 +++--- .../table/filters/TestExecutionFilter.kt | 9 ++--- .../save/frontend/components/topbar/TopBar.kt | 8 ++--- .../components/topbar/TopBarUrlSplits.kt | 2 +- .../components/topbar/TopBarUserField.kt | 8 ++--- .../components/views/AwesomeBenchmarksView.kt | 10 +++--- .../save/frontend/components/views/BanView.kt | 8 ++--- .../components/views/ContestExecutionView.kt | 22 ++++++------ .../frontend/components/views/ContestView.kt | 22 ++++++------ .../components/views/CreateProjectView.kt | 30 ++++++++-------- .../components/views/ExecutionView.kt | 34 +++++++++---------- .../frontend/components/views/HistoryView.kt | 30 ++++++++-------- .../components/views/OrganizationAdminView.kt | 22 ++++++------ .../frontend/components/views/ProjectView.kt | 16 ++++----- .../views/TestExecutionDetailsView.kt | 10 +++--- .../views/ThanksForRegistrationView.kt | 2 +- .../views/agreements/CookiesTermsOfUse.kt | 14 ++++---- .../views/agreements/TermsOfUsage.kt | 6 ++-- .../views/contests/ContestGlobalRatingView.kt | 26 +++++++------- .../views/contests/ContestListCard.kt | 12 +++---- .../views/contests/ContestListView.kt | 4 +-- .../views/contests/ContestSampleListCard.kt | 6 ++-- .../views/contests/ContestTemplateView.kt | 5 +-- .../views/contests/ContestsStatistics.kt | 2 +- .../contests/CreateContestTemplateView.kt | 6 ++-- .../views/contests/FeaturedContests.kt | 12 +++---- .../components/views/contests/GlobalRating.kt | 4 +-- .../views/contests/MyProjectsRating.kt | 4 +-- .../components/views/contests/NewContests.kt | 2 +- .../components/views/contests/Utils.kt | 4 +-- .../frontend/components/views/demo/CpgView.kt | 8 ++--- .../views/demo/DemoCollectionView.kt | 4 +-- .../components/views/demo/DemoView.kt | 8 ++--- .../components/views/index/CardAboutUs.kt | 6 ++-- .../components/views/index/CardServiceInfo.kt | 2 +- .../components/views/index/CardUser.kt | 4 +-- .../components/views/index/IndexView.kt | 8 ++--- .../components/views/index/IndexViewAuth.kt | 4 +-- .../views/index/IndexViewUserInfo.kt | 8 ++--- .../views/projectcollection/CollectionView.kt | 18 +++++----- .../views/test/analysis/AnalysisResultView.kt | 10 +++--- .../views/welcome/MarketingTitles.kt | 4 +-- .../views/welcome/SaveWelcomeView.kt | 16 ++++----- .../components/views/welcome/WelcomeUtils.kt | 8 ++--- .../views/welcome/pagers/WelcomePager.kt | 2 +- .../welcome/pagers/save/AwesomeBenchmarks.kt | 2 +- .../views/welcome/pagers/save/Contests.kt | 2 +- .../pagers/save/GeneralInfoPictures.kt | 2 +- .../welcome/pagers/save/HighLevelSave.kt | 2 +- .../views/welcome/pagers/save/Slogan.kt | 4 +-- .../welcome/pagers/save/TestsSelector.kt | 2 +- .../frontend/externals/i18next/Translation.kt | 6 ++-- .../frontend/externals/reactace/AceBuilder.kt | 2 +- .../save/frontend/routing/BasicRouting.kt | 20 +++++------ .../save/frontend/routing/MobileRouting.kt | 4 +-- .../frontend/utils/SaveOrganizationType.kt | 4 +-- .../components/views/ProjectViewTest.kt | 2 +- settings.gradle.kts | 2 +- 296 files changed, 1175 insertions(+), 1164 deletions(-) rename {save-frontend-common => frontend-common}/README.md (100%) rename {save-frontend-common => frontend-common}/build.gradle.kts (99%) rename {save-frontend-common => frontend-common}/detekt.yml (100%) rename {save-frontend-common => frontend-common}/karma.config.d/custom-config.js (100%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/Footer.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/HasErrorModal.kt (91%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/AddUserComponent.kt (82%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/AvatarForm.kt (84%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/AvatarRenderers.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/Card.kt (89%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/Carousel.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/CookieBanner.kt (71%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/Forum.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/LanguageSelector.kt (79%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/ManageUserRoleCard.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/Markdown.kt (77%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/ScoreCard.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/ScrollToTopButton.kt (81%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/SelectForm.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/TestSuitesDisplayer.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/UserBoard.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/contests/ContestCreationComponent.kt (92%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/contests/ContestInfoMenu.kt (88%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/contests/ContestSubmissionsMenu.kt (90%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/contests/ContestSummaryMenu.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/contests/PublicTestCardComponent.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/fileuploader/DefaultProgressBarComponent.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/fileuploader/FileUploaderUtils.kt (81%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/table/filters/NameFiltersRow.kt (82%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/table/filters/VulnerabilitiesFiltersRow.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/testsuiteselector/TestSuiteSelector.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorBrowserMode.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorManagerMode.kt (91%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorSearchMode.kt (93%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/testsuitespermissions/ManageTestSuitePermissionsCard.kt (89%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/testsuitespermissions/PermissionManagerMode.kt (92%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/testsuitessources/TestSuiteSourceUpsertComponent.kt (90%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/basic/testsuitessources/fetch/TestSuitesSourceFetcher.kt (92%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/inputform/DragAndDropForm.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/inputform/InputDateFormRequired.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/inputform/InputForms.kt (98%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/inputform/InputTextFormDisabled.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/inputform/InputTextFormOptional.kt (93%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/inputform/InputTextFormRequired.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/inputform/InputWithDebounce.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/mobile/AboutUsMobileView.kt (88%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/mobile/SaveWelcomeMobileView.kt (73%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/modal/LogoutModal.kt (78%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/modal/Modal.kt (65%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/modal/ModalBuilder.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/modal/ModalDialog.kt (65%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/modal/ModalDialogStrings.kt (79%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/modal/ModalStyles.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/tables/Builders.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/tables/PagingControl.kt (99%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/tables/TableComponent.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/tables/TableUtils.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/AboutUsView.kt (93%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/AbstractView.kt (89%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/FallbackView.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/RegistrationView.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/CreateOrganizationView.kt (91%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/GitWindow.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/ManageGitCredentialsCard.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/OrganizationContestsMenu.kt (93%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/OrganizationMenuBar.kt (85%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/OrganizationSettingsMenu.kt (93%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/OrganizationTestsMenu.kt (89%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/OrganizationToolsMenu.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/OrganizationType.kt (68%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/OrganizationView.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/RenderAdminTab.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/RenderInfoTab.kt (90%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/RenderOrganizationMenuBar.kt (91%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/RenderVulnerabilitiesTab.kt (85%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/organization/TestSuitesSourcesDisplayer.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/userprofile/UserProfileNewUsersTab.kt (81%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/userprofile/UserProfileView.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/SettingsView.kt (92%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/SettingsViewLeftColumn.kt (92%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/SettingsViewRightColumn.kt (70%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/right/Delete.kt (87%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/right/Email.kt (76%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/right/Organizations.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/right/SettingsInputFields.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/right/Token.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/right/profile/AvatarSelector.kt (90%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/right/profile/Profile.kt (81%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/usersettings/right/validation/InputValidationUtils.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/vuln/UploadCosvButton.kt (76%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/vuln/VulnerabilityTableComponent.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/MarketingTitles.kt (92%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/SaveWelcomeView.kt (86%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/WelcomeUtils.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/pagers/WelcomePager.kt (77%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/pagers/save/AwesomeBenchmarks.kt (74%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/pagers/save/Contests.kt (75%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/pagers/save/GeneralInfo.kt (98%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/pagers/save/GeneralInfoPictures.kt (92%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/pagers/save/HighLevelSave.kt (65%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/pagers/save/ReadMore.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/pagers/save/Slogan.kt (83%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/components/views/welcome/pagers/save/TestsSelector.kt (73%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/animations/Particles.kt (87%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/animations/RingLoader.kt (85%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/animations/ScrollMotion.kt (98%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/animations/ScrollMotionConstants.kt (89%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/cookie/Cookie.kt (98%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/diffviewer/ReactDiffViewer.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/fontawesome/BrandIcons.kt (86%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/fontawesome/FaSetup.kt (70%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/fontawesome/FontAwesomeIcon.kt (83%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/fontawesome/FontAwesomeIconBuilders.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/fontawesome/FontAwesomeIconProps.kt (89%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/fontawesome/Icons.kt (99%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/i18next/I18n.kt (90%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/i18next/InitI18n.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/i18next/Translation.kt (87%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/i18next/UseTranslation.kt (82%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/imageeditor/ReactAvatarImageCropper.kt (90%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/jsonview/JsonView.kt (92%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/lodash/Debounce.kt (84%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/markdown/ReactMarkdown.kt (88%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/markdown/rehype/RehypeMarkdownPlugin.kt (82%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/modal/ReactModal.kt (98%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/progressbar/ReactCircle.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/progressbar/ReactCircleBuilder.kt (89%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/externals/slider/MultiRangeSlider.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/http/Exceptions.kt (89%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/http/Requests.kt (98%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/themes/Colors.kt (90%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/Action.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/CComponent.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/ChildrenBuilderUtils.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/ComponentWithScope.kt (92%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/CustomHooks.kt (98%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/FilterParamUtils.kt (91%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/HtmlElements.kt (91%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/JsUtils.kt (98%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/LocationUtils.kt (95%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/LoginUtils.kt (93%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/Particles.kt (83%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/RequestUtils.kt (98%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/RouterUtils.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/StateWithRole.kt (82%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/TopBarUrl.kt (99%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/UsefulUrls.kt (94%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/UserInfoAwareProps.kt (96%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/Utils.kt (97%) rename {save-frontend-common/src/main/kotlin/com/saveourtool/save => frontend-common/src/main/kotlin/com/saveourtool}/frontend/common/utils/WindowOpenness.kt (95%) rename {save-frontend-common => frontend-common}/src/test/kotlin/components/FooterTest.kt (90%) rename {save-frontend-common => frontend-common}/src/test/kotlin/components/basic/SelectFormTest.kt (92%) rename {save-frontend-common => frontend-common}/src/test/kotlin/components/views/OrganizationViewTest.kt (90%) rename {save-frontend-common => frontend-common}/src/test/kotlin/externals/MockServiceWorker.kt (100%) rename {save-frontend-common => frontend-common}/src/test/kotlin/externals/ReactTestingLibrary.kt (100%) rename {save-frontend-common => frontend-common}/src/test/kotlin/externals/UserEvent.kt (100%) rename {save-frontend-common => frontend-common}/src/test/kotlin/utils/ServerSentEventTest.kt (98%) rename {save-frontend-common => frontend-common}/src/test/kotlin/utils/TestMessage.kt (100%) rename {save-frontend-common => frontend-common}/src/test/kotlin/utils/TestUtils.kt (90%) rename {save-frontend-common => frontend-common}/src/test/kotlin/utils/UseRequestTest.kt (88%) rename {save-frontend-common => frontend-common}/src/test/kotlin/utils/Utils.kt (100%) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index c917cb8792..381ac243cb 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -31,7 +31,7 @@ jobs: save-demo-agent: ${{ steps.calculate-dependencies.outputs.save-demo-agent }} save-demo-cpg: ${{ steps.calculate-dependencies.outputs.save-demo-cpg }} save-frontend: ${{ steps.calculate-dependencies.outputs.save-frontend }} - save-frontend-common: ${{ steps.calculate-dependencies.outputs.save-frontend-common }} + frontend-common: ${{ steps.calculate-dependencies.outputs.frontend-common }} save-orchestrator: ${{ steps.calculate-dependencies.outputs.save-orchestrator }} save-orchestrator-common: ${{ steps.calculate-dependencies.outputs.save-orchestrator-common }} save-preprocessor: ${{ steps.calculate-dependencies.outputs.save-preprocessor }} @@ -78,8 +78,8 @@ jobs: - save-demo-cpg/** save-frontend: - save-frontend/** - save-frontend-common: - - save-frontend-common/** + frontend-common: + - frontend-common/** save-orchestrator: - save-orchestrator/** save-orchestrator-common: @@ -95,7 +95,7 @@ jobs: set -x all=$(( ${{ steps.git-changed-files.outputs.root_gradle_all_changed_files_count }} )) save_cloud_common=$(( $all + ${{ steps.git-changed-files.outputs.save-cloud-common_all_changed_files_count }} )) - save_frontend_common=$(( $save_cloud_common + ${{ steps.git-changed-files.outputs.save-frontend-common_all_changed_files_count }} )) + frontend_common=$(( $save_cloud_common + ${{ steps.git-changed-files.outputs.frontend-common_all_changed_files_count }} )) save_orchestrator_common=$(( $save_cloud_common + ${{ steps.git-changed-files.outputs.save-orchestrator-common_all_changed_files_count }} )) authentication_service=$(( $save_cloud_common + ${{ steps.git-changed-files.outputs.authentication-service_all_changed_files_count }} )) @@ -108,11 +108,11 @@ jobs: save_agent=$(( $save_cloud_common + ${{ steps.git-changed-files.outputs.save-agent_all_changed_files_count }} )) save_api_cli=$(( $save_cloud_common + $save_api + ${{ steps.git-changed-files.outputs.save-api-cli_all_changed_files_count }} )) save_backend=$(( $save_cloud_common + $authentication_service + $test_analysis_core + $cosv_backend + $test_utils + ${{ steps.git-changed-files.outputs.save-backend_all_changed_files_count }} )) - cosv_frontend=$(( $save_cloud_common + $save_frontend_common + ${{ steps.git-changed-files.outputs.cosv-frontend_all_changed_files_count }} )) + cosv_frontend=$(( $save_cloud_common + $frontend_common + ${{ steps.git-changed-files.outputs.cosv-frontend_all_changed_files_count }} )) save_demo=$(( $save_cloud_common + ${{ steps.git-changed-files.outputs.save-demo_all_changed_files_count }} )) save_demo_agent=$(( $save_cloud_common + ${{ steps.git-changed-files.outputs.save-demo-agent_all_changed_files_count }} )) save_demo_cpg=$(( $save_cloud_common + ${{ steps.git-changed-files.outputs.save-demo-cpg_all_changed_files_count }} )) - save_frontend=$(( $save_cloud_common + $save_frontend_common + ${{ steps.git-changed-files.outputs.save-frontend_all_changed_files_count }} )) + save_frontend=$(( $save_cloud_common + $frontend_common + ${{ steps.git-changed-files.outputs.save-frontend_all_changed_files_count }} )) save_orchestrator=$(( $save_cloud_common + $save_orchestrator_common + $test_utils + ${{ steps.git-changed-files.outputs.save-orchestrator_all_changed_files_count }} )) save_preprocessor=$(( $save_cloud_common + $test_utils + ${{ steps.git-changed-files.outputs.save-preprocessor_all_changed_files_count }} )) @@ -129,7 +129,7 @@ jobs: echo "save-demo-agent=$save_demo_agent" >> "$GITHUB_OUTPUT" echo "save-demo-cpg=$save_demo_cpg" >> "$GITHUB_OUTPUT" echo "save-frontend=$save_frontend" >> "$GITHUB_OUTPUT" - echo "save-frontend-common=$save_frontend_common" >> "$GITHUB_OUTPUT" + echo "frontend-common=$frontend_common" >> "$GITHUB_OUTPUT" echo "save-orchestrator=$save_orchestrator" >> "$GITHUB_OUTPUT" echo "save-orchestrator-common=$save_orchestrator_common" >> "$GITHUB_OUTPUT" echo "save-preprocessor=$save_preprocessor" >> "$GITHUB_OUTPUT" @@ -151,17 +151,17 @@ jobs: do-build: ${{ github.event_name == 'push' || needs.calculate_build_flags.outputs.save-orchestrator-common > 0 }} module: save-orchestrator-common gradle-cache-read-only: ${{ github.ref != 'refs/heads/master' && github.event_name != 'pull_request' }} - build_save-frontend-common: - name: 'Build and test (save-frontend-common)' + build_frontend-common: + name: 'Build and test (frontend-common)' needs: [ calculate_build_flags, build_save-orchestrator-common ] uses: ./.github/workflows/build_and_test_reusable.yml with: - do-build: ${{ github.event_name == 'push' || needs.calculate_build_flags.outputs.save-frontend-common > 0 }} - module: save-frontend-common + do-build: ${{ github.event_name == 'push' || needs.calculate_build_flags.outputs.frontend-common > 0 }} + module: frontend-common gradle-cache-read-only: ${{ github.ref != 'refs/heads/master' && github.event_name != 'pull_request' }} build_all: name: 'Build and test' - needs: [ calculate_build_flags, build_save-frontend-common ] + needs: [ calculate_build_flags, build_frontend-common ] strategy: fail-fast: false matrix: diff --git a/cosv-frontend/README.md b/cosv-frontend/README.md index 606c73bb07..5e18ac5692 100644 --- a/cosv-frontend/README.md +++ b/cosv-frontend/README.md @@ -9,8 +9,8 @@ To pack distribution, use `./gradlew :cosv-frontend:browserDevelopmentWebpack` a save-backend consumes frontend distribution as a dependency. Frontend distribution is copied and included in spring boot resources. -### `nginx` [configuration](../save-frontend-common/README.md) +### `nginx` [configuration](../frontend-common/README.md) -### `webpack-dev-server` [configuration for no `api-gateway` run](../save-frontend-common/README.md) +### `webpack-dev-server` [configuration for no `api-gateway` run](../frontend-common/README.md) -### [Using OAuth with a local deployment (`api-gateway` on)](../save-frontend-common/README.md) +### [Using OAuth with a local deployment (`api-gateway` on)](../frontend-common/README.md) diff --git a/cosv-frontend/build.gradle.kts b/cosv-frontend/build.gradle.kts index 46d37b32f4..b1315c2a23 100644 --- a/cosv-frontend/build.gradle.kts +++ b/cosv-frontend/build.gradle.kts @@ -18,7 +18,7 @@ rootProject.plugins.withType { dependencies { implementation(projects.saveCloudCommon) - implementation(projects.saveFrontendCommon) + implementation(projects.frontendCommon) implementation(enforcedPlatform(libs.kotlin.wrappers.bom)) implementation("org.jetbrains.kotlin-wrappers:kotlin-react") diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/App.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/App.kt index d4a3ad874c..8977ced795 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/App.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/App.kt @@ -8,12 +8,12 @@ import com.saveourtool.cosv.frontend.components.ErrorBoundary import com.saveourtool.cosv.frontend.components.requestModalHandler import com.saveourtool.cosv.frontend.components.topbar.topBarComponent import com.saveourtool.cosv.frontend.routing.basicRouting -import com.saveourtool.save.frontend.common.components.* -import com.saveourtool.save.frontend.common.components.basic.cookieBanner -import com.saveourtool.save.frontend.common.components.basic.scrollToTopButton -import com.saveourtool.save.frontend.common.externals.i18next.initI18n -import com.saveourtool.save.frontend.common.externals.modal.ReactModal -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.* +import com.saveourtool.frontend.common.components.basic.cookieBanner +import com.saveourtool.frontend.common.components.basic.scrollToTopButton +import com.saveourtool.frontend.common.externals.i18next.initI18n +import com.saveourtool.frontend.common.externals.modal.ReactModal +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendRoutes diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/ErrorBoundary.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/ErrorBoundary.kt index 15e6a9fdf2..b33719feb6 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/ErrorBoundary.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/ErrorBoundary.kt @@ -5,8 +5,8 @@ package com.saveourtool.cosv.frontend.components import com.saveourtool.cosv.frontend.components.topbar.topBarComponent -import com.saveourtool.save.frontend.common.components.footer -import com.saveourtool.save.frontend.common.components.views.FallbackView +import com.saveourtool.frontend.common.components.footer +import com.saveourtool.frontend.common.components.views.FallbackView import js.core.jso import react.* diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/RequestModalHandler.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/RequestModalHandler.kt index 56447f43e8..7cff64ef99 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/RequestModalHandler.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/RequestModalHandler.kt @@ -3,11 +3,11 @@ package com.saveourtool.cosv.frontend.components import com.saveourtool.cosv.frontend.components.topbar.topBarComponent -import com.saveourtool.save.frontend.common.components.* -import com.saveourtool.save.frontend.common.components.modal.loaderModalStyle -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.components.views.FallbackView -import com.saveourtool.save.frontend.common.utils.UserInfoAwarePropsWithChildren +import com.saveourtool.frontend.common.components.* +import com.saveourtool.frontend.common.components.modal.loaderModalStyle +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.components.views.FallbackView +import com.saveourtool.frontend.common.utils.UserInfoAwarePropsWithChildren import org.w3c.fetch.Response import react.* diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/CosvOrganizationType.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/CosvOrganizationType.kt index 180de77fee..52c74de24e 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/CosvOrganizationType.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/CosvOrganizationType.kt @@ -1,7 +1,7 @@ package com.saveourtool.cosv.frontend.components.basic -import com.saveourtool.save.frontend.common.components.views.organization.OrganizationMenuBar -import com.saveourtool.save.frontend.common.components.views.organization.OrganizationType +import com.saveourtool.frontend.common.components.views.organization.OrganizationMenuBar +import com.saveourtool.frontend.common.components.views.organization.OrganizationType object CosvOrganizationType : OrganizationType { override val listTab: Array = arrayOf( diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/VulnerabilityIntroductionComponent.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/VulnerabilityIntroductionComponent.kt index 4c5d4941d0..9c258bacd7 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/VulnerabilityIntroductionComponent.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/basic/VulnerabilityIntroductionComponent.kt @@ -3,8 +3,8 @@ package com.saveourtool.cosv.frontend.components.basic import com.saveourtool.cosv.frontend.components.views.vuln.columnHeight -import com.saveourtool.save.frontend.common.components.basic.markdown -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.externals.i18next.useTranslation import js.core.jso import react.FC diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBar.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBar.kt index a7d8e1139c..4194237e0d 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBar.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBar.kt @@ -6,12 +6,12 @@ package com.saveourtool.cosv.frontend.components.topbar -import com.saveourtool.save.frontend.common.components.basic.languageSelector -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.externals.fontawesome.FontAwesomeIconModule -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.UserInfoAwarePropsWithChildren -import com.saveourtool.save.frontend.common.utils.notIn +import com.saveourtool.frontend.common.components.basic.languageSelector +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.externals.fontawesome.FontAwesomeIconModule +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.UserInfoAwarePropsWithChildren +import com.saveourtool.frontend.common.utils.notIn import com.saveourtool.save.validation.FrontendRoutes import js.core.jso diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarLinks.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarLinks.kt index e1be33ff37..eac9f700e0 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarLinks.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarLinks.kt @@ -2,7 +2,7 @@ package com.saveourtool.cosv.frontend.components.topbar -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.externals.i18next.useTranslation import com.saveourtool.save.validation.FrontendCosvRoutes import react.* diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarUrlSplits.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarUrlSplits.kt index f832b91797..c1fd8d5c4b 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarUrlSplits.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarUrlSplits.kt @@ -2,7 +2,7 @@ package com.saveourtool.cosv.frontend.components.topbar -import com.saveourtool.save.frontend.common.utils.TopBarUrl +import com.saveourtool.frontend.common.utils.TopBarUrl import com.saveourtool.save.utils.URL_PATH_DELIMITER import com.saveourtool.save.validation.FrontendCosvRoutes diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarUserField.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarUserField.kt index 5cfce68959..c0e570ef41 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarUserField.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/topbar/TopBarUserField.kt @@ -4,14 +4,14 @@ package com.saveourtool.cosv.frontend.components.topbar -import com.saveourtool.save.frontend.common.components.basic.avatarRenderer -import com.saveourtool.save.frontend.common.components.modal.logoutModal -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.AVATAR_PROFILE_PLACEHOLDER -import com.saveourtool.save.frontend.common.utils.UserInfoAwareProps -import com.saveourtool.save.frontend.common.utils.isSuperAdmin +import com.saveourtool.frontend.common.components.basic.avatarRenderer +import com.saveourtool.frontend.common.components.modal.logoutModal +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.AVATAR_PROFILE_PLACEHOLDER +import com.saveourtool.frontend.common.utils.UserInfoAwareProps +import com.saveourtool.frontend.common.utils.isSuperAdmin import com.saveourtool.save.validation.FrontendCosvRoutes import js.core.jso diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/CosvSchemaView.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/CosvSchemaView.kt index 579339e02d..1b9b429626 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/CosvSchemaView.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/CosvSchemaView.kt @@ -7,11 +7,11 @@ package com.saveourtool.cosv.frontend.components.views.vuln import com.saveourtool.cosv.frontend.components.views.vuln.utils.COSV_SCHEMA_JSON import com.saveourtool.cosv.frontend.components.views.vuln.utils.cosvFieldsDescriptionsMap import com.saveourtool.cosv.frontend.components.views.vuln.utils.keysOnlyFromCosv -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.particles -import com.saveourtool.save.frontend.common.utils.useBackground +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.particles +import com.saveourtool.frontend.common.utils.useBackground import js.core.jso import react.FC diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/CreateVulnerabilityView.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/CreateVulnerabilityView.kt index 62f32ecb06..40f56ac252 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/CreateVulnerabilityView.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/CreateVulnerabilityView.kt @@ -3,6 +3,20 @@ package com.saveourtool.cosv.frontend.components.views.vuln import com.saveourtool.cosv.frontend.components.views.vuln.component.cvssBaseScoreCalculator +import com.saveourtool.frontend.common.components.basic.addUserComponent +import com.saveourtool.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.components.basic.renderAvatar +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormOptional +import com.saveourtool.frontend.common.components.modal.MAX_Z_INDEX +import com.saveourtool.frontend.common.components.modal.calculatorModalStyle +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.views.vuln.uploadCosvButton +import com.saveourtool.frontend.common.externals.fontawesome.faPlus +import com.saveourtool.frontend.common.externals.fontawesome.faTimesCircle +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.* import com.saveourtool.osv4k.Reference import com.saveourtool.osv4k.ReferenceType import com.saveourtool.osv4k.Severity @@ -12,20 +26,6 @@ import com.saveourtool.save.cvsscalculator.calculateBaseScore import com.saveourtool.save.cvsscalculator.parsingVectorToMap import com.saveourtool.save.cvsscalculator.v3.CvssVectorV3 import com.saveourtool.save.entities.OrganizationDto -import com.saveourtool.save.frontend.common.components.basic.addUserComponent -import com.saveourtool.save.frontend.common.components.basic.markdown -import com.saveourtool.save.frontend.common.components.basic.renderAvatar -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormOptional -import com.saveourtool.save.frontend.common.components.modal.MAX_Z_INDEX -import com.saveourtool.save.frontend.common.components.modal.calculatorModalStyle -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.views.vuln.uploadCosvButton -import com.saveourtool.save.frontend.common.externals.fontawesome.faPlus -import com.saveourtool.save.frontend.common.externals.fontawesome.faTimesCircle -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.utils.* import com.saveourtool.save.validation.FrontendCosvRoutes import com.saveourtool.save.validation.isValidUrl diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/UploadVulnerabilityView.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/UploadVulnerabilityView.kt index ae2a917403..e507196a56 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/UploadVulnerabilityView.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/UploadVulnerabilityView.kt @@ -3,11 +3,11 @@ package com.saveourtool.cosv.frontend.components.views.vuln import com.saveourtool.cosv.frontend.components.views.vuln.component.cosvFileManagerComponent -import com.saveourtool.save.frontend.common.components.modal.MAX_Z_INDEX -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.particles -import com.saveourtool.save.frontend.common.utils.useBackground +import com.saveourtool.frontend.common.components.modal.MAX_Z_INDEX +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.particles +import com.saveourtool.frontend.common.utils.useBackground import js.core.jso import react.FC import react.Props diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityBadge.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityBadge.kt index e324ba64eb..eee6537bf5 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityBadge.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityBadge.kt @@ -3,19 +3,19 @@ package com.saveourtool.cosv.frontend.components.views.vuln import com.saveourtool.cosv.frontend.components.views.vuln.component.cvssBaseScoreCalculator +import com.saveourtool.frontend.common.components.modal.calculatorModalStyle +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.externals.progressbar.progressBar +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.useWindowOpenness import com.saveourtool.osv4k.Severity import com.saveourtool.osv4k.SeverityType import com.saveourtool.save.cvsscalculator.CvssVersion import com.saveourtool.save.cvsscalculator.parsingVectorToMap import com.saveourtool.save.cvsscalculator.v3.CvssVectorV3 import com.saveourtool.save.entities.cosv.VulnerabilityExt -import com.saveourtool.save.frontend.common.components.modal.calculatorModalStyle -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.externals.progressbar.progressBar -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.useWindowOpenness import js.core.jso import react.FC diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityChangesTab.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityChangesTab.kt index 8d1a08976b..9fc4c4cba3 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityChangesTab.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityChangesTab.kt @@ -2,10 +2,10 @@ package com.saveourtool.cosv.frontend.components.views.vuln +import com.saveourtool.frontend.common.externals.diffviewer.reactDiffViewer +import com.saveourtool.frontend.common.utils.* import com.saveourtool.osv4k.RawOsvSchema import com.saveourtool.save.entities.cosv.CosvFileDto -import com.saveourtool.save.frontend.common.externals.diffviewer.reactDiffViewer -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.utils.toUnixCalendarFormat import js.core.jso diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityCollectionView.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityCollectionView.kt index c0a11463a8..794d9cf960 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityCollectionView.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityCollectionView.kt @@ -7,13 +7,13 @@ package com.saveourtool.cosv.frontend.components.views.vuln import com.saveourtool.cosv.frontend.components.basic.vulnerabilityIntroductionComponent +import com.saveourtool.frontend.common.components.basic.* +import com.saveourtool.frontend.common.components.views.vuln.vulnerabilityTableComponent +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.particles +import com.saveourtool.frontend.common.utils.useBackground import com.saveourtool.save.filters.VulnerabilityFilter -import com.saveourtool.save.frontend.common.components.basic.* -import com.saveourtool.save.frontend.common.components.views.vuln.vulnerabilityTableComponent -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.particles -import com.saveourtool.save.frontend.common.utils.useBackground import com.saveourtool.save.info.UserInfo import js.core.jso diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityCommentTab.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityCommentTab.kt index a227162912..dcc92a1b02 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityCommentTab.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityCommentTab.kt @@ -2,12 +2,12 @@ package com.saveourtool.cosv.frontend.components.views.vuln +import com.saveourtool.frontend.common.components.basic.commentWindow +import com.saveourtool.frontend.common.components.basic.newCommentWindow +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.CommentDto import com.saveourtool.save.entities.cosv.VulnerabilityExt -import com.saveourtool.save.frontend.common.components.basic.commentWindow -import com.saveourtool.save.frontend.common.components.basic.newCommentWindow -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import js.core.jso diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityDateModal.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityDateModal.kt index 430c350a40..a7cc86853a 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityDateModal.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityDateModal.kt @@ -2,17 +2,17 @@ package com.saveourtool.cosv.frontend.components.views.vuln +import com.saveourtool.frontend.common.components.inputform.* +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.WindowOpenness +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.dateStringToLocalDateTime +import com.saveourtool.frontend.common.utils.selectorBuilder import com.saveourtool.save.entities.cosv.VulnerabilityExt import com.saveourtool.save.entities.vulnerability.VulnerabilityDateDto import com.saveourtool.save.entities.vulnerability.VulnerabilityDateType -import com.saveourtool.save.frontend.common.components.inputform.* -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.WindowOpenness -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.dateStringToLocalDateTime -import com.saveourtool.save.frontend.common.utils.selectorBuilder import com.saveourtool.save.utils.getTimeline import react.FC diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityGeneralInfoProps.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityGeneralInfoProps.kt index 4b32bcaa99..32680fd516 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityGeneralInfoProps.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityGeneralInfoProps.kt @@ -1,21 +1,21 @@ package com.saveourtool.cosv.frontend.components.views.vuln +import com.saveourtool.frontend.common.components.basic.renderAvatar +import com.saveourtool.frontend.common.components.basic.renderUserAvatarWithName +import com.saveourtool.frontend.common.components.basic.userBoard +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.isSuperAdmin +import com.saveourtool.frontend.common.utils.selectorBuilder import com.saveourtool.osv4k.ConfirmType import com.saveourtool.osv4k.Credit import com.saveourtool.save.entities.cosv.VulnerabilityExt import com.saveourtool.save.entities.cosv.VulnerabilityMetadataDto.Companion.SUMMARY_LENGTH import com.saveourtool.save.entities.vulnerability.VulnerabilityStatus -import com.saveourtool.save.frontend.common.components.basic.renderAvatar -import com.saveourtool.save.frontend.common.components.basic.renderUserAvatarWithName -import com.saveourtool.save.frontend.common.components.basic.userBoard -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.isSuperAdmin -import com.saveourtool.save.frontend.common.utils.selectorBuilder import com.saveourtool.save.info.UserInfo import com.saveourtool.save.utils.NO_BREAK_SPACE import com.saveourtool.save.utils.PRETTY_DELIMITER diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityHeader.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityHeader.kt index 20054dbcd6..ce5f26dbcc 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityHeader.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityHeader.kt @@ -6,18 +6,18 @@ package com.saveourtool.cosv.frontend.components.views.vuln +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.externals.fontawesome.faDownload +import com.saveourtool.frontend.common.externals.fontawesome.faImage +import com.saveourtool.frontend.common.externals.fontawesome.faTable +import com.saveourtool.frontend.common.externals.fontawesome.faTrash +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.CommentDto import com.saveourtool.save.entities.cosv.VulnerabilityExt import com.saveourtool.save.entities.vulnerability.VulnerabilityStatus -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.externals.fontawesome.faDownload -import com.saveourtool.save.frontend.common.externals.fontawesome.faImage -import com.saveourtool.save.frontend.common.externals.fontawesome.faTable -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrash -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendCosvRoutes diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityHistoryTab.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityHistoryTab.kt index cbc0aa3742..789151e83f 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityHistoryTab.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityHistoryTab.kt @@ -2,12 +2,12 @@ package com.saveourtool.cosv.frontend.components.views.vuln +import com.saveourtool.frontend.common.components.tables.* +import com.saveourtool.frontend.common.components.tables.TABLE_HEADERS_LOCALE_NAMESPACE +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.cosv.CosvFileDto -import com.saveourtool.save.frontend.common.components.tables.* -import com.saveourtool.save.frontend.common.components.tables.TABLE_HEADERS_LOCALE_NAMESPACE -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.utils.toUnixCalendarFormat import react.* diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityInfoTab.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityInfoTab.kt index ad90cd3638..e7aea8187a 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityInfoTab.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityInfoTab.kt @@ -7,24 +7,24 @@ package com.saveourtool.cosv.frontend.components.views.vuln import com.saveourtool.cosv.frontend.components.views.vuln.component.timelineComponent +import com.saveourtool.frontend.common.components.basic.carousel +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.externals.fontawesome.faPlus +import com.saveourtool.frontend.common.externals.fontawesome.faTrashAlt +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.i18next.TranslationFunction +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* import com.saveourtool.osv4k.Affected import com.saveourtool.save.entities.cosv.VulnerabilityExt import com.saveourtool.save.entities.vulnerability.VulnerabilityDateDto import com.saveourtool.save.entities.vulnerability.VulnerabilityDateType import com.saveourtool.save.entities.vulnerability.VulnerabilityProjectType -import com.saveourtool.save.frontend.common.components.basic.carousel -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.externals.fontawesome.faPlus -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrashAlt -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.externals.i18next.TranslationFunction -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.utils.ELLIPSIS import com.saveourtool.save.utils.asTimelineEntry diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityProjectWindow.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityProjectWindow.kt index 3fe1095815..42e32aed13 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityProjectWindow.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityProjectWindow.kt @@ -2,17 +2,17 @@ package com.saveourtool.cosv.frontend.components.views.vuln +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormOptional +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.WindowOpenness +import com.saveourtool.frontend.common.utils.selectorBuilder import com.saveourtool.osv4k.* import com.saveourtool.save.entities.vulnerability.VulnerabilityLanguage import com.saveourtool.save.entities.vulnerability.VulnerabilityProjectType -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormOptional -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.WindowOpenness -import com.saveourtool.save.frontend.common.utils.selectorBuilder import com.saveourtool.save.utils.PRETTY_DELIMITER import com.saveourtool.save.validation.isValidUrl diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityRawDataTab.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityRawDataTab.kt index 60fdaa3fe6..0fed9968ad 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityRawDataTab.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityRawDataTab.kt @@ -2,8 +2,9 @@ package com.saveourtool.cosv.frontend.components.views.vuln +import com.saveourtool.frontend.common.externals.jsonview.reactJson import com.saveourtool.save.entities.cosv.VulnerabilityExt -import com.saveourtool.save.frontend.common.externals.jsonview.reactJson + import react.FC import react.Props diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityTagsComponent.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityTagsComponent.kt index fcd79d5e28..d40663507d 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityTagsComponent.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityTagsComponent.kt @@ -2,12 +2,12 @@ package com.saveourtool.cosv.frontend.components.views.vuln +import com.saveourtool.frontend.common.externals.fontawesome.faPlus +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.useTooltip import com.saveourtool.save.entities.cosv.VulnerabilityExt -import com.saveourtool.save.frontend.common.externals.fontawesome.faPlus -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.useTooltip import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendCosvRoutes import com.saveourtool.save.validation.isValidTag diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityView.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityView.kt index 81015761a8..583c0ea410 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityView.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/VulnerabilityView.kt @@ -6,9 +6,9 @@ package com.saveourtool.cosv.frontend.components.views.vuln +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.cosv.VulnerabilityExt import com.saveourtool.save.frontend.TabMenuBar -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendCosvRoutes diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/CosvFileManagerComponent.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/CosvFileManagerComponent.kt index 58bd782cf1..008e788076 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/CosvFileManagerComponent.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/CosvFileManagerComponent.kt @@ -2,6 +2,17 @@ package com.saveourtool.cosv.frontend.components.views.vuln.component +import com.saveourtool.frontend.common.components.basic.fileuploader.defaultProgressBarComponent +import com.saveourtool.frontend.common.components.basic.fileuploader.deleteFileButton +import com.saveourtool.frontend.common.components.basic.fileuploader.downloadFileButton +import com.saveourtool.frontend.common.components.basic.selectFormRequired +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.dragAndDropForm +import com.saveourtool.frontend.common.externals.fontawesome.faBoxOpen +import com.saveourtool.frontend.common.externals.fontawesome.faReload +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.OrganizationDto import com.saveourtool.save.entities.cosv.RawCosvFileDto import com.saveourtool.save.entities.cosv.RawCosvFileDto.Companion.isDuplicate @@ -12,17 +23,6 @@ import com.saveourtool.save.entities.cosv.RawCosvFileDto.Companion.isUploadedJso import com.saveourtool.save.entities.cosv.RawCosvFileDto.Companion.isZipArchive import com.saveourtool.save.entities.cosv.RawCosvFileStatisticsDto import com.saveourtool.save.entities.cosv.RawCosvFileStreamingResponse -import com.saveourtool.save.frontend.common.components.basic.fileuploader.defaultProgressBarComponent -import com.saveourtool.save.frontend.common.components.basic.fileuploader.deleteFileButton -import com.saveourtool.save.frontend.common.components.basic.fileuploader.downloadFileButton -import com.saveourtool.save.frontend.common.components.basic.selectFormRequired -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.dragAndDropForm -import com.saveourtool.save.frontend.common.externals.fontawesome.faBoxOpen -import com.saveourtool.save.frontend.common.externals.fontawesome.faReload -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.utils.FILE_PART_NAME import com.saveourtool.save.utils.toKilobytes import com.saveourtool.save.validation.isValidName diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/CvssBaseScoreCalculator.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/CvssBaseScoreCalculator.kt index 3034ea64ae..8a62f2cda7 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/CvssBaseScoreCalculator.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/CvssBaseScoreCalculator.kt @@ -2,9 +2,10 @@ package com.saveourtool.cosv.frontend.components.views.vuln.component +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.cvsscalculator.* import com.saveourtool.save.cvsscalculator.v3.* -import com.saveourtool.save.frontend.common.utils.buttonBuilder + import js.core.jso import react.ChildrenBuilder import react.FC @@ -21,6 +22,7 @@ import react.useState import web.cssom.* import web.html.HTMLLabelElement import web.html.InputType + import kotlin.Float val cvssBaseScoreCalculator: FC = FC { props -> diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/TimelineComponent.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/TimelineComponent.kt index 990f095708..54d7f8f3ba 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/TimelineComponent.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/component/TimelineComponent.kt @@ -2,10 +2,11 @@ package com.saveourtool.cosv.frontend.components.views.vuln.component +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.entities.cosv.VulnerabilityExt import com.saveourtool.save.entities.vulnerability.VulnerabilityDateDto -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.buttonBuilder + import react.* import react.dom.html.ReactHTML.div import web.cssom.* diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/OrganizationRatingTab.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/OrganizationRatingTab.kt index 3b78a070e9..6469c76a1e 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/OrganizationRatingTab.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/OrganizationRatingTab.kt @@ -2,14 +2,14 @@ package com.saveourtool.cosv.frontend.components.views.vuln.toprating +import com.saveourtool.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER +import com.saveourtool.frontend.common.components.basic.avatarRenderer +import com.saveourtool.frontend.common.components.basic.table.filters.nameFiltersRow +import com.saveourtool.frontend.common.components.tables.* +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopResponseHandler import com.saveourtool.save.entities.OrganizationDto import com.saveourtool.save.filters.OrganizationFilter -import com.saveourtool.save.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER -import com.saveourtool.save.frontend.common.components.basic.avatarRenderer -import com.saveourtool.save.frontend.common.components.basic.table.filters.nameFiltersRow -import com.saveourtool.save.frontend.common.components.tables.* -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopResponseHandler import js.core.jso import react.* diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/RatingUtils.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/RatingUtils.kt index ebbb94218f..15788767f1 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/RatingUtils.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/RatingUtils.kt @@ -2,8 +2,8 @@ package com.saveourtool.cosv.frontend.components.views.vuln.toprating -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrophy -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.faTrophy +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import js.core.jso import react.ChildrenBuilder import react.dom.html.ReactHTML.td diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/TopRatingView.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/TopRatingView.kt index 48b46a689f..d3d48e11dc 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/TopRatingView.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/TopRatingView.kt @@ -6,13 +6,14 @@ package com.saveourtool.cosv.frontend.components.views.vuln.toprating +import com.saveourtool.frontend.common.externals.fontawesome.faTrophy +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.tab +import com.saveourtool.frontend.common.utils.title +import com.saveourtool.frontend.common.utils.useBackground import com.saveourtool.save.frontend.TabMenuBar -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrophy -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.tab -import com.saveourtool.save.frontend.common.utils.title -import com.saveourtool.save.frontend.common.utils.useBackground import com.saveourtool.save.validation.FrontendCosvRoutes + import react.FC import react.Props import react.dom.html.ReactHTML.div diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/UserRatingTab.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/UserRatingTab.kt index 22c9a05148..b5d87041c0 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/UserRatingTab.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/vuln/toprating/UserRatingTab.kt @@ -2,11 +2,11 @@ package com.saveourtool.cosv.frontend.components.views.vuln.toprating -import com.saveourtool.save.frontend.common.components.basic.renderUserAvatarWithName -import com.saveourtool.save.frontend.common.components.basic.table.filters.nameFiltersRow -import com.saveourtool.save.frontend.common.components.tables.* -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopResponseHandler +import com.saveourtool.frontend.common.components.basic.renderUserAvatarWithName +import com.saveourtool.frontend.common.components.basic.table.filters.nameFiltersRow +import com.saveourtool.frontend.common.components.tables.* +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopResponseHandler import com.saveourtool.save.info.UserInfo import react.* import react.dom.html.ReactHTML.div diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/MarketingTitles.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/MarketingTitles.kt index b8593dc85c..6e5578a6ea 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/MarketingTitles.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/MarketingTitles.kt @@ -4,8 +4,8 @@ package com.saveourtool.cosv.frontend.components.views.welcome -import com.saveourtool.save.frontend.common.externals.fontawesome.faChevronDown -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.faChevronDown +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import js.core.jso import react.ChildrenBuilder diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/VulnerabilityWelcomeView.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/VulnerabilityWelcomeView.kt index a715de794d..21c3f979bc 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/VulnerabilityWelcomeView.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/VulnerabilityWelcomeView.kt @@ -12,18 +12,18 @@ package com.saveourtool.cosv.frontend.components.views.welcome import com.saveourtool.cosv.frontend.components.views.welcome.pagers.vuln.renderVulnerabilityGeneralInfo +import com.saveourtool.frontend.common.components.views.welcome.hrNoMargin +import com.saveourtool.frontend.common.components.views.welcome.inputCredentialsView +import com.saveourtool.frontend.common.components.views.welcome.menuTextAndLink +import com.saveourtool.frontend.common.components.views.welcome.welcomeUserMenu +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.externals.i18next.TranslationFunction +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.UserInfoAwarePropsWithChildren +import com.saveourtool.frontend.common.utils.useBackground import com.saveourtool.save.filters.VulnerabilityFilter.Companion.approved -import com.saveourtool.save.frontend.common.components.views.welcome.hrNoMargin -import com.saveourtool.save.frontend.common.components.views.welcome.inputCredentialsView -import com.saveourtool.save.frontend.common.components.views.welcome.menuTextAndLink -import com.saveourtool.save.frontend.common.components.views.welcome.welcomeUserMenu -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.externals.i18next.TranslationFunction -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.UserInfoAwarePropsWithChildren -import com.saveourtool.save.frontend.common.utils.useBackground import com.saveourtool.save.info.OauthProviderInfo import com.saveourtool.save.validation.FrontendCosvRoutes diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/pagers/vuln/WhatIsVuln.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/pagers/vuln/WhatIsVuln.kt index 63cc0c5773..59080b9624 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/pagers/vuln/WhatIsVuln.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/components/views/welcome/pagers/vuln/WhatIsVuln.kt @@ -7,7 +7,7 @@ package com.saveourtool.cosv.frontend.components.views.welcome.pagers.vuln import com.saveourtool.cosv.frontend.components.views.welcome.BIG_FONT_SIZE import com.saveourtool.cosv.frontend.components.views.welcome.FIRST_RAW_HEIGHT import com.saveourtool.cosv.frontend.components.views.welcome.SECOND_RAW_HEIGHT -import com.saveourtool.save.frontend.common.externals.i18next.TranslationFunction +import com.saveourtool.frontend.common.externals.i18next.TranslationFunction import com.saveourtool.save.validation.FrontendCosvRoutes import js.core.jso import react.ChildrenBuilder diff --git a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/routing/BasicRouting.kt b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/routing/BasicRouting.kt index 1a939ebae2..6c1864c2fc 100644 --- a/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/routing/BasicRouting.kt +++ b/cosv-frontend/src/main/kotlin/com/saveourtool/cosv/frontend/routing/BasicRouting.kt @@ -11,14 +11,14 @@ import com.saveourtool.cosv.frontend.components.views.vuln.* import com.saveourtool.cosv.frontend.components.views.vuln.toprating.topRatingView import com.saveourtool.cosv.frontend.components.views.vuln.vulnerabilityCollectionView import com.saveourtool.cosv.frontend.components.views.welcome.vulnWelcomeView -import com.saveourtool.save.frontend.common.components.views.FallbackView -import com.saveourtool.save.frontend.common.components.views.organization.createOrganizationView -import com.saveourtool.save.frontend.common.components.views.organization.organizationView -import com.saveourtool.save.frontend.common.components.views.registrationView -import com.saveourtool.save.frontend.common.components.views.userprofile.userProfileView -import com.saveourtool.save.frontend.common.components.views.usersettings.userSettingsView -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.withRouter +import com.saveourtool.frontend.common.components.views.FallbackView +import com.saveourtool.frontend.common.components.views.organization.createOrganizationView +import com.saveourtool.frontend.common.components.views.organization.organizationView +import com.saveourtool.frontend.common.components.views.registrationView +import com.saveourtool.frontend.common.components.views.userprofile.userProfileView +import com.saveourtool.frontend.common.components.views.usersettings.userSettingsView +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.withRouter import com.saveourtool.save.validation.FrontendCosvRoutes.* import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend-common/README.md b/frontend-common/README.md similarity index 100% rename from save-frontend-common/README.md rename to frontend-common/README.md diff --git a/save-frontend-common/build.gradle.kts b/frontend-common/build.gradle.kts similarity index 99% rename from save-frontend-common/build.gradle.kts rename to frontend-common/build.gradle.kts index fac51d858d..58353bf8b3 100644 --- a/save-frontend-common/build.gradle.kts +++ b/frontend-common/build.gradle.kts @@ -249,7 +249,7 @@ tasks.withType { val distribution: Configuration by configurations.creating val distributionJarTask by tasks.registering(Jar::class) { - dependsOn(":save-frontend-common:browserDistribution") + dependsOn(":frontend-common:browserDistribution") archiveClassifier.set("distribution") from("$buildDir/$distributionsDirName") { into("static") diff --git a/save-frontend-common/detekt.yml b/frontend-common/detekt.yml similarity index 100% rename from save-frontend-common/detekt.yml rename to frontend-common/detekt.yml diff --git a/save-frontend-common/karma.config.d/custom-config.js b/frontend-common/karma.config.d/custom-config.js similarity index 100% rename from save-frontend-common/karma.config.d/custom-config.js rename to frontend-common/karma.config.d/custom-config.js diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/Footer.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/Footer.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/Footer.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/Footer.kt index 1f2cc5789a..100bf1de30 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/Footer.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/Footer.kt @@ -1,6 +1,6 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components +package com.saveourtool.frontend.common.components import generated.SAVE_CLOUD_VERSION import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/HasErrorModal.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/HasErrorModal.kt similarity index 91% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/HasErrorModal.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/HasErrorModal.kt index f75846980f..a2a7f5bd8b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/HasErrorModal.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/HasErrorModal.kt @@ -1,8 +1,8 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components +package com.saveourtool.frontend.common.components -import com.saveourtool.save.frontend.common.externals.animations.ringLoader +import com.saveourtool.frontend.common.externals.animations.ringLoader import js.core.jso import org.w3c.fetch.Response diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/AddUserComponent.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/AddUserComponent.kt similarity index 82% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/AddUserComponent.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/AddUserComponent.kt index 22681249cb..1c2960adfb 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/AddUserComponent.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/AddUserComponent.kt @@ -1,10 +1,10 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic -import com.saveourtool.save.frontend.common.components.inputform.inputWithDebounceForUserInfo -import com.saveourtool.save.frontend.common.components.inputform.renderUserWithAvatar -import com.saveourtool.save.frontend.common.utils.apiUrl +import com.saveourtool.frontend.common.components.inputform.inputWithDebounceForUserInfo +import com.saveourtool.frontend.common.components.inputform.renderUserWithAvatar +import com.saveourtool.frontend.common.utils.apiUrl import com.saveourtool.save.info.UserInfo import com.saveourtool.save.utils.DATABASE_DELIMITER import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/AvatarForm.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/AvatarForm.kt similarity index 84% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/AvatarForm.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/AvatarForm.kt index 62c7f75bfd..d9be7039d7 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/AvatarForm.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/AvatarForm.kt @@ -4,10 +4,10 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic -import com.saveourtool.save.frontend.common.components.modal.modalAvatarBuilder -import com.saveourtool.save.frontend.common.externals.imageeditor.reactAvatarImageCropper +import com.saveourtool.frontend.common.components.modal.modalAvatarBuilder +import com.saveourtool.frontend.common.externals.imageeditor.reactAvatarImageCropper import js.core.jso import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/AvatarRenderers.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/AvatarRenderers.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/AvatarRenderers.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/AvatarRenderers.kt index 45d98db5e0..daba8d97d4 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/AvatarRenderers.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/AvatarRenderers.kt @@ -2,15 +2,16 @@ * File containing functions to render avatars */ -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic +import com.saveourtool.frontend.common.utils.AVATAR_PROFILE_PLACEHOLDER import com.saveourtool.save.entities.OrganizationDto import com.saveourtool.save.entities.OrganizationStatus -import com.saveourtool.save.frontend.common.utils.AVATAR_PROFILE_PLACEHOLDER import com.saveourtool.save.info.UserInfo import com.saveourtool.save.info.UserStatus import com.saveourtool.save.v1 import com.saveourtool.save.validation.FrontendCosvRoutes + import js.core.jso import react.CSSProperties import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Card.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Card.kt similarity index 89% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Card.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Card.kt index cc37a5963a..e08a8894a3 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Card.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Card.kt @@ -4,10 +4,10 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "MatchingDeclarationName") -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic -import com.saveourtool.save.frontend.common.externals.fontawesome.FontAwesomeIconModule -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.FontAwesomeIconModule +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import js.core.jso import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Carousel.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Carousel.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Carousel.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Carousel.kt index 92ab4d86a2..da49830f1f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Carousel.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Carousel.kt @@ -2,9 +2,9 @@ * Carousel extension function */ -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic -import com.saveourtool.save.frontend.common.themes.Colors +import com.saveourtool.frontend.common.themes.Colors import js.core.jso import react.CSSProperties import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/CookieBanner.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/CookieBanner.kt similarity index 71% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/CookieBanner.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/CookieBanner.kt index a99681db20..987900f3f8 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/CookieBanner.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/CookieBanner.kt @@ -1,14 +1,14 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic -import com.saveourtool.save.frontend.common.components.modal.MAX_Z_INDEX -import com.saveourtool.save.frontend.common.externals.cookie.acceptCookies -import com.saveourtool.save.frontend.common.externals.cookie.cookie -import com.saveourtool.save.frontend.common.externals.cookie.declineCookies -import com.saveourtool.save.frontend.common.externals.cookie.isAccepted -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.components.modal.MAX_Z_INDEX +import com.saveourtool.frontend.common.externals.cookie.acceptCookies +import com.saveourtool.frontend.common.externals.cookie.cookie +import com.saveourtool.frontend.common.externals.cookie.declineCookies +import com.saveourtool.frontend.common.externals.cookie.isAccepted +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.validation.FrontendRoutes import js.core.jso import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Forum.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Forum.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Forum.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Forum.kt index 7d9ab8d4ea..145c470f8b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Forum.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Forum.kt @@ -1,14 +1,14 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components.basic - +package com.saveourtool.frontend.common.components.basic + +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.externals.fontawesome.faPaperPlane +import com.saveourtool.frontend.common.externals.fontawesome.faTimes +import com.saveourtool.frontend.common.externals.i18next.TranslationFunction +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.CommentDto -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.externals.fontawesome.faPaperPlane -import com.saveourtool.save.frontend.common.externals.fontawesome.faTimes -import com.saveourtool.save.frontend.common.externals.i18next.TranslationFunction -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.utils.toUnixCalendarFormat import com.saveourtool.save.validation.FrontendCosvRoutes diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/LanguageSelector.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/LanguageSelector.kt similarity index 79% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/LanguageSelector.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/LanguageSelector.kt index 7079283d2d..82253d16b8 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/LanguageSelector.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/LanguageSelector.kt @@ -1,14 +1,15 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic +import com.saveourtool.frontend.common.externals.cookie.cookie +import com.saveourtool.frontend.common.externals.cookie.getLanguageCode +import com.saveourtool.frontend.common.externals.cookie.isAccepted +import com.saveourtool.frontend.common.externals.i18next.changeLanguage +import com.saveourtool.frontend.common.externals.i18next.language +import com.saveourtool.frontend.common.externals.i18next.useTranslation import com.saveourtool.save.frontend.PlatformLanguages -import com.saveourtool.save.frontend.common.externals.cookie.cookie -import com.saveourtool.save.frontend.common.externals.cookie.getLanguageCode -import com.saveourtool.save.frontend.common.externals.cookie.isAccepted -import com.saveourtool.save.frontend.common.externals.i18next.changeLanguage -import com.saveourtool.save.frontend.common.externals.i18next.language -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation + import js.core.jso import react.FC import react.Props diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/ManageUserRoleCard.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/ManageUserRoleCard.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/ManageUserRoleCard.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/ManageUserRoleCard.kt index c7be4478b5..45a5bf3359 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/ManageUserRoleCard.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/ManageUserRoleCard.kt @@ -4,14 +4,14 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "MatchingDeclarationName") -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic +import com.saveourtool.frontend.common.components.inputform.inputWithDebounceForUserInfo +import com.saveourtool.frontend.common.components.inputform.renderUserWithAvatar +import com.saveourtool.frontend.common.externals.fontawesome.faTimesCircle +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.domain.Role import com.saveourtool.save.domain.Role.OWNER -import com.saveourtool.save.frontend.common.components.inputform.inputWithDebounceForUserInfo -import com.saveourtool.save.frontend.common.components.inputform.renderUserWithAvatar -import com.saveourtool.save.frontend.common.externals.fontawesome.faTimesCircle -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.permission.SetRoleRequest import com.saveourtool.save.utils.getHighestRole diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Markdown.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Markdown.kt similarity index 77% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Markdown.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Markdown.kt index c6c0a17069..bd1ae5cf42 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/Markdown.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/Markdown.kt @@ -2,9 +2,9 @@ * Simple markdown render */ -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic -import com.saveourtool.save.frontend.common.externals.markdown.reactMarkdown +import com.saveourtool.frontend.common.externals.markdown.reactMarkdown import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/ScoreCard.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/ScoreCard.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/ScoreCard.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/ScoreCard.kt index ea5820761f..3630ee818d 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/ScoreCard.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/ScoreCard.kt @@ -1,8 +1,8 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE", "FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic -import com.saveourtool.save.frontend.common.utils.toFixedStr +import com.saveourtool.frontend.common.utils.toFixedStr import js.core.jso import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/ScrollToTopButton.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/ScrollToTopButton.kt similarity index 81% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/ScrollToTopButton.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/ScrollToTopButton.kt index e064679126..76aa616efd 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/ScrollToTopButton.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/ScrollToTopButton.kt @@ -2,10 +2,10 @@ * Scroll-to-top button component */ -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic -import com.saveourtool.save.frontend.common.externals.fontawesome.faAngleUp -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.faAngleUp +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import org.w3c.dom.SMOOTH import org.w3c.dom.ScrollBehavior diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/SelectForm.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/SelectForm.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/SelectForm.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/SelectForm.kt index ab85b45891..26c9d8012b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/SelectForm.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/SelectForm.kt @@ -1,10 +1,10 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.utils.WithRequestStatusContext -import com.saveourtool.save.frontend.common.utils.useRequest +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.utils.WithRequestStatusContext +import com.saveourtool.frontend.common.utils.useRequest import react.ChildrenBuilder import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/TestSuitesDisplayer.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/TestSuitesDisplayer.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/TestSuitesDisplayer.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/TestSuitesDisplayer.kt index 606b7a5f36..ac76be65d7 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/TestSuitesDisplayer.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/TestSuitesDisplayer.kt @@ -5,9 +5,9 @@ "HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE", ) -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic -import com.saveourtool.save.frontend.common.components.basic.testsuiteselector.TestSuiteSelectorMode +import com.saveourtool.frontend.common.components.basic.testsuiteselector.TestSuiteSelectorMode import com.saveourtool.save.testsuite.TestSuiteVersioned import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/UserBoard.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/UserBoard.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/UserBoard.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/UserBoard.kt index 9dcac6519f..6ac70a7602 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/UserBoard.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/UserBoard.kt @@ -4,7 +4,7 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "MatchingDeclarationName") -package com.saveourtool.save.frontend.common.components.basic +package com.saveourtool.frontend.common.components.basic import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendCosvRoutes diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestCreationComponent.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestCreationComponent.kt similarity index 92% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestCreationComponent.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestCreationComponent.kt index ff4f7affac..c943e22b82 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestCreationComponent.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestCreationComponent.kt @@ -1,17 +1,17 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "FILE_WILDCARD_IMPORTS", "LargeClass") -package com.saveourtool.save.frontend.common.components.basic.contests - +package com.saveourtool.frontend.common.components.basic.contests + +import com.saveourtool.frontend.common.components.basic.* +import com.saveourtool.frontend.common.components.basic.testsuiteselector.showContestTestSuitesSelectorModal +import com.saveourtool.frontend.common.components.inputform.* +import com.saveourtool.frontend.common.components.inputform.inputTextDisabled +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.externals.modal.Styles +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.entities.contest.ContestDto -import com.saveourtool.save.frontend.common.components.basic.* -import com.saveourtool.save.frontend.common.components.basic.testsuiteselector.showContestTestSuitesSelectorModal -import com.saveourtool.save.frontend.common.components.inputform.* -import com.saveourtool.save.frontend.common.components.inputform.inputTextDisabled -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.externals.modal.Styles -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.validation.FrontendRoutes import com.saveourtool.save.validation.isValidName diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestInfoMenu.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestInfoMenu.kt similarity index 88% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestInfoMenu.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestInfoMenu.kt index ec6dd5a661..9d46fdaa3f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestInfoMenu.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestInfoMenu.kt @@ -1,11 +1,11 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "FILE_WILDCARD_IMPORTS", "LargeClass") -package com.saveourtool.save.frontend.common.components.basic.contests +package com.saveourtool.frontend.common.components.basic.contests +import com.saveourtool.frontend.common.components.basic.cardComponent +import com.saveourtool.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.contest.ContestDto -import com.saveourtool.save.frontend.common.components.basic.cardComponent -import com.saveourtool.save.frontend.common.components.basic.markdown -import com.saveourtool.save.frontend.common.utils.* import react.* import react.dom.html.ReactHTML.div diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestSubmissionsMenu.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestSubmissionsMenu.kt similarity index 90% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestSubmissionsMenu.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestSubmissionsMenu.kt index 708c71d2d9..b3f5e550c7 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestSubmissionsMenu.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestSubmissionsMenu.kt @@ -1,14 +1,14 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "FILE_WILDCARD_IMPORTS", "LargeClass") -package com.saveourtool.save.frontend.common.components.basic.contests +package com.saveourtool.frontend.common.components.basic.contests +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.contest.ContestResult import com.saveourtool.save.execution.ExecutionStatus -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.utils.* import react.* import react.dom.html.ReactHTML.div diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestSummaryMenu.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestSummaryMenu.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestSummaryMenu.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestSummaryMenu.kt index fd3b51cf0a..7a5cd23c4f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/ContestSummaryMenu.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/ContestSummaryMenu.kt @@ -1,9 +1,9 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "FILE_WILDCARD_IMPORTS", "LargeClass") -package com.saveourtool.save.frontend.common.components.basic.contests +package com.saveourtool.frontend.common.components.basic.contests +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.contest.ContestResult -import com.saveourtool.save.frontend.common.utils.* import react.* import react.dom.html.ReactHTML.div diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/PublicTestCardComponent.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/PublicTestCardComponent.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/PublicTestCardComponent.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/PublicTestCardComponent.kt index b87f9ea073..6d79b36740 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/contests/PublicTestCardComponent.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/contests/PublicTestCardComponent.kt @@ -1,10 +1,10 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "FILE_WILDCARD_IMPORTS", "LargeClass") -package com.saveourtool.save.frontend.common.components.basic.contests +package com.saveourtool.frontend.common.components.basic.contests -import com.saveourtool.save.frontend.common.components.basic.* -import com.saveourtool.save.frontend.common.externals.markdown.reactMarkdown -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.basic.* +import com.saveourtool.frontend.common.externals.markdown.reactMarkdown +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.test.TestFilesContent import com.saveourtool.save.testsuite.TestSuiteVersioned diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/fileuploader/DefaultProgressBarComponent.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/fileuploader/DefaultProgressBarComponent.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/fileuploader/DefaultProgressBarComponent.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/fileuploader/DefaultProgressBarComponent.kt index 7a1be961ac..8c1a444950 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/fileuploader/DefaultProgressBarComponent.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/fileuploader/DefaultProgressBarComponent.kt @@ -4,9 +4,9 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic.fileuploader +package com.saveourtool.frontend.common.components.basic.fileuploader -import com.saveourtool.save.frontend.common.utils.useTooltip +import com.saveourtool.frontend.common.utils.useTooltip import js.core.jso import react.FC import react.Props diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/fileuploader/FileUploaderUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/fileuploader/FileUploaderUtils.kt similarity index 81% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/fileuploader/FileUploaderUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/fileuploader/FileUploaderUtils.kt index ca8b19563c..45d55e1dce 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/fileuploader/FileUploaderUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/fileuploader/FileUploaderUtils.kt @@ -2,11 +2,11 @@ * This class contains methods for FileUploader */ -package com.saveourtool.save.frontend.common.components.basic.fileuploader +package com.saveourtool.frontend.common.components.basic.fileuploader -import com.saveourtool.save.frontend.common.externals.fontawesome.faDownload -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrash -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.faDownload +import com.saveourtool.frontend.common.externals.fontawesome.faTrash +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import react.ChildrenBuilder import react.dom.html.ReactHTML.a diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/table/filters/NameFiltersRow.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/table/filters/NameFiltersRow.kt similarity index 82% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/table/filters/NameFiltersRow.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/table/filters/NameFiltersRow.kt index 6925e1e4ea..cd276168be 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/table/filters/NameFiltersRow.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/table/filters/NameFiltersRow.kt @@ -1,12 +1,12 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic.table.filters +package com.saveourtool.frontend.common.components.basic.table.filters -import com.saveourtool.save.frontend.common.externals.fontawesome.faFilter -import com.saveourtool.save.frontend.common.externals.fontawesome.faSearch -import com.saveourtool.save.frontend.common.externals.fontawesome.faWindowClose -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.externals.fontawesome.faFilter +import com.saveourtool.frontend.common.externals.fontawesome.faSearch +import com.saveourtool.frontend.common.externals.fontawesome.faWindowClose +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.buttonBuilder import react.FC import react.Props import react.dom.html.ReactHTML.div diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/table/filters/VulnerabilitiesFiltersRow.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/table/filters/VulnerabilitiesFiltersRow.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/table/filters/VulnerabilitiesFiltersRow.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/table/filters/VulnerabilitiesFiltersRow.kt index decf1314c2..56c640a2f5 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/table/filters/VulnerabilitiesFiltersRow.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/table/filters/VulnerabilitiesFiltersRow.kt @@ -1,22 +1,23 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic.table.filters +package com.saveourtool.frontend.common.components.basic.table.filters +import com.saveourtool.frontend.common.components.inputform.* +import com.saveourtool.frontend.common.components.inputform.renderUserWithAvatar +import com.saveourtool.frontend.common.components.tables.TABLE_HEADERS_LOCALE_NAMESPACE +import com.saveourtool.frontend.common.components.views.vuln.uploadCosvButton +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.externals.slider.multiRangeSlider +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.OrganizationDto import com.saveourtool.save.entities.vulnerability.VulnerabilityLanguage import com.saveourtool.save.entities.vulnerability.VulnerabilityStatus import com.saveourtool.save.filters.VulnerabilityFilter -import com.saveourtool.save.frontend.common.components.inputform.* -import com.saveourtool.save.frontend.common.components.inputform.renderUserWithAvatar -import com.saveourtool.save.frontend.common.components.tables.TABLE_HEADERS_LOCALE_NAMESPACE -import com.saveourtool.save.frontend.common.components.views.vuln.uploadCosvButton -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.externals.slider.multiRangeSlider -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendCosvRoutes + import js.core.jso import react.* import react.dom.html.ReactHTML.div diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelector.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelector.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelector.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelector.kt index 58c486ea91..0de4a295f1 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelector.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelector.kt @@ -4,14 +4,14 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic.testsuiteselector +package com.saveourtool.frontend.common.components.basic.testsuiteselector -import com.saveourtool.save.frontend.common.components.modal.largeTransparentModalStyle -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.WindowOpenness -import com.saveourtool.save.frontend.common.utils.buttonWithIcon -import com.saveourtool.save.frontend.common.utils.useTooltip +import com.saveourtool.frontend.common.components.modal.largeTransparentModalStyle +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.WindowOpenness +import com.saveourtool.frontend.common.utils.buttonWithIcon +import com.saveourtool.frontend.common.utils.useTooltip import com.saveourtool.save.testsuite.TestSuiteVersioned import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorBrowserMode.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorBrowserMode.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorBrowserMode.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorBrowserMode.kt index 26dcb5be2a..b692e0669c 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorBrowserMode.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorBrowserMode.kt @@ -4,13 +4,13 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic.testsuiteselector +package com.saveourtool.frontend.common.components.basic.testsuiteselector -import com.saveourtool.save.frontend.common.components.basic.showAvailableTestSuites -import com.saveourtool.save.frontend.common.externals.fontawesome.faCheckDouble -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopResponseHandler +import com.saveourtool.frontend.common.components.basic.showAvailableTestSuites +import com.saveourtool.frontend.common.externals.fontawesome.faCheckDouble +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopResponseHandler import com.saveourtool.save.testsuite.TestSuiteVersioned import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorManagerMode.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorManagerMode.kt similarity index 91% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorManagerMode.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorManagerMode.kt index 8b74a47301..80829007a7 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorManagerMode.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorManagerMode.kt @@ -4,10 +4,10 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic.testsuiteselector +package com.saveourtool.frontend.common.components.basic.testsuiteselector -import com.saveourtool.save.frontend.common.components.basic.showAvailableTestSuites -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.basic.showAvailableTestSuites +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.testsuite.TestSuiteVersioned import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorSearchMode.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorSearchMode.kt similarity index 93% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorSearchMode.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorSearchMode.kt index cf186889fa..ac882e186b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorSearchMode.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuiteselector/TestSuiteSelectorSearchMode.kt @@ -4,13 +4,13 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic.testsuiteselector +package com.saveourtool.frontend.common.components.basic.testsuiteselector +import com.saveourtool.frontend.common.components.basic.showAvailableTestSuites +import com.saveourtool.frontend.common.components.basic.testsuiteselector.TestSuiteSelectorPurpose.CONTEST +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopResponseHandler import com.saveourtool.save.filters.TestSuiteFilter -import com.saveourtool.save.frontend.common.components.basic.showAvailableTestSuites -import com.saveourtool.save.frontend.common.components.basic.testsuiteselector.TestSuiteSelectorPurpose.CONTEST -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopResponseHandler import com.saveourtool.save.testsuite.TestSuiteVersioned import com.saveourtool.save.utils.DEFAULT_DEBOUNCE_PERIOD diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitespermissions/ManageTestSuitePermissionsCard.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitespermissions/ManageTestSuitePermissionsCard.kt similarity index 89% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitespermissions/ManageTestSuitePermissionsCard.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitespermissions/ManageTestSuitePermissionsCard.kt index 682c0ce970..b1e3c62710 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitespermissions/ManageTestSuitePermissionsCard.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitespermissions/ManageTestSuitePermissionsCard.kt @@ -4,22 +4,22 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic.testsuitespermissions +package com.saveourtool.frontend.common.components.basic.testsuitespermissions +import com.saveourtool.frontend.common.components.basic.testsuiteselector.TestSuiteSelectorPurpose +import com.saveourtool.frontend.common.components.basic.testsuiteselector.testSuiteSelector +import com.saveourtool.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode.MESSAGE +import com.saveourtool.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode.PUBLISH +import com.saveourtool.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode.SUITE_SELECTOR_FOR_PUBLISH +import com.saveourtool.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode.SUITE_SELECTOR_FOR_RIGHTS +import com.saveourtool.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode.TRANSFER +import com.saveourtool.frontend.common.components.inputform.inputWithDebounceForOrganizationDto +import com.saveourtool.frontend.common.components.inputform.renderOrganizationWithAvatar +import com.saveourtool.frontend.common.components.modal.largeTransparentModalStyle +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.components.modal.modalBuilder +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.OrganizationDto -import com.saveourtool.save.frontend.common.components.basic.testsuiteselector.TestSuiteSelectorPurpose -import com.saveourtool.save.frontend.common.components.basic.testsuiteselector.testSuiteSelector -import com.saveourtool.save.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode.MESSAGE -import com.saveourtool.save.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode.PUBLISH -import com.saveourtool.save.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode.SUITE_SELECTOR_FOR_PUBLISH -import com.saveourtool.save.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode.SUITE_SELECTOR_FOR_RIGHTS -import com.saveourtool.save.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode.TRANSFER -import com.saveourtool.save.frontend.common.components.inputform.inputWithDebounceForOrganizationDto -import com.saveourtool.save.frontend.common.components.inputform.renderOrganizationWithAvatar -import com.saveourtool.save.frontend.common.components.modal.largeTransparentModalStyle -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.components.modal.modalBuilder -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.permission.Rights import com.saveourtool.save.permission.SetRightsRequest import com.saveourtool.save.testsuite.TestSuiteVersioned diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitespermissions/PermissionManagerMode.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitespermissions/PermissionManagerMode.kt similarity index 92% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitespermissions/PermissionManagerMode.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitespermissions/PermissionManagerMode.kt index a04ddb8fad..c5c070a6f5 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitespermissions/PermissionManagerMode.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitespermissions/PermissionManagerMode.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.components.basic.testsuitespermissions +package com.saveourtool.frontend.common.components.basic.testsuitespermissions /** * Enum class that defines current state of [manageTestSuitePermissionsComponent] (mostly state of the modal inside component) diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitessources/TestSuiteSourceUpsertComponent.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitessources/TestSuiteSourceUpsertComponent.kt similarity index 90% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitessources/TestSuiteSourceUpsertComponent.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitessources/TestSuiteSourceUpsertComponent.kt index a7e297af68..abca5e0984 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitessources/TestSuiteSourceUpsertComponent.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitessources/TestSuiteSourceUpsertComponent.kt @@ -1,20 +1,20 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic.testsuitessources +package com.saveourtool.frontend.common.components.basic.testsuitessources +import com.saveourtool.frontend.common.components.basic.selectFormRequired +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextDisabled +import com.saveourtool.frontend.common.components.inputform.inputTextFormOptional +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.components.views.organization.gitWindow +import com.saveourtool.frontend.common.externals.fontawesome.faTimesCircle +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.modal.Styles +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.domain.EntitySaveStatus import com.saveourtool.save.entities.GitDto -import com.saveourtool.save.frontend.common.components.basic.selectFormRequired -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextDisabled -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormOptional -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.components.views.organization.gitWindow -import com.saveourtool.save.frontend.common.externals.fontawesome.faTimesCircle -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.externals.modal.Styles -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.testsuite.TestSuitesSourceDto import com.saveourtool.save.v1 diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitessources/fetch/TestSuitesSourceFetcher.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitessources/fetch/TestSuitesSourceFetcher.kt similarity index 92% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitessources/fetch/TestSuitesSourceFetcher.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitessources/fetch/TestSuitesSourceFetcher.kt index 3401a00e34..aa297baf35 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/basic/testsuitessources/fetch/TestSuitesSourceFetcher.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/basic/testsuitessources/fetch/TestSuitesSourceFetcher.kt @@ -4,16 +4,16 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.basic.testsuitessources.fetch +package com.saveourtool.frontend.common.components.basic.testsuitessources.fetch -import com.saveourtool.save.frontend.common.components.basic.selectFormRequired -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.components.modal.largeTransparentModalStyle -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.components.modal.modalBuilder -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.basic.selectFormRequired +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.components.modal.largeTransparentModalStyle +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.components.modal.modalBuilder +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.testsuite.TestSuitesSourceDto import com.saveourtool.save.testsuite.TestSuitesSourceFetchMode diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/DragAndDropForm.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/DragAndDropForm.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/DragAndDropForm.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/DragAndDropForm.kt index 23f21eaed5..612b1c74f7 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/DragAndDropForm.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/DragAndDropForm.kt @@ -6,7 +6,7 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.inputform +package com.saveourtool.frontend.common.components.inputform import js.core.asList import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputDateFormRequired.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputDateFormRequired.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputDateFormRequired.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputDateFormRequired.kt index 4de6dc99c7..8c27f0fc20 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputDateFormRequired.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputDateFormRequired.kt @@ -1,6 +1,6 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components.inputform +package com.saveourtool.frontend.common.components.inputform import react.ChildrenBuilder import react.dom.events.ChangeEvent diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputForms.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputForms.kt similarity index 98% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputForms.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputForms.kt index e5cbb3ac6d..5fdeb2ae5f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputForms.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputForms.kt @@ -4,7 +4,7 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.inputform +package com.saveourtool.frontend.common.components.inputform import com.saveourtool.save.validation.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputTextFormDisabled.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputTextFormDisabled.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputTextFormDisabled.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputTextFormDisabled.kt index b4bff41e98..6e18bf25d8 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputTextFormDisabled.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputTextFormDisabled.kt @@ -1,6 +1,6 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE", "") -package com.saveourtool.save.frontend.common.components.inputform +package com.saveourtool.frontend.common.components.inputform import react.ChildrenBuilder import react.dom.aria.ariaDescribedBy diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputTextFormOptional.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputTextFormOptional.kt similarity index 93% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputTextFormOptional.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputTextFormOptional.kt index d8dcc0a6b9..eca4d723de 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputTextFormOptional.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputTextFormOptional.kt @@ -4,11 +4,11 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.inputform +package com.saveourtool.frontend.common.components.inputform -import com.saveourtool.save.frontend.common.externals.fontawesome.faQuestionCircle -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.useTooltipAndPopover +import com.saveourtool.frontend.common.externals.fontawesome.faQuestionCircle +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.useTooltipAndPopover import react.ChildrenBuilder import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputTextFormRequired.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputTextFormRequired.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputTextFormRequired.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputTextFormRequired.kt index d909202151..2802694562 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputTextFormRequired.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputTextFormRequired.kt @@ -4,9 +4,9 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.inputform +package com.saveourtool.frontend.common.components.inputform -import com.saveourtool.save.frontend.common.utils.useTooltip +import com.saveourtool.frontend.common.utils.useTooltip import react.ChildrenBuilder import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputWithDebounce.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputWithDebounce.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputWithDebounce.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputWithDebounce.kt index 85a700510f..ae179ab63a 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/inputform/InputWithDebounce.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/inputform/InputWithDebounce.kt @@ -1,10 +1,10 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.inputform +package com.saveourtool.frontend.common.components.inputform +import com.saveourtool.frontend.common.components.basic.renderAvatar +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.OrganizationDto -import com.saveourtool.save.frontend.common.components.basic.renderAvatar -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.utils.DEFAULT_DEBOUNCE_PERIOD diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/mobile/AboutUsMobileView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/mobile/AboutUsMobileView.kt similarity index 88% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/mobile/AboutUsMobileView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/mobile/AboutUsMobileView.kt index 94d01b91cc..bb8dea25cd 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/mobile/AboutUsMobileView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/mobile/AboutUsMobileView.kt @@ -2,14 +2,14 @@ * View with some info about core team */ -package com.saveourtool.save.frontend.common.components.mobile +package com.saveourtool.frontend.common.components.mobile -import com.saveourtool.save.frontend.common.components.basic.markdown -import com.saveourtool.save.frontend.common.components.views.AboutUsView -import com.saveourtool.save.frontend.common.components.views.Developer -import com.saveourtool.save.frontend.common.externals.fontawesome.faGithub -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.particles +import com.saveourtool.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.components.views.AboutUsView +import com.saveourtool.frontend.common.components.views.Developer +import com.saveourtool.frontend.common.externals.fontawesome.faGithub +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.particles import js.core.jso import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/mobile/SaveWelcomeMobileView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/mobile/SaveWelcomeMobileView.kt similarity index 73% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/mobile/SaveWelcomeMobileView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/mobile/SaveWelcomeMobileView.kt index 09d5eeda23..e9e1c20027 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/mobile/SaveWelcomeMobileView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/mobile/SaveWelcomeMobileView.kt @@ -1,16 +1,16 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components.mobile +package com.saveourtool.frontend.common.components.mobile -import com.saveourtool.save.frontend.common.components.views.welcome.chevron -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.allSaveWelcomePagers -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.save.renderReadMorePage -import com.saveourtool.save.frontend.common.components.views.welcome.saveWelcomeMarketingTitle -import com.saveourtool.save.frontend.common.externals.animations.animator -import com.saveourtool.save.frontend.common.externals.animations.scrollContainer -import com.saveourtool.save.frontend.common.externals.animations.scrollPage -import com.saveourtool.save.frontend.common.utils.SAVE_LIGHT_GRADIENT -import com.saveourtool.save.frontend.common.utils.particles +import com.saveourtool.frontend.common.components.views.welcome.chevron +import com.saveourtool.frontend.common.components.views.welcome.pagers.allSaveWelcomePagers +import com.saveourtool.frontend.common.components.views.welcome.pagers.save.renderReadMorePage +import com.saveourtool.frontend.common.components.views.welcome.saveWelcomeMarketingTitle +import com.saveourtool.frontend.common.externals.animations.animator +import com.saveourtool.frontend.common.externals.animations.scrollContainer +import com.saveourtool.frontend.common.externals.animations.scrollPage +import com.saveourtool.frontend.common.utils.SAVE_LIGHT_GRADIENT +import com.saveourtool.frontend.common.utils.particles import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/LogoutModal.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/LogoutModal.kt similarity index 78% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/LogoutModal.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/LogoutModal.kt index 2a5c2a498c..e4b07abb7a 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/LogoutModal.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/LogoutModal.kt @@ -2,13 +2,13 @@ * A component for logout modal window */ -package com.saveourtool.save.frontend.common.components.modal +package com.saveourtool.frontend.common.components.modal -import com.saveourtool.save.frontend.common.externals.modal.ModalProps -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.loadingHandler -import com.saveourtool.save.frontend.common.utils.post -import com.saveourtool.save.frontend.common.utils.useDeferredRequest +import com.saveourtool.frontend.common.externals.modal.ModalProps +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.loadingHandler +import com.saveourtool.frontend.common.utils.post +import com.saveourtool.frontend.common.utils.useDeferredRequest import org.w3c.fetch.Headers import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/Modal.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/Modal.kt similarity index 65% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/Modal.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/Modal.kt index 201c4b7cf7..374db7ca64 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/Modal.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/Modal.kt @@ -2,11 +2,11 @@ * Kotlin/JS-React wrapper for react-modal: kotlin bindings */ -package com.saveourtool.save.frontend.common.components.modal +package com.saveourtool.frontend.common.components.modal -import com.saveourtool.save.frontend.common.externals.modal.ModalProps -import com.saveourtool.save.frontend.common.externals.modal.ReactModal -import com.saveourtool.save.frontend.common.externals.modal.Styles +import com.saveourtool.frontend.common.externals.modal.ModalProps +import com.saveourtool.frontend.common.externals.modal.ReactModal +import com.saveourtool.frontend.common.externals.modal.Styles import react.ChildrenBuilder import react.ReactDsl import react.react diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalBuilder.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalBuilder.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalBuilder.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalBuilder.kt index 6e8111a181..5bac0819f1 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalBuilder.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalBuilder.kt @@ -1,12 +1,12 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components.modal +package com.saveourtool.frontend.common.components.modal -import com.saveourtool.save.frontend.common.externals.fontawesome.faTimesCircle -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.externals.modal.Styles -import com.saveourtool.save.frontend.common.utils.WindowOpenness -import com.saveourtool.save.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.externals.fontawesome.faTimesCircle +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.modal.Styles +import com.saveourtool.frontend.common.utils.WindowOpenness +import com.saveourtool.frontend.common.utils.buttonBuilder import js.core.jso import react.CSSProperties diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalDialog.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalDialog.kt similarity index 65% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalDialog.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalDialog.kt index 969967cfee..be7db5548d 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalDialog.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalDialog.kt @@ -1,6 +1,6 @@ -package com.saveourtool.save.frontend.common.components.modal +package com.saveourtool.frontend.common.components.modal -import com.saveourtool.save.frontend.common.utils.WindowOpenness +import com.saveourtool.frontend.common.utils.WindowOpenness /** * The dialog window. diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalDialogStrings.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalDialogStrings.kt similarity index 79% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalDialogStrings.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalDialogStrings.kt index a733b87c77..e4c5accc33 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalDialogStrings.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalDialogStrings.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.components.modal +package com.saveourtool.frontend.common.components.modal /** * The string labels of a dialog window. diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalStyles.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalStyles.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalStyles.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalStyles.kt index 5bbb216f2e..9112af7686 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/modal/ModalStyles.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/modal/ModalStyles.kt @@ -1,8 +1,8 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components.modal +package com.saveourtool.frontend.common.components.modal -import com.saveourtool.save.frontend.common.externals.modal.Styles +import com.saveourtool.frontend.common.externals.modal.Styles import js.core.jso import react.CSSProperties import web.cssom.BackgroundColor diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/Builders.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/Builders.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/Builders.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/Builders.kt index 594b67b541..19bcf9b53b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/Builders.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/Builders.kt @@ -4,7 +4,7 @@ "TYPE_ALIAS" ) -package com.saveourtool.save.frontend.common.components.tables +package com.saveourtool.frontend.common.components.tables import js.core.ReadonlyArray import js.core.jso diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/PagingControl.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/PagingControl.kt similarity index 99% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/PagingControl.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/PagingControl.kt index e2a8eb896a..bceb1e6cc2 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/PagingControl.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/PagingControl.kt @@ -2,7 +2,7 @@ * Paging control utils */ -package com.saveourtool.save.frontend.common.components.tables +package com.saveourtool.frontend.common.components.tables import react.ChildrenBuilder import react.StateSetter diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/TableComponent.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/TableComponent.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/TableComponent.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/TableComponent.kt index 52b8f20ce2..72c53e738f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/TableComponent.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/TableComponent.kt @@ -4,15 +4,15 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.tables +package com.saveourtool.frontend.common.components.tables -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.http.HttpStatusException -import com.saveourtool.save.frontend.common.utils.WithRequestStatusContext -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.spread -import com.saveourtool.save.frontend.common.utils.useRequestStatusContext +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.http.HttpStatusException +import com.saveourtool.frontend.common.utils.WithRequestStatusContext +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.spread +import com.saveourtool.frontend.common.utils.useRequestStatusContext import js.core.jso import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/TableUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/TableUtils.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/TableUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/TableUtils.kt index 0f51469dc7..ac2911585c 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/tables/TableUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/tables/TableUtils.kt @@ -5,7 +5,7 @@ "MISSING_KDOC_TOP_LEVEL", ) -package com.saveourtool.save.frontend.common.components.tables +package com.saveourtool.frontend.common.components.tables import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/AboutUsView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/AboutUsView.kt similarity index 93% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/AboutUsView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/AboutUsView.kt index a39eb30db6..54f375d034 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/AboutUsView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/AboutUsView.kt @@ -2,15 +2,15 @@ * View with some info about core team */ -package com.saveourtool.save.frontend.common.components.views - -import com.saveourtool.save.frontend.common.components.RequestStatusContext -import com.saveourtool.save.frontend.common.components.basic.cardComponent -import com.saveourtool.save.frontend.common.components.basic.markdown -import com.saveourtool.save.frontend.common.components.requestStatusContext -import com.saveourtool.save.frontend.common.externals.fontawesome.faGithub -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.particles +package com.saveourtool.frontend.common.components.views + +import com.saveourtool.frontend.common.components.RequestStatusContext +import com.saveourtool.frontend.common.components.basic.cardComponent +import com.saveourtool.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.components.requestStatusContext +import com.saveourtool.frontend.common.externals.fontawesome.faGithub +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.particles import js.core.jso import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/AbstractView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/AbstractView.kt similarity index 89% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/AbstractView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/AbstractView.kt index 1b914f03c2..0fdbd1a7c5 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/AbstractView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/AbstractView.kt @@ -1,7 +1,7 @@ -package com.saveourtool.save.frontend.common.components.views +package com.saveourtool.frontend.common.components.views -import com.saveourtool.save.frontend.common.utils.ComponentWithScope -import com.saveourtool.save.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.ComponentWithScope +import com.saveourtool.frontend.common.utils.Style import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/FallbackView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/FallbackView.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/FallbackView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/FallbackView.kt index 029df85b93..71e87dd1f7 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/FallbackView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/FallbackView.kt @@ -2,10 +2,10 @@ * Support rendering something as a fallback */ -package com.saveourtool.save.frontend.common.components.views +package com.saveourtool.frontend.common.components.views -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.buttonBuilder import js.core.jso import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/RegistrationView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/RegistrationView.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/RegistrationView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/RegistrationView.kt index 2fb7247b70..af53e2d067 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/RegistrationView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/RegistrationView.kt @@ -4,17 +4,17 @@ @file:Suppress("FILE_WILDCARD_IMPORTS", "WildcardImport", "FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.views - -import com.saveourtool.save.frontend.common.components.basic.avatarForm -import com.saveourtool.save.frontend.common.components.basic.avatarRenderer -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormOptional -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.components.modal.MAX_Z_INDEX -import com.saveourtool.save.frontend.common.components.views.usersettings.AVATAR_TITLE -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.UserInfoAwareMutablePropsWithChildren +package com.saveourtool.frontend.common.components.views + +import com.saveourtool.frontend.common.components.basic.avatarForm +import com.saveourtool.frontend.common.components.basic.avatarRenderer +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormOptional +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.components.modal.MAX_Z_INDEX +import com.saveourtool.frontend.common.components.views.usersettings.AVATAR_TITLE +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.UserInfoAwareMutablePropsWithChildren import com.saveourtool.save.info.UserInfo import com.saveourtool.save.info.UserStatus import com.saveourtool.save.utils.AVATARS_PACKS_DIR diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/CreateOrganizationView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/CreateOrganizationView.kt similarity index 91% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/CreateOrganizationView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/CreateOrganizationView.kt index 534e39868c..5756b2d972 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/CreateOrganizationView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/CreateOrganizationView.kt @@ -4,15 +4,15 @@ @file:Suppress("WildcardImport", "FILE_WILDCARD_IMPORTS") -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.* -import com.saveourtool.save.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.validation.FrontendRoutes import com.saveourtool.save.validation.isValidLengthName diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/GitWindow.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/GitWindow.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/GitWindow.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/GitWindow.kt index c235550958..53bff35a43 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/GitWindow.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/GitWindow.kt @@ -4,13 +4,13 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.components.modal.smallTransparentModalStyle +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.GitDto -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.components.modal.smallTransparentModalStyle -import com.saveourtool.save.frontend.common.utils.* import react.* import react.dom.html.ReactHTML.button diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/ManageGitCredentialsCard.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/ManageGitCredentialsCard.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/ManageGitCredentialsCard.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/ManageGitCredentialsCard.kt index 14d969e0ec..030e75221e 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/ManageGitCredentialsCard.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/ManageGitCredentialsCard.kt @@ -4,18 +4,18 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.GitDto -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.utils.getHighestRole -import js.core.jso +import js.core.jso import org.w3c.fetch.Response import react.FC import react.Props diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationContestsMenu.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationContestsMenu.kt similarity index 93% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationContestsMenu.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationContestsMenu.kt index 62349e6509..886f606bcc 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationContestsMenu.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationContestsMenu.kt @@ -4,19 +4,19 @@ "HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE", ) -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.basic.contests.showContestCreationModal +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.externals.fontawesome.faPlus +import com.saveourtool.frontend.common.externals.fontawesome.faTrash +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.contest.ContestDto import com.saveourtool.save.entities.contest.ContestStatus -import com.saveourtool.save.frontend.common.components.basic.contests.showContestCreationModal -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.externals.fontawesome.faPlus -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrash -import com.saveourtool.save.frontend.common.utils.* import org.w3c.fetch.Response import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationMenuBar.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationMenuBar.kt similarity index 85% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationMenuBar.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationMenuBar.kt index d42e7f76ea..c20743383f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationMenuBar.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationMenuBar.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization /** * A value for organization menu. diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationSettingsMenu.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationSettingsMenu.kt similarity index 93% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationSettingsMenu.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationSettingsMenu.kt index 5fd0e02248..21d0a8d77b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationSettingsMenu.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationSettingsMenu.kt @@ -1,15 +1,15 @@ @file:Suppress("FILE_NAME_MATCH_CLASS", "FILE_WILDCARD_IMPORTS", "LargeClass") -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.basic.manageUserRoleCardComponent +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.isSuperAdmin +import com.saveourtool.frontend.common.utils.noopLoadingHandler +import com.saveourtool.frontend.common.utils.noopResponseHandler import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.OrganizationDto import com.saveourtool.save.entities.OrganizationStatus -import com.saveourtool.save.frontend.common.components.basic.manageUserRoleCardComponent -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.isSuperAdmin -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler -import com.saveourtool.save.frontend.common.utils.noopResponseHandler import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationTestsMenu.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationTestsMenu.kt similarity index 89% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationTestsMenu.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationTestsMenu.kt index be18d9d45e..b2af8c8210 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationTestsMenu.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationTestsMenu.kt @@ -5,18 +5,18 @@ "TOP_LEVEL_ORDER" ) -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode +import com.saveourtool.frontend.common.components.basic.testsuitespermissions.manageTestSuitePermissionsComponent +import com.saveourtool.frontend.common.components.basic.testsuitessources.fetch.testSuitesSourceFetcher +import com.saveourtool.frontend.common.components.basic.testsuitessources.showTestSuiteSourceUpsertModal +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.WithRequestStatusContext +import com.saveourtool.frontend.common.utils.loadingHandler +import com.saveourtool.frontend.common.utils.useTooltip +import com.saveourtool.frontend.common.utils.useWindowOpenness import com.saveourtool.save.domain.Role -import com.saveourtool.save.frontend.common.components.basic.testsuitespermissions.PermissionManagerMode -import com.saveourtool.save.frontend.common.components.basic.testsuitespermissions.manageTestSuitePermissionsComponent -import com.saveourtool.save.frontend.common.components.basic.testsuitessources.fetch.testSuitesSourceFetcher -import com.saveourtool.save.frontend.common.components.basic.testsuitessources.showTestSuiteSourceUpsertModal -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.WithRequestStatusContext -import com.saveourtool.save.frontend.common.utils.loadingHandler -import com.saveourtool.save.frontend.common.utils.useTooltip -import com.saveourtool.save.frontend.common.utils.useWindowOpenness import com.saveourtool.save.test.* import com.saveourtool.save.testsuite.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationToolsMenu.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationToolsMenu.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationToolsMenu.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationToolsMenu.kt index 49b43b1763..627b102547 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationToolsMenu.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationToolsMenu.kt @@ -1,28 +1,28 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.basic.scoreCard +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.components.views.* +import com.saveourtool.frontend.common.components.views.usersettings.right.actionButtonClasses +import com.saveourtool.frontend.common.components.views.usersettings.right.actionIconClasses +import com.saveourtool.frontend.common.externals.fontawesome.faRedo +import com.saveourtool.frontend.common.externals.fontawesome.faTrashAlt +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.isSuperAdmin import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.OrganizationDto import com.saveourtool.save.entities.ProjectDto import com.saveourtool.save.entities.ProjectStatus -import com.saveourtool.save.frontend.common.components.basic.scoreCard -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.components.views.* -import com.saveourtool.save.frontend.common.components.views.usersettings.right.actionButtonClasses -import com.saveourtool.save.frontend.common.components.views.usersettings.right.actionIconClasses -import com.saveourtool.save.frontend.common.externals.fontawesome.faRedo -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrashAlt -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.isSuperAdmin import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendRoutes -import org.w3c.fetch.Response +import org.w3c.fetch.Response import react.* import react.dom.html.ReactHTML import react.dom.html.ReactHTML.button diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationType.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationType.kt similarity index 68% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationType.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationType.kt index 4539e20519..bcdd8e769f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationType.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationType.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization /** * A interface for organization view. diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationView.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationView.kt index 652712fd35..c99dc75b89 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/OrganizationView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/OrganizationView.kt @@ -2,16 +2,16 @@ "FILE_NAME_MATCH_CLASS", ) -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER +import com.saveourtool.frontend.common.components.basic.avatarRenderer +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.OrganizationDto import com.saveourtool.save.entities.ProjectDto import com.saveourtool.save.entities.ProjectStatus import com.saveourtool.save.filters.ProjectFilter -import com.saveourtool.save.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER -import com.saveourtool.save.frontend.common.components.basic.avatarRenderer -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.utils.getHighestRole diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderAdminTab.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderAdminTab.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderAdminTab.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderAdminTab.kt index ff6844921d..d0310a4929 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderAdminTab.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderAdminTab.kt @@ -1,6 +1,6 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization import com.saveourtool.save.entities.OrganizationDto import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderInfoTab.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderInfoTab.kt similarity index 90% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderInfoTab.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderInfoTab.kt index ccb17605f3..d32dd9cbe4 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderInfoTab.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderInfoTab.kt @@ -2,16 +2,16 @@ "FILE_NAME_MATCH_CLASS", ) -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.basic.userBoard +import com.saveourtool.frontend.common.externals.fontawesome.faCheck +import com.saveourtool.frontend.common.externals.fontawesome.faEdit +import com.saveourtool.frontend.common.externals.fontawesome.faTimesCircle +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.OrganizationDto -import com.saveourtool.save.frontend.common.components.basic.userBoard -import com.saveourtool.save.frontend.common.externals.fontawesome.faCheck -import com.saveourtool.save.frontend.common.externals.fontawesome.faEdit -import com.saveourtool.save.frontend.common.externals.fontawesome.faTimesCircle -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import js.core.jso diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderOrganizationMenuBar.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderOrganizationMenuBar.kt similarity index 91% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderOrganizationMenuBar.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderOrganizationMenuBar.kt index 2f4a7de794..546c996688 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderOrganizationMenuBar.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderOrganizationMenuBar.kt @@ -2,14 +2,14 @@ "FILE_NAME_MATCH_CLASS", ) -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER +import com.saveourtool.frontend.common.components.basic.avatarForm +import com.saveourtool.frontend.common.components.views.usersettings.AVATAR_TITLE +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.OrganizationDto -import com.saveourtool.save.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER -import com.saveourtool.save.frontend.common.components.basic.avatarForm -import com.saveourtool.save.frontend.common.components.views.usersettings.AVATAR_TITLE -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.utils.AvatarType import com.saveourtool.save.utils.CONTENT_LENGTH_CUSTOM import com.saveourtool.save.utils.FILE_PART_NAME diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderVulnerabilitiesTab.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderVulnerabilitiesTab.kt similarity index 85% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderVulnerabilitiesTab.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderVulnerabilitiesTab.kt index c817080db7..3738d3d74c 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/RenderVulnerabilitiesTab.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/RenderVulnerabilitiesTab.kt @@ -2,11 +2,12 @@ "FILE_NAME_MATCH_CLASS", ) -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization +import com.saveourtool.frontend.common.components.views.vuln.vulnerabilityTableComponent import com.saveourtool.save.domain.Role -import com.saveourtool.save.frontend.common.components.views.vuln.vulnerabilityTableComponent import com.saveourtool.save.info.UserInfo + import react.FC import react.Props import react.dom.html.ReactHTML.div diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/TestSuitesSourcesDisplayer.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/TestSuitesSourcesDisplayer.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/TestSuitesSourcesDisplayer.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/TestSuitesSourcesDisplayer.kt index 5160fa86cd..0b07eef68b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/TestSuitesSourcesDisplayer.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/organization/TestSuitesSourcesDisplayer.kt @@ -5,10 +5,10 @@ "HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE", ) -package com.saveourtool.save.frontend.common.components.views.organization +package com.saveourtool.frontend.common.components.views.organization -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.test.TestsSourceVersionInfo import com.saveourtool.save.test.TestsSourceVersionInfoList import com.saveourtool.save.testsuite.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/userprofile/UserProfileNewUsersTab.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileNewUsersTab.kt similarity index 81% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/userprofile/UserProfileNewUsersTab.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileNewUsersTab.kt index 78f68452bd..e60bead3e8 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/userprofile/UserProfileNewUsersTab.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileNewUsersTab.kt @@ -1,13 +1,13 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.components.views.userprofile +package com.saveourtool.frontend.common.components.views.userprofile -import com.saveourtool.save.frontend.common.components.basic.renderUserAvatarWithName -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.basic.renderUserAvatarWithName +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import react.FC import react.Fragment diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/userprofile/UserProfileView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileView.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/userprofile/UserProfileView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileView.kt index e56b290cf4..17a9fae41e 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/userprofile/UserProfileView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileView.kt @@ -2,17 +2,17 @@ * View for UserProfile */ -package com.saveourtool.save.frontend.common.components.views.userprofile - +package com.saveourtool.frontend.common.components.views.userprofile + +import com.saveourtool.frontend.common.components.basic.renderAvatar +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.components.views.vuln.vulnerabilityTableComponent +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.OrganizationDto import com.saveourtool.save.frontend.TabMenuBar -import com.saveourtool.save.frontend.common.components.basic.renderAvatar -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.components.views.vuln.vulnerabilityTableComponent -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.info.UserStatus import com.saveourtool.save.utils.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/SettingsView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/SettingsView.kt similarity index 92% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/SettingsView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/SettingsView.kt index 9c08ce74ff..d208dd0309 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/SettingsView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/SettingsView.kt @@ -4,13 +4,13 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.views.usersettings +package com.saveourtool.frontend.common.components.views.usersettings -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.components.views.usersettings.right.SettingsInputFields -import com.saveourtool.save.frontend.common.externals.i18next.TranslationFunction -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.components.views.usersettings.right.SettingsInputFields +import com.saveourtool.frontend.common.externals.i18next.TranslationFunction +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.validation.FrontendRoutes import js.core.jso diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/SettingsViewLeftColumn.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/SettingsViewLeftColumn.kt similarity index 92% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/SettingsViewLeftColumn.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/SettingsViewLeftColumn.kt index ecb6edf15a..5d64973476 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/SettingsViewLeftColumn.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/SettingsViewLeftColumn.kt @@ -2,14 +2,14 @@ * In settings view we have two columns: this one is the left one */ -package com.saveourtool.save.frontend.common.components.views.usersettings +package com.saveourtool.frontend.common.components.views.usersettings -import com.saveourtool.save.frontend.common.components.basic.avatarRenderer -import com.saveourtool.save.frontend.common.components.views.userprofile.shortenLoginWithTooltipIfNecessary -import com.saveourtool.save.frontend.common.components.views.userprofile.shortenRealNameWithTooltipIfNecessary -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.basic.avatarRenderer +import com.saveourtool.frontend.common.components.views.userprofile.shortenLoginWithTooltipIfNecessary +import com.saveourtool.frontend.common.components.views.userprofile.shortenRealNameWithTooltipIfNecessary +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.validation.FrontendCosvRoutes import js.core.jso import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/SettingsViewRightColumn.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/SettingsViewRightColumn.kt similarity index 70% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/SettingsViewRightColumn.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/SettingsViewRightColumn.kt index 8b198cab73..272d7a08cf 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/SettingsViewRightColumn.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/SettingsViewRightColumn.kt @@ -2,13 +2,13 @@ * In settings view we have two columns: this one is the right one */ -package com.saveourtool.save.frontend.common.components.views.usersettings +package com.saveourtool.frontend.common.components.views.usersettings -import com.saveourtool.save.frontend.common.components.views.usersettings.right.deleteSettingsCard -import com.saveourtool.save.frontend.common.components.views.usersettings.right.emailSettingsCard -import com.saveourtool.save.frontend.common.components.views.usersettings.right.organizationsSettingsCard -import com.saveourtool.save.frontend.common.components.views.usersettings.right.profile.profileSettingsCard -import com.saveourtool.save.frontend.common.components.views.usersettings.right.tokenSettingsCard +import com.saveourtool.frontend.common.components.views.usersettings.right.deleteSettingsCard +import com.saveourtool.frontend.common.components.views.usersettings.right.emailSettingsCard +import com.saveourtool.frontend.common.components.views.usersettings.right.organizationsSettingsCard +import com.saveourtool.frontend.common.components.views.usersettings.right.profile.profileSettingsCard +import com.saveourtool.frontend.common.components.views.usersettings.right.tokenSettingsCard import com.saveourtool.save.validation.FrontendRoutes.* import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Delete.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Delete.kt similarity index 87% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Delete.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Delete.kt index dc677da858..5c8d43e633 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Delete.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Delete.kt @@ -2,12 +2,12 @@ * rendering for Delete User management card */ -package com.saveourtool.save.frontend.common.components.views.usersettings.right +package com.saveourtool.frontend.common.components.views.usersettings.right -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.components.views.usersettings.SettingsProps -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.components.views.usersettings.SettingsProps +import com.saveourtool.frontend.common.utils.* import js.core.jso import org.w3c.fetch.Headers diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Email.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Email.kt similarity index 76% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Email.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Email.kt index be6afa85c7..2963be06b3 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Email.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Email.kt @@ -2,16 +2,16 @@ * rendering for Email and Login management card */ -package com.saveourtool.save.frontend.common.components.views.usersettings.right +package com.saveourtool.frontend.common.components.views.usersettings.right -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.views.usersettings.SettingsProps -import com.saveourtool.save.frontend.common.components.views.usersettings.inputForm -import com.saveourtool.save.frontend.common.components.views.usersettings.right.validation.validateLogin -import com.saveourtool.save.frontend.common.components.views.usersettings.right.validation.validateUserEmail -import com.saveourtool.save.frontend.common.components.views.usersettings.useSaveUser -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.views.usersettings.SettingsProps +import com.saveourtool.frontend.common.components.views.usersettings.inputForm +import com.saveourtool.frontend.common.components.views.usersettings.right.validation.validateLogin +import com.saveourtool.frontend.common.components.views.usersettings.right.validation.validateUserEmail +import com.saveourtool.frontend.common.components.views.usersettings.useSaveUser +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.validation.FrontendRoutes import js.core.jso import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Organizations.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Organizations.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Organizations.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Organizations.kt index 03bb5aec0e..e93b4f246a 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Organizations.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Organizations.kt @@ -2,19 +2,19 @@ * rendering for Organization management card */ -package com.saveourtool.save.frontend.common.components.views.usersettings.right +package com.saveourtool.frontend.common.components.views.usersettings.right +import com.saveourtool.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER +import com.saveourtool.frontend.common.components.basic.avatarRenderer +import com.saveourtool.frontend.common.components.views.usersettings.SettingsProps +import com.saveourtool.frontend.common.externals.fontawesome.faRedo +import com.saveourtool.frontend.common.externals.fontawesome.faTrashAlt +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.OrganizationStatus import com.saveourtool.save.entities.OrganizationWithUsers import com.saveourtool.save.filters.OrganizationFilter -import com.saveourtool.save.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER -import com.saveourtool.save.frontend.common.components.basic.avatarRenderer -import com.saveourtool.save.frontend.common.components.views.usersettings.SettingsProps -import com.saveourtool.save.frontend.common.externals.fontawesome.faRedo -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrashAlt -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.validation.FrontendRoutes import js.core.jso diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/SettingsInputFields.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/SettingsInputFields.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/SettingsInputFields.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/SettingsInputFields.kt index fa0ce20652..f441dd0d64 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/SettingsInputFields.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/SettingsInputFields.kt @@ -2,9 +2,9 @@ * In this file we describe tricky class that is used to store input information */ -package com.saveourtool.save.frontend.common.components.views.usersettings.right +package com.saveourtool.frontend.common.components.views.usersettings.right -import com.saveourtool.save.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.InputTypes import com.saveourtool.save.info.UserInfo /** diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Token.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Token.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Token.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Token.kt index 5881d37e20..877e48c605 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/Token.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/Token.kt @@ -2,11 +2,11 @@ * rendering for Token management card */ -package com.saveourtool.save.frontend.common.components.views.usersettings.right +package com.saveourtool.frontend.common.components.views.usersettings.right -import com.saveourtool.save.frontend.common.components.views.usersettings.SettingsProps -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.components.views.usersettings.SettingsProps +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.buttonBuilder import js.core.jso import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/profile/AvatarSelector.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/profile/AvatarSelector.kt similarity index 90% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/profile/AvatarSelector.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/profile/AvatarSelector.kt index 63bd36831e..846572b1c3 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/profile/AvatarSelector.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/profile/AvatarSelector.kt @@ -4,14 +4,14 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.views.usersettings.right.profile +package com.saveourtool.frontend.common.components.views.usersettings.right.profile -import com.saveourtool.save.frontend.common.components.basic.avatarForm -import com.saveourtool.save.frontend.common.components.views.usersettings.AVATAR_TITLE -import com.saveourtool.save.frontend.common.externals.fontawesome.faCamera -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.UserInfoAwareMutablePropsWithChildren +import com.saveourtool.frontend.common.components.basic.avatarForm +import com.saveourtool.frontend.common.components.views.usersettings.AVATAR_TITLE +import com.saveourtool.frontend.common.externals.fontawesome.faCamera +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.UserInfoAwareMutablePropsWithChildren import com.saveourtool.save.utils.AVATARS_PACKS_DIR import com.saveourtool.save.utils.AvatarType.USER import com.saveourtool.save.utils.CONTENT_LENGTH_CUSTOM diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/profile/Profile.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/profile/Profile.kt similarity index 81% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/profile/Profile.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/profile/Profile.kt index 7fcc3fa422..192889c374 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/profile/Profile.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/profile/Profile.kt @@ -4,19 +4,19 @@ @file:Suppress("EMPTY_BLOCK_STRUCTURE_ERROR") -package com.saveourtool.save.frontend.common.components.views.usersettings.right.profile - -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.views.usersettings.* -import com.saveourtool.save.frontend.common.components.views.usersettings.FieldsStateSetter -import com.saveourtool.save.frontend.common.components.views.usersettings.SettingsProps -import com.saveourtool.save.frontend.common.components.views.usersettings.inputForm -import com.saveourtool.save.frontend.common.components.views.usersettings.right.SettingsInputFields -import com.saveourtool.save.frontend.common.components.views.usersettings.right.validation.* -import com.saveourtool.save.frontend.common.components.views.usersettings.useSaveUser -import com.saveourtool.save.frontend.common.externals.i18next.TranslationFunction -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.* +package com.saveourtool.frontend.common.components.views.usersettings.right.profile + +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.views.usersettings.* +import com.saveourtool.frontend.common.components.views.usersettings.FieldsStateSetter +import com.saveourtool.frontend.common.components.views.usersettings.SettingsProps +import com.saveourtool.frontend.common.components.views.usersettings.inputForm +import com.saveourtool.frontend.common.components.views.usersettings.right.SettingsInputFields +import com.saveourtool.frontend.common.components.views.usersettings.right.validation.* +import com.saveourtool.frontend.common.components.views.usersettings.useSaveUser +import com.saveourtool.frontend.common.externals.i18next.TranslationFunction +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.* import react.ChildrenBuilder import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/validation/InputValidationUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/validation/InputValidationUtils.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/validation/InputValidationUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/validation/InputValidationUtils.kt index c062554f90..b7d730be5b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/usersettings/right/validation/InputValidationUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/usersettings/right/validation/InputValidationUtils.kt @@ -2,9 +2,9 @@ * Utility file with validation functions that should be passed to inputForm */ -package com.saveourtool.save.frontend.common.components.views.usersettings.right.validation +package com.saveourtool.frontend.common.components.views.usersettings.right.validation -import com.saveourtool.save.frontend.common.utils.UsefulUrls +import com.saveourtool.frontend.common.utils.UsefulUrls import com.saveourtool.save.validation.* private val namingAllowedSymbols = setOf('-', '_', '.', ' ') diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/vuln/UploadCosvButton.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/vuln/UploadCosvButton.kt similarity index 76% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/vuln/UploadCosvButton.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/vuln/UploadCosvButton.kt index ed1b61dc62..9c94d9846b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/vuln/UploadCosvButton.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/vuln/UploadCosvButton.kt @@ -1,10 +1,10 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.components.views.vuln +package com.saveourtool.frontend.common.components.views.vuln -import com.saveourtool.save.frontend.common.externals.fontawesome.faFile -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.externals.fontawesome.faFile +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.validation.FrontendCosvRoutes import react.FC import react.Props diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/vuln/VulnerabilityTableComponent.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/vuln/VulnerabilityTableComponent.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/vuln/VulnerabilityTableComponent.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/vuln/VulnerabilityTableComponent.kt index 08519b8101..661f21ea52 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/vuln/VulnerabilityTableComponent.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/vuln/VulnerabilityTableComponent.kt @@ -2,20 +2,20 @@ * View for vulnerability tables */ -package com.saveourtool.save.frontend.common.components.views.vuln +package com.saveourtool.frontend.common.components.views.vuln +import com.saveourtool.frontend.common.components.basic.renderOrganizationWithName +import com.saveourtool.frontend.common.components.basic.renderUserAvatarWithName +import com.saveourtool.frontend.common.components.basic.table.filters.vulnerabilitiesFiltersRow +import com.saveourtool.frontend.common.components.tables.* +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopResponseHandler import com.saveourtool.save.entities.cosv.VulnerabilityMetadataDtoWithUserAndOrganization import com.saveourtool.save.entities.vulnerability.VulnerabilityStatus import com.saveourtool.save.filters.VulnerabilityFilter import com.saveourtool.save.frontend.TabMenuBar -import com.saveourtool.save.frontend.common.components.basic.renderOrganizationWithName -import com.saveourtool.save.frontend.common.components.basic.renderUserAvatarWithName -import com.saveourtool.save.frontend.common.components.basic.table.filters.vulnerabilitiesFiltersRow -import com.saveourtool.save.frontend.common.components.tables.* -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopResponseHandler import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendCosvRoutes diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/MarketingTitles.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/MarketingTitles.kt similarity index 92% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/MarketingTitles.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/MarketingTitles.kt index 3187ea182f..4a655057b8 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/MarketingTitles.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/MarketingTitles.kt @@ -2,10 +2,10 @@ * Utility methods for beautiful titles/slogans on welcome view */ -package com.saveourtool.save.frontend.common.components.views.welcome +package com.saveourtool.frontend.common.components.views.welcome -import com.saveourtool.save.frontend.common.externals.fontawesome.faChevronDown -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.faChevronDown +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/SaveWelcomeView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/SaveWelcomeView.kt similarity index 86% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/SaveWelcomeView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/SaveWelcomeView.kt index fab9bdfaf5..bb75a56793 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/SaveWelcomeView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/SaveWelcomeView.kt @@ -9,16 +9,16 @@ "FILE_NAME_MATCH_CLASS" ) -package com.saveourtool.save.frontend.common.components.views.welcome - -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.allSaveWelcomePagers -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.save.renderGeneralInfoPage -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.save.renderReadMorePage -import com.saveourtool.save.frontend.common.externals.animations.* -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.* +package com.saveourtool.frontend.common.components.views.welcome + +import com.saveourtool.frontend.common.components.views.welcome.pagers.allSaveWelcomePagers +import com.saveourtool.frontend.common.components.views.welcome.pagers.save.renderGeneralInfoPage +import com.saveourtool.frontend.common.components.views.welcome.pagers.save.renderReadMorePage +import com.saveourtool.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.info.OauthProviderInfo import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/WelcomeUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/WelcomeUtils.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/WelcomeUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/WelcomeUtils.kt index e3c08fd8f6..ea4c08a221 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/WelcomeUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/WelcomeUtils.kt @@ -2,13 +2,13 @@ * File containing utils for welcome views rendering */ -package com.saveourtool.save.frontend.common.components.views.welcome +package com.saveourtool.frontend.common.components.views.welcome -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.externals.i18next.TranslationFunction -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.OauthProvidersFeConfig -import com.saveourtool.save.frontend.common.utils.processRegistrationId +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.externals.i18next.TranslationFunction +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.OauthProvidersFeConfig +import com.saveourtool.frontend.common.utils.processRegistrationId import com.saveourtool.save.info.OauthProviderInfo import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendCosvRoutes diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/WelcomePager.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/WelcomePager.kt similarity index 77% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/WelcomePager.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/WelcomePager.kt index 0433dd2a7a..9a23708dd1 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/WelcomePager.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/WelcomePager.kt @@ -1,7 +1,7 @@ -package com.saveourtool.save.frontend.common.components.views.welcome.pagers +package com.saveourtool.frontend.common.components.views.welcome.pagers -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.save.* -import com.saveourtool.save.frontend.common.externals.animations.Animation +import com.saveourtool.frontend.common.components.views.welcome.pagers.save.* +import com.saveourtool.frontend.common.externals.animations.Animation import react.ChildrenBuilder val allSaveWelcomePagers = listOf( diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/AwesomeBenchmarks.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/AwesomeBenchmarks.kt similarity index 74% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/AwesomeBenchmarks.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/AwesomeBenchmarks.kt index b32ab9ff08..51012daa90 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/AwesomeBenchmarks.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/AwesomeBenchmarks.kt @@ -1,7 +1,7 @@ -package com.saveourtool.save.frontend.common.components.views.welcome.pagers.save +package com.saveourtool.frontend.common.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.WelcomePager -import com.saveourtool.save.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.components.views.welcome.pagers.WelcomePager +import com.saveourtool.frontend.common.externals.animations.* import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/Contests.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/Contests.kt similarity index 75% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/Contests.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/Contests.kt index 3c8bee8f21..f7754c8046 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/Contests.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/Contests.kt @@ -1,7 +1,7 @@ -package com.saveourtool.save.frontend.common.components.views.welcome.pagers.save +package com.saveourtool.frontend.common.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.WelcomePager -import com.saveourtool.save.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.components.views.welcome.pagers.WelcomePager +import com.saveourtool.frontend.common.externals.animations.* import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/GeneralInfo.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/GeneralInfo.kt similarity index 98% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/GeneralInfo.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/GeneralInfo.kt index 1a169bd879..fb967c2499 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/GeneralInfo.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/GeneralInfo.kt @@ -2,7 +2,7 @@ * [1 page] Main information about SAVE-cloud */ -package com.saveourtool.save.frontend.common.components.views.welcome.pagers.save +package com.saveourtool.frontend.common.components.views.welcome.pagers.save import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/GeneralInfoPictures.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/GeneralInfoPictures.kt similarity index 92% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/GeneralInfoPictures.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/GeneralInfoPictures.kt index 43e6378e87..ab99c0cfbf 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/GeneralInfoPictures.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/GeneralInfoPictures.kt @@ -2,10 +2,10 @@ * 4 pictures with animation and screenshots from SAVE */ -package com.saveourtool.save.frontend.common.components.views.welcome.pagers.save +package com.saveourtool.frontend.common.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.WelcomePager -import com.saveourtool.save.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.components.views.welcome.pagers.WelcomePager +import com.saveourtool.frontend.common.externals.animations.* import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/HighLevelSave.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/HighLevelSave.kt similarity index 65% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/HighLevelSave.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/HighLevelSave.kt index 4126156cfb..6e625b5e0b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/HighLevelSave.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/HighLevelSave.kt @@ -1,7 +1,7 @@ -package com.saveourtool.save.frontend.common.components.views.welcome.pagers.save +package com.saveourtool.frontend.common.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.WelcomePager -import com.saveourtool.save.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.components.views.welcome.pagers.WelcomePager +import com.saveourtool.frontend.common.externals.animations.* import react.ChildrenBuilder import react.dom.html.ReactHTML.img diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/ReadMore.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/ReadMore.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/ReadMore.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/ReadMore.kt index 290af7de4b..fbb1c8f031 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/ReadMore.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/ReadMore.kt @@ -2,7 +2,7 @@ * [Last page] Main information about SAVE-cloud */ -package com.saveourtool.save.frontend.common.components.views.welcome.pagers.save +package com.saveourtool.frontend.common.components.views.welcome.pagers.save import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/Slogan.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/Slogan.kt similarity index 83% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/Slogan.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/Slogan.kt index 77e4c94183..085f38487b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/Slogan.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/Slogan.kt @@ -2,11 +2,11 @@ * Slogans that will be used in welcome page */ -package com.saveourtool.save.frontend.common.components.views.welcome.pagers.save +package com.saveourtool.frontend.common.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.WelcomePager -import com.saveourtool.save.frontend.common.externals.animations.Animation -import com.saveourtool.save.frontend.common.externals.animations.zoomInScrollOut +import com.saveourtool.frontend.common.components.views.welcome.pagers.WelcomePager +import com.saveourtool.frontend.common.externals.animations.Animation +import com.saveourtool.frontend.common.externals.animations.zoomInScrollOut import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/TestsSelector.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/TestsSelector.kt similarity index 73% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/TestsSelector.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/TestsSelector.kt index 2e7608ed07..404c1962bb 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/welcome/pagers/save/TestsSelector.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/welcome/pagers/save/TestsSelector.kt @@ -1,7 +1,7 @@ -package com.saveourtool.save.frontend.common.components.views.welcome.pagers.save +package com.saveourtool.frontend.common.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.WelcomePager -import com.saveourtool.save.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.components.views.welcome.pagers.WelcomePager +import com.saveourtool.frontend.common.externals.animations.* import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/Particles.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/Particles.kt similarity index 87% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/Particles.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/Particles.kt index d031772075..bd7ba83dcf 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/Particles.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/Particles.kt @@ -6,7 +6,7 @@ @file:JsModule("react-tsparticles") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.animations +package com.saveourtool.frontend.common.externals.animations import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/RingLoader.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/RingLoader.kt similarity index 85% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/RingLoader.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/RingLoader.kt index 29f4fc7aaa..d350c66f6c 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/RingLoader.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/RingLoader.kt @@ -2,7 +2,7 @@ @file:JsModule("react-spinners") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.animations +package com.saveourtool.frontend.common.externals.animations import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/ScrollMotion.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/ScrollMotion.kt similarity index 98% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/ScrollMotion.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/ScrollMotion.kt index 67d5381320..da8c9e4b9e 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/ScrollMotion.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/ScrollMotion.kt @@ -6,7 +6,7 @@ @file:JsModule("react-scroll-motion") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.animations +package com.saveourtool.frontend.common.externals.animations import react.FC import react.PropsWithChildren diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/ScrollMotionConstants.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/ScrollMotionConstants.kt similarity index 89% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/ScrollMotionConstants.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/ScrollMotionConstants.kt index 5ab9437cfc..d089af8676 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/animations/ScrollMotionConstants.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/animations/ScrollMotionConstants.kt @@ -4,7 +4,7 @@ @file:Suppress("MAGIC_NUMBER") -package com.saveourtool.save.frontend.common.externals.animations +package com.saveourtool.frontend.common.externals.animations val zoomInScrollOut = batch(fade(), zoomIn(), sticky()) diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/cookie/Cookie.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/cookie/Cookie.kt similarity index 98% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/cookie/Cookie.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/cookie/Cookie.kt index 50ef0b4070..37048ebb79 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/cookie/Cookie.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/cookie/Cookie.kt @@ -1,6 +1,6 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.externals.cookie +package com.saveourtool.frontend.common.externals.cookie import js.core.jso import kotlinext.js.require diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/diffviewer/ReactDiffViewer.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/diffviewer/ReactDiffViewer.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/diffviewer/ReactDiffViewer.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/diffviewer/ReactDiffViewer.kt index 0f4359c052..08992583ec 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/diffviewer/ReactDiffViewer.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/diffviewer/ReactDiffViewer.kt @@ -2,7 +2,7 @@ @file:JsModule("react-diff-viewer-continued") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.diffviewer +package com.saveourtool.frontend.common.externals.diffviewer import react.FC import react.Props diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/BrandIcons.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/BrandIcons.kt similarity index 86% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/BrandIcons.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/BrandIcons.kt index 393f2fd71b..e03303888f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/BrandIcons.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/BrandIcons.kt @@ -2,7 +2,7 @@ * External declarations of icons from fontawesome-solid */ -package com.saveourtool.save.frontend.common.externals.fontawesome +package com.saveourtool.frontend.common.externals.fontawesome @JsModule("@fortawesome/free-brands-svg-icons/faGithub") @JsNonModule diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FaSetup.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FaSetup.kt similarity index 70% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FaSetup.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FaSetup.kt index 017e91796e..8b945a64c7 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FaSetup.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FaSetup.kt @@ -5,6 +5,6 @@ @file:JsModule("@fortawesome/fontawesome-svg-core") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.fontawesome +package com.saveourtool.frontend.common.externals.fontawesome external val library: dynamic diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FontAwesomeIcon.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FontAwesomeIcon.kt similarity index 83% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FontAwesomeIcon.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FontAwesomeIcon.kt index 43d093e6aa..7a83b78cf5 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FontAwesomeIcon.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FontAwesomeIcon.kt @@ -1,7 +1,7 @@ @file:JsModule("@fortawesome/react-fontawesome") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.fontawesome +package com.saveourtool.frontend.common.externals.fontawesome import react.Component import react.ReactElement diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FontAwesomeIconBuilders.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FontAwesomeIconBuilders.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FontAwesomeIconBuilders.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FontAwesomeIconBuilders.kt index 330f81cdaa..05e4420c97 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FontAwesomeIconBuilders.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FontAwesomeIconBuilders.kt @@ -4,7 +4,7 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.externals.fontawesome +package com.saveourtool.frontend.common.externals.fontawesome import react.ChildrenBuilder import react.react diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FontAwesomeIconProps.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FontAwesomeIconProps.kt similarity index 89% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FontAwesomeIconProps.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FontAwesomeIconProps.kt index 14b545daf0..159d4f28e2 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/FontAwesomeIconProps.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/FontAwesomeIconProps.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.externals.fontawesome +package com.saveourtool.frontend.common.externals.fontawesome import react.PropsWithChildren diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/Icons.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/Icons.kt similarity index 99% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/Icons.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/Icons.kt index a3ca503efa..ea504f5c06 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/fontawesome/Icons.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/fontawesome/Icons.kt @@ -2,7 +2,7 @@ * External declarations of icons from fontawesome-solid */ -package com.saveourtool.save.frontend.common.externals.fontawesome +package com.saveourtool.frontend.common.externals.fontawesome @JsModule("@fortawesome/free-solid-svg-icons/faUser") @JsNonModule diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/I18n.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/I18n.kt similarity index 90% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/I18n.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/I18n.kt index ff763103bc..ef005c743b 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/I18n.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/I18n.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.externals.i18next +package com.saveourtool.frontend.common.externals.i18next import com.saveourtool.save.frontend.PlatformLanguages diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/InitI18n.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/InitI18n.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/InitI18n.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/InitI18n.kt index f0972111c0..262c3923a8 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/InitI18n.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/InitI18n.kt @@ -2,7 +2,7 @@ * File containing initialization of i18next */ -package com.saveourtool.save.frontend.common.externals.i18next +package com.saveourtool.frontend.common.externals.i18next /** * Function that encapsulates i18n initialization. diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/Translation.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/Translation.kt similarity index 87% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/Translation.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/Translation.kt index 624e714202..53c3725daf 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/Translation.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/Translation.kt @@ -1,9 +1,9 @@ -package com.saveourtool.save.frontend.common.externals.i18next +package com.saveourtool.frontend.common.externals.i18next +import com.saveourtool.frontend.common.externals.cookie.cookie +import com.saveourtool.frontend.common.externals.cookie.isAccepted +import com.saveourtool.frontend.common.externals.cookie.saveLanguageCode import com.saveourtool.save.frontend.PlatformLanguages -import com.saveourtool.save.frontend.common.externals.cookie.cookie -import com.saveourtool.save.frontend.common.externals.cookie.isAccepted -import com.saveourtool.save.frontend.common.externals.cookie.saveLanguageCode typealias TranslationFunction = String.() -> String diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/UseTranslation.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/UseTranslation.kt similarity index 82% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/UseTranslation.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/UseTranslation.kt index 84139f5901..51ccef61c0 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/i18next/UseTranslation.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/i18next/UseTranslation.kt @@ -1,7 +1,7 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") @file:JsModule("react-i18next") -package com.saveourtool.save.frontend.common.externals.i18next +package com.saveourtool.frontend.common.externals.i18next /** * @param namespaces [Array] of namespaces to load diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/imageeditor/ReactAvatarImageCropper.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/imageeditor/ReactAvatarImageCropper.kt similarity index 90% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/imageeditor/ReactAvatarImageCropper.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/imageeditor/ReactAvatarImageCropper.kt index a8361e321b..7ad6349b73 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/imageeditor/ReactAvatarImageCropper.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/imageeditor/ReactAvatarImageCropper.kt @@ -2,7 +2,7 @@ @file:JsModule("react-avatar-image-cropper") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.imageeditor +package com.saveourtool.frontend.common.externals.imageeditor import org.w3c.dom.events.Event import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/jsonview/JsonView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/jsonview/JsonView.kt similarity index 92% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/jsonview/JsonView.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/jsonview/JsonView.kt index f97b7ada44..d098c0b4fb 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/jsonview/JsonView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/jsonview/JsonView.kt @@ -2,7 +2,7 @@ @file:JsModule("react-json-view") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.jsonview +package com.saveourtool.frontend.common.externals.jsonview import react.FC import react.Props diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/lodash/Debounce.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/lodash/Debounce.kt similarity index 84% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/lodash/Debounce.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/lodash/Debounce.kt index d545e02867..0370cbafe7 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/lodash/Debounce.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/lodash/Debounce.kt @@ -1,6 +1,6 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.externals.lodash +package com.saveourtool.frontend.common.externals.lodash /** * @param function to be debounced diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/markdown/ReactMarkdown.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/markdown/ReactMarkdown.kt similarity index 88% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/markdown/ReactMarkdown.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/markdown/ReactMarkdown.kt index c1be7d1042..5564541914 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/markdown/ReactMarkdown.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/markdown/ReactMarkdown.kt @@ -2,7 +2,7 @@ @file:JsModule("react-markdown") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.markdown +package com.saveourtool.frontend.common.externals.markdown import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/markdown/rehype/RehypeMarkdownPlugin.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/markdown/rehype/RehypeMarkdownPlugin.kt similarity index 82% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/markdown/rehype/RehypeMarkdownPlugin.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/markdown/rehype/RehypeMarkdownPlugin.kt index d58a65dad3..5d206d1abd 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/markdown/rehype/RehypeMarkdownPlugin.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/markdown/rehype/RehypeMarkdownPlugin.kt @@ -2,7 +2,7 @@ @file:JsModule("rehype-highlight") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.markdown.rehype +package com.saveourtool.frontend.common.externals.markdown.rehype /** * Plugin for syntax highlighting in code blocks diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/modal/ReactModal.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/modal/ReactModal.kt similarity index 98% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/modal/ReactModal.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/modal/ReactModal.kt index f4593c1e8a..a6bd58fc16 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/modal/ReactModal.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/modal/ReactModal.kt @@ -4,7 +4,7 @@ @file:Suppress("USE_DATA_CLASS") -package com.saveourtool.save.frontend.common.externals.modal +package com.saveourtool.frontend.common.externals.modal import react.* import web.dom.Element diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/progressbar/ReactCircle.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/progressbar/ReactCircle.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/progressbar/ReactCircle.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/progressbar/ReactCircle.kt index 959cb4ff80..b1e45a3f98 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/progressbar/ReactCircle.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/progressbar/ReactCircle.kt @@ -2,7 +2,7 @@ @file:JsModule("react-circle") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.progressbar +package com.saveourtool.frontend.common.externals.progressbar import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/progressbar/ReactCircleBuilder.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/progressbar/ReactCircleBuilder.kt similarity index 89% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/progressbar/ReactCircleBuilder.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/progressbar/ReactCircleBuilder.kt index 2e749771b3..23a381a61f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/progressbar/ReactCircleBuilder.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/progressbar/ReactCircleBuilder.kt @@ -1,8 +1,8 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE", "FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.externals.progressbar +package com.saveourtool.frontend.common.externals.progressbar -import com.saveourtool.save.frontend.common.themes.Colors +import com.saveourtool.frontend.common.themes.Colors import react.ChildrenBuilder import react.react diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/slider/MultiRangeSlider.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/slider/MultiRangeSlider.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/slider/MultiRangeSlider.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/slider/MultiRangeSlider.kt index 570304c59d..c15dd1e1ba 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/externals/slider/MultiRangeSlider.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/externals/slider/MultiRangeSlider.kt @@ -2,7 +2,7 @@ @file:JsModule("multi-range-slider-react") @file:JsNonModule -package com.saveourtool.save.frontend.common.externals.slider +package com.saveourtool.frontend.common.externals.slider import react.CSSProperties import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/http/Exceptions.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/http/Exceptions.kt similarity index 89% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/http/Exceptions.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/http/Exceptions.kt index a1429a32fa..f67c03cde2 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/http/Exceptions.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/http/Exceptions.kt @@ -4,7 +4,7 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.http +package com.saveourtool.frontend.common.http /** * Exception class for HTTP responses until we use a dedicated HTTP client diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/http/Requests.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/http/Requests.kt similarity index 98% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/http/Requests.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/http/Requests.kt index 51fef0fdb7..6fbb7562b9 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/http/Requests.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/http/Requests.kt @@ -2,18 +2,18 @@ * Methods to make specific requests to backend */ -package com.saveourtool.save.frontend.common.http +package com.saveourtool.frontend.common.http +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.agent.TestExecutionDto import com.saveourtool.save.entities.* import com.saveourtool.save.entities.contest.ContestDto -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import com.saveourtool.save.utils.AvatarType import com.saveourtool.save.utils.CONTENT_LENGTH_CUSTOM import com.saveourtool.save.utils.FILE_PART_NAME -import js.core.jso +import js.core.jso import org.w3c.fetch.Headers import org.w3c.fetch.Response import web.file.File diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/themes/Colors.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/themes/Colors.kt similarity index 90% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/themes/Colors.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/themes/Colors.kt index c6cedc8180..02d98e17df 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/themes/Colors.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/themes/Colors.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.themes +package com.saveourtool.frontend.common.themes /** * @property value - string with the color in rgb diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/Action.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/Action.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/Action.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/Action.kt index aac768dbf2..c8973e1956 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/Action.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/Action.kt @@ -1,8 +1,8 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils -import com.saveourtool.save.frontend.common.components.modal.displayModalWithCheckBox +import com.saveourtool.frontend.common.components.modal.displayModalWithCheckBox import org.w3c.fetch.Response import react.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/CComponent.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/CComponent.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/CComponent.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/CComponent.kt index c19eda8731..390ace6e80 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/CComponent.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/CComponent.kt @@ -1,6 +1,6 @@ @file:Suppress("FILE_NAME_INCORRECT") -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import js.core.jso import kotlinext.js.assign diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/ChildrenBuilderUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/ChildrenBuilderUtils.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/ChildrenBuilderUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/ChildrenBuilderUtils.kt index 4f559544b9..ff0a125dd6 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/ChildrenBuilderUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/ChildrenBuilderUtils.kt @@ -4,10 +4,10 @@ @file:Suppress("FILE_NAME_INCORRECT", "FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils -import com.saveourtool.save.frontend.common.externals.fontawesome.FontAwesomeIconModule -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.FontAwesomeIconModule +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/ComponentWithScope.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/ComponentWithScope.kt similarity index 92% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/ComponentWithScope.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/ComponentWithScope.kt index 1940f68de5..23b016b8ae 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/ComponentWithScope.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/ComponentWithScope.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import react.Props import react.State diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/CustomHooks.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/CustomHooks.kt similarity index 98% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/CustomHooks.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/CustomHooks.kt index 6fdad12740..285d8bd45a 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/CustomHooks.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/CustomHooks.kt @@ -4,10 +4,10 @@ * Keep in mind that hooks could only be used from functional components! */ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils -import com.saveourtool.save.frontend.common.components.requestStatusContext -import com.saveourtool.save.frontend.common.externals.lodash.debounce +import com.saveourtool.frontend.common.components.requestStatusContext +import com.saveourtool.frontend.common.externals.lodash.debounce import com.saveourtool.save.info.UserStatus import com.saveourtool.save.utils.DEFAULT_DEBOUNCE_PERIOD import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/FilterParamUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/FilterParamUtils.kt similarity index 91% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/FilterParamUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/FilterParamUtils.kt index 5369f88cfc..d7a0ded303 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/FilterParamUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/FilterParamUtils.kt @@ -3,7 +3,7 @@ * than you can add extension methods to URLSearchParams and pass filter to particular view */ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import com.saveourtool.save.filters.VulnerabilityFilter import org.w3c.dom.url.URLSearchParams diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/HtmlElements.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/HtmlElements.kt similarity index 91% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/HtmlElements.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/HtmlElements.kt index 93563c3869..dbb6752a9d 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/HtmlElements.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/HtmlElements.kt @@ -2,11 +2,11 @@ * File that contains html elements that are used multiple times in the project */ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils +import com.saveourtool.frontend.common.externals.fontawesome.FontAwesomeIconModule +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import com.saveourtool.save.entities.* -import com.saveourtool.save.frontend.common.externals.fontawesome.FontAwesomeIconModule -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/JsUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/JsUtils.kt similarity index 98% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/JsUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/JsUtils.kt index b4e35a7af4..41c7b59f4a 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/JsUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/JsUtils.kt @@ -4,7 +4,7 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import js.core.Object import react.ChildrenBuilder diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/LocationUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/LocationUtils.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/LocationUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/LocationUtils.kt index 970180bf09..979249478f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/LocationUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/LocationUtils.kt @@ -1,6 +1,6 @@ @file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE") -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import com.saveourtool.save.validation.FrontendRoutes import com.saveourtool.save.validation.SETTINGS diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/LoginUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/LoginUtils.kt similarity index 93% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/LoginUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/LoginUtils.kt index 058ed4c6bc..67e733e4b2 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/LoginUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/LoginUtils.kt @@ -4,10 +4,10 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils -import com.saveourtool.save.frontend.common.externals.fontawesome.faSignInAlt -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.faSignInAlt +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import com.saveourtool.save.info.OauthProviderInfo import js.core.jso diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/Particles.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/Particles.kt similarity index 83% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/Particles.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/Particles.kt index eca6b65f65..0881ee2da8 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/Particles.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/Particles.kt @@ -2,9 +2,9 @@ * Particles - effect with flying objects on the background */ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils -import com.saveourtool.save.frontend.common.externals.animations.Particles +import com.saveourtool.frontend.common.externals.animations.Particles import react.ChildrenBuilder import react.react diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/RequestUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/RequestUtils.kt similarity index 98% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/RequestUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/RequestUtils.kt index 5b27e63553..b4ad4ce0fe 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/RequestUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/RequestUtils.kt @@ -4,12 +4,12 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils +import com.saveourtool.frontend.common.components.RequestStatusContext +import com.saveourtool.frontend.common.components.requestStatusContext +import com.saveourtool.frontend.common.http.HttpStatusException import com.saveourtool.save.coroutines.flow.decodeToString -import com.saveourtool.save.frontend.common.components.RequestStatusContext -import com.saveourtool.save.frontend.common.components.requestStatusContext -import com.saveourtool.save.frontend.common.http.HttpStatusException import com.saveourtool.save.v1 import js.buffer.ArrayBuffer diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/RouterUtils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/RouterUtils.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/RouterUtils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/RouterUtils.kt index 7e7dce6050..51ad0fbebd 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/RouterUtils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/RouterUtils.kt @@ -4,7 +4,7 @@ @file:Suppress("FILE_NAME_MATCH_CLASS") -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import react.* import react.router.* diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/StateWithRole.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/StateWithRole.kt similarity index 82% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/StateWithRole.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/StateWithRole.kt index 9db334e3f0..19c1902e2d 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/StateWithRole.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/StateWithRole.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import com.saveourtool.save.domain.Role import react.State diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/TopBarUrl.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/TopBarUrl.kt similarity index 99% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/TopBarUrl.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/TopBarUrl.kt index 8fb4400a39..512c0e975c 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/TopBarUrl.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/TopBarUrl.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/UsefulUrls.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/UsefulUrls.kt similarity index 94% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/UsefulUrls.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/UsefulUrls.kt index a291929545..729043264f 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/UsefulUrls.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/UsefulUrls.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import com.saveourtool.save.validation.NAME_FRAGMENT_CLASS import com.saveourtool.save.validation.ValidationRegularExpressions.URL_VALIDATOR diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/UserInfoAwareProps.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/UserInfoAwareProps.kt similarity index 96% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/UserInfoAwareProps.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/UserInfoAwareProps.kt index 83dca5f0bc..37e77db3ac 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/UserInfoAwareProps.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/UserInfoAwareProps.kt @@ -2,7 +2,7 @@ * Props for UserInfo */ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import com.saveourtool.save.info.UserInfo import react.FC diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/Utils.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/Utils.kt similarity index 97% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/Utils.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/Utils.kt index 38a1cc3eee..d4279b0650 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/Utils.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/Utils.kt @@ -2,12 +2,12 @@ * Various utils for frontend */ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils +import com.saveourtool.frontend.common.externals.fontawesome.FontAwesomeIconModule +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import com.saveourtool.save.domain.Role import com.saveourtool.save.domain.Role.SUPER_ADMIN -import com.saveourtool.save.frontend.common.externals.fontawesome.FontAwesomeIconModule -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon import com.saveourtool.save.info.UserInfo import js.core.jso diff --git a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/WindowOpenness.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/WindowOpenness.kt similarity index 95% rename from save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/WindowOpenness.kt rename to frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/WindowOpenness.kt index 7327350a5d..6f551f4e6a 100644 --- a/save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/utils/WindowOpenness.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/utils/WindowOpenness.kt @@ -1,4 +1,4 @@ -package com.saveourtool.save.frontend.common.utils +package com.saveourtool.frontend.common.utils import react.StateInstance import react.useState diff --git a/save-frontend-common/src/test/kotlin/components/FooterTest.kt b/frontend-common/src/test/kotlin/components/FooterTest.kt similarity index 90% rename from save-frontend-common/src/test/kotlin/components/FooterTest.kt rename to frontend-common/src/test/kotlin/components/FooterTest.kt index 455bb15070..de3d2dc4e7 100644 --- a/save-frontend-common/src/test/kotlin/components/FooterTest.kt +++ b/frontend-common/src/test/kotlin/components/FooterTest.kt @@ -1,6 +1,6 @@ package components -import com.saveourtool.save.frontend.common.components.footer +import com.saveourtool.frontend.common.components.footer import externals.render import externals.screen diff --git a/save-frontend-common/src/test/kotlin/components/basic/SelectFormTest.kt b/frontend-common/src/test/kotlin/components/basic/SelectFormTest.kt similarity index 92% rename from save-frontend-common/src/test/kotlin/components/basic/SelectFormTest.kt rename to frontend-common/src/test/kotlin/components/basic/SelectFormTest.kt index 0f79c67a04..a740ab2e5e 100644 --- a/save-frontend-common/src/test/kotlin/components/basic/SelectFormTest.kt +++ b/frontend-common/src/test/kotlin/components/basic/SelectFormTest.kt @@ -1,11 +1,11 @@ package components.basic import com.saveourtool.save.entities.OrganizationDto -import com.saveourtool.save.frontend.common.components.basic.SelectFormRequiredProps -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.externals.* -import com.saveourtool.save.frontend.common.components.basic.selectFormRequired +import com.saveourtool.frontend.common.components.basic.SelectFormRequiredProps +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.externals.* +import com.saveourtool.frontend.common.components.basic.selectFormRequired import com.saveourtool.save.v1 import externals.render import externals.rest diff --git a/save-frontend-common/src/test/kotlin/components/views/OrganizationViewTest.kt b/frontend-common/src/test/kotlin/components/views/OrganizationViewTest.kt similarity index 90% rename from save-frontend-common/src/test/kotlin/components/views/OrganizationViewTest.kt rename to frontend-common/src/test/kotlin/components/views/OrganizationViewTest.kt index 6c061465a1..98c7eccc76 100644 --- a/save-frontend-common/src/test/kotlin/components/views/OrganizationViewTest.kt +++ b/frontend-common/src/test/kotlin/components/views/OrganizationViewTest.kt @@ -2,11 +2,11 @@ package components.views import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.* -import com.saveourtool.save.frontend.common.components.views.organization.OrganizationMenuBar -import com.saveourtool.save.frontend.common.components.views.organization.OrganizationType -import com.saveourtool.save.frontend.common.components.views.organization.organizationView -import com.saveourtool.save.frontend.common.externals.* -import com.saveourtool.save.frontend.common.utils.apiUrl +import com.saveourtool.frontend.common.components.views.organization.OrganizationMenuBar +import com.saveourtool.frontend.common.components.views.organization.OrganizationType +import com.saveourtool.frontend.common.components.views.organization.organizationView +import com.saveourtool.frontend.common.externals.* +import com.saveourtool.frontend.common.utils.apiUrl import com.saveourtool.save.info.UserInfo import externals.* import utils.mockMswResponse diff --git a/save-frontend-common/src/test/kotlin/externals/MockServiceWorker.kt b/frontend-common/src/test/kotlin/externals/MockServiceWorker.kt similarity index 100% rename from save-frontend-common/src/test/kotlin/externals/MockServiceWorker.kt rename to frontend-common/src/test/kotlin/externals/MockServiceWorker.kt diff --git a/save-frontend-common/src/test/kotlin/externals/ReactTestingLibrary.kt b/frontend-common/src/test/kotlin/externals/ReactTestingLibrary.kt similarity index 100% rename from save-frontend-common/src/test/kotlin/externals/ReactTestingLibrary.kt rename to frontend-common/src/test/kotlin/externals/ReactTestingLibrary.kt diff --git a/save-frontend-common/src/test/kotlin/externals/UserEvent.kt b/frontend-common/src/test/kotlin/externals/UserEvent.kt similarity index 100% rename from save-frontend-common/src/test/kotlin/externals/UserEvent.kt rename to frontend-common/src/test/kotlin/externals/UserEvent.kt diff --git a/save-frontend-common/src/test/kotlin/utils/ServerSentEventTest.kt b/frontend-common/src/test/kotlin/utils/ServerSentEventTest.kt similarity index 98% rename from save-frontend-common/src/test/kotlin/utils/ServerSentEventTest.kt rename to frontend-common/src/test/kotlin/utils/ServerSentEventTest.kt index 1ced6650f3..80df166213 100644 --- a/save-frontend-common/src/test/kotlin/utils/ServerSentEventTest.kt +++ b/frontend-common/src/test/kotlin/utils/ServerSentEventTest.kt @@ -1,6 +1,6 @@ package utils -import com.saveourtool.save.frontend.common.utils.useNdjson +import com.saveourtool.frontend.common.utils.useNdjson import externals.render import externals.rest import externals.setupWorker diff --git a/save-frontend-common/src/test/kotlin/utils/TestMessage.kt b/frontend-common/src/test/kotlin/utils/TestMessage.kt similarity index 100% rename from save-frontend-common/src/test/kotlin/utils/TestMessage.kt rename to frontend-common/src/test/kotlin/utils/TestMessage.kt diff --git a/save-frontend-common/src/test/kotlin/utils/TestUtils.kt b/frontend-common/src/test/kotlin/utils/TestUtils.kt similarity index 90% rename from save-frontend-common/src/test/kotlin/utils/TestUtils.kt rename to frontend-common/src/test/kotlin/utils/TestUtils.kt index 806544d43b..6fadbf172e 100644 --- a/save-frontend-common/src/test/kotlin/utils/TestUtils.kt +++ b/frontend-common/src/test/kotlin/utils/TestUtils.kt @@ -4,8 +4,8 @@ package utils -import com.saveourtool.save.frontend.common.components.RequestStatusContext -import com.saveourtool.save.frontend.common.components.requestStatusContext +import com.saveourtool.frontend.common.components.RequestStatusContext +import com.saveourtool.frontend.common.components.requestStatusContext import org.w3c.fetch.Response import react.FC diff --git a/save-frontend-common/src/test/kotlin/utils/UseRequestTest.kt b/frontend-common/src/test/kotlin/utils/UseRequestTest.kt similarity index 88% rename from save-frontend-common/src/test/kotlin/utils/UseRequestTest.kt rename to frontend-common/src/test/kotlin/utils/UseRequestTest.kt index 33e90e3ac2..3ed768d5b5 100644 --- a/save-frontend-common/src/test/kotlin/utils/UseRequestTest.kt +++ b/frontend-common/src/test/kotlin/utils/UseRequestTest.kt @@ -1,9 +1,9 @@ package utils -import com.saveourtool.save.frontend.common.utils.get -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler -import com.saveourtool.save.frontend.common.utils.useDeferredRequest -import com.saveourtool.save.frontend.common.utils.useRequest +import com.saveourtool.frontend.common.utils.get +import com.saveourtool.frontend.common.utils.noopLoadingHandler +import com.saveourtool.frontend.common.utils.useDeferredRequest +import com.saveourtool.frontend.common.utils.useRequest import externals.render import externals.rest import externals.setupWorker diff --git a/save-frontend-common/src/test/kotlin/utils/Utils.kt b/frontend-common/src/test/kotlin/utils/Utils.kt similarity index 100% rename from save-frontend-common/src/test/kotlin/utils/Utils.kt rename to frontend-common/src/test/kotlin/utils/Utils.kt diff --git a/save-cloud-common/src/commonMain/kotlin/com/saveourtool/save/utils/PlatformUtils.kt b/save-cloud-common/src/commonMain/kotlin/com/saveourtool/save/utils/PlatformUtils.kt index 4c0f6bd3f7..53b2cc1a3f 100644 --- a/save-cloud-common/src/commonMain/kotlin/com/saveourtool/save/utils/PlatformUtils.kt +++ b/save-cloud-common/src/commonMain/kotlin/com/saveourtool/save/utils/PlatformUtils.kt @@ -5,7 +5,6 @@ package com.saveourtool.save.utils import com.saveourtool.save.core.logging.logDebug -import com.saveourtool.save.core.utils.GenericAtomicReference import kotlin.time.Duration import kotlin.time.DurationUnit diff --git a/save-frontend/build.gradle.kts b/save-frontend/build.gradle.kts index 3504e95034..02fd94dc33 100644 --- a/save-frontend/build.gradle.kts +++ b/save-frontend/build.gradle.kts @@ -18,7 +18,7 @@ rootProject.plugins.withType { dependencies { implementation(projects.saveCloudCommon) - implementation(projects.saveFrontendCommon) + implementation(projects.frontendCommon) implementation(enforcedPlatform(libs.kotlin.wrappers.bom)) implementation("org.jetbrains.kotlin-wrappers:kotlin-react") diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/App.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/App.kt index 3cf4d02387..0883edb6c0 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/App.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/App.kt @@ -4,11 +4,11 @@ package com.saveourtool.save.frontend -import com.saveourtool.save.frontend.common.components.basic.cookieBanner -import com.saveourtool.save.frontend.common.components.basic.scrollToTopButton -import com.saveourtool.save.frontend.common.components.footer -import com.saveourtool.save.frontend.common.externals.modal.ReactModal -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.basic.cookieBanner +import com.saveourtool.frontend.common.components.basic.scrollToTopButton +import com.saveourtool.frontend.common.components.footer +import com.saveourtool.frontend.common.externals.modal.ReactModal +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.frontend.components.* import com.saveourtool.save.frontend.components.topbar.topBarComponent import com.saveourtool.save.frontend.externals.i18next.initI18n diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/ErrorBoundary.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/ErrorBoundary.kt index 2fa2835e81..5304eb9f25 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/ErrorBoundary.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/ErrorBoundary.kt @@ -4,8 +4,8 @@ package com.saveourtool.save.frontend.components -import com.saveourtool.save.frontend.common.components.footer -import com.saveourtool.save.frontend.common.components.views.FallbackView +import com.saveourtool.frontend.common.components.footer +import com.saveourtool.frontend.common.components.views.FallbackView import com.saveourtool.save.frontend.components.topbar.topBarComponent import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/HasErrorModal.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/HasErrorModal.kt index da402d7a5d..2d223094dd 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/HasErrorModal.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/HasErrorModal.kt @@ -2,12 +2,12 @@ package com.saveourtool.save.frontend.components -import com.saveourtool.save.frontend.common.components.footer -import com.saveourtool.save.frontend.common.components.modal.loaderModalStyle -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.components.views.FallbackView -import com.saveourtool.save.frontend.common.externals.animations.ringLoader -import com.saveourtool.save.frontend.common.utils.UserInfoAwarePropsWithChildren +import com.saveourtool.frontend.common.components.footer +import com.saveourtool.frontend.common.components.modal.loaderModalStyle +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.components.views.FallbackView +import com.saveourtool.frontend.common.externals.animations.ringLoader +import com.saveourtool.frontend.common.utils.UserInfoAwarePropsWithChildren import com.saveourtool.save.frontend.components.topbar.topBarComponent import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ContestEnroller.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ContestEnroller.kt index 51221e87aa..f75d2ddb5c 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ContestEnroller.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ContestEnroller.kt @@ -6,11 +6,11 @@ package com.saveourtool.save.frontend.components.basic -import com.saveourtool.save.frontend.common.components.modal.largeTransparentModalStyle -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.externals.fontawesome.faTimesCircle -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.modal.largeTransparentModalStyle +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.externals.fontawesome.faTimesCircle +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.utils.URL_PATH_DELIMITER import org.w3c.fetch.Headers diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ExecutionLabels.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ExecutionLabels.kt index 70b782dfb9..52063a935f 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ExecutionLabels.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ExecutionLabels.kt @@ -7,10 +7,10 @@ package com.saveourtool.save.frontend.components.basic +import com.saveourtool.frontend.common.externals.fontawesome.faRedo +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import com.saveourtool.save.execution.ExecutionDto import com.saveourtool.save.execution.ExecutionStatus -import com.saveourtool.save.frontend.common.externals.fontawesome.faRedo -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon import com.saveourtool.save.utils.calculateRate import com.saveourtool.save.utils.getPrecisionRate import com.saveourtool.save.utils.getRecallRate diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ProjectInfo.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ProjectInfo.kt index fc45390d9a..473c1fc156 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ProjectInfo.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/ProjectInfo.kt @@ -6,12 +6,12 @@ package com.saveourtool.save.frontend.components.basic +import com.saveourtool.frontend.common.externals.fontawesome.faCheck +import com.saveourtool.frontend.common.externals.fontawesome.faEdit +import com.saveourtool.frontend.common.externals.fontawesome.faTimesCircle +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.ProjectDto -import com.saveourtool.save.frontend.common.externals.fontawesome.faCheck -import com.saveourtool.save.frontend.common.externals.fontawesome.faEdit -import com.saveourtool.save.frontend.common.externals.fontawesome.faTimesCircle -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* import react.FC import react.Props diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/SdkSelection.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/SdkSelection.kt index 3a82177824..c5089fb550 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/SdkSelection.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/SdkSelection.kt @@ -6,9 +6,9 @@ package com.saveourtool.save.frontend.components.basic +import com.saveourtool.frontend.common.utils.selectorBuilder +import com.saveourtool.frontend.common.utils.useStateFromProps import com.saveourtool.save.domain.* -import com.saveourtool.save.frontend.common.utils.selectorBuilder -import com.saveourtool.save.frontend.common.utils.useStateFromProps import react.* import react.dom.html.ReactHTML.div diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TestResourcesSelection.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TestResourcesSelection.kt index a308ae9b7b..e64c361227 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TestResourcesSelection.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TestResourcesSelection.kt @@ -6,13 +6,13 @@ package com.saveourtool.save.frontend.components.basic +import com.saveourtool.frontend.common.components.basic.testsuiteselector.showPrivateTestSuitesSelectorModal +import com.saveourtool.frontend.common.components.basic.testsuiteselector.showPublicTestSuitesSelectorModal +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.contest.ContestDto import com.saveourtool.save.execution.TestingType -import com.saveourtool.save.frontend.common.components.basic.testsuiteselector.showPrivateTestSuitesSelectorModal -import com.saveourtool.save.frontend.common.components.basic.testsuiteselector.showPublicTestSuitesSelectorModal -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.testsuite.TestSuiteVersioned import react.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TestStatusComponent.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TestStatusComponent.kt index a8fa1b8b6e..79546e64f1 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TestStatusComponent.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TestStatusComponent.kt @@ -2,6 +2,9 @@ package com.saveourtool.save.frontend.components.basic +import com.saveourtool.frontend.common.components.tables.visibleColumnsCount +import com.saveourtool.frontend.common.externals.fontawesome.faExternalLinkAlt +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.agent.TestExecutionDto import com.saveourtool.save.agent.TestExecutionExtDto import com.saveourtool.save.core.result.Crash @@ -10,9 +13,6 @@ import com.saveourtool.save.core.result.Ignored import com.saveourtool.save.core.result.Pass import com.saveourtool.save.core.result.TestStatus import com.saveourtool.save.domain.TestResultDebugInfo -import com.saveourtool.save.frontend.common.components.tables.visibleColumnsCount -import com.saveourtool.save.frontend.common.externals.fontawesome.faExternalLinkAlt -import com.saveourtool.save.frontend.common.utils.buttonBuilder import react.FC import react.Props diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TimelineComponent.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TimelineComponent.kt index 730aa15bdd..b7eb18f3e8 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TimelineComponent.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/TimelineComponent.kt @@ -2,9 +2,9 @@ package com.saveourtool.save.frontend.components.basic +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.entities.cosv.VulnerabilityExt import com.saveourtool.save.entities.vulnerability.VulnerabilityDateDto -import com.saveourtool.save.frontend.common.utils.buttonBuilder import com.saveourtool.save.frontend.externals.i18next.useTranslation import react.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/codeeditor/EditorToolbar.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/codeeditor/EditorToolbar.kt index 9f15e7ee43..3d93da7b4a 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/codeeditor/EditorToolbar.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/codeeditor/EditorToolbar.kt @@ -2,10 +2,10 @@ package com.saveourtool.save.frontend.components.basic.codeeditor -import com.saveourtool.save.frontend.common.components.basic.cardComponent -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.selectorBuilder +import com.saveourtool.frontend.common.components.basic.cardComponent +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.selectorBuilder import com.saveourtool.save.frontend.externals.reactace.AceThemes import com.saveourtool.save.utils.Languages diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/GraphDemoComponent.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/GraphDemoComponent.kt index fc31688df2..661b7aecfd 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/GraphDemoComponent.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/GraphDemoComponent.kt @@ -6,13 +6,13 @@ package com.saveourtool.save.frontend.components.basic.demo +import com.saveourtool.frontend.common.externals.fontawesome.faCaretSquareRight +import com.saveourtool.frontend.common.externals.fontawesome.faInfoCircle +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.demo.cpg.CpgAdditionalParams import com.saveourtool.save.demo.cpg.CpgEngine import com.saveourtool.save.demo.cpg.CpgRunRequest import com.saveourtool.save.demo.cpg.cytoscape.CytoscapeLayout -import com.saveourtool.save.frontend.common.externals.fontawesome.faCaretSquareRight -import com.saveourtool.save.frontend.common.externals.fontawesome.faInfoCircle -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.frontend.components.basic.codeeditor.codeEditorComponent import com.saveourtool.save.frontend.externals.reactace.AceMarkers import com.saveourtool.save.frontend.externals.reactace.AceThemes diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoButtons.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoButtons.kt index 0a9fc35ed3..5a460b029c 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoButtons.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoButtons.kt @@ -4,10 +4,10 @@ package com.saveourtool.save.frontend.components.basic.demo.management +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.demo.DemoStatus import com.saveourtool.save.domain.ProjectCoordinates import com.saveourtool.save.domain.Role -import com.saveourtool.save.frontend.common.utils.buttonBuilder import react.ChildrenBuilder import react.dom.html.ReactHTML.div diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoContainerLogButton.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoContainerLogButton.kt index 87258d6950..b2927e6fc0 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoContainerLogButton.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoContainerLogButton.kt @@ -6,12 +6,12 @@ package com.saveourtool.save.frontend.components.basic.demo.management +import com.saveourtool.frontend.common.components.modal.* +import com.saveourtool.frontend.common.externals.fontawesome.faArrowLeft +import com.saveourtool.frontend.common.externals.fontawesome.faArrowRight +import com.saveourtool.frontend.common.externals.fontawesome.faHistory +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.domain.ProjectCoordinates -import com.saveourtool.save.frontend.common.components.modal.* -import com.saveourtool.save.frontend.common.externals.fontawesome.faArrowLeft -import com.saveourtool.save.frontend.common.externals.fontawesome.faArrowRight -import com.saveourtool.save.frontend.common.externals.fontawesome.faHistory -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.utils.* import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoFileUploader.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoFileUploader.kt index 563aa0b6b1..225886ecf9 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoFileUploader.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoFileUploader.kt @@ -4,10 +4,10 @@ package com.saveourtool.save.frontend.components.basic.demo.management +import com.saveourtool.frontend.common.utils.apiUrl import com.saveourtool.save.demo.DemoDto import com.saveourtool.save.domain.ProjectCoordinates import com.saveourtool.save.entities.FileDto -import com.saveourtool.save.frontend.common.utils.apiUrl import com.saveourtool.save.frontend.components.basic.fileuploader.FileDtosSetter import com.saveourtool.save.frontend.components.basic.fileuploader.simpleFileUploader diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoModeLabel.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoModeLabel.kt index 67b3ea6e6a..d27728132f 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoModeLabel.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoModeLabel.kt @@ -6,8 +6,8 @@ package com.saveourtool.save.frontend.components.basic.demo.management +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.demo.RunCommandPair -import com.saveourtool.save.frontend.common.utils.buttonBuilder import react.FC import react.Props diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoModeModal.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoModeModal.kt index ca31d607c4..991e654148 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoModeModal.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoModeModal.kt @@ -4,12 +4,12 @@ package com.saveourtool.save.frontend.components.basic.demo.management +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.components.modal.modalBuilder +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.demo.DemoDto import com.saveourtool.save.demo.RunCommandPair -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.components.modal.modalBuilder -import com.saveourtool.save.frontend.common.utils.buttonBuilder import com.saveourtool.save.utils.isNotNull import react.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoRunCommands.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoRunCommands.kt index a04caf60a7..c974653787 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoRunCommands.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/management/DemoRunCommands.kt @@ -6,12 +6,12 @@ package com.saveourtool.save.frontend.components.basic.demo.management +import com.saveourtool.frontend.common.externals.fontawesome.faEdit +import com.saveourtool.frontend.common.externals.fontawesome.faPlus +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.useTooltip import com.saveourtool.save.demo.DemoDto import com.saveourtool.save.demo.RunCommandPair -import com.saveourtool.save.frontend.common.externals.fontawesome.faEdit -import com.saveourtool.save.frontend.common.externals.fontawesome.faPlus -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.useTooltip import react.* import react.dom.html.AutoComplete diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/run/DemoOutputComponent.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/run/DemoOutputComponent.kt index 625cf3348f..80dd56ab52 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/run/DemoOutputComponent.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/run/DemoOutputComponent.kt @@ -6,9 +6,9 @@ package com.saveourtool.save.frontend.components.basic.demo.run +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.demo.DemoResult -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.* import js.core.jso import react.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/run/DemoRunComponent.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/run/DemoRunComponent.kt index dfecd0abd1..29c8c43707 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/run/DemoRunComponent.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/run/DemoRunComponent.kt @@ -6,17 +6,17 @@ package com.saveourtool.save.frontend.components.basic.demo.run +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.post +import com.saveourtool.frontend.common.utils.selectorBuilder +import com.saveourtool.frontend.common.utils.useDeferredRequest +import com.saveourtool.frontend.common.utils.useRequest import com.saveourtool.save.demo.DemoDto import com.saveourtool.save.demo.DemoResult import com.saveourtool.save.demo.DemoRunRequest import com.saveourtool.save.domain.ProjectCoordinates -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.post -import com.saveourtool.save.frontend.common.utils.selectorBuilder -import com.saveourtool.save.frontend.common.utils.useDeferredRequest -import com.saveourtool.save.frontend.common.utils.useRequest import com.saveourtool.save.frontend.components.basic.codeeditor.codeEditorComponent import com.saveourtool.save.frontend.externals.reactace.AceThemes import com.saveourtool.save.utils.Languages diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoIntroductionComponent.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoIntroductionComponent.kt index a4505cc075..4e6c438426 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoIntroductionComponent.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoIntroductionComponent.kt @@ -4,7 +4,7 @@ package com.saveourtool.save.frontend.components.basic.demo.welcome -import com.saveourtool.save.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.components.basic.markdown import js.core.jso import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoListComponent.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoListComponent.kt index bfb78019e0..d138190dca 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoListComponent.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoListComponent.kt @@ -4,11 +4,11 @@ package com.saveourtool.save.frontend.components.basic.demo.welcome +import com.saveourtool.frontend.common.components.basic.cardComponent +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.demo.DemoDto import com.saveourtool.save.filters.DemoFilter -import com.saveourtool.save.frontend.common.components.basic.cardComponent -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler import js.core.jso import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoStatistics.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoStatistics.kt index dc5f4cd847..87ed946738 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoStatistics.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/DemoStatistics.kt @@ -4,9 +4,9 @@ package com.saveourtool.save.frontend.components.basic.demo.welcome -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler -import com.saveourtool.save.frontend.common.utils.noopResponseHandler +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopLoadingHandler +import com.saveourtool.frontend.common.utils.noopResponseHandler import react.FC import react.Props diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/FeaturedDemos.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/FeaturedDemos.kt index 9c5fa0c2ae..5be2ed06e2 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/FeaturedDemos.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/demo/welcome/FeaturedDemos.kt @@ -4,11 +4,11 @@ package com.saveourtool.save.frontend.components.basic.demo.welcome +import com.saveourtool.frontend.common.components.basic.AVATAR_BASE_URL +import com.saveourtool.frontend.common.components.basic.carousel +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopResponseHandler import com.saveourtool.save.demo.DemoDto -import com.saveourtool.save.frontend.common.components.basic.AVATAR_BASE_URL -import com.saveourtool.save.frontend.common.components.basic.carousel -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopResponseHandler import react.FC import react.Props diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/FileManagerComponent.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/FileManagerComponent.kt index a39e623267..1b0ad32378 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/FileManagerComponent.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/FileManagerComponent.kt @@ -6,14 +6,14 @@ package com.saveourtool.save.frontend.components.basic.fileuploader +import com.saveourtool.frontend.common.components.basic.fileuploader.deleteFileButton +import com.saveourtool.frontend.common.components.basic.fileuploader.downloadFileButton +import com.saveourtool.frontend.common.components.inputform.dragAndDropForm +import com.saveourtool.frontend.common.http.postUploadFile +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.domain.ProjectCoordinates import com.saveourtool.save.entities.FileDto -import com.saveourtool.save.frontend.common.components.basic.fileuploader.deleteFileButton -import com.saveourtool.save.frontend.common.components.basic.fileuploader.downloadFileButton -import com.saveourtool.save.frontend.common.components.inputform.dragAndDropForm -import com.saveourtool.save.frontend.common.http.postUploadFile -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.utils.toMegabytes import js.core.asList diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/ProgressBarComponent.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/ProgressBarComponent.kt index c3e483c682..60d17fbb66 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/ProgressBarComponent.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/ProgressBarComponent.kt @@ -6,7 +6,7 @@ package com.saveourtool.save.frontend.components.basic.fileuploader -import com.saveourtool.save.frontend.common.components.basic.fileuploader.defaultProgressBarComponent +import com.saveourtool.frontend.common.components.basic.fileuploader.defaultProgressBarComponent import com.saveourtool.save.utils.toKilobytes import react.FC import react.Props diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/SimpleFileUploader.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/SimpleFileUploader.kt index 2ba6544253..a256424a8c 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/SimpleFileUploader.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/fileuploader/SimpleFileUploader.kt @@ -6,10 +6,10 @@ package com.saveourtool.save.frontend.components.basic.fileuploader +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.entities.FileDto -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler import react.* import react.dom.html.ReactHTML.div diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/graph/AdditionalInfoDisplayer.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/graph/AdditionalInfoDisplayer.kt index e0349a056b..6f14e13bd9 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/graph/AdditionalInfoDisplayer.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/graph/AdditionalInfoDisplayer.kt @@ -4,9 +4,10 @@ package com.saveourtool.save.frontend.components.basic.graph +import com.saveourtool.frontend.common.externals.fontawesome.faTimes +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import com.saveourtool.save.demo.cpg.CpgNodeAdditionalInfo -import com.saveourtool.save.frontend.common.externals.fontawesome.faTimes -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon + import js.core.jso import react.ChildrenBuilder import react.dom.html.ReactHTML.button diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/CreateProjectProblemView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/CreateProjectProblemView.kt index bd345a744c..53e60f9423 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/CreateProjectProblemView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/CreateProjectProblemView.kt @@ -2,13 +2,13 @@ package com.saveourtool.save.frontend.components.basic.projects +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormOptional +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.ProjectProblemCritical import com.saveourtool.save.entities.ProjectProblemDto import com.saveourtool.save.entities.vulnerability.VulnerabilityStatus -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormOptional -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.utils.isNotNull import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/EditProjectProblemWindow.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/EditProjectProblemWindow.kt index d72feee88f..d3eaf4eefb 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/EditProjectProblemWindow.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/EditProjectProblemWindow.kt @@ -2,13 +2,13 @@ package com.saveourtool.save.frontend.components.basic.projects +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormOptional +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.components.modal.modal +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.ProjectProblemCritical import com.saveourtool.save.entities.ProjectProblemDto -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormOptional -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.components.modal.modal -import com.saveourtool.save.frontend.common.utils.* import js.core.jso import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectDemoMenu.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectDemoMenu.kt index 237ad6c457..c03426334b 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectDemoMenu.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectDemoMenu.kt @@ -2,6 +2,8 @@ package com.saveourtool.save.frontend.components.basic.projects +import com.saveourtool.frontend.common.components.basic.cardComponent +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.demo.DemoCreationRequest import com.saveourtool.save.demo.DemoDto import com.saveourtool.save.demo.DemoStatus @@ -11,8 +13,6 @@ import com.saveourtool.save.domain.Role import com.saveourtool.save.domain.Sdk import com.saveourtool.save.domain.orEmpty import com.saveourtool.save.entities.FileDto -import com.saveourtool.save.frontend.common.components.basic.cardComponent -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.frontend.components.basic.* import com.saveourtool.save.frontend.components.basic.demo.* import com.saveourtool.save.frontend.components.basic.demo.management.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectInfoMenu.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectInfoMenu.kt index 8dd5b9a80a..39a5d02454 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectInfoMenu.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectInfoMenu.kt @@ -2,17 +2,17 @@ package com.saveourtool.save.frontend.components.basic.projects +import com.saveourtool.frontend.common.components.basic.* +import com.saveourtool.frontend.common.components.basic.userBoard +import com.saveourtool.frontend.common.externals.fontawesome.faCalendarAlt +import com.saveourtool.frontend.common.externals.fontawesome.faHistory +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.get +import com.saveourtool.frontend.common.utils.unsafeMap +import com.saveourtool.frontend.common.utils.useRequest import com.saveourtool.save.entities.ProjectDto import com.saveourtool.save.entities.contest.ContestResult -import com.saveourtool.save.frontend.common.components.basic.* -import com.saveourtool.save.frontend.common.components.basic.userBoard -import com.saveourtool.save.frontend.common.externals.fontawesome.faCalendarAlt -import com.saveourtool.save.frontend.common.externals.fontawesome.faHistory -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.get -import com.saveourtool.save.frontend.common.utils.unsafeMap -import com.saveourtool.save.frontend.common.utils.useRequest import com.saveourtool.save.frontend.components.basic.projectInfo import com.saveourtool.save.info.UserInfo import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectProblemView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectProblemView.kt index 75d681b0ab..00f829899f 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectProblemView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectProblemView.kt @@ -2,16 +2,16 @@ package com.saveourtool.save.frontend.components.basic.projects +import com.saveourtool.frontend.common.components.basic.cardComponent +import com.saveourtool.frontend.common.components.basic.commentWindow +import com.saveourtool.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.components.basic.newCommentWindow +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.entities.CommentDto import com.saveourtool.save.entities.ProjectProblemDto -import com.saveourtool.save.frontend.common.components.basic.cardComponent -import com.saveourtool.save.frontend.common.components.basic.commentWindow -import com.saveourtool.save.frontend.common.components.basic.markdown -import com.saveourtool.save.frontend.common.components.basic.newCommentWindow -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.validation.FrontendCosvRoutes import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectRunMenu.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectRunMenu.kt index 594508f798..609fbc92f2 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectRunMenu.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectRunMenu.kt @@ -2,18 +2,18 @@ package com.saveourtool.save.frontend.components.basic.projects +import com.saveourtool.frontend.common.components.basic.cardComponent +import com.saveourtool.frontend.common.externals.fontawesome.faCalendarAlt +import com.saveourtool.frontend.common.externals.fontawesome.faHistory +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.apiUrl import com.saveourtool.save.domain.ProjectCoordinates import com.saveourtool.save.domain.Sdk import com.saveourtool.save.entities.FileDto import com.saveourtool.save.entities.ProjectDto import com.saveourtool.save.entities.contest.ContestDto import com.saveourtool.save.execution.TestingType -import com.saveourtool.save.frontend.common.components.basic.cardComponent -import com.saveourtool.save.frontend.common.externals.fontawesome.faCalendarAlt -import com.saveourtool.save.frontend.common.externals.fontawesome.faHistory -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.apiUrl import com.saveourtool.save.frontend.components.basic.* import com.saveourtool.save.frontend.components.basic.fileuploader.simpleFileUploader import com.saveourtool.save.request.CreateExecutionRequest diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectSecurityMenu.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectSecurityMenu.kt index 8bf94a65d0..1da53bb6ef 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectSecurityMenu.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectSecurityMenu.kt @@ -5,15 +5,15 @@ package com.saveourtool.save.frontend.components.basic.projects +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.ProjectDto import com.saveourtool.save.entities.ProjectProblemDto import com.saveourtool.save.filters.ProjectProblemFilter -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.info.UserInfo import react.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectSettingsMenu.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectSettingsMenu.kt index aa830de127..47cb1cfc48 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectSettingsMenu.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectSettingsMenu.kt @@ -2,14 +2,14 @@ package com.saveourtool.save.frontend.components.basic.projects +import com.saveourtool.frontend.common.components.basic.manageUserRoleCardComponent +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormOptional +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.ProjectDto import com.saveourtool.save.entities.ProjectStatus -import com.saveourtool.save.frontend.common.components.basic.manageUserRoleCardComponent -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormOptional -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.info.UserInfo import org.w3c.fetch.Response diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectStatisticMenu.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectStatisticMenu.kt index 6dba35df1a..bebf122a30 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectStatisticMenu.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/projects/ProjectStatisticMenu.kt @@ -2,13 +2,13 @@ package com.saveourtool.save.frontend.components.basic.projects +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.agent.TestSuiteExecutionStatisticDto import com.saveourtool.save.domain.TestResultStatus -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.frontend.externals.chart.DataPieChart import com.saveourtool.save.frontend.externals.chart.pieChart import com.saveourtool.save.frontend.externals.chart.randomColor diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/table/filters/TestExecutionFilter.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/table/filters/TestExecutionFilter.kt index c7c2bb9254..155516cc28 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/table/filters/TestExecutionFilter.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/basic/table/filters/TestExecutionFilter.kt @@ -2,12 +2,13 @@ package com.saveourtool.save.frontend.components.basic.table.filters +import com.saveourtool.frontend.common.externals.fontawesome.faFilter +import com.saveourtool.frontend.common.externals.fontawesome.faSearch +import com.saveourtool.frontend.common.externals.fontawesome.faTrashAlt +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import com.saveourtool.save.domain.TestResultStatus import com.saveourtool.save.filters.TestExecutionFilter -import com.saveourtool.save.frontend.common.externals.fontawesome.faFilter -import com.saveourtool.save.frontend.common.externals.fontawesome.faSearch -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrashAlt -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon + import react.FC import react.Props import react.dom.html.ReactHTML.button diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBar.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBar.kt index 8d08262f1c..29c93ca7eb 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBar.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBar.kt @@ -6,10 +6,10 @@ package com.saveourtool.save.frontend.components.topbar -import com.saveourtool.save.frontend.common.components.basic.languageSelector -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.UserInfoAwarePropsWithChildren -import com.saveourtool.save.frontend.common.utils.notIn +import com.saveourtool.frontend.common.components.basic.languageSelector +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.UserInfoAwarePropsWithChildren +import com.saveourtool.frontend.common.utils.notIn import com.saveourtool.save.validation.FrontendRoutes import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBarUrlSplits.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBarUrlSplits.kt index 28219c6e2f..8f7be6fe8a 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBarUrlSplits.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBarUrlSplits.kt @@ -2,7 +2,7 @@ package com.saveourtool.save.frontend.components.topbar -import com.saveourtool.save.frontend.common.utils.TopBarUrl +import com.saveourtool.frontend.common.utils.TopBarUrl import com.saveourtool.save.utils.URL_PATH_DELIMITER import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBarUserField.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBarUserField.kt index f578635444..a6882465d6 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBarUserField.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/topbar/TopBarUserField.kt @@ -4,10 +4,10 @@ package com.saveourtool.save.frontend.components.topbar -import com.saveourtool.save.frontend.common.components.basic.avatarRenderer -import com.saveourtool.save.frontend.common.components.modal.logoutModal -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.basic.avatarRenderer +import com.saveourtool.frontend.common.components.modal.logoutModal +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.frontend.externals.i18next.useTranslation import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/AwesomeBenchmarksView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/AwesomeBenchmarksView.kt index 3a44ddff90..fc655311ac 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/AwesomeBenchmarksView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/AwesomeBenchmarksView.kt @@ -6,12 +6,12 @@ package com.saveourtool.save.frontend.components.views +import com.saveourtool.frontend.common.components.RequestStatusContext +import com.saveourtool.frontend.common.components.requestStatusContext +import com.saveourtool.frontend.common.components.views.AbstractView +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.benchmarks.BenchmarkCategoryEnum -import com.saveourtool.save.frontend.common.components.RequestStatusContext -import com.saveourtool.save.frontend.common.components.requestStatusContext -import com.saveourtool.save.frontend.common.components.views.AbstractView -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.utils.AwesomeBenchmarks import com.saveourtool.save.utils.DATABASE_DELIMITER import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/BanView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/BanView.kt index 5ee36d683b..76b2544c08 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/BanView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/BanView.kt @@ -6,10 +6,10 @@ package com.saveourtool.save.frontend.components.views -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.UserInfoAwareProps -import com.saveourtool.save.frontend.common.utils.useBackground -import com.saveourtool.save.frontend.common.utils.useRedirectToIndexIf +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.UserInfoAwareProps +import com.saveourtool.frontend.common.utils.useBackground +import com.saveourtool.frontend.common.utils.useRedirectToIndexIf import com.saveourtool.save.info.UserStatus import js.core.jso import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestExecutionView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestExecutionView.kt index 4d730ac5ac..7b99a4c56e 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestExecutionView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestExecutionView.kt @@ -4,19 +4,19 @@ package com.saveourtool.save.frontend.components.views +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.enableExpanding +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.components.tables.visibleColumnsCount +import com.saveourtool.frontend.common.components.views.AbstractView +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.Style import com.saveourtool.save.execution.ExecutionDto import com.saveourtool.save.execution.ExecutionStatus -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.enableExpanding -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.components.tables.visibleColumnsCount -import com.saveourtool.save.frontend.common.components.views.AbstractView -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.Style import com.saveourtool.save.frontend.components.RequestStatusContext import com.saveourtool.save.frontend.components.basic.* import com.saveourtool.save.frontend.components.requestStatusContext diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestView.kt index 188bfa7903..5aaf4c05a9 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ContestView.kt @@ -2,18 +2,18 @@ package com.saveourtool.save.frontend.components.views +import com.saveourtool.frontend.common.components.RequestStatusContext +import com.saveourtool.frontend.common.components.basic.contests.contestInfoMenu +import com.saveourtool.frontend.common.components.basic.contests.contestSubmissionsMenu +import com.saveourtool.frontend.common.components.basic.contests.contestSummaryMenu +import com.saveourtool.frontend.common.components.requestStatusContext +import com.saveourtool.frontend.common.components.views.AbstractView +import com.saveourtool.frontend.common.http.getContest +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.apiUrl +import com.saveourtool.frontend.common.utils.classLoadingHandler +import com.saveourtool.frontend.common.utils.jsonHeaders import com.saveourtool.save.entities.contest.ContestDto -import com.saveourtool.save.frontend.common.components.RequestStatusContext -import com.saveourtool.save.frontend.common.components.basic.contests.contestInfoMenu -import com.saveourtool.save.frontend.common.components.basic.contests.contestSubmissionsMenu -import com.saveourtool.save.frontend.common.components.basic.contests.contestSummaryMenu -import com.saveourtool.save.frontend.common.components.requestStatusContext -import com.saveourtool.save.frontend.common.components.views.AbstractView -import com.saveourtool.save.frontend.common.http.getContest -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.apiUrl -import com.saveourtool.save.frontend.common.utils.classLoadingHandler -import com.saveourtool.save.frontend.common.utils.jsonHeaders import com.saveourtool.save.info.UserInfo import react.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/CreateProjectView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/CreateProjectView.kt index ef03deabce..cd78e1eb82 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/CreateProjectView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/CreateProjectView.kt @@ -6,22 +6,22 @@ package com.saveourtool.save.frontend.components.views +import com.saveourtool.frontend.common.components.basic.SelectFormRequiredProps +import com.saveourtool.frontend.common.components.basic.selectFormRequired +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormOptional +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.externals.fontawesome.faQuestionCircle +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.particles +import com.saveourtool.frontend.common.utils.useBackground +import com.saveourtool.frontend.common.utils.useDeferredRequest import com.saveourtool.save.entities.* -import com.saveourtool.save.frontend.common.components.basic.SelectFormRequiredProps -import com.saveourtool.save.frontend.common.components.basic.selectFormRequired -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormOptional -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.externals.fontawesome.faQuestionCircle -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.particles -import com.saveourtool.save.frontend.common.utils.useBackground -import com.saveourtool.save.frontend.common.utils.useDeferredRequest import com.saveourtool.save.validation.FrontendRoutes import com.saveourtool.save.validation.isValidLengthName import com.saveourtool.save.validation.isValidName diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ExecutionView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ExecutionView.kt index e5ac2ec0cd..c17ab23d35 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ExecutionView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ExecutionView.kt @@ -4,6 +4,23 @@ package com.saveourtool.save.frontend.components.views +import com.saveourtool.frontend.common.components.RequestStatusContext +import com.saveourtool.frontend.common.components.basic.* +import com.saveourtool.frontend.common.components.requestStatusContext +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.enableExpanding +import com.saveourtool.frontend.common.components.tables.isExpanded +import com.saveourtool.frontend.common.components.tables.pageIndex +import com.saveourtool.frontend.common.components.tables.pageSize +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.components.tables.visibleColumnsCount +import com.saveourtool.frontend.common.components.views.AbstractView +import com.saveourtool.frontend.common.http.getDebugInfoFor +import com.saveourtool.frontend.common.http.getExecutionInfoFor +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.agent.TestExecutionDto import com.saveourtool.save.agent.TestExecutionExtDto import com.saveourtool.save.core.logging.describe @@ -13,23 +30,6 @@ import com.saveourtool.save.domain.TestResultStatus import com.saveourtool.save.execution.ExecutionDto import com.saveourtool.save.execution.ExecutionUpdateDto import com.saveourtool.save.filters.TestExecutionFilter -import com.saveourtool.save.frontend.common.components.RequestStatusContext -import com.saveourtool.save.frontend.common.components.basic.* -import com.saveourtool.save.frontend.common.components.requestStatusContext -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.enableExpanding -import com.saveourtool.save.frontend.common.components.tables.isExpanded -import com.saveourtool.save.frontend.common.components.tables.pageIndex -import com.saveourtool.save.frontend.common.components.tables.pageSize -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.components.tables.visibleColumnsCount -import com.saveourtool.save.frontend.common.components.views.AbstractView -import com.saveourtool.save.frontend.common.http.getDebugInfoFor -import com.saveourtool.save.frontend.common.http.getExecutionInfoFor -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.frontend.components.basic.displayExecutionInfoHeader import com.saveourtool.save.frontend.components.basic.displayTestNotFound import com.saveourtool.save.frontend.components.basic.executionStatusComponent diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/HistoryView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/HistoryView.kt index e864474e2c..c0234b112b 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/HistoryView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/HistoryView.kt @@ -4,25 +4,25 @@ package com.saveourtool.save.frontend.components.views +import com.saveourtool.frontend.common.components.RequestStatusContext +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.components.requestStatusContext +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.components.views.AbstractView +import com.saveourtool.frontend.common.externals.fontawesome.faCheck +import com.saveourtool.frontend.common.externals.fontawesome.faExclamationTriangle +import com.saveourtool.frontend.common.externals.fontawesome.faSpinner +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.domain.TestResultStatus import com.saveourtool.save.execution.ExecutionDto import com.saveourtool.save.execution.ExecutionStatus import com.saveourtool.save.filters.ExecutionFilter -import com.saveourtool.save.frontend.common.components.RequestStatusContext -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.components.requestStatusContext -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.components.views.AbstractView -import com.saveourtool.save.frontend.common.externals.fontawesome.faCheck -import com.saveourtool.save.frontend.common.externals.fontawesome.faExclamationTriangle -import com.saveourtool.save.frontend.common.externals.fontawesome.faSpinner -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.frontend.externals.calendar.calendar import com.saveourtool.save.utils.DATABASE_DELIMITER diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/OrganizationAdminView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/OrganizationAdminView.kt index f6a86b69b9..05f77923e4 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/OrganizationAdminView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/OrganizationAdminView.kt @@ -2,20 +2,20 @@ package com.saveourtool.save.frontend.components.views +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.components.views.AbstractView +import com.saveourtool.frontend.common.components.views.usersettings.right.actionButtonClasses +import com.saveourtool.frontend.common.components.views.usersettings.right.actionIconClasses +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.http.responseChangeOrganizationStatus +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.classLoadingHandler import com.saveourtool.save.entities.OrganizationDto import com.saveourtool.save.entities.OrganizationStatus import com.saveourtool.save.filters.OrganizationFilter -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.components.views.AbstractView -import com.saveourtool.save.frontend.common.components.views.usersettings.right.actionButtonClasses -import com.saveourtool.save.frontend.common.components.views.usersettings.right.actionIconClasses -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.http.responseChangeOrganizationStatus -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.classLoadingHandler import react.ChildrenBuilder import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ProjectView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ProjectView.kt index 2d22b55360..a30598c276 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ProjectView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ProjectView.kt @@ -6,17 +6,17 @@ package com.saveourtool.save.frontend.components.views +import com.saveourtool.frontend.common.components.RequestStatusContext +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.components.requestStatusContext +import com.saveourtool.frontend.common.components.views.AbstractView +import com.saveourtool.frontend.common.http.getProject +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopResponseHandler import com.saveourtool.save.domain.* import com.saveourtool.save.entities.* import com.saveourtool.save.execution.ExecutionDto -import com.saveourtool.save.frontend.common.components.RequestStatusContext -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.components.requestStatusContext -import com.saveourtool.save.frontend.common.components.views.AbstractView -import com.saveourtool.save.frontend.common.http.getProject -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopResponseHandler import com.saveourtool.save.frontend.components.basic.projects.* import com.saveourtool.save.frontend.utils.ProjectMenuBar import com.saveourtool.save.info.UserInfo diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/TestExecutionDetailsView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/TestExecutionDetailsView.kt index fffe409c40..22ee86eda6 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/TestExecutionDetailsView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/TestExecutionDetailsView.kt @@ -2,16 +2,16 @@ package com.saveourtool.save.frontend.components.views +import com.saveourtool.frontend.common.http.getDebugInfoFor +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.decodeFromJsonString +import com.saveourtool.frontend.common.utils.multilineText +import com.saveourtool.frontend.common.utils.multilineTextWithIndices import com.saveourtool.save.core.result.Crash import com.saveourtool.save.core.result.Fail import com.saveourtool.save.core.result.Ignored import com.saveourtool.save.core.result.Pass import com.saveourtool.save.domain.TestResultDebugInfo -import com.saveourtool.save.frontend.common.http.getDebugInfoFor -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.decodeFromJsonString -import com.saveourtool.save.frontend.common.utils.multilineText -import com.saveourtool.save.frontend.common.utils.multilineTextWithIndices import react.* import react.dom.html.ReactHTML.br diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ThanksForRegistrationView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ThanksForRegistrationView.kt index 76362f9e8a..5d19c40d38 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ThanksForRegistrationView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/ThanksForRegistrationView.kt @@ -6,7 +6,7 @@ package com.saveourtool.save.frontend.components.views -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.frontend.externals.i18next.useTranslation import com.saveourtool.save.frontend.utils.* import com.saveourtool.save.info.UserStatus diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/agreements/CookiesTermsOfUse.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/agreements/CookiesTermsOfUse.kt index 83c2b87166..7c141fac93 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/agreements/CookiesTermsOfUse.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/agreements/CookiesTermsOfUse.kt @@ -2,13 +2,13 @@ package com.saveourtool.save.frontend.components.views.agreements -import com.saveourtool.save.frontend.common.components.basic.markdown -import com.saveourtool.save.frontend.common.externals.cookie.acceptCookies -import com.saveourtool.save.frontend.common.externals.cookie.cookie -import com.saveourtool.save.frontend.common.externals.cookie.declineCookies -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.buttonBuilder -import com.saveourtool.save.frontend.common.utils.useBackground +import com.saveourtool.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.externals.cookie.acceptCookies +import com.saveourtool.frontend.common.externals.cookie.cookie +import com.saveourtool.frontend.common.externals.cookie.declineCookies +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.utils.useBackground import com.saveourtool.save.frontend.externals.i18next.useTranslation import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/agreements/TermsOfUsage.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/agreements/TermsOfUsage.kt index 0470a0684a..2564c97c54 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/agreements/TermsOfUsage.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/agreements/TermsOfUsage.kt @@ -4,9 +4,9 @@ package com.saveourtool.save.frontend.components.views.agreements -import com.saveourtool.save.frontend.common.components.basic.markdown -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.useBackground +import com.saveourtool.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.useBackground import react.FC import react.Props import react.dom.html.ReactHTML.div diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestGlobalRatingView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestGlobalRatingView.kt index e66c1e7217..5cb8f6a4af 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestGlobalRatingView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestGlobalRatingView.kt @@ -4,23 +4,23 @@ package com.saveourtool.save.frontend.components.views.contests +import com.saveourtool.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER +import com.saveourtool.frontend.common.components.basic.avatarRenderer +import com.saveourtool.frontend.common.components.basic.table.filters.nameFiltersRow +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.pageIndex +import com.saveourtool.frontend.common.components.tables.pageSize +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.components.tables.visibleColumnsCount +import com.saveourtool.frontend.common.components.views.AbstractView +import com.saveourtool.frontend.common.externals.fontawesome.faTrophy +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.OrganizationWithRating import com.saveourtool.save.entities.ProjectDto import com.saveourtool.save.filters.OrganizationFilter import com.saveourtool.save.filters.ProjectFilter -import com.saveourtool.save.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER -import com.saveourtool.save.frontend.common.components.basic.avatarRenderer -import com.saveourtool.save.frontend.common.components.basic.table.filters.nameFiltersRow -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.pageIndex -import com.saveourtool.save.frontend.common.components.tables.pageSize -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.components.tables.visibleColumnsCount -import com.saveourtool.save.frontend.common.components.views.AbstractView -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrophy -import com.saveourtool.save.frontend.common.utils.* import js.core.jso import react.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestListCard.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestListCard.kt index dd36088f7d..bde624b318 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestListCard.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestListCard.kt @@ -6,13 +6,13 @@ package com.saveourtool.save.frontend.components.views.contests +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.externals.fontawesome.faArrowRight +import com.saveourtool.frontend.common.externals.fontawesome.faCode +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.contest.ContestDto -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.externals.fontawesome.faArrowRight -import com.saveourtool.save.frontend.common.externals.fontawesome.faCode -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.frontend.components.basic.ContestNameProps import com.saveourtool.save.frontend.components.basic.showContestEnrollerModal import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestListView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestListView.kt index 6c71ef7e93..8f7bb81088 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestListView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestListView.kt @@ -6,8 +6,8 @@ package com.saveourtool.save.frontend.components.views.contests -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.useBackground +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.useBackground import com.saveourtool.save.info.UserInfo import react.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestSampleListCard.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestSampleListCard.kt index f4aae710b0..383e9376b5 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestSampleListCard.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestSampleListCard.kt @@ -4,10 +4,10 @@ package com.saveourtool.save.frontend.components.views.contests +import com.saveourtool.frontend.common.components.tables.* +import com.saveourtool.frontend.common.externals.fontawesome.faCode +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.contest.ContestSampleDto -import com.saveourtool.save.frontend.common.components.tables.* -import com.saveourtool.save.frontend.common.externals.fontawesome.faCode -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.validation.FrontendRoutes import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestTemplateView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestTemplateView.kt index 2538d3e61f..07b6b618ae 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestTemplateView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestTemplateView.kt @@ -2,12 +2,13 @@ package com.saveourtool.save.frontend.components.views.contests +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.entities.contest.ContestSampleDto import com.saveourtool.save.entities.contest.ContestSampleFieldDto import com.saveourtool.save.entities.contest.ContestSampleFieldType -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.info.UserInfo + import js.core.jso import react.FC import react.Props diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestsStatistics.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestsStatistics.kt index f2229953ec..4bbc8c1ddc 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestsStatistics.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/ContestsStatistics.kt @@ -4,8 +4,8 @@ package com.saveourtool.save.frontend.components.views.contests +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.contest.ContestDto -import com.saveourtool.save.frontend.common.utils.* import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/CreateContestTemplateView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/CreateContestTemplateView.kt index 4a2d92e36a..3c34588246 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/CreateContestTemplateView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/CreateContestTemplateView.kt @@ -2,12 +2,12 @@ package com.saveourtool.save.frontend.components.views.contests +import com.saveourtool.frontend.common.components.inputform.InputTypes +import com.saveourtool.frontend.common.components.inputform.inputTextFormRequired +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.contest.ContestSampleDto import com.saveourtool.save.entities.contest.ContestSampleFieldDto import com.saveourtool.save.entities.contest.ContestSampleFieldType -import com.saveourtool.save.frontend.common.components.inputform.InputTypes -import com.saveourtool.save.frontend.common.components.inputform.inputTextFormRequired -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.validation.FrontendRoutes import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/FeaturedContests.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/FeaturedContests.kt index a564e4c6b5..c5d0cad1c4 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/FeaturedContests.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/FeaturedContests.kt @@ -4,13 +4,13 @@ package com.saveourtool.save.frontend.components.views.contests +import com.saveourtool.frontend.common.components.basic.carousel +import com.saveourtool.frontend.common.components.modal.displayModal +import com.saveourtool.frontend.common.components.modal.mediumTransparentModalStyle +import com.saveourtool.frontend.common.externals.fontawesome.faArrowRight +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.contest.ContestDto -import com.saveourtool.save.frontend.common.components.basic.carousel -import com.saveourtool.save.frontend.common.components.modal.displayModal -import com.saveourtool.save.frontend.common.components.modal.mediumTransparentModalStyle -import com.saveourtool.save.frontend.common.externals.fontawesome.faArrowRight -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.frontend.components.basic.ContestNameProps import com.saveourtool.save.frontend.components.basic.showContestEnrollerModal diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/GlobalRating.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/GlobalRating.kt index 9f1179b4d5..dfbf459cf9 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/GlobalRating.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/GlobalRating.kt @@ -6,13 +6,13 @@ package com.saveourtool.save.frontend.components.views.contests +import com.saveourtool.frontend.common.externals.fontawesome.faTrophy +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.OrganizationWithRating import com.saveourtool.save.entities.ProjectDto import com.saveourtool.save.filters.OrganizationFilter import com.saveourtool.save.filters.ProjectFilter import com.saveourtool.save.frontend.TabMenuBar -import com.saveourtool.save.frontend.common.externals.fontawesome.faTrophy -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.validation.FrontendRoutes import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/MyProjectsRating.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/MyProjectsRating.kt index 0258f575a4..d9c2206490 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/MyProjectsRating.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/MyProjectsRating.kt @@ -4,9 +4,9 @@ package com.saveourtool.save.frontend.components.views.contests +import com.saveourtool.frontend.common.externals.fontawesome.faUser +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.ProjectDto -import com.saveourtool.save.frontend.common.externals.fontawesome.faUser -import com.saveourtool.save.frontend.common.utils.* import js.core.jso import react.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/NewContests.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/NewContests.kt index 40d376f509..9dcc5d8d16 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/NewContests.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/NewContests.kt @@ -4,8 +4,8 @@ package com.saveourtool.save.frontend.components.views.contests +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.contest.ContestDto -import com.saveourtool.save.frontend.common.utils.* import js.core.jso import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/Utils.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/Utils.kt index 3d8559aa88..f6f6684365 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/Utils.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/contests/Utils.kt @@ -4,8 +4,8 @@ package com.saveourtool.save.frontend.components.views.contests -import com.saveourtool.save.frontend.common.externals.fontawesome.FontAwesomeIconModule -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.FontAwesomeIconModule +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/CpgView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/CpgView.kt index 70a7539c1a..1da2d33908 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/CpgView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/CpgView.kt @@ -6,12 +6,12 @@ package com.saveourtool.save.frontend.components.views.demo +import com.saveourtool.frontend.common.components.basic.cardComponent +import com.saveourtool.frontend.common.components.modal.displaySimpleModal +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.loadingHandler import com.saveourtool.save.demo.cpg.CpgResult import com.saveourtool.save.demo.cpg.cytoscape.CytoscapeLayout -import com.saveourtool.save.frontend.common.components.basic.cardComponent -import com.saveourtool.save.frontend.common.components.modal.displaySimpleModal -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.loadingHandler import com.saveourtool.save.frontend.components.basic.demo.graphDemoComponent import com.saveourtool.save.frontend.components.basic.graph.cytoscapeVisualizer import com.saveourtool.save.frontend.externals.reactace.AceMarkers diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/DemoCollectionView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/DemoCollectionView.kt index fb28a9bac7..428f35c1bf 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/DemoCollectionView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/DemoCollectionView.kt @@ -4,8 +4,8 @@ package com.saveourtool.save.frontend.components.views.demo -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.useBackground +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.useBackground import com.saveourtool.save.frontend.components.basic.demo.welcome.demoList import com.saveourtool.save.frontend.components.basic.demo.welcome.featuredDemos import com.saveourtool.save.frontend.components.basic.demo.welcome.introductionSection diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/DemoView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/DemoView.kt index 769ce1e2e7..030575df0a 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/DemoView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/demo/DemoView.kt @@ -6,11 +6,11 @@ package com.saveourtool.save.frontend.components.views.demo +import com.saveourtool.frontend.common.components.basic.cardComponent +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.selectorBuilder +import com.saveourtool.frontend.common.utils.useBackground import com.saveourtool.save.domain.ProjectCoordinates -import com.saveourtool.save.frontend.common.components.basic.cardComponent -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.selectorBuilder -import com.saveourtool.save.frontend.common.utils.useBackground import com.saveourtool.save.frontend.components.basic.demo.run.demoRunComponent import com.saveourtool.save.frontend.externals.reactace.AceThemes import com.saveourtool.save.frontend.utils.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardAboutUs.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardAboutUs.kt index 62067c299f..5f4f177f1e 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardAboutUs.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardAboutUs.kt @@ -4,9 +4,9 @@ package com.saveourtool.save.frontend.components.views.index -import com.saveourtool.save.frontend.common.externals.fontawesome.faGithub -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon -import com.saveourtool.save.frontend.common.utils.buttonBuilder +import com.saveourtool.frontend.common.externals.fontawesome.faGithub +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.utils.buttonBuilder import com.saveourtool.save.frontend.externals.i18next.useTranslation import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardServiceInfo.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardServiceInfo.kt index 35056c617c..ffd2d38856 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardServiceInfo.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardServiceInfo.kt @@ -4,7 +4,7 @@ package com.saveourtool.save.frontend.components.views.index -import com.saveourtool.save.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.components.basic.markdown import com.saveourtool.save.frontend.externals.i18next.useTranslation import js.core.jso import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardUser.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardUser.kt index c27af223ab..57f3256527 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardUser.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/CardUser.kt @@ -4,10 +4,10 @@ package com.saveourtool.save.frontend.components.views.index +import com.saveourtool.frontend.common.components.basic.renderAvatar +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.entities.OrganizationDto import com.saveourtool.save.entities.OrganizationStatus -import com.saveourtool.save.frontend.common.components.basic.renderAvatar -import com.saveourtool.save.frontend.common.utils.* import com.saveourtool.save.frontend.externals.i18next.useTranslation import com.saveourtool.save.validation.FrontendCosvRoutes import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexView.kt index 46c6ce12e3..2719514123 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexView.kt @@ -6,10 +6,10 @@ package com.saveourtool.save.frontend.components.views.index -import com.saveourtool.save.frontend.common.utils.Style -import com.saveourtool.save.frontend.common.utils.UserInfoAwareProps -import com.saveourtool.save.frontend.common.utils.particles -import com.saveourtool.save.frontend.common.utils.useBackground +import com.saveourtool.frontend.common.utils.Style +import com.saveourtool.frontend.common.utils.UserInfoAwareProps +import com.saveourtool.frontend.common.utils.particles +import com.saveourtool.frontend.common.utils.useBackground import com.saveourtool.save.frontend.utils.* import js.core.jso import react.FC diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexViewAuth.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexViewAuth.kt index a2100b0cff..af18e785d2 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexViewAuth.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexViewAuth.kt @@ -4,8 +4,8 @@ package com.saveourtool.save.frontend.components.views.index -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopResponseHandler +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopResponseHandler import com.saveourtool.save.frontend.externals.i18next.useTranslation import com.saveourtool.save.info.OauthProviderInfo diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexViewUserInfo.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexViewUserInfo.kt index 271c0fdf77..b34b2f3aef 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexViewUserInfo.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/index/IndexViewUserInfo.kt @@ -4,11 +4,11 @@ package com.saveourtool.save.frontend.components.views.index +import com.saveourtool.frontend.common.components.basic.markdown +import com.saveourtool.frontend.common.externals.fontawesome.faTimes +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.entities.NotificationDto -import com.saveourtool.save.frontend.common.components.basic.markdown -import com.saveourtool.save.frontend.common.externals.fontawesome.faTimes -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.noopLoadingHandler import com.saveourtool.save.frontend.externals.i18next.useTranslation import com.saveourtool.save.utils.toUnixCalendarFormat diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/projectcollection/CollectionView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/projectcollection/CollectionView.kt index 99d8063db4..1fb66e6714 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/projectcollection/CollectionView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/projectcollection/CollectionView.kt @@ -2,17 +2,17 @@ package com.saveourtool.save.frontend.components.views.projectcollection +import com.saveourtool.frontend.common.components.RequestStatusContext +import com.saveourtool.frontend.common.components.requestStatusContext +import com.saveourtool.frontend.common.components.tables.TableProps +import com.saveourtool.frontend.common.components.tables.columns +import com.saveourtool.frontend.common.components.tables.tableComponent +import com.saveourtool.frontend.common.components.tables.value +import com.saveourtool.frontend.common.components.views.AbstractView +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.classLoadingHandler import com.saveourtool.save.entities.ProjectDto import com.saveourtool.save.filters.ProjectFilter -import com.saveourtool.save.frontend.common.components.RequestStatusContext -import com.saveourtool.save.frontend.common.components.requestStatusContext -import com.saveourtool.save.frontend.common.components.tables.TableProps -import com.saveourtool.save.frontend.common.components.tables.columns -import com.saveourtool.save.frontend.common.components.tables.tableComponent -import com.saveourtool.save.frontend.common.components.tables.value -import com.saveourtool.save.frontend.common.components.views.AbstractView -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.classLoadingHandler import com.saveourtool.save.info.UserInfo import react.* diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/test/analysis/AnalysisResultView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/test/analysis/AnalysisResultView.kt index c3fc36aed9..18757fb7b0 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/test/analysis/AnalysisResultView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/test/analysis/AnalysisResultView.kt @@ -2,11 +2,11 @@ package com.saveourtool.save.frontend.components.views.test.analysis -import com.saveourtool.save.frontend.common.externals.fontawesome.faBug -import com.saveourtool.save.frontend.common.externals.fontawesome.faCheckCircle -import com.saveourtool.save.frontend.common.externals.fontawesome.faDice -import com.saveourtool.save.frontend.common.externals.fontawesome.faPoo -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.faBug +import com.saveourtool.frontend.common.externals.fontawesome.faCheckCircle +import com.saveourtool.frontend.common.externals.fontawesome.faDice +import com.saveourtool.frontend.common.externals.fontawesome.faPoo +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import com.saveourtool.save.test.analysis.results.AnalysisResult import com.saveourtool.save.test.analysis.results.FlakyTest import com.saveourtool.save.test.analysis.results.IrregularTest diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/MarketingTitles.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/MarketingTitles.kt index 5da6553ac9..6e89da7c96 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/MarketingTitles.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/MarketingTitles.kt @@ -4,8 +4,8 @@ package com.saveourtool.save.frontend.components.views.welcome -import com.saveourtool.save.frontend.common.externals.fontawesome.faChevronDown -import com.saveourtool.save.frontend.common.externals.fontawesome.fontAwesomeIcon +import com.saveourtool.frontend.common.externals.fontawesome.faChevronDown +import com.saveourtool.frontend.common.externals.fontawesome.fontAwesomeIcon import js.core.jso import react.ChildrenBuilder diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/SaveWelcomeView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/SaveWelcomeView.kt index 41cbec3f75..cc9b733dd3 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/SaveWelcomeView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/SaveWelcomeView.kt @@ -11,14 +11,14 @@ package com.saveourtool.save.frontend.components.views.welcome -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.allSaveWelcomePagers -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.save.renderGeneralInfoPage -import com.saveourtool.save.frontend.common.components.views.welcome.pagers.save.renderReadMorePage -import com.saveourtool.save.frontend.common.externals.animations.* -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.externals.i18next.useTranslation -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.* +import com.saveourtool.frontend.common.components.views.welcome.pagers.allSaveWelcomePagers +import com.saveourtool.frontend.common.components.views.welcome.pagers.save.renderGeneralInfoPage +import com.saveourtool.frontend.common.components.views.welcome.pagers.save.renderReadMorePage +import com.saveourtool.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.externals.i18next.useTranslation +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.* import com.saveourtool.save.info.OauthProviderInfo import com.saveourtool.save.validation.FrontendRoutes diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/WelcomeUtils.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/WelcomeUtils.kt index 7b1dc03718..2335540997 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/WelcomeUtils.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/WelcomeUtils.kt @@ -4,10 +4,10 @@ package com.saveourtool.save.frontend.components.views.welcome -import com.saveourtool.save.frontend.common.externals.fontawesome.* -import com.saveourtool.save.frontend.common.themes.Colors -import com.saveourtool.save.frontend.common.utils.OauthProvidersFeConfig -import com.saveourtool.save.frontend.common.utils.processRegistrationId +import com.saveourtool.frontend.common.externals.fontawesome.* +import com.saveourtool.frontend.common.themes.Colors +import com.saveourtool.frontend.common.utils.OauthProvidersFeConfig +import com.saveourtool.frontend.common.utils.processRegistrationId import com.saveourtool.save.frontend.externals.i18next.TranslationFunction import com.saveourtool.save.info.OauthProviderInfo import com.saveourtool.save.info.UserInfo diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/WelcomePager.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/WelcomePager.kt index 1aeab0433c..559e38cc26 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/WelcomePager.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/WelcomePager.kt @@ -1,6 +1,6 @@ package com.saveourtool.save.frontend.components.views.welcome.pagers -import com.saveourtool.save.frontend.common.externals.animations.Animation +import com.saveourtool.frontend.common.externals.animations.Animation import com.saveourtool.save.frontend.components.views.welcome.pagers.save.* import react.ChildrenBuilder diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/AwesomeBenchmarks.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/AwesomeBenchmarks.kt index 5eff293247..16a9c2d10c 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/AwesomeBenchmarks.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/AwesomeBenchmarks.kt @@ -1,6 +1,6 @@ package com.saveourtool.save.frontend.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.externals.animations.* import com.saveourtool.save.frontend.components.views.welcome.pagers.WelcomePager import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/Contests.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/Contests.kt index 6b32cd044f..2a103f3f8b 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/Contests.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/Contests.kt @@ -1,6 +1,6 @@ package com.saveourtool.save.frontend.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.externals.animations.* import com.saveourtool.save.frontend.components.views.welcome.pagers.WelcomePager import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/GeneralInfoPictures.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/GeneralInfoPictures.kt index 99ec8a5371..c17a9a25ff 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/GeneralInfoPictures.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/GeneralInfoPictures.kt @@ -4,7 +4,7 @@ package com.saveourtool.save.frontend.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.externals.animations.* import com.saveourtool.save.frontend.components.views.welcome.pagers.WelcomePager import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/HighLevelSave.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/HighLevelSave.kt index 9abb327a6d..9f8096466a 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/HighLevelSave.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/HighLevelSave.kt @@ -1,6 +1,6 @@ package com.saveourtool.save.frontend.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.externals.animations.* import com.saveourtool.save.frontend.components.views.welcome.pagers.WelcomePager import react.ChildrenBuilder diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/Slogan.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/Slogan.kt index d7996a27a5..74c5a976dd 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/Slogan.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/Slogan.kt @@ -4,8 +4,8 @@ package com.saveourtool.save.frontend.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.externals.animations.Animation -import com.saveourtool.save.frontend.common.externals.animations.zoomInScrollOut +import com.saveourtool.frontend.common.externals.animations.Animation +import com.saveourtool.frontend.common.externals.animations.zoomInScrollOut import com.saveourtool.save.frontend.components.views.welcome.pagers.WelcomePager import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/TestsSelector.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/TestsSelector.kt index 068351212e..2630eca85a 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/TestsSelector.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/pagers/save/TestsSelector.kt @@ -1,6 +1,6 @@ package com.saveourtool.save.frontend.components.views.welcome.pagers.save -import com.saveourtool.save.frontend.common.externals.animations.* +import com.saveourtool.frontend.common.externals.animations.* import com.saveourtool.save.frontend.components.views.welcome.pagers.WelcomePager import js.core.jso diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/externals/i18next/Translation.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/externals/i18next/Translation.kt index 04296e1f38..7884456737 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/externals/i18next/Translation.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/externals/i18next/Translation.kt @@ -1,9 +1,9 @@ package com.saveourtool.save.frontend.externals.i18next +import com.saveourtool.frontend.common.externals.cookie.cookie +import com.saveourtool.frontend.common.externals.cookie.isAccepted +import com.saveourtool.frontend.common.externals.cookie.saveLanguageCode import com.saveourtool.save.frontend.PlatformLanguages -import com.saveourtool.save.frontend.common.externals.cookie.cookie -import com.saveourtool.save.frontend.common.externals.cookie.isAccepted -import com.saveourtool.save.frontend.common.externals.cookie.saveLanguageCode typealias TranslationFunction = String.() -> String diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/externals/reactace/AceBuilder.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/externals/reactace/AceBuilder.kt index fb284ce694..c59ec1fac6 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/externals/reactace/AceBuilder.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/externals/reactace/AceBuilder.kt @@ -2,7 +2,7 @@ package com.saveourtool.save.frontend.externals.reactace -import com.saveourtool.save.frontend.common.utils.parsePositionString +import com.saveourtool.frontend.common.utils.parsePositionString import com.saveourtool.save.utils.DEBOUNCE_PERIOD_FOR_EDITORS import com.saveourtool.save.utils.Languages diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/routing/BasicRouting.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/routing/BasicRouting.kt index a53d1c5369..a5415d97e3 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/routing/BasicRouting.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/routing/BasicRouting.kt @@ -6,18 +6,18 @@ package com.saveourtool.save.frontend.routing +import com.saveourtool.frontend.common.components.views.AboutUsView +import com.saveourtool.frontend.common.components.views.FallbackView +import com.saveourtool.frontend.common.components.views.organization.createOrganizationView +import com.saveourtool.frontend.common.components.views.organization.organizationView +import com.saveourtool.frontend.common.components.views.registrationView +import com.saveourtool.frontend.common.components.views.userprofile.userProfileView +import com.saveourtool.frontend.common.components.views.usersettings.* +import com.saveourtool.frontend.common.utils.* +import com.saveourtool.frontend.common.utils.isSuperAdmin import com.saveourtool.save.domain.ProjectCoordinates import com.saveourtool.save.domain.TestResultStatus import com.saveourtool.save.filters.TestExecutionFilter -import com.saveourtool.save.frontend.common.components.views.AboutUsView -import com.saveourtool.save.frontend.common.components.views.FallbackView -import com.saveourtool.save.frontend.common.components.views.organization.createOrganizationView -import com.saveourtool.save.frontend.common.components.views.organization.organizationView -import com.saveourtool.save.frontend.common.components.views.registrationView -import com.saveourtool.save.frontend.common.components.views.userprofile.userProfileView -import com.saveourtool.save.frontend.common.components.views.usersettings.* -import com.saveourtool.save.frontend.common.utils.* -import com.saveourtool.save.frontend.common.utils.isSuperAdmin import com.saveourtool.save.frontend.components.basic.projects.createProjectProblem import com.saveourtool.save.frontend.components.basic.projects.projectProblem import com.saveourtool.save.frontend.components.views.* @@ -99,7 +99,7 @@ val basicRouting: FC = FC { props -> } } - val organizationView = com.saveourtool.save.frontend.common.utils.withRouter { location, params -> + val organizationView = withRouter { location, params -> organizationView { organizationName = params["owner"]!! currentUserInfo = props.userInfo diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/routing/MobileRouting.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/routing/MobileRouting.kt index c7b8ff418b..51013da9b3 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/routing/MobileRouting.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/routing/MobileRouting.kt @@ -4,8 +4,8 @@ package com.saveourtool.save.frontend.routing -import com.saveourtool.save.frontend.common.components.mobile.AboutUsMobileView -import com.saveourtool.save.frontend.common.components.mobile.saveWelcomeMobileView +import com.saveourtool.frontend.common.components.mobile.AboutUsMobileView +import com.saveourtool.frontend.common.components.mobile.saveWelcomeMobileView import com.saveourtool.save.validation.FrontendRoutes import react.FC import react.Props diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/utils/SaveOrganizationType.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/utils/SaveOrganizationType.kt index 973b37ff00..b1806d19fd 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/utils/SaveOrganizationType.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/utils/SaveOrganizationType.kt @@ -1,7 +1,7 @@ package com.saveourtool.save.frontend.utils -import com.saveourtool.save.frontend.common.components.views.organization.OrganizationMenuBar -import com.saveourtool.save.frontend.common.components.views.organization.OrganizationType +import com.saveourtool.frontend.common.components.views.organization.OrganizationMenuBar +import com.saveourtool.frontend.common.components.views.organization.OrganizationType object SaveOrganizationType : OrganizationType { override val listTab: Array = arrayOf( diff --git a/save-frontend/src/test/kotlin/com/saveourtool/save/frontend/components/views/ProjectViewTest.kt b/save-frontend/src/test/kotlin/com/saveourtool/save/frontend/components/views/ProjectViewTest.kt index 1cf83ddd2b..e513a82897 100644 --- a/save-frontend/src/test/kotlin/com/saveourtool/save/frontend/components/views/ProjectViewTest.kt +++ b/save-frontend/src/test/kotlin/com/saveourtool/save/frontend/components/views/ProjectViewTest.kt @@ -3,7 +3,7 @@ package com.saveourtool.save.frontend.components.views import com.saveourtool.save.domain.Role import com.saveourtool.save.entities.* import com.saveourtool.save.frontend.externals.* -import com.saveourtool.save.frontend.common.utils.apiUrl +import com.saveourtool.frontend.common.utils.apiUrl import com.saveourtool.save.frontend.utils.mockMswResponse import com.saveourtool.save.frontend.utils.wrapper import com.saveourtool.save.info.UserInfo diff --git a/settings.gradle.kts b/settings.gradle.kts index ee0f061bda..7908a2ee2e 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -53,7 +53,7 @@ include("save-demo-cpg") include("test-analysis-core") include("save-demo-agent") include("cosv-backend") -include("save-frontend-common") +include("frontend-common") enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")