mirror of
https://github.com/immich-app/immich.git
synced 2025-01-09 05:16:47 +01:00
47f5e4134e
* feat(mobile): use cached asset info if unchanged instead of downloading all assets This adds an HTTP ETag to the getAllAssets endpoint and client-side support in the app. If locally cache content is identical to the content on the server, the potentially large list of all assets does not need to be downloaded. * use ts import instead of require
32 lines
1.4 KiB
Dart
32 lines
1.4 KiB
Dart
// Access token
|
|
const String userInfoBox = "immichBoxUserInfo"; // Box
|
|
const String accessTokenKey = "immichBoxAccessTokenKey"; // Key 1
|
|
const String deviceIdKey = 'immichBoxDeviceIdKey'; // Key 2
|
|
const String isLoggedInKey = 'immichIsLoggedInKey'; // Key 3
|
|
const String serverEndpointKey = 'immichBoxServerEndpoint'; // Key 4
|
|
const String assetEtagKey = 'immichAssetEtagKey'; // Key 5
|
|
|
|
// Login Info
|
|
const String hiveLoginInfoBox = "immichLoginInfoBox"; // Box
|
|
const String savedLoginInfoKey = "immichSavedLoginInfoKey"; // Key 1
|
|
|
|
// Backup Info
|
|
const String hiveBackupInfoBox = "immichBackupAlbumInfoBox"; // Box
|
|
const String backupInfoKey = "immichBackupAlbumInfoKey"; // Key 1
|
|
|
|
// Github Release Info
|
|
const String hiveGithubReleaseInfoBox = "immichGithubReleaseInfoBox"; // Box
|
|
const String githubReleaseInfoKey = "immichGithubReleaseInfoKey"; // Key 1
|
|
|
|
// User Setting Info
|
|
const String userSettingInfoBox = "immichUserSettingInfoBox";
|
|
|
|
// Background backup Info
|
|
const String backgroundBackupInfoBox = "immichBackgroundBackupInfoBox"; // Box
|
|
const String backupFailedSince = "immichBackupFailedSince"; // Key 1
|
|
const String backupRequireWifi = "immichBackupRequireWifi"; // Key 2
|
|
const String backupRequireCharging = "immichBackupRequireCharging"; // Key 3
|
|
|
|
// Duplicate asset
|
|
const String duplicatedAssetsBox = "immichDuplicatedAssetsBox"; // Box
|
|
const String duplicatedAssetsKey = "immichDuplicatedAssetsKey"; // Key 1
|