@cccsaurora/howler-ui 2.14.0-dev.263 → 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 +19 -0
- package/api/action/index.ts +36 -0
- package/api/action/operations.ts +11 -0
- package/api/analytic/comments/index.ts +27 -0
- package/api/analytic/comments/react.ts +14 -0
- package/api/analytic/favourite.ts +14 -0
- package/api/analytic/index.ts +27 -0
- package/api/analytic/notebooks/index.ts +15 -0
- package/api/analytic/owner.ts +11 -0
- package/api/analytic/rules.ts +13 -0
- package/api/auth/apikey.ts +20 -0
- package/api/auth/index.ts +9 -0
- package/api/auth/login.ts +35 -0
- package/api/configs/index.ts +10 -0
- package/api/dossier/hit.ts +10 -0
- package/api/dossier/index.ts +26 -0
- package/api/help.ts +71 -0
- package/api/hit/assign.ts +11 -0
- package/api/hit/comments/index.ts +27 -0
- package/api/hit/comments/react.ts +15 -0
- package/api/hit/index.ts +56 -0
- package/api/hit/labels.ts +16 -0
- package/api/hit/overwrite.ts +11 -0
- package/api/hit/transition.ts +12 -0
- package/api/index.ts +301 -0
- package/api/notebook/environments.ts +14 -0
- package/api/notebook/index.ts +20 -0
- package/api/overview/index.ts +22 -0
- package/api/search/action.ts +12 -0
- package/api/search/analytic.ts +12 -0
- package/api/search/count/hit.ts +11 -0
- package/api/search/count/index.ts +18 -0
- package/api/search/dossier.ts +12 -0
- package/api/search/eql/hit.ts +12 -0
- package/api/search/facet/hit.ts +11 -0
- package/api/search/facet/index.ts +19 -0
- package/api/search/fields/hit.ts +12 -0
- package/api/search/fields/index.ts +29 -0
- package/api/search/fields/user.ts +14 -0
- package/api/search/grouped/hit.ts +15 -0
- package/api/search/grouped/index.ts +34 -0
- package/api/search/grouped/user.ts +30 -0
- package/api/search/histogram/hit.ts +11 -0
- package/api/search/histogram/index.ts +20 -0
- package/api/search/hit.ts +17 -0
- package/api/search/index.ts +63 -0
- package/api/search/overview.ts +12 -0
- package/api/search/sigma/hit.ts +12 -0
- package/api/search/template.ts +12 -0
- package/api/search/user.ts +21 -0
- package/api/search/view.ts +12 -0
- package/api/template/index.ts +22 -0
- package/api/user/avatar/index.ts +10 -0
- package/api/user/groups.ts +12 -0
- package/api/user/index.ts +20 -0
- package/api/user/whoami.ts +11 -0
- package/api/view/favourite.ts +14 -0
- package/api/view/index.ts +25 -0
- package/branding/AppBrand.tsx +161 -0
- package/commons/components/app/AppConfigs.ts +179 -0
- package/commons/components/app/AppConstants.ts +11 -0
- package/commons/components/app/AppContexts.ts +142 -0
- package/commons/components/app/AppDefaults.ts +52 -0
- package/commons/components/app/AppNotificationService.ts +7 -0
- package/commons/components/app/AppProvider.tsx +86 -0
- package/commons/components/app/AppSearchService.ts +33 -0
- package/commons/components/app/AppSkeleton.tsx +321 -0
- package/commons/components/app/AppUserService.ts +21 -0
- package/commons/components/app/hooks/index.ts +18 -0
- package/commons/components/app/hooks/useApp.tsx +6 -0
- package/commons/components/app/hooks/useAppBanner.tsx +7 -0
- package/commons/components/app/hooks/useAppBar.tsx +6 -0
- package/commons/components/app/hooks/useAppBarHeight.tsx +27 -0
- package/commons/components/app/hooks/useAppBarScrollTrigger.tsx +8 -0
- package/commons/components/app/hooks/useAppBreadcrumbs.tsx +6 -0
- package/commons/components/app/hooks/useAppConfigs.tsx +54 -0
- package/commons/components/app/hooks/useAppLanguage.tsx +29 -0
- package/commons/components/app/hooks/useAppLayout.tsx +6 -0
- package/commons/components/app/hooks/useAppLeftNav.tsx +6 -0
- package/commons/components/app/hooks/useAppLogo.tsx +9 -0
- package/commons/components/app/hooks/useAppNotification.tsx +6 -0
- package/commons/components/app/hooks/useAppQuickSearch.tsx +6 -0
- package/commons/components/app/hooks/useAppSearchService.tsx +7 -0
- package/commons/components/app/hooks/useAppSitemap.tsx +84 -0
- package/commons/components/app/hooks/useAppSwitcher.tsx +6 -0
- package/commons/components/app/hooks/useAppTheme.tsx +23 -0
- package/commons/components/app/hooks/useAppUser.tsx +7 -0
- package/commons/components/app/providers/AppBarProvider.tsx +48 -0
- package/commons/components/app/providers/AppBreadcrumbsProvider.tsx +53 -0
- package/commons/components/app/providers/AppLayoutProvider.tsx +114 -0
- package/commons/components/app/providers/AppLeftNavProvider.tsx +30 -0
- package/commons/components/app/providers/AppNotificationProvider.tsx +49 -0
- package/commons/components/app/providers/AppQuickSearchProvider.tsx +32 -0
- package/commons/components/app/providers/AppSearchServiceProvider.tsx +65 -0
- package/commons/components/app/providers/AppSnackbarProvider.tsx +16 -0
- package/commons/components/app/providers/AppSwitcherProvider.tsx +16 -0
- package/commons/components/app/providers/AppUserProvider.tsx +22 -0
- package/commons/components/breadcrumbs/BreadcrumbIcon.tsx +21 -0
- package/commons/components/breadcrumbs/BreadcrumbLastItem.tsx +40 -0
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.tsx +43 -0
- package/commons/components/breadcrumbs/BreadcrumbList.tsx +87 -0
- package/commons/components/breadcrumbs/Breadcrumbs.tsx +40 -0
- package/commons/components/display/AppAvatar.tsx +34 -0
- package/commons/components/display/AppInfoPanel.tsx +30 -0
- package/commons/components/display/AppListEmpty.tsx +5 -0
- package/commons/components/display/AppToc.tsx +160 -0
- package/commons/components/display/hooks/useAppColor.tsx +21 -0
- package/commons/components/leftnav/LeftNavDrawer.tsx +172 -0
- package/commons/components/leftnav/LeftNavGroup.tsx +144 -0
- package/commons/components/leftnav/LeftNavItem.tsx +73 -0
- package/commons/components/notification/FeedModels.ts +163 -0
- package/commons/components/notification/Notification.tsx +152 -0
- package/commons/components/notification/elements/NotificationCloseButton.tsx +14 -0
- package/commons/components/notification/elements/NotificationContainer.tsx +87 -0
- package/commons/components/notification/elements/NotificationEndOfPage.tsx +48 -0
- package/commons/components/notification/elements/NotificationError.tsx +24 -0
- package/commons/components/notification/elements/NotificationHeader.tsx +41 -0
- package/commons/components/notification/elements/NotificationItems.tsx +47 -0
- package/commons/components/notification/elements/NotificationSkeleton.tsx +59 -0
- package/commons/components/notification/elements/NotificationTopNavButton.tsx +27 -0
- package/commons/components/notification/elements/item/NotificationItem.tsx +44 -0
- package/commons/components/notification/elements/item/NotificationItemAuthor.tsx +72 -0
- package/commons/components/notification/elements/item/NotificationItemContent.tsx +29 -0
- package/commons/components/notification/elements/item/NotificationItemDate.tsx +14 -0
- package/commons/components/notification/elements/item/NotificationItemImage.tsx +19 -0
- package/commons/components/notification/elements/item/NotificationItemTag.tsx +18 -0
- package/commons/components/notification/elements/item/NotificationItemTitle.tsx +38 -0
- package/commons/components/notification/index.tsx +2 -0
- package/commons/components/pages/PageCardCentered.tsx +32 -0
- package/commons/components/pages/PageCenter.tsx +46 -0
- package/commons/components/pages/PageContent.tsx +13 -0
- package/commons/components/pages/PageFullScreen.tsx +74 -0
- package/commons/components/pages/PageFullWidth.tsx +30 -0
- package/commons/components/pages/PageHeader.tsx +117 -0
- package/commons/components/pages/hooks/usePageProps.tsx +41 -0
- package/commons/components/search/AppSearch.tsx +256 -0
- package/commons/components/search/AppSearchInput.tsx +104 -0
- package/commons/components/search/AppSearchResult.tsx +66 -0
- package/commons/components/topnav/AppBar.tsx +137 -0
- package/commons/components/topnav/AppName.tsx +53 -0
- package/commons/components/topnav/AppSwitcher.tsx +116 -0
- package/commons/components/topnav/Notifications.tsx +16 -0
- package/commons/components/topnav/ThemeSelection.tsx +143 -0
- package/commons/components/topnav/ThemeSelectionIcon.tsx +39 -0
- package/commons/components/topnav/UserProfile.tsx +196 -0
- package/commons/components/utils/hooks/useClipboard.tsx +31 -0
- package/commons/components/utils/hooks/useEnv.tsx +13 -0
- package/commons/components/utils/hooks/useFullscreenStatus.tsx +47 -0
- package/commons/components/utils/hooks/useGravatar.tsx +13 -0
- package/commons/components/utils/hooks/useLocalStorage.ts +75 -0
- package/commons/components/utils/hooks/useLocalStorageItem.tsx +45 -0
- package/commons/components/utils/hooks/useThemeBuilder.tsx +55 -0
- package/commons/components/utils/keyboard.ts +61 -0
- package/components/app/App.tsx +434 -0
- package/components/app/AppContainer.tsx +19 -0
- package/components/app/drawers/ApiKeyDrawer.tsx +173 -0
- package/components/app/drawers/AppDrawerType.ts +7 -0
- package/components/app/drawers/AssignUserDrawer.tsx +126 -0
- package/components/app/drawers/ViewGroupsDrawer.tsx +24 -0
- package/components/app/hooks/useMatchers.tsx +107 -0
- package/components/app/hooks/useTitle.tsx +77 -0
- package/components/app/providers/AnalyticProvider.tsx +87 -0
- package/components/app/providers/ApiConfigProvider.tsx +31 -0
- package/components/app/providers/AppDrawerProvider.tsx +54 -0
- package/components/app/providers/AvatarProvider.tsx +47 -0
- package/components/app/providers/CustomPluginProvider.tsx +19 -0
- package/components/app/providers/FavouritesProvider.tsx +157 -0
- package/components/app/providers/FieldProvider.tsx +34 -0
- package/components/app/providers/HitProvider.tsx +164 -0
- package/components/app/providers/HitSearchProvider.tsx +248 -0
- package/components/app/providers/LocalStorageProvider.tsx +67 -0
- package/components/app/providers/ModalProvider.tsx +57 -0
- package/components/app/providers/OverviewProvider.tsx +90 -0
- package/components/app/providers/ParameterProvider.tsx +270 -0
- package/components/app/providers/SocketProvider.tsx +329 -0
- package/components/app/providers/UserListProvider.tsx +56 -0
- package/components/app/providers/ViewProvider.tsx +207 -0
- package/components/elements/Comment.tsx +315 -0
- package/components/elements/EditRow.tsx +268 -0
- package/components/elements/PluginChip.tsx +32 -0
- package/components/elements/PluginTypography.tsx +31 -0
- package/components/elements/ThemedEditor.tsx +130 -0
- package/components/elements/UserList.tsx +79 -0
- package/components/elements/addons/buttons/CustomButton.tsx +93 -0
- package/components/elements/addons/buttons/CustomIconButton.tsx +122 -0
- package/components/elements/addons/buttons/index.ts +7 -0
- package/components/elements/addons/layout/FlexOne.tsx +6 -0
- package/components/elements/addons/layout/FlexPort.tsx +39 -0
- package/components/elements/addons/layout/FlexVertical.tsx +28 -0
- package/components/elements/addons/layout/vsbox/VSBox.tsx +52 -0
- package/components/elements/addons/layout/vsbox/VSBoxContent.tsx +13 -0
- package/components/elements/addons/layout/vsbox/VSBoxElement.tsx +60 -0
- package/components/elements/addons/layout/vsbox/VSBoxHeader.tsx +41 -0
- package/components/elements/addons/lists/TuiList.tsx +31 -0
- package/components/elements/addons/lists/TuiListBase.tsx +98 -0
- package/components/elements/addons/lists/TuiListElement.tsx +51 -0
- package/components/elements/addons/lists/TuiListMenu.tsx +61 -0
- package/components/elements/addons/lists/TuiListProvider.tsx +162 -0
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.tsx +60 -0
- package/components/elements/addons/lists/index.tsx +25 -0
- package/components/elements/addons/lists/table/TuiTable.tsx +151 -0
- package/components/elements/addons/lists/table/TuiTableBody.tsx +77 -0
- package/components/elements/addons/lists/table/TuiTableHead.tsx +29 -0
- package/components/elements/addons/lists/table/TuiTableHeader.tsx +15 -0
- package/components/elements/addons/lists/table/TuiTableLayout.ts +53 -0
- package/components/elements/addons/lists/table/index.tsx +24 -0
- package/components/elements/addons/search/SearchPagination.tsx +26 -0
- package/components/elements/addons/search/SearchTotal.tsx +35 -0
- package/components/elements/addons/search/phrase/Phrase.tsx +175 -0
- package/components/elements/addons/search/phrase/PhraseConsumer.ts +35 -0
- package/components/elements/addons/search/phrase/PhraseLexer.ts +167 -0
- package/components/elements/addons/search/phrase/index.ts +86 -0
- package/components/elements/addons/search/phrase/word/WordLexer.ts +10 -0
- package/components/elements/addons/search/phrase/word/WordSuggester.ts +9 -0
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.ts +21 -0
- package/components/elements/addons/search/phrase/word/consumers/WordConsumer.ts +21 -0
- package/components/elements/display/ActionButton.tsx +40 -0
- package/components/elements/display/Classification.tsx +29 -0
- package/components/elements/display/DocumentationButton.tsx +46 -0
- package/components/elements/display/DynamicTabs.tsx +52 -0
- package/components/elements/display/HandlebarsMarkdown.tsx +105 -0
- package/components/elements/display/HowlerAvatar.tsx +66 -0
- package/components/elements/display/HowlerAvatarHeader.tsx +37 -0
- package/components/elements/display/HowlerCard.tsx +10 -0
- package/components/elements/display/Image.tsx +43 -0
- package/components/elements/display/ItemManager.tsx +146 -0
- package/components/elements/display/Markdown.tsx +200 -0
- package/components/elements/display/Modal.tsx +44 -0
- package/components/elements/display/Notebook.tsx +7 -0
- package/components/elements/display/QueryResultText.tsx +25 -0
- package/components/elements/display/TextDivider.tsx +48 -0
- package/components/elements/display/TypingIndicator.tsx +41 -0
- package/components/elements/display/UserPageWrapper.tsx +20 -0
- package/components/elements/display/features/DevelopmentBanner.tsx +24 -0
- package/components/elements/display/features/DevelopmentIcon.tsx +24 -0
- package/components/elements/display/handlebars/helpers.tsx +276 -0
- package/components/elements/display/icons/BundleButton.tsx +77 -0
- package/components/elements/display/icons/Iconified.tsx +16 -0
- package/components/elements/display/icons/SocketBadge.tsx +82 -0
- package/components/elements/display/icons/svg/howler-icon-darkmode.svg +1 -0
- package/components/elements/display/icons/svg/howler-icon-lightmode.svg +1 -0
- package/components/elements/display/icons/svg/howler-logo-full.svg +1 -0
- package/components/elements/display/icons/svg/howler-logo.svg +1 -0
- package/components/elements/display/json/JSONViewer.tsx +98 -0
- package/components/elements/display/markdownPlugins/tabs.ts +81 -0
- package/components/elements/display/modals/ConfirmDeleteModal.tsx +32 -0
- package/components/elements/display/modals/ConfirmNotebookModal.tsx +32 -0
- package/components/elements/display/modals/CreateActionModal.tsx +63 -0
- package/components/elements/display/modals/LoginErrorModal.tsx +31 -0
- package/components/elements/display/modals/RationaleModal.tsx +59 -0
- package/components/elements/hit/HitActions.tsx +298 -0
- package/components/elements/hit/HitBanner.tsx +367 -0
- package/components/elements/hit/HitBannerTooltip.tsx +41 -0
- package/components/elements/hit/HitCard.tsx +42 -0
- package/components/elements/hit/HitComments.tsx +372 -0
- package/components/elements/hit/HitDetails.tsx +324 -0
- package/components/elements/hit/HitLabels.tsx +265 -0
- package/components/elements/hit/HitLayout.ts +5 -0
- package/components/elements/hit/HitNotebooks.tsx +264 -0
- package/components/elements/hit/HitOutline.tsx +56 -0
- package/components/elements/hit/HitOverview.tsx +53 -0
- package/components/elements/hit/HitQuickSearch.tsx +111 -0
- package/components/elements/hit/HitRelated.tsx +18 -0
- package/components/elements/hit/HitShortcuts.ts +5 -0
- package/components/elements/hit/HitSummary.tsx +301 -0
- package/components/elements/hit/HitWorklog.tsx +201 -0
- package/components/elements/hit/actions/ButtonActions.tsx +269 -0
- package/components/elements/hit/actions/DropdownActions.tsx +157 -0
- package/components/elements/hit/actions/SharedComponents.tsx +40 -0
- package/components/elements/hit/aggregate/HitGraph.tsx +351 -0
- package/components/elements/hit/elements/Assigned.tsx +71 -0
- package/components/elements/hit/elements/EscalationChip.tsx +26 -0
- package/components/elements/hit/elements/HitTimestamp.tsx +81 -0
- package/components/elements/hit/outlines/DefaultOutline.tsx +107 -0
- package/components/elements/hit/outlines/al/AssemblyLineRules.tsx +130 -0
- package/components/elements/hit/related/PivotLink.tsx +67 -0
- package/components/elements/hit/related/RelatedIcon.tsx +51 -0
- package/components/elements/hit/related/RelatedLink.tsx +43 -0
- package/components/elements/view/ViewTitle.tsx +61 -0
- package/components/hooks/useHitActions.tsx +276 -0
- package/components/hooks/useHitSelection.tsx +102 -0
- package/components/hooks/useMyApi.tsx +64 -0
- package/components/hooks/useMyChart.tsx +164 -0
- package/components/hooks/useMyLocalStorage.ts +20 -0
- package/components/hooks/useMyPreferences.tsx +309 -0
- package/components/hooks/useMySearch.tsx +77 -0
- package/components/hooks/useMySitemap.tsx +248 -0
- package/components/hooks/useMySnackbar.tsx +67 -0
- package/components/hooks/useMyTheme.tsx +34 -0
- package/components/hooks/useMyUser.tsx +39 -0
- package/components/hooks/useMyUserFunctions.tsx +166 -0
- package/components/hooks/useMyUserList.tsx +15 -0
- package/components/hooks/useMyUtils.tsx +16 -0
- package/components/hooks/useScrollRestoration.tsx +37 -0
- package/components/logins/Login.tsx +62 -0
- package/components/logins/auth/OAuthLogin.tsx +49 -0
- package/components/logins/auth/UserPassLogin.tsx +57 -0
- package/components/logins/hooks/useLogin.tsx +101 -0
- package/components/routes/404.tsx +24 -0
- package/components/routes/ErrorBoundary.tsx +44 -0
- package/components/routes/ErrorOccured.tsx +28 -0
- package/components/routes/Logout.tsx +56 -0
- package/components/routes/action/edit/ActionEditor.tsx +358 -0
- package/components/routes/action/shared/ActionReportDisplay.tsx +84 -0
- package/components/routes/action/shared/OperationEntry.tsx +121 -0
- package/components/routes/action/shared/OperationStep.tsx +219 -0
- package/components/routes/action/useMyActionFunctions.tsx +225 -0
- package/components/routes/action/view/ActionDetails.tsx +205 -0
- package/components/routes/action/view/ActionSearch.tsx +249 -0
- package/components/routes/action/view/Integrations.tsx +49 -0
- package/components/routes/admin/users/UserEditor.tsx +55 -0
- package/components/routes/admin/users/UserSearch.tsx +228 -0
- package/components/routes/advanced/QueryBuilder.tsx +584 -0
- package/components/routes/advanced/QueryEditor.tsx +148 -0
- package/components/routes/advanced/RuleModal.tsx +217 -0
- package/components/routes/advanced/eqlCompletionProvider.ts +94 -0
- package/components/routes/advanced/eqlTokenProvider.ts +110 -0
- package/components/routes/advanced/historyCompletionProvider.ts +61 -0
- package/components/routes/advanced/luceneCompletionProvider.ts +111 -0
- package/components/routes/advanced/luceneTokenProvider.ts +131 -0
- package/components/routes/advanced/yamlCompletionProvider.ts +58 -0
- package/components/routes/analytics/AnalyticComments.tsx +218 -0
- package/components/routes/analytics/AnalyticDetails.tsx +343 -0
- package/components/routes/analytics/AnalyticHitComments.tsx +99 -0
- package/components/routes/analytics/AnalyticNotebooks.tsx +185 -0
- package/components/routes/analytics/AnalyticOverview.tsx +165 -0
- package/components/routes/analytics/AnalyticOverviews.tsx +75 -0
- package/components/routes/analytics/AnalyticSearch.tsx +301 -0
- package/components/routes/analytics/AnalyticTemplates.tsx +77 -0
- package/components/routes/analytics/RuleView.tsx +80 -0
- package/components/routes/analytics/TriageSettings.tsx +146 -0
- package/components/routes/analytics/widgets/Assessment.tsx +71 -0
- package/components/routes/analytics/widgets/Created.tsx +61 -0
- package/components/routes/analytics/widgets/Detection.tsx +11 -0
- package/components/routes/analytics/widgets/Escalation.tsx +65 -0
- package/components/routes/analytics/widgets/Stacked.tsx +109 -0
- package/components/routes/analytics/widgets/Status.tsx +21 -0
- package/components/routes/dossiers/DossierCard.tsx +48 -0
- package/components/routes/dossiers/DossierEditor.tsx +247 -0
- package/components/routes/dossiers/Dossiers.tsx +173 -0
- package/components/routes/dossiers/LeadEditor.tsx +122 -0
- package/components/routes/dossiers/LeadForm.tsx +106 -0
- package/components/routes/dossiers/PivotForm.tsx +311 -0
- package/components/routes/help/ActionDocumentation.tsx +77 -0
- package/components/routes/help/ActionIntroductionDocumentation.tsx +128 -0
- package/components/routes/help/ApiDocumentation.tsx +217 -0
- package/components/routes/help/AuthDocumentation.tsx +26 -0
- package/components/routes/help/BundleDocumentation.tsx +17 -0
- package/components/routes/help/ClientDocumentation.tsx +27 -0
- package/components/routes/help/Help.tsx +96 -0
- package/components/routes/help/HitBannerDocumentation.tsx +71 -0
- package/components/routes/help/HitDocumentation.tsx +77 -0
- package/components/routes/help/HitLabelsDocumentation.tsx +57 -0
- package/components/routes/help/HitLinksDocumentation.tsx +23 -0
- package/components/routes/help/HitSchemaDocumentation.tsx +253 -0
- package/components/routes/help/NotebookDocumentation.tsx +28 -0
- package/components/routes/help/OverviewDocumentation.tsx +21 -0
- package/components/routes/help/RetentionDocumentation.tsx +55 -0
- package/components/routes/help/SearchDocumentation.tsx +700 -0
- package/components/routes/help/TemplateDocumentation.tsx +73 -0
- package/components/routes/help/ViewDocumentation.tsx +32 -0
- package/components/routes/help/components/HelpTabs.tsx +47 -0
- package/components/routes/help/markdown/en/actionIntroduction.md +33 -0
- package/components/routes/help/markdown/en/authentication.md +261 -0
- package/components/routes/help/markdown/en/bundles.md +70 -0
- package/components/routes/help/markdown/en/client.md +213 -0
- package/components/routes/help/markdown/en/links.md +37 -0
- package/components/routes/help/markdown/en/notebook.md +157 -0
- package/components/routes/help/markdown/en/retention.md +15 -0
- package/components/routes/help/markdown/en/schema.md +20 -0
- package/components/routes/help/markdown/en/templates.md +23 -0
- package/components/routes/help/markdown/en/views.md +11 -0
- package/components/routes/help/markdown/fr/actionIntroduction.md +33 -0
- package/components/routes/help/markdown/fr/authentication.md +259 -0
- package/components/routes/help/markdown/fr/bundles.md +70 -0
- package/components/routes/help/markdown/fr/client.md +209 -0
- package/components/routes/help/markdown/fr/links.md +37 -0
- package/components/routes/help/markdown/fr/notebook.md +157 -0
- package/components/routes/help/markdown/fr/retention.md +15 -0
- package/components/routes/help/markdown/fr/schema.md +20 -0
- package/components/routes/help/markdown/fr/templates.md +23 -0
- package/components/routes/help/markdown/fr/views.md +11 -0
- package/components/routes/hits/search/BundleParentMenu.tsx +73 -0
- package/components/routes/hits/search/BundleScroller.tsx +8 -0
- package/components/routes/hits/search/CustomSort.tsx +94 -0
- package/components/routes/hits/search/HitBrowser.tsx +318 -0
- package/components/routes/hits/search/HitContextMenu.tsx +260 -0
- package/components/routes/hits/search/HitQuery.tsx +268 -0
- package/components/routes/hits/search/InformationPane.tsx +430 -0
- package/components/routes/hits/search/SearchPane.tsx +291 -0
- package/components/routes/hits/search/ViewLink.tsx +96 -0
- package/components/routes/hits/search/grid/AddColumnModal.tsx +98 -0
- package/components/routes/hits/search/grid/ColumnHeader.tsx +70 -0
- package/components/routes/hits/search/grid/EnhancedCell.tsx +50 -0
- package/components/routes/hits/search/grid/HitGrid.tsx +342 -0
- package/components/routes/hits/search/grid/HitRow.tsx +121 -0
- package/components/routes/hits/search/shared/CustomSpan.tsx +54 -0
- package/components/routes/hits/search/shared/HitFilter.tsx +110 -0
- package/components/routes/hits/search/shared/HitSort.tsx +111 -0
- package/components/routes/hits/search/shared/QuerySettings.tsx +40 -0
- package/components/routes/hits/search/shared/SearchSpan.tsx +68 -0
- package/components/routes/hits/view/HitViewer.tsx +372 -0
- package/components/routes/hits/view/LeadRenderer.tsx +42 -0
- package/components/routes/home/AddNewCard.tsx +295 -0
- package/components/routes/home/AnalyticCard.tsx +68 -0
- package/components/routes/home/EntryWrapper.tsx +54 -0
- package/components/routes/home/ViewCard.tsx +96 -0
- package/components/routes/home/index.tsx +278 -0
- package/components/routes/overviews/OverviewCard.tsx +51 -0
- package/components/routes/overviews/OverviewEditor.tsx +102 -0
- package/components/routes/overviews/OverviewViewer.tsx +387 -0
- package/components/routes/overviews/Overviews.tsx +179 -0
- package/components/routes/overviews/markdownExtendedTokenProvider.ts +296 -0
- package/components/routes/overviews/startingTemplate.ts +40 -0
- package/components/routes/overviews/template/en.md +167 -0
- package/components/routes/overviews/template/fr.md +167 -0
- package/components/routes/settings/AdminSection.tsx +18 -0
- package/components/routes/settings/LocalSection.tsx +168 -0
- package/components/routes/settings/ProfileSection.tsx +138 -0
- package/components/routes/settings/SecuritySection.tsx +95 -0
- package/components/routes/settings/Settings.tsx +51 -0
- package/components/routes/settings/SettingsSection.tsx +28 -0
- package/components/routes/templates/TemplateCard.tsx +38 -0
- package/components/routes/templates/TemplateDnD.tsx +51 -0
- package/components/routes/templates/TemplateEditor.tsx +121 -0
- package/components/routes/templates/TemplateViewer.tsx +285 -0
- package/components/routes/templates/Templates.tsx +187 -0
- package/components/routes/views/ViewComposer.tsx +317 -0
- package/components/routes/views/Views.tsx +379 -0
- package/i18n.ts +50 -0
- package/index.tsx +19 -0
- package/locales/en/help/main.json +13 -0
- package/locales/en/help/search.json +186 -0
- package/locales/en/translation.json +799 -0
- package/locales/fr/help/main.json +13 -0
- package/locales/fr/help/search.json +186 -0
- package/locales/fr/translation.json +797 -0
- package/models/ActionTypes.d.ts +2 -1
- package/models/WithMetadata.d.ts +5 -4
- package/models/entities/HowlerUser.d.ts +2 -1
- package/models/entities/generated/Action.d.ts +2 -1
- package/models/entities/generated/Analytic.d.ts +4 -3
- package/models/entities/generated/Assemblyline.d.ts +9 -8
- package/models/entities/generated/Attachment.d.ts +2 -1
- package/models/entities/generated/Aws.d.ts +3 -2
- package/models/entities/generated/Cbs.d.ts +2 -1
- package/models/entities/generated/Cloud.d.ts +6 -5
- package/models/entities/generated/Container.d.ts +2 -1
- package/models/entities/generated/Destination.d.ts +6 -5
- package/models/entities/generated/Dns.d.ts +3 -2
- package/models/entities/generated/Dossier.d.ts +3 -2
- package/models/entities/generated/Elf.d.ts +4 -3
- package/models/entities/generated/Email.d.ts +9 -8
- package/models/entities/generated/Enrichment.d.ts +3 -2
- package/models/entities/generated/Faas.d.ts +2 -1
- package/models/entities/generated/File.d.ts +2 -1
- package/models/entities/generated/Geo.d.ts +2 -1
- package/models/entities/generated/Hit.d.ts +37 -36
- package/models/entities/generated/HitFile.d.ts +5 -4
- package/models/entities/generated/Howler.d.ts +9 -8
- package/models/entities/generated/HowlerDossier.d.ts +2 -1
- package/models/entities/generated/Http.d.ts +3 -2
- package/models/entities/generated/Image.d.ts +2 -1
- package/models/entities/generated/Indicator.d.ts +3 -2
- package/models/entities/generated/IndicatorFile.d.ts +5 -4
- package/models/entities/generated/Ingress.d.ts +2 -1
- package/models/entities/generated/Lead.d.ts +2 -1
- package/models/entities/generated/Mitre.d.ts +3 -2
- package/models/entities/generated/Observer.d.ts +4 -3
- package/models/entities/generated/Original.d.ts +4 -3
- package/models/entities/generated/Parent.d.ts +5 -4
- package/models/entities/generated/ParentParent.d.ts +6 -5
- package/models/entities/generated/Pivot.d.ts +3 -2
- package/models/entities/generated/Process.d.ts +7 -6
- package/models/entities/generated/ProcessParent.d.ts +7 -6
- package/models/entities/generated/Registry.d.ts +2 -1
- package/models/entities/generated/Request.d.ts +2 -1
- package/models/entities/generated/Response.d.ts +2 -1
- package/models/entities/generated/Sharepoint.d.ts +3 -2
- package/models/entities/generated/Source.d.ts +6 -5
- package/models/entities/generated/SourceOriginal.d.ts +4 -3
- package/models/entities/generated/Threat.d.ts +8 -7
- package/models/entities/generated/ThreatIndicator.d.ts +3 -2
- package/models/entities/generated/Tls.d.ts +3 -2
- package/models/entities/generated/User.d.ts +2 -1
- package/models/entities/generated/UserAgent.d.ts +3 -2
- package/models/entities/generated/UserUser.d.ts +2 -1
- package/models/entities/generated/View.d.ts +2 -1
- package/models/socket/HitUpdate.d.ts +2 -1
- package/package.json +576 -154
- package/plugins/HowlerPlugin.ts +375 -0
- package/plugins/store.ts +152 -0
- package/rest/AxiosClient.ts +81 -0
- package/rest/FetchClient.ts +27 -0
- package/rest/index.ts +12 -0
- package/setupTests.ts +17 -0
- package/utils/Throttler.ts +43 -0
- package/utils/actionUtils.ts +112 -0
- package/utils/constants.tsx +131 -0
- package/utils/hit.json +30356 -0
- package/utils/hitFunctions.ts +10 -0
- package/utils/localStorage.ts +54 -0
- package/utils/menuUtils.ts +274 -0
- package/utils/sessionStorage.ts +59 -0
- package/utils/socketUtils.ts +11 -0
- package/utils/stringUtils.ts +57 -0
- package/utils/utils.ts +222 -0
- package/utils/xsrf.ts +17 -0
- package/Notification-BHyOHttL.js +0 -324
- package/TuiList-D7-CH2oS.js +0 -48
- package/api/action/execute.d.ts +0 -3
- package/api/action/execute.js +0 -5
- package/api/action/index.d.ts +0 -10
- package/api/action/index.js +0 -11
- package/api/action/operations.d.ts +0 -3
- package/api/action/operations.js +0 -5
- package/api/analytic/comments/index.d.ts +0 -13
- package/api/analytic/comments/index.js +0 -9
- package/api/analytic/comments/react.d.ts +0 -3
- package/api/analytic/comments/react.js +0 -6
- package/api/analytic/favourite.d.ts +0 -7
- package/api/analytic/favourite.js +0 -6
- package/api/analytic/index.d.ts +0 -12
- package/api/analytic/index.js +0 -12
- package/api/analytic/notebooks/index.d.ts +0 -10
- package/api/analytic/notebooks/index.js +0 -6
- package/api/analytic/owner.d.ts +0 -5
- package/api/analytic/owner.js +0 -5
- package/api/analytic/rules.d.ts +0 -3
- package/api/analytic/rules.js +0 -5
- package/api/auth/apikey.d.ts +0 -8
- package/api/auth/apikey.js +0 -6
- package/api/auth/index.d.ts +0 -4
- package/api/auth/index.js +0 -6
- package/api/auth/login.d.ts +0 -14
- package/api/auth/login.js +0 -7
- package/api/configs/index.d.ts +0 -3
- package/api/configs/index.js +0 -5
- package/api/dossier/hit.d.ts +0 -2
- package/api/dossier/hit.js +0 -4
- package/api/dossier/index.d.ts +0 -8
- package/api/dossier/index.js +0 -9
- package/api/help.d.ts +0 -55
- package/api/help.js +0 -5
- package/api/hit/assign.d.ts +0 -3
- package/api/hit/assign.js +0 -5
- package/api/hit/comments/index.d.ts +0 -13
- package/api/hit/comments/index.js +0 -9
- package/api/hit/comments/react.d.ts +0 -3
- package/api/hit/comments/react.js +0 -6
- package/api/hit/index.d.ts +0 -35
- package/api/hit/index.js +0 -12
- package/api/hit/labels.d.ts +0 -5
- package/api/hit/labels.js +0 -6
- package/api/hit/overwrite.d.ts +0 -3
- package/api/hit/overwrite.js +0 -5
- package/api/hit/transition.d.ts +0 -4
- package/api/hit/transition.js +0 -5
- package/api/index.d.ts +0 -142
- package/api/index.js +0 -21
- package/api/notebook/environments.d.ts +0 -10
- package/api/notebook/environments.js +0 -5
- package/api/notebook/index.d.ts +0 -14
- package/api/notebook/index.js +0 -6
- package/api/overview/index.d.ts +0 -6
- package/api/overview/index.js +0 -8
- package/api/search/action.d.ts +0 -4
- package/api/search/action.js +0 -5
- package/api/search/analytic.d.ts +0 -4
- package/api/search/analytic.js +0 -5
- package/api/search/count/hit.d.ts +0 -3
- package/api/search/count/hit.js +0 -5
- package/api/search/count/index.d.ts +0 -10
- package/api/search/count/index.js +0 -5
- package/api/search/dossier.d.ts +0 -4
- package/api/search/dossier.js +0 -5
- package/api/search/eql/hit.d.ts +0 -4
- package/api/search/eql/hit.js +0 -5
- package/api/search/facet/hit.d.ts +0 -5
- package/api/search/facet/hit.js +0 -5
- package/api/search/facet/index.d.ts +0 -13
- package/api/search/facet/index.js +0 -5
- package/api/search/fields/hit.d.ts +0 -3
- package/api/search/fields/hit.js +0 -5
- package/api/search/fields/index.d.ts +0 -19
- package/api/search/fields/index.js +0 -8
- package/api/search/fields/user.d.ts +0 -3
- package/api/search/fields/user.js +0 -5
- package/api/search/grouped/hit.d.ts +0 -4
- package/api/search/grouped/hit.js +0 -5
- package/api/search/grouped/index.d.ts +0 -25
- package/api/search/grouped/index.js +0 -6
- package/api/search/grouped/user.d.ts +0 -7
- package/api/search/grouped/user.js +0 -5
- package/api/search/histogram/hit.d.ts +0 -3
- package/api/search/histogram/hit.js +0 -5
- package/api/search/histogram/index.d.ts +0 -14
- package/api/search/histogram/index.js +0 -5
- package/api/search/hit.d.ts +0 -7
- package/api/search/hit.js +0 -7
- package/api/search/index.d.ts +0 -53
- package/api/search/index.js +0 -17
- package/api/search/overview.d.ts +0 -4
- package/api/search/overview.js +0 -5
- package/api/search/sigma/hit.d.ts +0 -4
- package/api/search/sigma/hit.js +0 -5
- package/api/search/template.d.ts +0 -4
- package/api/search/template.js +0 -5
- package/api/search/user.d.ts +0 -7
- package/api/search/user.js +0 -5
- package/api/search/view.d.ts +0 -4
- package/api/search/view.js +0 -5
- package/api/template/index.d.ts +0 -6
- package/api/template/index.js +0 -8
- package/api/user/avatar/index.d.ts +0 -2
- package/api/user/avatar/index.js +0 -5
- package/api/user/groups.d.ts +0 -6
- package/api/user/groups.js +0 -5
- package/api/user/index.d.ts +0 -10
- package/api/user/index.js +0 -9
- package/api/user/whoami.d.ts +0 -3
- package/api/user/whoami.js +0 -5
- package/api/view/favourite.d.ts +0 -7
- package/api/view/favourite.js +0 -6
- package/api/view/index.d.ts +0 -8
- package/api/view/index.js +0 -9
- package/assets/howler-ui.css +0 -21
- package/branding/AppBrand.d.ts +0 -85
- package/branding/AppBrand.js +0 -135
- package/branding/howler/favicon.svg +0 -38
- package/branding/howler/name-dark.svg +0 -21
- package/branding/howler/name-light.svg +0 -21
- package/branding/howler/noswoosh-dark.svg +0 -24
- package/branding/howler/noswoosh-light.svg +0 -28
- package/branding/howler/swoosh-dark.svg +0 -41
- package/branding/howler/swoosh-light.svg +0 -45
- package/commons/components/app/AppConfigs.d.ts +0 -137
- package/commons/components/app/AppConfigs.js +0 -1
- package/commons/components/app/AppConstants.d.ts +0 -10
- package/commons/components/app/AppConstants.js +0 -14
- package/commons/components/app/AppContexts.d.ts +0 -105
- package/commons/components/app/AppContexts.js +0 -23
- package/commons/components/app/AppDefaults.d.ts +0 -6
- package/commons/components/app/AppDefaults.js +0 -42
- package/commons/components/app/AppNotificationService.d.ts +0 -6
- package/commons/components/app/AppNotificationService.js +0 -1
- package/commons/components/app/AppProvider.d.ts +0 -15
- package/commons/components/app/AppProvider.js +0 -44
- package/commons/components/app/AppSearchService.d.ts +0 -21
- package/commons/components/app/AppSearchService.js +0 -1
- package/commons/components/app/AppSkeleton.d.ts +0 -5
- package/commons/components/app/AppSkeleton.js +0 -259
- package/commons/components/app/AppUserService.d.ts +0 -17
- package/commons/components/app/AppUserService.js +0 -1
- package/commons/components/app/hooks/index.d.ts +0 -18
- package/commons/components/app/hooks/index.js +0 -40
- package/commons/components/app/hooks/useApp.d.ts +0 -1
- package/commons/components/app/hooks/useApp.js +0 -8
- package/commons/components/app/hooks/useAppBanner.d.ts +0 -1
- package/commons/components/app/hooks/useAppBanner.js +0 -14
- package/commons/components/app/hooks/useAppBar.d.ts +0 -1
- package/commons/components/app/hooks/useAppBar.js +0 -8
- package/commons/components/app/hooks/useAppBarHeight.d.ts +0 -2
- package/commons/components/app/hooks/useAppBarHeight.js +0 -26
- package/commons/components/app/hooks/useAppBarScrollTrigger.d.ts +0 -1
- package/commons/components/app/hooks/useAppBarScrollTrigger.js +0 -10
- package/commons/components/app/hooks/useAppBreadcrumbs.d.ts +0 -1
- package/commons/components/app/hooks/useAppBreadcrumbs.js +0 -8
- package/commons/components/app/hooks/useAppConfigs.d.ts +0 -59
- package/commons/components/app/hooks/useAppConfigs.js +0 -39
- package/commons/components/app/hooks/useAppLanguage.d.ts +0 -6
- package/commons/components/app/hooks/useAppLanguage.js +0 -23
- package/commons/components/app/hooks/useAppLayout.d.ts +0 -1
- package/commons/components/app/hooks/useAppLayout.js +0 -8
- package/commons/components/app/hooks/useAppLeftNav.d.ts +0 -1
- package/commons/components/app/hooks/useAppLeftNav.js +0 -8
- package/commons/components/app/hooks/useAppLogo.d.ts +0 -1
- package/commons/components/app/hooks/useAppLogo.js +0 -11
- package/commons/components/app/hooks/useAppNotification.d.ts +0 -1
- package/commons/components/app/hooks/useAppNotification.js +0 -8
- package/commons/components/app/hooks/useAppQuickSearch.d.ts +0 -1
- package/commons/components/app/hooks/useAppQuickSearch.js +0 -8
- package/commons/components/app/hooks/useAppSearchService.d.ts +0 -2
- package/commons/components/app/hooks/useAppSearchService.js +0 -8
- package/commons/components/app/hooks/useAppSitemap.d.ts +0 -13
- package/commons/components/app/hooks/useAppSitemap.js +0 -60
- package/commons/components/app/hooks/useAppSwitcher.d.ts +0 -1
- package/commons/components/app/hooks/useAppSwitcher.js +0 -8
- package/commons/components/app/hooks/useAppTheme.d.ts +0 -8
- package/commons/components/app/hooks/useAppTheme.js +0 -20
- package/commons/components/app/hooks/useAppUser.d.ts +0 -2
- package/commons/components/app/hooks/useAppUser.js +0 -8
- package/commons/components/app/providers/AppBarProvider.d.ts +0 -10
- package/commons/components/app/providers/AppBarProvider.js +0 -35
- package/commons/components/app/providers/AppBreadcrumbsProvider.d.ts +0 -6
- package/commons/components/app/providers/AppBreadcrumbsProvider.js +0 -41
- package/commons/components/app/providers/AppLayoutProvider.d.ts +0 -6
- package/commons/components/app/providers/AppLayoutProvider.js +0 -95
- package/commons/components/app/providers/AppLeftNavProvider.d.ts +0 -6
- package/commons/components/app/providers/AppLeftNavProvider.js +0 -29
- package/commons/components/app/providers/AppNotificationProvider.d.ts +0 -6
- package/commons/components/app/providers/AppNotificationProvider.js +0 -33
- package/commons/components/app/providers/AppQuickSearchProvider.d.ts +0 -8
- package/commons/components/app/providers/AppQuickSearchProvider.js +0 -26
- package/commons/components/app/providers/AppSearchServiceProvider.d.ts +0 -6
- package/commons/components/app/providers/AppSearchServiceProvider.js +0 -49
- package/commons/components/app/providers/AppSnackbarProvider.d.ts +0 -3
- package/commons/components/app/providers/AppSnackbarProvider.js +0 -14
- package/commons/components/app/providers/AppSwitcherProvider.d.ts +0 -6
- package/commons/components/app/providers/AppSwitcherProvider.js +0 -15
- package/commons/components/app/providers/AppUserProvider.d.ts +0 -8
- package/commons/components/app/providers/AppUserProvider.js +0 -18
- package/commons/components/breadcrumbs/BreadcrumbIcon.d.ts +0 -6
- package/commons/components/breadcrumbs/BreadcrumbIcon.js +0 -16
- package/commons/components/breadcrumbs/BreadcrumbLastItem.d.ts +0 -7
- package/commons/components/breadcrumbs/BreadcrumbLastItem.js +0 -40
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.d.ts +0 -7
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.js +0 -44
- package/commons/components/breadcrumbs/BreadcrumbList.d.ts +0 -11
- package/commons/components/breadcrumbs/BreadcrumbList.js +0 -74
- package/commons/components/breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/commons/components/breadcrumbs/Breadcrumbs.js +0 -45
- package/commons/components/display/AppAvatar.d.ts +0 -8
- package/commons/components/display/AppAvatar.js +0 -28
- package/commons/components/display/AppInfoPanel.d.ts +0 -5
- package/commons/components/display/AppInfoPanel.js +0 -33
- package/commons/components/display/AppListEmpty.d.ts +0 -2
- package/commons/components/display/AppListEmpty.js +0 -8
- package/commons/components/display/AppToc.d.ts +0 -19
- package/commons/components/display/AppToc.js +0 -116
- package/commons/components/display/hooks/useAppColor.d.ts +0 -5
- package/commons/components/display/hooks/useAppColor.js +0 -15
- package/commons/components/leftnav/LeftNavDrawer.d.ts +0 -2
- package/commons/components/leftnav/LeftNavDrawer.js +0 -141
- package/commons/components/leftnav/LeftNavGroup.d.ts +0 -7
- package/commons/components/leftnav/LeftNavGroup.js +0 -125
- package/commons/components/leftnav/LeftNavItem.d.ts +0 -10
- package/commons/components/leftnav/LeftNavItem.js +0 -50
- package/commons/components/notification/FeedModels.d.ts +0 -64
- package/commons/components/notification/FeedModels.js +0 -91
- package/commons/components/notification/Notification.d.ts +0 -10
- package/commons/components/notification/Notification.js +0 -8
- package/commons/components/notification/elements/NotificationCloseButton.d.ts +0 -3
- package/commons/components/notification/elements/NotificationCloseButton.js +0 -8
- package/commons/components/notification/elements/NotificationContainer.d.ts +0 -16
- package/commons/components/notification/elements/NotificationContainer.js +0 -10
- package/commons/components/notification/elements/NotificationEndOfPage.d.ts +0 -5
- package/commons/components/notification/elements/NotificationEndOfPage.js +0 -41
- package/commons/components/notification/elements/NotificationError.d.ts +0 -2
- package/commons/components/notification/elements/NotificationError.js +0 -27
- package/commons/components/notification/elements/NotificationHeader.d.ts +0 -8
- package/commons/components/notification/elements/NotificationHeader.js +0 -41
- package/commons/components/notification/elements/NotificationItems.d.ts +0 -12
- package/commons/components/notification/elements/NotificationItems.js +0 -10
- package/commons/components/notification/elements/NotificationSkeleton.d.ts +0 -2
- package/commons/components/notification/elements/NotificationSkeleton.js +0 -54
- package/commons/components/notification/elements/NotificationTopNavButton.d.ts +0 -9
- package/commons/components/notification/elements/NotificationTopNavButton.js +0 -14
- package/commons/components/notification/elements/item/NotificationItem.d.ts +0 -5
- package/commons/components/notification/elements/item/NotificationItem.js +0 -10
- package/commons/components/notification/elements/item/NotificationItemAuthor.d.ts +0 -5
- package/commons/components/notification/elements/item/NotificationItemAuthor.js +0 -63
- package/commons/components/notification/elements/item/NotificationItemContent.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemContent.js +0 -9
- package/commons/components/notification/elements/item/NotificationItemDate.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemDate.js +0 -9
- package/commons/components/notification/elements/item/NotificationItemImage.d.ts +0 -4
- package/commons/components/notification/elements/item/NotificationItemImage.js +0 -20
- package/commons/components/notification/elements/item/NotificationItemTag.d.ts +0 -4
- package/commons/components/notification/elements/item/NotificationItemTag.js +0 -16
- package/commons/components/notification/elements/item/NotificationItemTitle.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemTitle.js +0 -8
- package/commons/components/notification/index.d.ts +0 -2
- package/commons/components/notification/index.js +0 -13
- package/commons/components/pages/PageCardCentered.d.ts +0 -5
- package/commons/components/pages/PageCardCentered.js +0 -35
- package/commons/components/pages/PageCenter.d.ts +0 -8
- package/commons/components/pages/PageCenter.js +0 -39
- package/commons/components/pages/PageContent.d.ts +0 -7
- package/commons/components/pages/PageContent.js +0 -11
- package/commons/components/pages/PageFullScreen.d.ts +0 -10
- package/commons/components/pages/PageFullScreen.js +0 -57
- package/commons/components/pages/PageFullWidth.d.ts +0 -11
- package/commons/components/pages/PageFullWidth.js +0 -18
- package/commons/components/pages/PageHeader.d.ts +0 -23
- package/commons/components/pages/PageHeader.js +0 -83
- package/commons/components/pages/hooks/usePageProps.d.ts +0 -24
- package/commons/components/pages/hooks/usePageProps.js +0 -28
- package/commons/components/search/AppSearch.d.ts +0 -1
- package/commons/components/search/AppSearch.js +0 -211
- package/commons/components/search/AppSearchInput.d.ts +0 -11
- package/commons/components/search/AppSearchInput.js +0 -68
- package/commons/components/search/AppSearchResult.d.ts +0 -4
- package/commons/components/search/AppSearchResult.js +0 -43
- package/commons/components/topnav/AppBar.d.ts +0 -5
- package/commons/components/topnav/AppBar.js +0 -119
- package/commons/components/topnav/AppName.d.ts +0 -4
- package/commons/components/topnav/AppName.js +0 -52
- package/commons/components/topnav/AppSwitcher.d.ts +0 -2
- package/commons/components/topnav/AppSwitcher.js +0 -76
- package/commons/components/topnav/Notifications.d.ts +0 -2
- package/commons/components/topnav/Notifications.js +0 -19
- package/commons/components/topnav/ThemeSelection.d.ts +0 -2
- package/commons/components/topnav/ThemeSelection.js +0 -89
- package/commons/components/topnav/ThemeSelectionIcon.d.ts +0 -2
- package/commons/components/topnav/ThemeSelectionIcon.js +0 -31
- package/commons/components/topnav/UserProfile.d.ts +0 -5
- package/commons/components/topnav/UserProfile.js +0 -144
- package/commons/components/utils/hooks/useClipboard.d.ts +0 -3
- package/commons/components/utils/hooks/useClipboard.js +0 -31
- package/commons/components/utils/hooks/useEnv.d.ts +0 -1
- package/commons/components/utils/hooks/useEnv.js +0 -14
- package/commons/components/utils/hooks/useFullscreenStatus.d.ts +0 -2
- package/commons/components/utils/hooks/useFullscreenStatus.js +0 -37
- package/commons/components/utils/hooks/useGravatar.d.ts +0 -2
- package/commons/components/utils/hooks/useGravatar.js +0 -11
- package/commons/components/utils/hooks/useLocalStorage.d.ts +0 -12
- package/commons/components/utils/hooks/useLocalStorage.js +0 -50
- package/commons/components/utils/hooks/useLocalStorageItem.d.ts +0 -14
- package/commons/components/utils/hooks/useLocalStorageItem.js +0 -31
- package/commons/components/utils/hooks/useThemeBuilder.d.ts +0 -7
- package/commons/components/utils/hooks/useThemeBuilder.js +0 -61
- package/commons/components/utils/keyboard.d.ts +0 -30
- package/commons/components/utils/keyboard.js +0 -70
- package/components/app/App.d.ts +0 -3
- package/components/app/App.js +0 -342
- package/components/app/AppContainer.d.ts +0 -3
- package/components/app/AppContainer.js +0 -12
- package/components/app/drawers/ApiKeyDrawer.d.ts +0 -6
- package/components/app/drawers/ApiKeyDrawer.js +0 -143
- package/components/app/drawers/AppDrawerType.d.ts +0 -6
- package/components/app/drawers/AppDrawerType.js +0 -1
- package/components/app/drawers/AssignUserDrawer.d.ts +0 -9
- package/components/app/drawers/AssignUserDrawer.js +0 -104
- package/components/app/drawers/ViewGroupsDrawer.d.ts +0 -7
- package/components/app/drawers/ViewGroupsDrawer.js +0 -11
- package/components/app/hooks/useMatchers.d.ts +0 -9
- package/components/app/hooks/useMatchers.js +0 -84
- package/components/app/hooks/useTitle.d.ts +0 -2
- package/components/app/hooks/useTitle.js +0 -64
- package/components/app/providers/AnalyticProvider.d.ts +0 -10
- package/components/app/providers/AnalyticProvider.js +0 -63
- package/components/app/providers/ApiConfigProvider.d.ts +0 -9
- package/components/app/providers/ApiConfigProvider.js +0 -24
- package/components/app/providers/AppDrawerProvider.d.ts +0 -10
- package/components/app/providers/AppDrawerProvider.js +0 -38
- package/components/app/providers/AvatarProvider.d.ts +0 -7
- package/components/app/providers/AvatarProvider.js +0 -32
- package/components/app/providers/CustomPluginProvider.d.ts +0 -3
- package/components/app/providers/CustomPluginProvider.js +0 -16
- package/components/app/providers/FavouritesProvider.d.ts +0 -4
- package/components/app/providers/FavouritesProvider.js +0 -136
- package/components/app/providers/FieldProvider.d.ts +0 -9
- package/components/app/providers/FieldProvider.js +0 -22
- package/components/app/providers/HitProvider.d.ts +0 -22
- package/components/app/providers/HitProvider.js +0 -103
- package/components/app/providers/HitSearchProvider.d.ts +0 -27
- package/components/app/providers/HitSearchProvider.js +0 -188
- package/components/app/providers/LocalStorageProvider.d.ts +0 -13
- package/components/app/providers/LocalStorageProvider.js +0 -49
- package/components/app/providers/ModalProvider.d.ts +0 -16
- package/components/app/providers/ModalProvider.js +0 -34
- package/components/app/providers/OverviewProvider.d.ts +0 -13
- package/components/app/providers/OverviewProvider.js +0 -68
- package/components/app/providers/ParameterProvider.d.ts +0 -26
- package/components/app/providers/ParameterProvider.js +0 -166
- package/components/app/providers/SocketProvider.d.ts +0 -57
- package/components/app/providers/SocketProvider.js +0 -175
- package/components/app/providers/UserListProvider.d.ts +0 -12
- package/components/app/providers/UserListProvider.js +0 -40
- package/components/app/providers/ViewProvider.d.ts +0 -23
- package/components/app/providers/ViewProvider.js +0 -163
- package/components/elements/Comment.d.ts +0 -17
- package/components/elements/Comment.js +0 -258
- package/components/elements/EditRow.d.ts +0 -14
- package/components/elements/EditRow.js +0 -208
- package/components/elements/PluginChip.d.ts +0 -9
- package/components/elements/PluginChip.js +0 -24
- package/components/elements/PluginTypography.d.ts +0 -9
- package/components/elements/PluginTypography.js +0 -24
- package/components/elements/ThemedEditor.d.ts +0 -3
- package/components/elements/ThemedEditor.js +0 -119
- package/components/elements/UserList.d.ts +0 -9
- package/components/elements/UserList.js +0 -67
- package/components/elements/addons/buttons/CustomButton.d.ts +0 -12
- package/components/elements/addons/buttons/CustomButton.js +0 -59
- package/components/elements/addons/buttons/CustomIconButton.d.ts +0 -15
- package/components/elements/addons/buttons/CustomIconButton.js +0 -81
- package/components/elements/addons/buttons/index.d.ts +0 -3
- package/components/elements/addons/buttons/index.js +0 -8
- package/components/elements/addons/layout/FlexOne.d.ts +0 -4
- package/components/elements/addons/layout/FlexOne.js +0 -9
- package/components/elements/addons/layout/FlexPort.d.ts +0 -12
- package/components/elements/addons/layout/FlexPort.js +0 -32
- package/components/elements/addons/layout/FlexVertical.d.ts +0 -8
- package/components/elements/addons/layout/FlexVertical.js +0 -23
- package/components/elements/addons/layout/vsbox/VSBox.d.ts +0 -16
- package/components/elements/addons/layout/vsbox/VSBox.js +0 -31
- package/components/elements/addons/layout/vsbox/VSBoxContent.d.ts +0 -4
- package/components/elements/addons/layout/vsbox/VSBoxContent.js +0 -8
- package/components/elements/addons/layout/vsbox/VSBoxElement.d.ts +0 -8
- package/components/elements/addons/layout/vsbox/VSBoxElement.js +0 -33
- package/components/elements/addons/layout/vsbox/VSBoxHeader.d.ts +0 -5
- package/components/elements/addons/layout/vsbox/VSBoxHeader.js +0 -36
- package/components/elements/addons/lists/TuiList.d.ts +0 -8
- package/components/elements/addons/lists/TuiList.js +0 -8
- package/components/elements/addons/lists/TuiListBase.d.ts +0 -10
- package/components/elements/addons/lists/TuiListBase.js +0 -82
- package/components/elements/addons/lists/TuiListElement.d.ts +0 -9
- package/components/elements/addons/lists/TuiListElement.js +0 -8
- package/components/elements/addons/lists/TuiListMenu.d.ts +0 -49
- package/components/elements/addons/lists/TuiListMenu.js +0 -45
- package/components/elements/addons/lists/TuiListProvider.d.ts +0 -22
- package/components/elements/addons/lists/TuiListProvider.js +0 -125
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.d.ts +0 -5
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.js +0 -43
- package/components/elements/addons/lists/index.d.ts +0 -19
- package/components/elements/addons/lists/index.js +0 -7
- package/components/elements/addons/lists/table/TuiTable.d.ts +0 -14
- package/components/elements/addons/lists/table/TuiTable.js +0 -114
- package/components/elements/addons/lists/table/TuiTableBody.d.ts +0 -14
- package/components/elements/addons/lists/table/TuiTableBody.js +0 -47
- package/components/elements/addons/lists/table/TuiTableHead.d.ts +0 -8
- package/components/elements/addons/lists/table/TuiTableHead.js +0 -21
- package/components/elements/addons/lists/table/TuiTableHeader.d.ts +0 -6
- package/components/elements/addons/lists/table/TuiTableHeader.js +0 -11
- package/components/elements/addons/lists/table/TuiTableLayout.d.ts +0 -12
- package/components/elements/addons/lists/table/TuiTableLayout.js +0 -47
- package/components/elements/addons/lists/table/index.d.ts +0 -15
- package/components/elements/addons/lists/table/index.js +0 -4
- package/components/elements/addons/search/SearchPagination.d.ts +0 -9
- package/components/elements/addons/search/SearchPagination.js +0 -17
- package/components/elements/addons/search/SearchTotal.d.ts +0 -8
- package/components/elements/addons/search/SearchTotal.js +0 -27
- package/components/elements/addons/search/phrase/Phrase.d.ts +0 -19
- package/components/elements/addons/search/phrase/Phrase.js +0 -137
- package/components/elements/addons/search/phrase/PhraseConsumer.d.ts +0 -13
- package/components/elements/addons/search/phrase/PhraseConsumer.js +0 -30
- package/components/elements/addons/search/phrase/PhraseLexer.d.ts +0 -26
- package/components/elements/addons/search/phrase/PhraseLexer.js +0 -121
- package/components/elements/addons/search/phrase/index.d.ts +0 -40
- package/components/elements/addons/search/phrase/index.js +0 -49
- package/components/elements/addons/search/phrase/word/WordLexer.d.ts +0 -5
- package/components/elements/addons/search/phrase/word/WordLexer.js +0 -11
- package/components/elements/addons/search/phrase/word/WordSuggester.d.ts +0 -6
- package/components/elements/addons/search/phrase/word/WordSuggester.js +0 -11
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.d.ts +0 -7
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.js +0 -20
- package/components/elements/addons/search/phrase/word/consumers/WordConsumer.d.ts +0 -7
- package/components/elements/addons/search/phrase/word/consumers/WordConsumer.js +0 -20
- package/components/elements/display/ActionButton.d.ts +0 -8
- package/components/elements/display/ActionButton.js +0 -36
- package/components/elements/display/Classification.d.ts +0 -3
- package/components/elements/display/Classification.js +0 -31
- package/components/elements/display/DocumentationButton.d.ts +0 -3
- package/components/elements/display/DocumentationButton.js +0 -36
- package/components/elements/display/DynamicTabs.d.ts +0 -8
- package/components/elements/display/DynamicTabs.js +0 -26
- package/components/elements/display/HandlebarsMarkdown.d.ts +0 -9
- package/components/elements/display/HandlebarsMarkdown.js +0 -77
- package/components/elements/display/HowlerAvatar.d.ts +0 -6
- package/components/elements/display/HowlerAvatar.js +0 -53
- package/components/elements/display/HowlerAvatarHeader.d.ts +0 -6
- package/components/elements/display/HowlerAvatarHeader.js +0 -30
- package/components/elements/display/HowlerCard.d.ts +0 -3
- package/components/elements/display/HowlerCard.js +0 -8
- package/components/elements/display/Image.d.ts +0 -3
- package/components/elements/display/Image.js +0 -45
- package/components/elements/display/ItemManager.d.ts +0 -25
- package/components/elements/display/ItemManager.js +0 -119
- package/components/elements/display/Markdown.d.ts +0 -10
- package/components/elements/display/Markdown.js +0 -156
- package/components/elements/display/Modal.d.ts +0 -3
- package/components/elements/display/Modal.js +0 -39
- package/components/elements/display/Notebook.d.ts +0 -4
- package/components/elements/display/Notebook.js +0 -9
- package/components/elements/display/QueryResultText.d.ts +0 -6
- package/components/elements/display/QueryResultText.js +0 -28
- package/components/elements/display/TextDivider.d.ts +0 -3
- package/components/elements/display/TextDivider.js +0 -42
- package/components/elements/display/TypingIndicator.d.ts +0 -2
- package/components/elements/display/TypingIndicator.js +0 -44
- package/components/elements/display/UserPageWrapper.d.ts +0 -6
- package/components/elements/display/UserPageWrapper.js +0 -11
- package/components/elements/display/features/DevelopmentBanner.d.ts +0 -3
- package/components/elements/display/features/DevelopmentBanner.js +0 -19
- package/components/elements/display/features/DevelopmentIcon.d.ts +0 -3
- package/components/elements/display/features/DevelopmentIcon.js +0 -17
- package/components/elements/display/handlebars/helpers.d.ts +0 -12
- package/components/elements/display/handlebars/helpers.js +0 -229
- package/components/elements/display/icons/BundleButton.d.ts +0 -6
- package/components/elements/display/icons/BundleButton.js +0 -70
- package/components/elements/display/icons/Iconified.d.ts +0 -9
- package/components/elements/display/icons/Iconified.js +0 -14
- package/components/elements/display/icons/SocketBadge.d.ts +0 -5
- package/components/elements/display/icons/SocketBadge.js +0 -79
- package/components/elements/display/json/JSONViewer.d.ts +0 -8
- package/components/elements/display/json/JSONViewer.js +0 -86
- package/components/elements/display/markdownPlugins/tabs.d.ts +0 -3
- package/components/elements/display/markdownPlugins/tabs.js +0 -66
- package/components/elements/display/modals/ConfirmDeleteModal.d.ts +0 -5
- package/components/elements/display/modals/ConfirmDeleteModal.js +0 -24
- package/components/elements/display/modals/ConfirmNotebookModal.d.ts +0 -5
- package/components/elements/display/modals/ConfirmNotebookModal.js +0 -24
- package/components/elements/display/modals/CreateActionModal.d.ts +0 -5
- package/components/elements/display/modals/CreateActionModal.js +0 -54
- package/components/elements/display/modals/LoginErrorModal.d.ts +0 -5
- package/components/elements/display/modals/LoginErrorModal.js +0 -24
- package/components/elements/display/modals/RationaleModal.d.ts +0 -5
- package/components/elements/display/modals/RationaleModal.js +0 -50
- package/components/elements/hit/HitActions.d.ts +0 -6
- package/components/elements/hit/HitActions.js +0 -255
- package/components/elements/hit/HitBanner.d.ts +0 -15
- package/components/elements/hit/HitBanner.js +0 -330
- package/components/elements/hit/HitBannerTooltip.d.ts +0 -6
- package/components/elements/hit/HitBannerTooltip.js +0 -39
- package/components/elements/hit/HitCard.d.ts +0 -7
- package/components/elements/hit/HitCard.js +0 -33
- package/components/elements/hit/HitComments.d.ts +0 -11
- package/components/elements/hit/HitComments.js +0 -280
- package/components/elements/hit/HitDetails.d.ts +0 -5
- package/components/elements/hit/HitDetails.js +0 -238
- package/components/elements/hit/HitLabels.d.ts +0 -6
- package/components/elements/hit/HitLabels.js +0 -210
- package/components/elements/hit/HitLayout.d.ts +0 -5
- package/components/elements/hit/HitLayout.js +0 -9
- package/components/elements/hit/HitNotebooks.d.ts +0 -8
- package/components/elements/hit/HitNotebooks.js +0 -213
- package/components/elements/hit/HitOutline.d.ts +0 -9
- package/components/elements/hit/HitOutline.js +0 -43
- package/components/elements/hit/HitOverview.d.ts +0 -6
- package/components/elements/hit/HitOverview.js +0 -35
- package/components/elements/hit/HitQuickSearch.d.ts +0 -8
- package/components/elements/hit/HitQuickSearch.js +0 -118
- package/components/elements/hit/HitRelated.d.ts +0 -6
- package/components/elements/hit/HitRelated.js +0 -10
- package/components/elements/hit/HitShortcuts.d.ts +0 -5
- package/components/elements/hit/HitShortcuts.js +0 -9
- package/components/elements/hit/HitSummary.d.ts +0 -11
- package/components/elements/hit/HitSummary.js +0 -234
- package/components/elements/hit/HitWorklog.d.ts +0 -10
- package/components/elements/hit/HitWorklog.js +0 -163
- package/components/elements/hit/actions/ButtonActions.d.ts +0 -12
- package/components/elements/hit/actions/ButtonActions.js +0 -215
- package/components/elements/hit/actions/DropdownActions.d.ts +0 -12
- package/components/elements/hit/actions/DropdownActions.js +0 -98
- package/components/elements/hit/actions/SharedComponents.d.ts +0 -18
- package/components/elements/hit/actions/SharedComponents.js +0 -27
- package/components/elements/hit/aggregate/HitGraph.d.ts +0 -5
- package/components/elements/hit/aggregate/HitGraph.js +0 -321
- package/components/elements/hit/elements/Assigned.d.ts +0 -9
- package/components/elements/hit/elements/Assigned.js +0 -65
- package/components/elements/hit/elements/EscalationChip.d.ts +0 -9
- package/components/elements/hit/elements/EscalationChip.js +0 -24
- package/components/elements/hit/elements/HitTimestamp.d.ts +0 -8
- package/components/elements/hit/elements/HitTimestamp.js +0 -73
- package/components/elements/hit/outlines/DefaultOutline.d.ts +0 -12
- package/components/elements/hit/outlines/DefaultOutline.js +0 -77
- package/components/elements/hit/outlines/al/AssemblyLineRules.d.ts +0 -5
- package/components/elements/hit/outlines/al/AssemblyLineRules.js +0 -87
- package/components/elements/hit/related/PivotLink.d.ts +0 -10
- package/components/elements/hit/related/PivotLink.js +0 -49
- package/components/elements/hit/related/RelatedIcon.d.ts +0 -8
- package/components/elements/hit/related/RelatedIcon.js +0 -50
- package/components/elements/hit/related/RelatedLink.d.ts +0 -8
- package/components/elements/hit/related/RelatedLink.js +0 -42
- package/components/elements/view/ViewTitle.d.ts +0 -10
- package/components/elements/view/ViewTitle.js +0 -45
- package/components/hooks/useHitActions.d.ts +0 -14
- package/components/hooks/useHitActions.js +0 -229
- package/components/hooks/useHitSelection.d.ts +0 -8
- package/components/hooks/useHitSelection.js +0 -86
- package/components/hooks/useMyApi.d.ts +0 -10
- package/components/hooks/useMyApi.js +0 -49
- package/components/hooks/useMyChart.d.ts +0 -275
- package/components/hooks/useMyChart.js +0 -131
- package/components/hooks/useMyLocalStorage.d.ts +0 -17
- package/components/hooks/useMyLocalStorage.js +0 -19
- package/components/hooks/useMyPreferences.d.ts +0 -3
- package/components/hooks/useMyPreferences.js +0 -272
- package/components/hooks/useMySearch.d.ts +0 -4
- package/components/hooks/useMySearch.js +0 -59
- package/components/hooks/useMySitemap.d.ts +0 -3
- package/components/hooks/useMySitemap.js +0 -206
- package/components/hooks/useMySnackbar.d.ts +0 -8
- package/components/hooks/useMySnackbar.js +0 -56
- package/components/hooks/useMyTheme.d.ts +0 -3
- package/components/hooks/useMyTheme.js +0 -30
- package/components/hooks/useMyUser.d.ts +0 -4
- package/components/hooks/useMyUser.js +0 -31
- package/components/hooks/useMyUserFunctions.d.ts +0 -118
- package/components/hooks/useMyUserFunctions.js +0 -143
- package/components/hooks/useMyUserList.d.ts +0 -4
- package/components/hooks/useMyUserList.js +0 -12
- package/components/hooks/useMyUtils.d.ts +0 -4
- package/components/hooks/useMyUtils.js +0 -18
- package/components/hooks/useScrollRestoration.d.ts +0 -7
- package/components/hooks/useScrollRestoration.js +0 -25
- package/components/logins/Login.d.ts +0 -2
- package/components/logins/Login.js +0 -47
- package/components/logins/auth/OAuthLogin.d.ts +0 -6
- package/components/logins/auth/OAuthLogin.js +0 -40
- package/components/logins/auth/UserPassLogin.d.ts +0 -2
- package/components/logins/auth/UserPassLogin.js +0 -51
- package/components/logins/hooks/useLogin.d.ts +0 -7
- package/components/logins/hooks/useLogin.js +0 -87
- package/components/routes/404.d.ts +0 -3
- package/components/routes/404.js +0 -16
- package/components/routes/ErrorBoundary.d.ts +0 -14
- package/components/routes/ErrorBoundary.js +0 -32
- package/components/routes/ErrorOccured.d.ts +0 -3
- package/components/routes/ErrorOccured.js +0 -20
- package/components/routes/Logout.d.ts +0 -3
- package/components/routes/Logout.js +0 -46
- package/components/routes/action/edit/ActionEditor.d.ts +0 -14
- package/components/routes/action/edit/ActionEditor.js +0 -275
- package/components/routes/action/shared/ActionReportDisplay.d.ts +0 -7
- package/components/routes/action/shared/ActionReportDisplay.js +0 -51
- package/components/routes/action/shared/OperationEntry.d.ts +0 -13
- package/components/routes/action/shared/OperationEntry.js +0 -84
- package/components/routes/action/shared/OperationStep.d.ts +0 -11
- package/components/routes/action/shared/OperationStep.js +0 -151
- package/components/routes/action/useMyActionFunctions.d.ts +0 -19
- package/components/routes/action/useMyActionFunctions.js +0 -201
- package/components/routes/action/view/ActionDetails.d.ts +0 -2
- package/components/routes/action/view/ActionDetails.js +0 -177
- package/components/routes/action/view/ActionSearch.d.ts +0 -3
- package/components/routes/action/view/ActionSearch.js +0 -214
- package/components/routes/action/view/Integrations.d.ts +0 -3
- package/components/routes/action/view/Integrations.js +0 -34
- package/components/routes/admin/users/UserEditor.d.ts +0 -3
- package/components/routes/admin/users/UserEditor.js +0 -57
- package/components/routes/admin/users/UserSearch.d.ts +0 -3
- package/components/routes/admin/users/UserSearch.js +0 -179
- package/components/routes/advanced/QueryBuilder.d.ts +0 -3
- package/components/routes/advanced/QueryBuilder.js +0 -497
- package/components/routes/advanced/QueryEditor.d.ts +0 -14
- package/components/routes/advanced/QueryEditor.js +0 -117
- package/components/routes/advanced/RuleModal.d.ts +0 -7
- package/components/routes/advanced/RuleModal.js +0 -189
- package/components/routes/advanced/eqlCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/eqlCompletionProvider.js +0 -81
- package/components/routes/advanced/eqlTokenProvider.d.ts +0 -8
- package/components/routes/advanced/eqlTokenProvider.js +0 -84
- package/components/routes/advanced/historyCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/historyCompletionProvider.js +0 -51
- package/components/routes/advanced/luceneCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/luceneCompletionProvider.js +0 -91
- package/components/routes/advanced/luceneTokenProvider.d.ts +0 -9
- package/components/routes/advanced/luceneTokenProvider.js +0 -101
- package/components/routes/advanced/yamlCompletionProvider.d.ts +0 -3
- package/components/routes/advanced/yamlCompletionProvider.js +0 -50
- package/components/routes/analytics/AnalyticComments.d.ts +0 -7
- package/components/routes/analytics/AnalyticComments.js +0 -190
- package/components/routes/analytics/AnalyticDetails.d.ts +0 -2
- package/components/routes/analytics/AnalyticDetails.js +0 -254
- package/components/routes/analytics/AnalyticHitComments.d.ts +0 -6
- package/components/routes/analytics/AnalyticHitComments.js +0 -71
- package/components/routes/analytics/AnalyticNotebooks.d.ts +0 -7
- package/components/routes/analytics/AnalyticNotebooks.js +0 -138
- package/components/routes/analytics/AnalyticOverview.d.ts +0 -7
- package/components/routes/analytics/AnalyticOverview.js +0 -103
- package/components/routes/analytics/AnalyticOverviews.d.ts +0 -6
- package/components/routes/analytics/AnalyticOverviews.js +0 -72
- package/components/routes/analytics/AnalyticSearch.d.ts +0 -3
- package/components/routes/analytics/AnalyticSearch.js +0 -233
- package/components/routes/analytics/AnalyticTemplates.d.ts +0 -6
- package/components/routes/analytics/AnalyticTemplates.js +0 -70
- package/components/routes/analytics/RuleView.d.ts +0 -7
- package/components/routes/analytics/RuleView.js +0 -74
- package/components/routes/analytics/TriageSettings.d.ts +0 -7
- package/components/routes/analytics/TriageSettings.js +0 -104
- package/components/routes/analytics/widgets/Assessment.d.ts +0 -5
- package/components/routes/analytics/widgets/Assessment.js +0 -58
- package/components/routes/analytics/widgets/Created.d.ts +0 -5
- package/components/routes/analytics/widgets/Created.js +0 -52
- package/components/routes/analytics/widgets/Detection.d.ts +0 -6
- package/components/routes/analytics/widgets/Detection.js +0 -11
- package/components/routes/analytics/widgets/Escalation.d.ts +0 -6
- package/components/routes/analytics/widgets/Escalation.js +0 -51
- package/components/routes/analytics/widgets/Stacked.d.ts +0 -7
- package/components/routes/analytics/widgets/Stacked.js +0 -87
- package/components/routes/analytics/widgets/Status.d.ts +0 -5
- package/components/routes/analytics/widgets/Status.js +0 -21
- package/components/routes/dossiers/DossierCard.d.ts +0 -8
- package/components/routes/dossiers/DossierCard.js +0 -24
- package/components/routes/dossiers/DossierEditor.d.ts +0 -2
- package/components/routes/dossiers/DossierEditor.js +0 -198
- package/components/routes/dossiers/Dossiers.d.ts +0 -2
- package/components/routes/dossiers/Dossiers.js +0 -146
- package/components/routes/dossiers/LeadEditor.d.ts +0 -13
- package/components/routes/dossiers/LeadEditor.js +0 -119
- package/components/routes/dossiers/LeadForm.d.ts +0 -8
- package/components/routes/dossiers/LeadForm.js +0 -98
- package/components/routes/dossiers/PivotForm.d.ts +0 -13
- package/components/routes/dossiers/PivotForm.js +0 -278
- package/components/routes/help/ActionDocumentation.d.ts +0 -8
- package/components/routes/help/ActionDocumentation.js +0 -62
- package/components/routes/help/ActionIntroductionDocumentation.d.ts +0 -3
- package/components/routes/help/ActionIntroductionDocumentation.js +0 -103
- package/components/routes/help/ApiDocumentation.d.ts +0 -3
- package/components/routes/help/ApiDocumentation.js +0 -139
- package/components/routes/help/AuthDocumentation.d.ts +0 -3
- package/components/routes/help/AuthDocumentation.js +0 -20
- package/components/routes/help/BundleDocumentation.d.ts +0 -3
- package/components/routes/help/BundleDocumentation.js +0 -84
- package/components/routes/help/ClientDocumentation.d.ts +0 -3
- package/components/routes/help/ClientDocumentation.js +0 -20
- package/components/routes/help/Help.d.ts +0 -2
- package/components/routes/help/Help.js +0 -61
- package/components/routes/help/HitBannerDocumentation.d.ts +0 -3
- package/components/routes/help/HitBannerDocumentation.js +0 -62
- package/components/routes/help/HitDocumentation.d.ts +0 -3
- package/components/routes/help/HitDocumentation.js +0 -83
- package/components/routes/help/HitLabelsDocumentation.d.ts +0 -3
- package/components/routes/help/HitLabelsDocumentation.js +0 -46
- package/components/routes/help/HitLinksDocumentation.d.ts +0 -3
- package/components/routes/help/HitLinksDocumentation.js +0 -56
- package/components/routes/help/HitSchemaDocumentation.d.ts +0 -3
- package/components/routes/help/HitSchemaDocumentation.js +0 -159
- package/components/routes/help/NotebookDocumentation.d.ts +0 -3
- package/components/routes/help/NotebookDocumentation.js +0 -19
- package/components/routes/help/OverviewDocumentation.d.ts +0 -3
- package/components/routes/help/OverviewDocumentation.js +0 -15
- package/components/routes/help/RetentionDocumentation.d.ts +0 -3
- package/components/routes/help/RetentionDocumentation.js +0 -48
- package/components/routes/help/SearchDocumentation.d.ts +0 -3
- package/components/routes/help/SearchDocumentation.js +0 -515
- package/components/routes/help/TemplateDocumentation.d.ts +0 -3
- package/components/routes/help/TemplateDocumentation.js +0 -60
- package/components/routes/help/ViewDocumentation.d.ts +0 -3
- package/components/routes/help/ViewDocumentation.js +0 -29
- package/components/routes/help/components/HelpTabs.d.ts +0 -6
- package/components/routes/help/components/HelpTabs.js +0 -40
- package/components/routes/help/markdown/en/actionIntroduction.md.js +0 -1
- package/components/routes/help/markdown/en/authentication.md.js +0 -1
- package/components/routes/help/markdown/en/bundles.md.js +0 -1
- package/components/routes/help/markdown/en/client.md.js +0 -1
- package/components/routes/help/markdown/en/links.md.js +0 -1
- package/components/routes/help/markdown/en/notebook.md.js +0 -1
- package/components/routes/help/markdown/en/retention.md.js +0 -1
- package/components/routes/help/markdown/en/schema.md.js +0 -1
- package/components/routes/help/markdown/en/templates.md.js +0 -1
- package/components/routes/help/markdown/en/views.md.js +0 -1
- package/components/routes/help/markdown/fr/actionIntroduction.md.js +0 -1
- package/components/routes/help/markdown/fr/authentication.md.js +0 -1
- package/components/routes/help/markdown/fr/bundles.md.js +0 -1
- package/components/routes/help/markdown/fr/client.md.js +0 -1
- package/components/routes/help/markdown/fr/links.md.js +0 -1
- package/components/routes/help/markdown/fr/notebook.md.js +0 -1
- package/components/routes/help/markdown/fr/retention.md.js +0 -1
- package/components/routes/help/markdown/fr/schema.md.js +0 -1
- package/components/routes/help/markdown/fr/templates.md.js +0 -1
- package/components/routes/help/markdown/fr/views.md.js +0 -1
- package/components/routes/hits/search/BundleParentMenu.d.ts +0 -6
- package/components/routes/hits/search/BundleParentMenu.js +0 -54
- package/components/routes/hits/search/BundleScroller.d.ts +0 -2
- package/components/routes/hits/search/BundleScroller.js +0 -9
- package/components/routes/hits/search/CustomSort.d.ts +0 -2
- package/components/routes/hits/search/CustomSort.js +0 -88
- package/components/routes/hits/search/HitBrowser.d.ts +0 -3
- package/components/routes/hits/search/HitBrowser.js +0 -258
- package/components/routes/hits/search/HitContextMenu.d.ts +0 -7
- package/components/routes/hits/search/HitContextMenu.js +0 -209
- package/components/routes/hits/search/HitQuery.d.ts +0 -9
- package/components/routes/hits/search/HitQuery.js +0 -237
- package/components/routes/hits/search/InformationPane.d.ts +0 -5
- package/components/routes/hits/search/InformationPane.js +0 -377
- package/components/routes/hits/search/SearchPane.d.ts +0 -3
- package/components/routes/hits/search/SearchPane.js +0 -222
- package/components/routes/hits/search/ViewLink.d.ts +0 -2
- package/components/routes/hits/search/ViewLink.js +0 -77
- package/components/routes/hits/search/grid/AddColumnModal.d.ts +0 -8
- package/components/routes/hits/search/grid/AddColumnModal.js +0 -92
- package/components/routes/hits/search/grid/ColumnHeader.d.ts +0 -8
- package/components/routes/hits/search/grid/ColumnHeader.js +0 -70
- package/components/routes/hits/search/grid/EnhancedCell.d.ts +0 -8
- package/components/routes/hits/search/grid/EnhancedCell.js +0 -50
- package/components/routes/hits/search/grid/HitGrid.d.ts +0 -3
- package/components/routes/hits/search/grid/HitGrid.js +0 -274
- package/components/routes/hits/search/grid/HitRow.d.ts +0 -10
- package/components/routes/hits/search/grid/HitRow.js +0 -102
- package/components/routes/hits/search/shared/CustomSpan.d.ts +0 -2
- package/components/routes/hits/search/shared/CustomSpan.js +0 -54
- package/components/routes/hits/search/shared/HitFilter.d.ts +0 -4
- package/components/routes/hits/search/shared/HitFilter.js +0 -99
- package/components/routes/hits/search/shared/HitSort.d.ts +0 -4
- package/components/routes/hits/search/shared/HitSort.js +0 -91
- package/components/routes/hits/search/shared/QuerySettings.d.ts +0 -6
- package/components/routes/hits/search/shared/QuerySettings.js +0 -41
- package/components/routes/hits/search/shared/SearchSpan.d.ts +0 -5
- package/components/routes/hits/search/shared/SearchSpan.js +0 -59
- package/components/routes/hits/view/HitViewer.d.ts +0 -7
- package/components/routes/hits/view/HitViewer.js +0 -336
- package/components/routes/hits/view/LeadRenderer.d.ts +0 -7
- package/components/routes/hits/view/LeadRenderer.js +0 -34
- package/components/routes/home/AddNewCard.d.ts +0 -7
- package/components/routes/home/AddNewCard.js +0 -216
- package/components/routes/home/AnalyticCard.d.ts +0 -7
- package/components/routes/home/AnalyticCard.js +0 -43
- package/components/routes/home/EntryWrapper.d.ts +0 -7
- package/components/routes/home/EntryWrapper.js +0 -58
- package/components/routes/home/ViewCard.d.ts +0 -7
- package/components/routes/home/ViewCard.js +0 -64
- package/components/routes/home/index.d.ts +0 -3
- package/components/routes/home/index.js +0 -244
- package/components/routes/overviews/OverviewCard.d.ts +0 -8
- package/components/routes/overviews/OverviewCard.js +0 -25
- package/components/routes/overviews/OverviewEditor.d.ts +0 -12
- package/components/routes/overviews/OverviewEditor.js +0 -81
- package/components/routes/overviews/OverviewViewer.d.ts +0 -2
- package/components/routes/overviews/OverviewViewer.js +0 -316
- package/components/routes/overviews/Overviews.d.ts +0 -2
- package/components/routes/overviews/Overviews.js +0 -148
- package/components/routes/overviews/markdownExtendedTokenProvider.d.ts +0 -3
- package/components/routes/overviews/markdownExtendedTokenProvider.js +0 -262
- package/components/routes/overviews/startingTemplate.d.ts +0 -1
- package/components/routes/overviews/startingTemplate.js +0 -36
- package/components/routes/overviews/template/en.md.js +0 -1
- package/components/routes/overviews/template/fr.md.js +0 -1
- package/components/routes/settings/AdminSection.d.ts +0 -3
- package/components/routes/settings/AdminSection.js +0 -13
- package/components/routes/settings/LocalSection.d.ts +0 -3
- package/components/routes/settings/LocalSection.js +0 -127
- package/components/routes/settings/ProfileSection.d.ts +0 -10
- package/components/routes/settings/ProfileSection.js +0 -98
- package/components/routes/settings/SecuritySection.d.ts +0 -10
- package/components/routes/settings/SecuritySection.js +0 -71
- package/components/routes/settings/Settings.d.ts +0 -3
- package/components/routes/settings/Settings.js +0 -56
- package/components/routes/settings/SettingsSection.d.ts +0 -7
- package/components/routes/settings/SettingsSection.js +0 -22
- package/components/routes/templates/TemplateCard.d.ts +0 -7
- package/components/routes/templates/TemplateCard.js +0 -26
- package/components/routes/templates/TemplateDnD.d.ts +0 -8
- package/components/routes/templates/TemplateDnD.js +0 -44
- package/components/routes/templates/TemplateEditor.d.ts +0 -9
- package/components/routes/templates/TemplateEditor.js +0 -104
- package/components/routes/templates/TemplateViewer.d.ts +0 -2
- package/components/routes/templates/TemplateViewer.js +0 -219
- package/components/routes/templates/Templates.d.ts +0 -2
- package/components/routes/templates/Templates.js +0 -156
- package/components/routes/views/ViewComposer.d.ts +0 -3
- package/components/routes/views/ViewComposer.js +0 -276
- package/components/routes/views/Views.d.ts +0 -2
- package/components/routes/views/Views.js +0 -301
- package/hit-CQYBTSKb.js +0 -7
- package/i18n.d.ts +0 -3
- package/i18n.js +0 -1909
- package/images/doggie.png +0 -0
- package/index-BPPnUdfP.js +0 -1157
- package/index.d.ts +0 -0
- package/index.js +0 -13
- package/locales/en/help/main.json.d.ts +0 -16
- package/locales/en/help/search.json.d.ts +0 -189
- package/locales/en/translation.json.d.ts +0 -802
- package/locales/fr/help/main.json.d.ts +0 -16
- package/locales/fr/help/search.json.d.ts +0 -189
- package/locales/fr/translation.json.d.ts +0 -800
- package/manifest.json +0 -16
- package/plugins/HowlerPlugin.d.ts +0 -114
- package/plugins/HowlerPlugin.js +0 -276
- package/plugins/store.d.ts +0 -95
- package/plugins/store.js +0 -105
- package/rest/AxiosClient.d.ts +0 -10
- package/rest/AxiosClient.js +0 -68
- package/rest/FetchClient.d.ts +0 -7
- package/rest/FetchClient.js +0 -19
- package/rest/index.d.ts +0 -6
- package/rest/index.js +0 -1
- package/robots.txt +0 -3
- package/scripts/background.js +0 -14
- package/serve.json +0 -14
- package/setupTests.d.ts +0 -0
- package/tests/MockLocalStorage.d.ts +0 -5
- package/tests/server-handlers.d.ts +0 -5
- package/tests/server.d.ts +0 -3
- package/utils/Throttler.d.ts +0 -9
- package/utils/Throttler.js +0 -43
- package/utils/actionUtils.d.ts +0 -31
- package/utils/actionUtils.js +0 -41
- package/utils/constants.d.ts +0 -79
- package/utils/constants.js +0 -131
- package/utils/hit.json.d.ts +0 -30359
- package/utils/hitFunctions.d.ts +0 -2
- package/utils/hitFunctions.js +0 -12
- package/utils/localStorage.d.ts +0 -21
- package/utils/localStorage.js +0 -35
- package/utils/menuUtils.d.ts +0 -89
- package/utils/menuUtils.js +0 -247
- package/utils/sessionStorage.d.ts +0 -7
- package/utils/sessionStorage.js +0 -50
- package/utils/socketUtils.d.ts +0 -8
- package/utils/socketUtils.js +0 -6
- package/utils/stringUtils.d.ts +0 -8
- package/utils/stringUtils.js +0 -52
- package/utils/utils.d.ts +0 -33
- package/utils/utils.js +0 -193
- package/utils/xsrf.d.ts +0 -2
- package/utils/xsrf.js +0 -12
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
2
|
+
import { ChevronLeft as ChevronLeftIcon, ChevronRight as ChevronRightIcon } from '@mui/icons-material';
|
|
3
|
+
import {
|
|
4
|
+
Box,
|
|
5
|
+
ClickAwayListener,
|
|
6
|
+
Divider,
|
|
7
|
+
Drawer,
|
|
8
|
+
List,
|
|
9
|
+
ListItemButton,
|
|
10
|
+
ListItemIcon,
|
|
11
|
+
ListItemText,
|
|
12
|
+
Toolbar,
|
|
13
|
+
Tooltip,
|
|
14
|
+
styled,
|
|
15
|
+
useMediaQuery,
|
|
16
|
+
useTheme
|
|
17
|
+
} from '@mui/material';
|
|
18
|
+
import type { AppLeftNavGroup, AppLeftNavItem } from '@cccsaurora/howler-ui/commons/components/app/AppConfigs';
|
|
19
|
+
import { useAppConfigs, useAppLayout, useAppLeftNav } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
20
|
+
import LeftNavGroup from '@cccsaurora/howler-ui/commons/components/leftnav/LeftNavGroup';
|
|
21
|
+
import LeftNavItem from '@cccsaurora/howler-ui/commons/components/leftnav/LeftNavItem';
|
|
22
|
+
import { memo, useCallback } from 'react';
|
|
23
|
+
import { useTranslation } from 'react-i18next';
|
|
24
|
+
import AppName from '../topnav/AppName';
|
|
25
|
+
|
|
26
|
+
const StyledDrawer = styled(Drawer, { shouldForwardProp: prop => prop !== 'open' && prop !== 'width' })<{
|
|
27
|
+
open: boolean;
|
|
28
|
+
width: number;
|
|
29
|
+
}>(({ theme, open, width }) => ({
|
|
30
|
+
width,
|
|
31
|
+
flexShrink: 0,
|
|
32
|
+
heigth: '100%',
|
|
33
|
+
whiteSpace: 'nowrap',
|
|
34
|
+
'@media print': {
|
|
35
|
+
display: 'none !important'
|
|
36
|
+
},
|
|
37
|
+
transition: theme.transitions.create('width', {
|
|
38
|
+
easing: theme.transitions.easing.sharp,
|
|
39
|
+
duration: theme.transitions.duration.enteringScreen
|
|
40
|
+
}),
|
|
41
|
+
...(!open && {
|
|
42
|
+
transition: theme.transitions.create('width', {
|
|
43
|
+
easing: theme.transitions.easing.sharp,
|
|
44
|
+
duration: theme.transitions.duration.leavingScreen
|
|
45
|
+
}),
|
|
46
|
+
overflowX: 'hidden',
|
|
47
|
+
width: 0,
|
|
48
|
+
[theme.breakpoints.up('sm')]: {
|
|
49
|
+
width: theme.spacing(7)
|
|
50
|
+
},
|
|
51
|
+
[theme.breakpoints.only('xs')]: {
|
|
52
|
+
border: 'none'
|
|
53
|
+
}
|
|
54
|
+
}),
|
|
55
|
+
'& .MuiDrawer-paper': {
|
|
56
|
+
width,
|
|
57
|
+
transition: theme.transitions.create('width', {
|
|
58
|
+
easing: theme.transitions.easing.sharp,
|
|
59
|
+
duration: theme.transitions.duration.enteringScreen
|
|
60
|
+
}),
|
|
61
|
+
...(!open && {
|
|
62
|
+
transition: theme.transitions.create('width', {
|
|
63
|
+
easing: theme.transitions.easing.sharp,
|
|
64
|
+
duration: theme.transitions.duration.leavingScreen
|
|
65
|
+
}),
|
|
66
|
+
overflowX: 'hidden',
|
|
67
|
+
width: 0,
|
|
68
|
+
[theme.breakpoints.up('sm')]: {
|
|
69
|
+
width: theme.spacing(7)
|
|
70
|
+
},
|
|
71
|
+
[theme.breakpoints.only('xs')]: {
|
|
72
|
+
border: 'none'
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
}));
|
|
77
|
+
|
|
78
|
+
const LeftNavDrawer = () => {
|
|
79
|
+
const { t } = useTranslation();
|
|
80
|
+
const theme = useTheme();
|
|
81
|
+
const { preferences } = useAppConfigs();
|
|
82
|
+
const layout = useAppLayout();
|
|
83
|
+
const leftnav = useAppLeftNav();
|
|
84
|
+
const isSmDown = useMediaQuery(theme.breakpoints.down('sm'));
|
|
85
|
+
const isTopLayout = layout.current === 'top';
|
|
86
|
+
|
|
87
|
+
const onCloseDrawerIfOpen = useCallback(() => {
|
|
88
|
+
if (isSmDown && leftnav.open) {
|
|
89
|
+
leftnav.setOpen(false);
|
|
90
|
+
}
|
|
91
|
+
}, [isSmDown, leftnav]);
|
|
92
|
+
|
|
93
|
+
const header = (
|
|
94
|
+
<div>
|
|
95
|
+
<Toolbar
|
|
96
|
+
sx={{
|
|
97
|
+
[theme.breakpoints.up('xs')]: {
|
|
98
|
+
padding: 0
|
|
99
|
+
}
|
|
100
|
+
}}
|
|
101
|
+
>
|
|
102
|
+
<AppName />
|
|
103
|
+
</Toolbar>
|
|
104
|
+
{!isTopLayout && <Divider />}
|
|
105
|
+
</div>
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
const hide = (
|
|
109
|
+
<List disablePadding>
|
|
110
|
+
<ListItemButton key="chevron" onClick={leftnav.toggle}>
|
|
111
|
+
<ListItemIcon>{leftnav.open ? <ChevronLeftIcon /> : <ChevronRightIcon />}</ListItemIcon>
|
|
112
|
+
<ListItemText primary={t('drawer.collapse')} />
|
|
113
|
+
</ListItemButton>
|
|
114
|
+
</List>
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
return (
|
|
118
|
+
<ClickAwayListener mouseEvent="onMouseDown" touchEvent="onTouchStart" onClickAway={onCloseDrawerIfOpen}>
|
|
119
|
+
<StyledDrawer
|
|
120
|
+
PaperProps={{ elevation: 1 }}
|
|
121
|
+
variant="permanent"
|
|
122
|
+
style={{ height: '100%' }}
|
|
123
|
+
width={preferences.leftnav.width}
|
|
124
|
+
open={leftnav.open}
|
|
125
|
+
>
|
|
126
|
+
{leftnav.open ? (
|
|
127
|
+
header
|
|
128
|
+
) : (
|
|
129
|
+
<Tooltip title={preferences.appName} aria-label={preferences.appName} placement="right">
|
|
130
|
+
{header}
|
|
131
|
+
</Tooltip>
|
|
132
|
+
)}
|
|
133
|
+
<List disablePadding>
|
|
134
|
+
{leftnav.elements.map((e, i) => {
|
|
135
|
+
if (e.type === 'item') {
|
|
136
|
+
const item = e.element as AppLeftNavItem;
|
|
137
|
+
return <LeftNavItem key={item.id} item={item} onClick={isSmDown && onCloseDrawerIfOpen} />;
|
|
138
|
+
}
|
|
139
|
+
if (e.type === 'group') {
|
|
140
|
+
const item = e.element as AppLeftNavGroup;
|
|
141
|
+
return <LeftNavGroup key={item.id} group={item} onItemClick={isSmDown && onCloseDrawerIfOpen} />;
|
|
142
|
+
}
|
|
143
|
+
if (e.type === 'divider') {
|
|
144
|
+
return <Divider key={`divider-${i}`} />;
|
|
145
|
+
}
|
|
146
|
+
return null;
|
|
147
|
+
})}
|
|
148
|
+
</List>
|
|
149
|
+
{leftnav.elements?.length > 0 && <Divider />}
|
|
150
|
+
{leftnav.open ? (
|
|
151
|
+
hide
|
|
152
|
+
) : (
|
|
153
|
+
<Tooltip title={t('drawer.expand')} aria-label={t('drawer.expand')} placement="right">
|
|
154
|
+
{hide}
|
|
155
|
+
</Tooltip>
|
|
156
|
+
)}
|
|
157
|
+
<Box
|
|
158
|
+
sx={{
|
|
159
|
+
height: '100%',
|
|
160
|
+
width: '100%',
|
|
161
|
+
'&:hover': {
|
|
162
|
+
cursor: 'pointer'
|
|
163
|
+
}
|
|
164
|
+
}}
|
|
165
|
+
onClick={leftnav.toggle}
|
|
166
|
+
/>
|
|
167
|
+
</StyledDrawer>
|
|
168
|
+
</ClickAwayListener>
|
|
169
|
+
);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export default memo(LeftNavDrawer);
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { ChevronRight, ExpandLess, ExpandMore } from '@mui/icons-material';
|
|
2
|
+
import { Collapse, List, ListItemButton, ListItemIcon, ListItemText, Popover, Tooltip, useTheme } from '@mui/material';
|
|
3
|
+
import type { AppLeftNavGroup } from '@cccsaurora/howler-ui/commons/components/app/AppConfigs';
|
|
4
|
+
import { useAppConfigs, useAppLeftNav, useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
5
|
+
import LeftNavItem from '@cccsaurora/howler-ui/commons/components/leftnav/LeftNavItem';
|
|
6
|
+
import { memo, useCallback, useEffect, useState } from 'react';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
|
+
|
|
9
|
+
interface LeftNavGroupProps {
|
|
10
|
+
group: AppLeftNavGroup;
|
|
11
|
+
onItemClick: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const GroupListItem = memo(
|
|
15
|
+
({
|
|
16
|
+
group,
|
|
17
|
+
leftNavOpen,
|
|
18
|
+
collapseOpen,
|
|
19
|
+
popoverOpen,
|
|
20
|
+
onClick
|
|
21
|
+
}: {
|
|
22
|
+
group: AppLeftNavGroup;
|
|
23
|
+
leftNavOpen: boolean;
|
|
24
|
+
collapseOpen: boolean;
|
|
25
|
+
popoverOpen;
|
|
26
|
+
onClick: (event: React.MouseEvent) => void;
|
|
27
|
+
}) => {
|
|
28
|
+
const { t } = useTranslation();
|
|
29
|
+
const title = group.i18nKey ? t(group.i18nKey) : group.title;
|
|
30
|
+
const theme = useTheme();
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Tooltip title={!leftNavOpen ? title : ''} aria-label={title} placement="right">
|
|
34
|
+
<ListItemButton key={group.id} onClick={onClick} selected={popoverOpen}>
|
|
35
|
+
{!leftNavOpen && (
|
|
36
|
+
<ChevronRight
|
|
37
|
+
sx={{
|
|
38
|
+
position: 'absolute',
|
|
39
|
+
right: 0,
|
|
40
|
+
width: 16,
|
|
41
|
+
height: 16,
|
|
42
|
+
transform: popoverOpen && 'rotate(180deg)',
|
|
43
|
+
transition: theme.transitions.create('transform', {
|
|
44
|
+
easing: theme.transitions.easing.sharp,
|
|
45
|
+
duration: popoverOpen
|
|
46
|
+
? theme.transitions.duration.leavingScreen
|
|
47
|
+
: theme.transitions.duration.enteringScreen
|
|
48
|
+
})
|
|
49
|
+
}}
|
|
50
|
+
fontSize="inherit"
|
|
51
|
+
/>
|
|
52
|
+
)}
|
|
53
|
+
|
|
54
|
+
<ListItemIcon>{group.icon}</ListItemIcon>
|
|
55
|
+
<ListItemText primary={title} />
|
|
56
|
+
{collapseOpen ? <ExpandLess color="action" /> : <ExpandMore color="action" />}
|
|
57
|
+
</ListItemButton>
|
|
58
|
+
</Tooltip>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
const LeftNavGroup = ({ group, onItemClick }: LeftNavGroupProps) => {
|
|
64
|
+
const user = useAppUser();
|
|
65
|
+
const leftnav = useAppLeftNav();
|
|
66
|
+
const { preferences } = useAppConfigs();
|
|
67
|
+
const [popoverTarget, setPopoverTarget] = useState<(EventTarget & Element) | undefined>();
|
|
68
|
+
const [collapseOpen, setCollapseOpen] = useState(false);
|
|
69
|
+
|
|
70
|
+
const groupHasIcons = group.items.some(i => !!i.icon);
|
|
71
|
+
|
|
72
|
+
const handleClick = useCallback(
|
|
73
|
+
(event: React.MouseEvent) => {
|
|
74
|
+
if (leftnav.open) {
|
|
75
|
+
setCollapseOpen(!collapseOpen);
|
|
76
|
+
} else {
|
|
77
|
+
setPopoverTarget(event ? event.currentTarget : undefined);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
[leftnav.open, collapseOpen]
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
const onClosePopover = useCallback(() => setPopoverTarget(undefined), []);
|
|
84
|
+
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
if (!leftnav.open && collapseOpen) {
|
|
87
|
+
setCollapseOpen(false);
|
|
88
|
+
}
|
|
89
|
+
}, [leftnav.open, collapseOpen]);
|
|
90
|
+
|
|
91
|
+
return user.validateProps(group.userPropValidators) ? (
|
|
92
|
+
<div>
|
|
93
|
+
<GroupListItem
|
|
94
|
+
group={group}
|
|
95
|
+
leftNavOpen={leftnav.open}
|
|
96
|
+
collapseOpen={collapseOpen}
|
|
97
|
+
onClick={handleClick}
|
|
98
|
+
popoverOpen={!!popoverTarget}
|
|
99
|
+
/>
|
|
100
|
+
<Collapse in={collapseOpen} timeout="auto" unmountOnExit>
|
|
101
|
+
<List component="div" disablePadding>
|
|
102
|
+
{group.items.map(i => (
|
|
103
|
+
<LeftNavItem
|
|
104
|
+
key={i.id}
|
|
105
|
+
context="group"
|
|
106
|
+
item={i}
|
|
107
|
+
hideIcon={preferences.leftnav.hideNestedIcons}
|
|
108
|
+
onClick={onItemClick}
|
|
109
|
+
/>
|
|
110
|
+
))}
|
|
111
|
+
</List>
|
|
112
|
+
</Collapse>
|
|
113
|
+
<Popover
|
|
114
|
+
open={!!popoverTarget}
|
|
115
|
+
onClose={onClosePopover}
|
|
116
|
+
onClick={onClosePopover}
|
|
117
|
+
anchorEl={popoverTarget}
|
|
118
|
+
anchorOrigin={{
|
|
119
|
+
vertical: 'top',
|
|
120
|
+
horizontal: 'right'
|
|
121
|
+
}}
|
|
122
|
+
transformOrigin={{
|
|
123
|
+
vertical: 'top',
|
|
124
|
+
horizontal: 'left'
|
|
125
|
+
}}
|
|
126
|
+
>
|
|
127
|
+
<List disablePadding>
|
|
128
|
+
{group.items.map(i => (
|
|
129
|
+
<LeftNavItem
|
|
130
|
+
popover
|
|
131
|
+
context="group"
|
|
132
|
+
key={i.id}
|
|
133
|
+
item={i}
|
|
134
|
+
hideIcon={preferences.leftnav.hideNestedIcons || !groupHasIcons}
|
|
135
|
+
onClick={onItemClick}
|
|
136
|
+
/>
|
|
137
|
+
))}
|
|
138
|
+
</List>
|
|
139
|
+
</Popover>
|
|
140
|
+
</div>
|
|
141
|
+
) : null;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export default memo(LeftNavGroup);
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Box, ListItem, ListItemButton, ListItemIcon, ListItemText, Tooltip, useTheme } from '@mui/material';
|
|
2
|
+
import type { AppLeftNavItem } from '@cccsaurora/howler-ui/commons/components/app/AppConfigs';
|
|
3
|
+
import { useAppLeftNav, useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
4
|
+
import { memo, useMemo } from 'react';
|
|
5
|
+
import { useTranslation } from 'react-i18next';
|
|
6
|
+
import { Link } from 'react-router-dom';
|
|
7
|
+
|
|
8
|
+
type LeftNavItemProps = {
|
|
9
|
+
item: AppLeftNavItem;
|
|
10
|
+
popover?: boolean;
|
|
11
|
+
context?: 'item' | 'group';
|
|
12
|
+
hideIcon?: boolean;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const LeftNavItemInner = ({ item, context, popover, hideIcon, label, leftnavOpen }) => {
|
|
17
|
+
const theme = useTheme();
|
|
18
|
+
const nested = item.nested !== undefined ? item.nested : context === 'group';
|
|
19
|
+
const showIcon = useMemo(() => item.icon && !hideIcon, [item, hideIcon]);
|
|
20
|
+
|
|
21
|
+
const spacer = useMemo(() => {
|
|
22
|
+
const showSpacer = !popover && leftnavOpen && nested;
|
|
23
|
+
return showSpacer && <Box id="spacer" sx={{ marginLeft: theme.spacing(showIcon ? 2 : 7) }} />;
|
|
24
|
+
}, [nested, showIcon, theme, leftnavOpen, popover]);
|
|
25
|
+
|
|
26
|
+
const itemIcon = useMemo(() => {
|
|
27
|
+
const showNested = !popover && context === 'group' && nested;
|
|
28
|
+
return (
|
|
29
|
+
showIcon && (
|
|
30
|
+
<ListItemIcon id="icon" sx={{ minWidth: showNested || popover ? 40 : undefined }}>
|
|
31
|
+
{item.icon}
|
|
32
|
+
</ListItemIcon>
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
}, [nested, showIcon, item.icon, context, popover]);
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<>
|
|
39
|
+
{spacer}
|
|
40
|
+
{itemIcon}
|
|
41
|
+
<ListItemText primary={label} />
|
|
42
|
+
</>
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const LeftNavItem = ({ item, context = 'item', popover = false, hideIcon = false, onClick }: LeftNavItemProps) => {
|
|
47
|
+
const { t } = useTranslation();
|
|
48
|
+
const user = useAppUser();
|
|
49
|
+
const leftnav = useAppLeftNav();
|
|
50
|
+
const { text, i18nKey, nested, route, render, userPropValidators } = item;
|
|
51
|
+
const label = i18nKey ? t(i18nKey) : text;
|
|
52
|
+
|
|
53
|
+
return user.validateProps(userPropValidators) ? (
|
|
54
|
+
render ? (
|
|
55
|
+
<ListItem disablePadding>{render(leftnav.open)}</ListItem>
|
|
56
|
+
) : (
|
|
57
|
+
<Tooltip title={!leftnav.open && !nested ? label : ''} aria-label={label} placement="right">
|
|
58
|
+
<ListItemButton component={route ? Link : null} to={route} key={text} onClick={onClick ? onClick : null}>
|
|
59
|
+
<LeftNavItemInner
|
|
60
|
+
hideIcon={hideIcon}
|
|
61
|
+
context={context}
|
|
62
|
+
popover={popover}
|
|
63
|
+
item={item}
|
|
64
|
+
label={label}
|
|
65
|
+
leftnavOpen={leftnav.open}
|
|
66
|
+
/>
|
|
67
|
+
</ListItemButton>
|
|
68
|
+
</Tooltip>
|
|
69
|
+
)
|
|
70
|
+
) : null;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export default memo(LeftNavItem);
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export type SystemMessage = {
|
|
2
|
+
user: string;
|
|
3
|
+
title: string;
|
|
4
|
+
severity: 'success' | 'info' | 'warning' | 'error';
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type FeedItem = {
|
|
9
|
+
id: string;
|
|
10
|
+
url?: string;
|
|
11
|
+
external_url?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
content_html?: string;
|
|
14
|
+
content_text?: string;
|
|
15
|
+
content_md?: string;
|
|
16
|
+
summary?: string;
|
|
17
|
+
image?: string;
|
|
18
|
+
banner_image?: string;
|
|
19
|
+
date_published?: Date;
|
|
20
|
+
date_modified?: Date;
|
|
21
|
+
authors?: Array<FeedAuthor>;
|
|
22
|
+
tags?: Array<'new' | 'current' | 'dev' | 'service' | 'blog'>;
|
|
23
|
+
language?: string;
|
|
24
|
+
attachments?: Array<FeedAttachment>;
|
|
25
|
+
_isNew: boolean;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type FeedAuthor = {
|
|
29
|
+
name?: string;
|
|
30
|
+
url?: string;
|
|
31
|
+
avatar?: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type FeedAttachment = {
|
|
35
|
+
url: string;
|
|
36
|
+
mime_type: string;
|
|
37
|
+
title?: string;
|
|
38
|
+
size_in_bytes?: number;
|
|
39
|
+
duration_in_seconds?: number;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type Feed = {
|
|
43
|
+
version: string;
|
|
44
|
+
title: string;
|
|
45
|
+
home_page_url?: string;
|
|
46
|
+
feed_url?: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
user_comment?: string;
|
|
49
|
+
next_url?: string;
|
|
50
|
+
icon?: string;
|
|
51
|
+
favicon?: string;
|
|
52
|
+
authors?: Array<FeedAuthor>;
|
|
53
|
+
language?: string;
|
|
54
|
+
expired?: boolean;
|
|
55
|
+
hubs?: Array<{ type: string; url: string }>;
|
|
56
|
+
items: Array<FeedItem>;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export const DEFAULT_FEED: Feed = {
|
|
60
|
+
version: null,
|
|
61
|
+
title: null,
|
|
62
|
+
home_page_url: null,
|
|
63
|
+
feed_url: null,
|
|
64
|
+
description: null,
|
|
65
|
+
user_comment: null,
|
|
66
|
+
next_url: null,
|
|
67
|
+
icon: null,
|
|
68
|
+
favicon: null,
|
|
69
|
+
authors: [],
|
|
70
|
+
language: null,
|
|
71
|
+
expired: false,
|
|
72
|
+
hubs: [],
|
|
73
|
+
items: []
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const DEFAULT_FEED_ITEM: FeedItem = {
|
|
77
|
+
id: null,
|
|
78
|
+
url: null,
|
|
79
|
+
external_url: null,
|
|
80
|
+
title: null,
|
|
81
|
+
content_html: null,
|
|
82
|
+
content_text: null,
|
|
83
|
+
summary: null,
|
|
84
|
+
image: null,
|
|
85
|
+
banner_image: null,
|
|
86
|
+
date_published: new Date(0),
|
|
87
|
+
date_modified: new Date(0),
|
|
88
|
+
authors: [],
|
|
89
|
+
tags: [],
|
|
90
|
+
language: null,
|
|
91
|
+
attachments: [],
|
|
92
|
+
_isNew: false
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const DEFAULT_FEED_ATTACHMENT: FeedAttachment = {
|
|
96
|
+
url: null,
|
|
97
|
+
mime_type: null,
|
|
98
|
+
title: null,
|
|
99
|
+
size_in_bytes: 0,
|
|
100
|
+
duration_in_seconds: 0
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export const DEFAULT_FEED_AUTHOR: any = {
|
|
104
|
+
name: null,
|
|
105
|
+
url: null,
|
|
106
|
+
avatar: null
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
function decodeHTML(html: string) {
|
|
110
|
+
if (!html || typeof html !== 'string') return '';
|
|
111
|
+
var txt = document.createElement('textarea');
|
|
112
|
+
txt.innerHTML = html;
|
|
113
|
+
return txt.value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function parseFeedAttachments(attachments: any): FeedAttachment[] {
|
|
117
|
+
return attachments && Array.isArray(attachments)
|
|
118
|
+
? attachments
|
|
119
|
+
.map(attachment =>
|
|
120
|
+
attachment && typeof attachment === 'object' ? { ...DEFAULT_FEED_ATTACHMENT, ...attachment } : null
|
|
121
|
+
)
|
|
122
|
+
.filter(attachment => attachment)
|
|
123
|
+
: [];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function parseFeedAuthors(authors: any): FeedAuthor[] {
|
|
127
|
+
return authors && Array.isArray(authors)
|
|
128
|
+
? authors
|
|
129
|
+
.map(author => (author && typeof author === 'object' ? { ...DEFAULT_FEED_AUTHOR, ...author } : null))
|
|
130
|
+
.filter(author => author)
|
|
131
|
+
: [];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function parseFeedItems(items: any): FeedItem[] {
|
|
135
|
+
return items && Array.isArray(items)
|
|
136
|
+
? items
|
|
137
|
+
.map(item =>
|
|
138
|
+
item && typeof item === 'object'
|
|
139
|
+
? {
|
|
140
|
+
...DEFAULT_FEED_ITEM,
|
|
141
|
+
...item,
|
|
142
|
+
date_published: new Date(item.date_published),
|
|
143
|
+
date_modified: new Date(item.date_modified),
|
|
144
|
+
authors: parseFeedAuthors(item?.authors),
|
|
145
|
+
attachments: parseFeedAttachments(item?.attachments),
|
|
146
|
+
content_html: decodeHTML(item?.content_html)
|
|
147
|
+
}
|
|
148
|
+
: null
|
|
149
|
+
)
|
|
150
|
+
.filter(item => item)
|
|
151
|
+
: [];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function parseFeed(feed: any): Feed {
|
|
155
|
+
return feed && typeof feed === 'object'
|
|
156
|
+
? {
|
|
157
|
+
...DEFAULT_FEED,
|
|
158
|
+
...feed,
|
|
159
|
+
items: parseFeedItems(feed?.items),
|
|
160
|
+
authors: parseFeedAuthors(feed?.authors)
|
|
161
|
+
}
|
|
162
|
+
: null;
|
|
163
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { parseFeed, type Feed, type FeedItem } from '@cccsaurora/howler-ui/commons/components/notification';
|
|
2
|
+
import { NotificationContainer } from '@cccsaurora/howler-ui/commons/components/notification/elements/NotificationContainer';
|
|
3
|
+
import { NotificationTopNavButton } from '@cccsaurora/howler-ui/commons/components/notification/elements/NotificationTopNavButton';
|
|
4
|
+
import { NotificationItem } from '@cccsaurora/howler-ui/commons/components/notification/elements/item/NotificationItem';
|
|
5
|
+
import { memo, useCallback, useEffect, useRef, useState, type FC } from 'react';
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
urls: string[];
|
|
9
|
+
notificationItem?: FC;
|
|
10
|
+
inDrawer?: boolean;
|
|
11
|
+
openIfNew?: boolean;
|
|
12
|
+
maxDrawerWidth?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const Notification: FC<Props> = memo(
|
|
16
|
+
({
|
|
17
|
+
urls = null,
|
|
18
|
+
notificationItem = NotificationItem,
|
|
19
|
+
inDrawer = true,
|
|
20
|
+
openIfNew = false,
|
|
21
|
+
maxDrawerWidth = '500px'
|
|
22
|
+
}) => {
|
|
23
|
+
const [drawer, setDrawer] = useState<boolean>(false);
|
|
24
|
+
const [feeds, setFeeds] = useState<{ [k: string]: Feed }>(null);
|
|
25
|
+
const [notifications, setNotifications] = useState<FeedItem[]>(null);
|
|
26
|
+
const [status, setStatus] = useState<'loading' | 'ready' | 'error'>('loading');
|
|
27
|
+
|
|
28
|
+
const lastTimeOpen = useRef<Date>(new Date(0));
|
|
29
|
+
const storageKey = 'notification.lastTimeOpen';
|
|
30
|
+
|
|
31
|
+
const onDrawerOpen = useCallback(() => {
|
|
32
|
+
setDrawer(true);
|
|
33
|
+
lastTimeOpen.current = new Date();
|
|
34
|
+
}, []);
|
|
35
|
+
|
|
36
|
+
const onDrawerClose = useCallback(() => {
|
|
37
|
+
setDrawer(false);
|
|
38
|
+
localStorage.setItem(storageKey, JSON.stringify(lastTimeOpen.current.valueOf()));
|
|
39
|
+
setNotifications(v =>
|
|
40
|
+
v.map((n: FeedItem) => ({ ...n, _isNew: n.date_published.valueOf() > lastTimeOpen.current.valueOf() }))
|
|
41
|
+
);
|
|
42
|
+
}, [storageKey]);
|
|
43
|
+
|
|
44
|
+
const loadLastTimeOpen = useCallback(() => {
|
|
45
|
+
const data = localStorage.getItem(storageKey);
|
|
46
|
+
if (!data) return;
|
|
47
|
+
|
|
48
|
+
const value = JSON.parse(data);
|
|
49
|
+
if (typeof value !== 'number') return;
|
|
50
|
+
|
|
51
|
+
lastTimeOpen.current = new Date(value);
|
|
52
|
+
}, [storageKey]);
|
|
53
|
+
|
|
54
|
+
const fetchFeed = useCallback(
|
|
55
|
+
(url: string = ''): Promise<any> =>
|
|
56
|
+
new Promise(async resolve => {
|
|
57
|
+
const response: Response = (await fetch(url, { method: 'GET' }).catch(err =>
|
|
58
|
+
// eslint-disable-next-line no-console
|
|
59
|
+
console.error(`Notification Area: error caused by URL "${err}`)
|
|
60
|
+
)) as Response;
|
|
61
|
+
|
|
62
|
+
if (!response || response.status >= 400) {
|
|
63
|
+
resolve({});
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const textResponse: string = await response.text();
|
|
68
|
+
try {
|
|
69
|
+
const jsonFeed = JSON.parse(textResponse);
|
|
70
|
+
resolve(parseFeed(jsonFeed));
|
|
71
|
+
} catch {
|
|
72
|
+
resolve({});
|
|
73
|
+
}
|
|
74
|
+
return;
|
|
75
|
+
}),
|
|
76
|
+
[]
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
const fetchFeeds = useCallback(
|
|
80
|
+
(_urls: string[] = []): Promise<Feed[]> =>
|
|
81
|
+
new Promise(async resolve => {
|
|
82
|
+
if (!_urls || _urls.length === 0) {
|
|
83
|
+
resolve([]);
|
|
84
|
+
return [];
|
|
85
|
+
}
|
|
86
|
+
const _feeds: Feed[] = await Promise.all(_urls.map(url => fetchFeed(url)));
|
|
87
|
+
resolve(_feeds.filter(f => f.items));
|
|
88
|
+
}),
|
|
89
|
+
[fetchFeed]
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
loadLastTimeOpen();
|
|
94
|
+
if (!urls || !Array.isArray(urls) || urls.length === 0) return;
|
|
95
|
+
|
|
96
|
+
fetchFeeds(urls).then(_feeds => {
|
|
97
|
+
_feeds = _feeds.map(f => ({ ...f, items: f?.items?.map(i => ({ ...i, external_url: f.feed_url })) }));
|
|
98
|
+
setFeeds(Object.fromEntries(_feeds.map(f => [f?.feed_url, { ...f, items: [] }])));
|
|
99
|
+
const _notifs = _feeds
|
|
100
|
+
.flatMap(f => f?.items)
|
|
101
|
+
.filter(n => n.date_published > new Date(new Date().setFullYear(new Date().getFullYear() - 1)))
|
|
102
|
+
.sort((a, b) => b.date_published.valueOf() - a.date_published.valueOf())
|
|
103
|
+
.map(n => ({ ...n, _isNew: n.date_published.valueOf() > lastTimeOpen.current.valueOf() }));
|
|
104
|
+
setNotifications(_notifs);
|
|
105
|
+
if (openIfNew && _notifs?.some(n => n._isNew)) {
|
|
106
|
+
onDrawerOpen();
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}, [fetchFeeds, loadLastTimeOpen, onDrawerOpen, openIfNew, urls]);
|
|
110
|
+
|
|
111
|
+
useEffect(() => {
|
|
112
|
+
if (feeds === undefined) {
|
|
113
|
+
setStatus('error');
|
|
114
|
+
} else if (feeds && notifications) {
|
|
115
|
+
if (notifications.length === 0) {
|
|
116
|
+
setStatus('error');
|
|
117
|
+
} else {
|
|
118
|
+
setStatus('ready');
|
|
119
|
+
}
|
|
120
|
+
} else {
|
|
121
|
+
setStatus('loading');
|
|
122
|
+
}
|
|
123
|
+
return () => setStatus('loading');
|
|
124
|
+
}, [feeds, notifications]);
|
|
125
|
+
|
|
126
|
+
return (
|
|
127
|
+
urls &&
|
|
128
|
+
urls.length !== 0 && (
|
|
129
|
+
<>
|
|
130
|
+
{inDrawer && (
|
|
131
|
+
<NotificationTopNavButton
|
|
132
|
+
drawer={drawer}
|
|
133
|
+
newItems={notifications?.filter(n => n._isNew).length}
|
|
134
|
+
onDrawerOpen={onDrawerOpen}
|
|
135
|
+
onDrawerClose={onDrawerClose}
|
|
136
|
+
/>
|
|
137
|
+
)}
|
|
138
|
+
<NotificationContainer
|
|
139
|
+
status={status}
|
|
140
|
+
notifications={notifications}
|
|
141
|
+
drawer={drawer}
|
|
142
|
+
onDrawerOpen={onDrawerOpen}
|
|
143
|
+
onDrawerClose={onDrawerClose}
|
|
144
|
+
ItemComponent={notificationItem}
|
|
145
|
+
inDrawer={inDrawer}
|
|
146
|
+
maxDrawerWidth={maxDrawerWidth}
|
|
147
|
+
/>
|
|
148
|
+
</>
|
|
149
|
+
)
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
);
|