2 lines
No EOL
13 KiB
JavaScript
2 lines
No EOL
13 KiB
JavaScript
webpackJsonp([1],{0:function(t,e){},"0XVh":function(t,e){},"7P5P":function(t,e){},"7zck":function(t,e){},NHnr:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("7+uW"),i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-app",[a("v-navigation-drawer",{attrs:{clipped:"",app:""},model:{value:t.drawer,callback:function(e){t.drawer=e},expression:"drawer"}},[a("v-list",{attrs:{dense:""}},[a("v-list-tile",[a("v-list-tile-content",[a("v-list-tile-title",[t._v("Link 1")])],1)],1),t._v(" "),a("v-list-tile",[a("v-list-tile-content",[a("v-list-tile-title",[t._v("Link 2")])],1)],1)],1)],1),t._v(" "),a("v-toolbar",{attrs:{"clipped-left":"",app:""}},[a("v-toolbar-side-icon",{on:{click:function(e){e.stopPropagation(),t.drawer=!t.drawer}}}),t._v(" "),a("v-toolbar-title",{staticClass:"mr-5 align-center"},[a("span",{staticClass:"title"},[t._v("LBRY.tech")])]),t._v(" "),a("v-spacer"),t._v(" "),a("v-toolbar-items",{staticClass:"hidden-sm-and-down"},[a("v-btn",{attrs:{flat:""}},[t._v("Link One")]),t._v(" "),a("v-btn",{attrs:{flat:""}},[t._v("Link Two")]),t._v(" "),a("v-btn",{attrs:{flat:""}},[t._v("Link Three")])],1)],1),t._v(" "),a("v-content",[a("router-view")],1)],1)},staticRenderFns:[]};var n=a("VU/8")({data:function(){return{drawer:!0}},name:"App"},i,!1,function(t){a("jUOZ")},null,null).exports,o=a("/ocq"),r=new s.default,l={data:function(){return{uploadDialog:!1,txhash:"",confirmed:!1}},watch:{uploadDialog:function(){var t=this;this.uploadDialog&&setTimeout(function(){t.confirmed=!0},1e4)}},created:function(){var t=this;r.$on("file-uploaded",function(e){t.txhash=e,t.uploadDialog=!0})},name:"Hook"},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-container",{attrs:{fluid:"","grid-list-md":"","text-xs-center":"",id:"hook"}},[a("v-layout",{attrs:{row:"",wrap:"",id:"hook-navigation"}},[a("v-flex",{attrs:{xs4:""}},[a("router-link",{attrs:{exact:"",to:"/"}},[a("v-btn",{attrs:{color:"grey",fab:""}},[t._v("1")]),t._v("\n Resolve a claim\n ")],1)],1),t._v(" "),a("v-flex",{attrs:{xs4:""}},[a("router-link",{attrs:{to:"/step-2"}},[a("v-btn",{attrs:{color:"grey",fab:""}},[t._v("2")]),t._v("\n Publish content\n ")],1)],1),t._v(" "),a("v-flex",{attrs:{xs4:""}},[a("router-link",{attrs:{to:"/step-3"}},[a("v-btn",{attrs:{color:"grey",fab:""}},[t._v("3")]),t._v("\n Support with LBC\n ")],1)],1)],1),t._v(" "),a("router-view"),t._v(" "),a("v-dialog",{attrs:{"hide-overlay":"",persistent:"",width:"30rem"},model:{value:t.uploadDialog,callback:function(e){t.uploadDialog=e},expression:"uploadDialog"}},[a("v-card",[t.confirmed?[a("v-card-title",{staticClass:"headline"},[t._v("Your image has been published!")]),t._v(" "),a("v-card-text",[a("a",{attrs:{href:"https://explorer.lbry.io/tx/"+t.txhash,target:"_blank"}},[t._v("Check out your content on the LBRY blockchain explorer")])]),t._v(" "),a("v-card-actions",[a("v-btn",{attrs:{flat:""},on:{click:function(e){t.uploadDialog=!1}}},[t._v("Dismiss this dialog")])],1)]:[a("v-card-title",{staticClass:"headline"},[a("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}}),t._v(" Waiting for confirmations...")],1),t._v(" "),a("v-card-text",[t._v("Your image was uploaded to the LBRY network but we are currently waiting for the first confirmation. This should take just a few minutes. In the mean time, go ahead and try the other steps!")])]],2)],1)],1)},staticRenderFns:[]};var d={components:{hook:a("VU/8")(l,c,!1,function(t){a("7P5P")},null,null).exports},data:function(){return{}},name:"Home"},v={render:function(){var t=this.$createElement;return(this._self._c||t)("hook")},staticRenderFns:[]};var u=a("VU/8")(d,v,!1,function(t){a("0XVh")},null,null).exports,p=a("mvHQ"),m=a.n(p),h={data:function(){return{address:"Claim goes here",jsonData:"",isLoading:!1,exampleCode:""}},methods:{fetchMetadata:function(){var t=this;t.jsonData="",t.isLoading=!0,t.exampleCode='# Example code using the daemon\ncurl \'http://localhost:5279\' --data \'{"method":"resolve","params":{"uri":"'+this.address+"\"}}'",this.$http.get("http://daemon.lbry.tech/?method=resolve&uri="+this.address).then(function(e){t.isLoading=!1,t.jsonData=m()(e.body,null," ")})},chooseClaim:function(t){this.address=t,this.fetchMetadata()}},name:"Step1"},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-container",{attrs:{fluid:"",id:"step1-page"}},[a("v-layout",{attrs:{row:"",wrap:""}},[a("v-flex",{attrs:{xs12:""}},[a("h1",{staticClass:"display-2"},[t._v("Learn the LBRY protocol by examples")]),t._v(" "),a("p",{staticClass:"subheading"},[t._v("Let's start by getting the associated metadata for "),a("a",{attrs:{href:"#"}},[t._v("a claim")]),t._v(".")])]),t._v(" "),a("v-flex",{attrs:{xs12:"",sm10:""}},[a("v-text-field",{attrs:{solo:"",dark:"",prefix:"lbry://"},model:{value:t.address,callback:function(e){t.address=e},expression:"address"}})],1),t._v(" "),a("v-flex",{attrs:{xs12:"",sm2:""}},[a("v-btn",{staticClass:"mt-0",attrs:{large:""},on:{click:t.fetchMetadata}},[t._v("Execute")])],1),t._v(" "),""!=t.exampleCode?a("v-flex",{attrs:{xs12:""}},[a("pre",{directives:[{name:"highlightjs",rawName:"v-highlightjs",value:t.exampleCode,expression:"exampleCode"}]},[a("code",{staticClass:"bash"})])]):t._e(),t._v(" "),t.isLoading?a("v-flex",{attrs:{xs12:""}},[a("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1):t._e(),t._v(" "),t.jsonData?a("v-flex",{attrs:{xs12:""}},[a("p",{staticClass:"subheading"},[t._v("Success! Here is the response for "),a("strong",[t._v("lbry://"+t._s(t.address))]),t._v(":")]),t._v(" "),a("pre",{directives:[{name:"highlightjs",rawName:"v-highlightjs",value:t.jsonData,expression:"jsonData"}],staticClass:"json-example"},[a("code",{staticClass:"json"})]),t._v(" "),a("v-btn",{staticClass:"mt-3",attrs:{large:""},on:{click:function(e){t.$router.push("step-2")}}},[t._v("Go to next step")])],1):t._e(),t._v(" "),t.isLoading||t.jsonData?t._e():[a("v-flex",{attrs:{xs12:""}},[a("p",{staticClass:"subheading"},[t._v("... or select a live example from below")])]),t._v(" "),a("v-flex",{attrs:{xs12:"",sm3:""}},[a("v-card",{attrs:{hover:""}},[a("v-card-media",{attrs:{src:"static/itsadisaster.jpg",height:"200px"},on:{click:function(e){t.chooseClaim("itsadisaster")}}}),t._v(" "),a("v-card-title",{on:{click:function(e){t.chooseClaim("itsadisaster")}}},[a("div",[a("h4",{staticClass:"mb-0"},[t._v("It's a Disaster")]),t._v(" "),a("div",{staticClass:"account"},[t._v("Anonymous")])])])],1)],1),t._v(" "),a("v-flex",{attrs:{xs12:"",sm3:""}},[a("v-card",{attrs:{hover:""}},[a("v-card-media",{attrs:{src:"static/unbubbled.png",height:"200px"},on:{click:function(e){t.chooseClaim("unbubbled1-1")}}}),t._v(" "),a("v-card-title",{on:{click:function(e){t.chooseClaim("unbubbled1-1")}}},[a("div",[a("h4",{staticClass:"mb-0"},[t._v("Unbubbled with Jamie King, Ep1.1 - Bitcoin, Boom or Bust")]),t._v(" "),a("div",{staticClass:"account"},[t._v("@Unbubbled")])])])],1)],1),t._v(" "),a("v-flex",{attrs:{xs12:"",sm3:""}},[a("v-card",{attrs:{hover:""}},[a("v-card-media",{attrs:{src:"static/fortnite.jpg",height:"200px"},on:{click:function(e){t.chooseClaim("fortnite-top-stream-moments-nickatnyte")}}}),t._v(" "),a("v-card-title",{on:{click:function(e){t.chooseClaim("fortnite-top-stream-moments-nickatnyte")}}},[a("div",[a("h4",{staticClass:"mb-0"},[t._v("FORTNITE TOP STREAM MOMENTS - Nickatnyte & GamingwithMolt")]),t._v(" "),a("div",{staticClass:"account"},[t._v("@nickatnyte")])])])],1)],1),t._v(" "),a("v-flex",{attrs:{xs12:"",sm3:""}},[a("v-card",{attrs:{hover:""}},[a("v-card-media",{attrs:{src:"static/lbrymine.png",height:"200px"},on:{click:function(e){t.chooseClaim("six")}}}),t._v(" "),a("v-card-title",{on:{click:function(e){t.chooseClaim("six")}}},[a("div",[a("h4",{staticClass:"mb-0"},[t._v("LBRY Coin (LBC) GPU Miner for AMD and NVIDIA")]),t._v(" "),a("div",{staticClass:"account"},[t._v("Anonymous")])])])],1)],1)]],2)],1)},staticRenderFns:[]};var x=a("VU/8")(h,f,!1,function(t){a("yqJF")},null,null).exports,_=a("iPd/"),g=a.n(_),b=a("yazS"),k={directives:{imagesLoaded:g.a},components:{ImageUploader:b.ImageUploader},data:function(){return{valid:!1,isLoading:!1,topLine:"This is an example meme",bottomLine:"that I made",title:"",description:"",author:"",language:"EN",license:"Public Domain",nsfw:!1,backgroundImage:"",textFieldRules:[function(t){return!!t||"Field is required"}]}},methods:{updateCanvas:function(){var t=document.getElementById("meme-canvas").getContext("2d"),e=document.getElementById("base-image");t.clearRect(0,0,400,300),t.drawImage(e,0,0,400,300,0,0,400,300),t.lineWidth=4,t.font="bold 28px Coda",t.strokeStyle="black",t.fillStyle="white",t.textAlign="center",t.textBaseline="top",t.strokeText(this.topLine.toUpperCase(),200,20),t.fillText(this.topLine.toUpperCase(),200,20),t.strokeText(this.bottomLine.toUpperCase(),200,260),t.fillText(this.bottomLine.toUpperCase(),200,260)},submit:function(){r.$emit("file-uploaded","txhashhere")},imagesLoaded:function(t){var e=this;document.fonts.load("bold 28px Coda").then(function(){e.updateCanvas()})},setImage:function(t){document.getElementById("base-image").src=t,setTimeout(this.updateCanvas,1e3)},imageUploaded:function(){}},created:function(){},watch:{topLine:function(){this.updateCanvas()},bottomLine:function(){this.updateCanvas()}},name:"Step2"},C={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-container",{attrs:{fluid:"",id:"step2-page"}},[a("v-layout",{directives:[{name:"images-loaded",rawName:"v-images-loaded",value:t.imagesLoaded,expression:"imagesLoaded"}],attrs:{row:"",wrap:""}},[a("v-flex",{attrs:{xs12:""}},[a("h1",{staticClass:"display-2"},[t._v("Publish your content on the blockchain")]),t._v(" "),a("p",{staticClass:"subheading"},[t._v("Upload an image to the blockchain and you are able to view it on the "),a("a",{attrs:{href:"http://explorer.lbry.io",target:"_blank"}},[t._v("LBRY Blockchain Explorer")]),t._v(".")])]),t._v(" "),a("v-flex",{attrs:{xs12:"",sm8:""}},[a("img",{attrs:{src:"static/lbry-green.png",id:"base-image"}}),t._v(" "),a("canvas",{attrs:{id:"meme-canvas",width:"400",height:"300"}},[t._v("\n Sorry, canvas not supported\n ")]),t._v(" "),a("v-flex",{staticClass:"mx-auto",attrs:{xs12:"",sm6:""}},[a("v-card",{staticClass:"pa-3"},[a("p",{staticClass:"subheading"},[t._v("Upload a background image")]),t._v(" "),a("image-uploader",{attrs:{quality:.8,autoRotate:!0,maxWidth:400,outputFormat:"string",preview:!1},on:{input:t.setImage,onComplete:t.imageUploaded}})],1)],1)],1),t._v(" "),a("v-flex",{attrs:{xs12:"",sm4:""}},[a("v-card",{staticClass:"pa-3"},[a("v-form",{ref:"form",attrs:{"lazy-validation":""},model:{value:t.valid,callback:function(e){t.valid=e},expression:"valid"}},[a("v-text-field",{attrs:{dark:"",solo:"",rules:t.textFieldRules,required:""},model:{value:t.topLine,callback:function(e){t.topLine=e},expression:"topLine"}}),t._v(" "),a("v-text-field",{attrs:{dark:"",solo:"",rules:t.textFieldRules,required:""},model:{value:t.bottomLine,callback:function(e){t.bottomLine=e},expression:"bottomLine"}}),t._v(" "),a("v-text-field",{attrs:{label:"Title",rules:t.textFieldRules,required:""},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}}),t._v(" "),a("v-text-field",{attrs:{label:"Description",rules:t.textFieldRules,required:""},model:{value:t.description,callback:function(e){t.description=e},expression:"description"}}),t._v(" "),a("v-text-field",{attrs:{label:"Author",rules:t.textFieldRules,required:""},model:{value:t.author,callback:function(e){t.author=e},expression:"author"}}),t._v(" "),a("v-text-field",{attrs:{label:"Language",rules:t.textFieldRules,required:""},model:{value:t.language,callback:function(e){t.language=e},expression:"language"}}),t._v(" "),a("v-text-field",{attrs:{label:"License",rules:t.textFieldRules,required:""},model:{value:t.license,callback:function(e){t.license=e},expression:"license"}}),t._v(" "),a("v-checkbox",{attrs:{label:"NSFW"},model:{value:t.nsfw,callback:function(e){t.nsfw=e},expression:"nsfw"}}),t._v(" "),a("v-btn",{attrs:{disabled:!t.valid},on:{click:t.submit}},[t._v("Submit")])],1)],1)],1),t._v(" "),t.isLoading?a("v-flex",{attrs:{xs12:""}},[a("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1):t._e()],1)],1)},staticRenderFns:[]};var w=a("VU/8")(k,C,!1,function(t){a("V+V2")},null,null).exports,y={render:function(){var t=this.$createElement,e=this._self._c||t;return e("v-container",{attrs:{fluid:"",id:"step3-page"}},[e("v-layout",{attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{xs12:""}},[e("h1",{staticClass:"display-2"},[this._v("Support your favorite content creators with LBRY")]),this._v(" "),e("p",{staticClass:"subheading"},[this._v("Send LBRY coins to claim addresses and the owner will receive it in their wallet.")])])],1)],1)},staticRenderFns:[]};var L=a("VU/8")({data:function(){return{}},methods:{},name:"Step3"},y,!1,function(t){a("eyFN")},null,null).exports;s.default.use(o.a);var R=new o.a({routes:[{path:"/",name:"Home",component:u,children:[{path:"",name:"Step1",component:x},{path:"step-2",name:"Step2",component:w},{path:"step-3",name:"Step3",component:L}]}]}),F=a("3EgV"),D=a.n(F),U=(a("7zck"),a("8+8L")),j=a("5CJf"),B=a.n(j);s.default.use(D.a),s.default.use(U.a),s.default.use(B.a),s.default.config.productionTip=!1,new s.default({el:"#app",router:R,components:{App:n},template:"<App/>"})},"V+V2":function(t,e){},eyFN:function(t,e){},jUOZ:function(t,e){},yqJF:function(t,e){}},["NHnr"]);
|
||
//# sourceMappingURL=app.112b506f3fb5c20ed387.js.map
|