+ {notificationConfig.filePath || '默认配置'}
+ } loading={testingNotification} onClick={testNotification}>
+ 发送测试
+
+ } loading={savingNotification} onClick={saveNotification}>
+ 保存通知
+
+
+ }
+ >
+
+ updateNotification({ ...source, enabled })}
+ />
+
+ updateNotification({
+ ...source,
+ channels: {
+ ...source.channels,
+ bark: { ...source.channels.bark, enabled },
+ },
+ })
+ }
+ />
+
+ updateNotification({
+ ...source,
+ channels: {
+ ...source.channels,
+ wpush: { ...source.channels.wpush, enabled },
+ },
+ })
+ }
+ />
+
+
+
+ Bark 服务地址
+
+ updateNotification({
+ ...source,
+ channels: {
+ ...source.channels,
+ bark: { ...source.channels.bark, serverUrl: event.target.value },
+ },
+ })
+ }
+ />
+
+
+
+ updateNotification({
+ ...source,
+ channels: {
+ ...source.channels,
+ bark: { ...source.channels.bark, recipients },
+ },
+ })
+ }
+ />
+
+
+ updateNotification({
+ ...source,
+ channels: {
+ ...source.channels,
+ wpush: { ...source.channels.wpush, recipients },
+ },
+ })
+ }
+ />
+
+ {testResult ? (
+ 0 ? 'warning' : 'success'}
+ showIcon
+ message={`测试结果:成功 ${testResult.successCount},失败 ${testResult.failedCount},跳过 ${testResult.skippedCount}`}
+ />
+ ) : null}
+
+
+