|
@@ -11,6 +11,7 @@ import { ISidebarConfig } from '~/interfaces/sidebar-config';
|
|
|
import { IUser, IUserHasId } from '~/interfaces/user';
|
|
import { IUser, IUserHasId } from '~/interfaces/user';
|
|
|
import { IUserUISettings } from '~/interfaces/user-ui-settings';
|
|
import { IUserUISettings } from '~/interfaces/user-ui-settings';
|
|
|
import UserUISettings from '~/server/models/user-ui-settings';
|
|
import UserUISettings from '~/server/models/user-ui-settings';
|
|
|
|
|
+import Xss from '~/services/xss';
|
|
|
import {
|
|
import {
|
|
|
useCurrentUser,
|
|
useCurrentUser,
|
|
|
useIsSearchPage, useIsSearchScopeChildrenAsDefault, useIsSearchServiceConfigured, useIsSearchServiceReachable, useRendererConfig,
|
|
useIsSearchPage, useIsSearchScopeChildrenAsDefault, useIsSearchServiceConfigured, useIsSearchServiceReachable, useRendererConfig,
|
|
@@ -18,6 +19,7 @@ import {
|
|
|
import {
|
|
import {
|
|
|
usePreferDrawerModeByUser, usePreferDrawerModeOnEditByUser, useSidebarCollapsed, useCurrentSidebarContents, useCurrentProductNavWidth,
|
|
usePreferDrawerModeByUser, usePreferDrawerModeOnEditByUser, useSidebarCollapsed, useCurrentSidebarContents, useCurrentProductNavWidth,
|
|
|
} from '~/stores/ui';
|
|
} from '~/stores/ui';
|
|
|
|
|
+import { useXss } from '~/stores/xss';
|
|
|
|
|
|
|
|
import { CommonProps, getServerSideCommonProps, useCustomTitle } from './utils/commons';
|
|
import { CommonProps, getServerSideCommonProps, useCustomTitle } from './utils/commons';
|
|
|
|
|
|
|
@@ -43,6 +45,9 @@ type Props = CommonProps & {
|
|
|
const SearchPage: NextPage<Props> = (props: Props) => {
|
|
const SearchPage: NextPage<Props> = (props: Props) => {
|
|
|
const { userUISettings } = props;
|
|
const { userUISettings } = props;
|
|
|
|
|
|
|
|
|
|
+ // commons
|
|
|
|
|
+ useXss(new Xss());
|
|
|
|
|
+
|
|
|
useCurrentUser(props.currentUser ?? null);
|
|
useCurrentUser(props.currentUser ?? null);
|
|
|
|
|
|
|
|
useIsSearchPage(true);
|
|
useIsSearchPage(true);
|