Commit 4cacd604 by FE

python share

parent 86bad3e0
......@@ -94,8 +94,8 @@
"python-class.css": "/mrstatic/css/python-class.11408886.chunk.css",
"python-class.js": "/mrstatic/js/python-class.b6afbbaa.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.b6afbbaa.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.5e6d87d8.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.5e6d87d8.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.d804233f.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.d804233f.js.map",
"search.css": "/mrstatic/css/search.efa1dd44.chunk.css",
"search.js": "/mrstatic/js/search.0e502e29.chunk.js",
"search.js.map": "/mrstatic/js/search.0e502e29.chunk.js.map",
......@@ -135,8 +135,8 @@
"mrstatic/js/46.cec05770.chunk.js": "/mrstatic/js/46.cec05770.chunk.js",
"mrstatic/js/46.cec05770.chunk.js.map": "/mrstatic/js/46.cec05770.chunk.js.map",
"mrstatic/css/47.bacf914e.chunk.css": "/mrstatic/css/47.bacf914e.chunk.css",
"mrstatic/js/47.554a5877.chunk.js": "/mrstatic/js/47.554a5877.chunk.js",
"mrstatic/js/47.554a5877.chunk.js.map": "/mrstatic/js/47.554a5877.chunk.js.map",
"mrstatic/js/47.8695575c.chunk.js": "/mrstatic/js/47.8695575c.chunk.js",
"mrstatic/js/47.8695575c.chunk.js.map": "/mrstatic/js/47.8695575c.chunk.js.map",
"index.html": "/index.html",
"mrstatic/css/2.1133c967.chunk.css.map": "/mrstatic/css/2.1133c967.chunk.css.map",
"mrstatic/css/3.ac8fad1f.chunk.css.map": "/mrstatic/css/3.ac8fad1f.chunk.css.map",
......@@ -184,6 +184,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.ad59ae7701d9aa4a6737cb807a711e22.js": "/precache-manifest.ad59ae7701d9aa4a6737cb807a711e22.js",
"precache-manifest.ec56826504d694d840afa29f91909d75.js": "/precache-manifest.ec56826504d694d840afa29f91909d75.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{1220:function(e,t,a){},1253: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),r=a(6),l=a(8),i=a(9),m=a(0),h=a.n(m),d=a(15),u=a(720),p=a(1214),y=a.n(p),E=a(28),b=a(3),_=(a(1220),a(1221),a(1222),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(r.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"),"&from=python")})},a.initPageStatus=function(){"barcode"===Object(b.c)("from")&&a.setState({entryMode:0}),"python"===Object(b.c)("from")&&a.setState({entryMode:2}),"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,"/web/python/share/help/").concat(e)).then(function(e){var t=e.data,n=t.code,c=t.data;200===n&&a.setState({data:c})})},a.handleToSend=function(){var e=a.props.history;b.b.isWeixin&&(a.setState({entryMode:1}),e.push("/pythonShare?id=".concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&from=python")))},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.state={isWechat:b.b.isWeixin,isShare:!0,type:"1",entryMode:1,isExecute:!1,isCopy:!1,command:"",data:{}},a}return Object(i.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.type,o=e.entryMode,s=e.command,r=e.isCopy,l=e.data;return h.a.createElement(h.a.Fragment,null,h.a.createElement(E.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0,home:!0}),h.a.createElement(f,{isWechat:t,isShare:a,type:c,isExecute:n,entryMode:o,isCopy:r,command:s,data:l,handleToExecute:this.handleToExecute,handleToSend:this.handleToSend,copyToSuccess:this.copyToSuccess}))}}]),t}(m.Component));function S(e){return h.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.type,o=e.entryMode,s=e.isCopy,r=e.command,l=e.data,i=l.head_img,m=l.nickname,p=l.code_lines,y=l.code,E=l.result,b=l.ques_name,_=l.course_name,f=l.course_id,N=l.video_name,v=e.handleToSend,O=e.copyToSuccess,j=e.handleToExecute,T="";return"1"===c&&(T="\u7ec3\u4e60-".concat(b)),"2"===c&&(T="\u8bfe\u5802-".concat(N)),h.a.createElement("div",{className:"python-container"},1===o&&t&&h.a.createElement("div",{className:"python-popup"},h.a.createElement("div",{className:"python-header"},h.a.createElement("p",{className:"python-wechat__title"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u5206\u4eab"),h.a.createElement("i",{className:"iconfont iconyindao"}))),h.a.createElement("div",{className:"python-content"},h.a.createElement("div",{className:"python-user"},h.a.createElement("div",{className:"python-user__portrait"},h.a.createElement("img",{src:i,alt:""})),h.a.createElement("h2",{className:"python-user__id"},m),0===o&&a&&h.a.createElement("p",{className:"python-user__desc"},"\u5b8c\u6210\u4e86",h.a.createElement("span",null,"\u3010",T,"\u3011")),0!==o&&a&&h.a.createElement("p",{className:"python-user__desc"},"\u5728",h.a.createElement("span",null,"\u3010",_,"\u3011"),"\u5b8c\u6210\u4e86",h.a.createElement("br",null),T),0===o&&!a&&h.a.createElement("p",{className:"python-user__desc"},"\u5728",h.a.createElement("span",null,"\u3010",T,"\u3011"),"\u9047\u5230\u4e86\u56f0\u96be"),0!==o&&!a&&h.a.createElement("p",{className:"python-user__desc"},"\u5728",h.a.createElement("span",null,"\u3010",_,"\u3011"),"\u7684",h.a.createElement("br",null),h.a.createElement("span",null,T),"\u9047\u5230\u4e86\u56f0\u96be")),h.a.createElement("h4",{className:"python-code__title"},0!==o&&a&&!t?"\u8fd9\u662fTa\u7684\u7b2c".concat(p,"\u884c\u4ee3\u7801"):"\u8fd0\u884c\u7ed3\u679c"),h.a.createElement("div",{className:"python-code__content"},h.a.createElement(S,{code:0!==o&&a&&!t?y:E})),h.a.createElement("h4",{className:"python-code__title"},0!==o&&a&&!t?"\u8fd0\u884c\u7ed3\u679c":"\u4ee3\u7801"),h.a.createElement("div",{className:"python-code__content"},0!==o&&a&&!t?h.a.createElement(S,{code:n?E:""}):h.a.createElement(S,{code:y}),0!==o&&a&&!t&&!n&&h.a.createElement("button",{className:"python-button python-button__execute",onClick:j},"\u8fd0\u884c\u770b\u770b"))),0===o&&t&&h.a.createElement("button",{className:"python-button python-button__study",onClick:v},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9"),0===o&&!t&&!s&&h.a.createElement(u.CopyToClipboard,{text:r,onCopy:O},h.a.createElement("button",{className:"python-button python-button__study"},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9")),0===o&&!t&&s&&h.a.createElement("p",{className:"python-button__tip"},"\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),0!==o&&h.a.createElement(d.b,{className:"python-button python-button__study",to:"/python?id=".concat(f)},"\u6211\u4e5f\u8981\u5b66Python"))}t.default=_}}]);
//# sourceMappingURL=47.554a5877.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{1220:function(e,t,a){},1253: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),r=a(6),i=a(8),l=a(9),m=a(0),h=a.n(m),d=a(15),u=a(720),p=a(1214),y=a.n(p),E=a(28),b=a(3),_=(a(1220),a(1221),a(1222),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(r.a)(this,Object(i.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"),"&from=python")})},a.initPageStatus=function(){"barcode"===Object(b.c)("from")&&a.setState({entryMode:0}),"python"===Object(b.c)("from")&&a.setState({entryMode:2}),"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(){var e=a.props.history;b.b.isWeixin&&(a.setState({entryMode:1}),e.push("/pythonShare?id=".concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&from=python")))},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.state={isWechat:b.b.isWeixin,isShare:!0,type:"1",entryMode: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.state,t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.type,o=e.entryMode,s=e.command,r=e.isCopy,i=e.data;return h.a.createElement(h.a.Fragment,null,h.a.createElement(E.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0,home:!0}),h.a.createElement(f,{isWechat:t,isShare:a,type:c,isExecute:n,entryMode:o,isCopy:r,command:s,data:i,handleToExecute:this.handleToExecute,handleToSend:this.handleToSend,copyToSuccess:this.copyToSuccess}))}}]),t}(m.Component));function S(e){return h.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.type,o=e.entryMode,s=e.isCopy,r=e.command,i=e.data,l=i.head_img,m=i.nickname,p=i.code_lines,y=i.code,E=i.result,b=i.ques_name,_=i.course_name,f=i.course_id,N=i.video_name,v=e.handleToSend,O=e.copyToSuccess,j=e.handleToExecute,T="";return"1"===c&&(T="\u7ec3\u4e60-".concat(b)),"2"===c&&(T="\u8bfe\u5802-".concat(N)),h.a.createElement("div",{className:"python-container"},1===o&&t&&h.a.createElement("div",{className:"python-popup"},h.a.createElement("div",{className:"python-header"},h.a.createElement("p",{className:"python-wechat__title"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u5206\u4eab"),h.a.createElement("i",{className:"iconfont iconyindao"}))),h.a.createElement("div",{className:"python-content"},h.a.createElement("div",{className:"python-user"},h.a.createElement("div",{className:"python-user__portrait"},h.a.createElement("img",{src:l,alt:""})),h.a.createElement("h2",{className:"python-user__id"},m),0===o&&a&&h.a.createElement("p",{className:"python-user__desc"},"\u5b8c\u6210\u4e86",h.a.createElement("span",null,"\u3010",T,"\u3011")),0!==o&&a&&h.a.createElement("p",{className:"python-user__desc"},"\u5728",h.a.createElement("span",null,"\u3010",_,"\u3011"),"\u5b8c\u6210\u4e86",h.a.createElement("br",null),T),0===o&&!a&&h.a.createElement("p",{className:"python-user__desc"},"\u5728",h.a.createElement("span",null,"\u3010",T,"\u3011"),"\u9047\u5230\u4e86\u56f0\u96be"),0!==o&&!a&&h.a.createElement("p",{className:"python-user__desc"},"\u5728",h.a.createElement("span",null,"\u3010",_,"\u3011"),"\u7684",h.a.createElement("br",null),h.a.createElement("span",null,T),"\u9047\u5230\u4e86\u56f0\u96be")),h.a.createElement("h4",{className:"python-code__title"},0!==o&&a&&!t?"\u8fd9\u662fTa\u7684\u7b2c".concat(p,"\u884c\u4ee3\u7801"):"\u8fd0\u884c\u7ed3\u679c"),h.a.createElement("div",{className:"python-code__content"},h.a.createElement(S,{code:0!==o&&a&&!t?y:E})),h.a.createElement("h4",{className:"python-code__title"},0!==o&&a&&!t?"\u8fd0\u884c\u7ed3\u679c":"\u4ee3\u7801"),h.a.createElement("div",{className:"python-code__content"},0!==o&&a&&!t?h.a.createElement(S,{code:n?E:""}):h.a.createElement(S,{code:y}),0!==o&&a&&!t&&!n&&h.a.createElement("button",{className:"python-button python-button__execute",onClick:j},"\u8fd0\u884c\u770b\u770b"))),0===o&&t&&h.a.createElement("button",{className:"python-button python-button__study",onClick:v},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9"),0===o&&!t&&!s&&h.a.createElement(u.CopyToClipboard,{text:r,onCopy:O},h.a.createElement("button",{className:"python-button python-button__study"},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9")),0===o&&!t&&s&&h.a.createElement("p",{className:"python-button__tip"},"\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),0!==o&&h.a.createElement(d.b,{className:"python-button python-button__study",to:"/python?id=".concat(f)},"\u6211\u4e5f\u8981\u5b66Python"))}t.default=_}}]);
//# sourceMappingURL=47.8695575c.chunk.js.map
\ No newline at end of file
......@@ -248,8 +248,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/python-class.b6afbbaa.chunk.js"
},
{
"revision": "1ab8412835a4df5af869",
"url": "/mrstatic/js/runtime~main.5e6d87d8.js"
"revision": "f84a2db204e0573ee157",
"url": "/mrstatic/js/runtime~main.d804233f.js"
},
{
"revision": "39b606ec549cfee8a0d2",
......@@ -352,18 +352,22 @@ self.__precacheManifest = [
"url": "/mrstatic/js/46.cec05770.chunk.js"
},
{
"revision": "28ab005c52cbe241bb63",
"revision": "54fd77af7968e6dfe232",
"url": "/mrstatic/css/47.bacf914e.chunk.css"
},
{
"revision": "28ab005c52cbe241bb63",
"url": "/mrstatic/js/47.554a5877.chunk.js"
"revision": "54fd77af7968e6dfe232",
"url": "/mrstatic/js/47.8695575c.chunk.js"
},
{
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
},
{
"revision": "b9b072e1116fd1830cc8f425dc163a6b",
"url": "/mrstatic/media/iconfont.b9b072e1.svg"
},
{
"revision": "e0655d4da66dce391e6b5227b400e037",
"url": "/mrstatic/media/iconfont.e0655d4d.woff"
},
......@@ -372,43 +376,39 @@ self.__precacheManifest = [
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
},
{
"revision": "b9b072e1116fd1830cc8f425dc163a6b",
"url": "/mrstatic/media/iconfont.b9b072e1.svg"
},
{
"revision": "81a489ac63f2f2df5ab412e0782bd54c",
"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": "80011994e30adf599e5f47fcc81bc06d",
"url": "/mrstatic/media/progress-share-bg.80011994.png"
},
{
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
"revision": "d76ebce726bdf3459fa14e96d84c5b9a",
"url": "/mrstatic/media/formal-banner.d76ebce7.png"
},
{
"revision": "79139f6aad350256e151f9f73c226348",
"url": "/mrstatic/media/hb_bj.79139f6a.png"
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/mrstatic/media/progress-share-bg.80011994.png"
},
{
"revision": "8edaf2ff2566ed17e2dd22cf4f8ad7ae",
"url": "/mrstatic/media/redb_chai_bj@2x.8edaf2ff.png"
},
{
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "a4bb29b452f4d88d0e25a76455eb4e70",
"revision": "79139f6aad350256e151f9f73c226348",
"url": "/mrstatic/media/hb_bj.79139f6a.png"
},
{
"revision": "dc426c7d69ccf8b86f25b1cffff02dd5",
"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.ad59ae7701d9aa4a6737cb807a711e22.js"
"/precache-manifest.ec56826504d694d840afa29f91909d75.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