@uptime.link/statuspage 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +14 -25
- package/dist_bundle/bundle.js.map +2 -2
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/upl-statuspage-incidents.js +1 -1
- package/dist_ts_web/elements/upl-statuspage-statsgrid.d.ts +3 -0
- package/dist_ts_web/elements/upl-statuspage-statsgrid.js +36 -24
- package/dist_watch/bundle.js +32 -26
- package/dist_watch/bundle.js.map +2 -2
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/upl-statuspage-incidents.ts +4 -3
- package/ts_web/elements/upl-statuspage-statsgrid.ts +32 -24
package/dist_bundle/bundle.js
CHANGED
|
@@ -2943,7 +2943,7 @@ Continuing remediation efforts.`,author:"Ops Team"}]}],past:[]}},n="none";t.curr
|
|
|
2943
2943
|
.timeline::before {
|
|
2944
2944
|
content: '';
|
|
2945
2945
|
position: absolute;
|
|
2946
|
-
left:
|
|
2946
|
+
left: 7px;
|
|
2947
2947
|
top: 8px;
|
|
2948
2948
|
bottom: 8px;
|
|
2949
2949
|
width: 2px;
|
|
@@ -4793,7 +4793,7 @@ Downtime: ${p} minutes`)})}}
|
|
|
4793
4793
|
</div>
|
|
4794
4794
|
`:O`
|
|
4795
4795
|
<div class="stats-grid">
|
|
4796
|
-
<div class="stat-card
|
|
4796
|
+
<div class="stat-card ${this.currentStatus}">
|
|
4797
4797
|
<div class="stat-label">
|
|
4798
4798
|
<span class="status-indicator ${this.currentStatus}"></span>
|
|
4799
4799
|
Current Status
|
|
@@ -4803,7 +4803,7 @@ Downtime: ${p} minutes`)})}}
|
|
|
4803
4803
|
</div>
|
|
4804
4804
|
</div>
|
|
4805
4805
|
|
|
4806
|
-
<div class="stat-card
|
|
4806
|
+
<div class="stat-card ${this.getUptimeCardStatus()}">
|
|
4807
4807
|
<div class="stat-label">
|
|
4808
4808
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
4809
4809
|
<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>
|
|
@@ -4818,7 +4818,7 @@ Downtime: ${p} minutes`)})}}
|
|
|
4818
4818
|
</div>
|
|
4819
4819
|
</div>
|
|
4820
4820
|
|
|
4821
|
-
<div class="stat-card
|
|
4821
|
+
<div class="stat-card ${this.getResponseCardStatus()}">
|
|
4822
4822
|
<div class="stat-label">
|
|
4823
4823
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
4824
4824
|
<circle cx="12" cy="12" r="10"></circle>
|
|
@@ -4832,7 +4832,7 @@ Downtime: ${p} minutes`)})}}
|
|
|
4832
4832
|
${this.renderResponseChange()}
|
|
4833
4833
|
</div>
|
|
4834
4834
|
|
|
4835
|
-
<div class="stat-card
|
|
4835
|
+
<div class="stat-card ${this.getIncidentCardStatus()}">
|
|
4836
4836
|
<div class="stat-label">
|
|
4837
4837
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
4838
4838
|
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>
|
|
@@ -4844,8 +4844,8 @@ Downtime: ${p} minutes`)})}}
|
|
|
4844
4844
|
<div class="stat-value">
|
|
4845
4845
|
${this.totalIncidents}
|
|
4846
4846
|
</div>
|
|
4847
|
-
<div class="stat-change
|
|
4848
|
-
${this.affectedServices} of ${this.totalServices} services
|
|
4847
|
+
<div class="stat-change ${this.affectedServices===0?"positive":"negative"}">
|
|
4848
|
+
${this.affectedServices===0?"All services ok.":`${this.affectedServices} of ${this.totalServices} services affected`}
|
|
4849
4849
|
</div>
|
|
4850
4850
|
</div>
|
|
4851
4851
|
</div>
|
|
@@ -4856,7 +4856,7 @@ Downtime: ${p} minutes`)})}}
|
|
|
4856
4856
|
<span>${r==="positive"?"\u2193":r==="negative"?"\u2191":"\u2192"}</span>
|
|
4857
4857
|
<span>${r==="positive"?"Fast":r==="negative"?"Slow":"Normal"}</span>
|
|
4858
4858
|
</div>
|
|
4859
|
-
`}};Ve=xt(oA),nb=new WeakMap,ob=new WeakMap,ib=new WeakMap,sb=new WeakMap,ab=new WeakMap,lb=new WeakMap,cb=new WeakMap,ub=new WeakMap,V(Ve,4,"uptime",nA,rr,nb),V(Ve,4,"avgResponseTime",rA,rr,ob),V(Ve,4,"totalIncidents",tA,rr,ib),V(Ve,4,"affectedServices",eA,rr,sb),V(Ve,4,"totalServices",K$,rr,ab),V(Ve,4,"currentStatus",Z$,rr,lb),V(Ve,4,"loading",J$,rr,cb),V(Ve,4,"timePeriod",X$,rr,ub),rr=V(Ve,0,"UplStatuspageStatsgrid",iA,rr),qe(rr,"demo",Q$),qe(rr,"styles",[At.staticStyles,Or,Oe`
|
|
4859
|
+
`}getUptimeCardStatus(){return this.uptime>=99.9?"operational":this.uptime>=99?"degraded":"partial_outage"}getResponseCardStatus(){return this.avgResponseTime<200?"operational":this.avgResponseTime<500?"degraded":"partial_outage"}getIncidentCardStatus(){return this.affectedServices===0?"operational":this.currentStatus==="major_outage"?"major_outage":this.currentStatus==="partial_outage"?"partial_outage":"degraded"}};Ve=xt(oA),nb=new WeakMap,ob=new WeakMap,ib=new WeakMap,sb=new WeakMap,ab=new WeakMap,lb=new WeakMap,cb=new WeakMap,ub=new WeakMap,V(Ve,4,"uptime",nA,rr,nb),V(Ve,4,"avgResponseTime",rA,rr,ob),V(Ve,4,"totalIncidents",tA,rr,ib),V(Ve,4,"affectedServices",eA,rr,sb),V(Ve,4,"totalServices",K$,rr,ab),V(Ve,4,"currentStatus",Z$,rr,lb),V(Ve,4,"loading",J$,rr,cb),V(Ve,4,"timePeriod",X$,rr,ub),rr=V(Ve,0,"UplStatuspageStatsgrid",iA,rr),qe(rr,"demo",Q$),qe(rr,"styles",[At.staticStyles,Or,Oe`
|
|
4860
4860
|
:host {
|
|
4861
4861
|
display: block;
|
|
4862
4862
|
background: transparent;
|
|
@@ -4915,38 +4915,27 @@ Downtime: ${p} minutes`)})}}
|
|
|
4915
4915
|
transition: all ${m(se.fast)} ${m(K.default)};
|
|
4916
4916
|
}
|
|
4917
4917
|
|
|
4918
|
-
|
|
4918
|
+
/* Dynamic status-based accent colors for all stat cards */
|
|
4919
|
+
.stat-card.operational::before {
|
|
4919
4920
|
background: ${b.status.operational};
|
|
4920
4921
|
}
|
|
4921
4922
|
|
|
4922
|
-
.stat-card.
|
|
4923
|
+
.stat-card.degraded::before {
|
|
4923
4924
|
background: ${b.status.degraded};
|
|
4924
4925
|
}
|
|
4925
4926
|
|
|
4926
|
-
.stat-card.
|
|
4927
|
+
.stat-card.partial_outage::before {
|
|
4927
4928
|
background: ${b.status.partial};
|
|
4928
4929
|
}
|
|
4929
4930
|
|
|
4930
|
-
.stat-card.
|
|
4931
|
+
.stat-card.major_outage::before {
|
|
4931
4932
|
background: ${b.status.major};
|
|
4932
4933
|
}
|
|
4933
4934
|
|
|
4934
|
-
.stat-card.
|
|
4935
|
-
background: ${b.status.maintenance};
|
|
4936
|
-
}
|
|
4937
|
-
|
|
4938
|
-
.stat-card.uptime-card::before {
|
|
4939
|
-
background: ${b.status.operational};
|
|
4940
|
-
}
|
|
4941
|
-
|
|
4942
|
-
.stat-card.response-card::before {
|
|
4935
|
+
.stat-card.maintenance::before {
|
|
4943
4936
|
background: ${b.status.maintenance};
|
|
4944
4937
|
}
|
|
4945
4938
|
|
|
4946
|
-
.stat-card.incident-card::before {
|
|
4947
|
-
background: ${b.status.partial};
|
|
4948
|
-
}
|
|
4949
|
-
|
|
4950
4939
|
.stat-card:hover {
|
|
4951
4940
|
border-color: ${b.border.muted};
|
|
4952
4941
|
box-shadow: ${m(Me.md)};
|