@cccsaurora/howler-ui 2.14.0-dev.264 → 2.14.0-dev.266
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 +4 -4
- 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/PageCenter.tsx +2 -2
- package/commons/components/pages/PageContent.tsx +1 -1
- package/commons/components/pages/PageFullScreen.tsx +3 -3
- package/commons/components/pages/PageFullWidth.tsx +1 -1
- 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 +3 -3
- package/commons/components/topnav/ThemeSelectionIcon.tsx +2 -2
- package/commons/components/topnav/UserProfile.tsx +4 -4
- 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 +577 -604
- 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,6 +1,6 @@
|
|
|
1
1
|
import { Autocomplete, MenuItem, Select, Stack, TextField } from '@mui/material';
|
|
2
|
-
import { ParameterContext } from 'components/app/providers/ParameterProvider';
|
|
3
|
-
import { ViewContext } from 'components/app/providers/ViewProvider';
|
|
2
|
+
import { ParameterContext } from '@cccsaurora/howler-ui/components/app/providers/ParameterProvider';
|
|
3
|
+
import { ViewContext } from '@cccsaurora/howler-ui/components/app/providers/ViewProvider';
|
|
4
4
|
import type { FC } from 'react';
|
|
5
5
|
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Box, Divider, Stack, type SxProps } from '@mui/material';
|
|
2
|
-
import { HitSearchContext } from 'components/app/providers/HitSearchProvider';
|
|
3
|
-
import { ViewContext } from 'components/app/providers/ViewProvider';
|
|
2
|
+
import { HitSearchContext } from '@cccsaurora/howler-ui/components/app/providers/HitSearchProvider';
|
|
3
|
+
import { ViewContext } from '@cccsaurora/howler-ui/components/app/providers/ViewProvider';
|
|
4
4
|
import { memo, type FC } from 'react';
|
|
5
5
|
import { useContextSelector } from 'use-context-selector';
|
|
6
6
|
import CustomSpan from './CustomSpan';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Autocomplete, TextField } from '@mui/material';
|
|
2
|
-
import { ParameterContext } from 'components/app/providers/ParameterProvider';
|
|
3
|
-
import { ViewContext } from 'components/app/providers/ViewProvider';
|
|
2
|
+
import { ParameterContext } from '@cccsaurora/howler-ui/components/app/providers/ParameterProvider';
|
|
3
|
+
import { ViewContext } from '@cccsaurora/howler-ui/components/app/providers/ViewProvider';
|
|
4
4
|
import type { FC } from 'react';
|
|
5
5
|
import { memo, useEffect } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { useLocation } from 'react-router-dom';
|
|
8
8
|
import { useContextSelector } from 'use-context-selector';
|
|
9
|
-
import { convertLuceneToDate } from 'utils/utils';
|
|
9
|
+
import { convertLuceneToDate } from '@cccsaurora/howler-ui/utils/utils';
|
|
10
10
|
|
|
11
11
|
const DATE_RANGES = [
|
|
12
12
|
'date.range.1.day',
|
|
@@ -14,40 +14,40 @@ import {
|
|
|
14
14
|
useMediaQuery,
|
|
15
15
|
useTheme
|
|
16
16
|
} from '@mui/material';
|
|
17
|
-
import PageCenter from 'commons/components/pages/PageCenter';
|
|
18
|
-
import useMatchers from 'components/app/hooks/useMatchers';
|
|
19
|
-
import { HitContext } from 'components/app/providers/HitProvider';
|
|
20
|
-
import FlexOne from 'components/elements/addons/layout/FlexOne';
|
|
21
|
-
import HowlerCard from 'components/elements/display/HowlerCard';
|
|
22
|
-
import BundleButton from 'components/elements/display/icons/BundleButton';
|
|
23
|
-
import SocketBadge from 'components/elements/display/icons/SocketBadge';
|
|
24
|
-
import JSONViewer from 'components/elements/display/json/JSONViewer';
|
|
25
|
-
import HitActions from 'components/elements/hit/HitActions';
|
|
26
|
-
import HitBanner from 'components/elements/hit/HitBanner';
|
|
27
|
-
import HitComments from 'components/elements/hit/HitComments';
|
|
28
|
-
import HitDetails from 'components/elements/hit/HitDetails';
|
|
29
|
-
import HitLabels from 'components/elements/hit/HitLabels';
|
|
30
|
-
import { HitLayout } from 'components/elements/hit/HitLayout';
|
|
31
|
-
import HitNotebooks from 'components/elements/hit/HitNotebooks';
|
|
32
|
-
import HitOutline from 'components/elements/hit/HitOutline';
|
|
33
|
-
import HitOverview from 'components/elements/hit/HitOverview';
|
|
34
|
-
import HitRelated from 'components/elements/hit/HitRelated';
|
|
35
|
-
import HitWorklog from 'components/elements/hit/HitWorklog';
|
|
36
|
-
import PivotLink from 'components/elements/hit/related/PivotLink';
|
|
37
|
-
import RelatedLink from 'components/elements/hit/related/RelatedLink';
|
|
38
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
39
|
-
import useMyUserList from 'components/hooks/useMyUserList';
|
|
17
|
+
import PageCenter from '@cccsaurora/howler-ui/commons/components/pages/PageCenter';
|
|
18
|
+
import useMatchers from '@cccsaurora/howler-ui/components/app/hooks/useMatchers';
|
|
19
|
+
import { HitContext } from '@cccsaurora/howler-ui/components/app/providers/HitProvider';
|
|
20
|
+
import FlexOne from '@cccsaurora/howler-ui/components/elements/addons/layout/FlexOne';
|
|
21
|
+
import HowlerCard from '@cccsaurora/howler-ui/components/elements/display/HowlerCard';
|
|
22
|
+
import BundleButton from '@cccsaurora/howler-ui/components/elements/display/icons/BundleButton';
|
|
23
|
+
import SocketBadge from '@cccsaurora/howler-ui/components/elements/display/icons/SocketBadge';
|
|
24
|
+
import JSONViewer from '@cccsaurora/howler-ui/components/elements/display/json/JSONViewer';
|
|
25
|
+
import HitActions from '@cccsaurora/howler-ui/components/elements/hit/HitActions';
|
|
26
|
+
import HitBanner from '@cccsaurora/howler-ui/components/elements/hit/HitBanner';
|
|
27
|
+
import HitComments from '@cccsaurora/howler-ui/components/elements/hit/HitComments';
|
|
28
|
+
import HitDetails from '@cccsaurora/howler-ui/components/elements/hit/HitDetails';
|
|
29
|
+
import HitLabels from '@cccsaurora/howler-ui/components/elements/hit/HitLabels';
|
|
30
|
+
import { HitLayout } from '@cccsaurora/howler-ui/components/elements/hit/HitLayout';
|
|
31
|
+
import HitNotebooks from '@cccsaurora/howler-ui/components/elements/hit/HitNotebooks';
|
|
32
|
+
import HitOutline from '@cccsaurora/howler-ui/components/elements/hit/HitOutline';
|
|
33
|
+
import HitOverview from '@cccsaurora/howler-ui/components/elements/hit/HitOverview';
|
|
34
|
+
import HitRelated from '@cccsaurora/howler-ui/components/elements/hit/HitRelated';
|
|
35
|
+
import HitWorklog from '@cccsaurora/howler-ui/components/elements/hit/HitWorklog';
|
|
36
|
+
import PivotLink from '@cccsaurora/howler-ui/components/elements/hit/related/PivotLink';
|
|
37
|
+
import RelatedLink from '@cccsaurora/howler-ui/components/elements/hit/related/RelatedLink';
|
|
38
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
39
|
+
import useMyUserList from '@cccsaurora/howler-ui/components/hooks/useMyUserList';
|
|
40
40
|
import uniqBy from 'lodash-es/uniqBy';
|
|
41
|
-
import type { Analytic } from 'models/entities/generated/Analytic';
|
|
42
|
-
import type { Dossier } from 'models/entities/generated/Dossier';
|
|
41
|
+
import type { Analytic } from '@cccsaurora/howler-ui/models/entities/generated/Analytic';
|
|
42
|
+
import type { Dossier } from '@cccsaurora/howler-ui/models/entities/generated/Dossier';
|
|
43
43
|
import type { FC } from 'react';
|
|
44
44
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
45
45
|
import { useTranslation } from 'react-i18next';
|
|
46
46
|
import { useNavigate, useParams } from 'react-router-dom';
|
|
47
47
|
import { useContextSelector } from 'use-context-selector';
|
|
48
|
-
import { StorageKey } from 'utils/constants';
|
|
49
|
-
import { getUserList } from 'utils/hitFunctions';
|
|
50
|
-
import { tryParse } from 'utils/utils';
|
|
48
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
49
|
+
import { getUserList } from '@cccsaurora/howler-ui/utils/hitFunctions';
|
|
50
|
+
import { tryParse } from '@cccsaurora/howler-ui/utils/utils';
|
|
51
51
|
import LeadRenderer from './LeadRenderer';
|
|
52
52
|
|
|
53
53
|
export enum Orientation {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Box, Divider, Stack, Typography } from '@mui/material';
|
|
2
|
-
import HandlebarsMarkdown from 'components/elements/display/HandlebarsMarkdown';
|
|
3
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
4
|
-
import type { Lead } from 'models/entities/generated/Lead';
|
|
2
|
+
import HandlebarsMarkdown from '@cccsaurora/howler-ui/components/elements/display/HandlebarsMarkdown';
|
|
3
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
4
|
+
import type { Lead } from '@cccsaurora/howler-ui/models/entities/generated/Lead';
|
|
5
5
|
import { memo, type FC } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { usePluginStore } from 'react-pluggable';
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
TextField,
|
|
17
17
|
Typography
|
|
18
18
|
} from '@mui/material';
|
|
19
|
-
import api from 'api';
|
|
20
|
-
import { ViewContext } from 'components/app/providers/ViewProvider';
|
|
21
|
-
import CustomButton from 'components/elements/addons/buttons/CustomButton';
|
|
22
|
-
import type { Analytic } from 'models/entities/generated/Analytic';
|
|
23
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
19
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
20
|
+
import { ViewContext } from '@cccsaurora/howler-ui/components/app/providers/ViewProvider';
|
|
21
|
+
import CustomButton from '@cccsaurora/howler-ui/components/elements/addons/buttons/CustomButton';
|
|
22
|
+
import type { Analytic } from '@cccsaurora/howler-ui/models/entities/generated/Analytic';
|
|
23
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
24
24
|
import type { FC } from 'react';
|
|
25
25
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
26
26
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CenterFocusWeak, OpenInNew } from '@mui/icons-material';
|
|
2
2
|
import { Box, Card, CardContent, IconButton, Skeleton, Stack, Tooltip, Typography } from '@mui/material';
|
|
3
3
|
import type { Chart } from 'chart.js';
|
|
4
|
-
import { AnalyticContext } from 'components/app/providers/AnalyticProvider';
|
|
5
|
-
import FlexOne from 'components/elements/addons/layout/FlexOne';
|
|
6
|
-
import type { Analytic } from 'models/entities/generated/Analytic';
|
|
4
|
+
import { AnalyticContext } from '@cccsaurora/howler-ui/components/app/providers/AnalyticProvider';
|
|
5
|
+
import FlexOne from '@cccsaurora/howler-ui/components/elements/addons/layout/FlexOne';
|
|
6
|
+
import type { Analytic } from '@cccsaurora/howler-ui/models/entities/generated/Analytic';
|
|
7
7
|
import type { FC } from 'react';
|
|
8
8
|
import { useContext, useEffect, useRef, useState } from 'react';
|
|
9
9
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OpenInNew } from '@mui/icons-material';
|
|
2
2
|
import { Card, CardContent, IconButton, Skeleton, Stack, Typography } from '@mui/material';
|
|
3
|
-
import api from 'api';
|
|
4
|
-
import AppListEmpty from 'commons/components/display/AppListEmpty';
|
|
5
|
-
import { ViewContext } from 'components/app/providers/ViewProvider';
|
|
6
|
-
import HitBanner from 'components/elements/hit/HitBanner';
|
|
7
|
-
import { HitLayout } from 'components/elements/hit/HitLayout';
|
|
8
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
9
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
3
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
4
|
+
import AppListEmpty from '@cccsaurora/howler-ui/commons/components/display/AppListEmpty';
|
|
5
|
+
import { ViewContext } from '@cccsaurora/howler-ui/components/app/providers/ViewProvider';
|
|
6
|
+
import HitBanner from '@cccsaurora/howler-ui/components/elements/hit/HitBanner';
|
|
7
|
+
import { HitLayout } from '@cccsaurora/howler-ui/components/elements/hit/HitLayout';
|
|
8
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
9
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
10
10
|
import type { FC } from 'react';
|
|
11
11
|
import { useCallback, useEffect, useState } from 'react';
|
|
12
12
|
import { useTranslation } from 'react-i18next';
|
|
@@ -10,20 +10,20 @@ import {
|
|
|
10
10
|
import { SortableContext, arrayMove, sortableKeyboardCoordinates } from '@dnd-kit/sortable';
|
|
11
11
|
import { Cancel, Check, Close, Edit, OpenInNew } from '@mui/icons-material';
|
|
12
12
|
import { Alert, AlertTitle, CircularProgress, Grid, IconButton, Stack, Typography } from '@mui/material';
|
|
13
|
-
import api from 'api';
|
|
14
|
-
import { AppBrand } from 'branding/AppBrand';
|
|
15
|
-
import { useAppUser } from 'commons/components/app/hooks';
|
|
16
|
-
import PageCenter from 'commons/components/pages/PageCenter';
|
|
17
|
-
import CustomButton from 'components/elements/addons/buttons/CustomButton';
|
|
18
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
19
|
-
import useMyUserFunctions from 'components/hooks/useMyUserFunctions';
|
|
13
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
14
|
+
import { AppBrand } from '@cccsaurora/howler-ui/branding/AppBrand';
|
|
15
|
+
import { useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
16
|
+
import PageCenter from '@cccsaurora/howler-ui/commons/components/pages/PageCenter';
|
|
17
|
+
import CustomButton from '@cccsaurora/howler-ui/components/elements/addons/buttons/CustomButton';
|
|
18
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
19
|
+
import useMyUserFunctions from '@cccsaurora/howler-ui/components/hooks/useMyUserFunctions';
|
|
20
20
|
import dayjs from 'dayjs';
|
|
21
21
|
import isEqual from 'lodash-es/isEqual';
|
|
22
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
22
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
23
23
|
import { useCallback, useEffect, useMemo, useState, type FC } from 'react';
|
|
24
24
|
import { useTranslation } from 'react-i18next';
|
|
25
25
|
import { Link } from 'react-router-dom';
|
|
26
|
-
import { StorageKey } from 'utils/constants';
|
|
26
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
27
27
|
import ErrorBoundary from '../ErrorBoundary';
|
|
28
28
|
import AddNewCard from './AddNewCard';
|
|
29
29
|
import AnalyticCard, { type AnalyticSettings } from './AnalyticCard';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Delete } from '@mui/icons-material';
|
|
2
2
|
import { Card, IconButton, Stack, Tooltip, Typography } from '@mui/material';
|
|
3
|
-
import FlexOne from 'components/elements/addons/layout/FlexOne';
|
|
4
|
-
import HowlerAvatar from 'components/elements/display/HowlerAvatar';
|
|
5
|
-
import type { Overview } from 'models/entities/generated/Overview';
|
|
3
|
+
import FlexOne from '@cccsaurora/howler-ui/components/elements/addons/layout/FlexOne';
|
|
4
|
+
import HowlerAvatar from '@cccsaurora/howler-ui/components/elements/display/HowlerAvatar';
|
|
5
|
+
import type { Overview } from '@cccsaurora/howler-ui/models/entities/generated/Overview';
|
|
6
6
|
import type { FC } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Monaco } from '@monaco-editor/react';
|
|
2
2
|
import { useMonaco } from '@monaco-editor/react';
|
|
3
3
|
import { useTheme } from '@mui/material';
|
|
4
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
5
|
-
import ThemedEditor from 'components/elements/ThemedEditor';
|
|
4
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
5
|
+
import ThemedEditor from '@cccsaurora/howler-ui/components/elements/ThemedEditor';
|
|
6
6
|
import type { editor } from 'monaco-editor';
|
|
7
7
|
import { memo, useCallback, useContext, useEffect, useMemo, type FC } from 'react';
|
|
8
8
|
import { conf, language } from './markdownExtendedTokenProvider';
|
|
@@ -14,25 +14,25 @@ import {
|
|
|
14
14
|
Tooltip,
|
|
15
15
|
useTheme
|
|
16
16
|
} from '@mui/material';
|
|
17
|
-
import api from 'api';
|
|
18
|
-
import PageCenter from 'commons/components/pages/PageCenter';
|
|
17
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
18
|
+
import PageCenter from '@cccsaurora/howler-ui/commons/components/pages/PageCenter';
|
|
19
19
|
import { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
20
20
|
import { useTranslation } from 'react-i18next';
|
|
21
21
|
|
|
22
22
|
import { Check, DarkMode, Delete, SsidChart, WbSunny } from '@mui/icons-material';
|
|
23
|
-
import { useApp } from 'commons/components/app/hooks';
|
|
24
|
-
import AppInfoPanel from 'commons/components/display/AppInfoPanel';
|
|
25
|
-
import useThemeBuilder from 'commons/components/utils/hooks/useThemeBuilder';
|
|
26
|
-
import { OverviewContext } from 'components/app/providers/OverviewProvider';
|
|
27
|
-
import HitOverview from 'components/elements/hit/HitOverview';
|
|
28
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
29
|
-
import useMyTheme from 'components/hooks/useMyTheme';
|
|
30
|
-
import type { Analytic } from 'models/entities/generated/Analytic';
|
|
31
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
32
|
-
import type { Overview } from 'models/entities/generated/Overview';
|
|
23
|
+
import { useApp } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
24
|
+
import AppInfoPanel from '@cccsaurora/howler-ui/commons/components/display/AppInfoPanel';
|
|
25
|
+
import useThemeBuilder from '@cccsaurora/howler-ui/commons/components/utils/hooks/useThemeBuilder';
|
|
26
|
+
import { OverviewContext } from '@cccsaurora/howler-ui/components/app/providers/OverviewProvider';
|
|
27
|
+
import HitOverview from '@cccsaurora/howler-ui/components/elements/hit/HitOverview';
|
|
28
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
29
|
+
import useMyTheme from '@cccsaurora/howler-ui/components/hooks/useMyTheme';
|
|
30
|
+
import type { Analytic } from '@cccsaurora/howler-ui/models/entities/generated/Analytic';
|
|
31
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
32
|
+
import type { Overview } from '@cccsaurora/howler-ui/models/entities/generated/Overview';
|
|
33
33
|
import { useSearchParams } from 'react-router-dom';
|
|
34
34
|
import hitsData from 'utils/hit.json';
|
|
35
|
-
import { sanitizeLuceneQuery } from 'utils/stringUtils';
|
|
35
|
+
import { sanitizeLuceneQuery } from '@cccsaurora/howler-ui/utils/stringUtils';
|
|
36
36
|
import OverviewEditor from './OverviewEditor';
|
|
37
37
|
import { useStartingTemplate } from './startingTemplate';
|
|
38
38
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Article } from '@mui/icons-material';
|
|
2
2
|
import { Typography } from '@mui/material';
|
|
3
|
-
import api from 'api';
|
|
4
|
-
import type { HowlerSearchResponse } from 'api/search';
|
|
5
|
-
import { TuiListProvider, type TuiListItem, type TuiListItemProps } from 'components/elements/addons/lists';
|
|
6
|
-
import { TuiListMethodContext, type TuiListMethodsState } from 'components/elements/addons/lists/TuiListProvider';
|
|
7
|
-
import ItemManager from 'components/elements/display/ItemManager';
|
|
8
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
9
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
10
|
-
import useMySnackbar from 'components/hooks/useMySnackbar';
|
|
11
|
-
import type { Overview } from 'models/entities/generated/Overview';
|
|
3
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
4
|
+
import type { HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
5
|
+
import { TuiListProvider, type TuiListItem, type TuiListItemProps } from '@cccsaurora/howler-ui/components/elements/addons/lists';
|
|
6
|
+
import { TuiListMethodContext, type TuiListMethodsState } from '@cccsaurora/howler-ui/components/elements/addons/lists/TuiListProvider';
|
|
7
|
+
import ItemManager from '@cccsaurora/howler-ui/components/elements/display/ItemManager';
|
|
8
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
9
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
10
|
+
import useMySnackbar from '@cccsaurora/howler-ui/components/hooks/useMySnackbar';
|
|
11
|
+
import type { Overview } from '@cccsaurora/howler-ui/models/entities/generated/Overview';
|
|
12
12
|
import { useCallback, useContext, useEffect, useState, type FC } from 'react';
|
|
13
13
|
import { useTranslation } from 'react-i18next';
|
|
14
14
|
import { useNavigate, useSearchParams } from 'react-router-dom';
|
|
15
|
-
import { StorageKey } from 'utils/constants';
|
|
15
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
16
16
|
import OverviewCard from './OverviewCard';
|
|
17
17
|
|
|
18
18
|
const OverviewsBase: FC = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useHelpers } from 'components/elements/display/handlebars/helpers';
|
|
1
|
+
import { useHelpers } from '@cccsaurora/howler-ui/components/elements/display/handlebars/helpers';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import TEMPLATE_EN from './template/en.md';
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
ToggleButtonGroup,
|
|
11
11
|
Typography
|
|
12
12
|
} from '@mui/material';
|
|
13
|
-
import { HitLayout } from 'components/elements/hit/HitLayout';
|
|
14
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
15
|
-
import howlerPluginStore from 'plugins/store';
|
|
13
|
+
import { HitLayout } from '@cccsaurora/howler-ui/components/elements/hit/HitLayout';
|
|
14
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
15
|
+
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
16
16
|
import type { FC } from 'react';
|
|
17
17
|
import { useTranslation } from 'react-i18next';
|
|
18
18
|
import { usePluginStore } from 'react-pluggable';
|
|
19
|
-
import { StorageKey } from 'utils/constants';
|
|
19
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
20
20
|
import EditRow from '../../elements/EditRow';
|
|
21
21
|
import SettingsSection from './SettingsSection';
|
|
22
22
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Add, Check, ChevronRight, Clear } from '@mui/icons-material';
|
|
2
2
|
import { Chip, CircularProgress, Grid, TableCell, TableRow, Typography } from '@mui/material';
|
|
3
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
4
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
5
|
-
import howlerPluginStore from 'plugins/store';
|
|
3
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
4
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
5
|
+
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
6
6
|
import type { FC } from 'react';
|
|
7
7
|
import { useCallback, useContext, useState } from 'react';
|
|
8
8
|
import { useTranslation } from 'react-i18next';
|
|
9
9
|
import { usePluginStore } from 'react-pluggable';
|
|
10
|
-
import { delay } from 'utils/utils';
|
|
10
|
+
import { delay } from '@cccsaurora/howler-ui/utils/utils';
|
|
11
11
|
import EditRow from '../../elements/EditRow';
|
|
12
12
|
import SettingsSection from './SettingsSection';
|
|
13
13
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Add } from '@mui/icons-material';
|
|
2
2
|
import { Chip, Grid, IconButton, TableCell, TableRow } from '@mui/material';
|
|
3
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
4
|
-
import useMyLocalStorage from 'components/hooks/useMyLocalStorage';
|
|
3
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
4
|
+
import useMyLocalStorage from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
5
5
|
import dayjs from 'dayjs';
|
|
6
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
7
|
-
import howlerPluginStore from 'plugins/store';
|
|
6
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
7
|
+
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
8
8
|
import type { FC } from 'react';
|
|
9
9
|
import { useContext, useMemo } from 'react';
|
|
10
10
|
import { Trans, useTranslation } from 'react-i18next';
|
|
11
11
|
import { usePluginStore } from 'react-pluggable';
|
|
12
|
-
import { StorageKey } from 'utils/constants';
|
|
12
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
13
13
|
import EditRow from '../../elements/EditRow';
|
|
14
14
|
import SettingsSection from './SettingsSection';
|
|
15
15
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useAppUser } from 'commons/components/app/hooks';
|
|
2
|
-
import UserPageWrapper from 'components/elements/display/UserPageWrapper';
|
|
3
|
-
import useMyLocalStorage from 'components/hooks/useMyLocalStorage';
|
|
4
|
-
import useMyUserFunctions from 'components/hooks/useMyUserFunctions';
|
|
5
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
1
|
+
import { useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
2
|
+
import UserPageWrapper from '@cccsaurora/howler-ui/components/elements/display/UserPageWrapper';
|
|
3
|
+
import useMyLocalStorage from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
4
|
+
import useMyUserFunctions from '@cccsaurora/howler-ui/components/hooks/useMyUserFunctions';
|
|
5
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
6
6
|
import { useCallback, useMemo, type FC } from 'react';
|
|
7
|
-
import { StorageKey } from 'utils/constants';
|
|
7
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
8
8
|
import AdminSection from './AdminSection';
|
|
9
9
|
import LocalSection from './LocalSection';
|
|
10
10
|
import ProfileSection from './ProfileSection';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Language, Lock, Person } from '@mui/icons-material';
|
|
2
2
|
import { Card, Divider, Stack, Tooltip, Typography } from '@mui/material';
|
|
3
|
-
import type { Template } from 'models/entities/generated/Template';
|
|
3
|
+
import type { Template } from '@cccsaurora/howler-ui/models/entities/generated/Template';
|
|
4
4
|
import type { FC } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
|
|
@@ -2,11 +2,11 @@ import { closestCorners, DndContext, type DragEndEvent } from '@dnd-kit/core';
|
|
|
2
2
|
import { arrayMove, SortableContext } from '@dnd-kit/sortable';
|
|
3
3
|
import { Add } from '@mui/icons-material';
|
|
4
4
|
import { Button, Stack, Typography } from '@mui/material';
|
|
5
|
-
import { ApiConfigContext } from 'components/app/providers/ApiConfigProvider';
|
|
6
|
-
import { FieldContext } from 'components/app/providers/FieldProvider';
|
|
7
|
-
import Phrase from 'components/elements/addons/search/phrase/Phrase';
|
|
5
|
+
import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
|
|
6
|
+
import { FieldContext } from '@cccsaurora/howler-ui/components/app/providers/FieldProvider';
|
|
7
|
+
import Phrase from '@cccsaurora/howler-ui/components/elements/addons/search/phrase/Phrase';
|
|
8
8
|
import { get, isObject } from 'lodash-es';
|
|
9
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
9
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
10
10
|
import { memo, useCallback, useContext, useEffect, useState } from 'react';
|
|
11
11
|
import { useTranslation } from 'react-i18next';
|
|
12
12
|
import TemplateDnD from './TemplateDnD';
|
|
@@ -11,23 +11,23 @@ import {
|
|
|
11
11
|
ToggleButtonGroup,
|
|
12
12
|
Tooltip
|
|
13
13
|
} from '@mui/material';
|
|
14
|
-
import api from 'api';
|
|
15
|
-
import PageCenter from 'commons/components/pages/PageCenter';
|
|
16
|
-
import TemplateEditor from 'components/routes/templates/TemplateEditor';
|
|
14
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
15
|
+
import PageCenter from '@cccsaurora/howler-ui/commons/components/pages/PageCenter';
|
|
16
|
+
import TemplateEditor from '@cccsaurora/howler-ui/components/routes/templates/TemplateEditor';
|
|
17
17
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
18
18
|
import { useTranslation } from 'react-i18next';
|
|
19
19
|
|
|
20
20
|
import { Check, Delete, SsidChart } from '@mui/icons-material';
|
|
21
|
-
import AppInfoPanel from 'commons/components/display/AppInfoPanel';
|
|
22
|
-
import { DEFAULT_FIELDS } from 'components/elements/hit/HitOutline';
|
|
23
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
21
|
+
import AppInfoPanel from '@cccsaurora/howler-ui/commons/components/display/AppInfoPanel';
|
|
22
|
+
import { DEFAULT_FIELDS } from '@cccsaurora/howler-ui/components/elements/hit/HitOutline';
|
|
23
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
24
24
|
import isEqual from 'lodash-es/isEqual';
|
|
25
|
-
import type { Analytic } from 'models/entities/generated/Analytic';
|
|
26
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
27
|
-
import type { Template } from 'models/entities/generated/Template';
|
|
25
|
+
import type { Analytic } from '@cccsaurora/howler-ui/models/entities/generated/Analytic';
|
|
26
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
27
|
+
import type { Template } from '@cccsaurora/howler-ui/models/entities/generated/Template';
|
|
28
28
|
import { useSearchParams } from 'react-router-dom';
|
|
29
29
|
import hitsData from 'utils/hit.json';
|
|
30
|
-
import { sanitizeLuceneQuery } from 'utils/stringUtils';
|
|
30
|
+
import { sanitizeLuceneQuery } from '@cccsaurora/howler-ui/utils/stringUtils';
|
|
31
31
|
|
|
32
32
|
const TemplateViewer = () => {
|
|
33
33
|
const { t } = useTranslation();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Article } from '@mui/icons-material';
|
|
2
2
|
import { Stack, ToggleButton, ToggleButtonGroup, Typography } from '@mui/material';
|
|
3
|
-
import api from 'api';
|
|
4
|
-
import type { HowlerSearchResponse } from 'api/search';
|
|
5
|
-
import { useAppUser } from 'commons/components/app/hooks';
|
|
6
|
-
import { TuiListProvider, type TuiListItem, type TuiListItemProps } from 'components/elements/addons/lists';
|
|
7
|
-
import { TuiListMethodContext, type TuiListMethodsState } from 'components/elements/addons/lists/TuiListProvider';
|
|
8
|
-
import ItemManager from 'components/elements/display/ItemManager';
|
|
9
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
10
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
11
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
12
|
-
import type { Template } from 'models/entities/generated/Template';
|
|
3
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
4
|
+
import type { HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
5
|
+
import { useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
6
|
+
import { TuiListProvider, type TuiListItem, type TuiListItemProps } from '@cccsaurora/howler-ui/components/elements/addons/lists';
|
|
7
|
+
import { TuiListMethodContext, type TuiListMethodsState } from '@cccsaurora/howler-ui/components/elements/addons/lists/TuiListProvider';
|
|
8
|
+
import ItemManager from '@cccsaurora/howler-ui/components/elements/display/ItemManager';
|
|
9
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
10
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
11
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
12
|
+
import type { Template } from '@cccsaurora/howler-ui/models/entities/generated/Template';
|
|
13
13
|
import { useCallback, useContext, useEffect, useState, type FC } from 'react';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
15
|
import { useNavigate, useSearchParams } from 'react-router-dom';
|
|
16
|
-
import { StorageKey } from 'utils/constants';
|
|
16
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
17
17
|
import TemplateCard from './TemplateCard';
|
|
18
18
|
|
|
19
19
|
const TemplatesBase: FC = () => {
|
|
@@ -16,29 +16,29 @@ 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 AppListEmpty from 'commons/components/display/AppListEmpty';
|
|
22
|
-
import PageCenter from 'commons/components/pages/PageCenter';
|
|
23
|
-
import { HitContext } from 'components/app/providers/HitProvider';
|
|
24
|
-
import { ParameterContext } from 'components/app/providers/ParameterProvider';
|
|
25
|
-
import { ViewContext } from 'components/app/providers/ViewProvider';
|
|
26
|
-
import CustomButton from 'components/elements/addons/buttons/CustomButton';
|
|
27
|
-
import FlexPort from 'components/elements/addons/layout/FlexPort';
|
|
28
|
-
import VSBox from 'components/elements/addons/layout/vsbox/VSBox';
|
|
29
|
-
import VSBoxContent from 'components/elements/addons/layout/vsbox/VSBoxContent';
|
|
30
|
-
import VSBoxHeader from 'components/elements/addons/layout/vsbox/VSBoxHeader';
|
|
31
|
-
import SearchTotal from 'components/elements/addons/search/SearchTotal';
|
|
32
|
-
import HitCard from 'components/elements/hit/HitCard';
|
|
33
|
-
import { HitLayout } from 'components/elements/hit/HitLayout';
|
|
34
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
35
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
36
|
-
import useMySnackbar from 'components/hooks/useMySnackbar';
|
|
37
|
-
import type { Hit } from 'models/entities/generated/Hit';
|
|
19
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
20
|
+
import type { HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
21
|
+
import AppListEmpty from '@cccsaurora/howler-ui/commons/components/display/AppListEmpty';
|
|
22
|
+
import PageCenter from '@cccsaurora/howler-ui/commons/components/pages/PageCenter';
|
|
23
|
+
import { HitContext } from '@cccsaurora/howler-ui/components/app/providers/HitProvider';
|
|
24
|
+
import { ParameterContext } from '@cccsaurora/howler-ui/components/app/providers/ParameterProvider';
|
|
25
|
+
import { ViewContext } from '@cccsaurora/howler-ui/components/app/providers/ViewProvider';
|
|
26
|
+
import CustomButton from '@cccsaurora/howler-ui/components/elements/addons/buttons/CustomButton';
|
|
27
|
+
import FlexPort from '@cccsaurora/howler-ui/components/elements/addons/layout/FlexPort';
|
|
28
|
+
import VSBox from '@cccsaurora/howler-ui/components/elements/addons/layout/vsbox/VSBox';
|
|
29
|
+
import VSBoxContent from '@cccsaurora/howler-ui/components/elements/addons/layout/vsbox/VSBoxContent';
|
|
30
|
+
import VSBoxHeader from '@cccsaurora/howler-ui/components/elements/addons/layout/vsbox/VSBoxHeader';
|
|
31
|
+
import SearchTotal from '@cccsaurora/howler-ui/components/elements/addons/search/SearchTotal';
|
|
32
|
+
import HitCard from '@cccsaurora/howler-ui/components/elements/hit/HitCard';
|
|
33
|
+
import { HitLayout } from '@cccsaurora/howler-ui/components/elements/hit/HitLayout';
|
|
34
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
35
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
36
|
+
import useMySnackbar from '@cccsaurora/howler-ui/components/hooks/useMySnackbar';
|
|
37
|
+
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
38
38
|
import { useNavigate, useParams } from 'react-router-dom';
|
|
39
39
|
import { useContextSelector } from 'use-context-selector';
|
|
40
|
-
import { StorageKey } from 'utils/constants';
|
|
41
|
-
import { convertDateToLucene } from 'utils/utils';
|
|
40
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
41
|
+
import { convertDateToLucene } from '@cccsaurora/howler-ui/utils/utils';
|
|
42
42
|
import ErrorBoundary from '../ErrorBoundary';
|
|
43
43
|
import HitQuery from '../hits/search/HitQuery';
|
|
44
44
|
import HitSort from '../hits/search/shared/HitSort';
|
|
@@ -12,27 +12,27 @@ import {
|
|
|
12
12
|
Tooltip,
|
|
13
13
|
Typography
|
|
14
14
|
} from '@mui/material';
|
|
15
|
-
import api from 'api';
|
|
16
|
-
import type { HowlerSearchResponse } from 'api/search';
|
|
17
|
-
import { useAppUser } from 'commons/components/app/hooks';
|
|
18
|
-
import { ViewContext } from 'components/app/providers/ViewProvider';
|
|
19
|
-
import FlexOne from 'components/elements/addons/layout/FlexOne';
|
|
20
|
-
import { TuiListProvider, type TuiListItemProps } from 'components/elements/addons/lists';
|
|
21
|
-
import { TuiListMethodContext, type TuiListMethodsState } from 'components/elements/addons/lists/TuiListProvider';
|
|
22
|
-
import HowlerAvatar from 'components/elements/display/HowlerAvatar';
|
|
23
|
-
import ItemManager from 'components/elements/display/ItemManager';
|
|
24
|
-
import { ViewTitle } from 'components/elements/view/ViewTitle';
|
|
25
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
26
|
-
import { useMyLocalStorageItem } from 'components/hooks/useMyLocalStorage';
|
|
15
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
16
|
+
import type { HowlerSearchResponse } from '@cccsaurora/howler-ui/api/search';
|
|
17
|
+
import { useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
18
|
+
import { ViewContext } from '@cccsaurora/howler-ui/components/app/providers/ViewProvider';
|
|
19
|
+
import FlexOne from '@cccsaurora/howler-ui/components/elements/addons/layout/FlexOne';
|
|
20
|
+
import { TuiListProvider, type TuiListItemProps } from '@cccsaurora/howler-ui/components/elements/addons/lists';
|
|
21
|
+
import { TuiListMethodContext, type TuiListMethodsState } from '@cccsaurora/howler-ui/components/elements/addons/lists/TuiListProvider';
|
|
22
|
+
import HowlerAvatar from '@cccsaurora/howler-ui/components/elements/display/HowlerAvatar';
|
|
23
|
+
import ItemManager from '@cccsaurora/howler-ui/components/elements/display/ItemManager';
|
|
24
|
+
import { ViewTitle } from '@cccsaurora/howler-ui/components/elements/view/ViewTitle';
|
|
25
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
26
|
+
import { useMyLocalStorageItem } from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
27
27
|
import { isNull, omitBy, size } from 'lodash-es';
|
|
28
|
-
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
29
|
-
import type { View } from 'models/entities/generated/View';
|
|
28
|
+
import type { HowlerUser } from '@cccsaurora/howler-ui/models/entities/HowlerUser';
|
|
29
|
+
import type { View } from '@cccsaurora/howler-ui/models/entities/generated/View';
|
|
30
30
|
import React, { useCallback, useContext, useEffect, useState, type FC } from 'react';
|
|
31
31
|
import { useTranslation } from 'react-i18next';
|
|
32
32
|
import { Link, useNavigate, useSearchParams } from 'react-router-dom';
|
|
33
33
|
import { useContextSelector } from 'use-context-selector';
|
|
34
|
-
import { StorageKey } from 'utils/constants';
|
|
35
|
-
import { sanitizeLuceneQuery } from 'utils/stringUtils';
|
|
34
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
35
|
+
import { sanitizeLuceneQuery } from '@cccsaurora/howler-ui/utils/stringUtils';
|
|
36
36
|
|
|
37
37
|
const FIELDS_TO_SEARCH = ['title', 'query', 'sort', 'type', 'owner'];
|
|
38
38
|
|