From a3aaf21a59071ab0c4f356be7d1e102061a60eef Mon Sep 17 00:00:00 2001 From: suxiaoxin Date: Mon, 13 Nov 2017 11:08:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=B2=A1=E6=9C=89=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E5=AF=BC=E8=87=B4=E5=AF=BC=E5=87=BA=20html?= =?UTF-8?q?=20=E6=96=87=E6=A1=A3=E4=B9=B1=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exts/yapi-plugin-export-data/controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exts/yapi-plugin-export-data/controller.js b/exts/yapi-plugin-export-data/controller.js index baa69f4e..7d605028 100644 --- a/exts/yapi-plugin-export-data/controller.js +++ b/exts/yapi-plugin-export-data/controller.js @@ -104,6 +104,7 @@ class exportController extends baseController{ ${curProject.name} + ${defaultTheme} From b25357e1584817ea334251ad26a8ffd366307d83 Mon Sep 17 00:00:00 2001 From: suxiaoxin Date: Mon, 13 Nov 2017 11:22:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20html=20export=20style=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exts/yapi-plugin-export-data/controller.js | 1 + exts/yapi-plugin-export-data/defaultTheme.css | 1 + exts/yapi-plugin-export-data/defaultTheme.scss | 1 + 3 files changed, 3 insertions(+) diff --git a/exts/yapi-plugin-export-data/controller.js b/exts/yapi-plugin-export-data/controller.js index 7d605028..a600e429 100644 --- a/exts/yapi-plugin-export-data/controller.js +++ b/exts/yapi-plugin-export-data/controller.js @@ -93,6 +93,7 @@ class exportController extends baseController{ }); return createHtml5(left, content); } + function escapeStr(str){ return !isMarkdown ? escape(str) : str; diff --git a/exts/yapi-plugin-export-data/defaultTheme.css b/exts/yapi-plugin-export-data/defaultTheme.css index 2f0ecc31..5970e839 100644 --- a/exts/yapi-plugin-export-data/defaultTheme.css +++ b/exts/yapi-plugin-export-data/defaultTheme.css @@ -320,6 +320,7 @@ body > pre { font-size: 16px; position: absolute; right: 32px; + top: 0 } .m-header .nav a { color: #fff; diff --git a/exts/yapi-plugin-export-data/defaultTheme.scss b/exts/yapi-plugin-export-data/defaultTheme.scss index 8377518a..a6948441 100644 --- a/exts/yapi-plugin-export-data/defaultTheme.scss +++ b/exts/yapi-plugin-export-data/defaultTheme.scss @@ -315,6 +315,7 @@ body>pre { font-size: 16px; position: absolute; right: 32px; + top: 0; a { color: #fff; margin-left: 16px;