feat: add base clash api methods

This commit is contained in:
divocat
2025-10-05 16:09:26 +03:00
parent 341f260fcf
commit c75dd3e78b
11 changed files with 233 additions and 0 deletions

View File

@@ -12,6 +12,21 @@ const EntryNode = {
async render() {
main.injectGlobalStyles();
main.getClashVersion()
.then(result => console.log('getClashVersion - then', result))
.catch(err => console.log('getClashVersion - err', err))
.finally(() => console.log('getClashVersion - finish'));
main.getClashConfig()
.then(result => console.log('getClashConfig - then', result))
.catch(err => console.log('getClashConfig - err', err))
.finally(() => console.log('getClashConfig - finish'));
main.getClashProxies()
.then(result => console.log('getClashProxies - then', result))
.catch(err => console.log('getClashProxies - err', err))
.finally(() => console.log('getClashProxies - finish'));
const podkopFormMap = new form.Map('podkop', '', null, ['main', 'extra']);
// Main Section