__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import 'package:prompting_client/prompting_client.dart';
import 'package:prompting_client_ui/l10n.dart';
extension ActionL10n on Action {
String localize(AppLocalizations l10n) => switch (this) {
Action.allow => l10n.promptActionOptionAllow,
Action.deny => l10n.promptActionOptionDeny,
};
}
extension LifespanL10n on Lifespan {
String localize(AppLocalizations l10n) => switch (this) {
Lifespan.forever => l10n.promptLifespanOptionForever,
Lifespan.session => l10n.promptLifespanOptionSession,
Lifespan.single => l10n.promptLifespanOptionSingle,
};
}
extension PatternOptionL10n on PatternOption {
String localize(AppLocalizations l10n) => switch (homePatternType) {
HomePatternType.customPath => l10n.homePatternTypeCustomPath,
HomePatternType.requestedDirectory =>
l10n.homePatternTypeRequestedDirectory,
HomePatternType.requestedFile => l10n.homePatternTypeRequestedFile,
HomePatternType.topLevelDirectory =>
l10n.homePatternTypeTopLevelDirectory(
pathPattern.split('/**').first.split('/').last,
),
HomePatternType.containingDirectory =>
l10n.homePatternTypeContainingDirectory,
HomePatternType.homeDirectory => l10n.homePatternTypeHomeDirectory,
HomePatternType.matchingFileExtension =>
l10n.homePatternTypeMatchingFileExtension(
pathPattern.split('.').last.toUpperCase(),
),
HomePatternType.requestedDirectoryContents =>
l10n.homePatternTypeRequestedDirectoryContents,
};
}
extension PermissionL10n on HomePermission {
String localize(AppLocalizations l10n) => switch (this) {
HomePermission.read => l10n.homePromptPermissionsRead,
HomePermission.write => l10n.homePromptPermissionsWrite,
HomePermission.execute => l10n.homePromptPermissionsExecute,
};
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| app | Folder | 0755 |
|
|
| l10n | Folder | 0755 |
|
|
| pages | Folder | 0755 |
|
|
| widgets | Folder | 0755 |
|
|
| fake_prompting_client.dart | File | 1.52 KB | 0644 |
|
| l10n.dart | File | 603 B | 0644 |
|
| l10n_x.dart | File | 1.87 KB | 0644 |
|
| main.dart | File | 2.79 KB | 0644 |
|
| test_prompt_details.json | File | 1.38 KB | 0644 |
|
| theme.dart | File | 268 B | 0644 |
|