5 lines
14 KiB
JavaScript
5 lines
14 KiB
JavaScript
(self.webpackChunk=self.webpackChunk||[]).push([[806],{89299:function(C,u,n){"use strict";n.d(u,{Z:function(){return ne}});var p=n(62435),P=n(81897),J=n(5574),U=n.n(J),R=n(47084),j=n.n(R),_=n(90621);function F(t,e){var i=t.match(/^(\s+)(?:```)/);if(i===null)return e;var o=i[1];return e.split(`
|
|
`).map(function(a){var m=a.match(/^\s+/);if(m===null)return a;var l=U()(m,1),v=l[0];return v.length>=o.length?a.slice(o.length):a}).join(`
|
|
`)}var I=[],f=["<ul>"],d=new(j()).Renderer,S=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function r(){I=[],f=["<ul>"]}function M(t,e,i,o){if(e>=t.length||t[e].level<=i)return e;var a=t[e];o.push("<li><a href='#"+a.anchor+"'>"+a.text+"</a>"),e++;var m=[];return e=M(t,e,a.level,m),m.length>0&&(o.push("<ul>"),m.forEach(function(l){o.push(l)}),o.push("</ul>")),o.push("</li>"),e=M(t,e,i,o),e}function g(){return M(I,0,0,f),f.push("</ul>"),f.join("")}var W={heading:function(e){var i=S.exec(e);if(i)return{type:"heading",raw:i[0],depth:i[1].length,text:i[2]}},fences:function(e){var i=this.rules.block.fences.exec(e);if(i){var o=i[0],a=F(o,i[3]||""),m=i[2]?i[2].trim():i[2];if(["latex","katex","math"].indexOf(m)>=0){var l=O(),v=a;a=l,h[l]={type:"block",expression:v}}return{type:"code",raw:o,lang:m,text:a}}}},T=/(?:\${2})([^\n`]+?)(?:\${2})/gi,B=0,O=function(){return"__special_katext_id_".concat(B++,"__")},h={};function L(){return h}function k(){B=0,h={}}function x(t){var e=t.replace(T,function(i,o){var a=O();return h[a]={type:"inline",expression:o},a});return e}var A=d.listitem;d.listitem=function(t,e,i){return A(x(t),e,i)};var K=d.paragraph;d.paragraph=function(t){return K(x(t))};var H=d.tablecell;d.tablecell=function(t,e){return H(x(t),e)},d.code=function(t,e,i){var o=(e||"").match(/\S*/)[0];return o?["latex","katex","math"].indexOf(o)>=0?"<p class='editormd-tex'>".concat(t,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(e,'">').concat(i?t:(0,_.escape)(t,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(i?t:(0,_.escape)(t,!0))+"</code></pre>"},d.heading=function(t,e,i){var o=this.options.headerPrefix+i.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");I.push({anchor:o,level:e,text:t});var a=o.replace(/[.,/#!$%^&*;:{}=\-_`~():,。¥;「」|?》《~·【】‘、!]/g,"");return"<h"+e+' id="'+a+'" class="markdown_anchors"><a name="#'+a+'" class="anchors"><i class="iconfont icon-lianjieicon font-14"></i></a>'+t+"</h"+e+">"},j().setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),j().use({tokenizer:W,renderer:d});var N=j(),Z=n(11771),z=n(27856),V=n.n(z),$=[{emoji:"\u{1F3A8}",entity:"🎨",code:":art:",description:"Improve structure / format of the code.",name:"art"},{emoji:"\u26A1\uFE0F",entity:"⚡",code:":zap:",description:"Improve performance.",name:"zap"},{emoji:"\u{1F525}",entity:"🔥",code:":fire:",description:"Remove code or files.",name:"fire"},{emoji:"\u{1F41B}",entity:"🐛",code:":bug:",description:"Fix a bug.",name:"bug"},{emoji:"\u{1F691}",entity:"🚑",code:":ambulance:",description:"Critical hotfix.",name:"ambulance"},{emoji:"\u2728",entity:"✨",code:":sparkles:",description:"Introduce new features.",name:"sparkles"},{emoji:"\u{1F4DD}",entity:"📝",code:":memo:",description:"Add or update documentation.",name:"memo"},{emoji:"\u{1F680}",entity:"🚀",code:":rocket:",description:"Deploy stuff.",name:"rocket"},{emoji:"\u{1F484}",entity:"&#ff99cc;",code:":lipstick:",description:"Add or update the UI and style files.",name:"lipstick"},{emoji:"\u{1F389}",entity:"🎉",code:":tada:",description:"Begin a project.",name:"tada"},{emoji:"\u2705",entity:"✅",code:":white_check_mark:",description:"Add or update tests.",name:"white-check-mark"},{emoji:"\u{1F34E}",entity:"",code:":apple:",description:"apple",name:"apple"},{emoji:"\u{1F433}",entity:"",code:":whale:",description:"whale",name:"whale"},{emoji:"\u{1F512}",entity:"🔒",code:":lock:",description:"Fix security issues.",name:"lock"},{emoji:"\u{1F516}",entity:"🔖",code:":bookmark:",description:"Release / Version tags.",name:"bookmark"},{emoji:"\u{1F6A8}",entity:"🚨",code:":rotating_light:",description:"Fix compiler / linter warnings.",name:"rotating-light"},{emoji:"\u{1F6A7}",entity:"🚧",code:":construction:",description:"Work in progress.",name:"construction"},{emoji:"\u{1F49A}",entity:"💚",code:":green_heart:",description:"Fix CI Build.",name:"green-heart"},{emoji:"\u2B07\uFE0F",entity:"\u2B07\uFE0F",code:":arrow_down:",description:"Downgrade dependencies.",name:"arrow-down"},{emoji:"\u2B06\uFE0F",entity:"\u2B06\uFE0F",code:":arrow_up:",description:"Upgrade dependencies.",name:"arrow-up"},{emoji:"\u{1F4CC}",entity:"📌",code:":pushpin:",description:"Pin dependencies to specific versions.",name:"pushpin"},{emoji:"\u{1F477}",entity:"👷",code:":construction_worker:",description:"Add or update CI build system.",name:"construction-worker"},{emoji:"\u{1F4C8}",entity:"📈",code:":chart_with_upwards_trend:",description:"Add or update analytics or track code.",name:"chart-with-upwards-trend"},{emoji:"\u267B\uFE0F",entity:"♲",code:":recycle:",description:"Refactor code.",name:"recycle"},{emoji:"\u2795",entity:"➕",code:":heavy_plus_sign:",description:"Add a dependency.",name:"heavy-plus-sign"},{emoji:"\u2796",entity:"➖",code:":heavy_minus_sign:",description:"Remove a dependency.",name:"heavy-minus-sign"},{emoji:"\u{1F527}",entity:"🔧",code:":wrench:",description:"Add or update configuration files.",name:"wrench"},{emoji:"\u{1F528}",entity:"🔨",code:":hammer:",description:"Add or update development scripts.",name:"hammer"},{emoji:"\u{1F310}",entity:"🌐",code:":globe_with_meridians:",description:"Internationalization and localization.",name:"globe-with-meridians"},{emoji:"\u270F\uFE0F",entity:"",code:":pencil2:",description:"Fix typos.",name:"pencil2"},{emoji:"\u{1F4DD}",entity:"📝",code:":pencil:",description:"Add or update documentation.",name:"pencil"},{emoji:"\u{1F4A9}",entity:"",code:":poop:",description:"Write bad code that needs to be improved.",name:"poop"},{emoji:"\u23EA",entity:"⏪",code:":rewind:",description:"Revert changes.",name:"rewind"},{emoji:"\u{1F500}",entity:"🔀",code:":twisted_rightwards_arrows:",description:"Merge branches.",name:"twisted-rightwards-arrows"},{emoji:"\u{1F4E6}",entity:"F4E6;",code:":package:",description:"Add or update compiled files or packages.",name:"package"},{emoji:"\u{1F47D}",entity:"F47D;",code:":alien:",description:"Update code due to external API changes.",name:"alien"},{emoji:"\u{1F69A}",entity:"F69A;",code:":truck:",description:"Move or rename resources (e.g.: files, paths, routes).",name:"truck"},{emoji:"\u{1F4C4}",entity:"F4C4;",code:":page_facing_up:",description:"Add or update license.",name:"page-facing-up"},{emoji:"\u{1F4A5}",entity:"💥",code:":boom:",description:"Introduce breaking changes.",name:"boom"},{emoji:"\u{1F371}",entity:"F371",code:":bento:",description:"Add or update assets.",name:"bento"},{emoji:"\u267F\uFE0F",entity:"♿",code:":wheelchair:",description:"Improve accessibility.",name:"wheelchair"},{emoji:"\u{1F4A1}",entity:"💡",code:":bulb:",description:"Add or update comments in source code.",name:"bulb"},{emoji:"\u{1F37B}",entity:"🍻",code:":beers:",description:"Write code drunkenly.",name:"beers"},{emoji:"\u{1F4AC}",entity:"💬",code:":speech_balloon:",description:"Add or update text and literals.",name:"speech-balloon"},{emoji:"\u{1F5C3}",entity:"🗃",code:":card_file_box:",description:"Perform database related changes.",name:"card-file-box"},{emoji:"\u{1F50A}",entity:"🔊",code:":loud_sound:",description:"Add or update logs.",name:"loud-sound"},{emoji:"\u{1F507}",entity:"🔇",code:":mute:",description:"Remove logs.",name:"mute"},{emoji:"\u{1F465}",entity:"👥",code:":busts_in_silhouette:",description:"Add or update contributor(s).",name:"busts-in-silhouette"},{emoji:"\u{1F6B8}",entity:"🚸",code:":children_crossing:",description:"Improve user experience / usability.",name:"children-crossing"},{emoji:"\u{1F3D7}",entity:"f3d7;",code:":building_construction:",description:"Make architectural changes.",name:"building-construction"},{emoji:"\u{1F4F1}",entity:"📱",code:":iphone:",description:"Work on responsive design.",name:"iphone"},{emoji:"\u{1F921}",entity:"🤡",code:":clown_face:",description:"Mock things.",name:"clown-face"},{emoji:"\u{1F95A}",entity:"🥚",code:":egg:",description:"Add or update an easter egg.",name:"egg"},{emoji:"\u{1F648}",entity:"bdfe7;",code:":see_no_evil:",description:"Add or update a .gitignore file.",name:"see-no-evil"},{emoji:"\u{1F4F8}",entity:"📸",code:":camera_flash:",description:"Add or update snapshots.",name:"camera-flash"},{emoji:"\u2697",entity:"📸",code:":alembic:",description:"Perform experiments.",name:"alembic"},{emoji:"\u{1F50D}",entity:"🔍",code:":mag:",description:"Improve SEO.",name:"mag"},{emoji:"\u{1F3F7}\uFE0F",entity:"🏷",code:":label:",description:"Add or update types.",name:"label"},{emoji:"\u{1F331}",entity:"🌱",code:":seedling:",description:"Add or update seed files.",name:"seedling"},{emoji:"\u{1F6A9}",entity:"🚩",code:":triangular_flag_on_post:",description:"Add, update, or remove feature flags.",name:"triangular-flag-on-post"},{emoji:"\u{1F945}",entity:"🥅",code:":goal_net:",description:"Catch errors.",name:"goal-net"},{emoji:"\u{1F4AB}",entity:"💫",code:":dizzy:",description:"Add or update animations and transitions.",name:"animation"},{emoji:"\u{1F5D1}",entity:"🗑",code:":wastebasket:",description:"Deprecate code that needs to be cleaned up.",name:"wastebasket"},{emoji:"\u{1F6C2}",entity:"🛂",code:":passport_control:",description:"Work on code related to authorization, roles and permissions.",name:"passport-control"},{emoji:"\u{1FA79}",entity:"🩹",code:":adhesive_bandage:",description:"Simple fix for a non-critical issue.",name:"adhesive-bandage"}];function w(t){var e=$.filter(function(i){return i.code===t});return e.length>0?e[0].emoji:t}var G=n(41008),re=n(55423),X=n(86074),q=/<pre[^>]*>/g,ee=/:([a-zA-Z_]+):/g;function te(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes.length===0?"":e.childNodes[0].nodeValue}var ne=function(t){var e=t.value,i=e===void 0?"":e,o=t.className,a=t.style,m=a===void 0?{}:a,l=t.url,v=String(i),E=(0,p.useMemo)(function(){var s=N(v),b=L();v.match(/\[TOC\]/)&&(s=s.replace("<p>[TOC]</p>",g()),r());var c=v.match(ee);if(c&&c.length>0)for(var y=0;y<c.length;y++)s=s.replace(c[y],w(c[y]));return s=s.replace(/(__special_katext_id_\d+__)/g,function(se,ie){var Y=b[ie],oe=Y.type,ae=Y.expression;return G.Z.renderToString(te(ae)||"",{displayMode:oe==="block",throwOnError:!1,output:"html"})}),s=s.replace(/▁/g,"\u2581\u2581\u2581"),k(),V().sanitize(s)},[v]);(0,p.useEffect)(function(){if(l&&l.hash&&E){var s=l.hash;if(s){var b=decodeURIComponent(s.split("#")[1]),c=document.getElementById(b);c&&window.scrollTo(0,c.offsetTop)}}},[l,E]);var D=(0,p.useRef)();function Q(s){var b=s.target;if(b.tagName.toUpperCase()==="A"){var c=b.getAttribute("href");if(c&&c.startsWith("#")){s.preventDefault();var y=document.getElementById(c.replace("#",""));y&&y.scrollIntoView(!0)}}}return(0,p.useEffect)(function(){if(D.current&&E&&E.match(q)&&window.PR.prettyPrint(),D.current){var s=D.current;return D.current.addEventListener("click",Q),function(){s.removeEventListener("click",Q),k(),r(),s=null}}},[E,D.current,Q]),(0,X.jsx)("div",{ref:D,style:m,className:"".concat(o||""," markdown-body"),dangerouslySetInnerHTML:{__html:E}})}},69400:function(C,u,n){"use strict";n.r(u);var p=n(5574),P=n.n(p),J=n(65005),U=n(89299),R=n(50942),j=n(52300),_=n(79692),F=n(96074),I=n(599),f=n(62435),d=n(8193),S=n(4999),r=n(86074);function M(){var g=(0,R.TH)(),W=g.pathname.includes("information")?(0,R.UO)():{id:S.Hf[g.pathname]},T=W.id,B=(0,f.useState)({}),O=P()(B,2),h=O[0],L=O[1],k=(0,f.useState)(void 0),x=P()(k,2),A=x[0],K=x[1],H=(0,f.useState)(void 0),N=P()(H,2),Z=N[0],z=N[1];(0,f.useEffect)(function(){V()},[T]);var V=function(){(0,d.Nl)(T).then(function(w){L(w.data),K(w.data.cmsDir),z(j.DS.decode(w.data.content))})};return(0,r.jsx)("div",{className:"detail",children:h&&(0,r.jsxs)("div",{className:"detail-content",children:[g.pathname.includes("information")&&(0,r.jsxs)(_.Z,{separator:">",children:[A&&(0,r.jsx)(_.Z.Item,{href:"/information",children:A.name}),(0,r.jsx)(_.Z.Item,{children:"\u6B63\u6587"})]}),(0,r.jsxs)("div",{className:"detail-info",children:[g.pathname.includes("information")&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"info-text-main",children:[(0,r.jsx)("p",{className:"info-name",children:h.name}),(0,r.jsxs)("ul",{className:"info-ul-value",children:[A&&(0,r.jsxs)("li",{children:["\u53D1\u5E03\u4E8E",A.createdAt]}),h.visits&&(0,r.jsxs)("li",{children:[(0,r.jsx)("img",{src:I,alt:"",className:"mr5"}),h.visits]})]})]}),(0,r.jsx)(F.Z,{dashed:!0})]}),Z?(0,r.jsx)(U.Z,{className:"informations_detail imageLayerParent",value:Z,url:g}):(0,r.jsx)("span",{children:"\u6682\u65E0\u8BE6\u60C5~"})]})]})})}u.default=M},65005:function(){"use strict"},13411:function(C){function u(n){var p=new Error("Cannot find module '"+n+"'");throw p.code="MODULE_NOT_FOUND",p}u.keys=function(){return[]},u.resolve=u,u.id=13411,C.exports=u},599:function(C){"use strict";C.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAMCAYAAAC9QufkAAAABHNCSVQICAgIfAhkiAAAAUVJREFUKFOlUTFuwkAQ3D0cap7AE/hB+AFEwXWcNhAJBKnjB2BBYSvtpbYjyA+cH/AEfhDq4LvN7qEjRxeJa3ze3ZnZmUO44mCIXa02HXNjBoAwBIKO7yHCngjqxWT0Hs6fwVnxkRBRikjaWqhfnuNaBoWwiZoeKhwiQZ8UpIun0VZ6DrzMK82gjvqJktns7iC1LC+nBDjgq/aKQmTbDQOVno/vNS6Lai0r8kDiV5IaAh2UirQxhrfBWobPfSeGNbLqnoHd0EtWlDwc993ab5uutQ0rnf79yfJqJ2DHcsHslHEnNSZKBcBg9/U22fDhzzPQ93wSz5yapN7mdYF67Hu3GI+mvm7bZsXJo9gM0i5TIhTfr61j69MHF5A9cNqPAKRZZC31y3c++RMC9oe38rb8xnynLw51q46RDkkvwGEg/7lfBf4FAFWjNrMSjaoAAAAASUVORK5CYII="},62183:function(){},13024:function(){},62715:function(){},13611:function(){},28353:function(){},1210:function(){},43454:function(){}}]);
|