deno task start
- Follow the Set up your environment guide, dowload and move the
credentials.json
to this folder - Chỉnh
Thiết lập.yaml
Việc cào trên web là theo cache hôm nay. Việc đẩy lên google calendar là theo cache mới nhất
- Tự động tạo lịch mới khi ghi thiết lập
- [ ]
Tạo lớp SựKiện
với các trường sau:
class SựKiện{
tiêuĐề: string;
môTả: string;
địaĐiểm: string;
lúcBắtĐầu: Temporal.Instant;
lúcKếtThúc: Temporal.Instant;
ảnh?: Url | Url[];
nguồnLấy: Url;
tênLịch: TênLịch;
}
Khi đẩy lên Google Calendar thì đổi sang cấu trúc
{
summary: tiêuĐề,
description: môTả,
location: địaĐiểm,
source: {
title: tiêuĐề,
url: nguồnLấy,
},
start: {
dateTime: lúcBắtĐầu.toString({ smallestUnit: "second" }),
timeZone: "Asia/Ho_Chi_Minh",
},
end: {
dateTime: lúcKếtThúc.toString({ smallestUnit: "second" }),
timeZone: "Asia/Ho_Chi_Minh",
},
}
gpg --symmetric --cipher-algo AES256 credentials.json