PageSourceSearch

https://devopsvision.io/app/chunk-DXEHUVY2.js

js devopsvision.io collected 2026-10-06 11:22:46 UTC 6,397 bytes, 1 lines download raw bytes

1import{a as A}from"./chunk-KQCJL3Z5.js";import{a as z}from"./chunk-UXYPZYWM.js";import{a as q}from"./chunk-USFQZG35.js";import{a as H}from"./chunk-ZQ7DYZD3.js";import"./chunk-544PK6PO.js";import{d as $}from"./chunk-NM2YCYMW.js";import{Qc as R}from"./chunk-OTSSTHG4.js";import{$ as v,B as j,C as h,Ca as l,Da as k,E as D,Ea as N,G as f,H as S,W as I,X as o,aa as x,ba as b,ja as d,jb as F,ka as c,ma as L,na as V,oa as y,ob as O,pa as r,qa as a,ra as _,sa as C,ta as g,ua as p,yb as T}from"./chunk-LSXE27IB.js";var u=class n{constructor(t){this.http=t}notifyUploadComplete(t,e){let i=`/t/data/suadmin/imagestyle/${t}/upload_complete`;return this.http.post(i,{file:e})}list(t,e){let i=`/n/data/suadmin/imagestyle?page=${t}`;return e&&(i=`/n/data/suadmin/imagestyle?findText=${encodeURIComponent(e)}`),this.http.get(i)}delete(t){let e=`/n/data/suadmin/imagestyle/${t}`;return this.http.delete(e)}static{this.\u0275fac=function(e){return new(e||n)(D(O))}}static{this.\u0275prov=j({token:n,factory:n.\u0275fac})}};function G(n,t){if(n&1){let e=C();r(0,"app-speaker-find",7),g("speaker",function(m){f(e);let s=p();return S(s.speakerSelected(m))}),a()}}function J(n,t){if(n&1){let e=C();r(0,"div",8)(1,"strong"),l(2,"Speaker:"),a(),l(3),r(4,"button",9),g("click",function(){f(e);let m=p();return S(m.clearSpeaker())}),l(5,"change"),a()(),r(6,"app-file-upload",10),g("uploadComplete",function(m){f(e);let s=p();return S(s.uploadComplete(m))})("error",function(m){f(e);let s=p();return S(s.uploadError(m))}),a()}if(n&2){let e=p();o(3),N(" ",e.selectedSpeaker.name," "),o(3),y("fileTypes",e.fileTypes)}}function K(n,t){if(n&1&&(r(0,"div",4),l(1),a()),n&2){let e=p();o(),k(e.errorMessage)}}function W(n,t){if(n&1&&(r(0,"div",5),l(1),a()),n&2){let e=p();o(),k(e.message)}}function X(n,t){if(n&1&&(r(0,"div",6),_(1,"img",11),a()),n&2){let e=p();o(),y("src",e.uploadedImageUrl,I)}}var E=class n{constructor(t){this.imageStyleService=t;this.fileTypes=["jpg","jpeg","png"];this.selectedSpeaker=null;this.uploadedImageUrl=null;this.message=null;this.errorMessage=null}speakerSelected(t){this.selectedSpeaker=t,this.uploadedImageUrl=null,this.message=null,this.errorMessage=null}clearSpeaker(){this.selectedSpeaker=null,this.uploadedImageUrl=null,this.message=null,this.errorMessage=null}uploadComplete(t){this.errorMessage=null;let e=this.selectedSpeaker.id;
1this.imageStyleService.notifyUploadComplete(e,t.file).subscribe(()=>{this.imageStyleService.list(1).subscribe(i=>{let m=(i.items||[]).filter(s=>s.speakerId===e);this.uploadedImageUrl=m.length?m[m.length-1].imageURL:null,this.message="Upload complete"},i=>{this.errorMessage=i&&i.message?i.message:"Upload failed"})},i=>{this.errorMessage=i&&i.message?i.message:"Upload failed"})}uploadError(t){this.message=null,this.errorMessage=t}static{this.\u0275fac=function(e){return new(e||n)(v(u))}}static{this.\u0275cmp=x({type:n,selectors:[["app-speaker-image-style-upload"]],standalone:!1,decls:12,vars:5,consts:[[1,"container"],[1,"row","mb-5"],[1,"col-2","offset-10"],["href","/app/admin/image-style/list"],[1,"alert","alert-danger","mt-3"],[1,"alert","alert-success","mt-3"],[1,"mt-3"],[3,"speaker"],[1,"mb-3"],[1,"btn","btn-link",3,"click"],[3,"uploadComplete","error","fileTypes"],["alt","uploaded image",2,"max-width","300px",3,"src"]],template:function(e,i){e&1&&(r(0,"div",0)(1,"h3"),l(2,"Upload Speaker Style Image"),a(),r(3,"div",1)(4,"div",2)(5,"a",3),l(6,"Image List"),a()()(),d(7,G,1,0,"app-speaker-find"),d(8,J,7,2),d(9,K,2,1,"div",4),d(10,W,2,1,"div",5),d(11,X,2,1,"div",6),a()),e&2&&(o(7),c(i.selectedSpeaker?-1:7),o(),c(i.selectedSpeaker?8:-1),o(),c(i.errorMessage?9:-1),o(),c(i.message?10:-1),o(),c(i.uploadedImageUrl?11:-1))},dependencies:[A,H],encapsulation:2})}};var Y=(n,t)=>t.id;function Z(n,t){if(n&1){let e=C();r(0,"tr")(1,"td"),_(2,"img",10),a(),r(3,"td"),l(4),a(),r(5,"td"),l(6),a(),r(7,"td"),l(8),a(),r(9,"td")(10,"button",11),g("click",function(){let m=f(e).$implicit,s=p();return S(s.deleteItem(m))}),l(11,"Delete"),a()()()}if(n&2){let e=t.$implicit;o(2),y("src",e.imageURL,I),o(2),k(e.speakerId),o(2),k(e.type),o(2),k(e.fileName)}}function ee(n,t){n&1&&(r(0,"tr")(1,"td",12)(2,"em"),l(3,"No records"),a()()())}var w=class n{constructor(t){this.imageStyleService=t;this.items=[];this.bookmark=null;this.page=1;this.message=null}ngOnInit(){this.fetchData(this.page)}fetchData(t,e){this.message=null,this.page=t,this.imageStyleService.list(t,e).subscribe(i=>{this.items=i.items||[],this.bookmark=i.bookmark})}deleteItem(t){confirm("Are you sure you want to delete this image?")&&this.imageStyleService.delete(t.id).subscribe(()=>{this.message="Delete complete",this.fetchData(this.page)})}filter(t){t==null||t===""||this.fetchData(0,t)}static{this.\u0275fac=function(e){return new(e||n)(v(u))}}static{this.\u0275cmp=x({type:n,selectors:[["app-speaker-image-style-list"]],standalone:!1,decls:27,vars:4,consts:[[1,"mb-5"],[3,"error","message"],[1,"row","mb-4"],[1,"col-6"],[3,"find"],[1,"col-2","offset-4"],["href","/app/admin/image-style/upload",1,"btn","btn-primary","float-right"],[1,"fas","fa-plus"],[1,"table"],[3,"page","bookmark"],["alt","style image",2,"max-height","80px",3,"src"],[1,"btn","btn-danger","btn-sm",3,"click"],["colspan","5"]],template:function(e,i){e&1&&(r(0,"h3",0),l(1,"Speaker Style Images"),a(),_(2,"app-info-message",1),r(3,"div",2)(4,"div",3)(5,"app-find-text",4),g("find",function(s){return i.filter(s)}),a()(),r(6,"div",5)(7,"a",6),_(8,"i",7),l(9," New"),a()()(),r(10,"table",8)(11,"thead")(12,"tr")(13,"th"),l(14,"Image"),a(),r(15,"th"),l(16,"Speaker Id"),a(),r(17,"th"),l(18,"Type"),a(),r(19,"th"),l(20,"File Name"),a(),_(21,"th"),a()(),r(22,"tbody"),L(23,Z,12,4,"tr",null,Y),d(25,ee,4,0,"tr"),a()(),r(26,"app-query-bookmark",9),g("page",function(s){return i.fetchData(s)}),a()),e&2&&(o(2),y("error",i.error)("message",i.message),o(21),V(i.items),o(2),c(i.items.length==0?25:-1),o(),y("bookmark",i.bookmark))},dependencies:[q,R,z],encapsulation:2})}};var te=[{path:"",redirectTo:"upload",pathMatch:"full"},{path:"upload",component:E},{path:"list",component:w}],M=class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=b({type:n})}static{this.\u0275inj=h({imports:[T.forChild(te),T]})}};var B=class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=b({type:n})}static{this.\u0275inj=h({providers:[u],imports:[F,M,$]})}};export{B as ImageStyleModule};

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.