Enhance Settings, Things History, User Activities, and User Points views
- Integrated RevenueCat for subscription management in Settings. - Added subscription and user deletion modals in Settings. - Improved analytics display in Things History with update frequency and trend calculations. - Enhanced User Activities timeline with a more structured layout. - Revamped User Points section with a leaderboard and detailed points analytics. - Introduced responsive design elements and improved user experience across various components. - Add permission for Camera to support uploading photo via camera
This commit is contained in:
@@ -27,7 +27,6 @@ const LABEL_COLORS = [
|
||||
]
|
||||
|
||||
export const COLORS = {
|
||||
white: '#FFFFFF',
|
||||
salmon: '#ff7961',
|
||||
teal: '#26a69a',
|
||||
skyBlue: '#80d8ff',
|
||||
@@ -52,6 +51,7 @@ export const COLORS = {
|
||||
blush: '#f8bbd0',
|
||||
ash: '#90a4ae',
|
||||
sand: '#d7ccc8',
|
||||
white: '#FFFFFF',
|
||||
}
|
||||
|
||||
export const TASK_COLOR = {
|
||||
|
||||
@@ -596,14 +596,61 @@ const ClearChoreTimer = choreId => {
|
||||
})
|
||||
}
|
||||
|
||||
const CheckUserDeletion = (password) => {
|
||||
return Fetch(`/users/delete/check`, {
|
||||
method: 'POST',
|
||||
headers: HEADERS(),
|
||||
body: JSON.stringify({
|
||||
password,
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
const DeleteUser = (password, confirmation, transferOptions = []) => {
|
||||
return Fetch(`/users/delete`, {
|
||||
method: 'DELETE',
|
||||
headers: HEADERS(),
|
||||
body: JSON.stringify({
|
||||
password,
|
||||
confirmation,
|
||||
transferOptions,
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
const CreateBackup = (encryptionKey, includeAssets = true, backupName = '') => {
|
||||
return Fetch(`/backup/create`, {
|
||||
method: 'POST',
|
||||
headers: HEADERS(),
|
||||
body: JSON.stringify({
|
||||
encryption_key: encryptionKey,
|
||||
include_assets: includeAssets,
|
||||
backup_name: backupName,
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
const RestoreBackup = (encryptionKey, backupData) => {
|
||||
return Fetch(`/backup/restore`, {
|
||||
method: 'POST',
|
||||
headers: HEADERS(),
|
||||
body: JSON.stringify({
|
||||
encryption_key: encryptionKey,
|
||||
backup_data: backupData,
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
AcceptCircleMemberRequest,
|
||||
ArchiveChore,
|
||||
CancelSubscription,
|
||||
ChangePassword,
|
||||
CheckUserDeletion,
|
||||
ClearChoreTimer,
|
||||
CompleteSubTask,
|
||||
ConfirmMFA,
|
||||
CreateBackup,
|
||||
CreateChore,
|
||||
CreateLabel,
|
||||
CreateLongLiveToken,
|
||||
@@ -615,6 +662,7 @@ export {
|
||||
DeleteLongLiveToken,
|
||||
DeleteThing,
|
||||
DeleteTimeSession,
|
||||
DeleteUser,
|
||||
DisableMFA,
|
||||
GetAllCircleMembers,
|
||||
GetAllUsers,
|
||||
@@ -648,6 +696,7 @@ export {
|
||||
RegenerateBackupCodes,
|
||||
ResetChoreTimer,
|
||||
ResetPassword,
|
||||
RestoreBackup,
|
||||
SaveChore,
|
||||
SaveThing,
|
||||
SetupMFA,
|
||||
|
||||
Reference in New Issue
Block a user