mirror of
https://github.com/fleetbase/fleetbase.git
synced 2025-12-19 22:27:22 +00:00
feat: preparing for performance tweaking to page load sub 1s
This commit is contained in:
@@ -96,7 +96,10 @@ export default class ApplicationRoute extends Route {
|
||||
* @memberof ApplicationRoute
|
||||
*/
|
||||
afterModel() {
|
||||
if (!this.session.isAuthenticated) removeBootLoader();
|
||||
if (!this.session.isAuthenticated) {
|
||||
console.log('boot loader removed');
|
||||
removeBootLoader();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -39,6 +39,7 @@ export default class ConsoleRoute extends Route {
|
||||
async afterModel(model, transition) {
|
||||
this.hookService.execute('console:after-model', this.session, this.router, model, transition);
|
||||
removeBootLoader();
|
||||
console.log('boot loader removed');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,6 +13,7 @@ module.exports = {
|
||||
name: require('./package').name,
|
||||
|
||||
getGeneratedFileHeader() {
|
||||
const year = (new Date()).getFullYear();
|
||||
return `/**
|
||||
* ███████╗██╗ ███████╗███████╗████████╗██████╗ █████╗ ███████╗███████╗
|
||||
* ██╔════╝██║ ██╔════╝██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██╔════╝██╔════╝
|
||||
@@ -27,7 +28,7 @@ module.exports = {
|
||||
* Any manual changes will be overwritten on the next build.
|
||||
*
|
||||
* @generated
|
||||
* @copyright © 2024 Fleetbase Pte Ltd. All rights reserved.
|
||||
* @copyright © ${year} Fleetbase Pte Ltd. All rights reserved.
|
||||
* @license AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
@@ -37,17 +38,15 @@ module.exports = {
|
||||
included(app) {
|
||||
this._super.included.apply(this, arguments);
|
||||
|
||||
console.log('\n' + '='.repeat(80));
|
||||
console.log('\n' + '/'.repeat(70));
|
||||
console.log('[Fleetbase] Extension Build System');
|
||||
console.log('='.repeat(80));
|
||||
console.log('/'.repeat(70));
|
||||
|
||||
// Generate files on startup
|
||||
this.generateExtensionFiles();
|
||||
|
||||
// Watch for changes in development
|
||||
this.watchExtensionFiles();
|
||||
|
||||
console.log('='.repeat(80) + '\n');
|
||||
},
|
||||
|
||||
async generateExtensionFiles() {
|
||||
|
||||
Reference in New Issue
Block a user