PageSourceSearch

https://next.intelliboard.net/assets/Cache-CCS2tUfF.js

js intelliboard.net collected 2026-10-03 22:51:10 UTC 7,488 bytes, 1 lines download raw bytes

1import{P as N}from"./Profile-BogFrkDW.js";import{_ as g,a as O,l as w,m as _}from"./main-BUyohMDS.js";import{a as r,o as d,f as b,g as l,p as c,A as T,s as E,t as m,F as f,m as $,b as C,l as P,k as v,v as I}from"./vendor-codemirror-CsRMRzWL.js";import{R as M}from"./Sorting-DYBp0RD7.js";import{t as A}from"./Pagination-B14V77k_.js";import"./Breadcrumbs-k3Gai5YP.js";import"./textOverflowTooltip-BBxHgIGU.js";import"./TitleInfoButton-jGekIuHh.js";import"./ToggleTip-4KqeRynz.js";import"./vendor-highcharts-DJOjmI7G.js";const k={components:{IbInput:w,IbButton:O},props:{search:{type:String,required:!0}},emits:["update:search","delete-all"],computed:{..._(["connection"])}},D={class:"table-panel"},R={class:"table-panel-container d-flex justify-content-between w-100"},j={class:"table-panel-right d-flex align-items-center"};function B(e,t,n,u,a,s){const i=r("ib-input"),o=r("ib-button");return d(),b("div",D,[l("div",R,[c(i,{placeholder:e.lang("search",e.langComponents.COMPONENT_SYSTEM),"aria-label":e.lang("search",e.langComponents.COMPONENT_SYSTEM),debounce:1e3,value:n.search,onInput:t[0]||(t[0]=h=>e.$emit("update:search",h))},null,8,["placeholder","aria-label","value"]),l("div",j,[c(o,{kind:"danger",type:"button",onClick:t[1]||(t[1]=h=>e.$emit("delete-all",h))},{default:T(()=>[E(m(e.lang("delete_all",e.langComponents.COMPONENT_SYSTEM)),1)]),_:1})])])])}const F=g(k,[["render",B],["__scopeId","data-v-3221b6d2"]]),L={emits:["toggleAll","sort"],components:{IbSorting:M}},Y={class:"table-thead-cell table-thead-cell-divider table-cell table-thead-cell-l"},H={class:"table-thead-cell table-thead-cell-divider table-cell table-thead-cell-l"},U={class:"table-thead-cell table-cell table-thead-cell-l"};function V(e,t,n,u,a,s){const i=r("ib-sorting");return d(),b("tr",null,[l("th",Y,[c(i,{class:"table-sorting","table-name":"inform-tables-list-table",view:"table-sorting",title:e.lang("name",e.langComponents.COMPONENT_IN_FORM),onUpdateSorting:t[0]||(t[0]=o=>e.$emit("sort",{direction:o,column:"name"}))},null,8,["title"])]),l("th",H,[c(i,{class:"table-sorting","table-name":"inform-tables-list-table",view:"table-sorting",title:e.lang("connection",e.langComponents.COMPONENT_IN_FORM),onUpdateSorting:t[1]||(t[1]=o=>e.$emit("sort",{direction:o,column:"connection"}))},null,8,["title"])]),l("th",U,[c(i,{class:"table-sorting","table-name":"inform-tables-list-table",view:"table-sorting",title:e.lang("size",e.langComponents.COMPONENT_IN_FORM),onUpdateSorting:t[2]||(t[2]=o=>e.$emit("sort",{direction:o,column:"size"}))},null,8,["title"])])])}const z=g(L,[["render",V]]),q={props:{table:{type:Object,required:!0}},computed:{..._(["user"])},methods:{formatDate(e){return dayjs(e).format(this.user.settings.date_format_js)}}},G={class:"table-row activated"},W={class:"table-cell table-cell-l"},J={class:"table-cell table-cell-l"},K={class:"table-cell table-cell-l"};function Q(e,t,n,u,a,s){return d(),b("tr",G,[l("td",W,m(n.table.name),1),l("td",J,m(n.table.connection?.name),1),l("td",K,m(n.table.size),1)])}const X=g(q,[["render",Q]]),Z={components:{TablePanel:F,TableHeader:z,TableRow:X,IbPagination:A},watch:{"params.search":{handler(){this.params.page=1}},params:{handler(){this.selectedTables={},this.loadTables()},deep:!0}},data(){return{list:[],totalRows:0,connectionDynamicTables:void 0,params:{search:"",page:1,per_page:10,sort:"",direction:""},selectedTables:{}}},mounted(){this.loadTables()},methods:{toggleAll(e){if(!e){this.selectedTables={};return}let t={};this.list.forEach(n=>{t[n.id]=!0}),this.selectedTables=t},toggleRow(e){if(e.isSelected){this.selectedTables[e.tableId]=!0;return}delete this.selectedTables[e.tableId]},resetPagination(){this.params.page=1},changePage(e){this.params.page=e},changeLimit(e){this.resetPagination(),this.params.per_page=e},onSearch(e){this.params.search=e,this.resetPagination()},sort(e){this.params={...this.params,sort:e.column,direction:e.direction}},enableTable(e){this.changeTablesStatus(!0,[e])},disableTable(e){this.changeTablesStatus(!1,[e])},enableSelected(){this.selectedIds.length!==0&&this.changeTablesStatus(!0,this.selectedIds)},disableSelected(){this.selectedIds.length!==0&&this.changeTablesStatus(!1,this.selectedIds)},changeTablesStatus(e,t){if(!t.length)return;const n=e?this.route("in-form.dynamic-tables.enable"):this.route("in-form.dynamic-tables.disable");this.$loader.show(),axios.post(n,{ids:t}).then(()=>this.loadTables()).finally(()=>this.$loader.hide())},deleteAll(){this.$loader.show(),axios.delete(route("cache.clear")).then(()=>
1{this.$notifications.success(this.lang("cache_clear_success_message",this.langComponents.COMPONENT_CACHE)),this.loadTables()}).finally(()=>this.$loader.hide())},loadTables(){this.$loader.show(),axios.get(route("cache.index",{...this.params})).then(e=>{this.totalRows=e.data.total,this.list=e.data.data}).finally(()=>{this.$loader.hide()})}},computed:{..._(["connection","user"]),showPagination(){return this.list.length||this.params.page>1&&this.list.length},allTablesSelected(){return this.list.length>0&&this.list.length===Object.keys(this.selectedTables).length},selectedIds(){return Object.keys(this.selectedTables)}}},x={class:"actions"},ee={ref:"tableContainer",class:"table-container"},te={ref:"tableWrapper",class:"table-wrapper"},le={ref:"table",class:"table"},ae={class:"table-thead table-thead-sticky"},se={key:0,class:"table-empty-item"},ne={class:"table-empty-message"};function oe(e,t,n,u,a,s){const i=r("table-panel"),o=r("table-header"),h=r("table-row"),S=r("ib-pagination");return d(),b(f,null,[l("div",x,[c(i,{search:a.params.search,"onUpdate:search":t[0]||(t[0]=p=>a.params.search=p),onDeleteAll:s.deleteAll},null,8,["search","onDeleteAll"])]),l("div",null,[l("div",ee,[l("div",te,[l("table",le,[l("thead",ae,[c(o,{"all-tables-selected":s.allTablesSelected,"selected-table-type":a.params.type,onSort:s.sort,onToggleAll:s.toggleAll},null,8,["all-tables-selected","selected-table-type","onSort","onToggleAll"])]),l("tbody",null,[(d(!0),b(f,null,$(a.list,(p,y)=>(d(),C(h,{key:"tblItem-"+p.id,table:p,"row-index":y,"selected-table-type":a.params.type,"connection-dynamic-tables":a.connectionDynamicTables||{},"is-selected":!!a.selectedTables[p.id],onToggle:s.toggleRow,onEnable:s.enableTable,onDisable:s.disableTable,onTableDeleted:s.loadTables},null,8,["table","row-index","selected-table-type","connection-dynamic-tables","is-selected","onToggle","onEnable","onDisable","onTableDeleted"]))),128))])],512),a.list.length===0?(d(),b("div",se,[l("p",ne,m(e.lang("table_empty",e.langComponents.COMPONENT_IN_FORM)),1)])):P("",!0)],512)],512),v(c(S,{ref:"pagination",class:"pagination","count-rows":a.totalRows,current:parseInt(a.params.page),"limit-selector":parseInt(a.params.per_page),"label-select":e.lang("rows_per_page",e.langComponents.COMPONENT_SYSTEM),"label-input":e.lang("go_to",e.langComponents.COMPONENT_SYSTEM),onSelect:s.changePage,onSetLimit:s.changeLimit},null,8,["count-rows","current","limit-selector","label-select","label-input","onSelect","onSetLimit"]),[[I,s.showPagination]])])],64)}const ie=g(Z,[["render",oe],["__scopeId","data-v-4c9f8279"]]),re={components:{ProfileLayout:N,CacheTable:ie}};function ce(e,t,n,u,a,s){const i=r("cache-table"),o=r("profile-layout");return d(),C(o,{"full-width":"",breadcrumbs:[{title:e.lang("cache",e.langComponents.COMPONENT_CACHE)}],"page-title":e.lang("cache",e.langComponents.COMPONENT_CACHE)},{default:T(()=>[c(i)]),_:1},8,["breadcrumbs","page-title"])}const Ce=g(re,[["render",ce]]);export{Ce 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.