@cccsaurora/howler-ui 2.14.0-dev.263 → 2.14.0-dev.264
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.test.ts +328 -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.test.tsx +244 -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 +604 -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/tests/MockLocalStorage.ts +46 -0
- package/tests/server-handlers.ts +114 -0
- package/tests/server.ts +6 -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,63 @@
|
|
|
1
|
+
import { joinUri, uri as parentUri } from 'api';
|
|
2
|
+
import * as action from 'api/search/action';
|
|
3
|
+
import * as analytic from 'api/search/analytic';
|
|
4
|
+
import * as count from 'api/search/count';
|
|
5
|
+
import * as dossier from 'api/search/dossier';
|
|
6
|
+
import * as facet from 'api/search/facet';
|
|
7
|
+
import * as fields from 'api/search/fields';
|
|
8
|
+
import * as grouped from 'api/search/grouped';
|
|
9
|
+
import * as histogram from 'api/search/histogram';
|
|
10
|
+
import * as hit from 'api/search/hit';
|
|
11
|
+
import * as overview from 'api/search/overview';
|
|
12
|
+
import * as template from 'api/search/template';
|
|
13
|
+
import * as user from 'api/search/user';
|
|
14
|
+
import * as view from 'api/search/view';
|
|
15
|
+
|
|
16
|
+
export const uri = () => {
|
|
17
|
+
return joinUri(parentUri(), 'search');
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type HowlerSearchRequest = {
|
|
21
|
+
query: string;
|
|
22
|
+
rows?: number;
|
|
23
|
+
offset?: number;
|
|
24
|
+
sort?: string;
|
|
25
|
+
track_total_hits?: boolean;
|
|
26
|
+
fl?: string;
|
|
27
|
+
timeout?: number;
|
|
28
|
+
filters?: string[];
|
|
29
|
+
metadata?: string[];
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type HowlerSearchResponse<T> = {
|
|
33
|
+
items: T[];
|
|
34
|
+
offset: number;
|
|
35
|
+
rows: number;
|
|
36
|
+
total: number;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type HowlerEQLSearchResponse<T> = {
|
|
40
|
+
items: T[];
|
|
41
|
+
sequences: T[][];
|
|
42
|
+
offset: number;
|
|
43
|
+
rows: number;
|
|
44
|
+
total: number;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type HowlerEQLSearchRequest = {
|
|
48
|
+
eql_query: string;
|
|
49
|
+
rows?: number;
|
|
50
|
+
fl?: string;
|
|
51
|
+
timeout?: number;
|
|
52
|
+
filters?: string[];
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type HowlerSigmaSearchRequest = {
|
|
56
|
+
sigma: string;
|
|
57
|
+
rows?: number;
|
|
58
|
+
fl?: string;
|
|
59
|
+
timeout?: number;
|
|
60
|
+
filters?: string[];
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export { action, analytic, count, dossier, facet, fields, grouped, histogram, hit, overview, template, user, view };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hpost, joinUri } from 'api';
|
|
2
|
+
import type { HowlerSearchRequest, HowlerSearchResponse } from 'api/search';
|
|
3
|
+
import { uri as parentUri } from 'api/search';
|
|
4
|
+
import type { Template } from 'models/entities/generated/Template';
|
|
5
|
+
|
|
6
|
+
export const uri = () => {
|
|
7
|
+
return joinUri(parentUri(), 'overview');
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const post = (request?: HowlerSearchRequest): Promise<HowlerSearchResponse<Template>> => {
|
|
11
|
+
return hpost(uri(), { ...(request || {}), query: request?.query || 'overview_id:*' });
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hpost, joinAllUri } from 'api';
|
|
2
|
+
import type { HowlerSearchResponse, HowlerSigmaSearchRequest } from 'api/search';
|
|
3
|
+
import { uri as parentUri } from 'api/search';
|
|
4
|
+
import type { Hit } from 'models/entities/generated/Hit';
|
|
5
|
+
|
|
6
|
+
export const uri = () => {
|
|
7
|
+
return joinAllUri(parentUri(), 'hit', 'sigma');
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const post = (request?: HowlerSigmaSearchRequest): Promise<HowlerSearchResponse<Hit>> => {
|
|
11
|
+
return hpost(uri(), { ...(request || {}), sigma: request?.sigma || '' });
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hpost, joinUri } from 'api';
|
|
2
|
+
import type { HowlerSearchRequest, HowlerSearchResponse } from 'api/search';
|
|
3
|
+
import { uri as parentUri } from 'api/search';
|
|
4
|
+
import type { Template } from 'models/entities/generated/Template';
|
|
5
|
+
|
|
6
|
+
export const uri = () => {
|
|
7
|
+
return joinUri(parentUri(), 'template');
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const post = (request?: HowlerSearchRequest): Promise<HowlerSearchResponse<Template>> => {
|
|
11
|
+
return hpost(uri(), { ...(request || {}), query: request?.query || 'template_id:*' });
|
|
12
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { hpost, joinUri } from 'api';
|
|
2
|
+
import type { HowlerSearchRequest, HowlerSearchResponse } from 'api/search';
|
|
3
|
+
import { uri as parentUri } from 'api/search';
|
|
4
|
+
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
5
|
+
|
|
6
|
+
export type HowlerApiUser = Omit<HowlerUser, 'username'> & { uname: string };
|
|
7
|
+
|
|
8
|
+
export const uri = () => {
|
|
9
|
+
return joinUri(parentUri(), 'user');
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const post = async (request?: HowlerSearchRequest): Promise<HowlerSearchResponse<HowlerUser>> => {
|
|
13
|
+
const response = await hpost<HowlerSearchResponse<HowlerApiUser>>(uri(), {
|
|
14
|
+
...(request || {}),
|
|
15
|
+
query: request?.query || 'name:*'
|
|
16
|
+
});
|
|
17
|
+
return {
|
|
18
|
+
...response,
|
|
19
|
+
items: response.items.map((i: HowlerApiUser) => ({ ...i, username: i.uname }))
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hpost, joinUri } from 'api';
|
|
2
|
+
import type { HowlerSearchRequest, HowlerSearchResponse } from 'api/search';
|
|
3
|
+
import { uri as parentUri } from 'api/search';
|
|
4
|
+
import type { View } from 'models/entities/generated/View';
|
|
5
|
+
|
|
6
|
+
export const uri = () => {
|
|
7
|
+
return joinUri(parentUri(), 'view');
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const post = (request?: HowlerSearchRequest): Promise<HowlerSearchResponse<View>> => {
|
|
11
|
+
return hpost(uri(), { ...(request || {}), query: request?.query || 'title:*' });
|
|
12
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { hdelete, hget, hpost, hput, joinAllUri, joinUri, uri as parentUri } from 'api';
|
|
2
|
+
import type { Template } from 'models/entities/generated/Template';
|
|
3
|
+
|
|
4
|
+
export const uri = (id?: string) => {
|
|
5
|
+
return id ? joinAllUri(parentUri(), 'template', id) : joinUri(parentUri(), 'template');
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const get = (): Promise<Template[]> => {
|
|
9
|
+
return hget(uri());
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const post = (newData: Partial<Template>): Promise<Template> => {
|
|
13
|
+
return hpost(uri(), newData);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const put = (id: string, newFields: string[]): Promise<Template> => {
|
|
17
|
+
return hput(uri(id), newFields);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const del = (id: string): Promise<void> => {
|
|
21
|
+
return hdelete(uri(id));
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { hget, joinUri } from 'api';
|
|
2
|
+
import { uri as parentUri } from 'api/user';
|
|
3
|
+
|
|
4
|
+
export const uri = (username: string) => {
|
|
5
|
+
return joinUri(joinUri(parentUri(), 'avatar'), username);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const get = (username: string): Promise<string> => {
|
|
9
|
+
return hget(uri(username));
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hget, joinUri } from 'api';
|
|
2
|
+
import { uri as parentUri } from 'api/user';
|
|
3
|
+
|
|
4
|
+
export type GroupDetailsResponse = { id: string; name: string }[];
|
|
5
|
+
|
|
6
|
+
export const uri = () => {
|
|
7
|
+
return joinUri(parentUri(), 'groups');
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const get = (): Promise<GroupDetailsResponse> => {
|
|
11
|
+
return hget(uri());
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { hget, hput, joinUri, uri as parentUri } from 'api';
|
|
2
|
+
import * as avatar from 'api/user/avatar';
|
|
3
|
+
import * as groups from 'api/user/groups';
|
|
4
|
+
import * as whoami from 'api/user/whoami';
|
|
5
|
+
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
6
|
+
|
|
7
|
+
export const uri = (username?: string) => {
|
|
8
|
+
const _uri = joinUri(parentUri(), 'user');
|
|
9
|
+
return username ? joinUri(_uri, username) : _uri;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const get = (username: string): Promise<HowlerUser> => {
|
|
13
|
+
return hget(uri(username));
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const put = (username: string, newData: Partial<HowlerUser> | { new_pass: string }) => {
|
|
17
|
+
return hput(uri(username), newData);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { avatar, groups, whoami };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { hget, joinUri } from 'api';
|
|
2
|
+
import { uri as parentUri } from 'api/user';
|
|
3
|
+
import type { HowlerUser } from 'models/entities/HowlerUser';
|
|
4
|
+
|
|
5
|
+
export const uri = () => {
|
|
6
|
+
return joinUri(parentUri(), 'whoami');
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const get = (): Promise<HowlerUser> => {
|
|
10
|
+
return hget(uri());
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { hdelete, hpost, joinAllUri } from 'api';
|
|
2
|
+
import { uri as parentUri } from 'api/view';
|
|
3
|
+
|
|
4
|
+
export const uri = (id: string) => {
|
|
5
|
+
return joinAllUri(parentUri(), id, 'favourite');
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const del = (id: string): Promise<{ success: boolean }> => {
|
|
9
|
+
return hdelete(uri(id));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const post = (id: string): Promise<{ success: boolean }> => {
|
|
13
|
+
return hpost(uri(id), {});
|
|
14
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { hdelete, hget, hpost, hput, joinAllUri, joinUri, uri as parentUri } from 'api';
|
|
2
|
+
import * as favourite from 'api/view/favourite';
|
|
3
|
+
import type { View } from 'models/entities/generated/View';
|
|
4
|
+
|
|
5
|
+
export const uri = (id?: string) => {
|
|
6
|
+
return id ? joinAllUri(parentUri(), 'view', id) : joinUri(parentUri(), 'view');
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const get = (): Promise<View[]> => {
|
|
10
|
+
return hget(uri());
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const post = (newData: Partial<View>): Promise<View> => {
|
|
14
|
+
return hpost(uri(), newData);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const put = (id: string, partialView: Partial<Omit<View, 'view_id'>>): Promise<View> => {
|
|
18
|
+
return hput(uri(id), partialView);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const del = (id: string): Promise<void> => {
|
|
22
|
+
return hdelete(uri(id));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { favourite };
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Stack, useTheme } from '@mui/material';
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
export const SIZES = {
|
|
5
|
+
app: {
|
|
6
|
+
divider: {
|
|
7
|
+
margin: 12
|
|
8
|
+
},
|
|
9
|
+
name: {
|
|
10
|
+
height: 24
|
|
11
|
+
},
|
|
12
|
+
icon: {
|
|
13
|
+
width: 38,
|
|
14
|
+
height: 38
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
xlarge: {
|
|
18
|
+
divider: {
|
|
19
|
+
margin: 10
|
|
20
|
+
},
|
|
21
|
+
name: {
|
|
22
|
+
height: 94
|
|
23
|
+
},
|
|
24
|
+
icon: {
|
|
25
|
+
width: 150,
|
|
26
|
+
height: 150
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
large: {
|
|
30
|
+
divider: {
|
|
31
|
+
margin: 8
|
|
32
|
+
},
|
|
33
|
+
name: {
|
|
34
|
+
height: 63
|
|
35
|
+
},
|
|
36
|
+
icon: {
|
|
37
|
+
width: 100,
|
|
38
|
+
height: 100
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
medium: {
|
|
42
|
+
divider: {
|
|
43
|
+
margin: 6
|
|
44
|
+
},
|
|
45
|
+
name: {
|
|
46
|
+
height: 37
|
|
47
|
+
},
|
|
48
|
+
icon: {
|
|
49
|
+
width: 60,
|
|
50
|
+
height: 60
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
small: {
|
|
54
|
+
divider: {
|
|
55
|
+
margin: 4
|
|
56
|
+
},
|
|
57
|
+
name: {
|
|
58
|
+
height: 24
|
|
59
|
+
},
|
|
60
|
+
icon: {
|
|
61
|
+
width: 38,
|
|
62
|
+
height: 38
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
xsmall: {
|
|
66
|
+
divider: {
|
|
67
|
+
margin: 2
|
|
68
|
+
},
|
|
69
|
+
name: {
|
|
70
|
+
height: 15
|
|
71
|
+
},
|
|
72
|
+
icon: {
|
|
73
|
+
width: 24,
|
|
74
|
+
height: 24
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const BRAND_APPLICATIONS = ['analyticalplatform', 'assemblyline', 'howler'] as const;
|
|
80
|
+
|
|
81
|
+
export const BRAND_SIZES = Object.keys(SIZES).filter(s => s !== 'app');
|
|
82
|
+
|
|
83
|
+
export const BRAND_VARIANTS = ['app', 'logo', 'banner-vertical', 'banner-horizontal'] as const;
|
|
84
|
+
|
|
85
|
+
export type BrandApplication = (typeof BRAND_APPLICATIONS)[number];
|
|
86
|
+
|
|
87
|
+
export type BrandVariant = (typeof BRAND_VARIANTS)[number];
|
|
88
|
+
|
|
89
|
+
export type BrandSize = (typeof BRAND_SIZES)[number];
|
|
90
|
+
|
|
91
|
+
const AppLogo = ({
|
|
92
|
+
src,
|
|
93
|
+
application,
|
|
94
|
+
variant,
|
|
95
|
+
size = 'small'
|
|
96
|
+
}: {
|
|
97
|
+
src: string;
|
|
98
|
+
application: BrandApplication;
|
|
99
|
+
variant: BrandVariant;
|
|
100
|
+
size?: BrandSize;
|
|
101
|
+
}) => {
|
|
102
|
+
return (
|
|
103
|
+
<img src={src} alt={`${application} logo`} style={{ ...SIZES[size].icon, marginLeft: variant === 'app' && -7 }} />
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const AppName = ({
|
|
108
|
+
src,
|
|
109
|
+
application,
|
|
110
|
+
size = 'small'
|
|
111
|
+
}: {
|
|
112
|
+
src: string;
|
|
113
|
+
application: BrandApplication;
|
|
114
|
+
size?: BrandSize;
|
|
115
|
+
}) => {
|
|
116
|
+
return <img src={src} alt={application} style={{ ...SIZES[size].name }} />;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export const AppBrand = ({
|
|
120
|
+
application,
|
|
121
|
+
variant,
|
|
122
|
+
size = 'small'
|
|
123
|
+
}: {
|
|
124
|
+
application: BrandApplication;
|
|
125
|
+
variant: BrandVariant;
|
|
126
|
+
size?: BrandSize;
|
|
127
|
+
}) => {
|
|
128
|
+
const muiTheme = useTheme();
|
|
129
|
+
const theme = muiTheme.palette.mode;
|
|
130
|
+
|
|
131
|
+
const { logoSrc, nameSrc } = useMemo(() => {
|
|
132
|
+
return {
|
|
133
|
+
logoSrc: `/branding/${application}/noswoosh-${theme}.svg`,
|
|
134
|
+
nameSrc: `/branding/${application}/name-${theme}.svg`
|
|
135
|
+
};
|
|
136
|
+
}, [theme, application]);
|
|
137
|
+
|
|
138
|
+
if (variant === 'logo') {
|
|
139
|
+
return (
|
|
140
|
+
<Stack direction="row" alignItems="center">
|
|
141
|
+
<AppLogo application={application} src={logoSrc} variant={variant} size={size} />
|
|
142
|
+
</Stack>
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (variant === 'app') {
|
|
147
|
+
size = 'app';
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return (
|
|
151
|
+
<Stack
|
|
152
|
+
direction={variant.endsWith('horizontal') || variant === 'app' ? 'row' : 'column'}
|
|
153
|
+
alignItems="center"
|
|
154
|
+
style={{ width: 'fit-content' }}
|
|
155
|
+
>
|
|
156
|
+
<AppLogo application={application} src={logoSrc} variant={variant} size={size} />
|
|
157
|
+
<div style={SIZES[size].divider} />
|
|
158
|
+
<AppName application={application} src={nameSrc} size={size} />
|
|
159
|
+
</Stack>
|
|
160
|
+
);
|
|
161
|
+
};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import type { Components, PaletteMode, PaletteOptions, Theme } from '@mui/material';
|
|
2
|
+
import type { AppUserValidatedProp } from 'commons/components/app/AppUserService';
|
|
3
|
+
import type { GravatarD } from 'commons/components/display/AppAvatar';
|
|
4
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
5
|
+
import type { To } from 'react-router-dom';
|
|
6
|
+
|
|
7
|
+
// Specification interface for the 'useAppConfigs' hook.
|
|
8
|
+
export type AppConfigs = {
|
|
9
|
+
preferences?: AppPreferenceConfigs; // The app's preferences config.
|
|
10
|
+
theme?: AppThemeConfigs; // The app's theme config.
|
|
11
|
+
sitemap?: AppSiteMapConfigs; // The apps's sitemap configs.
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// Specification interface for the AppProvider's 'preferences' attribute.
|
|
15
|
+
export type AppPreferenceConfigs = {
|
|
16
|
+
appName: string; // Name of your app, it will show up in the drawer and the top nav bar
|
|
17
|
+
appLink?: To; // Route to navigate to when the icon on the left nav bar is pressed
|
|
18
|
+
appIconDark: ReactElement<any>; // Small dark mode logo of your app used in drawer and top nav bar
|
|
19
|
+
appIconLight: ReactElement<any>; // Small light mode logo of your app used in drawer and top nav bar
|
|
20
|
+
bannerDark?: ReactElement<any>; // Your dark mode app banner, will be use in the loading screen, login and logout pages
|
|
21
|
+
bannerLight?: ReactElement<any>; // Your dark mode app banner, will be use in the loading screen, login and logout pages
|
|
22
|
+
allowAutoHideTopbar?: boolean; // Allow the user to toggle on/off the topbar autohide feature
|
|
23
|
+
allowBreadcrumbs?: boolean; // Allow the user to toggle on/off the breadcrumb
|
|
24
|
+
allowGravatar?: boolean; // Will use gravatar to populate the UserProfile avatar picture (using the user's email).
|
|
25
|
+
allowQuickSearch?: boolean; // Allow the user toggle on/off the quick search
|
|
26
|
+
allowReset?: boolean; // Allow the user to reset preferences to the default values
|
|
27
|
+
allowLayoutSelection?: boolean; // Allow the user to switch between "top" and "side" layout
|
|
28
|
+
allowThemeSelection?: boolean; // Allow the user to toggle between 'dark' and 'light' mode
|
|
29
|
+
allowTranslate?: boolean; // Allow the user to switch language
|
|
30
|
+
defaultLayout?: AppLayoutMode; // Either "top" (sticky topbar) or "side" (invisible top bar)
|
|
31
|
+
defaultTheme?: PaletteMode; // The default theme of the application. 'dark' or 'light'.
|
|
32
|
+
defaultDrawerOpen?: boolean; // Should the lef nav drawer be opened by default
|
|
33
|
+
defaultShowQuickSearch?: boolean; // Should the quick search be shown by default
|
|
34
|
+
defaultAutoHideAppbar?: boolean; // Should the top bar autohide (applies only to "side" layout)
|
|
35
|
+
defaultShowBreadcrumbs?: boolean; // Indicate whether breadcrumbs should be shown by default.
|
|
36
|
+
topnav?: AppTopNavConfigs; // top nav appbar specific configurations.
|
|
37
|
+
leftnav?: AppLeftNavConfigs; // left nav drawer specific configurations.
|
|
38
|
+
avatarD?: GravatarD; // The gravatar api uses this parameter to generate a themed image unique to an email address.
|
|
39
|
+
notificationURLs?: string[]; // The list of notification URLs. If no item is provided, the top nav icon is hidden.
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// Specification interface for the AppProvider's 'theme' attribute.
|
|
43
|
+
export type AppThemeConfigs = {
|
|
44
|
+
components?: Components<Omit<Theme, 'components'>>; // Override MaterialUI components styles.
|
|
45
|
+
palette?: AppPaletteConfigs; // MaterialUI theme.palette configuration object.
|
|
46
|
+
appbar?: AppBarThemeConfigs; // Appbar theme/style configuration.
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// Specification interface for the AppProvider's 'sitemap' attribute.
|
|
50
|
+
export type AppSiteMapConfigs = {
|
|
51
|
+
routes: AppSiteMapRoute[]; // The list of application routes. This is used to match the current route when rendering building and rendering breadcrumbs.
|
|
52
|
+
itemsBefore?: number; // The number of items to show before the ellipsis when breadcrumbs collapses.
|
|
53
|
+
itemsAfter?: number; // The number of itmes to show after the ellipsis when breadcrumbs collapses.
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// Specification inteface for 'topnav' configurations.
|
|
57
|
+
// These configurations apply to the top navigation appbar.
|
|
58
|
+
export type AppTopNavConfigs = {
|
|
59
|
+
themeSelectionMode?: AppThemeSelectionMode; // Where does the theme selection menu shows up either. In separate icon ("icon") or under user profile ("profile").
|
|
60
|
+
apps?: AppSwitcherItem[]; // The list of appliations to display in the app-switcher.
|
|
61
|
+
userMenu?: AppBarUserMenuElement[]; // The list of userprofile menu elements. If no item is provided, the menu is hidden.
|
|
62
|
+
userMenuI18nKey?: string; // (RECOMMENDED) The i18nKey to use to resolve the user menu title.
|
|
63
|
+
userMenuTitle?: string; // Title displayed for the user menu if not using 'userMenuI18nKey' for some reason.
|
|
64
|
+
adminMenu?: AppBarUserMenuElement[]; // The list of userprofile admin menu elements. If no item is provided, the menu is hidden.
|
|
65
|
+
adminMenuI18nKey?: string; // (RECOMMENDED) The i18nKey to use to resolve the admin menu title.
|
|
66
|
+
adminMenuTitle?: string; // Title displayed for the admin menu
|
|
67
|
+
quickSearchURI?: string; // Uri to redirect to for the appbar quick search.
|
|
68
|
+
quickSearchParam?: string; // Request parameter used to set the quick search query.
|
|
69
|
+
left?: ReactNode; // Top navbar left insertion point for any given component. Component will be inserted at far left (after app title).
|
|
70
|
+
leftAfterBreadcrumbs?: ReactNode; // Top navbar insertion point for any given component. Component will be inserted after the breadcrumbs.
|
|
71
|
+
rightBeforeSearch?: ReactNode; // Top navbar right insertion point. Component will be inserted before the app search input component.
|
|
72
|
+
right?: ReactNode; // Top navbar insertion point on the right side. Component will be inserted directly after the app search input comonent.
|
|
73
|
+
hideUserAvatar?: boolean; // Do not show the user profile avatar and menu.
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// Specification inteface for 'leftnav' configurations.
|
|
77
|
+
// These configurations apply to the left navigation drawer.
|
|
78
|
+
export type AppLeftNavConfigs = {
|
|
79
|
+
elements: AppLeftNavElement[]; // The list of menu elements in the left navigation drawer
|
|
80
|
+
width?: number; // The the width of the left nav drawer when open.
|
|
81
|
+
hideNestedIcons?: boolean; // Hide the icons for menu items nested within a group
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// Specification interface to customize default material-ui 'light' and 'dark' themes.
|
|
85
|
+
export type AppPaletteConfigs = {
|
|
86
|
+
light?: PaletteOptions; // MaterialUI light theme configuration object.
|
|
87
|
+
dark?: PaletteOptions; // MaterialUI dark theme configuration object
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export type AppBarThemeConfigs = {
|
|
91
|
+
elevation?: number; // Appbar elevation. Only applies when layout is 'top'.
|
|
92
|
+
light?: AppBarStyles; // Appbar light theme style configuration.
|
|
93
|
+
dark?: AppBarStyles; // Appbar dark theme style configuration.
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// Specification interface of describing which appbar styles are configurable.
|
|
97
|
+
export type AppBarStyles = {
|
|
98
|
+
color?: any; // Configure appbar css color style.
|
|
99
|
+
backgroundColor?: any; // Configure appbar css background color style.
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// Specification interface describing a sitemap route rendered within breadcrumbs.
|
|
103
|
+
export type AppSiteMapRoute = {
|
|
104
|
+
path: string; // The react router path.
|
|
105
|
+
title: string; // The title/label to display when rendering breadcrumb.
|
|
106
|
+
textWidth?: number; // The max width of the text when rendering the breadcrumb.
|
|
107
|
+
icon?: ReactNode; // The icon component to show beside the title/label in breadcrumb.
|
|
108
|
+
isRoot?: boolean; // When true, breadcrumbs will reset to this one path each time it is encountered
|
|
109
|
+
isLeaf?: boolean; // When true, indicates that this path does not aggregate in breadcrumbs.
|
|
110
|
+
exclude?: boolean; // When true, indicates to breadcrumbs component to not render this route.
|
|
111
|
+
breadcrumbs?: string[]; // When specified, the breadcrumbs component will disregard the aggregated list and will use this list of routes instead.
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// Specification interface for elements of user and admin menus withing the appbar's user profile.
|
|
115
|
+
export type AppBarUserMenuElement = {
|
|
116
|
+
i18nKey?: string; // (RECOMMENDED) i18n key used to resolved the elements lable/title.
|
|
117
|
+
title?: string; // The title/label to display when rendering the menu element.
|
|
118
|
+
route?: string; // The route to use when rendering the link component of this menu element.
|
|
119
|
+
icon?: ReactElement<any>; // The icon to render to the left of the title.
|
|
120
|
+
element?: ReactElement<any>; // If specified, will be used to render a profile menu element (takes precedence over [i18nKey, title, route, icon]).
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
// Specification interface describing the type of leftnav menu items to render.
|
|
124
|
+
export type AppLeftNavElement =
|
|
125
|
+
| {
|
|
126
|
+
type: 'item';
|
|
127
|
+
element: AppLeftNavItem;
|
|
128
|
+
}
|
|
129
|
+
| {
|
|
130
|
+
type: 'group';
|
|
131
|
+
element: AppLeftNavGroup;
|
|
132
|
+
}
|
|
133
|
+
| {
|
|
134
|
+
type: 'divider';
|
|
135
|
+
element: null;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
// Specification interface of a single leftnav menu item.
|
|
139
|
+
export type AppLeftNavItem = {
|
|
140
|
+
id: number | string; // A unique identifer for the item.
|
|
141
|
+
i18nKey?: string; // (RECOMMENDED) i18n key used to resolve item label/text. (Use this if you are dynamically updating the leftnav menu)
|
|
142
|
+
text?: string; // The text/label to use when rendering the item if not using i18nKey (for some reason).
|
|
143
|
+
userPropValidators?: AppUserValidatedProp[]; // The list of user props to assert before rendering the item.
|
|
144
|
+
icon?: ReactElement<any>; // The icon to render to the left of the 'text'.
|
|
145
|
+
route?: string; // If specified, the leftnav item will render a Link component to this route.
|
|
146
|
+
nested?: boolean; // If the item is within a group and rendered as a nested item. (defaults to true)
|
|
147
|
+
render?: (open: boolean) => ReactElement; // If specified, will be used to render the left nav element (takes precendence over [i18nKey, text, icon, route])
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// Specification interface of a leftnav menu group of items.
|
|
151
|
+
export type AppLeftNavGroup = {
|
|
152
|
+
id: number | string; // A unique identifier for the leftnav group.
|
|
153
|
+
open?: boolean; // Indicates whether the leftnav group is open or closed.
|
|
154
|
+
i18nKey?: string; // (RECOMMENDED over 'title') i18n key used to resolve item label/text. (Use this if you are dynamically updating the leftnav menu)
|
|
155
|
+
title?: string; // The text/label to use when rendering the group header if not using i18nKey (for some reason).
|
|
156
|
+
userPropValidators?: AppUserValidatedProp[]; // The list of user props to assert before rendering the item.
|
|
157
|
+
icon?: React.ReactElement<any>; // The icon to render on the left of the group header's 'text'
|
|
158
|
+
items: AppLeftNavItem[]; // A list of items to render for this group.
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
// Specification interface for an item provided to the app switcher.
|
|
162
|
+
export type AppSwitcherItem = {
|
|
163
|
+
alt: string;
|
|
164
|
+
name: string;
|
|
165
|
+
img_d: React.ReactElement<any> | string;
|
|
166
|
+
img_l: React.ReactElement<any> | string;
|
|
167
|
+
route: string;
|
|
168
|
+
newWindow?: boolean;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
// Specification type describing the layout supported by the applications.
|
|
172
|
+
// 'side' will anchor the leftnav drawer at the same elevation as the appbar and content area (entire height of winddow).
|
|
173
|
+
// 'top' will anchor the leftnav drawer under the appbar (which will stick to the top).
|
|
174
|
+
export type AppLayoutMode = 'side' | 'top';
|
|
175
|
+
|
|
176
|
+
// Specification type describing the where to render the theming/preferences options.
|
|
177
|
+
// 'profile' will render them under the userprofile menu.
|
|
178
|
+
// 'icon' will render a separate icon within which the theming/preferences options will be rendered.
|
|
179
|
+
export type AppThemeSelectionMode = 'profile' | 'icon';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const APP_STORAGE_PREFIX = 'templateui.core';
|
|
2
|
+
|
|
3
|
+
export const AppStorageKeys = {
|
|
4
|
+
LS_KEY_DARK_MODE: `${APP_STORAGE_PREFIX}.darkMode`,
|
|
5
|
+
LS_KEY_LAYOUT_MODE: `${APP_STORAGE_PREFIX}.navLayout`,
|
|
6
|
+
LS_KEY_LEFTNAV_OPEN: `${APP_STORAGE_PREFIX}.drawerOpen`,
|
|
7
|
+
LS_KEY_SHOW_QUICK_SEARCH: `${APP_STORAGE_PREFIX}.showQuickSearch`,
|
|
8
|
+
LS_KEY_AUTOHIDE_APPBAR: `${APP_STORAGE_PREFIX}.autoHideAppbar`,
|
|
9
|
+
LS_KEY_BREADCRUMBS_ENABLED: `${APP_STORAGE_PREFIX}.breadcrumbsEnabled`,
|
|
10
|
+
LS_KEY_BREADCRUMBS_OPEN: `${APP_STORAGE_PREFIX}.breadcrumbsState`
|
|
11
|
+
};
|