Yuki Takei 3 лет назад
Родитель
Сommit
794baafdbd

+ 0 - 1
apps/app/src/client/services/renderer/renderer.tsx

@@ -31,7 +31,6 @@ import {
 import loggerFactory from '~/utils/logger';
 import loggerFactory from '~/utils/logger';
 
 
 // import EasyGrid from './PreProcessor/EasyGrid';
 // import EasyGrid from './PreProcessor/EasyGrid';
-// import BlockdiagConfigurer from './markdown-it/blockdiag';
 
 
 import '@growi/remark-lsx/dist/client/style.css';
 import '@growi/remark-lsx/dist/client/style.css';
 
 

+ 0 - 1
apps/app/src/interfaces/services/renderer.ts

@@ -9,5 +9,4 @@ export type RendererConfig = {
   highlightJsStyleBorder: boolean,
   highlightJsStyleBorder: boolean,
 
 
   plantumlUri: string | null,
   plantumlUri: string | null,
-  blockdiagUri: string | null,
 } & XssOptionConfig;
 } & XssOptionConfig;

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

@@ -578,7 +578,6 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
 
 
     plantumlUri: process.env.PLANTUML_URI ?? null,
     plantumlUri: process.env.PLANTUML_URI ?? null,
-    blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
 
 
     // XSS Options
     // XSS Options
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),

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

@@ -102,7 +102,6 @@ async function injectServerConfigurations(context: GetServerSidePropsContext, pr
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
 
 
     plantumlUri: process.env.PLANTUML_URI ?? null,
     plantumlUri: process.env.PLANTUML_URI ?? null,
-    blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
 
 
     // XSS Options
     // XSS Options
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),

+ 0 - 1
apps/app/src/pages/_search.page.tsx

@@ -139,7 +139,6 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
 
 
     plantumlUri: process.env.PLANTUML_URI ?? null,
     plantumlUri: process.env.PLANTUML_URI ?? null,
-    blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
 
 
     // XSS Options
     // XSS Options
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),

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

@@ -159,7 +159,6 @@ async function injectServerConfigurations(context: GetServerSidePropsContext, pr
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
 
 
     plantumlUri: process.env.PLANTUML_URI ?? null,
     plantumlUri: process.env.PLANTUML_URI ?? null,
-    blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
 
 
     // XSS Options
     // XSS Options
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),

+ 0 - 1
apps/app/src/pages/share/[[...path]].page.tsx

@@ -157,7 +157,6 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
 
 
     plantumlUri: process.env.PLANTUML_URI ?? null,
     plantumlUri: process.env.PLANTUML_URI ?? null,
-    blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
 
 
     // XSS Options
     // XSS Options
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),

+ 0 - 1
apps/app/src/pages/tags.page.tsx

@@ -146,7 +146,6 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
 
 
     plantumlUri: process.env.PLANTUML_URI ?? null,
     plantumlUri: process.env.PLANTUML_URI ?? null,
-    blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
 
 
     // XSS Options
     // XSS Options
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),

+ 0 - 1
apps/app/src/pages/trash.page.tsx

@@ -135,7 +135,6 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
     isIndentSizeForced: configManager.getConfig('markdown', 'markdown:isIndentSizeForced'),
 
 
     plantumlUri: process.env.PLANTUML_URI ?? null,
     plantumlUri: process.env.PLANTUML_URI ?? null,
-    blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
 
 
     // XSS Options
     // XSS Options
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),
     isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),

+ 0 - 6
apps/app/src/server/service/config-loader.ts

@@ -79,12 +79,6 @@ const ENV_VAR_NAME_TO_CONFIG_INFO = {
   //   type:    ,
   //   type:    ,
   //   default:
   //   default:
   // },
   // },
-  // BLOCKDIAG_URI: {
-  //   ns:      ,
-  //   key:     ,
-  //   type:    ,
-  //   default:
-  // },
   // OAUTH_GOOGLE_CLIENT_ID: {
   // OAUTH_GOOGLE_CLIENT_ID: {
   //   ns:      'crowi',
   //   ns:      'crowi',
   //   key:     'security:passport-google:clientId',
   //   key:     'security:passport-google:clientId',

+ 0 - 18
apps/app/src/services/renderer/markdown-it/blockdiag.ts

@@ -1,18 +0,0 @@
-import { RendererConfig } from '~/interfaces/services/renderer';
-
-export default class BlockdiagConfigurer {
-
-  generateSourceUrl: string;
-
-  constructor(config: RendererConfig) {
-    this.generateSourceUrl = config.blockdiagUri || 'https://blockdiag-api.com/';
-  }
-
-  configure(md) {
-    // md.use(require('markdown-it-blockdiag'), {
-    //   generateSourceUrl: this.generateSourceUrl,
-    //   marker: ':::',
-    // });
-  }
-
-}

+ 0 - 1
apps/app/src/services/renderer/renderer.tsx

@@ -27,7 +27,6 @@ import { pukiwikiLikeLinker } from './remark-plugins/pukiwiki-like-linker';
 import * as xsvToTable from './remark-plugins/xsv-to-table';
 import * as xsvToTable from './remark-plugins/xsv-to-table';
 
 
 // import EasyGrid from './PreProcessor/EasyGrid';
 // import EasyGrid from './PreProcessor/EasyGrid';
-// import BlockdiagConfigurer from './markdown-it/blockdiag';
 
 
 
 
 const logger = loggerFactory('growi:services:renderer');
 const logger = loggerFactory('growi:services:renderer');