|
|
@@ -23,6 +23,7 @@ import superjson from 'superjson';
|
|
|
import { useCurrentGrowiLayoutFluidClassName, useEditorModeClassName } from '~/client/services/layout';
|
|
|
import { PageView } from '~/components/Page/PageView';
|
|
|
import { DrawioViewerScript } from '~/components/Script/DrawioViewerScript';
|
|
|
+import { SupportedAction } from '~/interfaces/activity';
|
|
|
import type { CrowiRequest } from '~/interfaces/crowi-request';
|
|
|
import type { EditorConfig } from '~/interfaces/editor-settings';
|
|
|
import type { IPageGrantData } from '~/interfaces/page';
|
|
|
@@ -60,7 +61,7 @@ import { DisplaySwitcher } from '../components/Page/DisplaySwitcher';
|
|
|
import type { NextPageWithLayout } from './_app.page';
|
|
|
import type { CommonProps } from './utils/commons';
|
|
|
import {
|
|
|
- getNextI18NextConfig, getServerSideCommonProps, generateCustomTitleForPage, useInitSidebarConfig, skipSSR,
|
|
|
+ getNextI18NextConfig, getServerSideCommonProps, generateCustomTitleForPage, useInitSidebarConfig, skipSSR, addActivity,
|
|
|
} from './utils/commons';
|
|
|
|
|
|
|
|
|
@@ -660,7 +661,7 @@ export const getServerSideProps: GetServerSideProps = async(context: GetServerSi
|
|
|
await injectRoutingInformation(context, props);
|
|
|
injectServerConfigurations(context, props);
|
|
|
await injectNextI18NextConfigurations(context, props, ['translation']);
|
|
|
-
|
|
|
+ addActivity(context, SupportedAction.ACTION_PAGE_VIEW);
|
|
|
return {
|
|
|
props,
|
|
|
};
|