diff --git a/web/dist/index.html b/web/dist/index.html index 8abd3c81..40a4c3d3 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -1 +1 @@ -波博客 - boblog.com
\ No newline at end of file +波博客 - boblog.com
\ No newline at end of file diff --git a/web/dist/static/js/about.a91aec7f.js b/web/dist/static/js/about.668f8524.js similarity index 100% rename from web/dist/static/js/about.a91aec7f.js rename to web/dist/static/js/about.668f8524.js diff --git a/web/dist/static/js/app.11647471.js b/web/dist/static/js/app.11647471.js new file mode 100644 index 00000000..78e722f2 --- /dev/null +++ b/web/dist/static/js/app.11647471.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var r,a,c=t[0],s=t[1],u=t[2],l=0,d=[];l0},loadingText:function(e){return e.loadingList.length>0?e.loadingList[0].text:null}},i={openLoading:function(e,t){e.commit("PUSH_LOADING",t)},closeLoading:function(e){e.commit("SHIFT_LOADING")}};t["default"]={namespaced:!0,state:r,mutations:a,getters:o,actions:i}},2454:function(e,t,n){"use strict";n.r(t);n("d3b7"),n("96cf");var r=n("e1d2"),a={list:function(e){var t=e.column_id;return delete e.column_id,r["a"].get("/column/chapter-list/"+t,e)},detail:function(e){var t=e.id;return delete e.id,r["a"].get("/column/chapter/"+t,e)}},o={},i={},c={list:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return e.state,e.commit,r.next=3,regeneratorRuntime.awrap(a.list(t));case 3:return n=r.sent,r.abrupt("return",n);case 5:case"end":return r.stop()}}))},detail:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return e.state,e.commit,r.next=3,regeneratorRuntime.awrap(a.detail(t));case 3:return n=r.sent,r.abrupt("return",n);case 5:case"end":return r.stop()}}))}};t["default"]={namespaced:!0,state:o,mutations:i,actions:c}},4360:function(e,t,n){"use strict";n("4160"),n("d3b7"),n("ac1f"),n("5319"),n("159b"),n("ddb0");var r=n("2b0e"),a=n("2f62");r["a"].use(a["a"]);var o=new a["a"].Store({mutations:{},actions:{}}),i=n("c653");function c(e){e.keys().forEach((function(t){o.registerModule(t.replace(/(^\.\/)|(\.js$)/g,""),e(t).default)}))}c(i),t["a"]=o},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("d3b7"),n("96cf");var r=n("aa30"),a=n("9259"),o=n("96c4"),i=n("8d8f"),c=n("64e9"),s=n("be95"),u=n("674c"),l=n("65eb"),d=n("e3f5"),f=n("5250"),m=n("beb5"),p=n("2b0e"),h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[e.isLoading?n("v-loading",{attrs:{text:e.loadingText}}):e._e(),n("v-headers"),n("router-view"),n("BackTop"),n("v-footer")],1)},g=[],v=(n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("2fa7")),b=n("2f62"),w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"loading-wrap"},[n("div",{staticClass:"loading-box"}),n("div",{staticClass:"loading-text"},[e._v(e._s(e.text))])])},y=[],L={props:["text"],data:function(){return{}},computed:{},mounted:function(){},methods:{}},x=L,O=(n("b3ea"),n("2877")),_=Object(O["a"])(x,w,y,!1,null,"2629b14a",null),E=_.exports,j=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("header",{staticClass:"header-wrap"},[r("section",{staticClass:"header-inner"},[r("div",{staticClass:"logo"},[r("div",{staticClass:"logo-box",on:{click:function(t){return e.toLink("/")}}},[r("img",{attrs:{src:n("9d64"),alt:"logo"}})])]),r("div",{staticClass:"nav"},[r("ul",{staticClass:"nav-box"},e._l(e.nav,(function(t,n){return r("li",{key:n,class:n===e.navIndex?"nav-item nav-item-active":"nav-item",on:{click:function(n){return e.toLink(t.router)}}},[e._v(" "+e._s(t.name)+" ")])})),0)]),r("div",{staticClass:"search"},[r("Input",{staticStyle:{width:"auto"},attrs:{size:"default",suffix:"ios-search",placeholder:"搜索文章.."},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1)])])},C=[];n("b0c0"),n("ac1f"),n("5319");function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t0)){i.next=3;break}return i.abrupt("return",n.advertiseList);case 3:return i.next=5,regeneratorRuntime.awrap(a.list(t));case 5:return o=i.sent,r("SET_ADVERTISE_LIST",o.data.data.data),i.abrupt("return",o);case 8:case"end":return i.stop()}}))}};t["default"]={namespaced:!0,state:o,actions:c,mutations:i}},c42d:function(e,t,n){},c653:function(e,t,n){var r={"./advertise.js":"ba6e","./articles.js":"5e84","./category.js":"d0c1","./chapter-section.js":"e699","./column-chapter.js":"2454","./column.js":"5a55","./comment.js":"f07f","./headers.js":"d0120","./loading.js":"121d","./reply.js":"aa4a"};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id="c653"},cec8:function(e,t,n){"use strict";var r=n("c42d"),a=n.n(r);a.a},d0120:function(e,t,n){"use strict";n.r(t);var r={navIndex:0},a={SET_NAV_INDEX:function(e,t){e.navIndex=t}},o={};t["default"]={namespaced:!0,state:r,mutations:a,actions:o}},d0c1:function(e,t,n){"use strict";n.r(t);n("d3b7"),n("96cf");var r=n("e1d2"),a={list:function(e){return r["a"].get("/category",e)}},o={categoryList:[]},i={SET_CATEGORY_LIST:function(e,t){e.categoryList=t}},c={list:function(e,t){var n,r,o;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.state,r=e.commit,!(n.categoryList&&n.categoryList.length>0)){i.next=3;break}return i.abrupt("return",n.categoryList);case 3:return i.next=5,regeneratorRuntime.awrap(a.list(t));case 5:return o=i.sent,r("SET_CATEGORY_LIST",o.data.data),i.abrupt("return",o);case 8:case"end":return i.stop()}}))}};t["default"]={namespaced:!0,state:o,actions:c,mutations:i}},e1d2:function(e,t,n){"use strict";n("99af"),n("4160"),n("c975"),n("a15b"),n("d3b7"),n("159b");var r=n("4328"),a=n.n(r),o=n("2b0e"),i=n("bc3a"),c=n.n(i),s={},u="http://api.boblog.com/v1";s.ajax=c.a.create({baseURL:u,timeout:3e4}),s.api=u,s.oauthUrl=u;var l=s,d=n("4360");l.ajax.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"},l.ajax.interceptors.request.use((function(e){var t=e.isLoading||void 0===e.isLoading;return t&&d["a"].dispatch("loading/openLoading"),e.headers.common.Authorization="Bearer ".concat(o["a"].ls.get("WATCH_CHECK_TOKEN")),e}),(function(e){return Promise.reject(e)})),l.ajax.interceptors.response.use((function(e){var t=e.headers["new-token"];return t&&o["a"].ls.set("WATCH_CHECK_TOKEN",t),f(),e}),(function(e){var t=e.response,n=[];t&&t.config&&t.config.extraErrors?n=t.config.extraErrors:t&t.config&&t.config.params&&t.config.params.extraErrors&&(n=t.config.params.extraErrors);var r=t?t.data:{},a=r.code;if(-1===n.indexOf(a))switch(a){case 401:o["a"].ls.set("WATCH_CHECK_TOKEN",null),window.location.href="".concat("http://api.boblog.com/v1","/wechat-server/code?target_url=").concat(encodeURIComponent(document.URL));break;case 404:console.log("查询信息不存在");break;case 413:console.log(t.data.message);break;case 418:console.log(t.data.message);break;case 422:t.data.errors?function(){var e=[];for(var n in t.data.errors)t.data.errors[n].forEach((function(t){e.push(t)}));var r=e.length>0?e.join(","):e;console.log(r)}():console.log(t.data.message);break;case 500:console.log(t.data.message||"服务器开了一会小差~","error");break;default:console.log(t.data.message)}return f(),Promise.reject(e)}));t["a"]={post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isLoading,r=void 0===n||n,o=t.extraErrors,i=void 0===o?[]:o;return l.ajax({method:"post",url:e,data:a.a.stringify(t),timeout:3e4,isLoading:r,extraErrors:i,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})},get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isLoading,r=void 0===n||n,o=t.extraErrors,i=void 0===o?[]:o;return l.ajax({method:"get",url:e,params:t,paramsSerializer:function(e){return a.a.stringify(e)},isLoading:r,extraErrors:i})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isLoading,r=void 0===n||n,a=t.extraErrors,o=void 0===a?[]:a;return l.ajax({method:"delete",url:e,params:t,isLoading:r,extraErrors:o})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isLoading,r=void 0===n||n,o=t.extraErrors,i=void 0===o?[]:o;return l.ajax({method:"put",url:e,data:a.a.stringify(t),isLoading:r,extraErrors:i,timeout:3e4,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}};function f(){setTimeout((function(){d["a"].dispatch("loading/closeLoading")}),100)}},e699:function(e,t,n){"use strict";n.r(t);n("d3b7"),n("96cf");var r=n("e1d2"),a={detail:function(e){var t=e.id;return delete e.id,r["a"].get("/chapter/section/"+t,e)}},o={section:null},i={SET_COLUMN_CHAPTER_SECTION:function(e,t){e.section=t}},c={detail:function(e,t){var n,r;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:return e.state,n=e.commit,o.next=3,regeneratorRuntime.awrap(a.detail(t));case 3:return r=o.sent,n("SET_COLUMN_CHAPTER_SECTION",r.data.data),o.abrupt("return",r);case 6:case"end":return o.stop()}}))}};t["default"]={namespaced:!0,state:o,mutations:i,actions:c}},f07f:function(e,t,n){"use strict";n.r(t);n("d3b7"),n("96cf");var r=n("e1d2"),a={list:function(e){return r["a"].get("/comment/target/list",e)},create:function(e){return r["a"].post("/comment",e)}},o={commentList:[],commentPage:null},i={SET_COMMENT_LIST:function(e,t){e.commentList=t},SET_COMMENT_PAGE:function(e,t){e.commentPage=t}},c={getCommentList:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return e.state,e.commit,r.next=3,regeneratorRuntime.awrap(a.list(t));case 3:return n=r.sent,r.abrupt("return",n);case 5:case"end":return r.stop()}}))},createComment:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return e.state,e.commit,r.next=3,regeneratorRuntime.awrap(a.create(t));case 3:return n=r.sent,r.abrupt("return",n);case 5:case"end":return r.stop()}}))}};t["default"]={namespaced:!0,state:o,actions:c,mutations:i}}}); \ No newline at end of file diff --git a/web/dist/static/js/app.3004e705.js b/web/dist/static/js/app.3004e705.js deleted file mode 100644 index 1963cf68..00000000 --- a/web/dist/static/js/app.3004e705.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var r,a,c=t[0],s=t[1],u=t[2],l=0,d=[];l0},loadingText:function(e){return e.loadingList.length>0?e.loadingList[0].text:null}},i={openLoading:function(e,t){e.commit("PUSH_LOADING",t)},closeLoading:function(e){e.commit("SHIFT_LOADING")}};t["default"]={namespaced:!0,state:r,mutations:a,getters:o,actions:i}},2454:function(e,t,n){"use strict";n.r(t);n("d3b7"),n("96cf");var r=n("e1d2"),a={list:function(e){var t=e.column_id;return delete e.column_id,r["a"].get("/column/chapter-list/"+t,e)},detail:function(e){var t=e.id;return delete e.id,r["a"].get("/column/chapter/"+t,e)}},o={},i={},c={list:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return e.state,e.commit,r.next=3,regeneratorRuntime.awrap(a.list(t));case 3:return n=r.sent,r.abrupt("return",n);case 5:case"end":return r.stop()}}))},detail:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return e.state,e.commit,r.next=3,regeneratorRuntime.awrap(a.detail(t));case 3:return n=r.sent,r.abrupt("return",n);case 5:case"end":return r.stop()}}))}};t["default"]={namespaced:!0,state:o,mutations:i,actions:c}},4360:function(e,t,n){"use strict";n("4160"),n("d3b7"),n("ac1f"),n("5319"),n("159b"),n("ddb0");var r=n("2b0e"),a=n("2f62");r["a"].use(a["a"]);var o=new a["a"].Store({mutations:{},actions:{}}),i=n("c653");function c(e){e.keys().forEach((function(t){o.registerModule(t.replace(/(^\.\/)|(\.js$)/g,""),e(t).default)}))}c(i),t["a"]=o},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("d3b7"),n("96cf");var r=n("aa30"),a=n("9259"),o=n("96c4"),i=n("8d8f"),c=n("64e9"),s=n("be95"),u=n("674c"),l=n("65eb"),d=n("e3f5"),f=n("5250"),m=n("beb5"),p=n("2b0e"),h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[e.isLoading?n("v-loading",{attrs:{text:e.loadingText}}):e._e(),n("v-headers"),n("router-view"),n("BackTop"),n("v-footer")],1)},g=[],v=(n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("2fa7")),b=n("2f62"),w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"loading-wrap"},[n("div",{staticClass:"loading-box"}),n("div",{staticClass:"loading-text"},[e._v(e._s(e.text))])])},y=[],L={props:["text"],data:function(){return{}},computed:{},mounted:function(){},methods:{}},x=L,O=(n("b3ea"),n("2877")),_=Object(O["a"])(x,w,y,!1,null,"2629b14a",null),E=_.exports,j=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("header",{staticClass:"header-wrap"},[r("section",{staticClass:"header-inner"},[r("div",{staticClass:"logo"},[r("div",{staticClass:"logo-box",on:{click:function(t){return e.toLink("/")}}},[r("img",{attrs:{src:n("9d64"),alt:"logo"}})])]),r("div",{staticClass:"nav"},[r("ul",{staticClass:"nav-box"},e._l(e.nav,(function(t,n){return r("li",{key:n,class:n===e.navIndex?"nav-item nav-item-active":"nav-item",on:{click:function(n){return e.toLink(t.router)}}},[e._v(" "+e._s(t.name)+" ")])})),0)]),r("div",{staticClass:"search"},[r("Input",{staticStyle:{width:"auto"},attrs:{size:"default",suffix:"ios-search",placeholder:"搜索文章.."},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1)])])},C=[];n("b0c0"),n("ac1f"),n("5319");function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t0)){i.next=3;break}return i.abrupt("return",n.advertiseList);case 3:return i.next=5,regeneratorRuntime.awrap(a.list(t));case 5:return o=i.sent,r("SET_ADVERTISE_LIST",o.data.data.data),i.abrupt("return",o);case 8:case"end":return i.stop()}}))}};t["default"]={namespaced:!0,state:o,actions:c,mutations:i}},c42d:function(e,t,n){},c653:function(e,t,n){var r={"./advertise.js":"ba6e","./articles.js":"5e84","./category.js":"d0c1","./chapter-section.js":"e699","./column-chapter.js":"2454","./column.js":"5a55","./comment.js":"f07f","./headers.js":"d0120","./loading.js":"121d","./reply.js":"aa4a"};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id="c653"},cec8:function(e,t,n){"use strict";var r=n("c42d"),a=n.n(r);a.a},d0120:function(e,t,n){"use strict";n.r(t);var r={navIndex:0},a={SET_NAV_INDEX:function(e,t){e.navIndex=t}},o={};t["default"]={namespaced:!0,state:r,mutations:a,actions:o}},d0c1:function(e,t,n){"use strict";n.r(t);n("d3b7"),n("96cf");var r=n("e1d2"),a={list:function(e){return r["a"].get("/category",e)}},o={categoryList:[]},i={SET_CATEGORY_LIST:function(e,t){e.categoryList=t}},c={list:function(e,t){var n,r,o;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.state,r=e.commit,!(n.categoryList&&n.categoryList.length>0)){i.next=3;break}return i.abrupt("return",n.categoryList);case 3:return i.next=5,regeneratorRuntime.awrap(a.list(t));case 5:return o=i.sent,r("SET_CATEGORY_LIST",o.data.data),i.abrupt("return",o);case 8:case"end":return i.stop()}}))}};t["default"]={namespaced:!0,state:o,actions:c,mutations:i}},e1d2:function(e,t,n){"use strict";n("99af"),n("4160"),n("c975"),n("a15b"),n("d3b7"),n("159b");var r=n("4328"),a=n.n(r),o=n("2b0e"),i=n("bc3a"),c=n.n(i),s={},u="http://api.boblog.com/v1";s.ajax=c.a.create({baseURL:u,timeout:3e4}),s.api=u,s.oauthUrl=u;var l=s,d=n("4360");l.ajax.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"},l.ajax.interceptors.request.use((function(e){var t=e.isLoading||void 0===e.isLoading;return t&&d["a"].dispatch("loading/openLoading"),e.headers.common.Authorization="Bearer ".concat(o["a"].ls.get("WATCH_CHECK_TOKEN")),e}),(function(e){return Promise.reject(e)})),l.ajax.interceptors.response.use((function(e){var t=e.headers["new-token"];return t&&o["a"].ls.set("WATCH_CHECK_TOKEN",t),f(),e}),(function(e){var t=e.response,n=[];t&&t.config&&t.config.extraErrors?n=t.config.extraErrors:t&t.config&&t.config.params&&t.config.params.extraErrors&&(n=t.config.params.extraErrors);var r=t?t.data:{},a=r.code;if(-1===n.indexOf(a))switch(a){case 401:o["a"].ls.set("WATCH_CHECK_TOKEN",null),window.location.href="".concat("http://api.boblog.com/v1","/wechat-server/code?target_url=").concat(encodeURIComponent(document.URL));break;case 404:console.log("查询信息不存在");break;case 413:console.log(t.data.message);break;case 418:console.log(t.data.message);break;case 422:t.data.errors?function(){var e=[];for(var n in t.data.errors)t.data.errors[n].forEach((function(t){e.push(t)}));var r=e.length>0?e.join(","):e;console.log(r)}():console.log(t.data.message);break;case 500:console.log(t.data.message||"服务器开了一会小差~","error");break;default:console.log(t.data.message)}return f(),Promise.reject(e)}));t["a"]={post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isLoading,r=void 0===n||n,o=t.extraErrors,i=void 0===o?[]:o;return l.ajax({method:"post",url:e,data:a.a.stringify(t),timeout:3e4,isLoading:r,extraErrors:i,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})},get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isLoading,r=void 0===n||n,o=t.extraErrors,i=void 0===o?[]:o;return l.ajax({method:"get",url:e,params:t,paramsSerializer:function(e){return a.a.stringify(e)},isLoading:r,extraErrors:i})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isLoading,r=void 0===n||n,a=t.extraErrors,o=void 0===a?[]:a;return l.ajax({method:"delete",url:e,params:t,isLoading:r,extraErrors:o})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isLoading,r=void 0===n||n,o=t.extraErrors,i=void 0===o?[]:o;return l.ajax({method:"put",url:e,data:a.a.stringify(t),isLoading:r,extraErrors:i,timeout:3e4,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}};function f(){setTimeout((function(){d["a"].dispatch("loading/closeLoading")}),100)}},e699:function(e,t,n){"use strict";n.r(t);n("d3b7"),n("96cf");var r=n("e1d2"),a={detail:function(e){var t=e.id;return delete e.id,r["a"].get("/chapter/section/"+t,e)}},o={section:null},i={SET_COLUMN_CHAPTER_SECTION:function(e,t){e.section=t}},c={detail:function(e,t){var n,r;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:return e.state,n=e.commit,o.next=3,regeneratorRuntime.awrap(a.detail(t));case 3:return r=o.sent,n("SET_COLUMN_CHAPTER_SECTION",r.data.data),o.abrupt("return",r);case 6:case"end":return o.stop()}}))}};t["default"]={namespaced:!0,state:o,mutations:i,actions:c}},f07f:function(e,t,n){"use strict";n.r(t);n("d3b7"),n("96cf");var r=n("e1d2"),a={list:function(e){return r["a"].get("/comment/target/list",e)},create:function(e){return r["a"].post("/comment",e)}},o={commentList:[],commentPage:null},i={SET_COMMENT_LIST:function(e,t){e.commentList=t},SET_COMMENT_PAGE:function(e,t){e.commentPage=t}},c={getCommentList:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return e.state,e.commit,r.next=3,regeneratorRuntime.awrap(a.list(t));case 3:return n=r.sent,r.abrupt("return",n);case 5:case"end":return r.stop()}}))},createComment:function(e,t){var n;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return e.state,e.commit,r.next=3,regeneratorRuntime.awrap(a.create(t));case 3:return n=r.sent,r.abrupt("return",n);case 5:case"end":return r.stop()}}))}};t["default"]={namespaced:!0,state:o,actions:c,mutations:i}}}); \ No newline at end of file diff --git a/web/dist/static/js/articleDetail.6fad9989.js b/web/dist/static/js/articleDetail.241c444e.js similarity index 100% rename from web/dist/static/js/articleDetail.6fad9989.js rename to web/dist/static/js/articleDetail.241c444e.js diff --git a/web/dist/static/js/articlesList.6e16bbcb.js b/web/dist/static/js/articlesList.ac64c9fc.js similarity index 100% rename from web/dist/static/js/articlesList.6e16bbcb.js rename to web/dist/static/js/articlesList.ac64c9fc.js diff --git a/web/dist/static/js/articlesList~columnList.5b55374d.js b/web/dist/static/js/articlesList~columnList.77c873db.js similarity index 100% rename from web/dist/static/js/articlesList~columnList.5b55374d.js rename to web/dist/static/js/articlesList~columnList.77c873db.js diff --git a/web/dist/static/js/chapterSection.ce1077f5.js b/web/dist/static/js/chapterSection.594f20ad.js similarity index 100% rename from web/dist/static/js/chapterSection.ce1077f5.js rename to web/dist/static/js/chapterSection.594f20ad.js diff --git a/web/dist/static/js/chunk-vendors.3688e634.js b/web/dist/static/js/chunk-vendors.1d53429a.js similarity index 100% rename from web/dist/static/js/chunk-vendors.3688e634.js rename to web/dist/static/js/chunk-vendors.1d53429a.js diff --git a/web/dist/static/js/columnChapter.15828f88.js b/web/dist/static/js/columnChapter.639bb5b6.js similarity index 100% rename from web/dist/static/js/columnChapter.15828f88.js rename to web/dist/static/js/columnChapter.639bb5b6.js diff --git a/web/dist/static/js/columnList.0ba2e8dc.js b/web/dist/static/js/columnList.e1345a1f.js similarity index 100% rename from web/dist/static/js/columnList.0ba2e8dc.js rename to web/dist/static/js/columnList.e1345a1f.js diff --git a/web/dist/static/js/home.4bbd7d14.js b/web/dist/static/js/home.cfc2c7dc.js similarity index 100% rename from web/dist/static/js/home.4bbd7d14.js rename to web/dist/static/js/home.cfc2c7dc.js diff --git a/web/package.json b/web/package.json index f505faf2..e943f54e 100644 --- a/web/package.json +++ b/web/package.json @@ -43,7 +43,6 @@ "style-resources-loader": "^1.2.1", "vue-cli-plugin-style-resources-loader": "^0.1.3", "vue-template-compiler": "^2.6.10", - "webpack-bundle-analyzer": "^3.6.0", "webpack-cli": "^3.3.10" } } diff --git a/web/vue.config.js b/web/vue.config.js index 3dcc87a7..77605d42 100644 --- a/web/vue.config.js +++ b/web/vue.config.js @@ -1,5 +1,4 @@ const path = require('path') -const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin const isProduction = process.env.NODE_ENV === 'production' function resolve(dir) { @@ -18,12 +17,7 @@ module.exports = { } }, configureWebpack: config => { - if (isProduction) { - // 打包后模块大小分析 - if (process.env.npm_config_report) { - config.plugins.push(new BundleAnalyzerPlugin()) - } - } + }, css: { // 是否使用css分离插件 ExtractTextPlugin