@galda/cli 0.10.85 → 0.10.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/index.html +4 -7
- package/package.json +1 -1
package/app/index.html
CHANGED
|
@@ -10860,16 +10860,13 @@ async function setProjectFolder(dir){
|
|
|
10860
10860
|
render();
|
|
10861
10861
|
} catch { say('Could not reach the engine.', true); }
|
|
10862
10862
|
}
|
|
10863
|
-
// "Open folder…" the
|
|
10864
|
-
//
|
|
10865
|
-
//
|
|
10866
|
-
//
|
|
10867
|
-
// back to the detected repos + typed path already in this menu.
|
|
10868
|
-
function isLocalSession(){ return ['localhost', '127.0.0.1'].includes(location.hostname); }
|
|
10863
|
+
// "Open folder…" opens the native picker in the engine process and points this
|
|
10864
|
+
// project at the chosen path. This is also correct through the authenticated
|
|
10865
|
+
// relay: it forwards the request to the account owner's loopback engine, so the
|
|
10866
|
+
// picker opens on that owner's Mac rather than on the hosted relay.
|
|
10869
10867
|
async function openFolderNative(){
|
|
10870
10868
|
const msg = $('ctxdirmsg');
|
|
10871
10869
|
const say = (t, bad) => { if (msg) { msg.textContent = t; msg.classList.toggle('bad', Boolean(bad)); } };
|
|
10872
|
-
if (!isLocalSession()) { say('Open Manager locally to choose a folder on this computer.', true); return; }
|
|
10873
10870
|
say('Opening the folder chooser…');
|
|
10874
10871
|
try {
|
|
10875
10872
|
const r = await fetch(withKey('/api/choose-folder'), { method: 'POST' });
|
package/package.json
CHANGED