mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-25 09:24:04 +01:00
1 line
39 KiB
JavaScript
1 line
39 KiB
JavaScript
(function(){"use strict";var e={5539:function(e,t,n){n.d(t,{L:function(){return Zt}});n(6992),n(8674),n(9601),n(7727);var o=n(9963),s=n(6252),r=n.p+"img/logo.png",a={key:0,class:"container container-xs relative mx-auto xl:rounded xl:border xl:shadow-xl xl:my-5 p-5 pb-12 xl:pb-5 text-left dark:bg-gray-800 dark:text-gray-200 dark:border-gray-500",id:"global"},i={class:"mb-2"},l={class:"flex flex-wrap"},u=(0,s._)("div",{class:"w-3/4 text-left my-auto"},[(0,s._)("div",{class:"text-3xl xl:text-5xl lg:text-4xl font-light"},"Health Status")],-1),g={class:"w-1/4 flex justify-end"},c=["src"],d={key:1,src:r,alt:"Gatus",class:"object-scale-down",style:{"max-width":"100px","min-width":"50px","min-height":"50px"}},h={key:0},p=["href"];function f(e,t,n,o,r,f){var m=(0,s.up)("router-view"),A=(0,s.up)("Tooltip"),v=(0,s.up)("Social");return(0,s.wg)(),(0,s.iD)(s.HY,null,[r.retrievedConfig?((0,s.wg)(),(0,s.iD)("div",a,[(0,s._)("div",i,[(0,s._)("div",l,[u,(0,s._)("div",g,[f.getLogo?((0,s.wg)(),(0,s.iD)("img",{key:0,src:f.getLogo,alt:"Gatus",class:"object-scale-down",style:{"max-width":"100px","min-width":"50px","min-height":"50px"}},null,8,c)):((0,s.wg)(),(0,s.iD)("img",d))])])]),r.config&&r.config.oidc&&!r.config.authenticated?((0,s.wg)(),(0,s.iD)("div",h,[(0,s._)("a",{href:"".concat(r.SERVER_URL,"/oidc/login"),class:"max-w-lg mx-auto w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-lg text-white bg-green-700 hover:bg-green-800"}," Login with OIDC ",8,p)])):(0,s.kq)("",!0),(0,s.Wm)(m,{onShowTooltip:f.showTooltip},null,8,["onShowTooltip"])])):(0,s.kq)("",!0),(0,s.Wm)(A,{result:r.tooltip.result,event:r.tooltip.event},null,8,["result","event"]),(0,s.Wm)(v)],64)}n(1539);var m=n.p+"img/github.png",A=function(e){return(0,s.dD)("data-v-a88161aa"),e=e(),(0,s.Cn)(),e},v={id:"social"},w=A((function(){return(0,s._)("a",{href:"https://github.com/TwiN/gatus",target:"_blank",title:"Gatus on GitHub"},[(0,s._)("img",{src:m,alt:"GitHub",width:"32",height:"auto"})],-1)})),y=[w];function x(e,t,n,o,r,a){return(0,s.wg)(),(0,s.iD)("div",v,y)}var T={name:"Social"},k=n(3744);const R=(0,k.Z)(T,[["render",x],["__scopeId","data-v-a88161aa"]]);var b=R,I=(n(6977),n(3577)),D=(0,s._)("div",{class:"tooltip-title"},"Timestamp:",-1),S={id:"tooltip-timestamp"},C=(0,s._)("div",{class:"tooltip-title"},"Response time:",-1),E={id:"tooltip-response-time"},B=(0,s._)("div",{class:"tooltip-title"},"Conditions:",-1),P={id:"tooltip-conditions"},U=(0,s._)("br",null,null,-1),O={key:0,id:"tooltip-errors-container"},H=(0,s._)("div",{class:"tooltip-title"},"Errors:",-1),z={id:"tooltip-errors"},M=(0,s._)("br",null,null,-1);function Q(e,t,n,o,r,a){return(0,s.wg)(),(0,s.iD)("div",{id:"tooltip",ref:"tooltip",class:(0,I.C_)(r.hidden?"invisible":""),style:(0,I.j5)("top:"+r.top+"px; left:"+r.left+"px")},[n.result?(0,s.WI)(e.$slots,"default",{key:0},(function(){return[D,(0,s._)("code",S,(0,I.zw)(a.prettifyTimestamp(n.result.timestamp)),1),C,(0,s._)("code",E,(0,I.zw)((n.result.duration/1e6).toFixed(0))+"ms",1),B,(0,s._)("code",P,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(n.result.conditionResults,(function(t){return(0,s.WI)(e.$slots,"default",{key:t},(function(){return[(0,s.Uk)((0,I.zw)(t.success?"✓":"X")+" ~ "+(0,I.zw)(t.condition),1),U]}))})),128))]),n.result.errors&&n.result.errors.length?((0,s.wg)(),(0,s.iD)("div",O,[H,(0,s._)("code",z,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(n.result.errors,(function(t){return(0,s.WI)(e.$slots,"default",{key:t},(function(){return[(0,s.Uk)(" - "+(0,I.zw)(t),1),M]}))})),128))])])):(0,s.kq)("",!0)]})):(0,s.kq)("",!0)],6)}n(4916),n(5306);var W={name:"Endpoints",props:{event:Event,result:Object},methods:{prettifyTimestamp:function(e){var t=new Date(e),n=t.getFullYear(),o=(t.getMonth()+1<10?"0":"")+(t.getMonth()+1),s=(t.getDate()<10?"0":"")+t.getDate(),r=(t.getHours()<10?"0":"")+t.getHours(),a=(t.getMinutes()<10?"0":"")+t.getMinutes(),i=(t.getSeconds()<10?"0":"")+t.getSeconds();return n+"-"+o+"-"+s+" "+r+":"+a+":"+i},htmlEntities:function(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},reposition:function(){if(this.event&&this.event.type)if("mouseenter"===this.event.type){var e=this.event.target.getBoundingClientRect().y+30,t=this.event.target.getBoundingClientRect().x,n=this.$refs.tooltip.getBoundingClientRect();t+window.scrollX+n.width+50>document.body.getBoundingClientRect().width&&(t=this.event.target.getBoundingClientRect().x-n.width+this.event.target.getBoundingClientRect().width,t<0&&(t+=-t)),e+window.scrollY+n.height+50>document.body.getBoundingClientRect().height&&e>=0&&(e=this.event.target.getBoundingClientRect().y-(n.height+10),e<0&&(e=this.event.target.getBoundingClientRect().y+30)),this.top=e,this.left=t}else"mouseleave"===this.event.type&&(this.hidden=!0)}},watch:{event:function(e){e&&e.type&&("mouseenter"===e.type?this.hidden=!1:"mouseleave"===e.type&&(this.hidden=!0))}},updated:function(){this.reposition()},created:function(){this.reposition()},data:function(){return{hidden:!0,top:0,left:0}}};const X=(0,k.Z)(W,[["render",Q]]);var q=X,K={name:"App",components:{Social:b,Tooltip:q},methods:{fetchConfig:function(){var e=this;fetch("".concat(Zt,"/api/v1/config"),{credentials:"include"}).then((function(t){e.retrievedConfig=!0,200===t.status&&t.json().then((function(t){e.config=t}))}))},showTooltip:function(e,t){this.tooltip={result:e,event:t}}},computed:{getLogo:function(){return window.config&&window.config.logo&&"{{ .Logo }}"!==window.config.logo?window.config.logo:""}},data:function(){return{retrievedConfig:!1,config:{oidc:!1,authenticated:!0},tooltip:{},SERVER_URL:Zt}},created:function(){this.fetchConfig()}};const Y=(0,k.Z)(K,[["render",f]]);var F=Y,G=n(2119);function Z(e,t,n,o,r,a){var i=(0,s.up)("Endpoints"),l=(0,s.up)("Pagination"),u=(0,s.up)("Settings");return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s.Wm)(i,{endpointStatuses:r.endpointStatuses,showStatusOnHover:!0,onShowTooltip:a.showTooltip,onToggleShowAverageResponseTime:a.toggleShowAverageResponseTime,showAverageResponseTime:r.showAverageResponseTime},null,8,["endpointStatuses","onShowTooltip","onToggleShowAverageResponseTime","showAverageResponseTime"]),(0,s.Wm)(l,{onPage:a.changePage},null,8,["onPage"]),(0,s.Wm)(u,{onRefreshData:a.fetchData},null,8,["onRefreshData"])],64)}n(2222),n(8862);var j={id:"settings",class:"flex bg-gray-200 border-gray-300 rounded border shadow dark:text-gray-200 dark:bg-gray-800 dark:border-gray-500"},L=(0,s._)("div",{class:"text-xs text-gray-600 rounded-xl py-1 px-2 dark:text-gray-200"}," ↻ ",-1),N=["selected"],J=["selected"],V=["selected"],_=["selected"],$=["selected"],ee=["selected"],te=(0,s.Uk)("☀"),ne=(0,s.Uk)("🌙");function oe(e,t,n,o,r,a){return(0,s.wg)(),(0,s.iD)("div",j,[L,(0,s._)("select",{class:"text-center text-gray-500 text-xs dark:text-gray-200 dark:bg-gray-800 border-r border-l border-gray-300 dark:border-gray-500",id:"refresh-rate",ref:"refreshInterval",onChange:t[0]||(t[0]=function(){return a.handleChangeRefreshInterval&&a.handleChangeRefreshInterval.apply(a,arguments)})},[(0,s._)("option",{value:"10",selected:10===r.refreshInterval},"10s",8,N),(0,s._)("option",{value:"30",selected:30===r.refreshInterval},"30s",8,J),(0,s._)("option",{value:"60",selected:60===r.refreshInterval},"1m",8,V),(0,s._)("option",{value:"120",selected:120===r.refreshInterval},"2m",8,_),(0,s._)("option",{value:"300",selected:300===r.refreshInterval},"5m",8,$),(0,s._)("option",{value:"600",selected:600===r.refreshInterval},"10m",8,ee)],544),(0,s._)("button",{onClick:t[1]||(t[1]=function(){return a.toggleDarkMode&&a.toggleDarkMode.apply(a,arguments)}),class:"text-xs p-1"},[r.darkMode?(0,s.WI)(e.$slots,"default",{key:0},(function(){return[te]})):(0,s.WI)(e.$slots,"default",{key:1},(function(){return[ne]}))])])}var se={name:"Settings",props:{},methods:{setRefreshInterval:function(e){sessionStorage.setItem("gatus:refresh-interval",e);var t=this;this.refreshIntervalHandler=setInterval((function(){t.refreshData()}),1e3*e)},refreshData:function(){this.$emit("refreshData")},handleChangeRefreshInterval:function(){this.refreshData(),clearInterval(this.refreshIntervalHandler),this.setRefreshInterval(this.$refs.refreshInterval.value)},toggleDarkMode:function(){"dark"===localStorage.theme?localStorage.theme="light":localStorage.theme="dark",this.applyTheme()},applyTheme:function(){"dark"===localStorage.theme||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?(this.darkMode=!0,document.documentElement.classList.add("dark")):(this.darkMode=!1,document.documentElement.classList.remove("dark"))}},created:function(){10!==this.refreshInterval&&30!==this.refreshInterval&&60!==this.refreshInterval&&120!==this.refreshInterval&&300!==this.refreshInterval&&600!==this.refreshInterval&&(this.refreshInterval=60),this.setRefreshInterval(this.refreshInterval),this.applyTheme()},unmounted:function(){clearInterval(this.refreshIntervalHandler)},data:function(){return{refreshInterval:sessionStorage.getItem("gatus:refresh-interval")<10?60:parseInt(sessionStorage.getItem("gatus:refresh-interval")),refreshIntervalHandler:0,darkMode:!0}}};const re=(0,k.Z)(se,[["render",oe]]);var ae=re,ie=(n(8309),{id:"results"});function le(e,t,n,o,r,a){var i=(0,s.up)("EndpointGroup");return(0,s.wg)(),(0,s.iD)("div",ie,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(r.endpointGroups,(function(t){return(0,s.WI)(e.$slots,"default",{key:t},(function(){return[(0,s.Wm)(i,{endpoints:t.endpoints,name:t.name,onShowTooltip:a.showTooltip,onToggleShowAverageResponseTime:a.toggleShowAverageResponseTime,showAverageResponseTime:n.showAverageResponseTime},null,8,["endpoints","name","onShowTooltip","onToggleShowAverageResponseTime","showAverageResponseTime"])]}))})),128))])}var ue={class:"font-mono text-gray-400 text-xl font-medium pb-2 px-3 dark:text-gray-200 dark:hover:text-gray-500 dark:border-gray-500"},ge={key:0,class:"text-green-600"},ce={key:1,class:"text-yellow-400"},de={class:"float-right endpoint-group-arrow"};function he(e,t,n,o,r,a){var i=(0,s.up)("Endpoint");return(0,s.wg)(),(0,s.iD)("div",{class:(0,I.C_)(0===n.endpoints.length?"mt-3":"mt-4")},["undefined"!==n.name?(0,s.WI)(e.$slots,"default",{key:0},(function(){return[(0,s._)("div",{class:"endpoint-group pt-2 border dark:bg-gray-800 dark:border-gray-500",onClick:t[0]||(t[0]=function(){return a.toggleGroup&&a.toggleGroup.apply(a,arguments)})},[(0,s._)("h5",ue,[r.healthy?((0,s.wg)(),(0,s.iD)("span",ge,"✓")):((0,s.wg)(),(0,s.iD)("span",ce,"~")),(0,s.Uk)(" "+(0,I.zw)(n.name)+" ",1),(0,s._)("span",de,(0,I.zw)(r.collapsed?"▼":"▲"),1)])])]})):(0,s.kq)("",!0),r.collapsed?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,I.C_)("undefined"===n.name?"":"endpoint-group-content")},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(n.endpoints,(function(t,o){return(0,s.WI)(e.$slots,"default",{key:o},(function(){return[(0,s.Wm)(i,{data:t,maximumNumberOfResults:20,onShowTooltip:a.showTooltip,onToggleShowAverageResponseTime:a.toggleShowAverageResponseTime,showAverageResponseTime:n.showAverageResponseTime},null,8,["data","onShowTooltip","onToggleShowAverageResponseTime","showAverageResponseTime"])]}))})),128))],2))],2)}var pe={key:0,class:"endpoint px-3 py-3 border-l border-r border-t rounded-none hover:bg-gray-100 dark:hover:bg-gray-700 dark:border-gray-500"},fe={class:"flex flex-wrap mb-2"},me={class:"w-3/4"},Ae={key:0,class:"text-gray-500 font-light"},ve={class:"w-1/4 text-right"},we=["title"],ye={class:"status-over-time flex flex-row"},xe=["onMouseenter"],Te=["onMouseenter"],ke={class:"flex flex-wrap status-time-ago"},Re={class:"w-1/2"},be={class:"w-1/2 text-right"},Ie=(0,s._)("div",{class:"w-1/2"}," ",-1);function De(e,t,n,o,r,a){var i=(0,s.up)("router-link");return n.data?((0,s.wg)(),(0,s.iD)("div",pe,[(0,s._)("div",fe,[(0,s._)("div",me,[(0,s.Wm)(i,{to:a.generatePath(),class:"font-bold hover:text-blue-800 hover:underline dark:hover:text-blue-400",title:"View detailed endpoint health"},{default:(0,s.w5)((function(){return[(0,s.Uk)((0,I.zw)(n.data.name),1)]})),_:1},8,["to"]),n.data.results&&n.data.results.length&&n.data.results[n.data.results.length-1].hostname?((0,s.wg)(),(0,s.iD)("span",Ae," | "+(0,I.zw)(n.data.results[n.data.results.length-1].hostname),1)):(0,s.kq)("",!0)]),(0,s._)("div",ve,[n.data.results&&n.data.results.length?((0,s.wg)(),(0,s.iD)("span",{key:0,class:"font-light overflow-x-hidden cursor-pointer select-none",onClick:t[0]||(t[0]=function(){return a.toggleShowAverageResponseTime&&a.toggleShowAverageResponseTime.apply(a,arguments)}),title:n.showAverageResponseTime?"Average response time":"Minimum and maximum response time"},[n.showAverageResponseTime?(0,s.WI)(e.$slots,"default",{key:0},(function(){return[(0,s.Uk)(" ~"+(0,I.zw)(r.averageResponseTime)+"ms ",1)]})):(0,s.WI)(e.$slots,"default",{key:1},(function(){return[(0,s.Uk)((0,I.zw)(r.minResponseTime===r.maxResponseTime?r.minResponseTime:r.minResponseTime+"-"+r.maxResponseTime)+"ms ",1)]}))],8,we)):(0,s.kq)("",!0)])]),(0,s._)("div",null,[(0,s._)("div",ye,[n.data.results&&n.data.results.length?(0,s.WI)(e.$slots,"default",{key:0},(function(){return[n.data.results.length<n.maximumNumberOfResults?(0,s.WI)(e.$slots,"default",{key:0},(function(){return[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(n.maximumNumberOfResults-n.data.results.length,(function(e){return(0,s.wg)(),(0,s.iD)("span",{key:e,class:"status rounded border border-dashed border-gray-400"}," ")})),128))]})):(0,s.kq)("",!0),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(n.data.results,(function(n){return(0,s.WI)(e.$slots,"default",{key:n},(function(){return[n.success?((0,s.wg)(),(0,s.iD)("span",{key:0,class:"status status-success rounded bg-success",onMouseenter:function(e){return a.showTooltip(n,e)},onMouseleave:t[1]||(t[1]=function(e){return a.showTooltip(null,e)})},null,40,xe)):((0,s.wg)(),(0,s.iD)("span",{key:1,class:"status status-failure rounded bg-red-600",onMouseenter:function(e){return a.showTooltip(n,e)},onMouseleave:t[2]||(t[2]=function(e){return a.showTooltip(null,e)})},null,40,Te))]}))})),128))]})):(0,s.WI)(e.$slots,"default",{key:1},(function(){return[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(n.maximumNumberOfResults,(function(e){return(0,s.wg)(),(0,s.iD)("span",{key:e,class:"status rounded border border-dashed border-gray-400"}," ")})),128))]}))])]),(0,s._)("div",ke,[n.data.results&&n.data.results.length?(0,s.WI)(e.$slots,"default",{key:0},(function(){return[(0,s._)("div",Re,(0,I.zw)(e.generatePrettyTimeAgo(n.data.results[0].timestamp)),1),(0,s._)("div",be,(0,I.zw)(e.generatePrettyTimeAgo(n.data.results[n.data.results.length-1].timestamp)),1)]})):(0,s.WI)(e.$slots,"default",{key:1},(function(){return[Ie]}))])])):(0,s.kq)("",!0)}n(9653);var Se={methods:{generatePrettyTimeAgo:function(e){var t=(new Date).getTime()-new Date(e).getTime();if(t>2592e5){var n=(t/864e5).toFixed(0);return n+" day"+("1"!==n?"s":"")+" ago"}if(t>36e5){var o=(t/36e5).toFixed(0);return o+" hour"+("1"!==o?"s":"")+" ago"}if(t>6e4){var s=(t/6e4).toFixed(0);return s+" minute"+("1"!==s?"s":"")+" ago"}return(t/1e3).toFixed(0)+" seconds ago"}}},Ce={name:"Endpoint",props:{maximumNumberOfResults:Number,data:Object,showAverageResponseTime:Boolean},emits:["showTooltip","toggleShowAverageResponseTime"],mixins:[Se],methods:{updateMinAndMaxResponseTimes:function(){var e=null,t=null,n=0;for(var o in this.data.results){var s=parseInt((this.data.results[o].duration/1e6).toFixed(0));n+=s,(null==e||e>s)&&(e=s),(null==t||t<s)&&(t=s)}this.minResponseTime!==e&&(this.minResponseTime=e),this.maxResponseTime!==t&&(this.maxResponseTime=t),this.data.results&&this.data.results.length&&(this.averageResponseTime=(n/this.data.results.length).toFixed(0))},generatePath:function(){return this.data?"/endpoints/".concat(this.data.key):"/"},showTooltip:function(e,t){this.$emit("showTooltip",e,t)},toggleShowAverageResponseTime:function(){this.$emit("toggleShowAverageResponseTime")}},watch:{data:function(){this.updateMinAndMaxResponseTimes()}},created:function(){this.updateMinAndMaxResponseTimes()},data:function(){return{minResponseTime:0,maxResponseTime:0,averageResponseTime:0}}};const Ee=(0,k.Z)(Ce,[["render",De]]);var Be=Ee,Pe={name:"EndpointGroup",components:{Endpoint:Be},props:{name:String,endpoints:Array,showAverageResponseTime:Boolean},emits:["showTooltip","toggleShowAverageResponseTime"],methods:{healthCheck:function(){if(this.endpoints)for(var e in this.endpoints)for(var t in this.endpoints[e].results)if(!this.endpoints[e].results[t].success)return void(this.healthy&&(this.healthy=!1));this.healthy||(this.healthy=!0)},toggleGroup:function(){this.collapsed=!this.collapsed,sessionStorage.setItem("gatus:endpoint-group:".concat(this.name,":collapsed"),this.collapsed)},showTooltip:function(e,t){this.$emit("showTooltip",e,t)},toggleShowAverageResponseTime:function(){this.$emit("toggleShowAverageResponseTime")}},watch:{endpoints:function(){this.healthCheck()}},created:function(){this.healthCheck()},data:function(){return{healthy:!0,collapsed:"true"===sessionStorage.getItem("gatus:endpoint-group:".concat(this.name,":collapsed"))}}};const Ue=(0,k.Z)(Pe,[["render",he]]);var Oe=Ue,He={name:"Endpoints",components:{EndpointGroup:Oe},props:{showStatusOnHover:Boolean,endpointStatuses:Object,showAverageResponseTime:Boolean},emits:["showTooltip","toggleShowAverageResponseTime"],methods:{process:function(){var e={};for(var t in this.endpointStatuses){var n=this.endpointStatuses[t];e[n.group]&&0!==e[n.group].length||(e[n.group]=[]),e[n.group].push(n)}var o=[];for(var s in e)"undefined"!==s&&o.push({name:s,endpoints:e[s]});e["undefined"]&&o.push({name:"undefined",endpoints:e["undefined"]}),this.endpointGroups=o},showTooltip:function(e,t){this.$emit("showTooltip",e,t)},toggleShowAverageResponseTime:function(){this.$emit("toggleShowAverageResponseTime")}},watch:{endpointStatuses:function(){this.process()}},data:function(){return{userClickedStatus:!1,endpointGroups:[]}}};const ze=(0,k.Z)(He,[["render",le]]);var Me=ze,Qe={class:"mt-3 flex"},We={class:"flex-1"},Xe={class:"flex-1 text-right"};function qe(e,t,n,o,r,a){return(0,s.wg)(),(0,s.iD)("div",Qe,[(0,s._)("div",We,[r.currentPage<5?((0,s.wg)(),(0,s.iD)("button",{key:0,onClick:t[0]||(t[0]=function(){return a.nextPage&&a.nextPage.apply(a,arguments)}),class:"bg-gray-100 hover:bg-gray-200 text-gray-500 border border-gray-200 px-2 rounded font-mono dark:bg-gray-700 dark:text-gray-200 dark:border-gray-500 dark:hover:bg-gray-600"},"<")):(0,s.kq)("",!0)]),(0,s._)("div",Xe,[r.currentPage>1?((0,s.wg)(),(0,s.iD)("button",{key:0,onClick:t[1]||(t[1]=function(){return a.previousPage&&a.previousPage.apply(a,arguments)}),class:"bg-gray-100 hover:bg-gray-200 text-gray-500 border border-gray-200 px-2 rounded font-mono dark:bg-gray-700 dark:text-gray-200 dark:border-gray-500 dark:hover:bg-gray-600"},">")):(0,s.kq)("",!0)])])}var Ke={name:"Pagination",components:{},emits:["page"],methods:{nextPage:function(){this.currentPage++,this.$emit("page",this.currentPage)},previousPage:function(){this.currentPage--,this.$emit("page",this.currentPage)}},data:function(){return{currentPage:1}}};const Ye=(0,k.Z)(Ke,[["render",qe]]);var Fe=Ye,Ge={name:"Home",components:{Pagination:Fe,Endpoints:Me,Settings:ae},emits:["showTooltip","toggleShowAverageResponseTime"],methods:{fetchData:function(){var e=this;fetch("".concat(Zt,"/api/v1/endpoints/statuses?page=").concat(this.currentPage),{credentials:"include"}).then((function(e){return e.json()})).then((function(t){JSON.stringify(e.endpointStatuses)!==JSON.stringify(t)&&(e.endpointStatuses=t)}))},changePage:function(e){this.currentPage=e,this.fetchData()},showTooltip:function(e,t){this.$emit("showTooltip",e,t)},toggleShowAverageResponseTime:function(){this.showAverageResponseTime=!this.showAverageResponseTime}},data:function(){return{endpointStatuses:[],currentPage:1,showAverageResponseTime:!0}},created:function(){this.fetchData()}};const Ze=(0,k.Z)(Ge,[["render",Z]]);var je=Ze,Le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAJF0lEQVR4nO2b7VcTVwKHf8S8kGRmkpAJBKyVstbIS3gxAeXFikcRbdVaBJvwEgqoqwuEELqwkJcCMQna0926bvecPdbtdtftnn7YP6EfevoPiau0FXD2w2TCMJkgiKME73PO/ZIzk3Pn99y59+beG4BAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIMqjgcmngcmkA5KUK4RWQB2BPictlcN0K+us+DwaLTlcbAewBkaA4eQDUrMNB1yyM/aEkdu1J8c1rS7VJf4h1OGgAahAJipEKn6Vr4/5Q8c1rS+ZoP2eO+jh7bOjnmsRwlHWwRIJC5AFQw2ajauIjkeLY1V/48Ps5U9THmaI+zh678ktNfGQeNhsFIuGlwocPGOoWRqPFsSu/CuGbU+ELpXB+6GltYjQOwJC6R/Vaa74LWAs/6Z+3z19dXgu/f134pqiPYyI+zjY3uFK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gpu42JF6WUJ6SUXyvCrx4fyCjETdQiyATwYTA+qEc556NgACnCN4noPBGd9n3/Gm4fE2/b3GagDSAiQUTfAzglhLjYZW4TyZy/E9v9BYbO94T1TCaz37btRSXbOzveDXZ85OMmjAZ0PheUDB7xQGAP2zSfHzYDOqcgFjw6HxlXM15igAnLd6jUDz/RIO943hAMwzAMwzAMwzAMwzAMwzAMwzAMwzAMwzBMH/gH4sBnDNMGrTEAAAAASUVORK5CYII=",Ve=function(e){return(0,s.dD)("data-v-1c590266"),e=e(),(0,s.Cn)(),e},_e=(0,s.Uk)(" ← "),$e=Ve((function(){return(0,s._)("h1",{class:"text-xl xl:text-3xl font-mono text-gray-400"},"RECENT CHECKS",-1)})),et=Ve((function(){return(0,s._)("hr",{class:"mb-4"},null,-1)})),tt={key:1,class:"mt-12"},nt=Ve((function(){return(0,s._)("h1",{class:"text-xl xl:text-3xl font-mono text-gray-400"},"UPTIME",-1)})),ot=Ve((function(){return(0,s._)("hr",null,null,-1)})),st={class:"flex space-x-4 text-center text-2xl mt-6 relative bottom-2 mb-10"},rt={class:"flex-1"},at=Ve((function(){return(0,s._)("h2",{class:"text-sm text-gray-400 mb-1"},"Last 7 days",-1)})),it=["src"],lt={class:"flex-1"},ut=Ve((function(){return(0,s._)("h2",{class:"text-sm text-gray-400 mb-1"},"Last 24 hours",-1)})),gt=["src"],ct={class:"flex-1"},dt=Ve((function(){return(0,s._)("h2",{class:"text-sm text-gray-400 mb-1"},"Last hour",-1)})),ht=["src"],pt={key:2,class:"mt-12"},ft=Ve((function(){return(0,s._)("h1",{class:"text-xl xl:text-3xl font-mono text-gray-400"},"RESPONSE TIME",-1)})),mt=Ve((function(){return(0,s._)("hr",null,null,-1)})),At=["src"],vt={class:"flex space-x-4 text-center text-2xl mt-6 relative bottom-2 mb-10"},wt={class:"flex-1"},yt=Ve((function(){return(0,s._)("h2",{class:"text-sm text-gray-400 mb-1"},"Last 7 days",-1)})),xt=["src"],Tt={class:"flex-1"},kt=Ve((function(){return(0,s._)("h2",{class:"text-sm text-gray-400 mb-1"},"Last 24 hours",-1)})),Rt=["src"],bt={class:"flex-1"},It=Ve((function(){return(0,s._)("h2",{class:"text-sm text-gray-400 mb-1"},"Last hour",-1)})),Dt=["src"],St={key:3},Ct=Ve((function(){return(0,s._)("h1",{class:"text-xl xl:text-3xl font-mono text-gray-400 mt-4"},"EVENTS",-1)})),Et=Ve((function(){return(0,s._)("hr",{class:"mb-4"},null,-1)})),Bt={class:"p-3 my-4"},Pt={class:"text-lg"},Ut={key:0,src:Le,alt:"Healthy",class:"border border-green-600 rounded-full opacity-75 bg-green-100 mr-2 inline",width:"26"},Ot={key:1,src:Ne,alt:"Unhealthy",class:"border border-red-500 rounded-full opacity-75 bg-red-100 mr-2 inline",width:"26"},Ht={key:2,src:Je,alt:"Start",class:"border border-gray-500 rounded-full opacity-75 bg-gray-100 mr-2 inline",width:"26"},zt={class:"flex mt-1 text-sm text-gray-400"},Mt={class:"flex-1 text-left pl-10"},Qt={class:"flex-1 text-right"};function Wt(e,t,n,o,r,a){var i=(0,s.up)("router-link"),l=(0,s.up)("Endpoint"),u=(0,s.up)("Pagination"),g=(0,s.up)("Settings");return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s.Wm)(i,{to:"../",class:"absolute top-2 left-2 inline-block px-2 pb-0.5 text-lg text-black bg-gray-100 rounded hover:bg-gray-200 focus:outline-none border border-gray-200 dark:bg-gray-700 dark:text-gray-200 dark:border-gray-500 dark:hover:bg-gray-600"},{default:(0,s.w5)((function(){return[_e]})),_:1}),(0,s._)("div",null,[r.endpointStatus?(0,s.WI)(e.$slots,"default",{key:0},(function(){return[$e,et,(0,s.Wm)(l,{data:r.endpointStatus,maximumNumberOfResults:20,onShowTooltip:a.showTooltip,onToggleShowAverageResponseTime:a.toggleShowAverageResponseTime,showAverageResponseTime:r.showAverageResponseTime},null,8,["data","onShowTooltip","onToggleShowAverageResponseTime","showAverageResponseTime"]),(0,s.Wm)(u,{onPage:a.changePage},null,8,["onPage"])]}),!0):(0,s.kq)("",!0),r.endpointStatus&&r.endpointStatus.key?((0,s.wg)(),(0,s.iD)("div",tt,[nt,ot,(0,s._)("div",st,[(0,s._)("div",rt,[at,(0,s._)("img",{src:a.generateUptimeBadgeImageURL("7d"),alt:"7d uptime badge",class:"mx-auto"},null,8,it)]),(0,s._)("div",lt,[ut,(0,s._)("img",{src:a.generateUptimeBadgeImageURL("24h"),alt:"24h uptime badge",class:"mx-auto"},null,8,gt)]),(0,s._)("div",ct,[dt,(0,s._)("img",{src:a.generateUptimeBadgeImageURL("1h"),alt:"1h uptime badge",class:"mx-auto"},null,8,ht)])])])):(0,s.kq)("",!0),r.endpointStatus&&r.endpointStatus.key?((0,s.wg)(),(0,s.iD)("div",pt,[ft,mt,(0,s._)("img",{src:a.generateResponseTimeChartImageURL(),alt:"response time chart",class:"mt-6"},null,8,At),(0,s._)("div",vt,[(0,s._)("div",wt,[yt,(0,s._)("img",{src:a.generateResponseTimeBadgeImageURL("7d"),alt:"7d response time badge",class:"mx-auto mt-2"},null,8,xt)]),(0,s._)("div",Tt,[kt,(0,s._)("img",{src:a.generateResponseTimeBadgeImageURL("24h"),alt:"24h response time badge",class:"mx-auto mt-2"},null,8,Rt)]),(0,s._)("div",bt,[It,(0,s._)("img",{src:a.generateResponseTimeBadgeImageURL("1h"),alt:"1h response time badge",class:"mx-auto mt-2"},null,8,Dt)])])])):(0,s.kq)("",!0),r.endpointStatus&&r.endpointStatus.key?((0,s.wg)(),(0,s.iD)("div",St,[Ct,Et,(0,s._)("div",null,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(r.events,(function(t){return(0,s.WI)(e.$slots,"default",{key:t},(function(){return[(0,s._)("div",Bt,[(0,s._)("h2",Pt,["HEALTHY"===t.type?((0,s.wg)(),(0,s.iD)("img",Ut)):"UNHEALTHY"===t.type?((0,s.wg)(),(0,s.iD)("img",Ot)):"START"===t.type?((0,s.wg)(),(0,s.iD)("img",Ht)):(0,s.kq)("",!0),(0,s.Uk)(" "+(0,I.zw)(t.fancyText),1)]),(0,s._)("div",zt,[(0,s._)("div",Mt,(0,I.zw)(new Date(t.timestamp).toISOString()),1),(0,s._)("div",Qt,(0,I.zw)(t.fancyTimeAgo),1)])])]}),!0)})),128))])])):(0,s.kq)("",!0)]),(0,s.Wm)(g,{onRefreshData:a.fetchData},null,8,["onRefreshData"])],64)}var Xt={name:"Details",components:{Pagination:Fe,Endpoint:Be,Settings:ae},emits:["showTooltip"],mixins:[Se],methods:{fetchData:function(){var e=this;fetch("".concat(this.serverUrl,"/api/v1/endpoints/").concat(this.$route.params.key,"/statuses?page=").concat(this.currentPage),{credentials:"include"}).then((function(e){return e.json()})).then((function(t){if(JSON.stringify(e.endpointStatus)!==JSON.stringify(t)){e.endpointStatus=t,e.uptime=t.uptime;for(var n=[],o=t.events.length-1;o>=0;o--){var s=t.events[o];if(o===t.events.length-1)"UNHEALTHY"===s.type?s.fancyText="Endpoint is unhealthy":"HEALTHY"===s.type?s.fancyText="Endpoint is healthy":"START"===s.type&&(s.fancyText="Monitoring started");else{var r=t.events[o+1];"HEALTHY"===s.type?s.fancyText="Endpoint became healthy":"UNHEALTHY"===s.type?s.fancyText=r?"Endpoint was unhealthy for "+e.prettifyTimeDifference(r.timestamp,s.timestamp):"Endpoint became unhealthy":"START"===s.type&&(s.fancyText="Monitoring started")}s.fancyTimeAgo=e.generatePrettyTimeAgo(s.timestamp),n.push(s)}e.events=n}}))},generateUptimeBadgeImageURL:function(e){return"".concat(this.serverUrl,"/api/v1/endpoints/").concat(this.endpointStatus.key,"/uptimes/").concat(e,"/badge.svg")},generateResponseTimeBadgeImageURL:function(e){return"".concat(this.serverUrl,"/api/v1/endpoints/").concat(this.endpointStatus.key,"/response-times/").concat(e,"/badge.svg")},generateResponseTimeChartImageURL:function(){return"".concat(this.serverUrl,"/api/v1/endpoints/").concat(this.endpointStatus.key,"/response-times/24h/chart.svg")},prettifyUptime:function(e){return e?(100*e).toFixed(2)+"%":"0%"},prettifyTimeDifference:function(e,t){var n=Math.ceil((new Date(e)-new Date(t))/1e3/60);return n+(1===n?" minute":" minutes")},changePage:function(e){this.currentPage=e,this.fetchData()},showTooltip:function(e,t){this.$emit("showTooltip",e,t)},toggleShowAverageResponseTime:function(){this.showAverageResponseTime=!this.showAverageResponseTime}},data:function(){return{endpointStatus:{},uptime:{},events:[],hourlyAverageResponseTime:{},serverUrl:"."===Zt?"..":Zt,currentPage:1,showAverageResponseTime:!0,chartLabels:[],chartValues:[]}},created:function(){this.fetchData()}};const qt=(0,k.Z)(Xt,[["render",Wt],["__scopeId","data-v-1c590266"]]);var Kt=qt,Yt=[{path:"/",name:"Home",component:je},{path:"/endpoints/:key",name:"Details",component:Kt},{path:"/services/:key",redirect:{name:"Details"}}],Ft=(0,G.p7)({history:(0,G.PO)("/"),routes:Yt}),Gt=Ft,Zt="";(0,o.ri)(F).use(Gt).mount("#app")}},t={};function n(o){var s=t[o];if(void 0!==s)return s.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.m=e,function(){var e=[];n.O=function(t,o,s,r){if(!o){var a=1/0;for(g=0;g<e.length;g++){o=e[g][0],s=e[g][1],r=e[g][2];for(var i=!0,l=0;l<o.length;l++)(!1&r||a>=r)&&Object.keys(n.O).every((function(e){return n.O[e](o[l])}))?o.splice(l--,1):(i=!1,r<a&&(a=r));if(i){e.splice(g--,1);var u=s();void 0!==u&&(t=u)}}return t}r=r||0;for(var g=e.length;g>0&&e[g-1][2]>r;g--)e[g]=e[g-1];e[g]=[o,s,r]}}(),function(){n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.p="/"}(),function(){var e={143:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var s,r,a=o[0],i=o[1],l=o[2],u=0;if(a.some((function(t){return 0!==e[t]}))){for(s in i)n.o(i,s)&&(n.m[s]=i[s]);if(l)var g=l(n)}for(t&&t(o);u<a.length;u++)r=a[u],n.o(e,r)&&e[r]&&e[r][0](),e[a[u]]=0;return n.O(g)},o=self["webpackChunkgatus"]=self["webpackChunkgatus"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var o=n.O(void 0,[998],(function(){return n(5539)}));o=n.O(o)})(); |