star7th 5 年之前
父节点
当前提交
6f7b5f06b6

+ 1 - 1
composer.json

@@ -5,7 +5,7 @@
     "description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
     "keywords": ["showdoc","documents","Api"],
     "homepage": "https://github.com/star7th/showdoc",
-    "version":"v2.6.3", 
+    "version":"v2.6.5", 
     "license": "Apache-2.0",
     "authors": [
         {

+ 6 - 2
web/index.html

@@ -4,7 +4,11 @@
       "server": window.location.protocol +'//'+ window.location.host + window.location.pathname+ '../server/index.php?s=',
       //"lang" :'en'
       "lang" :'zh-cn'
-  }</script><link href=./static/css/app.e842f35bd266ed8d58f34947618d6d93.css rel=stylesheet></head><body class=grey-bg><div id=app></div><script type=text/javascript src=./static/js/manifest.96627ad77791cdcff695.js></script><script type=text/javascript src=./static/js/vendor.e142ae298b8919d4a6df.js></script><script type=text/javascript src=./static/js/app.0a0c74c87f48b871ebfd.js></script></body></html><script language=JavaScript>window.addEventListener('resize', function() {
-    console.log(window.innerWidth + ' ' + window.innerHeight);
+  }</script><link href=./static/css/app.8f471dbc1a542f85e173761b1e1e6d8f.css rel=stylesheet></head><body class=grey-bg><div id=app></div><script type=text/javascript src=./static/js/manifest.e2b980cf8968a5919fb1.js></script><script type=text/javascript src=./static/js/vendor.e142ae298b8919d4a6df.js></script><script type=text/javascript src=./static/js/app.6746119afa913347cb90.js></script></body></html><script language=JavaScript>window.addEventListener('resize', function() {
+    //console.log(window.innerWidth + ' ' + window.innerHeight);
+    //如果存在save-page,则保存内容后再刷新以免丢失内容
+    if(document.getElementById("save-page")){
+      document.getElementById("save-page").click();
+    }
     window.location.reload();
   });</script>

文件差异内容过多而无法显示
+ 0 - 0
web/static/css/app.8f471dbc1a542f85e173761b1e1e6d8f.css


文件差异内容过多而无法显示
+ 0 - 0
web/static/css/app.e842f35bd266ed8d58f34947618d6d93.css


文件差异内容过多而无法显示
+ 0 - 0
web/static/js/app.0a0c74c87f48b871ebfd.js


文件差异内容过多而无法显示
+ 0 - 0
web/static/js/app.6746119afa913347cb90.js


+ 1 - 1
web/static/js/manifest.96627ad77791cdcff695.js → web/static/js/manifest.e2b980cf8968a5919fb1.js

@@ -1 +1 @@
-!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var i,u,f,s=0,l=[];s<t.length;s++)u=t[s],o[u]&&l.push(o[u][0]),o[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(r&&r(t,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=n(n.s=a[s]);return f};var t={},o={2:0};n.e=function(e){function r(){i.onerror=i.onload=null,clearTimeout(u);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var c=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=c;var a=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=12e4,n.nc&&i.setAttribute("nonce",n.nc),i.src=n.p+"static/js/"+e+"."+{0:"e142ae298b8919d4a6df",1:"0a0c74c87f48b871ebfd"}[e]+".js";var u=setTimeout(r,12e4);return i.onerror=i.onload=r,a.appendChild(i),c},n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
+!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var i,u,f,s=0,l=[];s<t.length;s++)u=t[s],o[u]&&l.push(o[u][0]),o[u]=0;for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);for(r&&r(t,a,c);l.length;)l.shift()();if(c)for(s=0;s<c.length;s++)f=n(n.s=c[s]);return f};var t={},o={2:0};n.e=function(e){function r(){i.onerror=i.onload=null,clearTimeout(u);var n=o[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var t=o[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var a=new Promise(function(n,r){t=o[e]=[n,r]});t[2]=a;var c=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=12e4,n.nc&&i.setAttribute("nonce",n.nc),i.src=n.p+"static/js/"+e+"."+{0:"e142ae298b8919d4a6df",1:"6746119afa913347cb90"}[e]+".js";var u=setTimeout(r,12e4);return i.onerror=i.onload=r,c.appendChild(i),a},n.m=e,n.c=t,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);

+ 13 - 0
web/static/lang/en.js

@@ -307,5 +307,18 @@ exports.default = {
     "cat_tips":"Drag to sort",
     "cat_limite_tips":"Only up to three levels of directories are supported",
 
+    "regular_item":"Regular Item",
+    "single_item":"Single Item",
+    "copy_item":"Copy Item",
+    "import_file":"Import File",
+    "auto_item":"Auto Create",
+    "single_item_tips":"Single item refers to the item with no catalog structure and only one page",
+    "copy_item_tips1":"Select and copy from your existing items",
+    "copy_item_tips2":"After copying, rename the new item to:",
+    "import_file_tips1":"The imported file can be the JSON file of postman, the JSON file of swagger, and the markdown zip of showdoc. The system will automatically identify the file type",
+    "import_file_tips2":"Drag the file here, or click to upload",
+    "export_format_word":"Word format",
+    "export_format_markdown":"Markdown zip",
+    "export_markdown_tips":"The exported compressed package can be re imported into showdoc. Select 'Import File' when creating a new item",
 
 };

+ 14 - 0
web/static/lang/zh-CN.js

@@ -314,5 +314,19 @@ exports.default = {
 
     "sort_pages":"页面排序",
     "sort_pages_tips":"选择特定的目录后,你可以对该目录下的页面进行拖动排序",
+
+    "regular_item":"常规项目",
+    "single_item":"单页项目",
+    "copy_item":"复制项目",
+    "import_file":"导入文件",
+    "auto_item":"自动生成",
+    "single_item_tips":"单页项目指的是指没有目录结构,只有一个页面的项目",
+    "copy_item_tips1":"从你已有的项目中选择并复制",
+    "copy_item_tips2":"复制后将新项目重命名为:",
+    "import_file_tips1":"导入的文件可以是<b>postman</b>的json文件、<b>swagger</b>的json文件、showdoc的<b>markdown压缩包</b>。系统会自动识别文件类型。",
+    "import_file_tips2":"将文件拖到此处,或<em>点击上传</em>",
+    "export_format_word":"word格式",
+    "export_format_markdown":"markdown压缩包",
+    "export_markdown_tips":"导出的压缩包可以重新导入showdoc,在新建项目的时候选择“文件导入”即可",
     
 };

部分文件因为文件数量过多而无法显示