2022-01-08 20:55:40 +01:00
|
|
|
(function(){"use strict";var e={5906:function(e,t,n){n.d(t,{L:function(){return Vt}});n(6992),n(8674),n(9601),n(7727);var o=n(9963),s=(n(9254),n(6252)),r=n(3577),i=n.p+"img/logo.svg",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"},l={class:"mb-2"},u={class:"flex flex-wrap"},g={class:"w-3/4 text-left my-auto"},c={class:"text-3xl xl:text-5xl lg:text-4xl font-light"},d={class:"w-1/4 flex justify-end"},h=["href"],p=["src"],f={key:1,src:i,alt:"Gatus",class:"object-scale-down",style:{"max-width":"100px","min-width":"50px","min-height":"50px"}},m={key:0,class:"text-red-500 text-center my-2"},A={class:"text-xl"},v={key:0,class:"text-red-500"},w={key:1,class:"text-red-500"},y={key:1},x=["href"];function T(e,t,n,o,i,T){var k=(0,s.up)("router-view"),b=(0,s.up)("Tooltip"),R=(0,s.up)("Social");return(0,s.wg)(),(0,s.iD)(s.HY,null,[i.retrievedConfig?((0,s.wg)(),(0,s.iD)("div",a,[(0,s._)("div",l,[(0,s._)("div",u,[(0,s._)("div",g,[(0,s._)("div",c,(0,r.zw)(T.header),1)]),(0,s._)("div",d,[(0,s._)("a",{href:T.link,target:"_blank",style:{width:"100px"}},[T.logo?((0,s.wg)(),(0,s.iD)("img",{key:0,src:T.logo,alt:"Gatus",class:"object-scale-down",style:{"max-width":"100px","min-width":"50px","min-height":"50px"}},null,8,p)):((0,s.wg)(),(0,s.iD)("img",f))],8,h)])])]),e.$route&&e.$route.query.error?((0,s.wg)(),(0,s.iD)("div",m,[(0,s._)("div",A,["access_denied"===e.$route.query.error?((0,s.wg)(),(0,s.iD)("span",v,"You do not have access to this status page")):((0,s.wg)(),(0,s.iD)("span",w,(0,r.zw)(e.$route.query.error),1))])])):(0,s.kq)("",!0),i.config&&i.config.oidc&&!i.config.authenticated?((0,s.wg)(),(0,s.iD)("div",y,[(0,s._)("a",{href:"".concat(i.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,x)])):(0,s.kq)("",!0),(0,s.Wm)(k,{onShowTooltip:T.showTooltip},null,8,["onShowTooltip"])])):(0,s.kq)("",!0),(0,s.Wm)(b,{result:i.tooltip.result,event:i.tooltip.event},null,8,["result","event"]),(0,s.Wm)(R)],64)}n(1539);var k=function(e){return(0,s.dD)("data-v-a4b3d200"),e=e(),(0,s.Cn)(),e},b={id:"social"},R=k((function(){return(0,s._)("a",{href:"https://github.com/TwiN/gatus",target:"_blank",title:"Gatus on GitHub"},[(0,s._)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 16 16",class:"hover:scale-110"},[(0,s._)("path",{fill:"gray",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})])],-1)})),I=[R];function D(e,t,n,o,r,i){return(0,s.wg)(),(0,s.iD)("div",b,I)}var C={name:"Social"},S=n(3744);const B=(0,S.Z)(C,[["render",D],["__scopeId","data-v-a4b3d200"]]);var E=B,P=(n(6977),(0,s._)("div",{class:"tooltip-title"},"Timestamp:",-1)),U={id:"tooltip-timestamp"},O=(0,s._)("div",{class:"tooltip-title"},"Response time:",-1),H={id:"tooltip-response-time"},z=(0,s._)("div",{class:"tooltip-title"},"Conditions:",-1),M={id:"tooltip-conditions"},Q=(0,s._)("br",null,null,-1),W={key:0,id:"tooltip-errors-container"},q=(0,s._)("div",{class:"tooltip-title"},"Errors:",-1),X={id:"tooltip-errors"},Y=(0,s._)("br",null,null,-1);function K(e,t,n,o,i,a){return(0,s.wg)(),(0,s.iD)("div",{id:"tooltip",ref:"tooltip",class:(0,r.C_)(i.hidden?"invisible":""),style:(0,r.j5)("top:"+i.top+"px; left:"+i.left+"px")},[n.result?(0,s.WI)(e.$slots,"default",{key:0},(function(){return[P,(0,s._)("code",U,(0,r.zw)(a.prettifyTimestamp(n.result.timestamp)),1),O,(0,
|