From ddfea4baeef9cf92e067eea21573df802a31ceba Mon Sep 17 00:00:00 2001 From: Max Wu Date: Sat, 3 Aug 2019 21:21:40 +0800 Subject: [PATCH 1/2] fix: add default value for plantuml server and use https Signed-off-by: Max Wu --- config.json.example | 2 +- lib/config/default.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.json.example b/config.json.example index 1c313e23..18959393 100644 --- a/config.json.example +++ b/config.json.example @@ -125,7 +125,7 @@ }, "plantuml": { - "server": "http://www.plantuml.com/plantuml" + "server": "https://www.plantuml.com/plantuml" } } } diff --git a/lib/config/default.js b/lib/config/default.js index 692c9b48..c9e09c00 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -153,6 +153,9 @@ module.exports = { email: undefined } }, + plantuml: { + server: 'https://www.plantuml.com/plantuml' + }, email: true, allowEmailRegister: true, allowGravatar: true, From 0c4d0a05e02a895703fd26a67f6fe69ae11bb806 Mon Sep 17 00:00:00 2001 From: Max Wu Date: Sat, 3 Aug 2019 21:22:03 +0800 Subject: [PATCH 2/2] feat: add plantuml to support charts textcomplete list Signed-off-by: Max Wu --- public/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index 7e774982..938ad908 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -97,7 +97,7 @@ var cursorActivityDebounce = 50 var cursorAnimatePeriod = 100 var supportContainers = ['success', 'info', 'warning', 'danger', 'spoiler'] var supportCodeModes = ['javascript', 'typescript', 'jsx', 'htmlmixed', 'htmlembedded', 'css', 'xml', 'clike', 'clojure', 'ruby', 'python', 'shell', 'php', 'sql', 'haskell', 'coffeescript', 'yaml', 'pug', 'lua', 'cmake', 'nginx', 'perl', 'sass', 'r', 'dockerfile', 'tiddlywiki', 'mediawiki', 'go', 'gherkin'].concat(hljs.listLanguages()) -var supportCharts = ['sequence', 'flow', 'graphviz', 'mermaid', 'abc'] +var supportCharts = ['sequence', 'flow', 'graphviz', 'mermaid', 'abc', 'plantuml'] var supportHeaders = [ { text: '# h1',