isNasRelatedButton static method

bool isNasRelatedButton(
  1. String buttonText
)

检查是否为NAS相关操作

Implementation

static bool isNasRelatedButton(String buttonText) {
  final lowerText = buttonText.toLowerCase();

  // NAS操作关键词
  final nasKeywords = [
    '上传',
    'upload',
    '下载',
    'download',
    '远程下载',
    'remote',
    '备份',
    'backup',
    '同步',
    'sync',
    '种子',
    'torrent',
    '文件',
    'file',
    '管理',
    'manage',
    '传输',
    'transfer',
    '设备',
    'device',
    '存储',
    'storage',
  ];

  return nasKeywords.any((keyword) => lowerText.contains(keyword));
}