Add monitoring service and database schema

- Implement monitoring service with heartbeat, lease tasks, resume tasks, and task result handling.
- Create monitoring time utilities for business date calculations.
- Add unit tests for date window resolution and business day handling.
- Define database schema for monitoring-related tables including quotas, daily reports, and task management.
- Establish migration scripts for creating and dropping monitoring tables.
This commit is contained in:
2026-04-12 09:56:18 +08:00
parent 9b4dd09780
commit 6066f43a7d
67 changed files with 16312 additions and 125 deletions
@@ -1,4 +1,5 @@
<script setup lang="ts">
import DOMPurify from "dompurify";
import MarkdownIt from "markdown-it";
import { computed } from "vue";
@@ -12,7 +13,10 @@ const renderer = new MarkdownIt({
breaks: true,
});
const html = computed(() => renderer.render(props.content || ""));
const html = computed(() => {
const rawHtml = renderer.render(props.content || "");
return DOMPurify.sanitize(rawHtml);
});
</script>
<template>
+8 -7
View File
@@ -28,13 +28,13 @@ withDefaults(
<style scoped>
.page-hero {
display: flex;
align-items: flex-start;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 28px 30px;
background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
border: 1px solid #e6edf5;
border-radius: 24px;
padding: 24px;
background: #ffffff;
border: 1px solid #f0f3fa;
border-radius: 12px;
}
.page-hero__copy {
@@ -52,8 +52,9 @@ withDefaults(
.page-hero h1 {
margin: 0;
font-size: 30px;
line-height: 1.08;
font-size: 24px;
font-weight: 700;
line-height: 1.2;
}
.page-hero p:last-child {