Browse Source

优化页面内容样式

star7th 7 years ago
parent
commit
450b9b5d24

+ 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.3",
+    "version":"v2.0.4",
     "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.b791e5c0bb481338e7aefc3c81d462ec.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.958296e6619ce92c0b37.js></script><script type=text/javascript src=./static/js/vendor.6ec312a9f1e4bcc005ef.js></script><script type=text/javascript src=./static/js/app.0a39c50ca9fbf21d7e52.js></script></body></html>
+  }</script><link href=./static/css/app.b791e5c0bb481338e7aefc3c81d462ec.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.9df9d183c867769136d6.js></script><script type=text/javascript src=./static/js/vendor.6ec312a9f1e4bcc005ef.js></script><script type=text/javascript src=./static/js/app.cb0bbf0a0f63d5e48e90.js></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
web/static/js/app.0a39c50ca9fbf21d7e52.js


File diff suppressed because it is too large
+ 0 - 0
web/static/js/app.cb0bbf0a0f63d5e48e90.js


+ 1 - 1
web/static/js/manifest.958296e6619ce92c0b37.js → web/static/js/manifest.9df9d183c867769136d6.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:"6ec312a9f1e4bcc005ef",1:"0a39c50ca9fbf21d7e52"}[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,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:"cb0bbf0a0f63d5e48e90"}[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}}([]);

+ 11 - 0
web_src/src/components/common/Editormd.vue

@@ -229,6 +229,17 @@ export default {
       // 获取当前图片地址
           that.imgSrc = img_url;
         });
+        
+        //表格头颜色
+        $("#"+this.id+" table thead tr").css("background-color","#409eff") ;
+        $("#"+this.id+" table thead tr").css("color","#fff") ;
+
+        //代码块美化
+        $("#"+this.id+" .linenums").css("padding-left","0px") ;
+        $("#"+this.id+" .linenums li").css("list-style-type","none") ;
+        $("#"+this.id+" .linenums li").css("background-color","#fcfcfc") ;
+        $("#"+this.id+" pre").css("background-color","#fcfcfc") ;
+        $("#"+this.id+" pre").css("border","1px solid #e1e1e8") ;
     },
   }
 };

Some files were not shown because too many files changed in this diff