From cf3112c7c012922306c6591f5f8e1a5b45fbff1b Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 4 May 2018 16:48:18 +0900 Subject: [PATCH] :v: --- src/models/drive-file.ts | 1 + src/server/file/assets/cache-expired.png | Bin 0 -> 15025 bytes src/server/file/send-drive-file.ts | 6 +++++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/server/file/assets/cache-expired.png diff --git a/src/models/drive-file.ts b/src/models/drive-file.ts index 183cc72ee..718e8d0dc 100644 --- a/src/models/drive-file.ts +++ b/src/models/drive-file.ts @@ -30,6 +30,7 @@ export type IMetadata = { comment: string; uri: string; deletedAt?: Date; + isExpired?: boolean; }; export type IDriveFile = { diff --git a/src/server/file/assets/cache-expired.png b/src/server/file/assets/cache-expired.png new file mode 100644 index 0000000000000000000000000000000000000000..ea681af0a039b389c921483d9183fd2f7fad6f27 GIT binary patch literal 15025 zcmeHucTiJb*KR-&1pyl%BA_B7AVeu5C4eB(I{|4yK|nxyFCkbE1raF$siB2lrPqjx z^deOV5GkQUB#^|AcJq6`dGFjmzL{HQ?tkxOvd%ek&e>({wfBD3bJluiYOKS>aft%} z0C4H)J}?IWSed7+fRiVfhr`gxBj$l6z+6WYP(5;alX-F6?Y_}{0H7|Bllp{>d40-P z*Cqe};Qsp0pN03Pel!4}{7~<~ealeD?tn9<%Zw5DLMV`*ko?l`U@+a~_`8>anrYwv#JQ z)+Czd@)t(?dJ}!>9VIX@sT#T;SgqdijnjI{=O(uj+Sg!4(|0S}958bxf46;=;1E$n z`ssz=DI{jik$6_|G!;A#tW65x^$W*q4yHE_)R20yM(ZJzvK~JSYmmgK(R->^)z4$5 z`6;^@e2>A2G=ev%oMYpZ2^QJ7m*nWvj8H^6;JfME?wKW-qBwOfh3MC zqNS-@9Pnt!T?1&OSioVCHJ7EQwoU-PodI0Lc6HEvNIUD?7);7La|aC9*4Q4%e=-UJ zI>7U299#q39`57~3!>%DH#jbKV1{ORL;5jFHTkx}eOLk-@8O~6G~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