Commit 0b6001b1 by FE

build

parent 2816218e
......@@ -101,8 +101,8 @@
"python-class.css": "/mrstatic/css/python-class.13b5b2f3.chunk.css",
"python-class.js": "/mrstatic/js/python-class.14373300.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.14373300.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.5a81bd42.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.5a81bd42.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.a2e32468.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.a2e32468.js.map",
"search.css": "/mrstatic/css/search.efa1dd44.chunk.css",
"search.js": "/mrstatic/js/search.bbed24b1.chunk.js",
"search.js.map": "/mrstatic/js/search.bbed24b1.chunk.js.map",
......@@ -147,8 +147,8 @@
"mrstatic/js/50.81199908.chunk.js": "/mrstatic/js/50.81199908.chunk.js",
"mrstatic/js/50.81199908.chunk.js.map": "/mrstatic/js/50.81199908.chunk.js.map",
"mrstatic/css/51.262f17a1.chunk.css": "/mrstatic/css/51.262f17a1.chunk.css",
"mrstatic/js/51.eec1ec29.chunk.js": "/mrstatic/js/51.eec1ec29.chunk.js",
"mrstatic/js/51.eec1ec29.chunk.js.map": "/mrstatic/js/51.eec1ec29.chunk.js.map",
"mrstatic/js/51.dff3dcda.chunk.js": "/mrstatic/js/51.dff3dcda.chunk.js",
"mrstatic/js/51.dff3dcda.chunk.js.map": "/mrstatic/js/51.dff3dcda.chunk.js.map",
"index.html": "/index.html",
"mrstatic/css/1.4db54483.chunk.css.map": "/mrstatic/css/1.4db54483.chunk.css.map",
"mrstatic/css/2.1133c967.chunk.css.map": "/mrstatic/css/2.1133c967.chunk.css.map",
......@@ -200,6 +200,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.c07c5a3c8d84fbc782442e353b0d02fa.js": "/precache-manifest.c07c5a3c8d84fbc782442e353b0d02fa.js",
"precache-manifest.ff65c5f469ac2b7bb87dae378ae94ae9.js": "/precache-manifest.ff65c5f469ac2b7bb87dae378ae94ae9.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1250:function(e,t,a){},1286:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),o=a(5),s=a(7),i=a(6),r=a(8),l=a(9),d=a(0),u=a.n(d),m=a(16),h=a(722),p=a(1244),y=a.n(p),E=a(28),b=a(3),_=(a(1250),a(1251),a(1252),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(r.a)(t).call(this,e))).initCommand=function(){a.setState({command:"".concat(API.m,"/pythonShare?id=").concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&origin=python")})},a.initPageStatus=function(){"barcode"===Object(b.c)("origin")&&a.setState({entryMode:0}),"python"===Object(b.c)("origin")&&a.setState({entryMode:1}),"1"===Object(b.c)("type")&&a.setState({isShare:!0}),"2"===Object(b.c)("type")&&a.setState({isShare:!1}),a.setState({type:Object(b.c)("ques")||"1"})},a.handleFetchInfo=function(){var e=Object(b.c)("id")||10;b.d.get("".concat(API.home,"/m/it/share/show"),{params:{id:e}}).then(function(e){var t=e.data,n=t.code,c=t.data;200===n&&a.setState({data:c})})},a.handleToSend=function(e){var t=a.props.history,n=a.state,c=n.isShare,o=n.entryMode;if(b.b.isWeixin){t.push("/pythonShare?id=".concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&origin=python")),a.setState({isGuide:!0});var s="",i=a.formatTitle(e);0===o||c||(s="\u6211\u5728".concat(e.course_name,"\u7684").concat(i,"\u9047\u5230\u4e86\u56f0\u96be")),0!==o&&c&&(s="\u6211\u5df2\u5728\u3010".concat(e.course_name,"\u3011\u4e0a\u8fd0\u884c\u4e86\u884c\u4ee3\u7801\u4e86").concat(e.code_lines)),Object(b.i)({title:s,desc:i,link:encodeURI(location.href),imgUrl:e.course_img})}},a.formatTitle=function(e){var t=a.state.type;return"1"===t?"\u7ec3\u4e60-".concat(e.ques_name):"2"===t?"\u8bfe\u5802-".concat(e.video_name):void 0},a.copyToSuccess=function(){c.a.info("\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),a.setState({isCopy:!0})},a.handleToExecute=function(){a.setState({isExecute:!0})},a.handleToHide=function(){a.setState({isGuide:!1})},a.state={isWechat:b.b.isWeixin,isShare:!0,type:"1",entryMode:0,isGuide:!1,isExecute:!1,isCopy:!1,command:"",data:{}},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.handleFetchInfo(),this.initPageStatus(),this.initCommand()}},{key:"render",value:function(){var e=this,t=this.state,a=t.isWechat,n=t.isShare,c=t.isExecute,o=t.entryMode,s=t.command,i=t.isCopy,r=t.isGuide,l=t.data;return u.a.createElement(u.a.Fragment,null,u.a.createElement(E.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0,home:!0}),u.a.createElement(f,{isWechat:a,isShare:n,isExecute:c,entryMode:o,isGuide:r,isCopy:i,command:s,data:l,labelName:this.formatTitle(l),handleToExecute:this.handleToExecute,handleToSend:function(){return e.handleToSend(l)},copyToSuccess:this.copyToSuccess,handleToHide:this.handleToHide}))}}]),t}(d.Component));function S(e){return u.a.createElement(y.a,{mode:"python",theme:"dracula",readOnly:!0,showPrintMargin:!1,value:e.code,style:{width:"100%",height:"100%"}})}function f(e){var t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.entryMode,o=e.isCopy,s=e.command,i=e.labelName,r=e.isGuide,l=e.data,d=l.head_img,p=l.nickname,y=l.code_lines,E=l.code,b=l.result,_=l.course_name,f=l.course_id,N=e.handleToSend,v=e.copyToSuccess,T=e.handleToExecute,O=e.handleToHide;return u.a.createElement("div",{className:"python-container"},r&&u.a.createElement("div",{className:"python-popup",onClick:O},u.a.createElement("div",{className:"python-header"},u.a.createElement("p",{className:"python-wechat__title"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u5206\u4eab"),u.a.createElement("i",{className:"iconfont iconyindao"}))),u.a.createElement("div",{className:"python-content"},u.a.createElement("div",{className:"python-user"},u.a.createElement("i",{className:"python-user__portrait",style:{backgroundImage:"url(".concat(d,")")}}),u.a.createElement("h2",{className:"python-user__id"},p),0===c&&a&&u.a.createElement("p",{className:"python-user__desc"},"\u5b8c\u6210\u4e86",u.a.createElement("span",null,"\u3010",i,"\u3011")),1===c&&a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",_,"\u3011"),"\u5b8c\u6210\u4e86",u.a.createElement("br",null),i),0===c&&!a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",i,"\u3011"),"\u9047\u5230\u4e86\u56f0\u96be"),1===c&&!a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",_,"\u3011"),"\u7684",u.a.createElement("br",null),u.a.createElement("span",null,i),"\u9047\u5230\u4e86\u56f0\u96be")),u.a.createElement("h4",{className:"python-code__title"},1===c&&a?"\u8fd9\u662fTa\u7684\u7b2c".concat(y,"\u884c\u4ee3\u7801"):"\u8fd0\u884c\u7ed3\u679c"),u.a.createElement("div",{className:"python-code__content"},u.a.createElement(S,{code:1===c&&a?E:b})),u.a.createElement("h4",{className:"python-code__title"},1===c&&a?"\u8fd0\u884c\u7ed3\u679c":"\u4ee3\u7801"),u.a.createElement("div",{className:"python-code__content"},1===c&&a?u.a.createElement(S,{code:n?b:""}):u.a.createElement(S,{code:E}),1===c&&a&&!n&&u.a.createElement("button",{className:"python-button python-button__execute",onClick:T},"\u8fd0\u884c\u770b\u770b"))),0===c&&t&&u.a.createElement("button",{className:"python-button python-button__study",onClick:N},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9"),0===c&&!t&&!o&&u.a.createElement(h.CopyToClipboard,{text:s,onCopy:v},u.a.createElement("button",{className:"python-button python-button__study"},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9")),0===c&&!t&&o&&u.a.createElement("p",{className:"python-button__tip"},"\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),1===c&&u.a.createElement(m.b,{className:"python-button python-button__study",to:"/python?id=".concat(f)},"\u6211\u4e5f\u8981\u5b66Python"))}t.default=_}}]);
//# sourceMappingURL=51.dff3dcda.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1250:function(e,t,a){},1286:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),o=a(5),s=a(7),i=a(6),l=a(8),r=a(9),d=a(0),u=a.n(d),m=a(16),h=a(722),p=a(1244),y=a.n(p),E=a(28),b=a(3),_=(a(1250),a(1251),a(1252),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).initCommand=function(){a.setState({command:"".concat(API.m,"/pythonShare?id=").concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&origin=python")})},a.initPageStatus=function(){"barcode"===Object(b.c)("origin")&&a.setState({entryMode:0}),"python"===Object(b.c)("origin")&&a.setState({entryMode:1}),"1"===Object(b.c)("type")&&a.setState({isShare:!0}),"2"===Object(b.c)("type")&&a.setState({isShare:!1}),a.setState({type:Object(b.c)("ques")||"1"})},a.handleFetchInfo=function(){var e=Object(b.c)("id")||10;b.d.get("".concat(API.home,"/m/it/share/show"),{params:{id:e}}).then(function(e){var t=e.data,n=t.code,c=t.data;200===n&&a.setState({data:c})})},a.handleToSend=function(e){var t=a.props.history,n=a.state,c=n.isShare,o=n.entryMode;if(b.b.isWeixin){t.push("/pythonShare?id=".concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&origin=python")),a.setState({isGuide:!0});var s="",i=a.formatTitle(e);0===o||c||(s="\u6211\u5728".concat(e.course_name,"\u7684").concat(i,"\u9047\u5230\u4e86\u56f0\u96be")),0!==o&&c&&(s="\u6211\u5df2\u5728\u3010".concat(e.course_name,"\u3011\u4e0a\u8fd0\u884c\u4e86\u884c\u4ee3\u7801\u4e86").concat(e.code_lines)),Object(b.i)({title:s,desc:i,link:encodeURI(location.href),imgUrl:e.course_img})}},a.formatTitle=function(e){var t=a.state.type;return"1"===t?"\u7ec3\u4e60-".concat(e.ques_name):"2"===t?"\u8bfe\u5802-".concat(e.video_name):void 0},a.copyToSuccess=function(){c.a.info("\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),a.setState({isCopy:!0})},a.handleToExecute=function(){a.setState({isExecute:!0})},a.handleToHide=function(){a.setState({isGuide:!1})},a.state={isWechat:b.b.isWeixin,isShare:!0,type:"1",entryMode:0,isGuide:!1,isExecute:!1,isCopy:!1,command:"",data:{}},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.handleFetchInfo(),this.initPageStatus(),this.initCommand()}},{key:"render",value:function(){var e=this.state,t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.entryMode,o=e.command,s=e.isCopy,i=e.isGuide,l=e.data;return u.a.createElement(u.a.Fragment,null,u.a.createElement(E.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0,home:!0}),u.a.createElement(f,{isWechat:t,isShare:a,isExecute:n,entryMode:c,isGuide:i,isCopy:s,command:o,data:l,labelName:this.formatTitle(l),handleToExecute:this.handleToExecute,handleToSend:this.handleToSend,copyToSuccess:this.copyToSuccess,handleToHide:this.handleToHide}))}}]),t}(d.Component));function S(e){return u.a.createElement(y.a,{mode:"python",theme:"dracula",readOnly:!0,showPrintMargin:!1,value:e.code,style:{width:"100%",height:"100%"}})}function f(e){var t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.entryMode,o=e.isCopy,s=e.command,i=e.labelName,l=e.isGuide,r=e.data,d=r.head_img,p=r.nickname,y=r.code_lines,E=r.code,b=r.result,_=r.course_name,f=r.course_id,N=e.handleToSend,v=e.copyToSuccess,T=e.handleToExecute,O=e.handleToHide;return u.a.createElement("div",{className:"python-container"},l&&u.a.createElement("div",{className:"python-popup",onClick:O},u.a.createElement("div",{className:"python-header"},u.a.createElement("p",{className:"python-wechat__title"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u5206\u4eab"),u.a.createElement("i",{className:"iconfont iconyindao"}))),u.a.createElement("div",{className:"python-content"},u.a.createElement("div",{className:"python-user"},u.a.createElement("i",{className:"python-user__portrait",style:{backgroundImage:"url(".concat(d,")")}}),u.a.createElement("h2",{className:"python-user__id"},p),0===c&&a&&u.a.createElement("p",{className:"python-user__desc"},"\u5b8c\u6210\u4e86",u.a.createElement("span",null,"\u3010",i,"\u3011")),1===c&&a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",_,"\u3011"),"\u5b8c\u6210\u4e86",u.a.createElement("br",null),i),0===c&&!a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",i,"\u3011"),"\u9047\u5230\u4e86\u56f0\u96be"),1===c&&!a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",_,"\u3011"),"\u7684",u.a.createElement("br",null),u.a.createElement("span",null,i),"\u9047\u5230\u4e86\u56f0\u96be")),u.a.createElement("h4",{className:"python-code__title"},1===c&&a?"\u8fd9\u662fTa\u7684\u7b2c".concat(y,"\u884c\u4ee3\u7801"):"\u8fd0\u884c\u7ed3\u679c"),u.a.createElement("div",{className:"python-code__content"},u.a.createElement(S,{code:1===c&&a?E:b})),u.a.createElement("h4",{className:"python-code__title"},1===c&&a?"\u8fd0\u884c\u7ed3\u679c":"\u4ee3\u7801"),u.a.createElement("div",{className:"python-code__content"},1===c&&a?u.a.createElement(S,{code:n?b:""}):u.a.createElement(S,{code:E}),1===c&&a&&!n&&u.a.createElement("button",{className:"python-button python-button__execute",onClick:T},"\u8fd0\u884c\u770b\u770b"))),0===c&&t&&u.a.createElement("button",{className:"python-button python-button__study",onClick:N},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9"),0===c&&!t&&!o&&u.a.createElement(h.CopyToClipboard,{text:s,onCopy:v},u.a.createElement("button",{className:"python-button python-button__study"},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9")),0===c&&!t&&o&&u.a.createElement("p",{className:"python-button__tip"},"\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),1===c&&u.a.createElement(m.b,{className:"python-button python-button__study",to:"/python?id=".concat(f)},"\u6211\u4e5f\u8981\u5b66Python"))}t.default=_}}]);
//# sourceMappingURL=51.eec1ec29.chunk.js.map
\ No newline at end of file
......@@ -268,8 +268,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/python-class.14373300.chunk.js"
},
{
"revision": "823ee4302132615f3cb3",
"url": "/mrstatic/js/runtime~main.5a81bd42.js"
"revision": "61b9382042d0afe12640",
"url": "/mrstatic/js/runtime~main.a2e32468.js"
},
{
"revision": "dc607b2ee118c7ff1ac5",
......@@ -384,22 +384,22 @@ self.__precacheManifest = [
"url": "/mrstatic/js/50.81199908.chunk.js"
},
{
"revision": "b8a3e8cf7eda6d507920",
"revision": "06c646cd862b30fe9e38",
"url": "/mrstatic/css/51.262f17a1.chunk.css"
},
{
"revision": "b8a3e8cf7eda6d507920",
"url": "/mrstatic/js/51.eec1ec29.chunk.js"
},
{
"revision": "e0655d4da66dce391e6b5227b400e037",
"url": "/mrstatic/media/iconfont.e0655d4d.woff"
"revision": "06c646cd862b30fe9e38",
"url": "/mrstatic/js/51.dff3dcda.chunk.js"
},
{
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
},
{
"revision": "e0655d4da66dce391e6b5227b400e037",
"url": "/mrstatic/media/iconfont.e0655d4d.woff"
},
{
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
},
......@@ -412,14 +412,14 @@ self.__precacheManifest = [
"url": "/mrstatic/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision": "d76ebce726bdf3459fa14e96d84c5b9a",
"url": "/mrstatic/media/formal-banner.d76ebce7.png"
},
{
"revision": "9ab091267ae7c83bd30d0f5ad018a8c9",
"url": "/mrstatic/media/dalibao_bj.9ab09126.png"
},
{
"revision": "d76ebce726bdf3459fa14e96d84c5b9a",
"url": "/mrstatic/media/formal-banner.d76ebce7.png"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/mrstatic/media/progress-share-bg.80011994.png"
},
......@@ -440,7 +440,7 @@ self.__precacheManifest = [
"url": "/mrstatic/media/hb_bj.79139f6a.png"
},
{
"revision": "df001c9ebc7ea5a2c5a5874d14ff335b",
"revision": "99b89627791fd7b118c4feae43ce896d",
"url": "/index.html"
}
];
\ No newline at end of file
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"/precache-manifest.c07c5a3c8d84fbc782442e353b0d02fa.js"
"/precache-manifest.ff65c5f469ac2b7bb87dae378ae94ae9.js"
);
workbox.clientsClaim();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment