@cccsaurora/howler-ui 2.14.0-dev.264 → 2.14.0-dev.265
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/action/execute.ts +3 -3
- package/api/action/index.ts +5 -5
- package/api/action/operations.ts +3 -3
- package/api/analytic/comments/index.ts +4 -4
- package/api/analytic/comments/react.ts +2 -2
- package/api/analytic/favourite.ts +2 -2
- package/api/analytic/index.ts +7 -7
- package/api/analytic/notebooks/index.ts +3 -3
- package/api/analytic/owner.ts +3 -3
- package/api/analytic/rules.ts +3 -3
- package/api/auth/apikey.ts +2 -2
- package/api/auth/index.ts +3 -3
- package/api/auth/login.ts +3 -3
- package/api/configs/index.ts +2 -2
- package/api/dossier/hit.ts +2 -2
- package/api/dossier/index.ts +2 -2
- package/api/help.ts +1 -1
- package/api/hit/assign.ts +3 -3
- package/api/hit/comments/index.ts +4 -4
- package/api/hit/comments/react.ts +2 -2
- package/api/hit/index.ts +7 -7
- package/api/hit/labels.ts +4 -4
- package/api/hit/overwrite.ts +3 -3
- package/api/hit/transition.ts +4 -4
- package/api/index.ts +18 -18
- package/api/notebook/environments.ts +2 -2
- package/api/notebook/index.ts +4 -4
- package/api/overview/index.ts +2 -2
- package/api/search/action.ts +4 -4
- package/api/search/analytic.ts +4 -4
- package/api/search/count/hit.ts +3 -3
- package/api/search/count/index.ts +3 -3
- package/api/search/dossier.ts +4 -4
- package/api/search/eql/hit.ts +4 -4
- package/api/search/facet/hit.ts +3 -3
- package/api/search/facet/index.ts +3 -3
- package/api/search/fields/hit.ts +3 -3
- package/api/search/fields/index.ts +4 -4
- package/api/search/fields/user.ts +4 -4
- package/api/search/grouped/hit.ts +4 -4
- package/api/search/grouped/index.ts +4 -4
- package/api/search/grouped/user.ts +4 -4
- package/api/search/histogram/hit.ts +3 -3
- package/api/search/histogram/index.ts +3 -3
- package/api/search/hit.ts +6 -6
- package/api/search/index.ts +14 -14
- package/api/search/overview.ts +4 -4
- package/api/search/sigma/hit.ts +4 -4
- package/api/search/template.ts +4 -4
- package/api/search/user.ts +4 -4
- package/api/search/view.ts +4 -4
- package/api/template/index.ts +2 -2
- package/api/user/avatar/index.ts +2 -2
- package/api/user/groups.ts +2 -2
- package/api/user/index.ts +5 -5
- package/api/user/whoami.ts +3 -3
- package/api/view/favourite.ts +2 -2
- package/api/view/index.ts +3 -3
- package/commons/components/app/AppConfigs.ts +2 -2
- package/commons/components/app/AppContexts.ts +5 -5
- package/commons/components/app/AppDefaults.ts +1 -1
- package/commons/components/app/AppNotificationService.ts +1 -1
- package/commons/components/app/AppProvider.tsx +14 -14
- package/commons/components/app/AppSearchService.ts +1 -1
- package/commons/components/app/AppSkeleton.tsx +3 -3
- package/commons/components/app/hooks/useApp.tsx +1 -1
- package/commons/components/app/hooks/useAppBanner.tsx +1 -1
- package/commons/components/app/hooks/useAppBar.tsx +1 -1
- package/commons/components/app/hooks/useAppBreadcrumbs.tsx +1 -1
- package/commons/components/app/hooks/useAppConfigs.tsx +2 -2
- package/commons/components/app/hooks/useAppLanguage.tsx +2 -2
- package/commons/components/app/hooks/useAppLayout.tsx +1 -1
- package/commons/components/app/hooks/useAppLeftNav.tsx +1 -1
- package/commons/components/app/hooks/useAppLogo.tsx +2 -2
- package/commons/components/app/hooks/useAppNotification.tsx +1 -1
- package/commons/components/app/hooks/useAppQuickSearch.tsx +1 -1
- package/commons/components/app/hooks/useAppSearchService.tsx +2 -2
- package/commons/components/app/hooks/useAppSitemap.tsx +3 -3
- package/commons/components/app/hooks/useAppSwitcher.tsx +1 -1
- package/commons/components/app/hooks/useAppTheme.tsx +1 -1
- package/commons/components/app/hooks/useAppUser.tsx +2 -2
- package/commons/components/app/providers/AppBarProvider.tsx +9 -9
- package/commons/components/app/providers/AppBreadcrumbsProvider.tsx +5 -5
- package/commons/components/app/providers/AppLayoutProvider.tsx +7 -7
- package/commons/components/app/providers/AppLeftNavProvider.tsx +5 -5
- package/commons/components/app/providers/AppNotificationProvider.tsx +1 -1
- package/commons/components/app/providers/AppQuickSearchProvider.tsx +6 -6
- package/commons/components/app/providers/AppSearchServiceProvider.tsx +3 -3
- package/commons/components/app/providers/AppSwitcherProvider.tsx +3 -3
- package/commons/components/app/providers/AppUserProvider.tsx +2 -2
- package/commons/components/breadcrumbs/BreadcrumbIcon.tsx +1 -1
- package/commons/components/breadcrumbs/BreadcrumbLastItem.tsx +2 -2
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.tsx +2 -2
- package/commons/components/breadcrumbs/BreadcrumbList.tsx +3 -3
- package/commons/components/breadcrumbs/Breadcrumbs.tsx +2 -2
- package/commons/components/display/AppAvatar.tsx +1 -1
- package/commons/components/display/AppListEmpty.tsx +1 -1
- package/commons/components/display/AppToc.tsx +3 -3
- package/commons/components/display/hooks/useAppColor.tsx +1 -1
- package/commons/components/leftnav/LeftNavDrawer.tsx +4 -4
- package/commons/components/leftnav/LeftNavGroup.tsx +3 -3
- package/commons/components/leftnav/LeftNavItem.tsx +2 -2
- package/commons/components/notification/Notification.tsx +4 -4
- package/commons/components/notification/elements/NotificationCloseButton.tsx +1 -1
- package/commons/components/notification/elements/NotificationContainer.tsx +5 -5
- package/commons/components/notification/elements/NotificationEndOfPage.tsx +1 -1
- package/commons/components/notification/elements/NotificationItems.tsx +2 -2
- package/commons/components/notification/elements/item/NotificationItem.tsx +7 -7
- package/commons/components/notification/elements/item/NotificationItemAuthor.tsx +1 -1
- package/commons/components/notification/elements/item/NotificationItemContent.tsx +1 -1
- package/commons/components/notification/elements/item/NotificationItemDate.tsx +1 -1
- package/commons/components/notification/elements/item/NotificationItemTitle.tsx +1 -1
- package/commons/components/pages/PageContent.tsx +1 -1
- package/commons/components/pages/PageFullScreen.tsx +3 -3
- package/commons/components/pages/PageHeader.tsx +1 -1
- package/commons/components/search/AppSearch.tsx +4 -4
- package/commons/components/search/AppSearchResult.tsx +4 -4
- package/commons/components/topnav/AppBar.tsx +9 -9
- package/commons/components/topnav/AppName.tsx +1 -1
- package/commons/components/topnav/AppSwitcher.tsx +1 -1
- package/commons/components/topnav/Notifications.tsx +2 -2
- package/commons/components/topnav/ThemeSelection.tsx +2 -2
- package/commons/components/topnav/ThemeSelectionIcon.tsx +2 -2
- package/commons/components/topnav/UserProfile.tsx +3 -3
- package/commons/components/utils/hooks/useLocalStorageItem.tsx +1 -1
- package/commons/components/utils/hooks/useThemeBuilder.tsx +2 -2
- package/components/app/App.tsx +57 -57
- package/components/app/AppContainer.tsx +1 -1
- package/components/app/drawers/ApiKeyDrawer.tsx +5 -5
- package/components/app/drawers/AssignUserDrawer.tsx +6 -6
- package/components/app/drawers/ViewGroupsDrawer.tsx +1 -1
- package/components/app/hooks/useMatchers.tsx +2 -2
- package/components/app/hooks/useTitle.tsx +1 -1
- package/components/app/providers/AnalyticProvider.tsx +5 -5
- package/components/app/providers/ApiConfigProvider.tsx +1 -1
- package/components/app/providers/AppDrawerProvider.tsx +1 -1
- package/components/app/providers/AvatarProvider.tsx +2 -2
- package/components/app/providers/CustomPluginProvider.tsx +1 -1
- package/components/app/providers/FavouritesProvider.tsx +3 -3
- package/components/app/providers/FieldProvider.tsx +3 -3
- package/components/app/providers/HitProvider.tsx +5 -5
- package/components/app/providers/HitSearchProvider.tsx +12 -12
- package/components/app/providers/LocalStorageProvider.tsx +2 -2
- package/components/app/providers/OverviewProvider.tsx +3 -3
- package/components/app/providers/ParameterProvider.tsx +1 -1
- package/components/app/providers/SocketProvider.tsx +5 -5
- package/components/app/providers/UserListProvider.tsx +3 -3
- package/components/app/providers/ViewProvider.tsx +7 -7
- package/components/elements/Comment.tsx +7 -7
- package/components/elements/EditRow.tsx +1 -1
- package/components/elements/PluginChip.tsx +1 -1
- package/components/elements/PluginTypography.tsx +1 -1
- package/components/elements/ThemedEditor.tsx +3 -3
- package/components/elements/UserList.tsx +1 -1
- package/components/elements/addons/layout/FlexPort.tsx +1 -1
- package/components/elements/addons/layout/FlexVertical.tsx +2 -2
- package/components/elements/addons/layout/vsbox/VSBox.tsx +1 -1
- package/components/elements/addons/lists/TuiList.tsx +1 -1
- package/components/elements/addons/lists/TuiListBase.tsx +2 -2
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.tsx +2 -2
- package/components/elements/addons/lists/table/TuiTable.tsx +1 -1
- package/components/elements/addons/lists/table/TuiTableBody.tsx +1 -1
- package/components/elements/addons/lists/table/TuiTableHead.tsx +1 -1
- package/components/elements/addons/search/phrase/Phrase.tsx +1 -1
- package/components/elements/display/ActionButton.tsx +4 -4
- package/components/elements/display/Classification.tsx +1 -1
- package/components/elements/display/HandlebarsMarkdown.tsx +2 -2
- package/components/elements/display/HowlerAvatar.tsx +3 -3
- package/components/elements/display/HowlerAvatarHeader.tsx +1 -1
- package/components/elements/display/ItemManager.tsx +7 -7
- package/components/elements/display/Markdown.tsx +1 -1
- package/components/elements/display/Modal.tsx +1 -1
- package/components/elements/display/UserPageWrapper.tsx +2 -2
- package/components/elements/display/features/DevelopmentBanner.tsx +2 -2
- package/components/elements/display/features/DevelopmentIcon.tsx +2 -2
- package/components/elements/display/handlebars/helpers.tsx +4 -4
- package/components/elements/display/icons/BundleButton.tsx +1 -1
- package/components/elements/display/icons/SocketBadge.tsx +2 -2
- package/components/elements/display/json/JSONViewer.tsx +7 -7
- package/components/elements/display/modals/ConfirmDeleteModal.tsx +1 -1
- package/components/elements/display/modals/ConfirmNotebookModal.tsx +1 -1
- package/components/elements/display/modals/CreateActionModal.tsx +3 -3
- package/components/elements/display/modals/RationaleModal.tsx +2 -2
- package/components/elements/hit/HitActions.tsx +13 -13
- package/components/elements/hit/HitBanner.tsx +6 -6
- package/components/elements/hit/HitBannerTooltip.tsx +1 -1
- package/components/elements/hit/HitCard.tsx +1 -1
- package/components/elements/hit/HitComments.tsx +11 -11
- package/components/elements/hit/HitDetails.tsx +2 -2
- package/components/elements/hit/HitLabels.tsx +6 -6
- package/components/elements/hit/HitNotebooks.tsx +8 -8
- package/components/elements/hit/HitOutline.tsx +4 -4
- package/components/elements/hit/HitOverview.tsx +4 -4
- package/components/elements/hit/HitQuickSearch.tsx +4 -4
- package/components/elements/hit/HitRelated.tsx +1 -1
- package/components/elements/hit/HitSummary.tsx +13 -13
- package/components/elements/hit/HitWorklog.tsx +7 -7
- package/components/elements/hit/actions/DropdownActions.tsx +1 -1
- package/components/elements/hit/aggregate/HitGraph.tsx +8 -8
- package/components/elements/hit/elements/Assigned.tsx +4 -4
- package/components/elements/hit/elements/EscalationChip.tsx +2 -2
- package/components/elements/hit/elements/HitTimestamp.tsx +3 -3
- package/components/elements/hit/outlines/DefaultOutline.tsx +4 -4
- package/components/elements/hit/outlines/al/AssemblyLineRules.tsx +2 -2
- package/components/elements/hit/related/PivotLink.tsx +3 -3
- package/components/elements/hit/related/RelatedIcon.tsx +2 -2
- package/components/elements/hit/related/RelatedLink.tsx +1 -1
- package/components/elements/view/ViewTitle.tsx +1 -1
- package/components/hooks/useHitActions.tsx +12 -12
- package/components/hooks/useHitSelection.tsx +7 -7
- package/components/hooks/useMyApi.tsx +2 -2
- package/components/hooks/useMyLocalStorage.ts +5 -5
- package/components/hooks/useMyPreferences.tsx +6 -6
- package/components/hooks/useMySearch.tsx +7 -7
- package/components/hooks/useMySitemap.tsx +2 -2
- package/components/hooks/useMyTheme.tsx +1 -1
- package/components/hooks/useMyUser.tsx +2 -2
- package/components/hooks/useMyUserFunctions.tsx +8 -8
- package/components/hooks/useMyUserList.tsx +1 -1
- package/components/hooks/useMyUtils.tsx +1 -1
- package/components/logins/Login.tsx +4 -4
- package/components/logins/auth/OAuthLogin.tsx +3 -3
- package/components/logins/hooks/useLogin.tsx +11 -11
- package/components/routes/404.tsx +1 -1
- package/components/routes/ErrorOccured.tsx +2 -2
- package/components/routes/Logout.tsx +3 -3
- package/components/routes/action/edit/ActionEditor.tsx +13 -13
- package/components/routes/action/shared/ActionReportDisplay.tsx +2 -2
- package/components/routes/action/shared/OperationEntry.tsx +4 -4
- package/components/routes/action/shared/OperationStep.tsx +8 -8
- package/components/routes/action/useMyActionFunctions.tsx +9 -9
- package/components/routes/action/view/ActionDetails.tsx +12 -12
- package/components/routes/action/view/ActionSearch.tsx +14 -14
- package/components/routes/action/view/Integrations.tsx +2 -2
- package/components/routes/admin/users/UserEditor.tsx +8 -8
- package/components/routes/admin/users/UserSearch.tsx +19 -19
- package/components/routes/advanced/QueryBuilder.tsx +14 -14
- package/components/routes/advanced/QueryEditor.tsx +3 -3
- package/components/routes/advanced/RuleModal.tsx +10 -10
- package/components/routes/advanced/eqlCompletionProvider.ts +1 -1
- package/components/routes/advanced/historyCompletionProvider.ts +2 -2
- package/components/routes/advanced/luceneCompletionProvider.ts +3 -3
- package/components/routes/advanced/yamlCompletionProvider.ts +1 -1
- package/components/routes/analytics/AnalyticComments.tsx +9 -9
- package/components/routes/analytics/AnalyticDetails.tsx +12 -12
- package/components/routes/analytics/AnalyticHitComments.tsx +8 -8
- package/components/routes/analytics/AnalyticNotebooks.tsx +9 -9
- package/components/routes/analytics/AnalyticOverview.tsx +6 -6
- package/components/routes/analytics/AnalyticOverviews.tsx +3 -3
- package/components/routes/analytics/AnalyticSearch.tsx +15 -15
- package/components/routes/analytics/AnalyticTemplates.tsx +5 -5
- package/components/routes/analytics/RuleView.tsx +4 -4
- package/components/routes/analytics/TriageSettings.tsx +6 -6
- package/components/routes/analytics/widgets/Assessment.tsx +5 -5
- package/components/routes/analytics/widgets/Created.tsx +4 -4
- package/components/routes/analytics/widgets/Detection.tsx +2 -2
- package/components/routes/analytics/widgets/Escalation.tsx +5 -5
- package/components/routes/analytics/widgets/Stacked.tsx +3 -3
- package/components/routes/analytics/widgets/Status.tsx +2 -2
- package/components/routes/dossiers/DossierCard.tsx +3 -3
- package/components/routes/dossiers/DossierEditor.tsx +5 -5
- package/components/routes/dossiers/Dossiers.tsx +10 -10
- package/components/routes/dossiers/LeadEditor.tsx +3 -3
- package/components/routes/dossiers/LeadForm.tsx +1 -1
- package/components/routes/dossiers/PivotForm.tsx +4 -4
- package/components/routes/help/ActionDocumentation.tsx +3 -3
- package/components/routes/help/ActionIntroductionDocumentation.tsx +7 -7
- package/components/routes/help/ApiDocumentation.tsx +8 -8
- package/components/routes/help/AuthDocumentation.tsx +3 -3
- package/components/routes/help/BundleDocumentation.tsx +1 -1
- package/components/routes/help/ClientDocumentation.tsx +3 -3
- package/components/routes/help/Help.tsx +5 -5
- package/components/routes/help/HitBannerDocumentation.tsx +5 -5
- package/components/routes/help/HitDocumentation.tsx +2 -2
- package/components/routes/help/HitLabelsDocumentation.tsx +1 -1
- package/components/routes/help/HitLinksDocumentation.tsx +2 -2
- package/components/routes/help/HitSchemaDocumentation.tsx +3 -3
- package/components/routes/help/NotebookDocumentation.tsx +3 -3
- package/components/routes/help/OverviewDocumentation.tsx +3 -3
- package/components/routes/help/RetentionDocumentation.tsx +7 -7
- package/components/routes/help/SearchDocumentation.tsx +6 -6
- package/components/routes/help/TemplateDocumentation.tsx +5 -5
- package/components/routes/help/ViewDocumentation.tsx +3 -3
- package/components/routes/hits/search/BundleParentMenu.tsx +5 -5
- package/components/routes/hits/search/BundleScroller.tsx +1 -1
- package/components/routes/hits/search/CustomSort.tsx +2 -2
- package/components/routes/hits/search/HitBrowser.tsx +10 -10
- package/components/routes/hits/search/HitContextMenu.tsx +11 -11
- package/components/routes/hits/search/HitQuery.tsx +5 -5
- package/components/routes/hits/search/InformationPane.tsx +35 -35
- package/components/routes/hits/search/SearchPane.tsx +21 -21
- package/components/routes/hits/search/ViewLink.tsx +3 -3
- package/components/routes/hits/search/grid/AddColumnModal.tsx +3 -3
- package/components/routes/hits/search/grid/ColumnHeader.tsx +2 -2
- package/components/routes/hits/search/grid/EnhancedCell.tsx +1 -1
- package/components/routes/hits/search/grid/HitGrid.tsx +12 -12
- package/components/routes/hits/search/grid/HitRow.tsx +7 -7
- package/components/routes/hits/search/shared/CustomSpan.tsx +1 -1
- package/components/routes/hits/search/shared/HitFilter.tsx +4 -4
- package/components/routes/hits/search/shared/HitSort.tsx +2 -2
- package/components/routes/hits/search/shared/QuerySettings.tsx +2 -2
- package/components/routes/hits/search/shared/SearchSpan.tsx +3 -3
- package/components/routes/hits/view/HitViewer.tsx +28 -28
- package/components/routes/hits/view/LeadRenderer.tsx +3 -3
- package/components/routes/home/AddNewCard.tsx +5 -5
- package/components/routes/home/AnalyticCard.tsx +3 -3
- package/components/routes/home/ViewCard.tsx +7 -7
- package/components/routes/home/index.tsx +9 -9
- package/components/routes/overviews/OverviewCard.tsx +3 -3
- package/components/routes/overviews/OverviewEditor.tsx +2 -2
- package/components/routes/overviews/OverviewViewer.tsx +13 -13
- package/components/routes/overviews/Overviews.tsx +10 -10
- package/components/routes/overviews/startingTemplate.ts +1 -1
- package/components/routes/settings/AdminSection.tsx +1 -1
- package/components/routes/settings/LocalSection.tsx +4 -4
- package/components/routes/settings/ProfileSection.tsx +4 -4
- package/components/routes/settings/SecuritySection.tsx +5 -5
- package/components/routes/settings/Settings.tsx +6 -6
- package/components/routes/templates/TemplateCard.tsx +1 -1
- package/components/routes/templates/TemplateEditor.tsx +4 -4
- package/components/routes/templates/TemplateViewer.tsx +10 -10
- package/components/routes/templates/Templates.tsx +11 -11
- package/components/routes/views/ViewComposer.tsx +21 -21
- package/components/routes/views/Views.tsx +16 -16
- package/index.tsx +3 -3
- package/models/entities/HowlerUser.d.ts +1 -1
- package/models/socket/HitUpdate.d.ts +1 -1
- package/package.json +4 -32
- package/plugins/HowlerPlugin.ts +12 -12
- package/plugins/store.ts +1 -1
- package/rest/AxiosClient.ts +3 -3
- package/rest/FetchClient.ts +2 -2
- package/rest/index.ts +1 -1
- package/utils/actionUtils.ts +2 -2
- package/utils/hitFunctions.ts +1 -1
- package/utils/localStorage.ts +1 -1
- package/utils/sessionStorage.ts +1 -1
- package/utils/socketUtils.ts +2 -2
- package/components/app/hooks/useMatchers.test.ts +0 -328
- package/components/app/providers/ViewProvider.test.tsx +0 -244
- package/tests/MockLocalStorage.ts +0 -46
- package/tests/server-handlers.ts +0 -114
- package/tests/server.ts +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button, Stack, TextField, Typography } from '@mui/material';
|
|
2
|
-
import { parseEvent } from 'commons/components/utils/keyboard';
|
|
3
|
-
import { ModalContext } from 'components/app/providers/ModalProvider';
|
|
4
|
-
import useMySnackbar from 'components/hooks/useMySnackbar';
|
|
2
|
+
import { parseEvent } from '@cccsaurora/howler-ui/commons/components/utils/keyboard';
|
|
3
|
+
import { ModalContext } from '@cccsaurora/howler-ui/components/app/providers/ModalProvider';
|
|
4
|
+
import useMySnackbar from '@cccsaurora/howler-ui/components/hooks/useMySnackbar';
|
|
5
5
|
import type { FC, KeyboardEvent } from 'react';
|
|
6
6
|
import { useCallback, useContext, useState } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button, Stack, TextField, Typography } from '@mui/material';
|
|
2
|
-
import { parseEvent } from 'commons/components/utils/keyboard';
|
|
3
|
-
import { ModalContext } from 'components/app/providers/ModalProvider';
|
|
2
|
+
import { parseEvent } from '@cccsaurora/howler-ui/commons/components/utils/keyboard';
|
|
3
|
+
import { ModalContext } from '@cccsaurora/howler-ui/components/app/providers/ModalProvider';
|
|
4
4
|
import type { FC } from 'react';
|
|
5
5
|
import { useCallback, useContext, useState } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
@@ -14,26 +14,26 @@ import {
|
|
|
14
14
|
Switch,
|
|
15
15
|
useMediaQuery
|
|
16
16
|
} from '@mui/material';
|
|
17
|
-
import useMatchers from 'components/app/hooks/useMatchers';
|
|
18
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
19
|
-
import { HitContext } from 'components/app/providers/HitProvider';
|
|
20
|
-
import { HitSearchContext } from 'components/app/providers/HitSearchProvider';
|
|
21
|
-
import { ParameterContext } from 'components/app/providers/ParameterProvider';
|
|
22
|
-
import { ViewContext } from 'components/app/providers/ViewProvider';
|
|
23
|
-
import useHitActions from 'components/hooks/useHitActions';
|
|
24
|
-
import { useMyLocalStorageProvider } from 'components/hooks/useMyLocalStorage';
|
|
17
|
+
import useMatchers from '@cccsaurora/howler-ui/components/app/hooks/useMatchers';
|
|
18
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
19
|
+
import { HitContext } from '@cccsaurora/howler-ui/components/app/providers/HitProvider';
|
|
20
|
+
import { HitSearchContext } from '@cccsaurora/howler-ui/components/app/providers/HitSearchProvider';
|
|
21
|
+
import { ParameterContext } from '@cccsaurora/howler-ui/components/app/providers/ParameterProvider';
|
|
22
|
+
import { ViewContext } from '@cccsaurora/howler-ui/components/app/providers/ViewProvider';
|
|
23
|
+
import useHitActions from '@cccsaurora/howler-ui/components/hooks/useHitActions';
|
|
24
|
+
import { useMyLocalStorageProvider } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
25
25
|
import json2mq from 'json2mq';
|
|
26
|
-
import type { Analytic } from 'models/entities/generated/Analytic';
|
|
27
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
28
|
-
import howlerPluginStore from 'plugins/store';
|
|
26
|
+
import type { Analytic } from '@cccsaurora/howler-ui/models/entities/generated/Analytic';
|
|
27
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
28
|
+
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
29
29
|
import type { FC } from 'react';
|
|
30
30
|
import { memo, useCallback, useContext, useEffect, useMemo, useState } from 'react';
|
|
31
31
|
import { isMobile } from 'react-device-detect';
|
|
32
32
|
import { Trans } from 'react-i18next';
|
|
33
33
|
import { usePluginStore } from 'react-pluggable';
|
|
34
34
|
import { useContextSelector } from 'use-context-selector';
|
|
35
|
-
import Throttler from 'utils/Throttler';
|
|
36
|
-
import { StorageKey } from 'utils/constants';
|
|
35
|
+
import Throttler from '@cccsaurora/howler-ui/utils/Throttler';
|
|
36
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
37
37
|
import { HitShortcuts } from './HitShortcuts';
|
|
38
38
|
import ButtonActions from './actions/ButtonActions';
|
|
39
39
|
import DropdownActions from './actions/DropdownActions';
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
useTheme,
|
|
12
12
|
type TypographyProps
|
|
13
13
|
} from '@mui/material';
|
|
14
|
-
import useMatchers from 'components/app/hooks/useMatchers';
|
|
15
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
14
|
+
import useMatchers from '@cccsaurora/howler-ui/components/app/hooks/useMatchers';
|
|
15
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
16
16
|
import { uniq } from 'lodash-es';
|
|
17
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
18
|
-
import howlerPluginStore from 'plugins/store';
|
|
17
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
18
|
+
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
19
19
|
import { useCallback, useContext, useEffect, useMemo, useState, type FC } from 'react';
|
|
20
20
|
import { Trans, useTranslation } from 'react-i18next';
|
|
21
21
|
import { usePluginStore } from 'react-pluggable';
|
|
22
22
|
import { Link } from 'react-router-dom';
|
|
23
|
-
import { ESCALATION_COLORS, PROVIDER_COLORS } from 'utils/constants';
|
|
24
|
-
import { stringToColor } from 'utils/utils';
|
|
23
|
+
import { ESCALATION_COLORS, PROVIDER_COLORS } from '@cccsaurora/howler-ui/utils/constants';
|
|
24
|
+
import { stringToColor } from '@cccsaurora/howler-ui/utils/utils';
|
|
25
25
|
import PluginTypography from '../PluginTypography';
|
|
26
26
|
import Assigned from './elements/Assigned';
|
|
27
27
|
import EscalationChip from './elements/EscalationChip';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tooltip } from '@mui/material';
|
|
2
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
2
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
3
3
|
import type { FC, PropsWithChildren, ReactElement } from 'react';
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardContent, Skeleton } from '@mui/material';
|
|
2
|
-
import { HitContext } from 'components/app/providers/HitProvider';
|
|
2
|
+
import { HitContext } from '@cccsaurora/howler-ui/components/app/providers/HitProvider';
|
|
3
3
|
import type { FC } from 'react';
|
|
4
4
|
import { memo, useEffect } from 'react';
|
|
5
5
|
import { useContextSelector } from 'use-context-selector';
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
TextField,
|
|
12
12
|
Typography
|
|
13
13
|
} from '@mui/material';
|
|
14
|
-
import api from 'api';
|
|
15
|
-
import { useAppUser } from 'commons/components/app/hooks';
|
|
16
|
-
import useMatchers from 'components/app/hooks/useMatchers';
|
|
17
|
-
import { SocketContext, type RecievedDataType } from 'components/app/providers/SocketProvider';
|
|
18
|
-
import FlexOne from 'components/elements/addons/layout/FlexOne';
|
|
19
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
20
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
21
|
-
import type { Comment as AnalyticComment } from 'models/entities/generated/Comment';
|
|
22
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
23
|
-
import type { SocketEvent } from 'models/socket/HitUpdate';
|
|
14
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
15
|
+
import { useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
16
|
+
import useMatchers from '@cccsaurora/howler-ui/components/app/hooks/useMatchers';
|
|
17
|
+
import { SocketContext, type RecievedDataType } from '@cccsaurora/howler-ui/components/app/providers/SocketProvider';
|
|
18
|
+
import FlexOne from '@cccsaurora/howler-ui/components/elements/addons/layout/FlexOne';
|
|
19
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
20
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
21
|
+
import type { Comment as AnalyticComment } from '@cccsaurora/howler-ui/models/entities/generated/Comment';
|
|
22
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
23
|
+
import type { SocketEvent } from '@cccsaurora/howler-ui/models/socket/HitUpdate';
|
|
24
24
|
import {
|
|
25
25
|
useCallback,
|
|
26
26
|
useContext,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from 'react';
|
|
34
34
|
import { useTranslation } from 'react-i18next';
|
|
35
35
|
import { useNavigate } from 'react-router-dom';
|
|
36
|
-
import { compareTimestamp, sortByTimestamp } from 'utils/utils';
|
|
36
|
+
import { compareTimestamp, sortByTimestamp } from '@cccsaurora/howler-ui/utils/utils';
|
|
37
37
|
import Comment from '../Comment';
|
|
38
38
|
import HowlerAvatar from '../display/HowlerAvatar';
|
|
39
39
|
import TypingIndicator from '../display/TypingIndicator';
|
|
@@ -29,11 +29,11 @@ import {
|
|
|
29
29
|
sortBy,
|
|
30
30
|
uniq
|
|
31
31
|
} from 'lodash-es';
|
|
32
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
32
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
33
33
|
import type { FC } from 'react';
|
|
34
34
|
import { memo, useEffect, useMemo, useState } from 'react';
|
|
35
35
|
import { useTranslation } from 'react-i18next';
|
|
36
|
-
import Throttler from 'utils/Throttler';
|
|
36
|
+
import Throttler from '@cccsaurora/howler-ui/utils/Throttler';
|
|
37
37
|
|
|
38
38
|
import PluginTypography from '../PluginTypography';
|
|
39
39
|
|
|
@@ -20,16 +20,16 @@ import {
|
|
|
20
20
|
Tooltip,
|
|
21
21
|
Typography
|
|
22
22
|
} from '@mui/material';
|
|
23
|
-
import api from 'api';
|
|
24
|
-
import { HitContext } from 'components/app/providers/HitProvider';
|
|
25
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
26
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
27
|
-
import type { Labels } from 'models/entities/generated/Labels';
|
|
23
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
24
|
+
import { HitContext } from '@cccsaurora/howler-ui/components/app/providers/HitProvider';
|
|
25
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
26
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
27
|
+
import type { Labels } from '@cccsaurora/howler-ui/models/entities/generated/Labels';
|
|
28
28
|
import type { FC } from 'react';
|
|
29
29
|
import { memo, useCallback, useEffect, useState } from 'react';
|
|
30
30
|
import { Trans, useTranslation } from 'react-i18next';
|
|
31
31
|
import { useContextSelector } from 'use-context-selector';
|
|
32
|
-
import { LABEL_TYPES } from 'utils/constants';
|
|
32
|
+
import { LABEL_TYPES } from '@cccsaurora/howler-ui/utils/constants';
|
|
33
33
|
|
|
34
34
|
type LabelState = {
|
|
35
35
|
category: keyof Labels;
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
Stack,
|
|
14
14
|
TextField
|
|
15
15
|
} from '@mui/material';
|
|
16
|
-
import api from 'api';
|
|
17
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
18
|
-
import { ModalContext } from 'components/app/providers/ModalProvider';
|
|
19
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
20
|
-
import useMySnackbar from 'components/hooks/useMySnackbar';
|
|
21
|
-
import type { Analytic } from 'models/entities/generated/Analytic';
|
|
22
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
16
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
17
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
18
|
+
import { ModalContext } from '@cccsaurora/howler-ui/components/app/providers/ModalProvider';
|
|
19
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
20
|
+
import useMySnackbar from '@cccsaurora/howler-ui/components/hooks/useMySnackbar';
|
|
21
|
+
import type { Analytic } from '@cccsaurora/howler-ui/models/entities/generated/Analytic';
|
|
22
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
23
23
|
import type { FC } from 'react';
|
|
24
24
|
import { memo, useCallback, useContext, useEffect, useState } from 'react';
|
|
25
25
|
import { useTranslation } from 'react-i18next';
|
|
26
|
-
import { safeStringPropertyCompare } from 'utils/stringUtils';
|
|
26
|
+
import { safeStringPropertyCompare } from '@cccsaurora/howler-ui/utils/stringUtils';
|
|
27
27
|
import HowlerCard from '../display/HowlerCard';
|
|
28
28
|
import ConfirmNotebookModal from '../display/modals/ConfirmNotebookModal';
|
|
29
29
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Box, Divider, Typography } from '@mui/material';
|
|
2
|
-
import useMatchers from 'components/app/hooks/useMatchers';
|
|
3
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
4
|
-
import type { Template } from 'models/entities/generated/Template';
|
|
5
|
-
import type { WithMetadata } from 'models/WithMetadata';
|
|
2
|
+
import useMatchers from '@cccsaurora/howler-ui/components/app/hooks/useMatchers';
|
|
3
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
4
|
+
import type { Template } from '@cccsaurora/howler-ui/models/entities/generated/Template';
|
|
5
|
+
import type { WithMetadata } from '@cccsaurora/howler-ui/models/WithMetadata';
|
|
6
6
|
import type { FC } from 'react';
|
|
7
7
|
import { createElement, memo, useEffect, useMemo, useState } from 'react';
|
|
8
8
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { InsertLink } from '@mui/icons-material';
|
|
2
2
|
import { Box, IconButton, Skeleton } from '@mui/material';
|
|
3
|
-
import useMatchers from 'components/app/hooks/useMatchers';
|
|
4
|
-
import ErrorBoundary from 'components/routes/ErrorBoundary';
|
|
5
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
6
|
-
import type { Overview } from 'models/entities/generated/Overview';
|
|
3
|
+
import useMatchers from '@cccsaurora/howler-ui/components/app/hooks/useMatchers';
|
|
4
|
+
import ErrorBoundary from '@cccsaurora/howler-ui/components/routes/ErrorBoundary';
|
|
5
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
6
|
+
import type { Overview } from '@cccsaurora/howler-ui/models/entities/generated/Overview';
|
|
7
7
|
import type { FC } from 'react';
|
|
8
8
|
import { memo, useEffect, useMemo, useState } from 'react';
|
|
9
9
|
import { Link } from 'react-router-dom';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Box, Chip, Divider, Stack, Tooltip, Typography, useMediaQuery, useTheme } from '@mui/material';
|
|
2
|
-
import type { AppSearchItemRendererOption } from 'commons/components/app/AppSearchService';
|
|
3
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
2
|
+
import type { AppSearchItemRendererOption } from '@cccsaurora/howler-ui/commons/components/app/AppSearchService';
|
|
3
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
4
4
|
import type { FC } from 'react';
|
|
5
5
|
import { memo, useMemo } from 'react';
|
|
6
6
|
import { Trans, useTranslation } from 'react-i18next';
|
|
7
|
-
import { ESCALATION_COLORS, PROVIDER_COLORS, STATUS_COLORS } from 'utils/constants';
|
|
8
|
-
import { formatDate, stringToColor } from 'utils/utils';
|
|
7
|
+
import { ESCALATION_COLORS, PROVIDER_COLORS, STATUS_COLORS } from '@cccsaurora/howler-ui/utils/constants';
|
|
8
|
+
import { formatDate, stringToColor } from '@cccsaurora/howler-ui/utils/utils';
|
|
9
9
|
|
|
10
10
|
type QuickSearchProps = {
|
|
11
11
|
hit: Hit;
|
|
@@ -16,24 +16,24 @@ import {
|
|
|
16
16
|
Tooltip,
|
|
17
17
|
Typography
|
|
18
18
|
} from '@mui/material';
|
|
19
|
-
import api from 'api';
|
|
20
|
-
import type { HowlerSearchResponse } from 'api/search';
|
|
21
|
-
import useMatchers from 'components/app/hooks/useMatchers';
|
|
22
|
-
import { FieldContext } from 'components/app/providers/FieldProvider';
|
|
23
|
-
import { HitSearchContext } from 'components/app/providers/HitSearchProvider';
|
|
24
|
-
import { ParameterContext } from 'components/app/providers/ParameterProvider';
|
|
25
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
26
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
27
|
-
import useMySnackbar from 'components/hooks/useMySnackbar';
|
|
19
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
20
|
+
import type { HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
21
|
+
import useMatchers from '@cccsaurora/howler-ui/components/app/hooks/useMatchers';
|
|
22
|
+
import { FieldContext } from '@cccsaurora/howler-ui/components/app/providers/FieldProvider';
|
|
23
|
+
import { HitSearchContext } from '@cccsaurora/howler-ui/components/app/providers/HitSearchProvider';
|
|
24
|
+
import { ParameterContext } from '@cccsaurora/howler-ui/components/app/providers/ParameterProvider';
|
|
25
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
26
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
27
|
+
import useMySnackbar from '@cccsaurora/howler-ui/components/hooks/useMySnackbar';
|
|
28
28
|
import { isEmpty } from 'lodash-es';
|
|
29
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
30
|
-
import type { WithMetadata } from 'models/WithMetadata';
|
|
29
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
30
|
+
import type { WithMetadata } from '@cccsaurora/howler-ui/models/WithMetadata';
|
|
31
31
|
import type { FC } from 'react';
|
|
32
32
|
import { memo, useCallback, useContext, useEffect, useState } from 'react';
|
|
33
33
|
import { useTranslation } from 'react-i18next';
|
|
34
34
|
import { useContextSelector } from 'use-context-selector';
|
|
35
|
-
import { StorageKey } from 'utils/constants';
|
|
36
|
-
import { convertCustomDateRangeToLucene, convertDateToLucene, getTimeRange } from 'utils/utils';
|
|
35
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
36
|
+
import { convertCustomDateRangeToLucene, convertDateToLucene, getTimeRange } from '@cccsaurora/howler-ui/utils/utils';
|
|
37
37
|
import PluginChip from '../PluginChip';
|
|
38
38
|
import HitGraph from './aggregate/HitGraph';
|
|
39
39
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { KeyboardArrowUp } from '@mui/icons-material';
|
|
2
2
|
import { CardContent, CardHeader, Divider, Skeleton, Stack, Tooltip, Typography, useTheme } from '@mui/material';
|
|
3
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
4
|
-
import useMyUtils from 'components/hooks/useMyUtils';
|
|
5
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
6
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
7
|
-
import type { Log } from 'models/entities/generated/Log';
|
|
3
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
4
|
+
import useMyUtils from '@cccsaurora/howler-ui/components/hooks/useMyUtils';
|
|
5
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
6
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
7
|
+
import type { Log } from '@cccsaurora/howler-ui/models/entities/generated/Log';
|
|
8
8
|
import type { FC } from 'react';
|
|
9
9
|
import { useEffect, useMemo } from 'react';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
|
-
import { StorageKey } from 'utils/constants';
|
|
12
|
-
import { compareTimestamp, twitterShort } from 'utils/utils';
|
|
11
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
12
|
+
import { compareTimestamp, twitterShort } from '@cccsaurora/howler-ui/utils/utils';
|
|
13
13
|
import HowlerAvatar from '../display/HowlerAvatar';
|
|
14
14
|
import HowlerCard from '../display/HowlerCard';
|
|
15
15
|
import Markdown from '../display/Markdown';
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
Stack,
|
|
10
10
|
Typography
|
|
11
11
|
} from '@mui/material';
|
|
12
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
12
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
13
13
|
import { capitalize } from 'lodash-es';
|
|
14
14
|
import type { FC } from 'react';
|
|
15
15
|
import { useContext, useMemo } from 'react';
|
|
@@ -13,15 +13,15 @@ import {
|
|
|
13
13
|
alpha,
|
|
14
14
|
useTheme
|
|
15
15
|
} from '@mui/material';
|
|
16
|
-
import api from 'api';
|
|
16
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
17
17
|
import type { Chart, ChartDataset, ChartOptions } from 'chart.js';
|
|
18
18
|
import 'chartjs-adapter-dayjs-4';
|
|
19
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
20
|
-
import { HitContext } from 'components/app/providers/HitProvider';
|
|
21
|
-
import { HitSearchContext } from 'components/app/providers/HitSearchProvider';
|
|
22
|
-
import { ParameterContext } from 'components/app/providers/ParameterProvider';
|
|
23
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
24
|
-
import useMyChart from 'components/hooks/useMyChart';
|
|
19
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
20
|
+
import { HitContext } from '@cccsaurora/howler-ui/components/app/providers/HitProvider';
|
|
21
|
+
import { HitSearchContext } from '@cccsaurora/howler-ui/components/app/providers/HitSearchProvider';
|
|
22
|
+
import { ParameterContext } from '@cccsaurora/howler-ui/components/app/providers/ParameterProvider';
|
|
23
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
24
|
+
import useMyChart from '@cccsaurora/howler-ui/components/hooks/useMyChart';
|
|
25
25
|
import dayjs from 'dayjs';
|
|
26
26
|
import { capitalize } from 'lodash-es';
|
|
27
27
|
import type { FC } from 'react';
|
|
@@ -29,7 +29,7 @@ import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'r
|
|
|
29
29
|
import { Scatter } from 'react-chartjs-2';
|
|
30
30
|
import { useTranslation } from 'react-i18next';
|
|
31
31
|
import { useContextSelector } from 'use-context-selector';
|
|
32
|
-
import { convertCustomDateRangeToLucene, convertDateToLucene, stringToColor } from 'utils/utils';
|
|
32
|
+
import { convertCustomDateRangeToLucene, convertDateToLucene, stringToColor } from '@cccsaurora/howler-ui/utils/utils';
|
|
33
33
|
|
|
34
34
|
const MAX_ROWS = 2500;
|
|
35
35
|
const OVERRIDE_ROWS = 10000;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { avatarClasses, AvatarGroup, Chip, Stack } from '@mui/material';
|
|
2
|
-
import { useAppUser } from 'commons/components/app/hooks';
|
|
3
|
-
import HowlerAvatar from 'components/elements/display/HowlerAvatar';
|
|
4
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
5
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
2
|
+
import { useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
3
|
+
import HowlerAvatar from '@cccsaurora/howler-ui/components/elements/display/HowlerAvatar';
|
|
4
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
5
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
6
6
|
import type { FC } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { HitLayout } from '../HitLayout';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Chip, Tooltip } from '@mui/material';
|
|
2
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
2
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
3
3
|
import type { FC } from 'react';
|
|
4
|
-
import { ESCALATION_COLORS } from 'utils/constants';
|
|
4
|
+
import { ESCALATION_COLORS } from '@cccsaurora/howler-ui/utils/constants';
|
|
5
5
|
import { HitLayout } from '../HitLayout';
|
|
6
6
|
|
|
7
7
|
const EscalationChip: FC<{ hit: Hit; layout: HitLayout; hideLabel?: boolean }> = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Chip, Tooltip } from '@mui/material';
|
|
2
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
2
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
4
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
5
5
|
import type { FC } from 'react';
|
|
6
6
|
import { useContext, useMemo } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
|
-
import { formatDate } from 'utils/utils';
|
|
8
|
+
import { formatDate } from '@cccsaurora/howler-ui/utils/utils';
|
|
9
9
|
import { HitLayout } from '../HitLayout';
|
|
10
10
|
|
|
11
11
|
const TIMESTAMP_MESSAGES = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Info, Language, Lock, Person } from '@mui/icons-material';
|
|
2
2
|
import { Box, IconButton, Tooltip, Typography } from '@mui/material';
|
|
3
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
4
|
-
import PluginTypography from 'components/elements/PluginTypography';
|
|
3
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
4
|
+
import PluginTypography from '@cccsaurora/howler-ui/components/elements/PluginTypography';
|
|
5
5
|
import { get, isObject } from 'lodash-es';
|
|
6
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
7
|
-
import type { Template } from 'models/entities/generated/Template';
|
|
6
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
7
|
+
import type { Template } from '@cccsaurora/howler-ui/models/entities/generated/Template';
|
|
8
8
|
import type { FC } from 'react';
|
|
9
9
|
import React, { memo, useCallback, useContext } from 'react';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Lock } from '@mui/icons-material';
|
|
2
2
|
import { Chip, Grid, Stack, Tooltip, Typography } from '@mui/material';
|
|
3
3
|
import { get } from 'lodash-es';
|
|
4
|
-
import type { Antivirus } from 'models/entities/generated/Antivirus';
|
|
5
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
4
|
+
import type { Antivirus } from '@cccsaurora/howler-ui/models/entities/generated/Antivirus';
|
|
5
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
6
6
|
import type { FC } from 'react';
|
|
7
7
|
import { memo } from 'react';
|
|
8
8
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Skeleton } from '@mui/material';
|
|
2
2
|
import Handlebars from 'handlebars';
|
|
3
3
|
import { isEmpty } from 'lodash-es';
|
|
4
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
5
|
-
import type { Pivot } from 'models/entities/generated/Pivot';
|
|
4
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
5
|
+
import type { Pivot } from '@cccsaurora/howler-ui/models/entities/generated/Pivot';
|
|
6
6
|
import { useMemo, type FC } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { usePluginStore } from 'react-pluggable';
|
|
9
|
-
import { flattenDeep } from 'utils/utils';
|
|
9
|
+
import { flattenDeep } from '@cccsaurora/howler-ui/utils/utils';
|
|
10
10
|
import RelatedLink from './RelatedLink';
|
|
11
11
|
|
|
12
12
|
export interface PivotLinkProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Icon, iconExists } from '@iconify/react/dist/iconify.js';
|
|
2
2
|
import Avatar from '@mui/material/Avatar';
|
|
3
|
-
import { useAppTheme } from 'commons/components/app/hooks';
|
|
4
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
3
|
+
import { useAppTheme } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
4
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
5
5
|
import { useContext, type FC } from 'react';
|
|
6
6
|
|
|
7
7
|
const RelatedIcon: FC<{ icon?: string; title?: string; href?: string; compact?: boolean }> = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Stack, Typography } from '@mui/material';
|
|
2
|
-
import HowlerCard from 'components/elements/display/HowlerCard';
|
|
2
|
+
import HowlerCard from '@cccsaurora/howler-ui/components/elements/display/HowlerCard';
|
|
3
3
|
import React, { type PropsWithChildren } from 'react';
|
|
4
4
|
import { Link } from 'react-router-dom';
|
|
5
5
|
import RelatedIcon from './RelatedIcon';
|
|
@@ -2,7 +2,7 @@ import { ArrowDownward, ArrowUpward, Language, Lock, Person } from '@mui/icons-m
|
|
|
2
2
|
import { Chip, Stack, Tooltip, Typography } from '@mui/material';
|
|
3
3
|
import { useMemo, type FC } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { convertLuceneToDate } from 'utils/utils';
|
|
5
|
+
import { convertLuceneToDate } from '@cccsaurora/howler-ui/utils/utils';
|
|
6
6
|
|
|
7
7
|
interface ViewTitleProps {
|
|
8
8
|
title?: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import api from 'api';
|
|
2
|
-
import type { HitTransitionBody } from 'api/hit';
|
|
3
|
-
import { useAppUser } from 'commons/components/app/hooks';
|
|
4
|
-
import AssignUserDrawer from 'components/app/drawers/AssignUserDrawer';
|
|
5
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
6
|
-
import { AppDrawerContext } from 'components/app/providers/AppDrawerProvider';
|
|
7
|
-
import { HitContext } from 'components/app/providers/HitProvider';
|
|
8
|
-
import { ModalContext } from 'components/app/providers/ModalProvider';
|
|
9
|
-
import RationaleModal from 'components/elements/display/modals/RationaleModal';
|
|
10
|
-
import type { ActionButton } from 'components/elements/hit/actions/SharedComponents';
|
|
11
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
12
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
1
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import type { HitTransitionBody } from '@cccsaurora/howler-ui/api/hit';
|
|
3
|
+
import { useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
4
|
+
import AssignUserDrawer from '@cccsaurora/howler-ui/components/app/drawers/AssignUserDrawer';
|
|
5
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
6
|
+
import { AppDrawerContext } from '@cccsaurora/howler-ui/components/app/providers/AppDrawerProvider';
|
|
7
|
+
import { HitContext } from '@cccsaurora/howler-ui/components/app/providers/HitProvider';
|
|
8
|
+
import { ModalContext } from '@cccsaurora/howler-ui/components/app/providers/ModalProvider';
|
|
9
|
+
import RationaleModal from '@cccsaurora/howler-ui/components/elements/display/modals/RationaleModal';
|
|
10
|
+
import type { ActionButton } from '@cccsaurora/howler-ui/components/elements/hit/actions/SharedComponents';
|
|
11
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
12
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
13
13
|
import { useCallback, useContext, useMemo, useState } from 'react';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
15
|
import { useContextSelector } from 'use-context-selector';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { AppSiteMapRoute } from 'commons/components/app/AppConfigs';
|
|
2
|
-
import { useAppBreadcrumbs } from 'commons/components/app/hooks';
|
|
3
|
-
import { HitContext } from 'components/app/providers/HitProvider';
|
|
4
|
-
import { HitSearchContext } from 'components/app/providers/HitSearchProvider';
|
|
5
|
-
import { ParameterContext } from 'components/app/providers/ParameterProvider';
|
|
6
|
-
import useMySitemap from 'components/hooks/useMySitemap';
|
|
7
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
1
|
+
import type { AppSiteMapRoute } from '@cccsaurora/howler-ui/commons/components/app/AppConfigs';
|
|
2
|
+
import { useAppBreadcrumbs } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
3
|
+
import { HitContext } from '@cccsaurora/howler-ui/components/app/providers/HitProvider';
|
|
4
|
+
import { HitSearchContext } from '@cccsaurora/howler-ui/components/app/providers/HitSearchProvider';
|
|
5
|
+
import { ParameterContext } from '@cccsaurora/howler-ui/components/app/providers/ParameterProvider';
|
|
6
|
+
import useMySitemap from '@cccsaurora/howler-ui/components/hooks/useMySitemap';
|
|
7
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
8
8
|
import type React from 'react';
|
|
9
9
|
import { useCallback, useState } from 'react';
|
|
10
10
|
import { useNavigate } from 'react-router-dom';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HowlerResponse } from 'api';
|
|
2
|
-
import useMySnackbar from 'components/hooks/useMySnackbar';
|
|
1
|
+
import type { HowlerResponse } from '@cccsaurora/howler-ui/api';
|
|
2
|
+
import useMySnackbar from '@cccsaurora/howler-ui/components/hooks/useMySnackbar';
|
|
3
3
|
import { useCallback, useMemo } from 'react';
|
|
4
4
|
|
|
5
5
|
type DispatchApiConfig = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import useLocalStorage from 'commons/components/utils/hooks/useLocalStorage';
|
|
2
|
-
import useLocalStorageItem from 'commons/components/utils/hooks/useLocalStorageItem';
|
|
3
|
-
import { LocalStorageContext, type LocalStorageContextType } from 'components/app/providers/LocalStorageProvider';
|
|
1
|
+
import useLocalStorage from '@cccsaurora/howler-ui/commons/components/utils/hooks/useLocalStorage';
|
|
2
|
+
import useLocalStorageItem from '@cccsaurora/howler-ui/commons/components/utils/hooks/useLocalStorageItem';
|
|
3
|
+
import { LocalStorageContext, type LocalStorageContextType } from '@cccsaurora/howler-ui/components/app/providers/LocalStorageProvider';
|
|
4
4
|
import { useContext } from 'react';
|
|
5
|
-
import type { StorageKey } from 'utils/constants';
|
|
6
|
-
import { MY_LOCAL_STORAGE_PREFIX } from 'utils/constants';
|
|
5
|
+
import type { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
6
|
+
import { MY_LOCAL_STORAGE_PREFIX } from '@cccsaurora/howler-ui/utils/constants';
|
|
7
7
|
|
|
8
8
|
const useMyLocalStorage = () => {
|
|
9
9
|
return useLocalStorage(MY_LOCAL_STORAGE_PREFIX);
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
Terminal,
|
|
24
24
|
Topic
|
|
25
25
|
} from '@mui/icons-material';
|
|
26
|
-
import { AppBrand } from 'branding/AppBrand';
|
|
27
|
-
import type { AppLeftNavElement, AppPreferenceConfigs } from 'commons/components/app/AppConfigs';
|
|
28
|
-
import Classification from 'components/elements/display/Classification';
|
|
29
|
-
import DocumentationButton from 'components/elements/display/DocumentationButton';
|
|
30
|
-
import howlerPluginStore from 'plugins/store';
|
|
26
|
+
import { AppBrand } from '@cccsaurora/howler-ui/branding/AppBrand';
|
|
27
|
+
import type { AppLeftNavElement, AppPreferenceConfigs } from '@cccsaurora/howler-ui/commons/components/app/AppConfigs';
|
|
28
|
+
import Classification from '@cccsaurora/howler-ui/components/elements/display/Classification';
|
|
29
|
+
import DocumentationButton from '@cccsaurora/howler-ui/components/elements/display/DocumentationButton';
|
|
30
|
+
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
31
31
|
import { useMemo } from 'react';
|
|
32
|
-
import AppMenuBuilder from 'utils/menuUtils';
|
|
32
|
+
import AppMenuBuilder from '@cccsaurora/howler-ui/utils/menuUtils';
|
|
33
33
|
|
|
34
34
|
// This is your App Name that will be displayed in the left drawer and the top navbar
|
|
35
35
|
const APP_NAME = 'howler';
|