mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Integrate Cloud Sync pane and actions
cgen-cefe277df75a40b2acce3935534a11e8
This commit is contained in:
parent
99def641a0
commit
26d24c4dad
1 changed files with 12 additions and 0 deletions
|
|
@ -189,6 +189,18 @@ export function SwitchPage() {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="switch-pane">
|
||||
<div className="switch-pane-header">Cloud Sync</div>
|
||||
<div className="switch-pane-body">
|
||||
<div style={{ marginBottom: 8, color: '#9da5b4' }}>
|
||||
Supabase storage bucket "switch" is required (public read/write via RLS). URL and anon key are read from env.
|
||||
</div>
|
||||
<div>
|
||||
<button className="switch-secondary-btn" onClick={onPushToCloud} disabled={!activeRepo}>Push</button>
|
||||
<button className="switch-secondary-btn" onClick={onPullFromCloud} disabled={!activeRepo}>Pull</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="switch-pane">
|
||||
<div className="switch-pane-header">Explorer</div>
|
||||
<div className="switch-pane-body">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue