mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-12 14:37:03 +03:00
feat: init diagnostic tab
This commit is contained in:
@@ -47,6 +47,7 @@ export function renderDashboard() {
|
||||
},
|
||||
onTestLatency: () => {},
|
||||
onChooseOutbound: () => {},
|
||||
latencyFetching: false,
|
||||
}),
|
||||
),
|
||||
],
|
||||
|
||||
2
fe-app-podkop/src/podkop/tabs/diagnostic/index.ts
Normal file
2
fe-app-podkop/src/podkop/tabs/diagnostic/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './renderDiagnostic';
|
||||
export * from './initDiagnosticController';
|
||||
@@ -0,0 +1,7 @@
|
||||
import { onMount } from '../../../helpers';
|
||||
|
||||
export async function initDiagnosticController(): Promise<void> {
|
||||
onMount('diagnostic-status').then(() => {
|
||||
console.log('diagnostic controller initialized.');
|
||||
});
|
||||
}
|
||||
10
fe-app-podkop/src/podkop/tabs/diagnostic/renderDiagnostic.ts
Normal file
10
fe-app-podkop/src/podkop/tabs/diagnostic/renderDiagnostic.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export function renderDiagnostic() {
|
||||
return E(
|
||||
'div',
|
||||
{
|
||||
id: 'diagnostic-status',
|
||||
class: 'pdk_diagnostic-page',
|
||||
},
|
||||
'Not implemented yet',
|
||||
);
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
export * from './dashboard';
|
||||
export * from './diagnostic';
|
||||
|
||||
Reference in New Issue
Block a user