@yemi33/minions 0.1.19 → 0.1.21
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/CHANGELOG.md +11 -0
- package/dashboard/js/settings.js +1 -2
- package/dashboard.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dashboard/js/settings.js
CHANGED
|
@@ -136,12 +136,11 @@ async function saveSettings() {
|
|
|
136
136
|
|
|
137
137
|
async function addProject() {
|
|
138
138
|
try {
|
|
139
|
-
|
|
139
|
+
showToast('cmd-toast', 'Opening folder picker...', true);
|
|
140
140
|
const browseRes = await fetch('/api/projects/browse', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: '{}' });
|
|
141
141
|
const browseData = await browseRes.json();
|
|
142
142
|
if (browseData.cancelled || !browseData.path) return;
|
|
143
143
|
|
|
144
|
-
// Add the project
|
|
145
144
|
const addRes = await fetch('/api/projects/add', {
|
|
146
145
|
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
|
147
146
|
body: JSON.stringify({ path: browseData.path })
|
package/dashboard.js
CHANGED
|
@@ -2417,9 +2417,9 @@ What would you like to discuss or change? When you're happy, say "approve" and I
|
|
|
2417
2417
|
const { execSync } = require('child_process');
|
|
2418
2418
|
let selectedPath = '';
|
|
2419
2419
|
if (process.platform === 'win32') {
|
|
2420
|
-
// PowerShell folder browser dialog
|
|
2421
|
-
const ps = `Add-Type -AssemblyName System.Windows.Forms; $f = New-Object System.Windows.Forms.FolderBrowserDialog; $f.Description = 'Select project folder'; $f.ShowNewFolderButton = $false; if ($f.ShowDialog() -eq 'OK') { $f.SelectedPath } else { '' }`;
|
|
2422
|
-
selectedPath = execSync(`powershell -NoProfile -Command "${ps}"`, { encoding: 'utf8', timeout: 120000
|
|
2420
|
+
// PowerShell folder browser dialog — use TopMost form as owner to bring dialog to front
|
|
2421
|
+
const ps = `Add-Type -AssemblyName System.Windows.Forms; $owner = New-Object System.Windows.Forms.Form; $owner.TopMost = $true; $f = New-Object System.Windows.Forms.FolderBrowserDialog; $f.Description = 'Select project folder'; $f.ShowNewFolderButton = $false; if ($f.ShowDialog($owner) -eq 'OK') { $f.SelectedPath } else { '' }; $owner.Dispose()`;
|
|
2422
|
+
selectedPath = execSync(`powershell -NoProfile -Command "${ps}"`, { encoding: 'utf8', timeout: 120000 }).trim();
|
|
2423
2423
|
} else if (process.platform === 'darwin') {
|
|
2424
2424
|
selectedPath = execSync(`osascript -e 'POSIX path of (choose folder with prompt "Select project folder")'`, { encoding: 'utf8', timeout: 120000 }).trim();
|
|
2425
2425
|
} else {
|
package/package.json
CHANGED