From 0a406d2b89d35c176dc0b5e7288950c1d120ba9f Mon Sep 17 00:00:00 2001 From: GuaHsu Date: Sat, 20 Jan 2018 23:41:56 +0800 Subject: [PATCH] update dist --- dist/index.html | 2 +- dist/static/js/app.7273dc277f6047410cad.js | 2 ++ dist/static/js/app.7273dc277f6047410cad.js.map | 1 + dist/static/js/app.cd63b65786e657aa4830.js | 2 -- dist/static/js/app.cd63b65786e657aa4830.js.map | 1 - ...0fa3e9b530a851a7bd.js => manifest.512fe58b252a365b8dec.js} | 4 ++-- ...30a851a7bd.js.map => manifest.512fe58b252a365b8dec.js.map} | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 dist/static/js/app.7273dc277f6047410cad.js create mode 100644 dist/static/js/app.7273dc277f6047410cad.js.map delete mode 100644 dist/static/js/app.cd63b65786e657aa4830.js delete mode 100644 dist/static/js/app.cd63b65786e657aa4830.js.map rename dist/static/js/{manifest.620fa3e9b530a851a7bd.js => manifest.512fe58b252a365b8dec.js} (91%) rename dist/static/js/{manifest.620fa3e9b530a851a7bd.js.map => manifest.512fe58b252a365b8dec.js.map} (95%) diff --git a/dist/index.html b/dist/index.html index 2e0a8ab..728778f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -32,4 +32,4 @@ .GuaHsu-header a { color: unset; text-decoration: none; - }
Blog | GitHub
\ No newline at end of file + }
Blog | GitHub
\ No newline at end of file diff --git a/dist/static/js/app.7273dc277f6047410cad.js b/dist/static/js/app.7273dc277f6047410cad.js new file mode 100644 index 0000000..58bfe60 --- /dev/null +++ b/dist/static/js/app.7273dc277f6047410cad.js @@ -0,0 +1,2 @@ +webpackJsonp([1],{Jmt5:function(t,e){},NHnr:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});o("K3J8"),o("Jmt5");var a=o("7+uW"),i=o("woOf"),s=o.n(i),n=o("c/Tr"),r=o.n(n),l=o("mvHQ"),c=o.n(l),u=o("DAYN"),d={name:"TurnTable",components:{draggable:o.n(u).a},data:function(){return{isRunning:!1,isMobile:!1,giftEditMode:!0,showButtons:!0,editAreaOpacity:1,turnStatus:{currentDeg:0,targetDeg:0,rollBackDeg:0},giftDegs:[],currentResult:"",resultList:[],dataList:[],dataNo:0,dataName:"預設",gift:{},defaultGift:{chance:10,text:"",textColor:"",textSize:this.defaultGiftTextSize,backgroundColor:this.defaultGiftBackgroundColor,edit:!0},gifts:[],defaultGifts:[{chance:10,text:"RED",textColor:"",textSize:"",backgroundColor:"",edit:!1},{chance:10,text:"BLUE",textColor:"",textSize:"",backgroundColor:"",edit:!1}],config:{},defaultConfig:{autoStop:!0,runTime:6,rollBackRange:.25,showAlert:!0,baseSize:500,singleColor:"#b0e0e6",doubleColor:"#e4c6d0",borderWidth:1,borderColor:"#ffffff",textColor:"#ffffff",buttonColor:"#f19393",buttonText:"GO"}}},watch:{isRunning:function(t){if(!this.config.autoStop){var e=t?"running":"paused";document.documentElement.style.setProperty("--animitionState",e)}},gifts:{handler:function(){this.buideTurnTable()},deep:!0},config:{handler:function(){this.buideTurnTable()},deep:!0},turnStatus:{handler:function(){this.updateturnStatus()},deep:!0}},computed:{showGiftsToTextArea:function(){return c()(this.gifts)},animitionType:function(){return{"turnTable__canvas--manualTrun":!this.config.autoStop,"turnTable__canvas--autoTrun":this.isRunning&&this.config.autoStop}},countDataChance:function(){var t=0;return this.gifts.forEach(function(e){t+=e.chance}),t},defaultGiftBackgroundColor:function(){return this.getDefaultGiftBackgroundColor()},pixelRatio:function(){return 2*window.devicePixelRatio||2}},methods:{checkMobile:function(){return/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)},getChance:function(t){return(t/this.countDataChance*100).toFixed(1)+"%"},getDefaultGiftBackgroundColor:function(t){return(t||this.gifts.length)%2==0?this.config.doubleColor:this.config.singleColor},newData:function(){this.dataName="未命名",this.dataNo=this.dataList.length,this.setDefaultDatas()},saveData:function(){var t={dataName:this.dataName,gifts:r()(this.gifts),config:s()({},this.config)};this.$set(this.dataList,this.dataNo,t),this.setDataListToLocalStorage()},loadData:function(t){this.dataNo=t,this.dataName=this.dataList[t].dataName,this.gifts=this.dataList[t].gifts,this.config=this.dataList[t].config},deleteData:function(t){confirm("確定刪除這個設定檔嗎?")&&(this.dataList.splice(t,1),this.loadData(0))},setDefaultDatas:function(){this.gifts=this.getDefaultGfits(),this.config=this.getDefaultConfig()},setDataListToLocalStorage:function(){var t=c()(this.dataList);localStorage.setItem("turnTableDataList",t)},getDataListFromLocalStorage:function(){return JSON.parse(localStorage.getItem("turnTableDataList"))},editGiftData:function(t){var e=this.gifts[t];e.clone=s()({},e),e.edit=!0},saveGiftData:function(t){var e=this.gifts[t];delete e.clone,e.edit=!1},cancleGiftData:function(t){var e=this.gifts[t];delete(e=s()(e,e.clone)).clone,e.edit=!1},removeGiftData:function(t){this.gifts.splice(t,1)},addGiftData:function(){this.gifts.push(this.gift),this.setDefaultGift()},getDefaultGfits:function(){return r()(this.defaultGifts)},setGiftsByTextArea:function(t){this.gifts=JSON.parse(t.target.value)},setDefaultGift:function(){this.gift=s()({},this.defaultGift)},getDefaultConfig:function(){var t=window.innerHeight,e=window.innerWidth;return this.defaultConfig.baseSize=t>e?Math.floor(.8*e):Math.floor(.6*t),s()({},this.defaultConfig)},setConfigToLocalStorage:function(){var t=c()(this.config);localStorage.setItem("turnTableConfig",t)},drawCanvas:function(){var t=this,e=this.config.baseSize*(this.pixelRatio/2),o=document.querySelector(".turnTable__canvas"),a=o.getContext("2d");o.setAttribute("width",this.config.baseSize*this.pixelRatio),o.setAttribute("height",this.config.baseSize*this.pixelRatio),this.giftDegs=[];var i=0;this.gifts.forEach(function(o,s){var n=o.chance/t.countDataChance*360,r=n*(Math.PI/180);t.giftDegs[s]={from:0===s?0:t.giftDegs[s-1].to,to:0===s?n:t.giftDegs[s-1].to+n,name:o.text},a.save(),a.beginPath(),a.translate(e,e),a.moveTo(0,0),a.rotate(i),a.arc(0,0,e-t.config.borderWidth,0,r,!1),i+=r,a.fillStyle=o.backgroundColor||t.getDefaultGiftBackgroundColor(s),a.fill(),a.lineWidth=t.config.borderWidth*t.pixelRatio,a.strokeStyle=t.config.borderColor,a.closePath(),a.stroke(),a.rotate(r/2),a.fillStyle=o.textColor||t.config.textColor,a.font=o.textSize?o.textSize+"px Microsoft JhengHei":t.config.baseSize/o.text.length*(t.pixelRatio/4)+"px Microsoft JhengHei",a.textBaseline="middle",a.fillText(o.text,e/2.25,0),a.restore()}),this.config.autoStop?o.addEventListener("animationend",this.autoTurnStop):o.removeEventListener("animationend",this.autoTurnStop)},animitionProc:function(){this.config.autoStop?this.autoTurnStart():this.manualTrun()},manualTrun:function(){this.isRunning=!this.isRunning},autoTurnStart:function(){if(!this.isRunning){var t=Math.floor(360*Math.random())+3600,e=Math.random()*this.config.rollBackRange+1;this.turnStatus.rollBackDeg=e<1.01?1:e,this.turnStatus.targetDeg=t,this.isRunning=!0}},autoTurnStop:function(){var t=this;this.isRunning=!1,this.turnStatus.currentDeg=Math.floor(this.turnStatus.targetDeg%360);var e=360-this.turnStatus.currentDeg;this.giftDegs.forEach(function(o){e>=o.from&&e<=o.to&&(t.resultList.push(o.name),t.currentResult=o.name,setTimeout(function(){t.currentResult=""},3500))})},buideTurnTable:function(){document.documentElement.style.setProperty("--turnTableSize",this.config.baseSize+20+"px"),document.documentElement.style.setProperty("--buttonSize",this.config.baseSize/3.5+"px"),document.documentElement.style.setProperty("--buttonFontSize",this.config.baseSize/10+"px"),document.documentElement.style.setProperty("--arrowHeight",this.config.baseSize/7+"px"),document.documentElement.style.setProperty("--arrowWidth",this.config.baseSize/5+"px"),document.documentElement.style.setProperty("--buttonColor",""+this.config.buttonColor),document.documentElement.style.setProperty("--runTime",this.config.runTime+"s"),document.documentElement.style.setProperty("--animitionState","paused"),this.resultList=[],this.drawCanvas()},updateturnStatus:function(){document.documentElement.style.setProperty("--targetDeg",this.turnStatus.targetDeg+"deg"),document.documentElement.style.setProperty("--currentDeg",this.turnStatus.currentDeg+"deg"),document.documentElement.style.setProperty("--rollBackDeg",""+this.turnStatus.rollBackDeg)}},beforeMount:function(){this.isMobile=this.checkMobile(),this.setDefaultGift(),this.dataList=this.getDataListFromLocalStorage()||[],this.dataName=this.dataList[0]?this.dataList[0].dataName:this.dataName,this.config=this.dataList[0]?this.dataList[0].config:this.getDefaultConfig(),this.gifts=this.dataList[0]?this.dataList[0].gifts:this.getDefaultGfits()},mounted:function(){var t=this;this.buideTurnTable(),document.addEventListener("keypress",function(e){32===e.keyCode&&t.animitionProc()})}},m={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"container"},[t.config.showAlert?o("div",{staticClass:"alert alert-info text-center mx-auto w-75 mt-5 fade",class:{"alert--show":t.currentResult}},[t._v(t._s(t.currentResult))]):t._e(),o("div",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],staticClass:"turnTable"},[o("div",{staticClass:"turnTable__body"},[o("canvas",{staticClass:"turnTable__canvas",class:t.animitionType,style:{width:t.config.baseSize+"px",height:t.config.baseSize+"px"}})]),o("div",{staticClass:"turnTable__button",on:{click:t.animitionProc}},[o("div",{staticClass:"turnTable__arrow"}),o("div",{staticClass:"turnTable__button__content"},[o("span",{staticClass:"turnTable__button__text"},[t._v(t._s(t.config.buttonText))])])])]),o("div",{staticClass:"buttonArea"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.showButtons,expression:"showButtons"}],staticClass:"mx-1",attrs:{id:"showButtons",type:"checkbox"},domProps:{checked:!t.showButtons,checked:Array.isArray(t.showButtons)?t._i(t.showButtons,null)>-1:t.showButtons},on:{change:function(e){var o=t.showButtons,a=e.target,i=!!a.checked;if(Array.isArray(o)){var s=t._i(o,null);a.checked?s<0&&(t.showButtons=o.concat([null])):s>-1&&(t.showButtons=o.slice(0,s).concat(o.slice(s+1)))}else t.showButtons=i}}}),o("label",{staticClass:"text-sm-right",attrs:{for:"showButtons"}},[t._v("顯示設定")]),o("br"),o("div",{directives:[{name:"show",rawName:"v-show",value:t.showButtons,expression:"showButtons"}],staticClass:"buttons"},[t.config.autoStop?o("button",{staticClass:"btn btn-outline-danger mr-4",attrs:{"data-toggle":"modal","data-target":"#resultList"}},[t._v("轉出結果")]):t._e(),o("button",{staticClass:"btn btn-outline-info",attrs:{"data-toggle":"modal","data-target":"#dataSetting"}},[t._v("轉盤設定")])])]),t.config.autoStop?o("div",{staticClass:"modal fade",attrs:{id:"resultList"}},[o("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[o("div",{staticClass:"modal-content"},[t._m(0),o("div",{staticClass:"modal-body"},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table table-bordered table-sm"},[t._m(1),o("tbody",{staticClass:"text-center"},t._l(t.resultList,function(e,a){return o("tr",[o("td",{staticClass:"text-center"},[t._v(t._s(a+1))]),o("td",{staticClass:"text-center"},[t._v(t._s(e))])])}))])])]),o("div",{staticClass:"modal-footer"},[o("button",{staticClass:"btn btn-sm btn-outline-secondary ml-2 px-3",on:{click:function(e){e.preventDefault(),t.resultList=[]}}},[t._v("清空資訊")]),o("button",{staticClass:"btn btn-sm btn-secondary ml-2 px-3",attrs:{"data-dismiss":"modal"}},[t._v("關閉 ")])])])])]):t._e(),o("div",{staticClass:"modal fade",style:{opacity:t.editAreaOpacity},attrs:{id:"dataSetting"}},[o("div",{staticClass:"modal-dialog modal-lg",attrs:{role:"document"}},[o("div",{staticClass:"modal-content"},[o("div",{staticClass:"modal-header"},[o("h5",{staticClass:"modal-title"},[t._v("轉盤資訊設定")]),o("label",{staticClass:"text-sm ml-3"},[t._v("| 背景透明度:")]),o("input",{directives:[{name:"model",rawName:"v-model",value:t.editAreaOpacity,expression:"editAreaOpacity"}],attrs:{type:"range",min:"0.1",max:"1",step:"0.1"},domProps:{value:t.editAreaOpacity},on:{__r:function(e){t.editAreaOpacity=e.target.value}}}),t._m(2)]),o("div",{staticClass:"modal-body"},[t._m(3),o("div",{staticClass:"tab-content"},[o("div",{staticClass:"tab-pane fade show active py-3 px-1",attrs:{id:"edit-data",role:"tabpanel"}},[o("form",{staticClass:"form-inline",on:{submit:function(t){t.preventDefault()}}},[o("div",{staticClass:"form-group w-100 mb-2"},[o("label",{staticClass:"mr-2"},[t._v("編輯模式:")]),o("div",{staticClass:"form-check ml-4 ml-sm-0 mr-sm-2"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.giftEditMode,expression:"giftEditMode"}],staticClass:"form-check-input",attrs:{id:"editBySet",type:"radio",name:"editMode",checked:"checked"},domProps:{value:!0,checked:t._q(t.giftEditMode,!0)},on:{change:function(e){t.giftEditMode=!0}}}),o("label",{attrs:{for:"editBySet"}},[t._v("單塊新增")])]),o("div",{staticClass:"form-check ml-4 ml-sm-0"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.giftEditMode,expression:"giftEditMode"}],staticClass:"form-check-input",attrs:{id:"editByData",type:"radio",name:"editMode"},domProps:{value:!1,checked:t._q(t.giftEditMode,!1)},on:{change:function(e){t.giftEditMode=!1}}}),o("label",{attrs:{for:"editByData"}},[t._v("資料編輯(Array-Object)")])])]),t.giftEditMode?o("div",{staticClass:"editBySet w-100"},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table table-bordered table-sm mt-1"},[t._m(4),o("draggable",{staticClass:"dragArea",attrs:{list:t.gifts,element:"tbody"}},t._l(t.gifts,function(e,a){return o("tr",[o("td",[o("div",{staticClass:"input-group justify-content-center"},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}]},[t._v(t._s(t.getChance(e.chance)))]),o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model.number",value:e.chance,expression:"gift.chance",modifiers:{number:!0}}],staticClass:"form-control form-control-sm",attrs:{type:"number",min:"1",step:"0.1"},domProps:{value:e.chance},on:{input:function(o){o.target.composing||t.$set(e,"chance",t._n(o.target.value))},blur:function(e){t.$forceUpdate()}}})])]),o("td",{style:{"background-color":e.backgroundColor||t.getDefaultGiftBackgroundColor(a)}},[o("div",{staticClass:"input-group justify-content-center"},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}]},[t._v(t._s(e.backgroundColor||"預設"))]),t.isMobile?t._e():o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.backgroundColor,expression:"gift.backgroundColor"}],staticClass:"mx-1",style:{width:"25px"},attrs:{type:"color"},domProps:{value:e.backgroundColor},on:{input:function(o){o.target.composing||t.$set(e,"backgroundColor",o.target.value)}}}),o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.backgroundColor,expression:"gift.backgroundColor"}],staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.getDefaultGiftBackgroundColor()},domProps:{value:e.backgroundColor},on:{input:function(o){o.target.composing||t.$set(e,"backgroundColor",o.target.value)}}})])]),o("td",{style:{"background-color":e.textColor||t.config.textColor}},[o("div",{staticClass:"input-group justify-content-center"},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}]},[t._v(t._s(e.textColor||"預設"))]),t.isMobile?t._e():o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.textColor,expression:"gift.textColor"}],staticClass:"mx-1",style:{width:"25px"},attrs:{type:"color"},domProps:{value:e.textColor},on:{input:function(o){o.target.composing||t.$set(e,"textColor",o.target.value)}}}),o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.textColor,expression:"gift.textColor"}],staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.config.textColor},domProps:{value:e.textColor},on:{input:function(o){o.target.composing||t.$set(e,"textColor",o.target.value)}}})])]),o("td",[o("div",{staticClass:"input-group"},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}]},[t._v(t._s(e.text))]),o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.text,expression:"gift.text"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:e.text},on:{input:function(o){o.target.composing||t.$set(e,"text",o.target.value)}}})])]),o("td",[o("div",{staticClass:"input-group justify-content-center"},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}]},[t._v(t._s(e.textSize||"預設"))]),o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.textSize,expression:"gift.textSize"}],staticClass:"form-control form-control-sm",attrs:{type:"number"},domProps:{value:e.textSize},on:{input:function(o){o.target.composing||t.$set(e,"textSize",o.target.value)}}})])]),o("td",[o("div",{staticClass:"input-group text-center justify-content-center"},[o("button",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}],staticClass:"btn btn-sm btn-outline-info mx-1",on:{click:function(e){e.preventDefault(),t.editGiftData(a)}}},[t._v("編輯")]),o("button",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}],staticClass:"btn btn-sm btn-outline-danger mx-1",on:{click:function(e){e.preventDefault(),t.removeGiftData(a)}}},[t._v("移除")]),o("button",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"}],staticClass:"btn btn-sm btn-outline-success mx-1",on:{click:function(e){e.preventDefault(),t.saveGiftData(a)}}},[t._v("儲存")]),o("button",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"}],staticClass:"btn btn-sm btn-outline-secondary mx-1",on:{click:function(e){e.preventDefault(),t.cancleGiftData(a)}}},[t._v("取消")])])])])}))],1)]),o("button",{staticClass:"btn btn-sm btn-outline-success px-5 mx-1",on:{click:t.addGiftData}},[t._v("新增區塊")])]):o("div",{staticClass:"editByDate w-100 my-2"},[o("textarea",{staticClass:"form-control form-control-sm w-100",domProps:{value:t.showGiftsToTextArea},on:{input:t.setGiftsByTextArea}})])])]),o("div",{staticClass:"tab-pane fade py-3 px-1",attrs:{id:"edit-config",role:"tabpanel"}},[o("form",{staticClass:"form-inline row",on:{submit:function(t){t.preventDefault()}}},[o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",{staticClass:"mr-2"},[t._v("停止模式:")]),o("div",{staticClass:"form-check ml-4 ml-sm-0 mr-sm-2"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.autoStop,expression:"config.autoStop"}],staticClass:"form-check-input",attrs:{id:"autoStopTrue",type:"radio",name:"autoStop",checked:"checked"},domProps:{value:!0,checked:t._q(t.config.autoStop,!0)},on:{change:function(e){t.$set(t.config,"autoStop",!0)}}}),o("label",{attrs:{for:"autoStopTrue"}},[t._v("自動")])]),o("div",{staticClass:"form-check ml-4 ml-sm-0"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.autoStop,expression:"config.autoStop"}],staticClass:"form-check-input",attrs:{id:"autoStopFalse",type:"radio",name:"autoStop"},domProps:{value:!1,checked:t._q(t.config.autoStop,!1)},on:{change:function(e){t.$set(t.config,"autoStop",!1)}}}),o("label",{attrs:{for:"autoStopFalse"}},[t._v("手動")])])]),o("div",{staticClass:"form-group w-100 mb-3 col-md-8"},[o("label",{staticClass:"mr-2"},[t._v("轉出資訊:")]),o("div",{staticClass:"form-check ml-4 ml-sm-0 mr-sm-2"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.showAlert,expression:"config.showAlert"}],staticClass:"form-check-input",attrs:{id:"showAlertTrue",type:"radio",name:"showAlert",checked:"checked"},domProps:{value:!0,checked:t._q(t.config.showAlert,!0)},on:{change:function(e){t.$set(t.config,"showAlert",!0)}}}),o("label",{attrs:{for:"showAlertTrue"}},[t._v("顯示")])]),o("div",{staticClass:"form-check ml-4 ml-sm-0"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.showAlert,expression:"config.showAlert"}],staticClass:"form-check-input",attrs:{id:"showAlertFalse",type:"radio",name:"showAlert"},domProps:{value:!1,checked:t._q(t.config.showAlert,!1)},on:{change:function(e){t.$set(t.config,"showAlert",!1)}}}),o("label",{attrs:{for:"showAlertFalse"}},[t._v("關閉")])])]),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v(t._s(t.config.autoStop?"動畫時間長度(s):":"轉10圈的轉速(s):"))]),o("input",{directives:[{name:"model",rawName:"v-model.number",value:t.config.runTime,expression:"config.runTime",modifiers:{number:!0}}],staticClass:"form-control form-control-sm w-100",attrs:{type:"number",min:"1",step:"1"},domProps:{value:t.config.runTime},on:{input:function(e){e.target.composing||t.$set(t.config,"runTime",t._n(e.target.value))},blur:function(e){t.$forceUpdate()}}})]),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("轉盤尺寸設定(px):")]),o("input",{directives:[{name:"model",rawName:"v-model.number",value:t.config.baseSize,expression:"config.baseSize",modifiers:{number:!0}}],staticClass:"form-control form-control-sm w-100",attrs:{type:"number",step:"1",min:"150"},domProps:{value:t.config.baseSize},on:{input:function(e){e.target.composing||t.$set(t.config,"baseSize",t._n(e.target.value))},blur:function(e){t.$forceUpdate()}}})]),t.config.autoStop?o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("最大回彈角度(百分比):")]),o("input",{directives:[{name:"model",rawName:"v-model.number",value:t.config.rollBackRange,expression:"config.rollBackRange",modifiers:{number:!0}}],staticClass:"form-control form-control-sm w-100",attrs:{type:"number",step:"0.01",min:"0.1",max:"1",readonly:!t.config.autoStop},domProps:{value:t.config.rollBackRange},on:{input:function(e){e.target.composing||t.$set(t.config,"rollBackRange",t._n(e.target.value))},blur:function(e){t.$forceUpdate()}}})]):t._e(),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("區塊預設色(單數):")]),o("div",{staticClass:"input-group w-100"},[t.isMobile?t._e():o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.singleColor,expression:"config.singleColor"}],staticClass:"mx-1 my-1",style:{width:"25px"},attrs:{type:"color"},domProps:{value:t.config.singleColor},on:{input:function(e){e.target.composing||t.$set(t.config,"singleColor",e.target.value)}}}),o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.singleColor,expression:"config.singleColor"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.config.singleColor},on:{input:function(e){e.target.composing||t.$set(t.config,"singleColor",e.target.value)}}})])]),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("區塊預設色(雙數):")]),o("div",{staticClass:"input-group w-100"},[t.isMobile?t._e():o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.doubleColor,expression:"config.doubleColor"}],staticClass:"mx-1 my-1",style:{width:"25px"},attrs:{type:"color"},domProps:{value:t.config.doubleColor},on:{input:function(e){e.target.composing||t.$set(t.config,"doubleColor",e.target.value)}}}),o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.doubleColor,expression:"config.doubleColor"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.config.doubleColor},on:{input:function(e){e.target.composing||t.$set(t.config,"doubleColor",e.target.value)}}})])]),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("區塊邊框寬度:")]),o("input",{directives:[{name:"model",rawName:"v-model.number",value:t.config.borderWidth,expression:"config.borderWidth",modifiers:{number:!0}}],staticClass:"form-control form-control-sm w-100",attrs:{type:"number",min:"1",step:"1"},domProps:{value:t.config.borderWidth},on:{input:function(e){e.target.composing||t.$set(t.config,"borderWidth",t._n(e.target.value))},blur:function(e){t.$forceUpdate()}}})]),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("按鈕顏色:")]),o("div",{staticClass:"input-group w-100"},[t.isMobile?t._e():o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.buttonColor,expression:"config.buttonColor"}],staticClass:"mx-1 my-1",style:{width:"25px"},attrs:{type:"color"},domProps:{value:t.config.buttonColor},on:{input:function(e){e.target.composing||t.$set(t.config,"buttonColor",e.target.value)}}}),o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.buttonColor,expression:"config.buttonColor"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.config.buttonColor},on:{input:function(e){e.target.composing||t.$set(t.config,"buttonColor",e.target.value)}}})])]),o("div",{staticClass:"form-group w-100 mb-3 col-md-8"},[o("label",[t._v("按鈕文字:")]),o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.buttonText,expression:"config.buttonText"}],staticClass:"form-control form-control-sm w-100",attrs:{type:"text"},domProps:{value:t.config.buttonText},on:{input:function(e){e.target.composing||t.$set(t.config,"buttonText",e.target.value)}}})])])]),o("div",{staticClass:"tab-pane fade py-3 px-1",attrs:{id:"dataList",role:"tabpanel"}},[t._l(t.dataList,function(e,a){return[o("button",{staticClass:"btn btn-sm btn-outline-info px-3 m-1",on:{click:function(e){e.preventDefault(),t.loadData(a)}}},[t._v(t._s(e.dataName))])]})],2)])]),o("div",{staticClass:"modal-footer"},[o("form",{staticClass:"form-inline",on:{submit:function(t){t.preventDefault()}}},[o("label",{staticClass:"mr-2"},[t._v("設定檔名稱:")]),o("input",{directives:[{name:"model",rawName:"v-model",value:t.dataName,expression:"dataName"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.dataName},on:{input:function(e){e.target.composing||(t.dataName=e.target.value)}}})]),o("button",{staticClass:"btn btn-sm btn-outline-primary mx-1 px-3",on:{click:function(e){e.preventDefault(),t.newData(e)}}},[t._v("新增")]),o("button",{staticClass:"btn btn-sm btn-outline-success mx-1 px-3",on:{click:function(e){e.preventDefault(),t.saveData()}}},[t._v("儲存")]),0!==t.dataNo?o("button",{staticClass:"btn btn-sm btn-outline-danger mx-1 px-3",on:{click:function(e){e.preventDefault(),t.deleteData(t.dataNo)}}},[t._v("刪除")]):t._e(),o("button",{staticClass:"btn btn-sm btn-outline-secondary mx-1 px-3",on:{click:function(e){e.preventDefault(),t.setDefaultDatas()}}},[t._v("預設")]),o("button",{staticClass:"btn btn-sm btn-secondary",attrs:{"data-dismiss":"modal"}},[t._v("關閉")])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title"},[this._v("轉出結果")]),e("button",{staticClass:"close",attrs:{"data-dismiss":"modal"}},[e("span",[this._v("×")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",{staticClass:"text-center"},[e("tr",[e("th",{staticClass:"text-center",attrs:{scope:"col"}},[this._v("No")]),e("th",{staticClass:"text-center",attrs:{scope:"col"}},[this._v("內容")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{"data-dismiss":"modal"}},[e("span",[this._v("×")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs",attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item text-center"},[e("a",{staticClass:"nav-link active",attrs:{"data-toggle":"tab",href:"#edit-data",role:"tab"}},[this._v("區塊設定")])]),e("li",{staticClass:"nav-item text-center"},[e("a",{staticClass:"nav-link",attrs:{"data-toggle":"tab",href:"#edit-config",role:"tab"}},[this._v("轉盤設定")])]),e("li",{staticClass:"nav-item text-center"},[e("a",{staticClass:"nav-link",attrs:{"data-toggle":"tab",href:"#dataList",role:"tab"}},[this._v("設定集")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",{staticClass:"text-center"},[e("tr",[e("th",{attrs:{scope:"col",width:"10%"}},[this._v("區塊占比")]),e("th",{attrs:{scope:"col",width:"15%"}},[this._v("背景顏色")]),e("th",{attrs:{scope:"col",width:"15%"}},[this._v("文字顏色")]),e("th",{attrs:{scope:"col",width:"40%"}},[this._v("文字內容")]),e("th",{attrs:{scope:"col",width:"10%"}},[this._v("文字大小")]),e("th",{attrs:{scope:"col",width:"10%"}},[this._v("功能")])])])}]};var f={name:"app",components:{TurnTable:o("VU/8")(d,m,!1,function(t){o("fDjp")},null,null).exports}},g={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("TurnTable")],1)},staticRenderFns:[]},p=o("VU/8")(f,g,!1,null,null,null).exports;a.a.config.productionTip=!1,new a.a({el:"#app",template:"",components:{App:p}})},fDjp:function(t,e){}},["NHnr"]); +//# sourceMappingURL=app.7273dc277f6047410cad.js.map \ No newline at end of file diff --git a/dist/static/js/app.7273dc277f6047410cad.js.map b/dist/static/js/app.7273dc277f6047410cad.js.map new file mode 100644 index 0000000..b525c8d --- /dev/null +++ b/dist/static/js/app.7273dc277f6047410cad.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///src/components/TurnTable.vue","webpack:///./src/components/TurnTable.vue?78b9","webpack:///./src/components/TurnTable.vue","webpack:///src/App.vue","webpack:///./src/App.vue?7c52","webpack:///./src/App.vue","webpack:///./src/main.js"],"names":["TurnTable","draggable","a","defaultGiftTextSize","defaultGiftBackgroundColor","chance","text","textColor","textSize","backgroundColor","edit","state","buideTurnTable","updateturnStatus","gifts","autoStop","totalChance","getDefaultGiftBackgroundColor","userAgent","length","singleColor","setDefaultDatas","dataName","config","currentData","setDataListToLocalStorage","index","getDefaultGfits","getDefaultConfig","dataList","localDatas","gift","clone","setDefaultGift","defaultGifts","value","defaultGift","innerHeight","innerWidth","Math","floor","defaultConfig","localConfig","_this","this","pixelRatio","to","deg","save","beginPath","centerPoint","lastAngle","angle","fill","borderColor","closePath","stroke","baseSize","restore","autoTurnStop","autoTurnStart","manualTrun","isRunning","randomRollBackDeg","randomDeg","_this2","currentDeg","name","buttonColor","runTime","drawCanvas","targetDeg","rollBackDeg","checkMobile","_this3","animitionProc","components_TurnTable","render","_vm","_h","$createElement","_c","_self","staticClass","class","alert--show","currentResult","_v","_s","_e","directives","rawName","expression","animitionType","style","width","height","on","click","buttonText","attrs","id","type","domProps","checked","showButtons","Array","isArray","_i","change","$event","$$a","$$el","target","$$c","$$i","concat","slice","for","data-toggle","data-target","role","_m","_l","result","preventDefault","resultList","data-dismiss","opacity","editAreaOpacity","min","max","step","__r","submit","_q","giftEditMode","list","element","getChance","modifiers","number","input","composing","$set","_n","blur","$forceUpdate","background-color","isMobile","placeholder","editGiftData","removeGiftData","saveGiftData","cancleGiftData","addGiftData","showGiftsToTextArea","setGiftsByTextArea","showAlert","readonly","data","loadData","newData","saveData","dataNo","deleteData","staticRenderFns","scope","href","App","__webpack_require__","normalizeComponent","ssrContext","selectortype_template_index_0_src_App","src_App","App_normalizeComponent","vue_esm","productionTip","el","template","components"],"mappings":"yOAkMAA,QAEA,wBACAC,iBAAAC,qCAIA,YAEA,gBAEA,eAEA,kBAEA,yBAGA,YACA,cAEA,6BAIA,oCAIA,WACA,iCAIA,QACA,aACA,iBACAC,yCACAC,iCAEA,2BAEAC,OAAA,GAAAC,KAAA,MAAAC,UAAA,GAAAC,SAAA,GAAAC,gBAAA,GAAAC,MACA,IAAAL,OAAA,GAAAC,KAAA,OAAAC,UAAA,GAAAC,SAAA,GAAAC,gBAAA,GAAAC,MAEA,uCAIA,UACA,gBACA,eACA,WACA,gBACA,sBACA,sBACA,cACA,oBACA,sBACA,qBAGA,8DAKA,mBACA,uEACAC,oCAMAC,wBAGA,mCAGAA,wBAGA,uCAGAC,0BAIA,6DAIAC,qFAKAC,mEAEAA,4CAIA,6CAEAV,SAEAW,qDAIAC,yFAIA,2FAMAC,6EAIA,uEAIAC,iDACAC,8CAOA,gCACAD,YACAE,4DAKAC,wBACAR,0BAEAS,6CAEAC,QAIAC,8DAIAC,iCACAJ,qCACAR,mCACAS,+EAKA,iBACA,gDAKAI,mCACAC,wEAIAC,mDACAC,kFAIA,iEAMAJ,kBACAK,WACA,6CAGAL,YACAM,cACA,+CAGAN,oBACAM,QACAA,cACA,kDAIA,gDAOAD,WACAE,6DAIAC,6EAIAC,wDAIAC,uDAQAC,qBACAC,gDACAA,EAAAC,KAAAC,MAAA,GAAAF,GAAAC,KAAAC,MACA,GADAH,eAEAI,kEAIAlB,+CACAmB,0BAMA,IAAAC,EAAAC,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GACAF,EAAA,SAaA,KAEA,MAUA,UEvBAG,GADiBhG,OAFjB,WAA0B,IAAaE,EAAbnC,KAAaoC,eAA0BC,EAAvCrC,KAAuCsC,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBmB,OAAOC,GAAA,SAAYpB,EAAA,kBAE5GqF,oBCqBjBQ,EAvBAJ,EAAA,OAcAK,CACAN,EACAI,GATA,EAEA,KAEA,KAEA,MAUA,QChBAG,EAAA,EAAIzJ,OAAO0J,eAAgB,EAG3B,IAAID,EAAA,GACFE,GAAI,OACJC,SAAU,SACVC,YAAcX,IAAAK","file":"static/js/app.7273dc277f6047410cad.js","sourcesContent":["\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/TurnTable.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[(_vm.config.showAlert)?_c('div',{staticClass:\"alert alert-info text-center mx-auto w-75 mt-5 fade\",class:{'alert--show': _vm.currentResult}},[_vm._v(_vm._s(_vm.currentResult))]):_vm._e(),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(true),expression:\"true\"}],staticClass:\"turnTable\"},[_c('div',{staticClass:\"turnTable__body\"},[_c('canvas',{staticClass:\"turnTable__canvas\",class:_vm.animitionType,style:({'width': ((_vm.config.baseSize) + \"px\"), 'height': ((_vm.config.baseSize) + \"px\")})})]),_c('div',{staticClass:\"turnTable__button\",on:{\"click\":_vm.animitionProc}},[_c('div',{staticClass:\"turnTable__arrow\"}),_c('div',{staticClass:\"turnTable__button__content\"},[_c('span',{staticClass:\"turnTable__button__text\"},[_vm._v(_vm._s(_vm.config.buttonText))])])])]),_c('div',{staticClass:\"buttonArea\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.showButtons),expression:\"showButtons\"}],staticClass:\"mx-1\",attrs:{\"id\":\"showButtons\",\"type\":\"checkbox\"},domProps:{\"checked\":!_vm.showButtons,\"checked\":Array.isArray(_vm.showButtons)?_vm._i(_vm.showButtons,null)>-1:(_vm.showButtons)},on:{\"change\":function($event){var $$a=_vm.showButtons,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.showButtons=$$a.concat([$$v]))}else{$$i>-1&&(_vm.showButtons=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.showButtons=$$c}}}}),_c('label',{staticClass:\"text-sm-right\",attrs:{\"for\":\"showButtons\"}},[_vm._v(\"顯示設定\")]),_c('br'),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showButtons),expression:\"showButtons\"}],staticClass:\"buttons\"},[(_vm.config.autoStop)?_c('button',{staticClass:\"btn btn-outline-danger mr-4\",attrs:{\"data-toggle\":\"modal\",\"data-target\":\"#resultList\"}},[_vm._v(\"轉出結果\")]):_vm._e(),_c('button',{staticClass:\"btn btn-outline-info\",attrs:{\"data-toggle\":\"modal\",\"data-target\":\"#dataSetting\"}},[_vm._v(\"轉盤設定\")])])]),(_vm.config.autoStop)?_c('div',{staticClass:\"modal fade\",attrs:{\"id\":\"resultList\"}},[_c('div',{staticClass:\"modal-dialog\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_vm._m(0),_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table table-bordered table-sm\"},[_vm._m(1),_c('tbody',{staticClass:\"text-center\"},_vm._l((_vm.resultList),function(result,index){return _c('tr',[_c('td',{staticClass:\"text-center\"},[_vm._v(_vm._s(index + 1))]),_c('td',{staticClass:\"text-center\"},[_vm._v(_vm._s(result))])])}))])])]),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-sm btn-outline-secondary ml-2 px-3\",on:{\"click\":function($event){$event.preventDefault();_vm.resultList = []}}},[_vm._v(\"清空資訊\")]),_c('button',{staticClass:\"btn btn-sm btn-secondary ml-2 px-3\",attrs:{\"data-dismiss\":\"modal\"}},[_vm._v(\"關閉 \")])])])])]):_vm._e(),_c('div',{staticClass:\"modal fade\",style:({'opacity': _vm.editAreaOpacity}),attrs:{\"id\":\"dataSetting\"}},[_c('div',{staticClass:\"modal-dialog modal-lg\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\"},[_vm._v(\"轉盤資訊設定\")]),_c('label',{staticClass:\"text-sm ml-3\"},[_vm._v(\"| 背景透明度:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editAreaOpacity),expression:\"editAreaOpacity\"}],attrs:{\"type\":\"range\",\"min\":\"0.1\",\"max\":\"1\",\"step\":\"0.1\"},domProps:{\"value\":(_vm.editAreaOpacity)},on:{\"__r\":function($event){_vm.editAreaOpacity=$event.target.value}}}),_vm._m(2)]),_c('div',{staticClass:\"modal-body\"},[_vm._m(3),_c('div',{staticClass:\"tab-content\"},[_c('div',{staticClass:\"tab-pane fade show active py-3 px-1\",attrs:{\"id\":\"edit-data\",\"role\":\"tabpanel\"}},[_c('form',{staticClass:\"form-inline\",on:{\"submit\":function($event){$event.preventDefault();}}},[_c('div',{staticClass:\"form-group w-100 mb-2\"},[_c('label',{staticClass:\"mr-2\"},[_vm._v(\"編輯模式:\")]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0 mr-sm-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.giftEditMode),expression:\"giftEditMode\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"editBySet\",\"type\":\"radio\",\"name\":\"editMode\",\"checked\":\"checked\"},domProps:{\"value\":true,\"checked\":_vm._q(_vm.giftEditMode,true)},on:{\"change\":function($event){_vm.giftEditMode=true}}}),_c('label',{attrs:{\"for\":\"editBySet\"}},[_vm._v(\"單塊新增\")])]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.giftEditMode),expression:\"giftEditMode\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"editByData\",\"type\":\"radio\",\"name\":\"editMode\"},domProps:{\"value\":false,\"checked\":_vm._q(_vm.giftEditMode,false)},on:{\"change\":function($event){_vm.giftEditMode=false}}}),_c('label',{attrs:{\"for\":\"editByData\"}},[_vm._v(\"資料編輯(Array-Object)\")])])]),(_vm.giftEditMode)?_c('div',{staticClass:\"editBySet w-100\"},[_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table table-bordered table-sm mt-1\"},[_vm._m(4),_c('draggable',{staticClass:\"dragArea\",attrs:{\"list\":_vm.gifts,\"element\":'tbody'}},_vm._l((_vm.gifts),function(gift,index){return _c('tr',[_c('td',[_c('div',{staticClass:\"input-group justify-content-center\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}]},[_vm._v(_vm._s(_vm.getChance(gift.chance)))]),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model.number\",value:(gift.chance),expression:\"gift.chance\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"number\",\"min\":\"1\",\"step\":\"0.1\"},domProps:{\"value\":(gift.chance)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"chance\", _vm._n($event.target.value))},\"blur\":function($event){_vm.$forceUpdate()}}})])]),_c('td',{style:({'background-color': gift.backgroundColor || _vm.getDefaultGiftBackgroundColor(index)})},[_c('div',{staticClass:\"input-group justify-content-center\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}]},[_vm._v(_vm._s(gift.backgroundColor || '預設'))]),(!_vm.isMobile)?_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.backgroundColor),expression:\"gift.backgroundColor\"}],staticClass:\"mx-1\",style:({ width: '25px' }),attrs:{\"type\":\"color\"},domProps:{\"value\":(gift.backgroundColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"backgroundColor\", $event.target.value)}}}):_vm._e(),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.backgroundColor),expression:\"gift.backgroundColor\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\",\"placeholder\":_vm.getDefaultGiftBackgroundColor()},domProps:{\"value\":(gift.backgroundColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"backgroundColor\", $event.target.value)}}})])]),_c('td',{style:({'background-color': gift.textColor || _vm.config.textColor })},[_c('div',{staticClass:\"input-group justify-content-center\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}]},[_vm._v(_vm._s(gift.textColor || '預設'))]),(!_vm.isMobile)?_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.textColor),expression:\"gift.textColor\"}],staticClass:\"mx-1\",style:({ width: '25px' }),attrs:{\"type\":\"color\"},domProps:{\"value\":(gift.textColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"textColor\", $event.target.value)}}}):_vm._e(),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.textColor),expression:\"gift.textColor\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\",\"placeholder\":_vm.config.textColor},domProps:{\"value\":(gift.textColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"textColor\", $event.target.value)}}})])]),_c('td',[_c('div',{staticClass:\"input-group\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}]},[_vm._v(_vm._s(gift.text))]),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.text),expression:\"gift.text\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(gift.text)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"text\", $event.target.value)}}})])]),_c('td',[_c('div',{staticClass:\"input-group justify-content-center\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}]},[_vm._v(_vm._s(gift.textSize || '預設'))]),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.textSize),expression:\"gift.textSize\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"number\"},domProps:{\"value\":(gift.textSize)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"textSize\", $event.target.value)}}})])]),_c('td',[_c('div',{staticClass:\"input-group text-center justify-content-center\"},[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}],staticClass:\"btn btn-sm btn-outline-info mx-1\",on:{\"click\":function($event){$event.preventDefault();_vm.editGiftData(index)}}},[_vm._v(\"編輯\")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}],staticClass:\"btn btn-sm btn-outline-danger mx-1\",on:{\"click\":function($event){$event.preventDefault();_vm.removeGiftData(index)}}},[_vm._v(\"移除\")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"}],staticClass:\"btn btn-sm btn-outline-success mx-1\",on:{\"click\":function($event){$event.preventDefault();_vm.saveGiftData(index)}}},[_vm._v(\"儲存\")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"}],staticClass:\"btn btn-sm btn-outline-secondary mx-1\",on:{\"click\":function($event){$event.preventDefault();_vm.cancleGiftData(index)}}},[_vm._v(\"取消\")])])])])}))],1)]),_c('button',{staticClass:\"btn btn-sm btn-outline-success px-5 mx-1\",on:{\"click\":_vm.addGiftData}},[_vm._v(\"新增區塊\")])]):_c('div',{staticClass:\"editByDate w-100 my-2\"},[_c('textarea',{staticClass:\"form-control form-control-sm w-100\",domProps:{\"value\":_vm.showGiftsToTextArea},on:{\"input\":_vm.setGiftsByTextArea}})])])]),_c('div',{staticClass:\"tab-pane fade py-3 px-1\",attrs:{\"id\":\"edit-config\",\"role\":\"tabpanel\"}},[_c('form',{staticClass:\"form-inline row\",on:{\"submit\":function($event){$event.preventDefault();}}},[_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',{staticClass:\"mr-2\"},[_vm._v(\"停止模式:\")]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0 mr-sm-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.autoStop),expression:\"config.autoStop\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"autoStopTrue\",\"type\":\"radio\",\"name\":\"autoStop\",\"checked\":\"checked\"},domProps:{\"value\":true,\"checked\":_vm._q(_vm.config.autoStop,true)},on:{\"change\":function($event){_vm.$set(_vm.config, \"autoStop\", true)}}}),_c('label',{attrs:{\"for\":\"autoStopTrue\"}},[_vm._v(\"自動\")])]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.autoStop),expression:\"config.autoStop\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"autoStopFalse\",\"type\":\"radio\",\"name\":\"autoStop\"},domProps:{\"value\":false,\"checked\":_vm._q(_vm.config.autoStop,false)},on:{\"change\":function($event){_vm.$set(_vm.config, \"autoStop\", false)}}}),_c('label',{attrs:{\"for\":\"autoStopFalse\"}},[_vm._v(\"手動\")])])]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-8\"},[_c('label',{staticClass:\"mr-2\"},[_vm._v(\"轉出資訊:\")]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0 mr-sm-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.showAlert),expression:\"config.showAlert\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"showAlertTrue\",\"type\":\"radio\",\"name\":\"showAlert\",\"checked\":\"checked\"},domProps:{\"value\":true,\"checked\":_vm._q(_vm.config.showAlert,true)},on:{\"change\":function($event){_vm.$set(_vm.config, \"showAlert\", true)}}}),_c('label',{attrs:{\"for\":\"showAlertTrue\"}},[_vm._v(\"顯示\")])]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.showAlert),expression:\"config.showAlert\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"showAlertFalse\",\"type\":\"radio\",\"name\":\"showAlert\"},domProps:{\"value\":false,\"checked\":_vm._q(_vm.config.showAlert,false)},on:{\"change\":function($event){_vm.$set(_vm.config, \"showAlert\", false)}}}),_c('label',{attrs:{\"for\":\"showAlertFalse\"}},[_vm._v(\"關閉\")])])]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(_vm._s(_vm.config.autoStop ? '動畫時間長度(s):' : '轉10圈的轉速(s):'))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.config.runTime),expression:\"config.runTime\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control-sm w-100\",attrs:{\"type\":\"number\",\"min\":\"1\",\"step\":\"1\"},domProps:{\"value\":(_vm.config.runTime)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"runTime\", _vm._n($event.target.value))},\"blur\":function($event){_vm.$forceUpdate()}}})]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"轉盤尺寸設定(px):\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.config.baseSize),expression:\"config.baseSize\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control-sm w-100\",attrs:{\"type\":\"number\",\"step\":\"1\",\"min\":\"150\"},domProps:{\"value\":(_vm.config.baseSize)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"baseSize\", _vm._n($event.target.value))},\"blur\":function($event){_vm.$forceUpdate()}}})]),(_vm.config.autoStop)?_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"最大回彈角度(百分比):\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.config.rollBackRange),expression:\"config.rollBackRange\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control-sm w-100\",attrs:{\"type\":\"number\",\"step\":\"0.01\",\"min\":\"0.1\",\"max\":\"1\",\"readonly\":!_vm.config.autoStop},domProps:{\"value\":(_vm.config.rollBackRange)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"rollBackRange\", _vm._n($event.target.value))},\"blur\":function($event){_vm.$forceUpdate()}}})]):_vm._e(),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"區塊預設色(單數):\")]),_c('div',{staticClass:\"input-group w-100\"},[(!_vm.isMobile)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.singleColor),expression:\"config.singleColor\"}],staticClass:\"mx-1 my-1\",style:({ width: '25px' }),attrs:{\"type\":\"color\"},domProps:{\"value\":(_vm.config.singleColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"singleColor\", $event.target.value)}}}):_vm._e(),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.singleColor),expression:\"config.singleColor\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.config.singleColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"singleColor\", $event.target.value)}}})])]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"區塊預設色(雙數):\")]),_c('div',{staticClass:\"input-group w-100\"},[(!_vm.isMobile)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.doubleColor),expression:\"config.doubleColor\"}],staticClass:\"mx-1 my-1\",style:({ width: '25px' }),attrs:{\"type\":\"color\"},domProps:{\"value\":(_vm.config.doubleColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"doubleColor\", $event.target.value)}}}):_vm._e(),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.doubleColor),expression:\"config.doubleColor\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.config.doubleColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"doubleColor\", $event.target.value)}}})])]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"區塊邊框寬度:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.config.borderWidth),expression:\"config.borderWidth\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control-sm w-100\",attrs:{\"type\":\"number\",\"min\":\"1\",\"step\":\"1\"},domProps:{\"value\":(_vm.config.borderWidth)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"borderWidth\", _vm._n($event.target.value))},\"blur\":function($event){_vm.$forceUpdate()}}})]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"按鈕顏色:\")]),_c('div',{staticClass:\"input-group w-100\"},[(!_vm.isMobile)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.buttonColor),expression:\"config.buttonColor\"}],staticClass:\"mx-1 my-1\",style:({ width: '25px' }),attrs:{\"type\":\"color\"},domProps:{\"value\":(_vm.config.buttonColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"buttonColor\", $event.target.value)}}}):_vm._e(),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.buttonColor),expression:\"config.buttonColor\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.config.buttonColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"buttonColor\", $event.target.value)}}})])]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-8\"},[_c('label',[_vm._v(\"按鈕文字:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.buttonText),expression:\"config.buttonText\"}],staticClass:\"form-control form-control-sm w-100\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.config.buttonText)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"buttonText\", $event.target.value)}}})])])]),_c('div',{staticClass:\"tab-pane fade py-3 px-1\",attrs:{\"id\":\"dataList\",\"role\":\"tabpanel\"}},[_vm._l((_vm.dataList),function(data,index){return [_c('button',{staticClass:\"btn btn-sm btn-outline-info px-3 m-1\",on:{\"click\":function($event){$event.preventDefault();_vm.loadData(index)}}},[_vm._v(_vm._s(data.dataName))])]})],2)])]),_c('div',{staticClass:\"modal-footer\"},[_c('form',{staticClass:\"form-inline\",on:{\"submit\":function($event){$event.preventDefault();}}},[_c('label',{staticClass:\"mr-2\"},[_vm._v(\"設定檔名稱:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.dataName),expression:\"dataName\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.dataName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.dataName=$event.target.value}}})]),_c('button',{staticClass:\"btn btn-sm btn-outline-primary mx-1 px-3\",on:{\"click\":function($event){$event.preventDefault();_vm.newData($event)}}},[_vm._v(\"新增\")]),_c('button',{staticClass:\"btn btn-sm btn-outline-success mx-1 px-3\",on:{\"click\":function($event){$event.preventDefault();_vm.saveData()}}},[_vm._v(\"儲存\")]),(_vm.dataNo !== 0)?_c('button',{staticClass:\"btn btn-sm btn-outline-danger mx-1 px-3\",on:{\"click\":function($event){$event.preventDefault();_vm.deleteData(_vm.dataNo)}}},[_vm._v(\"刪除\")]):_vm._e(),_c('button',{staticClass:\"btn btn-sm btn-outline-secondary mx-1 px-3\",on:{\"click\":function($event){$event.preventDefault();_vm.setDefaultDatas()}}},[_vm._v(\"預設\")]),_c('button',{staticClass:\"btn btn-sm btn-secondary\",attrs:{\"data-dismiss\":\"modal\"}},[_vm._v(\"關閉\")])])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\"},[_vm._v(\"轉出結果\")]),_c('button',{staticClass:\"close\",attrs:{\"data-dismiss\":\"modal\"}},[_c('span',[_vm._v(\"×\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',{staticClass:\"text-center\"},[_c('tr',[_c('th',{staticClass:\"text-center\",attrs:{\"scope\":\"col\"}},[_vm._v(\"No\")]),_c('th',{staticClass:\"text-center\",attrs:{\"scope\":\"col\"}},[_vm._v(\"內容\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"close\",attrs:{\"data-dismiss\":\"modal\"}},[_c('span',[_vm._v(\"×\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:\"nav nav-tabs\",attrs:{\"role\":\"tablist\"}},[_c('li',{staticClass:\"nav-item text-center\"},[_c('a',{staticClass:\"nav-link active\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#edit-data\",\"role\":\"tab\"}},[_vm._v(\"區塊設定\")])]),_c('li',{staticClass:\"nav-item text-center\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#edit-config\",\"role\":\"tab\"}},[_vm._v(\"轉盤設定\")])]),_c('li',{staticClass:\"nav-item text-center\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#dataList\",\"role\":\"tab\"}},[_vm._v(\"設定集\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',{staticClass:\"text-center\"},[_c('tr',[_c('th',{attrs:{\"scope\":\"col\",\"width\":\"10%\"}},[_vm._v(\"區塊占比\")]),_c('th',{attrs:{\"scope\":\"col\",\"width\":\"15%\"}},[_vm._v(\"背景顏色\")]),_c('th',{attrs:{\"scope\":\"col\",\"width\":\"15%\"}},[_vm._v(\"文字顏色\")]),_c('th',{attrs:{\"scope\":\"col\",\"width\":\"40%\"}},[_vm._v(\"文字內容\")]),_c('th',{attrs:{\"scope\":\"col\",\"width\":\"10%\"}},[_vm._v(\"文字大小\")]),_c('th',{attrs:{\"scope\":\"col\",\"width\":\"10%\"}},[_vm._v(\"功能\")])])])}]\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-67d87fa6\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/template-compiler/preprocessor.js?engine=pug!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/TurnTable.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-67d87fa6\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./TurnTable.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./TurnTable.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./TurnTable.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-67d87fa6\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/template-compiler/preprocessor?engine=pug!../../node_modules/vue-loader/lib/selector?type=template&index=0!./TurnTable.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/TurnTable.vue\n// module id = null\n// module chunks = ","\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('TurnTable')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-4f4f84a5\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","var normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-4f4f84a5\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport 'bootstrap';\nimport 'bootstrap/dist/css/bootstrap.css';\nimport Vue from 'vue';\nimport App from './App';\n\nVue.config.productionTip = false;\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n template: '',\n components: { App },\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/static/js/app.cd63b65786e657aa4830.js b/dist/static/js/app.cd63b65786e657aa4830.js deleted file mode 100644 index 069af52..0000000 --- a/dist/static/js/app.cd63b65786e657aa4830.js +++ /dev/null @@ -1,2 +0,0 @@ -webpackJsonp([1],{Jmt5:function(t,e){},NHnr:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});o("K3J8"),o("Jmt5");var a=o("7+uW"),i=o("woOf"),s=o.n(i),n=o("c/Tr"),r=o.n(n),l=o("mvHQ"),c=o.n(l),u=o("DAYN"),d={name:"TurnTable",components:{draggable:o.n(u).a},data:function(){return{isRunning:!1,isMobile:!1,giftEditMode:!0,showButtons:!0,editAreaOpacity:1,turnStatus:{currentDeg:0,targetDeg:0,rollBackDeg:0},giftDegs:[],currentResult:"",resultList:[],dataList:[],dataNo:0,dataName:"預設",gift:{},defaultGift:{chance:10,text:"",textColor:"",textSize:this.defaultGiftTextSize,backgroundColor:this.defaultGiftBackgroundColor,edit:!0},gifts:[],defaultGifts:[{chance:10,text:"RED",textColor:"",textSize:"",backgroundColor:"",edit:!1},{chance:10,text:"BLUE",textColor:"",textSize:"",backgroundColor:"",edit:!1}],config:{},defaultConfig:{autoStop:!0,runTime:6,rollBackRange:.25,showAlert:!0,baseSize:500,singleColor:"#b0e0e6",doubleColor:"#e4c6d0",borderWidth:1,borderColor:"#ffffff",textColor:"#ffffff",buttonColor:"#f19393",buttonText:"GO"}}},watch:{isRunning:function(t){if(!this.config.autoStop){var e=t?"running":"paused";document.documentElement.style.setProperty("--animitionState",e)}},gifts:{handler:function(){this.buideTurnTable()},deep:!0},config:{handler:function(){this.buideTurnTable()},deep:!0},turnStatus:{handler:function(){this.updateturnStatus()},deep:!0}},computed:{showGiftsToTextArea:function(){return c()(this.gifts)},animitionType:function(){return{"turnTable__canvas--manualTrun":!this.config.autoStop,"turnTable__canvas--autoTrun":this.isRunning&&this.config.autoStop}},countDataChance:function(){var t=0;return this.gifts.forEach(function(e){t+=e.chance}),t},defaultGiftBackgroundColor:function(){return this.getDefaultGiftBackgroundColor()},pixelRatio:function(){return 2*window.devicePixelRatio||2}},methods:{checkMobile:function(){return/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)},getChance:function(t){return(t/this.countDataChance*100).toFixed(1)+"%"},getDefaultGiftBackgroundColor:function(t){return(t||this.gifts.length)%2==0?this.config.doubleColor:this.config.singleColor},newData:function(){this.dataName="未命名",this.dataNo=this.dataList.length,this.setDefaultDatas()},saveData:function(){var t={dataName:this.dataName,gifts:r()(this.gifts),config:s()({},this.config)};this.$set(this.dataList,this.dataNo,t),this.setDataListToLocalStorage()},loadData:function(t){this.dataNo=t,this.dataName=this.dataList[t].dataName,this.gifts=this.dataList[t].gifts,this.config=this.dataList[t].config},deleteData:function(t){confirm("確定刪除這個設定檔嗎?")&&(this.dataList.splice(t,1),this.loadData(0))},setDefaultDatas:function(){this.gifts=this.getDefaultGfits(),this.config=this.getDefaultConfig()},setDataListToLocalStorage:function(){var t=c()(this.dataList);localStorage.setItem("turnTableDataList",t)},getDataListFromLocalStorage:function(){return JSON.parse(localStorage.getItem("turnTableDataList"))},editGiftData:function(t){var e=this.gifts[t];e.clone=s()({},e),e.edit=!0},saveGiftData:function(t){var e=this.gifts[t];delete e.clone,e.edit=!1},cancleGiftData:function(t){var e=this.gifts[t];delete(e=s()(e,e.clone)).clone,e.edit=!1},removeGiftData:function(t){this.gifts.splice(t,1)},addGiftData:function(){this.gifts.push(this.gift),this.setDefaultGift()},getDefaultGfits:function(){return r()(this.defaultGifts)},setGiftsByTextArea:function(t){this.gifts=JSON.parse(t.target.value)},setDefaultGift:function(){this.gift=s()({},this.defaultGift)},getDefaultConfig:function(){var t=window.innerHeight,e=window.innerWidth;return this.defaultConfig.baseSize=t>e?Math.floor(.8*e):Math.floor(.6*t),s()({},this.defaultConfig)},setConfigToLocalStorage:function(){var t=c()(this.config);localStorage.setItem("turnTableConfig",t)},drawCanvas:function(){var t=this,e=this.config.baseSize*(this.pixelRatio/2),o=document.querySelector(".turnTable__canvas"),a=o.getContext("2d");o.setAttribute("width",this.config.baseSize*this.pixelRatio),o.setAttribute("height",this.config.baseSize*this.pixelRatio),this.giftDegs=[];var i=0;this.gifts.forEach(function(o,s){var n=o.chance/t.countDataChance*360,r=n*(Math.PI/180);t.giftDegs[s]={from:0===s?0:t.giftDegs[s-1].to,to:0===s?n:t.giftDegs[s-1].to+n,name:o.text},a.save(),a.beginPath(),a.translate(e,e),a.moveTo(0,0),a.rotate(i),a.arc(0,0,e-t.config.borderWidth,0,r,!1),i+=r,a.fillStyle=o.backgroundColor||t.getDefaultGiftBackgroundColor(s),a.fill(),a.lineWidth=t.config.borderWidth*t.pixelRatio,a.strokeStyle=t.config.borderColor,a.stroke(),a.rotate(r/2),a.fillStyle=o.textColor||t.config.textColor,a.font=o.textSize?o.textSize+"px Microsoft JhengHei":t.config.baseSize/o.text.length*(t.pixelRatio/4)+"px Microsoft JhengHei",a.textBaseline="middle",a.fillText(o.text,e/2.25,0),a.restore()}),this.config.autoStop?o.addEventListener("animationend",this.autoTurnStop):o.removeEventListener("animationend",this.autoTurnStop)},animitionProc:function(){this.config.autoStop?this.autoTurnStart():this.manualTrun()},manualTrun:function(){this.isRunning=!this.isRunning},autoTurnStart:function(){if(!this.isRunning){var t=Math.floor(360*Math.random())+3600,e=Math.random()*this.config.rollBackRange+1;this.turnStatus.rollBackDeg=e<1.01?1:e,this.turnStatus.targetDeg=t,this.isRunning=!0}},autoTurnStop:function(){var t=this;this.isRunning=!1,this.turnStatus.currentDeg=Math.floor(this.turnStatus.targetDeg%360);var e=360-this.turnStatus.currentDeg;this.giftDegs.forEach(function(o){e>=o.from&&e<=o.to&&(t.resultList.push(o.name),t.currentResult=o.name,setTimeout(function(){t.currentResult=""},3500))})},buideTurnTable:function(){document.documentElement.style.setProperty("--turnTableSize",this.config.baseSize+20+"px"),document.documentElement.style.setProperty("--buttonSize",this.config.baseSize/3.5+"px"),document.documentElement.style.setProperty("--buttonFontSize",this.config.baseSize/10+"px"),document.documentElement.style.setProperty("--arrowHeight",this.config.baseSize/7+"px"),document.documentElement.style.setProperty("--arrowWidth",this.config.baseSize/5+"px"),document.documentElement.style.setProperty("--buttonColor",""+this.config.buttonColor),document.documentElement.style.setProperty("--runTime",this.config.runTime+"s"),document.documentElement.style.setProperty("--animitionState","paused"),this.resultList=[],this.drawCanvas()},updateturnStatus:function(){document.documentElement.style.setProperty("--targetDeg",this.turnStatus.targetDeg+"deg"),document.documentElement.style.setProperty("--currentDeg",this.turnStatus.currentDeg+"deg"),document.documentElement.style.setProperty("--rollBackDeg",""+this.turnStatus.rollBackDeg)}},beforeMount:function(){this.isMobile=this.checkMobile(),this.setDefaultGift(),this.dataList=this.getDataListFromLocalStorage()||[],this.dataName=this.dataList[0]?this.dataList[0].dataName:this.dataName,this.config=this.dataList[0]?this.dataList[0].config:this.getDefaultConfig(),this.gifts=this.dataList[0]?this.dataList[0].gifts:this.getDefaultGfits()},mounted:function(){var t=this;this.buideTurnTable(),document.addEventListener("keypress",function(e){32===e.keyCode&&t.animitionProc()})}},m={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"container"},[t.config.showAlert?o("div",{staticClass:"alert alert-info text-center mx-auto w-75 mt-5 fade",class:{"alert--show":t.currentResult}},[t._v(t._s(t.currentResult))]):t._e(),o("div",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],staticClass:"turnTable"},[o("div",{staticClass:"turnTable__body"},[o("canvas",{staticClass:"turnTable__canvas",class:t.animitionType,style:{width:t.config.baseSize+"px",height:t.config.baseSize+"px"}})]),o("div",{staticClass:"turnTable__button",on:{click:t.animitionProc}},[o("div",{staticClass:"turnTable__arrow"}),o("div",{staticClass:"turnTable__button__content"},[o("span",{staticClass:"turnTable__button__text"},[t._v(t._s(t.config.buttonText))])])])]),o("div",{staticClass:"buttonArea"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.showButtons,expression:"showButtons"}],staticClass:"mx-1",attrs:{id:"showButtons",type:"checkbox"},domProps:{checked:!t.showButtons,checked:Array.isArray(t.showButtons)?t._i(t.showButtons,null)>-1:t.showButtons},on:{change:function(e){var o=t.showButtons,a=e.target,i=!!a.checked;if(Array.isArray(o)){var s=t._i(o,null);a.checked?s<0&&(t.showButtons=o.concat([null])):s>-1&&(t.showButtons=o.slice(0,s).concat(o.slice(s+1)))}else t.showButtons=i}}}),o("label",{staticClass:"text-sm-right",attrs:{for:"showButtons"}},[t._v("顯示設定")]),o("br"),o("div",{directives:[{name:"show",rawName:"v-show",value:t.showButtons,expression:"showButtons"}],staticClass:"buttons"},[t.config.autoStop?o("button",{staticClass:"btn btn-outline-danger mr-4",attrs:{"data-toggle":"modal","data-target":"#resultList"}},[t._v("轉出結果")]):t._e(),o("button",{staticClass:"btn btn-outline-info",attrs:{"data-toggle":"modal","data-target":"#dataSetting"}},[t._v("轉盤設定")])])]),t.config.autoStop?o("div",{staticClass:"modal fade",attrs:{id:"resultList"}},[o("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[o("div",{staticClass:"modal-content"},[t._m(0),o("div",{staticClass:"modal-body"},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table table-bordered table-sm"},[t._m(1),o("tbody",{staticClass:"text-center"},t._l(t.resultList,function(e,a){return o("tr",[o("td",{staticClass:"text-center"},[t._v(t._s(a+1))]),o("td",{staticClass:"text-center"},[t._v(t._s(e))])])}))])])]),o("div",{staticClass:"modal-footer"},[o("button",{staticClass:"btn btn-sm btn-outline-secondary ml-2 px-3",on:{click:function(e){e.preventDefault(),t.resultList=[]}}},[t._v("清空資訊")]),o("button",{staticClass:"btn btn-sm btn-secondary ml-2 px-3",attrs:{"data-dismiss":"modal"}},[t._v("關閉 ")])])])])]):t._e(),o("div",{staticClass:"modal fade",style:{opacity:t.editAreaOpacity},attrs:{id:"dataSetting"}},[o("div",{staticClass:"modal-dialog modal-lg",attrs:{role:"document"}},[o("div",{staticClass:"modal-content"},[o("div",{staticClass:"modal-header"},[o("h5",{staticClass:"modal-title"},[t._v("轉盤資訊設定")]),o("label",{staticClass:"text-sm ml-3"},[t._v("| 背景透明度:")]),o("input",{directives:[{name:"model",rawName:"v-model",value:t.editAreaOpacity,expression:"editAreaOpacity"}],attrs:{type:"range",min:"0.1",max:"1",step:"0.1"},domProps:{value:t.editAreaOpacity},on:{__r:function(e){t.editAreaOpacity=e.target.value}}}),t._m(2)]),o("div",{staticClass:"modal-body"},[t._m(3),o("div",{staticClass:"tab-content"},[o("div",{staticClass:"tab-pane fade show active py-3 px-1",attrs:{id:"edit-data",role:"tabpanel"}},[o("form",{staticClass:"form-inline",on:{submit:function(t){t.preventDefault()}}},[o("div",{staticClass:"form-group w-100 mb-2"},[o("label",{staticClass:"mr-2"},[t._v("編輯模式:")]),o("div",{staticClass:"form-check ml-4 ml-sm-0 mr-sm-2"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.giftEditMode,expression:"giftEditMode"}],staticClass:"form-check-input",attrs:{id:"editBySet",type:"radio",name:"editMode",checked:"checked"},domProps:{value:!0,checked:t._q(t.giftEditMode,!0)},on:{change:function(e){t.giftEditMode=!0}}}),o("label",{attrs:{for:"editBySet"}},[t._v("單塊新增")])]),o("div",{staticClass:"form-check ml-4 ml-sm-0"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.giftEditMode,expression:"giftEditMode"}],staticClass:"form-check-input",attrs:{id:"editByData",type:"radio",name:"editMode"},domProps:{value:!1,checked:t._q(t.giftEditMode,!1)},on:{change:function(e){t.giftEditMode=!1}}}),o("label",{attrs:{for:"editByData"}},[t._v("資料編輯(Array-Object)")])])]),t.giftEditMode?o("div",{staticClass:"editBySet w-100"},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table table-bordered table-sm mt-1"},[t._m(4),o("draggable",{staticClass:"dragArea",attrs:{list:t.gifts,element:"tbody"}},t._l(t.gifts,function(e,a){return o("tr",[o("td",[o("div",{staticClass:"input-group justify-content-center"},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}]},[t._v(t._s(t.getChance(e.chance)))]),o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model.number",value:e.chance,expression:"gift.chance",modifiers:{number:!0}}],staticClass:"form-control form-control-sm",attrs:{type:"number",min:"1",step:"0.1"},domProps:{value:e.chance},on:{input:function(o){o.target.composing||t.$set(e,"chance",t._n(o.target.value))},blur:function(e){t.$forceUpdate()}}})])]),o("td",{style:{"background-color":e.backgroundColor||t.getDefaultGiftBackgroundColor(a)}},[o("div",{staticClass:"input-group justify-content-center"},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}]},[t._v(t._s(e.backgroundColor||"預設"))]),t.isMobile?t._e():o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.backgroundColor,expression:"gift.backgroundColor"}],staticClass:"mx-1",style:{width:"25px"},attrs:{type:"color"},domProps:{value:e.backgroundColor},on:{input:function(o){o.target.composing||t.$set(e,"backgroundColor",o.target.value)}}}),o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.backgroundColor,expression:"gift.backgroundColor"}],staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.getDefaultGiftBackgroundColor()},domProps:{value:e.backgroundColor},on:{input:function(o){o.target.composing||t.$set(e,"backgroundColor",o.target.value)}}})])]),o("td",{style:{"background-color":e.textColor||t.config.textColor}},[o("div",{staticClass:"input-group justify-content-center"},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}]},[t._v(t._s(e.textColor||"預設"))]),t.isMobile?t._e():o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.textColor,expression:"gift.textColor"}],staticClass:"mx-1",style:{width:"25px"},attrs:{type:"color"},domProps:{value:e.textColor},on:{input:function(o){o.target.composing||t.$set(e,"textColor",o.target.value)}}}),o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.textColor,expression:"gift.textColor"}],staticClass:"form-control form-control-sm",attrs:{type:"text",placeholder:t.config.textColor},domProps:{value:e.textColor},on:{input:function(o){o.target.composing||t.$set(e,"textColor",o.target.value)}}})])]),o("td",[o("div",{staticClass:"input-group"},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}]},[t._v(t._s(e.text))]),o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.text,expression:"gift.text"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:e.text},on:{input:function(o){o.target.composing||t.$set(e,"text",o.target.value)}}})])]),o("td",[o("div",{staticClass:"input-group justify-content-center"},[o("span",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}]},[t._v(t._s(e.textSize||"預設"))]),o("input",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"},{name:"model",rawName:"v-model",value:e.textSize,expression:"gift.textSize"}],staticClass:"form-control form-control-sm",attrs:{type:"number"},domProps:{value:e.textSize},on:{input:function(o){o.target.composing||t.$set(e,"textSize",o.target.value)}}})])]),o("td",[o("div",{staticClass:"input-group text-center justify-content-center"},[o("button",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}],staticClass:"btn btn-sm btn-outline-info mx-1",on:{click:function(e){e.preventDefault(),t.editGiftData(a)}}},[t._v("編輯")]),o("button",{directives:[{name:"show",rawName:"v-show",value:!e.edit,expression:"!gift.edit"}],staticClass:"btn btn-sm btn-outline-danger mx-1",on:{click:function(e){e.preventDefault(),t.removeGiftData(a)}}},[t._v("移除")]),o("button",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"}],staticClass:"btn btn-sm btn-outline-success mx-1",on:{click:function(e){e.preventDefault(),t.saveGiftData(a)}}},[t._v("儲存")]),o("button",{directives:[{name:"show",rawName:"v-show",value:e.edit,expression:"gift.edit"}],staticClass:"btn btn-sm btn-outline-secondary mx-1",on:{click:function(e){e.preventDefault(),t.cancleGiftData(a)}}},[t._v("取消")])])])])}))],1)]),o("button",{staticClass:"btn btn-sm btn-outline-success px-5 mx-1",on:{click:t.addGiftData}},[t._v("新增區塊")])]):o("div",{staticClass:"editByDate w-100 my-2"},[o("textarea",{staticClass:"form-control form-control-sm w-100",domProps:{value:t.showGiftsToTextArea},on:{input:t.setGiftsByTextArea}})])])]),o("div",{staticClass:"tab-pane fade py-3 px-1",attrs:{id:"edit-config",role:"tabpanel"}},[o("form",{staticClass:"form-inline row",on:{submit:function(t){t.preventDefault()}}},[o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",{staticClass:"mr-2"},[t._v("停止模式:")]),o("div",{staticClass:"form-check ml-4 ml-sm-0 mr-sm-2"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.autoStop,expression:"config.autoStop"}],staticClass:"form-check-input",attrs:{id:"autoStopTrue",type:"radio",name:"autoStop",checked:"checked"},domProps:{value:!0,checked:t._q(t.config.autoStop,!0)},on:{change:function(e){t.$set(t.config,"autoStop",!0)}}}),o("label",{attrs:{for:"autoStopTrue"}},[t._v("自動")])]),o("div",{staticClass:"form-check ml-4 ml-sm-0"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.autoStop,expression:"config.autoStop"}],staticClass:"form-check-input",attrs:{id:"autoStopFalse",type:"radio",name:"autoStop"},domProps:{value:!1,checked:t._q(t.config.autoStop,!1)},on:{change:function(e){t.$set(t.config,"autoStop",!1)}}}),o("label",{attrs:{for:"autoStopFalse"}},[t._v("手動")])])]),o("div",{staticClass:"form-group w-100 mb-3 col-md-8"},[o("label",{staticClass:"mr-2"},[t._v("轉出資訊:")]),o("div",{staticClass:"form-check ml-4 ml-sm-0 mr-sm-2"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.showAlert,expression:"config.showAlert"}],staticClass:"form-check-input",attrs:{id:"showAlertTrue",type:"radio",name:"showAlert",checked:"checked"},domProps:{value:!0,checked:t._q(t.config.showAlert,!0)},on:{change:function(e){t.$set(t.config,"showAlert",!0)}}}),o("label",{attrs:{for:"showAlertTrue"}},[t._v("顯示")])]),o("div",{staticClass:"form-check ml-4 ml-sm-0"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.showAlert,expression:"config.showAlert"}],staticClass:"form-check-input",attrs:{id:"showAlertFalse",type:"radio",name:"showAlert"},domProps:{value:!1,checked:t._q(t.config.showAlert,!1)},on:{change:function(e){t.$set(t.config,"showAlert",!1)}}}),o("label",{attrs:{for:"showAlertFalse"}},[t._v("關閉")])])]),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v(t._s(t.config.autoStop?"動畫時間長度(s):":"轉10圈的轉速(s):"))]),o("input",{directives:[{name:"model",rawName:"v-model.number",value:t.config.runTime,expression:"config.runTime",modifiers:{number:!0}}],staticClass:"form-control form-control-sm w-100",attrs:{type:"number",min:"1",step:"1"},domProps:{value:t.config.runTime},on:{input:function(e){e.target.composing||t.$set(t.config,"runTime",t._n(e.target.value))},blur:function(e){t.$forceUpdate()}}})]),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("轉盤尺寸設定(px):")]),o("input",{directives:[{name:"model",rawName:"v-model.number",value:t.config.baseSize,expression:"config.baseSize",modifiers:{number:!0}}],staticClass:"form-control form-control-sm w-100",attrs:{type:"number",step:"1",min:"150"},domProps:{value:t.config.baseSize},on:{input:function(e){e.target.composing||t.$set(t.config,"baseSize",t._n(e.target.value))},blur:function(e){t.$forceUpdate()}}})]),t.config.autoStop?o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("最大回彈角度(百分比):")]),o("input",{directives:[{name:"model",rawName:"v-model.number",value:t.config.rollBackRange,expression:"config.rollBackRange",modifiers:{number:!0}}],staticClass:"form-control form-control-sm w-100",attrs:{type:"number",step:"0.01",min:"0.1",max:"1",readonly:!t.config.autoStop},domProps:{value:t.config.rollBackRange},on:{input:function(e){e.target.composing||t.$set(t.config,"rollBackRange",t._n(e.target.value))},blur:function(e){t.$forceUpdate()}}})]):t._e(),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("區塊預設色(單數):")]),o("div",{staticClass:"input-group w-100"},[t.isMobile?t._e():o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.singleColor,expression:"config.singleColor"}],staticClass:"mx-1 my-1",style:{width:"25px"},attrs:{type:"color"},domProps:{value:t.config.singleColor},on:{input:function(e){e.target.composing||t.$set(t.config,"singleColor",e.target.value)}}}),o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.singleColor,expression:"config.singleColor"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.config.singleColor},on:{input:function(e){e.target.composing||t.$set(t.config,"singleColor",e.target.value)}}})])]),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("區塊預設色(雙數):")]),o("div",{staticClass:"input-group w-100"},[t.isMobile?t._e():o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.doubleColor,expression:"config.doubleColor"}],staticClass:"mx-1 my-1",style:{width:"25px"},attrs:{type:"color"},domProps:{value:t.config.doubleColor},on:{input:function(e){e.target.composing||t.$set(t.config,"doubleColor",e.target.value)}}}),o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.doubleColor,expression:"config.doubleColor"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.config.doubleColor},on:{input:function(e){e.target.composing||t.$set(t.config,"doubleColor",e.target.value)}}})])]),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("區塊邊框寬度:")]),o("input",{directives:[{name:"model",rawName:"v-model.number",value:t.config.borderWidth,expression:"config.borderWidth",modifiers:{number:!0}}],staticClass:"form-control form-control-sm w-100",attrs:{type:"number",min:"1",step:"1"},domProps:{value:t.config.borderWidth},on:{input:function(e){e.target.composing||t.$set(t.config,"borderWidth",t._n(e.target.value))},blur:function(e){t.$forceUpdate()}}})]),o("div",{staticClass:"form-group w-100 mb-3 col-md-4"},[o("label",[t._v("按鈕顏色:")]),o("div",{staticClass:"input-group w-100"},[t.isMobile?t._e():o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.buttonColor,expression:"config.buttonColor"}],staticClass:"mx-1 my-1",style:{width:"25px"},attrs:{type:"color"},domProps:{value:t.config.buttonColor},on:{input:function(e){e.target.composing||t.$set(t.config,"buttonColor",e.target.value)}}}),o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.buttonColor,expression:"config.buttonColor"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.config.buttonColor},on:{input:function(e){e.target.composing||t.$set(t.config,"buttonColor",e.target.value)}}})])]),o("div",{staticClass:"form-group w-100 mb-3 col-md-8"},[o("label",[t._v("按鈕文字:")]),o("input",{directives:[{name:"model",rawName:"v-model",value:t.config.buttonText,expression:"config.buttonText"}],staticClass:"form-control form-control-sm w-100",attrs:{type:"text"},domProps:{value:t.config.buttonText},on:{input:function(e){e.target.composing||t.$set(t.config,"buttonText",e.target.value)}}})])])]),o("div",{staticClass:"tab-pane fade py-3 px-1",attrs:{id:"dataList",role:"tabpanel"}},[t._l(t.dataList,function(e,a){return[o("button",{staticClass:"btn btn-sm btn-outline-info px-3 m-1",on:{click:function(e){e.preventDefault(),t.loadData(a)}}},[t._v(t._s(e.dataName))])]})],2)])]),o("div",{staticClass:"modal-footer"},[o("form",{staticClass:"form-inline",on:{submit:function(t){t.preventDefault()}}},[o("label",{staticClass:"mr-2"},[t._v("設定檔名稱:")]),o("input",{directives:[{name:"model",rawName:"v-model",value:t.dataName,expression:"dataName"}],staticClass:"form-control form-control-sm",attrs:{type:"text"},domProps:{value:t.dataName},on:{input:function(e){e.target.composing||(t.dataName=e.target.value)}}})]),o("button",{staticClass:"btn btn-sm btn-outline-primary mx-1 px-3",on:{click:function(e){e.preventDefault(),t.newData(e)}}},[t._v("新增")]),o("button",{staticClass:"btn btn-sm btn-outline-success mx-1 px-3",on:{click:function(e){e.preventDefault(),t.saveData()}}},[t._v("儲存")]),0!==t.dataNo?o("button",{staticClass:"btn btn-sm btn-outline-danger mx-1 px-3",on:{click:function(e){e.preventDefault(),t.deleteData(t.dataNo)}}},[t._v("刪除")]):t._e(),o("button",{staticClass:"btn btn-sm btn-outline-secondary mx-1 px-3",on:{click:function(e){e.preventDefault(),t.setDefaultDatas()}}},[t._v("預設")]),o("button",{staticClass:"btn btn-sm btn-secondary",attrs:{"data-dismiss":"modal"}},[t._v("關閉")])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title"},[this._v("轉出結果")]),e("button",{staticClass:"close",attrs:{"data-dismiss":"modal"}},[e("span",[this._v("×")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",{staticClass:"text-center"},[e("tr",[e("th",{staticClass:"text-center",attrs:{scope:"col"}},[this._v("No")]),e("th",{staticClass:"text-center",attrs:{scope:"col"}},[this._v("內容")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{"data-dismiss":"modal"}},[e("span",[this._v("×")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("ul",{staticClass:"nav nav-tabs",attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item text-center"},[e("a",{staticClass:"nav-link active",attrs:{"data-toggle":"tab",href:"#edit-data",role:"tab"}},[this._v("區塊設定")])]),e("li",{staticClass:"nav-item text-center"},[e("a",{staticClass:"nav-link",attrs:{"data-toggle":"tab",href:"#edit-config",role:"tab"}},[this._v("轉盤設定")])]),e("li",{staticClass:"nav-item text-center"},[e("a",{staticClass:"nav-link",attrs:{"data-toggle":"tab",href:"#dataList",role:"tab"}},[this._v("設定集")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("thead",{staticClass:"text-center"},[e("tr",[e("th",{attrs:{scope:"col",width:"10%"}},[this._v("區塊占比")]),e("th",{attrs:{scope:"col",width:"15%"}},[this._v("背景顏色")]),e("th",{attrs:{scope:"col",width:"15%"}},[this._v("文字顏色")]),e("th",{attrs:{scope:"col",width:"40%"}},[this._v("文字內容")]),e("th",{attrs:{scope:"col",width:"10%"}},[this._v("文字大小")]),e("th",{attrs:{scope:"col",width:"10%"}},[this._v("功能")])])])}]};var f={name:"app",components:{TurnTable:o("VU/8")(d,m,!1,function(t){o("pYhO")},null,null).exports}},g={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[e("TurnTable")],1)},staticRenderFns:[]},p=o("VU/8")(f,g,!1,null,null,null).exports;a.a.config.productionTip=!1,new a.a({el:"#app",template:"",components:{App:p}})},pYhO:function(t,e){}},["NHnr"]); -//# sourceMappingURL=app.cd63b65786e657aa4830.js.map \ No newline at end of file diff --git a/dist/static/js/app.cd63b65786e657aa4830.js.map b/dist/static/js/app.cd63b65786e657aa4830.js.map deleted file mode 100644 index 166fe8a..0000000 --- a/dist/static/js/app.cd63b65786e657aa4830.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///src/components/TurnTable.vue","webpack:///./src/components/TurnTable.vue?99b2","webpack:///./src/components/TurnTable.vue","webpack:///src/App.vue","webpack:///./src/App.vue?7c52","webpack:///./src/App.vue","webpack:///./src/main.js"],"names":["TurnTable","draggable","a","defaultGiftTextSize","defaultGiftBackgroundColor","chance","text","textColor","textSize","backgroundColor","edit","state","buideTurnTable","updateturnStatus","gifts","autoStop","totalChance","getDefaultGiftBackgroundColor","userAgent","length","singleColor","setDefaultDatas","dataName","config","currentData","setDataListToLocalStorage","index","getDefaultGfits","getDefaultConfig","dataList","localDatas","gift","clone","setDefaultGift","defaultGifts","value","defaultGift","innerHeight","innerWidth","Math","floor","defaultConfig","localConfig","_this","this","pixelRatio","to","deg","save","beginPath","centerPoint","lastAngle","angle","fill","borderColor","stroke","baseSize","restore","autoTurnStop","autoTurnStart","manualTrun","isRunning","randomRollBackDeg","randomDeg","_this2","currentDeg","name","buttonColor","runTime","drawCanvas","targetDeg","rollBackDeg","checkMobile","_this3","animitionProc","components_TurnTable","render","_vm","_h","$createElement","_c","_self","staticClass","class","alert--show","currentResult","_v","_s","_e","directives","rawName","expression","animitionType","style","width","height","on","click","buttonText","attrs","id","type","domProps","checked","showButtons","Array","isArray","_i","change","$event","$$a","$$el","target","$$c","$$i","concat","slice","for","data-toggle","data-target","role","_m","_l","result","preventDefault","resultList","data-dismiss","opacity","editAreaOpacity","min","max","step","__r","submit","_q","giftEditMode","list","element","getChance","modifiers","number","input","composing","$set","_n","blur","$forceUpdate","background-color","isMobile","placeholder","editGiftData","removeGiftData","saveGiftData","cancleGiftData","addGiftData","showGiftsToTextArea","setGiftsByTextArea","showAlert","readonly","data","loadData","newData","saveData","dataNo","deleteData","staticRenderFns","scope","href","App","__webpack_require__","normalizeComponent","ssrContext","selectortype_template_index_0_src_App","src_App","App_normalizeComponent","vue_esm","productionTip","el","template","components"],"mappings":"yOAkMAA,QAEA,wBACAC,iBAAAC,qCAIA,YAEA,gBAEA,eAEA,kBAEA,yBAGA,YACA,cAEA,6BAIA,oCAIA,WACA,iCAIA,QACA,aACA,iBACAC,yCACAC,iCAEA,2BAEAC,OAAA,GAAAC,KAAA,MAAAC,UAAA,GAAAC,SAAA,GAAAC,gBAAA,GAAAC,MACA,IAAAL,OAAA,GAAAC,KAAA,OAAAC,UAAA,GAAAC,SAAA,GAAAC,gBAAA,GAAAC,MAEA,uCAIA,UACA,gBACA,eACA,WACA,gBACA,sBACA,sBACA,cACA,oBACA,sBACA,qBAGA,8DAKA,mBACA,uEACAC,oCAMAC,wBAGA,mCAGAA,wBAGA,uCAGAC,0BAIA,6DAIA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B,OAAOmE,MAAA,MAAAxE,MAAA,SAAvMlD,KAAoO0C,GAAA,UAAAN,EAAA,MAA4BmB,OAAOmE,MAAA,MAAAxE,MAAA,SAAvQlD,KAAoS0C,GAAA,UAAAN,EAAA,MAA4BmB,OAAOmE,MAAA,MAAAxE,MAAA,SAAvUlD,KAAoW0C,GAAA,UAAAN,EAAA,MAA4BmB,OAAOmE,MAAA,MAAAxE,MAAA,SAAvYlD,KAAoa0C,GAAA,UAAAN,EAAA,MAA4BmB,OAAOmE,MAAA,MAAAxE,MAAA,SAAvclD,KAAoe0C,GAAA,eCE/1D,ICKAkF,QAEA,kBAGAxK,UDVAyK,EAAA,OAcAC,CACA1K,EACA2E,GATA,EAVA,SAAAgG,GACAF,EAAA,SAaA,KAEA,MAUA,UEvBAG,GADiBhG,OAFjB,WAA0B,IAAaE,EAAblC,KAAamC,eAA0BC,EAAvCpC,KAAuCqC,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBmB,OAAOC,GAAA,SAAYpB,EAAA,kBAE5GqF,oBCqBjBQ,EAvBAJ,EAAA,OAcAK,CACAN,EACAI,GATA,EAEA,KAEA,KAEA,MAUA,QChBAG,EAAA,EAAIxJ,OAAOyJ,eAAgB,EAG3B,IAAID,EAAA,GACFE,GAAI,OACJC,SAAU,SACVC,YAAcX,IAAAK","file":"static/js/app.cd63b65786e657aa4830.js","sourcesContent":["\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/TurnTable.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[(_vm.config.showAlert)?_c('div',{staticClass:\"alert alert-info text-center mx-auto w-75 mt-5 fade\",class:{'alert--show': _vm.currentResult}},[_vm._v(_vm._s(_vm.currentResult))]):_vm._e(),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(true),expression:\"true\"}],staticClass:\"turnTable\"},[_c('div',{staticClass:\"turnTable__body\"},[_c('canvas',{staticClass:\"turnTable__canvas\",class:_vm.animitionType,style:({'width': ((_vm.config.baseSize) + \"px\"), 'height': ((_vm.config.baseSize) + \"px\")})})]),_c('div',{staticClass:\"turnTable__button\",on:{\"click\":_vm.animitionProc}},[_c('div',{staticClass:\"turnTable__arrow\"}),_c('div',{staticClass:\"turnTable__button__content\"},[_c('span',{staticClass:\"turnTable__button__text\"},[_vm._v(_vm._s(_vm.config.buttonText))])])])]),_c('div',{staticClass:\"buttonArea\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.showButtons),expression:\"showButtons\"}],staticClass:\"mx-1\",attrs:{\"id\":\"showButtons\",\"type\":\"checkbox\"},domProps:{\"checked\":!_vm.showButtons,\"checked\":Array.isArray(_vm.showButtons)?_vm._i(_vm.showButtons,null)>-1:(_vm.showButtons)},on:{\"change\":function($event){var $$a=_vm.showButtons,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.showButtons=$$a.concat([$$v]))}else{$$i>-1&&(_vm.showButtons=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.showButtons=$$c}}}}),_c('label',{staticClass:\"text-sm-right\",attrs:{\"for\":\"showButtons\"}},[_vm._v(\"顯示設定\")]),_c('br'),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showButtons),expression:\"showButtons\"}],staticClass:\"buttons\"},[(_vm.config.autoStop)?_c('button',{staticClass:\"btn btn-outline-danger mr-4\",attrs:{\"data-toggle\":\"modal\",\"data-target\":\"#resultList\"}},[_vm._v(\"轉出結果\")]):_vm._e(),_c('button',{staticClass:\"btn btn-outline-info\",attrs:{\"data-toggle\":\"modal\",\"data-target\":\"#dataSetting\"}},[_vm._v(\"轉盤設定\")])])]),(_vm.config.autoStop)?_c('div',{staticClass:\"modal fade\",attrs:{\"id\":\"resultList\"}},[_c('div',{staticClass:\"modal-dialog\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_vm._m(0),_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table table-bordered table-sm\"},[_vm._m(1),_c('tbody',{staticClass:\"text-center\"},_vm._l((_vm.resultList),function(result,index){return _c('tr',[_c('td',{staticClass:\"text-center\"},[_vm._v(_vm._s(index + 1))]),_c('td',{staticClass:\"text-center\"},[_vm._v(_vm._s(result))])])}))])])]),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-sm btn-outline-secondary ml-2 px-3\",on:{\"click\":function($event){$event.preventDefault();_vm.resultList = []}}},[_vm._v(\"清空資訊\")]),_c('button',{staticClass:\"btn btn-sm btn-secondary ml-2 px-3\",attrs:{\"data-dismiss\":\"modal\"}},[_vm._v(\"關閉 \")])])])])]):_vm._e(),_c('div',{staticClass:\"modal fade\",style:({'opacity': _vm.editAreaOpacity}),attrs:{\"id\":\"dataSetting\"}},[_c('div',{staticClass:\"modal-dialog modal-lg\",attrs:{\"role\":\"document\"}},[_c('div',{staticClass:\"modal-content\"},[_c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\"},[_vm._v(\"轉盤資訊設定\")]),_c('label',{staticClass:\"text-sm ml-3\"},[_vm._v(\"| 背景透明度:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editAreaOpacity),expression:\"editAreaOpacity\"}],attrs:{\"type\":\"range\",\"min\":\"0.1\",\"max\":\"1\",\"step\":\"0.1\"},domProps:{\"value\":(_vm.editAreaOpacity)},on:{\"__r\":function($event){_vm.editAreaOpacity=$event.target.value}}}),_vm._m(2)]),_c('div',{staticClass:\"modal-body\"},[_vm._m(3),_c('div',{staticClass:\"tab-content\"},[_c('div',{staticClass:\"tab-pane fade show active py-3 px-1\",attrs:{\"id\":\"edit-data\",\"role\":\"tabpanel\"}},[_c('form',{staticClass:\"form-inline\",on:{\"submit\":function($event){$event.preventDefault();}}},[_c('div',{staticClass:\"form-group w-100 mb-2\"},[_c('label',{staticClass:\"mr-2\"},[_vm._v(\"編輯模式:\")]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0 mr-sm-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.giftEditMode),expression:\"giftEditMode\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"editBySet\",\"type\":\"radio\",\"name\":\"editMode\",\"checked\":\"checked\"},domProps:{\"value\":true,\"checked\":_vm._q(_vm.giftEditMode,true)},on:{\"change\":function($event){_vm.giftEditMode=true}}}),_c('label',{attrs:{\"for\":\"editBySet\"}},[_vm._v(\"單塊新增\")])]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.giftEditMode),expression:\"giftEditMode\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"editByData\",\"type\":\"radio\",\"name\":\"editMode\"},domProps:{\"value\":false,\"checked\":_vm._q(_vm.giftEditMode,false)},on:{\"change\":function($event){_vm.giftEditMode=false}}}),_c('label',{attrs:{\"for\":\"editByData\"}},[_vm._v(\"資料編輯(Array-Object)\")])])]),(_vm.giftEditMode)?_c('div',{staticClass:\"editBySet w-100\"},[_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table table-bordered table-sm mt-1\"},[_vm._m(4),_c('draggable',{staticClass:\"dragArea\",attrs:{\"list\":_vm.gifts,\"element\":'tbody'}},_vm._l((_vm.gifts),function(gift,index){return _c('tr',[_c('td',[_c('div',{staticClass:\"input-group justify-content-center\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}]},[_vm._v(_vm._s(_vm.getChance(gift.chance)))]),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model.number\",value:(gift.chance),expression:\"gift.chance\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"number\",\"min\":\"1\",\"step\":\"0.1\"},domProps:{\"value\":(gift.chance)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"chance\", _vm._n($event.target.value))},\"blur\":function($event){_vm.$forceUpdate()}}})])]),_c('td',{style:({'background-color': gift.backgroundColor || _vm.getDefaultGiftBackgroundColor(index)})},[_c('div',{staticClass:\"input-group justify-content-center\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}]},[_vm._v(_vm._s(gift.backgroundColor || '預設'))]),(!_vm.isMobile)?_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.backgroundColor),expression:\"gift.backgroundColor\"}],staticClass:\"mx-1\",style:({ width: '25px' }),attrs:{\"type\":\"color\"},domProps:{\"value\":(gift.backgroundColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"backgroundColor\", $event.target.value)}}}):_vm._e(),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.backgroundColor),expression:\"gift.backgroundColor\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\",\"placeholder\":_vm.getDefaultGiftBackgroundColor()},domProps:{\"value\":(gift.backgroundColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"backgroundColor\", $event.target.value)}}})])]),_c('td',{style:({'background-color': gift.textColor || _vm.config.textColor })},[_c('div',{staticClass:\"input-group justify-content-center\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}]},[_vm._v(_vm._s(gift.textColor || '預設'))]),(!_vm.isMobile)?_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.textColor),expression:\"gift.textColor\"}],staticClass:\"mx-1\",style:({ width: '25px' }),attrs:{\"type\":\"color\"},domProps:{\"value\":(gift.textColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"textColor\", $event.target.value)}}}):_vm._e(),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.textColor),expression:\"gift.textColor\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\",\"placeholder\":_vm.config.textColor},domProps:{\"value\":(gift.textColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"textColor\", $event.target.value)}}})])]),_c('td',[_c('div',{staticClass:\"input-group\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}]},[_vm._v(_vm._s(gift.text))]),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.text),expression:\"gift.text\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(gift.text)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"text\", $event.target.value)}}})])]),_c('td',[_c('div',{staticClass:\"input-group justify-content-center\"},[_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}]},[_vm._v(_vm._s(gift.textSize || '預設'))]),_c('input',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"},{name:\"model\",rawName:\"v-model\",value:(gift.textSize),expression:\"gift.textSize\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"number\"},domProps:{\"value\":(gift.textSize)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(gift, \"textSize\", $event.target.value)}}})])]),_c('td',[_c('div',{staticClass:\"input-group text-center justify-content-center\"},[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}],staticClass:\"btn btn-sm btn-outline-info mx-1\",on:{\"click\":function($event){$event.preventDefault();_vm.editGiftData(index)}}},[_vm._v(\"編輯\")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!gift.edit),expression:\"!gift.edit\"}],staticClass:\"btn btn-sm btn-outline-danger mx-1\",on:{\"click\":function($event){$event.preventDefault();_vm.removeGiftData(index)}}},[_vm._v(\"移除\")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"}],staticClass:\"btn btn-sm btn-outline-success mx-1\",on:{\"click\":function($event){$event.preventDefault();_vm.saveGiftData(index)}}},[_vm._v(\"儲存\")]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(gift.edit),expression:\"gift.edit\"}],staticClass:\"btn btn-sm btn-outline-secondary mx-1\",on:{\"click\":function($event){$event.preventDefault();_vm.cancleGiftData(index)}}},[_vm._v(\"取消\")])])])])}))],1)]),_c('button',{staticClass:\"btn btn-sm btn-outline-success px-5 mx-1\",on:{\"click\":_vm.addGiftData}},[_vm._v(\"新增區塊\")])]):_c('div',{staticClass:\"editByDate w-100 my-2\"},[_c('textarea',{staticClass:\"form-control form-control-sm w-100\",domProps:{\"value\":_vm.showGiftsToTextArea},on:{\"input\":_vm.setGiftsByTextArea}})])])]),_c('div',{staticClass:\"tab-pane fade py-3 px-1\",attrs:{\"id\":\"edit-config\",\"role\":\"tabpanel\"}},[_c('form',{staticClass:\"form-inline row\",on:{\"submit\":function($event){$event.preventDefault();}}},[_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',{staticClass:\"mr-2\"},[_vm._v(\"停止模式:\")]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0 mr-sm-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.autoStop),expression:\"config.autoStop\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"autoStopTrue\",\"type\":\"radio\",\"name\":\"autoStop\",\"checked\":\"checked\"},domProps:{\"value\":true,\"checked\":_vm._q(_vm.config.autoStop,true)},on:{\"change\":function($event){_vm.$set(_vm.config, \"autoStop\", true)}}}),_c('label',{attrs:{\"for\":\"autoStopTrue\"}},[_vm._v(\"自動\")])]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.autoStop),expression:\"config.autoStop\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"autoStopFalse\",\"type\":\"radio\",\"name\":\"autoStop\"},domProps:{\"value\":false,\"checked\":_vm._q(_vm.config.autoStop,false)},on:{\"change\":function($event){_vm.$set(_vm.config, \"autoStop\", false)}}}),_c('label',{attrs:{\"for\":\"autoStopFalse\"}},[_vm._v(\"手動\")])])]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-8\"},[_c('label',{staticClass:\"mr-2\"},[_vm._v(\"轉出資訊:\")]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0 mr-sm-2\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.showAlert),expression:\"config.showAlert\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"showAlertTrue\",\"type\":\"radio\",\"name\":\"showAlert\",\"checked\":\"checked\"},domProps:{\"value\":true,\"checked\":_vm._q(_vm.config.showAlert,true)},on:{\"change\":function($event){_vm.$set(_vm.config, \"showAlert\", true)}}}),_c('label',{attrs:{\"for\":\"showAlertTrue\"}},[_vm._v(\"顯示\")])]),_c('div',{staticClass:\"form-check ml-4 ml-sm-0\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.showAlert),expression:\"config.showAlert\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"showAlertFalse\",\"type\":\"radio\",\"name\":\"showAlert\"},domProps:{\"value\":false,\"checked\":_vm._q(_vm.config.showAlert,false)},on:{\"change\":function($event){_vm.$set(_vm.config, \"showAlert\", false)}}}),_c('label',{attrs:{\"for\":\"showAlertFalse\"}},[_vm._v(\"關閉\")])])]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(_vm._s(_vm.config.autoStop ? '動畫時間長度(s):' : '轉10圈的轉速(s):'))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.config.runTime),expression:\"config.runTime\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control-sm w-100\",attrs:{\"type\":\"number\",\"min\":\"1\",\"step\":\"1\"},domProps:{\"value\":(_vm.config.runTime)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"runTime\", _vm._n($event.target.value))},\"blur\":function($event){_vm.$forceUpdate()}}})]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"轉盤尺寸設定(px):\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.config.baseSize),expression:\"config.baseSize\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control-sm w-100\",attrs:{\"type\":\"number\",\"step\":\"1\",\"min\":\"150\"},domProps:{\"value\":(_vm.config.baseSize)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"baseSize\", _vm._n($event.target.value))},\"blur\":function($event){_vm.$forceUpdate()}}})]),(_vm.config.autoStop)?_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"最大回彈角度(百分比):\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.config.rollBackRange),expression:\"config.rollBackRange\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control-sm w-100\",attrs:{\"type\":\"number\",\"step\":\"0.01\",\"min\":\"0.1\",\"max\":\"1\",\"readonly\":!_vm.config.autoStop},domProps:{\"value\":(_vm.config.rollBackRange)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"rollBackRange\", _vm._n($event.target.value))},\"blur\":function($event){_vm.$forceUpdate()}}})]):_vm._e(),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"區塊預設色(單數):\")]),_c('div',{staticClass:\"input-group w-100\"},[(!_vm.isMobile)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.singleColor),expression:\"config.singleColor\"}],staticClass:\"mx-1 my-1\",style:({ width: '25px' }),attrs:{\"type\":\"color\"},domProps:{\"value\":(_vm.config.singleColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"singleColor\", $event.target.value)}}}):_vm._e(),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.singleColor),expression:\"config.singleColor\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.config.singleColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"singleColor\", $event.target.value)}}})])]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"區塊預設色(雙數):\")]),_c('div',{staticClass:\"input-group w-100\"},[(!_vm.isMobile)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.doubleColor),expression:\"config.doubleColor\"}],staticClass:\"mx-1 my-1\",style:({ width: '25px' }),attrs:{\"type\":\"color\"},domProps:{\"value\":(_vm.config.doubleColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"doubleColor\", $event.target.value)}}}):_vm._e(),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.doubleColor),expression:\"config.doubleColor\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.config.doubleColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"doubleColor\", $event.target.value)}}})])]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"區塊邊框寬度:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.config.borderWidth),expression:\"config.borderWidth\",modifiers:{\"number\":true}}],staticClass:\"form-control form-control-sm w-100\",attrs:{\"type\":\"number\",\"min\":\"1\",\"step\":\"1\"},domProps:{\"value\":(_vm.config.borderWidth)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"borderWidth\", _vm._n($event.target.value))},\"blur\":function($event){_vm.$forceUpdate()}}})]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-4\"},[_c('label',[_vm._v(\"按鈕顏色:\")]),_c('div',{staticClass:\"input-group w-100\"},[(!_vm.isMobile)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.buttonColor),expression:\"config.buttonColor\"}],staticClass:\"mx-1 my-1\",style:({ width: '25px' }),attrs:{\"type\":\"color\"},domProps:{\"value\":(_vm.config.buttonColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"buttonColor\", $event.target.value)}}}):_vm._e(),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.buttonColor),expression:\"config.buttonColor\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.config.buttonColor)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"buttonColor\", $event.target.value)}}})])]),_c('div',{staticClass:\"form-group w-100 mb-3 col-md-8\"},[_c('label',[_vm._v(\"按鈕文字:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.config.buttonText),expression:\"config.buttonText\"}],staticClass:\"form-control form-control-sm w-100\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.config.buttonText)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.config, \"buttonText\", $event.target.value)}}})])])]),_c('div',{staticClass:\"tab-pane fade py-3 px-1\",attrs:{\"id\":\"dataList\",\"role\":\"tabpanel\"}},[_vm._l((_vm.dataList),function(data,index){return [_c('button',{staticClass:\"btn btn-sm btn-outline-info px-3 m-1\",on:{\"click\":function($event){$event.preventDefault();_vm.loadData(index)}}},[_vm._v(_vm._s(data.dataName))])]})],2)])]),_c('div',{staticClass:\"modal-footer\"},[_c('form',{staticClass:\"form-inline\",on:{\"submit\":function($event){$event.preventDefault();}}},[_c('label',{staticClass:\"mr-2\"},[_vm._v(\"設定檔名稱:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.dataName),expression:\"dataName\"}],staticClass:\"form-control form-control-sm\",attrs:{\"type\":\"text\"},domProps:{\"value\":(_vm.dataName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.dataName=$event.target.value}}})]),_c('button',{staticClass:\"btn btn-sm btn-outline-primary mx-1 px-3\",on:{\"click\":function($event){$event.preventDefault();_vm.newData($event)}}},[_vm._v(\"新增\")]),_c('button',{staticClass:\"btn btn-sm btn-outline-success mx-1 px-3\",on:{\"click\":function($event){$event.preventDefault();_vm.saveData()}}},[_vm._v(\"儲存\")]),(_vm.dataNo !== 0)?_c('button',{staticClass:\"btn btn-sm btn-outline-danger mx-1 px-3\",on:{\"click\":function($event){$event.preventDefault();_vm.deleteData(_vm.dataNo)}}},[_vm._v(\"刪除\")]):_vm._e(),_c('button',{staticClass:\"btn btn-sm btn-outline-secondary mx-1 px-3\",on:{\"click\":function($event){$event.preventDefault();_vm.setDefaultDatas()}}},[_vm._v(\"預設\")]),_c('button',{staticClass:\"btn btn-sm btn-secondary\",attrs:{\"data-dismiss\":\"modal\"}},[_vm._v(\"關閉\")])])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal-header\"},[_c('h5',{staticClass:\"modal-title\"},[_vm._v(\"轉出結果\")]),_c('button',{staticClass:\"close\",attrs:{\"data-dismiss\":\"modal\"}},[_c('span',[_vm._v(\"×\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',{staticClass:\"text-center\"},[_c('tr',[_c('th',{staticClass:\"text-center\",attrs:{\"scope\":\"col\"}},[_vm._v(\"No\")]),_c('th',{staticClass:\"text-center\",attrs:{\"scope\":\"col\"}},[_vm._v(\"內容\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"close\",attrs:{\"data-dismiss\":\"modal\"}},[_c('span',[_vm._v(\"×\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:\"nav nav-tabs\",attrs:{\"role\":\"tablist\"}},[_c('li',{staticClass:\"nav-item text-center\"},[_c('a',{staticClass:\"nav-link active\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#edit-data\",\"role\":\"tab\"}},[_vm._v(\"區塊設定\")])]),_c('li',{staticClass:\"nav-item text-center\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#edit-config\",\"role\":\"tab\"}},[_vm._v(\"轉盤設定\")])]),_c('li',{staticClass:\"nav-item text-center\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#dataList\",\"role\":\"tab\"}},[_vm._v(\"設定集\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',{staticClass:\"text-center\"},[_c('tr',[_c('th',{attrs:{\"scope\":\"col\",\"width\":\"10%\"}},[_vm._v(\"區塊占比\")]),_c('th',{attrs:{\"scope\":\"col\",\"width\":\"15%\"}},[_vm._v(\"背景顏色\")]),_c('th',{attrs:{\"scope\":\"col\",\"width\":\"15%\"}},[_vm._v(\"文字顏色\")]),_c('th',{attrs:{\"scope\":\"col\",\"width\":\"40%\"}},[_vm._v(\"文字內容\")]),_c('th',{attrs:{\"scope\":\"col\",\"width\":\"10%\"}},[_vm._v(\"文字大小\")]),_c('th',{attrs:{\"scope\":\"col\",\"width\":\"10%\"}},[_vm._v(\"功能\")])])])}]\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-54590562\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/template-compiler/preprocessor.js?engine=pug!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/TurnTable.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-54590562\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./TurnTable.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./TurnTable.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./TurnTable.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-54590562\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/template-compiler/preprocessor?engine=pug!../../node_modules/vue-loader/lib/selector?type=template&index=0!./TurnTable.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/TurnTable.vue\n// module id = null\n// module chunks = ","\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/App.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('TurnTable')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-4f4f84a5\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue\n// module id = null\n// module chunks = ","var normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-4f4f84a5\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/App.vue\n// module id = null\n// module chunks = ","// The Vue build version to load with the `import` command\n// (runtime-only or standalone) has been set in webpack.base.conf with an alias.\nimport 'bootstrap';\nimport 'bootstrap/dist/css/bootstrap.css';\nimport Vue from 'vue';\nimport App from './App';\n\nVue.config.productionTip = false;\n\n/* eslint-disable no-new */\nnew Vue({\n el: '#app',\n template: '',\n components: { App },\n});\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/static/js/manifest.620fa3e9b530a851a7bd.js b/dist/static/js/manifest.512fe58b252a365b8dec.js similarity index 91% rename from dist/static/js/manifest.620fa3e9b530a851a7bd.js rename to dist/static/js/manifest.512fe58b252a365b8dec.js index 6f5d16a..6342f78 100644 --- a/dist/static/js/manifest.620fa3e9b530a851a7bd.js +++ b/dist/static/js/manifest.512fe58b252a365b8dec.js @@ -1,2 +1,2 @@ -!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s