2022-04-26 02:20:32 +02:00
|
|
|
(function(){"use strict";var e={2475:function(e,t,n){n.d(t,{L:function(){return gn}});n(6992),n(8674),n(9601),n(7727);var o=n(8061),s=(n(9254),n(8309),n(6252)),r=n(6612),a=n(9574),i={class:"mb-2"},l={class:"flex flex-wrap"},u={class:"w-3/4 text-left my-auto"},g={class:"text-3xl xl:text-5xl lg:text-4xl font-light"},c={class:"w-1/4 flex justify-end"},d=["href"],h=["src"],p={key:1,src:a,alt:"Gatus",class:"object-scale-down",style:{"max-width":"100px","min-width":"50px","min-height":"50px"}},f={key:0,class:"flex flex-wrap"},m=["href"],A={key:2,class:"mx-auto max-w-md pt-12"},v=(0,s._)("img",{src:a,alt:"Gatus",class:"mx-auto",style:{"max-width":"160px","min-width":"50px","min-height":"50px"}},null,-1),w=(0,s._)("h2",{class:"mt-4 text-center text-4xl font-extrabold text-gray-800 dark:text-gray-200"}," Gatus ",-1),y={class:"mt-8 py-7 px-4 rounded-sm sm:bg-gray-100 sm:border sm:border-gray-300 sm:shadow-2xl sm:px-10"},x=(0,s._)("div",{class:"sm:mx-auto sm:w-full"},[(0,s._)("h2",{class:"mb-4 text-center text-xl font-bold text-gray-600 dark:text-gray-200 dark:sm:text-gray-600"}," Sign in ")],-1),T={key:0,class:"text-red-500 text-center my-2"},k={class:"text-xl"},b={key:0,class:"text-red-500"},R={key:1,class:"text-red-500"},I=["href"];function D(e,t,n,o,a,D){var C=(0,s.up)("Loading"),S=(0,s.up)("router-view"),E=(0,s.up)("Tooltip"),B=(0,s.up)("Social");return(0,s.wg)(),(0,s.iD)(s.HY,null,[a.retrievedConfig?((0,s.wg)(),(0,s.iD)("div",{key:1,class:(0,r.C_)([a.config&&a.config.oidc&&!a.config.authenticated?"hidden":"","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"},[(0,s._)("div",i,[(0,s._)("div",l,[(0,s._)("div",u,[(0,s._)("div",g,(0,r.zw)(D.header),1)]),(0,s._)("div",c,[(0,s._)("a",{href:D.link,target:"_blank",style:{width:"100px"}},[D.logo?((0,s.wg)(),(0,s.iD)("img",{key:0,src:D.logo,alt:"Gatus",class:"object-scale-down",style:{"max-width":"100px","min-width":"50px","min-height":"50px"}},null,8,h)):((0,s.wg)(),(0,s.iD)("img",p))],8,d)])]),D.buttons?((0,s.wg)(),(0,s.iD)("div",f,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(D.buttons,(function(e){return(0,s.wg)(),(0,s.iD)("a",{key:e.name,href:e.link,target:"_blank",class:"px-2 py-0.5 font-medium select-none text-gray-600 hover:text-gray-500 dark:text-gray-300 dark:hover:text-gray-400 hover:underline"},(0,r.zw)(e.name),9,m)})),128))])):(0,s.kq)("",!0)]),(0,s.Wm)(S,{onShowTooltip:D.showTooltip},null,8,["onShowTooltip"])],2)):((0,s.wg)(),(0,s.j4)(C,{key:0,class:"h-64 w-64 px-4"})),a.config&&a.config.oidc&&!a.config.authenticated?((0,s.wg)(),(0,s.iD)("div",A,[v,w,(0,s._)("div",y,[x,e.$route&&e.$route.query.error?((0,s.wg)(),(0,s.iD)("div",T,[(0,s._)("div",k,["access_denied"===e.$route.query.error?((0,s.wg)(),(0,s.iD)("span",b,"You do not have access to this status page")):((0,s.wg)(),(0,s.iD)("span",R,(0,r.zw)(e.$route.query.error),1))])])):(0,s.kq)("",!0),(0,s._)("div",null,[(0,s._)("a",{href:"".concat(a.SERVER_URL,"/oidc/login"),class:"max-w-lg mx-auto w-full flex justify-center py-3 px-4 border border-green-800 rounded-md shadow-lg text-sm text-white bg-green-700 hover:bg-green-800"}," Login with OIDC ",8,I)])])])):(0,s.kq)("",!0),(0,s.Wm)(E,{result:a.tooltip.result,event:a.tooltip.event},null,8,["result","event"]),(0,s.Wm)(B)],64)}n(1539);var C=function(e){return(0,s.dD)("data-v-a4b3d200"),e=e(),(0,s.Cn)(),e},S={id:"social"},E=C((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.
|