|
|
@@ -53,7 +53,6 @@ import {
|
|
|
useSWRMUTxCurrentPageYjsData,
|
|
|
} from '~/stores/yjs';
|
|
|
import {
|
|
|
- useCsrfToken,
|
|
|
useCurrentPathname,
|
|
|
useCurrentUser,
|
|
|
useDefaultIndentSize,
|
|
|
@@ -322,7 +321,6 @@ const Page: NextPageWithLayout<Props> = (props: Props) => {
|
|
|
useCurrentUser(props.currentUser ?? null);
|
|
|
|
|
|
// commons
|
|
|
- useCsrfToken(props.csrfToken);
|
|
|
useGrowiCloudUri(props.growiCloudUri);
|
|
|
|
|
|
// page
|
|
|
@@ -786,7 +784,7 @@ function injectServerConfigurations(
|
|
|
props.isLocalAccountRegistrationEnabled =
|
|
|
passportService.isLocalStrategySetup &&
|
|
|
configManager.getConfig('security:registrationMode') !==
|
|
|
- RegistrationMode.CLOSED;
|
|
|
+ RegistrationMode.CLOSED;
|
|
|
|
|
|
props.adminPreferredIndentSize = configManager.getConfig(
|
|
|
'markdown:adminPreferredIndentSize',
|
|
|
@@ -835,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',
|