ultimate-jekyll-manager 0.0.122 → 0.0.123
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/TODO.md
CHANGED
|
@@ -105,6 +105,11 @@ FINISH redirec.js in UJ
|
|
|
105
105
|
* Also, there are residual notifications/subscriptions/all/{token} that need to be MIGRATED to the new format
|
|
106
106
|
* EX: https://console.firebase.google.com/project/replyify-app/firestore/databases/-default-/data/~2Fnotifications~2Fsubscriptions~2Fall~2FczUMa9wW0n3FnjpKCL5Wet:APA91bFD9YpwBqtn0i6qVabxiNl1uqIl3Ka1ObNM9CWT5NjzjnlTnyCA7e0G3Y3GGzIEcJUPoDLnGBRP3xBob99EiWItKtOuWP3Sqb906zBYJGFENIyQOJIUw43tizN5lCSq6ICgVJsZ
|
|
107
107
|
|
|
108
|
+
# BEM API
|
|
109
|
+
* Many places still use "payload.data.authenticationToken", we need to migrate to the "Bearer *" format (since WM sends that now)
|
|
110
|
+
* Honestly, the whole API auth system needs to be rethought and redone: /Users/ian/Developer/Repositories/ITW-Creative-Works/backend-manager/src/manager/functions/core/actions/api
|
|
111
|
+
* Write tests and then refactor the whole thing
|
|
112
|
+
* Had an idea to make backend-manager tetss for lots of stuff? where were the notes for that?
|
|
108
113
|
|
|
109
114
|
FIX THE settings like
|
|
110
115
|
* layout.settings.manager-configuration
|
|
@@ -57,7 +57,8 @@ function setupResetApiKeyForm() {
|
|
|
57
57
|
|
|
58
58
|
formManager.on('submit', async () => {
|
|
59
59
|
// 1ms wait for dialog to appear properly
|
|
60
|
-
await new Promise(resolve => setTimeout(resolve, 1));
|
|
60
|
+
// await new Promise(resolve => setTimeout(resolve, 1));
|
|
61
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
61
62
|
|
|
62
63
|
// Show confirmation dialog
|
|
63
64
|
if (!confirm('Are you sure you want to reset your API key? This will invalidate your current key and any applications using it will stop working.')) {
|
package/dist/gulp/tasks/audit.js
CHANGED
|
@@ -362,6 +362,8 @@ function format(messages) {
|
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
// Lighthouse audit functionality
|
|
365
|
+
// ⚠️⚠️⚠️ LIGHTHOUSE BREAKS WEB-MANAGER @SENTRY/CORE VERSION CONFLICTS
|
|
366
|
+
// So we lazy-load it only when needed
|
|
365
367
|
async function runLighthouseAudit() {
|
|
366
368
|
logger.log('📊 Starting Lighthouse audit...');
|
|
367
369
|
|
|
@@ -371,9 +373,24 @@ async function runLighthouseAudit() {
|
|
|
371
373
|
try {
|
|
372
374
|
lighthouse = require('lighthouse').default || require('lighthouse');
|
|
373
375
|
} catch (e) {
|
|
374
|
-
|
|
375
|
-
logger.
|
|
376
|
-
|
|
376
|
+
// Lighthouse not installed - try to install it temporarily via npx
|
|
377
|
+
logger.log('📦 Lighthouse not found, installing temporarily...');
|
|
378
|
+
try {
|
|
379
|
+
// Use execSync to install lighthouse in node_modules temporarily
|
|
380
|
+
const { execSync } = require('child_process');
|
|
381
|
+
execSync('npm install --no-save lighthouse', {
|
|
382
|
+
cwd: rootPathProject,
|
|
383
|
+
stdio: 'inherit'
|
|
384
|
+
});
|
|
385
|
+
// Try requiring again after install
|
|
386
|
+
const lighthousePath = path.join(rootPathProject, 'node_modules', 'lighthouse');
|
|
387
|
+
lighthouse = require(lighthousePath).default || require(lighthousePath);
|
|
388
|
+
logger.log('✅ Lighthouse installed temporarily');
|
|
389
|
+
} catch (installError) {
|
|
390
|
+
logger.error('❌ Failed to install Lighthouse. Install it globally:');
|
|
391
|
+
logger.error(' npm install -g lighthouse');
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
377
394
|
}
|
|
378
395
|
|
|
379
396
|
let serverStarted = false;
|