Skip to content

Commit 4c7be94

Browse files
authored
Updates
1 parent 9873b68 commit 4c7be94

2 files changed

Lines changed: 22 additions & 11 deletions

File tree

config/var/www/admin/control-panel/dashboard.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,24 +169,31 @@ class EngineScriptDashboard {
169169
*/
170170
async loadExternalServices() {
171171
try {
172+
console.log('[Dashboard] Loading external services (lazy load triggered)');
173+
172174
// If already loaded, just initialize
173175
if (this.externalServices) {
176+
console.log('[Dashboard] External services already loaded, reinitializing...');
174177
await this.externalServices.init();
175178
return;
176179
}
177180

181+
console.log('[Dashboard] Importing external services module...');
178182
// Dynamic import - only loads when needed
179183
const { ExternalServicesManager } = await import('./external-services/external-services.js?v=2025.11.14.01');
180184

185+
console.log('[Dashboard] Creating ExternalServicesManager instance...');
181186
// Create instance and initialize
182187
this.externalServices = new ExternalServicesManager(
183188
'#external-services-grid',
184189
'#external-services-settings'
185190
);
186191

192+
console.log('[Dashboard] Initializing external services...');
187193
await this.externalServices.init();
194+
console.log('[Dashboard] External services loaded successfully');
188195
} catch (error) {
189-
console.error('Failed to load external services:', error);
196+
console.error('[Dashboard] Failed to load external services:', error);
190197
this.showError('Failed to load external services. Please try again.');
191198
}
192199
}
@@ -301,10 +308,14 @@ class EngineScriptDashboard {
301308
}
302309

303310
refreshData() {
311+
// Log current page being refreshed
312+
const currentPage = this.state.getCurrentPage();
313+
console.log('[Dashboard] Auto-refresh triggered for page:', currentPage);
314+
304315
// Clear service cache on manual refresh
305316
this.state.clearServiceCache();
306317
this.showRefreshAnimation();
307-
this.loadPageData(this.state.getCurrentPage());
318+
this.loadPageData(currentPage);
308319
this.updateLastRefresh();
309320
}
310321

scripts/install/nginx/nginx-compile.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -167,25 +167,25 @@ if [[ "${INSTALL_HTTP3}" == "1" ]];
167167
--modules-path=/etc/nginx/modules \
168168
--pid-path=/run/nginx.pid \
169169
--sbin-path=/usr/sbin/nginx \
170-
--build=\"nginx-${NGINX_VER}-${DT}-enginescript\" \
171-
--builddir=\"nginx-${NGINX_VER}\" \
172-
--with-cc-opt=\"$CC_OPT_FLAGS\" \
173-
--with-ld-opt=\"$LD_OPT_FLAGS\" \
174-
--with-openssl-opt=\"$OPENSSL_OPT_FLAGS\" \
175-
--with-openssl=\"/usr/src/openssl-${OPENSSL_VER}\" \
170+
--build="nginx-${NGINX_VER}-${DT}-enginescript" \
171+
--builddir="nginx-${NGINX_VER}" \
172+
--with-cc-opt="$CC_OPT_FLAGS" \
173+
--with-ld-opt="$LD_OPT_FLAGS" \
174+
--with-openssl-opt="$OPENSSL_OPT_FLAGS" \
175+
--with-openssl="/usr/src/openssl-${OPENSSL_VER}" \
176176
--with-libatomic \
177177
--with-file-aio \
178178
--with-threads \
179-
--with-pcre=\"/usr/src/pcre2-${PCRE2_VER}\" \
179+
--with-pcre="/usr/src/pcre2-${PCRE2_VER}" \
180180
--with-pcre-jit \
181181
--with-zlib=/usr/src/zlib-cf \
182182
--with-zlib-opt=-fPIC \
183183
--with-http_ssl_module \
184184
--with-http_v2_module \
185185
--with-http_realip_module \
186-
--add-module=\"/usr/src/headers-more-nginx-module-${NGINX_HEADER_VER}\" \
186+
--add-module="/usr/src/headers-more-nginx-module-${NGINX_HEADER_VER}" \
187187
--add-module=/usr/src/ngx_brotli \
188-
--add-module=\"/usr/src/ngx_cache_purge-${NGINX_PURGE_VER}\" \
188+
--add-module="/usr/src/ngx_cache_purge-${NGINX_PURGE_VER}" \
189189
--without-http_browser_module \
190190
--without-http_empty_gif_module \
191191
--without-http_memcached_module \

0 commit comments

Comments
 (0)