Browse Source

前后端分离&重构前端页面&优化

star7th 7 years ago
parent
commit
f3e6509d74

+ 10 - 7
install/database.php

@@ -47,16 +47,19 @@ if(!new_is_writeable("../Application/Home/Conf/config.php")){
   $go = 0;
 }
 
-if(!new_is_writeable("../web/index.html")){
-  echo L("not_writable_web_docconfig").'<br>';
-  $go = 0;
-}
+if ($cur_lang == 'en') {
+  if(!new_is_writeable("../web/index.html")){
+    echo L("not_writable_web_docconfig").'<br>';
+    $go = 0;
+  }
 
-if(!new_is_writeable("../web_src/index.html")){
-  echo L("not_writable_web_src_docconfig").'<br>';
-  $go = 0;
+  if(!new_is_writeable("../web_src/index.html")){
+    echo L("not_writable_web_src_docconfig").'<br>';
+    $go = 0;
+  }
 }
 
+
 //检查扩展
 if(!extension_loaded("gd")){
   echo '请安装php-gd<br>';

+ 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.93a6619a0ecd20a132b3ab75f31b8030.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.8b0ff8dbb09c9b52b6a9.js></script><script type=text/javascript src=./static/js/vendor.6ec312a9f1e4bcc005ef.js></script><script type=text/javascript src=./static/js/app.9f04e37d32c3d7b00140.js></script></body></html>
+  }</script><link href=./static/css/app.c0251bf502025e3539a1c8bc659384c7.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.aca1b4ce743dfb8d69c5.js></script><script type=text/javascript src=./static/js/vendor.6ec312a9f1e4bcc005ef.js></script><script type=text/javascript src=./static/js/app.ffe322bb91d12414c422.js></script></body></html>

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


File diff suppressed because it is too large
+ 1 - 0
web/static/jquery.min.js


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


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


+ 1 - 1
web/static/js/manifest.8b0ff8dbb09c9b52b6a9.js → web/static/js/manifest.aca1b4ce743dfb8d69c5.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:"9f04e37d32c3d7b00140"}[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:"ffe322bb91d12414c422"}[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}}([]);

+ 2 - 2
web_src/src/components/common/Editormd.vue

@@ -79,7 +79,7 @@ export default {
   mounted() {
     
     //加载依赖""
-    $s([`//cdn.bootcss.com/jquery/2.1.3/jquery.min.js`,
+    $s([`${this.editorPath}/../jquery.min.js`,
     	`${this.editorPath}/lib/raphael.min.js`,
     	`${this.editorPath}/lib/flowchart.min.js`,
 
@@ -97,7 +97,7 @@ export default {
 	        this.initEditor();
 	      });
 
-	      $s("//cdn.bootcss.com/highlight.js/9.1.0/highlight.min.js", () => {
+	      $s(`${this.editorPath}/../highlight/highlight.min.js`, () => {
 	        hljs.initHighlightingOnLoad();
 	      });
 

+ 1 - 1
web_src/src/components/item/Index.vue

@@ -197,7 +197,7 @@ export default {
     bind_item_even(){
 
       //这里偷个懒,直接用jquery来操作DOM。因为老版本的代码就是基于jquery的,所以复制过来稍微改下
-      $s([`//cdn.bootcss.com/jquery/2.1.3/jquery.min.js`],()=>{
+      $s(["static/jquery.min.js"],()=>{
 
           //当鼠标放在项目上时将浮现设置和置顶图标
           $(".item-thumbnail").mouseover(function(){

File diff suppressed because it is too large
+ 1 - 0
web_src/static/jquery.min.js


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