🎨 Sync 2026-04-10 15:34:26

This commit is contained in:
github-actions[bot] committed 2026-04-10 15:34:26 +08:00
1 parent 9b1a57d792
commit 42174fc0b0
66 files changed
+6841 -2210

No files matched your search

@@ -25,9 +25,17 @@
"path": "momo/profile"
}
},
"admin/services/momo/mixin": {
"title": "Mixin Config",
"order": 30,
"action": {
"type": "view",
"path": "momo/mixin"
}
},
"admin/services/momo/proxy": {
"title": "Proxy Config",
"order": 30,
"order": 40,
"action": {
"type": "view",
"path": "momo/proxy"
@@ -35,7 +43,7 @@
},
"admin/services/momo/editor": {
"title": "Editor",
"order": 40,
"order": 50,
"action": {
"type": "view",
"path": "momo/editor"
@@ -43,7 +51,7 @@
},
"admin/services/momo/log": {
"title": "Log",
"order": 50,
"order": 60,
"action": {
"type": "view",
"path": "momo/log"
@@ -2,8 +2,8 @@
'use strict';
import { access, popen, readfile, writefile } from 'fs';
import { get_paths, merge_exists, get_users, get_groups, get_cgroups } from '/etc/momo/ucode/include.uc';
import { access, popen, readfile } from 'fs';
import { get_paths, merge_exists, get_users, get_groups, get_cgroups, load_profile, save_profile } from '/etc/momo/ucode/include.uc';
const methods = {
get_paths: {
@@ -40,9 +40,8 @@ const methods = {
profile: {
args: { defaults: {} },
call: function(req) {
const paths = get_paths();
const defaults = req.args?.defaults ?? {};
const profile = json(readfile(paths.run_profile_path));
const profile = load_profile();
return merge_exists(defaults, profile);
}
},
@@ -67,8 +66,7 @@ const methods = {
const query = req.args?.query;
const body = req.args?.body;
const paths = get_paths();
const profile = json(readfile(paths.run_profile_path));
const profile = load_profile();
const api_listen = profile['experimental']['clash_api']['external_controller'];
const api_secret = profile['experimental']['clash_api']['secret'];