mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 22:12:53 +00:00
Merge branch 'beta'
This commit is contained in:
commit
969c84a722
2 changed files with 70 additions and 15 deletions
|
@ -319,10 +319,13 @@ class LogTile extends StatelessWidget {
|
||||||
newStatus: domainBlocked == true ? 'unblock' : 'block'
|
newStatus: domainBlocked == true ? 'unblock' : 'block'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
MenuOption(
|
if (log.question.name != null) MenuOption(
|
||||||
title: AppLocalizations.of(context)!.copyClipboard,
|
title: AppLocalizations.of(context)!.copyClipboard,
|
||||||
icon: Icons.copy_rounded,
|
icon: Icons.copy_rounded,
|
||||||
action: (v) => copyToClipboard(value: v, successMessage: AppLocalizations.of(context)!.copiedClipboard)
|
action: (_) => copyToClipboard(
|
||||||
|
value: log.question.name!,
|
||||||
|
successMessage: AppLocalizations.of(context)!.copiedClipboard
|
||||||
|
)
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|
|
@ -166,7 +166,11 @@ class ApiClientV2 {
|
||||||
content: clients
|
content: clients
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": results.map((e) => e.statusCode.toString()) })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -210,7 +214,11 @@ class ApiClientV2 {
|
||||||
content: LogsData.fromJson(jsonDecode(result.body!))
|
content: LogsData.fromJson(jsonDecode(result.body!))
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": result.statusCode.toString() })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -228,7 +236,11 @@ class ApiClientV2 {
|
||||||
content: FilteringStatus.fromJson(jsonDecode(result.body!))
|
content: FilteringStatus.fromJson(jsonDecode(result.body!))
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": result.statusCode.toString() })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -298,7 +310,11 @@ class ApiClientV2 {
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": results.map((e) => e.statusCode.toString()) })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -364,7 +380,11 @@ class ApiClientV2 {
|
||||||
content: ServerInfoData.fromJson(jsonDecode(result.body!))
|
content: ServerInfoData.fromJson(jsonDecode(result.body!))
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": result.statusCode.toString() })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -398,7 +418,11 @@ class ApiClientV2 {
|
||||||
content: {'updated': jsonDecode(results[0].body!)['updated']+jsonDecode(results[1].body!)['updated']}
|
content: {'updated': jsonDecode(results[0].body!)['updated']+jsonDecode(results[1].body!)['updated']}
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": results.map((e) => e.statusCode.toString()) })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -463,7 +487,11 @@ class ApiClientV2 {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": results.map((e) => e.statusCode.toString()) })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -549,7 +577,11 @@ class ApiClientV2 {
|
||||||
content: data
|
content: data
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": result.statusCode.toString() })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -622,7 +654,11 @@ class ApiClientV2 {
|
||||||
content: DnsInfo.fromJson(jsonDecode(result.body!))
|
content: DnsInfo.fromJson(jsonDecode(result.body!))
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": result.statusCode.toString() })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -658,7 +694,11 @@ class ApiClientV2 {
|
||||||
content: EncryptionData.fromJson(jsonDecode(result.body!))
|
content: EncryptionData.fromJson(jsonDecode(result.body!))
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": result.statusCode.toString() })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -678,7 +718,11 @@ class ApiClientV2 {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": result.statusCode.toString() })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -712,7 +756,11 @@ class ApiClientV2 {
|
||||||
) : null
|
) : null
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": result.statusCode.toString() })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -758,7 +806,11 @@ class ApiClientV2 {
|
||||||
content: obj
|
content: obj
|
||||||
);
|
);
|
||||||
} catch (e, stackTrace) {
|
} catch (e, stackTrace) {
|
||||||
Sentry.captureException(e, stackTrace: stackTrace);
|
Sentry.captureException(
|
||||||
|
e,
|
||||||
|
stackTrace: stackTrace,
|
||||||
|
hint: Hint.withMap({ "statusCode": results.map((e) => e.statusCode.toString()) })
|
||||||
|
);
|
||||||
return const ApiResponse(successful: false);
|
return const ApiResponse(successful: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue