mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 19:46:52 +03:00
feat: implement fake ip check mock
This commit is contained in:
@@ -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: [],
|
||||
});
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user