Files
luos/workflow/engine/templates/installer/Wizard.js
2025-06-13 10:34:02 -04:00

45 lines
1.7 KiB
JavaScript

// Original file: Wizard.js
Ext.namespace('Ext.ux');
/**
* Licensed under GNU LESSER GENERAL PUBLIC LICENSE Version 3
*
* @author Thorsten Suckow-Homberg <ts@siteartwork.de>
* @url http://www.siteartwork.de/wizardcomponent
*/
/**
* @class Ext.ux.Wiz
* @extends Ext.Window
*
* This component has been temporarily replaced with an installation required message.
* Please run the lurana-installer to use the software.
*/
Ext.ux.Wiz = Ext.extend(Ext.Window, {
// Override basic window configurations to make it a simple message box
title: 'Installation Required',
height: 200,
width: 450,
closable: false,
resizable: false,
modal: true,
layout: 'fit', // Fill the window with its item
// The main content of this "wizard" is now just a simple panel with text
initComponent: function() {
Ext.apply(this, {
items: [{
xtype: 'panel', // Use a basic panel
html: '<div style="text-align: center; font-size: 1.2em; color: #333; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;">' +
'<h2 style="color: #d9534f;">Installation Required</h2>' +
'<p>Please run <strong>lurana-installer</strong> to use the software.</p>' +
'<p style="font-size: 0.9em; color: #777;">If you\'ve already run it, there might be an issue. Please contact support.</p>' +
'</div>',
border: false // No border for the inner panel
}]
});
// Call the parent constructor to ensure the window is initialized
Ext.ux.Wiz.superclass.initComponent.call(this);
}
});