feat: heatmap based on the assets in past year
This commit is contained in:
1 parent
7df379336d
commit
360c19699e
7 files changed
+283
-160
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { ASSET_STATISTICS, EXIF_DISTRIBUTION_PATH } from "@/config/routes";
|
||||
import { ASSET_STATISTICS, EXIF_DISTRIBUTION_PATH, HEATMAP_DATA, LIVE_PHOTO_STATISTICS } from "@/config/routes";
|
||||
import API from "@/lib/api";
|
||||
|
||||
export type ISupportedEXIFColumns =
|
||||
@@ -10,4 +10,12 @@ export const getExifDistribution = async (column: ISupportedEXIFColumns) => {
|
||||
|
||||
export const getAssetStatistics = async () => {
|
||||
return API.get(ASSET_STATISTICS);
|
||||
}
|
||||
|
||||
export const getLivePhotoStatistics = async () => {
|
||||
return API.get(LIVE_PHOTO_STATISTICS);
|
||||
}
|
||||
|
||||
export const getHeatMapData = async () => {
|
||||
return API.get(HEATMAP_DATA);
|
||||
}
|
||||
Reference in new issue
Block a user