mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-01 11:22:34 +02:00
fixed lint errors
This commit is contained in:
parent
148ffcdc96
commit
0d5c992c18
3 changed files with 15752 additions and 36 deletions
15720
package-lock.json
generated
Normal file
15720
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -2,5 +2,5 @@ export default {
|
||||||
// Add translations for Incident History
|
// Add translations for Incident History
|
||||||
"Incident History": "Incident History",
|
"Incident History": "Incident History",
|
||||||
"No incident reports found.": "No incident reports found.",
|
"No incident reports found.": "No incident reports found.",
|
||||||
"Loading": "Loading"
|
"Loading": "Loading",
|
||||||
}
|
};
|
||||||
|
|
|
@ -298,12 +298,12 @@
|
||||||
<div class="incident-meta mt-3">
|
<div class="incident-meta mt-3">
|
||||||
<div class="incident-date">
|
<div class="incident-date">
|
||||||
<font-awesome-icon icon="calendar-alt" class="me-1" />
|
<font-awesome-icon icon="calendar-alt" class="me-1" />
|
||||||
{{ $t("Date Created") }}: {{ datetimeFormat(report.createdDate) }}
|
{{ $t("Date Created") }}: {{ datetimeFormat(report.createdDate) }}
|
||||||
<span class="text-muted">({{ dateFromNow(report.createdDate) }})</span>
|
<span class="text-muted">({{ dateFromNow(report.createdDate) }})</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="report.lastUpdatedDate" class="incident-updated">
|
<div v-if="report.lastUpdatedDate" class="incident-updated">
|
||||||
<font-awesome-icon icon="clock" class="me-1" />
|
<font-awesome-icon icon="clock" class="me-1" />
|
||||||
{{ $t("Last Updated") }}: {{ datetimeFormat(report.lastUpdatedDate) }}
|
{{ $t("Last Updated") }}: {{ datetimeFormat(report.lastUpdatedDate) }}
|
||||||
<span class="text-muted">({{ dateFromNow(report.lastUpdatedDate) }})</span>
|
<span class="text-muted">({{ dateFromNow(report.lastUpdatedDate) }})</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -436,7 +436,6 @@ import { getResBaseURL } from "../util-frontend";
|
||||||
import { STATUS_PAGE_ALL_DOWN, STATUS_PAGE_ALL_UP, STATUS_PAGE_MAINTENANCE, STATUS_PAGE_PARTIAL_DOWN, UP, MAINTENANCE } from "../util.ts";
|
import { STATUS_PAGE_ALL_DOWN, STATUS_PAGE_ALL_UP, STATUS_PAGE_MAINTENANCE, STATUS_PAGE_PARTIAL_DOWN, UP, MAINTENANCE } from "../util.ts";
|
||||||
import Tag from "../components/Tag.vue";
|
import Tag from "../components/Tag.vue";
|
||||||
import VueMultiselect from "vue-multiselect";
|
import VueMultiselect from "vue-multiselect";
|
||||||
import io from "socket.io-client";
|
|
||||||
|
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
|
|
||||||
|
@ -868,7 +867,7 @@ export default {
|
||||||
this.isLoading = true;
|
this.isLoading = true;
|
||||||
try {
|
try {
|
||||||
const socket = this.$root.getSocket();
|
const socket = this.$root.getSocket();
|
||||||
|
|
||||||
socket.emit("getStatusPageIncidentHistory", this.slug, (data) => {
|
socket.emit("getStatusPageIncidentHistory", this.slug, (data) => {
|
||||||
if (data.ok) {
|
if (data.ok) {
|
||||||
this.incidentReports = data.incidents;
|
this.incidentReports = data.incidents;
|
||||||
|
@ -1365,141 +1364,141 @@ footer {
|
||||||
.incident-report {
|
.incident-report {
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
border-left: 5px solid;
|
border-left: 5px solid;
|
||||||
|
|
||||||
&.bg-info {
|
&.bg-info {
|
||||||
border-left-color: $info;
|
border-left-color: $info;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bg-warning {
|
&.bg-warning {
|
||||||
border-left-color: $warning;
|
border-left-color: $warning;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bg-danger {
|
&.bg-danger {
|
||||||
border-left-color: $danger;
|
border-left-color: $danger;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bg-primary {
|
&.bg-primary {
|
||||||
border-left-color: $primary;
|
border-left-color: $primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bg-light {
|
&.bg-light {
|
||||||
border-left-color: #ccc;
|
border-left-color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bg-dark {
|
&.bg-dark {
|
||||||
border-left-color: #333;
|
border-left-color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bg-maintenance {
|
&.bg-maintenance {
|
||||||
border-left-color: $maintenance;
|
border-left-color: $maintenance;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert-heading {
|
.alert-heading {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.incident-meta {
|
.incident-meta {
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.75rem;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
|
||||||
.incident-date, .incident-updated {
|
.incident-date, .incident-updated {
|
||||||
margin-bottom: 0.25rem;
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure markdown content is properly styled */
|
/* Ensure markdown content is properly styled */
|
||||||
:deep(.markdown-content) {
|
:deep(.markdown-content) {
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul, ol {
|
ul, ol {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
padding-left: 2rem;
|
padding-left: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: rgba(0, 0, 0, 0.05);
|
background-color: rgba(0, 0, 0, 0.05);
|
||||||
padding: 0.2rem 0.4rem;
|
padding: 0.2rem 0.4rem;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
background-color: rgba(0, 0, 0, 0.05);
|
background-color: rgba(0, 0, 0, 0.05);
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
border-left: 4px solid rgba(0, 0, 0, 0.1);
|
border-left: 4px solid rgba(0, 0, 0, 0.1);
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
color: rgba(0, 0, 0, 0.6);
|
color: rgba(0, 0, 0, 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
th, td {
|
th, td {
|
||||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
background-color: rgba(0, 0, 0, 0.05);
|
background-color: rgba(0, 0, 0, 0.05);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dark mode adjustments */
|
/* Dark mode adjustments */
|
||||||
.dark & {
|
.dark & {
|
||||||
.incident-report {
|
.incident-report {
|
||||||
&.bg-light {
|
&.bg-light {
|
||||||
color: $dark-bg;
|
color: $dark-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
.incident-meta {
|
.incident-meta {
|
||||||
border-top-color: rgba(255, 255, 255, 0.1);
|
border-top-color: rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.markdown-content) {
|
:deep(.markdown-content) {
|
||||||
code, pre {
|
code, pre {
|
||||||
background-color: rgba(255, 255, 255, 0.05);
|
background-color: rgba(255, 255, 255, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
border-left-color: rgba(255, 255, 255, 0.2);
|
border-left-color: rgba(255, 255, 255, 0.2);
|
||||||
color: rgba(255, 255, 255, 0.7);
|
color: rgba(255, 255, 255, 0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
th, td {
|
th, td {
|
||||||
border-color: rgba(255, 255, 255, 0.1);
|
border-color: rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
background-color: rgba(255, 255, 255, 0.05);
|
background-color: rgba(255, 255, 255, 0.05);
|
||||||
}
|
}
|
||||||
|
@ -1509,6 +1508,3 @@ footer {
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue