mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-08-28 09:11:06 +00:00
feat: add Google Calendar timetable sync via accounts OAuth
OAuth flows through accounts.betterseqta.org with token exchange server-side. Sync runs in the content script to avoid MV3 service worker timeouts. Adds Svelte calendar sync UI on the timetable page, extension asset URL helper, and excludes calendar tokens from cloud sync. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import { settingsState } from "@/seqta/utils/listeners/SettingsState";
|
||||
import type { Plugin } from "../../core/types";
|
||||
import { convertTo12HourFormat } from "@/seqta/utils/convertTo12HourFormat";
|
||||
import { waitForElm } from "@/seqta/utils/waitForElm";
|
||||
import { mountGoogleCalendarButton, unmountGoogleCalendarButton } from "./calendarSyncUi";
|
||||
|
||||
const timetablePlugin: Plugin<{}, {}> = {
|
||||
id: "timetable",
|
||||
@@ -26,6 +27,7 @@ const timetablePlugin: Plugin<{}, {}> = {
|
||||
const hideControls = document.querySelector(".timetable-hide-controls");
|
||||
if (hideControls) hideControls.remove();
|
||||
|
||||
unmountGoogleCalendarButton();
|
||||
resetTimetableStyles();
|
||||
}
|
||||
};
|
||||
@@ -81,6 +83,7 @@ async function handleTimetable(): Promise<void> {
|
||||
|
||||
handleTimetableZoom();
|
||||
handleTimetableAssessmentHide();
|
||||
void mountGoogleCalendarButton();
|
||||
}
|
||||
|
||||
function handleTimetableZoom(): void {
|
||||
|
||||
Reference in New Issue
Block a user