mirror of
https://github.com/chenasraf/mudblock.git
synced 2026-05-18 01:48:57 +00:00
chore: formatting
This commit is contained in:
@@ -378,4 +378,3 @@ const xtermColorMap = {
|
||||
254: 0xFFE4E4E4,
|
||||
255: 0xFFEEEEEE,
|
||||
};
|
||||
|
||||
|
||||
@@ -7,4 +7,3 @@ const colorPatternRaw = r'\[\d*m';
|
||||
const boldByte = 1;
|
||||
const italicByte = 3;
|
||||
const underlineByte = 4;
|
||||
|
||||
|
||||
@@ -43,4 +43,3 @@ class DialogButtonSet {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -103,4 +103,3 @@ class NativeMUDAction extends MUDAction {
|
||||
customInvoke(store, parent, matches);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -96,4 +96,3 @@ final builtInAliases = <Alias>[
|
||||
),
|
||||
)
|
||||
];
|
||||
|
||||
|
||||
@@ -78,7 +78,9 @@ class Automation {
|
||||
}
|
||||
|
||||
String get actualPattern => isRegex ? pattern : _strToRegExp(pattern).pattern;
|
||||
RegExp get actualRegex => isRegex ? RegExp(pattern, caseSensitive: isCaseSensitive) : _strToRegExp(pattern);
|
||||
RegExp get actualRegex => isRegex
|
||||
? RegExp(pattern, caseSensitive: isCaseSensitive)
|
||||
: _strToRegExp(pattern);
|
||||
|
||||
RegExp _strToRegExp(String pattern) {
|
||||
final updatedPattern = pattern
|
||||
@@ -139,4 +141,3 @@ class Automation {
|
||||
action: action ?? this.action,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,4 +18,3 @@ $sep
|
||||
''';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -516,4 +516,3 @@ enum GameButtonInteraction {
|
||||
dragLeft,
|
||||
dragRight,
|
||||
}
|
||||
|
||||
|
||||
@@ -310,4 +310,3 @@ final movementPreset = GameButtonSetData(
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
@@ -251,4 +251,3 @@ enum AuthMethod {
|
||||
none,
|
||||
diku,
|
||||
}
|
||||
|
||||
|
||||
@@ -72,4 +72,3 @@ class Trigger extends Automation {
|
||||
group: group ?? this.group,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,4 +30,3 @@ class Variable {
|
||||
value ?? this.value,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -91,4 +91,3 @@ final routes = <String, Widget Function(BuildContext)>{
|
||||
},
|
||||
),
|
||||
};
|
||||
|
||||
|
||||
@@ -435,4 +435,3 @@ mixin GameStoreStateMixin<T extends StatefulWidget> on State<T> {
|
||||
}
|
||||
|
||||
final gameStore = GameStore();
|
||||
|
||||
|
||||
@@ -17,4 +17,3 @@ String capitalize(String string) {
|
||||
.map((word) => word[0].toUpperCase() + word.substring(1))
|
||||
.join(' ');
|
||||
}
|
||||
|
||||
|
||||
@@ -115,4 +115,3 @@ class _ButtonEditorDialogState extends State<ButtonEditorDialog> {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -75,4 +75,3 @@ class _GameButtonLabelEditorDialogState
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,4 +66,3 @@ class MyApp extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -71,4 +71,3 @@ class AliasListPage extends StatelessWidget with GameStoreMixin {
|
||||
await store.loadAliases();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -229,4 +229,3 @@ class FakeGameButton extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -93,4 +93,3 @@ class ButtonSetListPage extends StatelessWidget with GameStoreMixin {
|
||||
await store.loadButtonSets();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -97,4 +97,3 @@ class _GenericListPageState<T> extends State<GenericListPage<T>>
|
||||
}).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -164,4 +164,3 @@ class HomePageState extends State<HomePage>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -115,4 +115,3 @@ class HomeScaffold extends StatelessWidget with GameStoreMixin {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -71,4 +71,3 @@ class TriggerListPage extends StatelessWidget with GameStoreMixin {
|
||||
await store.loadTriggers();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -85,4 +85,3 @@ class IconSelector extends StatelessWidget {
|
||||
return search.isEmpty || key.contains(search.toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ script_runner:
|
||||
- install: adb install build/app/outputs/flutter-apk/app-release.apk
|
||||
- to-device: build:apk && push && install
|
||||
- auto-fix: dart fix --apply
|
||||
- format: flutter format -l 100 --fix lib/ test/
|
||||
- format: dart format .
|
||||
- gen:page: npx simple-scaffold@latest -t templates/page -o lib/modules -s true
|
||||
- gen:model: npx simple-scaffold@latest -t templates/model -o lib/models -s false
|
||||
- gen:widget: npx simple-scaffold@latest -t templates/widget -o lib/widgets -s false
|
||||
|
||||
@@ -36,7 +36,8 @@ void main() async {
|
||||
print('Error parsing line: $line');
|
||||
print(e);
|
||||
print(stack);
|
||||
print('parts: ${line.split(RegExp(r'\s+')).map((e) => '"$e"').join(', ')}');
|
||||
print(
|
||||
'parts: ${line.split(RegExp(r'\s+')).map((e) => '"$e"').join(', ')}');
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -67,4 +68,3 @@ ${iconListLines.join('\n')}
|
||||
|
||||
print('Done');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user