Yuki Takei 7 месяцев назад
Родитель
Сommit
b8a7d44b26

+ 9 - 8
apps/app/src/pages/[[...path]].page.tsx → apps/app/src/pages/[[...path]]/index.page.tsx

@@ -39,16 +39,17 @@ import { useSetupGlobalSocket, useSetupGlobalSocketForPage } from '~/states/sock
 import { useEditingMarkdown } from '~/states/ui/editor';
 import { useSWRMUTxCurrentPageYjsData } from '~/stores/yjs';
 
-import { NEXT_JS_ROUTING_PAGE } from './[[...path]]/common-helpers';
-import { useSameRouteNavigation, useShallowRouting } from './[[...path]]/hooks';
-import { getServerSidePropsForInitial, getServerSidePropsForSameRoute } from './[[...path]]/server-side-props';
+import type { NextPageWithLayout } from '../_app.page';
+import { NextjsRoutingType, detectNextjsRoutingType } from '../utils/nextjs-routing-utils';
+import { useCustomTitleForPage } from '../utils/page-title-customization';
+
+import { NEXT_JS_ROUTING_PAGE } from './common-helpers';
+import { useSameRouteNavigation, useShallowRouting } from './hooks';
+import { getServerSidePropsForInitial, getServerSidePropsForSameRoute } from './server-side-props';
 import type {
   Props, InitialProps, SameRouteEachProps, IPageToShowRevisionWithMeta,
-} from './[[...path]]/types';
-import { useInitialCSRFetch } from './[[...path]]/use-initial-skip-ssr-fetch';
-import type { NextPageWithLayout } from './_app.page';
-import { NextjsRoutingType, detectNextjsRoutingType } from './utils/nextjs-routing-utils';
-import { useCustomTitleForPage } from './utils/page-title-customization';
+} from './types';
+import { useInitialCSRFetch } from './use-initial-skip-ssr-fetch';
 
 declare global {
   // eslint-disable-next-line vars-on-top, no-var

+ 3 - 3
apps/app/src/pages/me/[[...path]].page.tsx → apps/app/src/pages/me/[[...path]]/index.page.tsx

@@ -24,11 +24,11 @@ import {
 } from '~/stores-universal/context';
 import loggerFactory from '~/utils/logger';
 
-import type { NextPageWithLayout } from '../_app.page';
-import type { CommonProps } from '../utils/commons';
+import type { NextPageWithLayout } from '../../_app.page';
+import type { CommonProps } from '../../utils/commons';
 import {
   getNextI18NextConfig, getServerSideCommonProps, generateCustomTitle,
-} from '../utils/commons';
+} from '../../utils/commons';
 
 
 const logger = loggerFactory('growi:pages:me');

+ 3 - 3
apps/app/src/pages/share/[[...path]].page.tsx → apps/app/src/pages/share/[[...path]]/index.page.tsx

@@ -29,11 +29,11 @@ import {
 } from '~/stores-universal/context';
 import loggerFactory from '~/utils/logger';
 
-import type { NextPageWithLayout } from '../_app.page';
-import type { CommonProps } from '../utils/commons';
+import type { NextPageWithLayout } from '../../_app.page';
+import type { CommonProps } from '../../utils/commons';
 import {
   getServerSideCommonProps, generateCustomTitleForPage, getNextI18NextConfig, skipSSR, addActivity,
-} from '../utils/commons';
+} from '../../utils/commons';
 
 
 const GrowiContextualSubNavigationSubstance = dynamic(() => import('~/client/components/Navbar/GrowiContextualSubNavigation'), { ssr: false });