Explorar el Código

add rendererConfig props

jam411 hace 3 años
padre
commit
1424044bff
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      packages/app/src/pages/[[...path]].page.tsx

+ 6 - 0
packages/app/src/pages/[[...path]].page.tsx

@@ -499,6 +499,12 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
     attrWhiteList: crowi.xssService.getAttrWhiteList(),
     tagWhiteList: crowi.xssService.getTagWhiteList(),
     highlightJsStyleBorder: crowi.configManager.getConfig('crowi', 'customize:highlightJsStyleBorder'),
+
+    upload: {
+      image: crowi.fileUploadService.getIsUploadable(),
+      file: crowi.fileUploadService.getFileUploadEnabled(),
+    },
+    isSlackConfigured: crowi.slackIntegrationService.isSlackConfigured,
   };
 
   props.sidebarConfig = {