feat(githubsync): add GitHub Sync plugin to sync epubs from a private GitHub repo on boot

This commit is contained in:
Justin Oros
2026-04-23 15:02:00 -07:00
parent e4f411dde5
commit 6abf076a3e
9 changed files with 963 additions and 655 deletions
@@ -0,0 +1,27 @@
#pragma once
#include "activities/Activity.h"
#include "GitHubSync.h"
#include "util/ButtonNavigator.h"
class GitHubSyncSettingsActivity final : public Activity {
public:
explicit GitHubSyncSettingsActivity(GfxRenderer& renderer, MappedInputManager& mappedInput)
: Activity("GitHubSync", renderer, mappedInput) {}
void onEnter() override;
void onExit() override;
void loop() override;
void render(RenderLock&&) override;
private:
ButtonNavigator buttonNavigator;
int selectedIndex = 0;
std::string syncStatus;
static constexpr int MENU_ITEMS = 7;
void handleSelection();
void doSync();
std::string getMasked(const std::string& s) const;
};