Little refactor

This commit is contained in:
ivan2282
2025-12-10 17:34:10 +03:00
parent ecdb34505c
commit bdea92a61b
35 changed files with 74 additions and 30 deletions

View File

@@ -4769,7 +4769,8 @@ class _SferumWebViewPanelState extends State<SferumWebViewPanel> {
);
}
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
class _AddChatsToFolderDialog extends StatefulWidget {
final ChatFolder folder;
final List<Chat> availableChats;

View File

@@ -100,7 +100,8 @@ class _CustomRequestScreenState extends State<CustomRequestScreen> {
}
});
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
subscription = ApiService.instance.messages.listen((message) {
if (message['seq'] == sentSeq) {

View File

@@ -16,7 +16,8 @@ class DebugScreen extends StatelessWidget {
Widget build(BuildContext context) {
final colors = Theme.of(context).colorScheme;
final theme = context.watch<ThemeProvider>();
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
return Scaffold(
appBar: AppBar(
title: const Text('Debug Settings'),

View File

@@ -167,7 +167,8 @@ class _HomeScreenState extends State<HomeScreen> {
},
);
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
Future<void> _checkVersionInBackground() async {
try {
final prefs = await SharedPreferences.getInstance();
@@ -178,7 +179,8 @@ class _HomeScreenState extends State<HomeScreen> {
if (!isWebVersionCheckEnabled) {
print("Web version checking is disabled, skipping check");
return;
}
}// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
final isAutoUpdateEnabled = prefs.getBool('auto_update_enabled') ?? false;
final showUpdateNotification =

View File

@@ -122,7 +122,8 @@ class _MusicLibraryScreenState extends State<MusicLibraryScreen> {
final seconds = duration.inSeconds.remainder(60);
return '${minutes.toString().padLeft(2, '0')}:${seconds.toString().padLeft(2, '0')}';
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);

View File

@@ -85,7 +85,8 @@ class _PasswordAuthScreenState extends State<PasswordAuthScreen> {
errorMessage = error['message'];
}
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(errorMessage),

View File

@@ -17,7 +17,8 @@ class AboutScreen extends StatelessWidget {
print('Could not launch $url');
}
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
Widget _buildTeamMember(
BuildContext context, {

View File

@@ -75,7 +75,8 @@ class _QrLoginScreenState extends State<QrLoginScreen> {
}
}
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
void _regenerateQrData() {
if (_token == null) return;

View File

@@ -22,7 +22,8 @@ class _ReconnectionScreenState extends State<ReconnectionScreen> {
_startFullReconnection();
_listenToApiMessages();
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
@override
void dispose() {
_apiSubscription?.cancel();

View File

@@ -25,7 +25,8 @@ class LogEntry {
required this.type,
});
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
class SocketLogScreen extends StatefulWidget {
const SocketLogScreen({super.key});

View File

@@ -88,7 +88,8 @@ class _TokenAuthScreenState extends State<TokenAuthScreen> {
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
void _loginWithToken() {
final token = _tokenController.text.trim();
if (token.isEmpty) {