main.25f9a19b.chunk.js 5.44 KB
(this.webpackJsonpkhuwitch=this.webpackJsonpkhuwitch||[]).push([[0],{40:function(e,n){},531:function(e,n,t){"use strict";t.r(n);var a=t(3),i=t(2),c=t.n(i),s=t(78),l=t.n(s);t(95),t(96),t(97);t(98);var o=t(79),h=t(80),m=t(87),r=t(86),u=(t(99),t(82)),w=t.n(u),d=t(85),g=t.n(d),v=t(84),p=t.n(v),j=t(81),b=t.n(j),f=t(15),_=t.n(f);_.a.config.region="ap-northeast-2",_.a.config.credentials=new _.a.CognitoIdentityCredentials({IdentityPoolId:"ap-northeast-2:03db97c9-a857-45f3-be6e-3cf84d6f619b"});var x=new _.a.Polly({signatureVersion:"v4",region:"ap-northeast-2"}),O=[],y=new Audio;function k(e){var n={Text:e,OutputFormat:"mp3",VoiceId:"Seoyeon"};new _.a.Polly.Presigner(n,x).getSynthesizeSpeechUrl(n,(function(e,n){e||O.push(n)}))}console.log("\ud14c\uc2a4\ud2b8\uc6a9 TTS \ub370\uc774\ud130\ub97c \uc8fc\uc785\ud569\ub2c8\ub2e4."),k("\uc804\uc5d0 data hazards\uc5d0\uc11c 3\uac00\uc9c0 data-dependence\ub97c \ubc30\uc6e0\ub2e4. mips\uc778 \uacbd\uc6b0\uc5d0\ub294 in-order\uc774\ub77c True data dependency \ubb38\uc81c\ubc16\uc5d0 \uc548\uc0dd\uacbc\uc5c8\ub2e4\n\n\uadfc\ub370 out-of-order \uad00\uc810\uc5d0\uc11c\ub294 3\uac1c\uc758 \uba85\ub839\uc5b4\uac00 \ub3d9\uc2dc\uc5d0 fetch\ub418\ub294 \uacbd\uc6b0\ub97c \uc0dd\uac01\ud574\ubcf4\uc790. \n\n\ub9cc\uc57d 1, 3 line \uc21c\uc11c \ubc14\ub00c\uba74 \ub2f9\uc5f0\ud788 \uacb0\uacfc\uac00 \uc774\uc0c1\ud574\uc9c4\ub2e4. \uc804\uc5d0 \uace0\ub824\ud558\uc9c0 \ubabb\ud588\ub358 output dependency \uc640 anti dependency \uace0\ub824\ud574\uc918\uc57c\ud55c\ub2e4. "),k("\ubcf5\uc7a1\ud55c \ube0c\ub79c\uce58"),k("\ube75\uc0c1 \uc544\uc8fc\uba38\ub2c8\ub294 \ub9d0\uc500\ud558\uc168\ub2e4."),k("\ub2c8\uac00\uac00\ub77c \ud558\uc640\uc774");var P={enableAudio:function(){setInterval((function(){if(y.paused){var e=O.shift();e&&(console.log(e),y.setAttribute("src",e),y.play())}}),500)},enqueueTTS:k};P.enableAudio();var N=b.a.connect("http://localhost:3303");N.on("connect",(function(e){N.emit("joinRoom","umi0410","\uc9c4\uc218\ubd07")})),N.on("chat message",(function(e,n){console.log(n),console.log("got message"),P.enqueueTTS(n)}));function T(e){var n=e.channel;return Object(a.jsxs)("div",{className:"channel",children:[Object(a.jsxs)("a",{href:n.url,className:"channel__url",children:[n.thumbnail&&Object(a.jsx)("img",{className:"channel__thumbnail",src:n.thumbnail,alt:""}),!n.thumbnail&&Object(a.jsx)(w.a,{className:"channel__icon"}),Object(a.jsxs)("div",{className:"channel__box",children:[Object(a.jsxs)("div",{className:"channel__info",children:[Object(a.jsx)("div",{className:"channel__name",children:n.name}),Object(a.jsx)("div",{className:"channel__game",children:n.game})]}),Object(a.jsx)("div",{className:"channel__view",children:n.view})]})]}),n.isPlay&&Object(a.jsx)(p.a,{className:"pause__icon",onClick:e.onClick}),!n.isPlay&&Object(a.jsx)(g.a,{className:"play__icon",onClick:e.onClick})]})}var S=function(e){Object(m.a)(t,e);var n=Object(r.a)(t);function t(e){var a;Object(o.a)(this,t);return(a=n.call(this,e)).state={channels:[{name:"umi0410 \uc9c4\uc218",view:123124124,game:"game2",url:"https://www.twitch.tv/umi0410"},{name:"name1",view:999,game:"game1",url:"https://www.twitch.tv",thumbnail:"https://upload.wikimedia.org/wikipedia/commons/2/26/Twitch_logo.svg"},{name:"name2",view:123124124,game:"game2",url:"https://www.twitch.tv"},{name:"name1",view:999,game:"game1",url:"https://www.twitch.tv",thumbnail:"https://upload.wikimedia.org/wikipedia/commons/2/26/Twitch_logo.svg"},{name:"name2",view:123124124,game:"game2",url:"https://www.twitch.tv"},{name:"name1",view:999,game:"game1",url:"https://www.twitch.tv",thumbnail:"https://upload.wikimedia.org/wikipedia/commons/2/26/Twitch_logo.svg"},{name:"name2",view:123124124,game:"game2",url:"https://www.twitch.tv"},{name:"name1",view:999,game:"game1",url:"https://www.twitch.tv",thumbnail:"https://upload.wikimedia.org/wikipedia/commons/2/26/Twitch_logo.svg"},{name:"name2",view:123124124,game:"game2",url:"https://www.twitch.tv"},{name:"name1",view:999,game:"game1",url:"https://www.twitch.tv",thumbnail:"https://upload.wikimedia.org/wikipedia/commons/2/26/Twitch_logo.svg"},{name:"name2",view:123124124,game:"game2",url:"https://www.twitch.tv"}],xisPlaying:null},a}return Object(h.a)(t,[{key:"changeState",value:function(e,n){var t=this.state.channels;!0===e.isPlay?(t[n].isPlay=!1,this.setState({channels:t,xisPlaying:null})):(null!==this.state.xisPlaying?(t[this.state.xisPlaying].isPlay=!1,t[n].isPlay=!0):t[n].isPlay=!0,this.setState({channels:t,xisPlaying:n}))}},{key:"render",value:function(){var e=this;return Object(a.jsxs)("div",{className:"channel__list",children:[Object(a.jsx)("div",{className:"channel__list__title",children:"  CHANNEL LIST"}),Object(a.jsx)("ul",{children:this.state.channels.map((function(n,t){return Object(a.jsxs)("li",{children:[Object(a.jsx)(T,{channel:n,onClick:function(){return e.changeState(n,t)}}),Object(a.jsx)("hr",{})]},t)}))})]})}}]),t}(c.a.Component);var C=function(){return Object(a.jsx)("div",{className:"body",children:Object(a.jsx)(S,{})})};var I=function(){return Object(a.jsxs)("div",{className:"app",children:[!1,Object(a.jsx)(C,{})]})},A=function(e){e&&e instanceof Function&&t.e(3).then(t.bind(null,542)).then((function(n){var t=n.getCLS,a=n.getFID,i=n.getFCP,c=n.getLCP,s=n.getTTFB;t(e),a(e),i(e),c(e),s(e)}))};l.a.render(Object(a.jsx)(c.a.StrictMode,{children:Object(a.jsx)(I,{})}),document.getElementById("root")),A()},95:function(e,n,t){},96:function(e,n,t){},97:function(e,n,t){},98:function(e,n,t){},99:function(e,n,t){}},[[531,1,2]]]);
//# sourceMappingURL=main.25f9a19b.chunk.js.map