|
@@ -50,24 +50,6 @@ class HomeController extends GetxController {
|
|
LogHelper().d("${imageMap[type]} tapped as ${type.toString().split('.').last}");
|
|
LogHelper().d("${imageMap[type]} tapped as ${type.toString().split('.').last}");
|
|
}
|
|
}
|
|
|
|
|
|
- // Future<void> fetchNodes() async {
|
|
|
|
- // try {
|
|
|
|
- // isLoading.value = true;
|
|
|
|
- // nodeModes.clear();
|
|
|
|
- // nodeModes = await ApiService().getNode("/api/client/v4/nodes?vless=1");
|
|
|
|
- // final globalController = Get.put(GlobalController());
|
|
|
|
- //
|
|
|
|
- // globalController.nodeModes.value = nodeModes;
|
|
|
|
- //
|
|
|
|
- // LogHelper().d(nodeModes.toList());
|
|
|
|
- // //loadSelectedNode();
|
|
|
|
- // } catch (e) {
|
|
|
|
- // errorMsg.value = e.toString();
|
|
|
|
- // } finally {
|
|
|
|
- // isLoading.value = false;
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
Future<void> fetchSysConfig() async {
|
|
Future<void> fetchSysConfig() async {
|
|
try {
|
|
try {
|
|
Map<String, dynamic>? data = await SharedPreferencesUtil().getObject("sysconfig");
|
|
Map<String, dynamic>? data = await SharedPreferencesUtil().getObject("sysconfig");
|