feat: Add continuous Bible reading mode, backend-driven translation API integration, localized book names, and preference caching

This commit is contained in:
Adolfo Reyna
2026-02-25 18:13:53 -05:00
parent fc6f740fd2
commit 9da5874977
8 changed files with 460 additions and 56 deletions

12
API.js
View File

@@ -1,6 +1,6 @@
import i18n from "./i18nMessages.js";
const baseUrl = "https://emiapi.reynafamily.com";
//const baseUrl = "http://localhost:3000";
//const baseUrl = "https://emiapi.reynafamily.com";
const baseUrl = "http://localhost:3000";
const requestErrorCooldownMs = 30000;
const profileFailureCooldownMs = 60000;
const recentRequestErrors = {};
@@ -367,6 +367,14 @@ const API = {
return getCall("/user/" + profileid + "/unfollow");
},
setDataValue(key, value){
if (CurrentProfile && userNameCache[CurrentProfile]) {
if (!userNameCache[CurrentProfile].data) userNameCache[CurrentProfile].data = {};
userNameCache[CurrentProfile].data[key] = value;
}
if (CurrentProfileData) {
if (!CurrentProfileData.data) CurrentProfileData.data = {};
CurrentProfileData.data[key] = value;
}
return postCall("/user/setData", {key, value});
},
//Groups