refactor: /command hints add tooltips, test for missing hints, script to generate glue code, hints for dm, create, clearcache, discardsession
This commit is contained in:
parent
adba445c33
commit
3c14cbe017
32 changed files with 863 additions and 770 deletions
46
lib/pages/chat/command_hints.dart
Normal file
46
lib/pages/chat/command_hints.dart
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
// This file is auto-generated using scripts/generate_command_hints_glue.sh.
|
||||
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
String commandHint(L10n l10n, String command) {
|
||||
switch (command) {
|
||||
case "ban":
|
||||
return l10n.commandHint_ban;
|
||||
case "clearcache":
|
||||
return l10n.commandHint_clearcache;
|
||||
case "create":
|
||||
return l10n.commandHint_create;
|
||||
case "discardsession":
|
||||
return l10n.commandHint_discardsession;
|
||||
case "dm":
|
||||
return l10n.commandHint_dm;
|
||||
case "html":
|
||||
return l10n.commandHint_html;
|
||||
case "invite":
|
||||
return l10n.commandHint_invite;
|
||||
case "join":
|
||||
return l10n.commandHint_join;
|
||||
case "kick":
|
||||
return l10n.commandHint_kick;
|
||||
case "leave":
|
||||
return l10n.commandHint_leave;
|
||||
case "me":
|
||||
return l10n.commandHint_me;
|
||||
case "myroomavatar":
|
||||
return l10n.commandHint_myroomavatar;
|
||||
case "myroomnick":
|
||||
return l10n.commandHint_myroomnick;
|
||||
case "op":
|
||||
return l10n.commandHint_op;
|
||||
case "plain":
|
||||
return l10n.commandHint_plain;
|
||||
case "react":
|
||||
return l10n.commandHint_react;
|
||||
case "send":
|
||||
return l10n.commandHint_send;
|
||||
case "unban":
|
||||
return l10n.commandHint_unban;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue