star7th 7 年之前
父节点
当前提交
a12b46011b

+ 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.0",
+    "version":"v2.0.1",
     "license": "Apache-2.0",
     "authors": [
         {

+ 1 - 1
web/index.html

@@ -4,4 +4,4 @@
       "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.8581cffd880e4648210c10c6b3293223.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.a7153cd2064e01c186eb.js></script><script type=text/javascript src=./static/js/vendor.6ec312a9f1e4bcc005ef.js></script><script type=text/javascript src=./static/js/app.caa532aea1a440de28d5.js></script></body></html>
+  }</script><link href=./static/css/app.692c3e9246a2cfb50f236c587f136b2d.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.6bbc426b6c9d3fe0c5da.js></script><script type=text/javascript src=./static/js/vendor.6ec312a9f1e4bcc005ef.js></script><script type=text/javascript src=./static/js/app.c294d67280e8e41d9683.js></script></body></html>

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


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


+ 4 - 0
web/static/css/common.css

@@ -45,6 +45,10 @@ li{
   list-style-type:none;
 }
 
+.markdown-body li{
+  list-style-type:disc;
+}
+
 .text-center{
   text-align: center;
 }

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


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


+ 1 - 1
web/static/js/manifest.a7153cd2064e01c186eb.js → web/static/js/manifest.6bbc426b6c9d3fe0c5da.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,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:"6ec312a9f1e4bcc005ef",1:"caa532aea1a440de28d5"}[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}}([]);
+!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:"6ec312a9f1e4bcc005ef",1:"c294d67280e8e41d9683"}[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}}([]);

+ 14 - 1
web_src/src/components/item/show/show_regular_item/PageBar.vue

@@ -130,7 +130,20 @@
     },
   },
   mounted () {
-    
+    var that = this ;
+    document.onkeydown=function(e){  //对整个页面文档监听 其键盘快捷键
+      var keyNum=window.event ? e.keyCode :e.which;  //获取被按下的键值 
+      if (keyNum == 69 && e.ctrlKey) {  //Ctrl +e 为编辑
+        that.edit_page();
+        e.preventDefault();
+      };
+
+      if (keyNum == 46 && e.ctrlKey) {  //Ctrl +del 为删除
+        that.delete_page();
+        e.preventDefault();
+      };
+
+    }
   }
 };
 </script>

+ 9 - 1
web_src/src/components/page/edit/Index.vue

@@ -417,6 +417,7 @@ export default {
   },
 
   mounted () {
+    var that = this ;
     this.page_id = this.$route.params.page_id ;
     this.copy_page_id = this.$route.query.copy_page_id ? this.$route.query.copy_page_id : '' ;
     
@@ -430,7 +431,14 @@ export default {
       this.content = this.$t("welcome_use_showdoc") ;
     }
     this.get_cat2(this.$route.params.item_id);
-
+    
+    document.onkeydown=function(e){  //对整个页面文档监听 其键盘快捷键
+      var keyNum=window.event ? e.keyCode :e.which;  //获取被按下的键值 
+      if (keyNum == 83 && e.ctrlKey) {  //Ctrl +S 为保存
+        that.save();
+        e.preventDefault();
+      };
+    }
     
   }
 }

+ 4 - 0
web_src/static/css/common.css

@@ -45,6 +45,10 @@ li{
   list-style-type:none;
 }
 
+.markdown-body li{
+  list-style-type:disc;
+}
+
 .text-center{
   text-align: center;
 }

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