mirror of
https://github.com/sartoopjj/thefeed.git
synced 2026-05-19 09:04:37 +03:00
Implement profiles management and settings API
- Added Profile and ProfileList structs to manage user profiles with unique IDs and nicknames. - Introduced endpoints for CRUD operations on profiles: `/api/profiles` for managing profiles and `/api/profiles/switch` for switching active profiles. - Implemented settings management with an endpoint `/api/settings` to handle user preferences like font size and debug mode. - Enhanced the server to load and save profiles from a `profiles.json` file. - Updated the fetcher initialization to respect the active profile's configuration. - Added comprehensive end-to-end tests for profiles and settings APIs to ensure functionality and persistence.
This commit is contained in:
@@ -65,7 +65,7 @@ class MainActivity : ComponentActivity() {
|
||||
webView.webViewClient = object : WebViewClient() {
|
||||
override fun onPageFinished(view: WebView?, url: String?) {
|
||||
if (url != null && url.startsWith("http://127.0.0.1")) {
|
||||
txtStatus.text = "Connected"
|
||||
txtStatus.text = ""
|
||||
retryCount = 0
|
||||
}
|
||||
}
|
||||
@@ -128,7 +128,7 @@ class MainActivity : ComponentActivity() {
|
||||
|
||||
companion object {
|
||||
private const val MAX_RETRIES = 25
|
||||
private const val RETRY_DELAY_MS = 2000L
|
||||
private const val INITIAL_DELAY_MS = 5000L
|
||||
private const val RETRY_DELAY_MS = 10000L
|
||||
private const val INITIAL_DELAY_MS = 15000L
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user