mirror of
https://github.com/priyanshujain/margin-calendar.git
synced 2026-10-02 11:07:04 +00:00
Tauri 2, React 19 and zustand on the front, Rust behind. Rust owns auth, all HTTP to Google, the SQLite store, the sync loop, recurrence expansion and timezone maths. TypeScript owns rendering and never talks to Google, which keeps the content security policy locked to ipc:. Week, day and agenda views, and no month view: it would be a second layout engine, and the fit and fold logic that makes a day fit the window without scrolling is the whole point of the app. Runs on macOS, Linux, Android and iOS. Desktop catches Google's OAuth redirect on a loopback port. A phone cannot, and Google rejects loopback for mobile client types anyway, so it redirects to a custom URI scheme and needs its own public OAuth clients, which docs/mobile.md covers. Refresh tokens are sealed with XChaCha20-Poly1305 in the app data directory on every platform, with no OS credential store in the picture. On a phone the chrome becomes a top bar and a bottom tab bar, overlays become sheets, hover affordances become taps, and dragging out an event waits for a long press. Navigation moves one day at a time everywhere, a swipe included.
20 lines
579 B
JSON
20 lines
579 B
JSON
{
|
|
"installed": {
|
|
"client_id": "YOUR_CLIENT_ID.apps.googleusercontent.com",
|
|
"project_id": "your-project-id",
|
|
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
|
"token_uri": "https://oauth2.googleapis.com/token",
|
|
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
|
"client_secret": "YOUR_CLIENT_SECRET",
|
|
"redirect_uris": ["http://127.0.0.1"]
|
|
},
|
|
|
|
"android": {
|
|
"client_id": "YOUR_ANDROID_CLIENT_ID.apps.googleusercontent.com"
|
|
},
|
|
|
|
"ios": {
|
|
"client_id": "YOUR_IOS_CLIENT_ID.apps.googleusercontent.com"
|
|
}
|
|
}
|