Skip to content

Commit baab42c

Browse files
committed
chore: Lots of Changes
Release-As: v1.0.0
1 parent d84ce96 commit baab42c

File tree

8 files changed

+2961
-96
lines changed

8 files changed

+2961
-96
lines changed

Wfc/Ui/Vuetify/CRUDList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use WebFiori\Ui\HTMLNode;
66
use Wfc\Ui\Vuetify\VDialog;
7-
use WebFiori\Framework\exceptions\UIException;
7+
use WebFiori\Framework\Exceptions\UIException;
88
use Wfc\Ui\Vuetify\VBtn;
99
/**
1010
* A v-list element which supports performing CRUD operations.

Wfc/Ui/Vuetify/Heading.php

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,12 @@ public function __construct($title, $level = 1) {
2929
/**
3030
* Sets the text that will appear in the body of the heading.
3131
*
32-
* @param HTMLNode|string $textOrNode This can be an object of type HTMLNode
33-
* or a simple string.
32+
* @param string $text The text to set.
33+
* @param bool $escHtmlEntities Whether to escape HTML entities.
3434
*/
35-
public function setText($textOrNode) : Heading {
36-
$this->headingNode->removeAllChildren();
37-
38-
if ($textOrNode instanceof HTMLNode) {
39-
$this->headingNode->addChild($textOrNode);
40-
} else if (gettype($textOrNode) == 'string') {
41-
$this->headingNode->text($textOrNode);
42-
}
43-
35+
public function setText(string $text, bool $escHtmlEntities = true): HTMLNode {
36+
$this->headingNode->text('');
37+
$this->headingNode->setText($text, $escHtmlEntities);
4438
return $this;
4539
}
4640
/**

composer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,17 @@
1919
"Web APIs",
2020
"Themes"
2121
],
22+
"scripts": {
23+
"test": "phpunit --configuration tests/phpunit.xml",
24+
"test10": "phpunit --configuration tests/phpunit10.xml"
25+
},
26+
"require-dev": {
27+
"phpunit/phpunit": "^10.0"
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"Wfc\\": "Wfc/"
32+
}
33+
},
2234
"license": "MIT"
2335
}

0 commit comments

Comments
 (0)