mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
feat: add new UI tabs for movies and series, including mobile-specific versions with search and pagination.
This commit is contained in:
1 parent
86cf10051d
commit
e95fdb534a
29 files changed
+78
-78
No files matched your search
@@ -86,7 +86,7 @@ class AppDatabase {
|
||||
_db.execute('''
|
||||
INSERT INTO users (id, username, password_hash, is_admin)
|
||||
VALUES (?, ?, ?, 1)
|
||||
''', [adminId, 'admin', passwordHash]);
|
||||
''', [adminId, 'admin', passwordHash],);
|
||||
|
||||
print('Default admin user created (username: admin, password: admin)');
|
||||
}
|
||||
@@ -141,7 +141,7 @@ class AppDatabase {
|
||||
_db.execute('''
|
||||
INSERT INTO users (id, username, password_hash, is_admin)
|
||||
VALUES (?, ?, ?, ?)
|
||||
''', [userId, username, passwordHash, isAdmin ? 1 : 0]);
|
||||
''', [userId, username, passwordHash, isAdmin ? 1 : 0],);
|
||||
|
||||
return User(
|
||||
id: userId,
|
||||
@@ -190,7 +190,7 @@ class AppDatabase {
|
||||
_db.execute('''
|
||||
INSERT INTO sessions (id, user_id, token, expires_at)
|
||||
VALUES (?, ?, ?, ?)
|
||||
''', [sessionId, userId, token, expiresAt.toIso8601String()]);
|
||||
''', [sessionId, userId, token, expiresAt.toIso8601String()],);
|
||||
|
||||
return models.Session(
|
||||
id: sessionId,
|
||||
@@ -272,7 +272,7 @@ class AppDatabase {
|
||||
_db.execute('''
|
||||
INSERT INTO playlists (id, user_id, name, server_url, username, password, dns, created_at, updated_at)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
''', [playlistId, userId, name, serverUrl, username, password, dns, now, now]);
|
||||
''', [playlistId, userId, name, serverUrl, username, password, dns, now, now],);
|
||||
|
||||
return Playlist(
|
||||
id: playlistId,
|
||||
@@ -302,7 +302,7 @@ class AppDatabase {
|
||||
UPDATE playlists
|
||||
SET name = ?, server_url = ?, username = ?, password = ?, dns = ?, updated_at = ?
|
||||
WHERE id = ?
|
||||
''', [name, serverUrl, username, password, dns, now, playlistId]);
|
||||
''', [name, serverUrl, username, password, dns, now, playlistId],);
|
||||
|
||||
return getPlaylistById(playlistId)!;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user