feat(githubsync): add GitHub Sync plugin to sync epubs from a private GitHub repo on boot
This commit is contained in:
1 parent
e4f411dde5
commit
6abf076a3e
9 files changed
+963
-655
No files matched your search
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user