PageSourceSearch

https://dataedo.com/build/assets/Index-B4rzwEWt.js

js dataedo.com collected 2026-10-02 04:51:57 UTC 5,531 bytes, 1 lines download raw bytes

1import C from"./Header-baU0b4Ap.js";import{T as S}from"./TinyMceField-DKPqeQmz.js";import{h as R}from"./moment-Cl4UOzQZ.js";import{s as T,o as i,c as o,a as e,t as n,b as r,F as h,r as y,f as x,n as F,p as D,j as B}from"./app-DheFH3_h.js";import{_ as M}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./_commonjsHelpers-BosuxZz1.js";/* empty css            */const P={components:{TinyMceField:S,Header:C},props:{allReleases:Object},data(){return{releases:this.allReleases,isSending:{},groupColors:{},colorPalette:["#eceafc","#e9f7f9","#f9ece9","#f9f9e9","#e9f9e9"]}},methods:{changeCanDownload(t,a){let l=this.getRelease(t);l.can_download=a===1?0:1,this.blockThisField(l.id,"can_download"),this.updateRelease(l,"can_download")},changeCanUpdateTo(t,a){let l=this.getRelease(t);l.can_update_to=a===1?0:1,this.blockThisField(l.id,"can_update_to"),this.updateRelease(l,"can_update_to")},changeIsPreview(t,a){let l=this.getRelease(t);l.is_preview=a===1?0:1,this.blockThisField(l.id,"is_preview"),this.updateRelease(l,"is_preview")},async updateRelease(t,a){try{await T.post(route("releases.update",{release:t.id}),{[a]:t[a]})}catch(l){console.log(l),alert("Error updating release: "+l.response.data+"."+l)}finally{this.isSending[t.id][a]=!1}},getRelease(t){return this.releases.find(a=>a.id===t)},blockThisField(t,a){this.isSending[t]||(this.isSending[t]={}),this.isSending[t][a]=!0},formatDate(t){return R(t).format("YYYY-MM-DD HH:mm:ss")},fileSizeMB(t){return t?(t/1048576).toFixed(2)+" MB":"-"},getRowColor(t){if(!this.groupColors[t]){const a=Object.keys(this.groupColors).length%this.colorPalette.length;this.groupColors[t]=this.colorPalette[a]}return this.groupColors[t]}}},I=t=>(D("data-v-e8904b69"),t=t(),B(),t),j=x('<div class="pt-5" data-v-e8904b69></div><div class="pt-5" data-v-e8904b69></div><div class="pt-5" data-v-e8904b69></div><div class="pt-5" data-v-e8904b69></div><h1 class="text-center" data-v-e8904b69>Releases</h1><div class="text-danger text-center" data-v-e8904b69><small data-v-e8904b69> If you want to delete release, you should contact administrator, as it requires removal directly from the database for security purposes. </small></div>',6),z={style:{"margin-top":"-50px"}},N={class:"container mt-3"},U={key:0,class:"alert alert-success"},Y={key:1,class:"alert alert-danger"},H={class:"section pt-5 pb-md-5 mt-5"},V={class:"container"},w={class:"table-responsive"},E={ref:"table",class:"table"},O=I(()=>e("thead",null,[e("tr",null,[e("th",null,"Major"),e("th",null,"Minor"),e("th",null,"Build"),e("th",null,"Name"),e("th",null,"File name"),e("th",null,"Type"),e("th",null,"Bit"),e("th",null,"Repository version"),e("th",null,"Can download"),e("th",null,"Can update to"),e("th",null,"Preview"),e("th",null,"File size"),e("th",null,"Created at"),e("th",null,"Created by")])],-1)),$={class:"ps-4"},q={class:"form-check form-switch"},L=["id","checked","onChange","disabled"],A=["for"],G={key:0,class:"spinner-border spinner-border-sm spinner-border-thin",role:"status"},J={class:"ps-4"},K={class:"form-check form-switch"},Q=["id","checked","onChange"],W=["for"],X={key:0,class:"spinner-border spinner-border-sm spinner-border-thin",role:"status"},Z={class:"ps-4"},ee={class:"form-check form-switch"},se=["id","checked","onChange"],te=["for"],ae={key:0,class:"spinner-border spinner-border-sm spinner-border-thin",role:"status"};function le(t,a,l,ne,d,c){var u,p;return i(),o(h,null,[j,e("section",z,[e("div",N,[(u=t.$page.props.flash)!=null&&u.success?(i(),o("div",U,n(t.$page.props.flash.success),1)):r("",!0),(p=t.$page.props.flash)!=null&&p.errors?(i(),o("div",Y,[e("ul",null,[(i(!0),o(h,null,y(t.$page.props.flash.errors,s=>(i(),o("li",null,n(s),1))),256))])])):r("",!0)]),e("div",H,[e("div",V,[e("div",w,[e("table",E,[O,e("tbody",null,[(i(!0),o(h,null,y(d.releases,s=>{var _,m,f,b,v,g;return i(),o("tr",{key:s.id,style:F({backgroundColor:c.getRowColor(s.group_id)})},[e("td",null,n(s.major),1),e("td",null,n(s.minor),1),e("td",null,n(s.build),1),e("td",null,n(s.name),1),e("td",null,n(s.filename),1),e("td",null,n(s.type),1),e("td",null,n(s.bit),1),e("td",null,n(s.repository_version),1
1),e("td",$,[e("div",q,[e("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"canDownload"+s.id,checked:s.can_download===1,onChange:k=>c.changeCanDownload(s.id,s.can_download),disabled:(_=d.isSending[s.id])==null?void 0:_.can_download},null,40,L),e("label",{class:"form-check-label",for:"canDownload"+s.id},null,8,A),(m=d.isSending[s.id])!=null&&m.can_download?(i(),o("div",G)):r("",!0)])]),e("td",J,[e("div",K,[e("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"canUpdateTo"+s.id,checked:s.can_update_to===1,onChange:k=>c.changeCanUpdateTo(s.id,s.can_update_to)},null,40,Q),e("label",{class:"form-check-label",for:"canUpdateTo"+s.id},null,8,W),(f=d.isSending[s.id])!=null&&f.can_update_to?(i(),o("div",X)):r("",!0)])]),e("td",Z,[e("div",ee,[e("input",{class:"form-check-input",type:"checkbox",role:"switch",id:"isPreview"+s.id,checked:s.is_preview===1,onChange:k=>c.changeIsPreview(s.id,s.is_preview)},null,40,se),e("label",{class:"form-check-label",for:"isPreview"+s.id},null,8,te),(b=d.isSending[s.id])!=null&&b.is_preview?(i(),o("div",ae)):r("",!0)])]),e("td",null,n(this.fileSizeMB(s.file_size)),1),e("td",null,n(this.formatDate(s.created_at)),1),e("td",null,n((v=s.created_by)==null?void 0:v.first_name)+" "+n((g=s.created_by)==null?void 0:g.last_name),1)],4)}),128))])],512)])])])])],64)}const pe=M(P,[["render",le],["__scopeId","data-v-e8904b69"]]);export{pe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.