jam411 3 лет назад
Родитель
Сommit
1424044bff
1 измененных файлов с 6 добавлено и 0 удалено
  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 = {