Dept Google Script
This commit is contained in:
30
Google_Scripts/DeptCalendar.gs
Normal file
30
Google_Scripts/DeptCalendar.gs
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
|
||||||
|
|
||||||
|
function createEvent() {
|
||||||
|
let calendarID = '';
|
||||||
|
let eventName = '';
|
||||||
|
let startTime = '';
|
||||||
|
let endTIme = '';
|
||||||
|
let zoomLink = '';
|
||||||
|
var event = CalendarApp.getCalendarById(calendarID).create(
|
||||||
|
eventName, startTime, endTime, zoomLink);
|
||||||
|
eventID = event.getID();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function addLearner(eventID, calendarID) {
|
||||||
|
let attendeeEmail = '{{ current_person.email }}';
|
||||||
|
let calendarID = calendarID;
|
||||||
|
let eventID = eventID;
|
||||||
|
|
||||||
|
let calendar = CalendarApp.getCalendarById(calendarID);
|
||||||
|
if (calendar == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let event = calendar.getEventById(eventID);
|
||||||
|
if (event == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
event.addGuest(attendeeEmail);
|
||||||
|
|
||||||
|
}
|
||||||
1
Timetagger/_timetagger/jwt.key
Normal file
1
Timetagger/_timetagger/jwt.key
Normal file
@ -0,0 +1 @@
|
|||||||
|
HDiZ4sBI4PlL5mvGx4OstwAzCU7LGSugfirBASodsik
|
||||||
BIN
Timetagger/_timetagger/users/norm~bm9ybQ==.db
Normal file
BIN
Timetagger/_timetagger/users/norm~bm9ybQ==.db
Normal file
Binary file not shown.
13
Timetagger/docker-compose.yml
Normal file
13
Timetagger/docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
timetagger:
|
||||||
|
image: ghcr.io/almarklein/timetagger
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
volumes:
|
||||||
|
- /Users/normrasmussen/Documents/Northpass/Timetagger/_timetagger:/root/_timetagger
|
||||||
|
environment:
|
||||||
|
- TIMETAGGER_BIND=0.0.0.0:80
|
||||||
|
- TIMETAGGER_DATADIR=/root/_timetagger
|
||||||
|
- TIMETAGGER_LOG_LEVEL=info
|
||||||
|
- TIMETAGGER_CREDENTIALS=norm:$$2a$$08$$ZpxFHDFA7ha64FqcsGjtOuN0M2/2mlKNvIIG1.yXZ52j4wO4AhByi
|
||||||
Reference in New Issue
Block a user