Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -792,5 +792,7 @@
"license_adjust_nodes_fifo_hint": "FIFO mode: nodes are authorized in the order they joined the cluster.",
"license_adjust_nodes_readonly": "This license has expired or is invalid. Node adjustments are not allowed.",
"license_adjust_nodes_last_accepted": "Last accepted: ",
"alerting": "Alerting",
"alerting_description": "Email platform alerts through an SMTP server.",
"containers_without_limit": "{uncapped} of {containers} containers declare no limit"
}
2 changes: 2 additions & 0 deletions messages/zh-hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -792,5 +792,7 @@
"license_adjust_nodes_fifo_hint": "FIFO 模式:節點依加入叢集的順序自動授權。",
"license_adjust_nodes_readonly": "此授權已過期或無效,無法調整節點設定。",
"license_adjust_nodes_last_accepted": "上次接受:",
"alerting": "告警",
"alerting_description": "透過 SMTP 郵件伺服器寄送平台告警。",
"containers_without_limit": "{containers} 個容器中有 {uncapped} 個未宣告 Limit"
}
18 changes: 18 additions & 0 deletions src/lib/components/alerting/alerting-settings.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script lang="ts">
let {
cluster,
overview,
onChange
}: {
cluster: any; // eslint-disable-line @typescript-eslint/no-explicit-any
overview: any; // eslint-disable-line @typescript-eslint/no-explicit-any
onChange: any; // eslint-disable-line @typescript-eslint/no-explicit-any
} = $props();

// svelte-ignore state_referenced_locally
void cluster;
// svelte-ignore state_referenced_locally
void overview;
// svelte-ignore state_referenced_locally
void onChange;
</script>
32 changes: 32 additions & 0 deletions src/lib/utils/alerting.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
// Placeholder — the enterprise edition overlays this file (ee/src).

export type SmtpSettings = any;
export type AlertRule = any;
export type AlertingOverview = any;
export type TestPhase = any;

export class AlertingConflictError extends Error {}

export function parseAlerting(...args: any[]): any {
void args;
return {};
}

export async function loadAlerting(...args: any[]): Promise<AlertingOverview | null> {
void args;
return null;
}

export async function saveAlerting(...args: any[]): Promise<any> {
void args;
return {};
}

export async function disableAlerting(...args: any[]): Promise<void> {
void args;
}

export async function sendTestEmail(...args: any[]): Promise<void> {
void args;
}
Empty file.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineConfig({
test: {
name: 'server',
environment: 'node',
include: ['src/**/*.{test,spec}.{js,ts}'],
include: ['src/**/*.{test,spec}.{js,ts}', 'ee/src/**/*.{test,spec}.{js,ts}'],
exclude: ['src/**/*.svelte.{test,spec}.{js,ts}']
}
}
Expand Down
Loading