Skip to content

Commit ed49c1a

Browse files
committed
Installer: step icons added
1 parent a968be8 commit ed49c1a

File tree

17 files changed

+63
-10
lines changed

17 files changed

+63
-10
lines changed

_installer/Classes/Step/Controller.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
use Jet\MVC_View;
1313
use Jet\Tr;
1414
use Jet\Http_Request;
15+
use Jet\UI;
16+
use Jet\UI_icon;
1517

1618
/**
1719
*
@@ -22,6 +24,11 @@ abstract class Installer_Step_Controller
2224
* @var string
2325
*/
2426
protected string $name = '';
27+
28+
/**
29+
* @var string
30+
*/
31+
protected string $icon = '';
2532

2633
/**
2734
* @var string
@@ -89,6 +96,28 @@ public function getName(): string
8996
{
9097
return $this->name;
9198
}
99+
100+
/**
101+
* @return string
102+
*/
103+
public function getIcon( string $size = UI_icon::SIZE_NORMAL ): string
104+
{
105+
if(!$this->icon) {
106+
return '';
107+
}
108+
109+
return UI::icon($this->icon)->setSize( $size );
110+
}
111+
112+
/**
113+
* @param string $icon
114+
*/
115+
public function setIcon( string $icon ): void
116+
{
117+
$this->icon = $icon;
118+
}
119+
120+
92121

93122
/**
94123
*

_installer/Step/ConfigureDb/Controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*/
2424
class Installer_Step_ConfigureDb_Controller extends Installer_Step_Controller
2525
{
26+
protected string $icon = 'database';
2627

2728
/**
2829
* @var string

_installer/Step/ConfigureStudio/Controller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
*/
2626
class Installer_Step_ConfigureStudio_Controller extends Installer_Step_Controller
2727
{
28-
28+
protected string $icon = 'laptop-code';
29+
2930
/**
3031
* @var string
3132
*/

_installer/Step/CreateAdministrator/Controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
class Installer_Step_CreateAdministrator_Controller extends Installer_Step_Controller
1717
{
18+
protected string $icon = 'user-secret';
1819

1920
/**
2021
* @var string

_installer/Step/CreateBases/Controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
*/
3434
class Installer_Step_CreateBases_Controller extends Installer_Step_Controller
3535
{
36+
protected string $icon = 'wand-sparkles';
3637

3738
/**
3839
* @var string

_installer/Step/CreateDB/Controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
*/
3636
class Installer_Step_CreateDB_Controller extends Installer_Step_Controller
3737
{
38+
protected string $icon = 'square-plus';
3839

3940
/**
4041
* @var string

_installer/Step/CreateRESTClient/Controller.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class Installer_Step_CreateRESTClient_Controller extends Installer_Step_Controll
2020
const MAIN_ROLE_ID = 'main';
2121
const MAIN_ROLE_NAME = 'Main';
2222

23+
protected string $icon = 'server';
24+
2325
/**
2426
* @var string
2527
*/

_installer/Step/CreateVisitor/Controller.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class Installer_Step_CreateVisitor_Controller extends Installer_Step_Controller
2020
const MAIN_ROLE_ID = 'main';
2121
const MAIN_ROLE_NAME = 'Main';
2222

23+
protected string $icon = 'users';
24+
2325
/**
2426
* @var string
2527
*/

_installer/Step/DirsCheck/Controller.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
*/
2121
class Installer_Step_DirsCheck_Controller extends Installer_Step_Controller
2222
{
23+
24+
/**
25+
* @var string
26+
*/
27+
protected string $icon = 'folder-open';
2328

2429
/**
2530
* @var string

_installer/Step/Final/Controller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
*/
2323
class Installer_Step_Final_Controller extends Installer_Step_Controller
2424
{
25-
25+
protected string $icon = 'flag-checkered';
26+
2627
/**
2728
* @var string
2829
*/

0 commit comments

Comments
 (0)