This commit is contained in:
lollipopkit
2023-09-13 14:28:02 +08:00
parent 6c84d2f52b
commit 278d5984b2
55 changed files with 528 additions and 481 deletions

View File

@@ -2,61 +2,26 @@ import 'dart:convert';
import 'package:flutter/services.dart';
import '../model/app/github_id.dart';
class Miscs {
/// RegExp for number
static final numReg = RegExp(r'\s{1,}');
/// RegExp for number
final numReg = RegExp(r'\s{1,}');
/// RegExp for password request
static final pwdRequestWithUserReg = RegExp(r'\[sudo\] password for (.+):');
/// RegExp for password request
final pwdRequestWithUserReg = RegExp(r'\[sudo\] password for (.+):');
/// Private Key max allowed size is 20kb
const privateKeyMaxSize = 20 * 1024;
/// Private Key max allowed size is 20kb
static const privateKeyMaxSize = 20 * 1024;
// Editor max allowed size is 1mb
const editorMaxSize = 1024 * 1024;
static const editorMaxSize = 1024 * 1024;
/// Max debug log lines
const maxDebugLogLines = 100;
/// Max debug log lines
static const maxDebugLogLines = 100;
/// Method Channels
const pkgName = 'tech.lolli.toolbox';
const bgRunChannel = MethodChannel('$pkgName/app_retain');
const homeWidgetChannel = MethodChannel('$pkgName/home_widget');
/// Method Channels
static const pkgName = 'tech.lolli.toolbox';
static const bgRunChannel = MethodChannel('$pkgName/app_retain');
static const homeWidgetChannel = MethodChannel('$pkgName/home_widget');
// Thanks
// If you want to change the url, please open an issue.
const contributors = <GhId>{
'its-tom',
'RainSunMe',
'kalashnikov',
'azkadev',
'calvinweb',
'Liloupar'
};
const participants = <GhId>{
'jaychoubaby',
'fecture',
'Tao173',
'QingAnLe',
'wxdjs',
'Aeorq',
'allonmymind',
'Yuuki-Rin',
'LittleState',
'karuboniru',
'whosphp',
'Climit',
'dianso',
'Jasondeepny',
'kaliwell',
'ymxkiss',
'Ealrang',
'hange33',
'yuchen1204',
'xgzxmytx',
'wind057',
'a1564471347',
};
const jsonEncoder = JsonEncoder.withIndent(' ');
static const jsonEncoder = JsonEncoder.withIndent(' ');
}