mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-02-11 08:07:08 +01:00
feat: ajouter des composants de statut en direct et mettre à jour la configuration de l'éducation
This commit is contained in:
@@ -35,6 +35,62 @@ export interface Activity {
|
||||
}
|
||||
}
|
||||
|
||||
export interface StatusTag {
|
||||
id: number
|
||||
monitor_id: number
|
||||
tag_id: number
|
||||
value: string
|
||||
name: string
|
||||
color: string
|
||||
}
|
||||
|
||||
export interface StatusMonitor {
|
||||
id: number
|
||||
name: string
|
||||
sendUrl: number
|
||||
type: string
|
||||
url?: string
|
||||
tags: StatusTag[]
|
||||
}
|
||||
|
||||
export interface StatusGroup {
|
||||
id: number
|
||||
name: string
|
||||
weight: number
|
||||
monitorList: StatusMonitor[]
|
||||
}
|
||||
|
||||
export interface StatusMaintenance {
|
||||
id: number
|
||||
title: string
|
||||
description: string
|
||||
strategy: string
|
||||
active: boolean
|
||||
status: string // 'under-maintenance', etc.
|
||||
// ... autres champs optionnels (dateRange, etc.)
|
||||
}
|
||||
|
||||
export interface StatusConfig {
|
||||
slug: string
|
||||
title: string
|
||||
description: string
|
||||
icon: string
|
||||
autoRefreshInterval: number
|
||||
theme: string
|
||||
published: boolean
|
||||
showTags: boolean
|
||||
customCSS: string
|
||||
footerText: string
|
||||
showPoweredBy: boolean
|
||||
}
|
||||
|
||||
export interface StatusPageData {
|
||||
config: StatusConfig
|
||||
incident: unknown | null
|
||||
publicGroupList: StatusGroup[]
|
||||
maintenanceList: StatusMaintenance[]
|
||||
}
|
||||
|
||||
export const IDEs = [
|
||||
{ name: 'Visual Studio Code', icon: 'i-logos:visual-studio-code' },
|
||||
{ name: 'IntelliJ IDEA Ultimate', icon: 'i-logos:intellij-idea' },
|
||||
|
||||
Reference in New Issue
Block a user