feat: implement fake ip check mock

This commit is contained in:
divocat
2025-10-11 23:21:53 +03:00
parent 4334643e8e
commit e3e0b2d4e4
3 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { updateDiagnosticsCheck } from '../updateDiagnosticsCheck';
export async function runFakeIPCheck() {
const code = 'fake_ip_check';
updateDiagnosticsCheck({
code,
title: _('Fake IP checks'),
description: _('Not implemented yet'),
state: 'skipped',
items: [],
});
}

View File

@@ -4,6 +4,7 @@ import { renderCheckSection } from './renderCheckSection';
import { runDnsCheck } from './checks/runDnsCheck';
import { runSingBoxCheck } from './checks/runSingBoxCheck';
import { runNftCheck } from './checks/runNftCheck';
import { runFakeIPCheck } from './checks/runFakeIPCheck';
async function renderDiagnosticsChecks() {
console.log('renderDiagnosticsChecks');
@@ -35,6 +36,8 @@ async function runChecks() {
await runSingBoxCheck();
await runNftCheck();
await runFakeIPCheck();
}
export async function initDiagnosticController(): Promise<void> {

View File

@@ -2694,6 +2694,18 @@ async function runNftCheck() {
}
}
// src/podkop/tabs/diagnostic/checks/runFakeIPCheck.ts
async function runFakeIPCheck() {
const code = "fake_ip_check";
updateDiagnosticsCheck({
code,
title: _("Fake IP checks"),
description: _("Not implemented yet"),
state: "skipped",
items: []
});
}
// src/podkop/tabs/diagnostic/initDiagnosticController.ts
async function renderDiagnosticsChecks() {
console.log("renderDiagnosticsChecks");
@@ -2715,6 +2727,7 @@ async function runChecks() {
await runDnsCheck();
await runSingBoxCheck();
await runNftCheck();
await runFakeIPCheck();
}
async function initDiagnosticController() {
onMount("diagnostic-status").then(() => {