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

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

@@ -784,7 +784,7 @@ function injectServerConfigurations(
   props.isLocalAccountRegistrationEnabled =
     passportService.isLocalStrategySetup &&
     configManager.getConfig('security:registrationMode') !==
-    RegistrationMode.CLOSED;
+      RegistrationMode.CLOSED;
 
   props.adminPreferredIndentSize = configManager.getConfig(
     'markdown:adminPreferredIndentSize',
@@ -833,8 +833,8 @@ function injectServerConfigurations(
     customAttrWhitelist:
       configManager.getConfig('markdown:rehypeSanitize:attributes') != null
         ? JSON.parse(
-          configManager.getConfig('markdown:rehypeSanitize:attributes'),
-        )
+            configManager.getConfig('markdown:rehypeSanitize:attributes'),
+          )
         : undefined,
     highlightJsStyleBorder: configManager.getConfig(
       'customize:highlightJsStyleBorder',

+ 2 - 2
apps/app/src/pages/_private-legacy-pages.page.tsx

@@ -155,8 +155,8 @@ async function injectServerConfigurations(
     customAttrWhitelist:
       configManager.getConfig('markdown:rehypeSanitize:attributes') != null
         ? JSON.parse(
-          configManager.getConfig('markdown:rehypeSanitize:attributes'),
-        )
+            configManager.getConfig('markdown:rehypeSanitize:attributes'),
+          )
         : undefined,
     highlightJsStyleBorder: crowi.configManager.getConfig(
       'customize:highlightJsStyleBorder',

+ 2 - 2
apps/app/src/pages/_search.page.tsx

@@ -173,8 +173,8 @@ function injectServerConfigurations(
     customAttrWhitelist:
       configManager.getConfig('markdown:rehypeSanitize:attributes') != null
         ? JSON.parse(
-          configManager.getConfig('markdown:rehypeSanitize:attributes'),
-        )
+            configManager.getConfig('markdown:rehypeSanitize:attributes'),
+          )
         : undefined,
     highlightJsStyleBorder: crowi.configManager.getConfig(
       'customize:highlightJsStyleBorder',

+ 1 - 4
apps/app/src/pages/invited.page.tsx

@@ -13,10 +13,7 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
 
 import { NoLoginLayout } from '~/components/Layout/NoLoginLayout';
 import type { CrowiRequest } from '~/interfaces/crowi-request';
-import {
-  useCurrentPathname,
-  useCurrentUser,
-} from '~/stores-universal/context';
+import { useCurrentPathname, useCurrentUser } from '~/stores-universal/context';
 
 import type { CommonProps } from './utils/commons';
 import {

+ 2 - 2
apps/app/src/pages/me/[[...path]].page.tsx

@@ -231,8 +231,8 @@ async function injectServerConfigurations(
     customAttrWhitelist:
       configManager.getConfig('markdown:rehypeSanitize:attributes') != null
         ? JSON.parse(
-          configManager.getConfig('markdown:rehypeSanitize:attributes'),
-        )
+            configManager.getConfig('markdown:rehypeSanitize:attributes'),
+          )
         : undefined,
     highlightJsStyleBorder: crowi.configManager.getConfig(
       'customize:highlightJsStyleBorder',