mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
chore: replace codeigniter-icons with php-icons v1.2.0
+ update dependencies to latest
This commit is contained in:
parent
be1d8c4876
commit
34374e823c
@ -108,5 +108,5 @@ class Autoload extends AutoloadConfig
|
||||
*
|
||||
* @var list<string>
|
||||
*/
|
||||
public $helpers = ['auth', 'setting', 'icons'];
|
||||
public $helpers = ['auth', 'setting'];
|
||||
}
|
||||
|
@ -23,12 +23,12 @@ class DashboardCard extends Component
|
||||
|
||||
public function render(): string
|
||||
{
|
||||
$glyph = icon($this->glyph, [
|
||||
$glyph = (string) icon($this->glyph, [
|
||||
'class' => 'flex-shrink-0 bg-base rounded-full w-8 h-8 p-2 text-accent-base',
|
||||
]);
|
||||
|
||||
if ($this->href !== null && $this->href !== '') {
|
||||
$chevronRight = icon('arrow-right-s-fill');
|
||||
$chevronRight = (string) icon('arrow-right-s-fill');
|
||||
$viewLang = lang('Common.view');
|
||||
return <<<HTML
|
||||
<a href="{$this->href}" class="flex items-center justify-between w-full gap-4 p-4 lg:max-w-sm lg:flex-col xl:flex-row bg-elevated focus:ring-accent rounded-xl border-3 border-subtle group">
|
||||
|
@ -24,7 +24,7 @@ class MarkdownEditor extends FormComponent
|
||||
$this->attributes['rows'] = 6;
|
||||
|
||||
$textarea = form_textarea($this->attributes, old($this->name, $this->value));
|
||||
$markdownIcon = icon(
|
||||
$markdownIcon = (string) icon(
|
||||
'markdown-fill',
|
||||
[
|
||||
'class' => 'mr-1 text-lg opacity-40',
|
||||
@ -41,41 +41,41 @@ class MarkdownEditor extends FormComponent
|
||||
[
|
||||
'name' => 'header',
|
||||
'tag' => 'md-header',
|
||||
'icon' => icon('heading'),
|
||||
'icon' => (string) icon('heading'),
|
||||
],
|
||||
[
|
||||
'name' => 'bold',
|
||||
'tag' => 'md-bold',
|
||||
'icon' => icon('bold'),
|
||||
'icon' => (string) icon('bold'),
|
||||
],
|
||||
[
|
||||
'name' => 'italic',
|
||||
'tag' => 'md-italic',
|
||||
'icon' => icon('italic'),
|
||||
'icon' => (string) icon('italic'),
|
||||
],
|
||||
],
|
||||
[
|
||||
[
|
||||
'name' => 'unordered-list',
|
||||
'tag' => 'md-unordered-list',
|
||||
'icon' => icon('list-unordered'),
|
||||
'icon' => (string) icon('list-unordered'),
|
||||
],
|
||||
[
|
||||
'name' => 'ordered-list',
|
||||
'tag' => 'md-ordered-list ',
|
||||
'icon' => icon('list-ordered-2'),
|
||||
'icon' => (string) icon('list-ordered-2'),
|
||||
],
|
||||
],
|
||||
[
|
||||
[
|
||||
'name' => 'link',
|
||||
'tag' => 'md-link',
|
||||
'icon' => icon('link'),
|
||||
'icon' => (string) icon('link'),
|
||||
],
|
||||
[
|
||||
'name' => 'image',
|
||||
'tag' => 'md-image',
|
||||
'icon' => icon('image-add-fill'),
|
||||
'icon' => (string) icon('image-add-fill'),
|
||||
],
|
||||
],
|
||||
];
|
||||
|
@ -26,7 +26,7 @@ class IconButton extends Button
|
||||
|
||||
parent::__construct($allAttributes);
|
||||
|
||||
$this->slot = icon($this->glyph, [
|
||||
$this->slot = (string) icon($this->glyph, [
|
||||
'class' => $glyphSize[$this->size],
|
||||
]);
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
"php": "^8.1",
|
||||
"adaures/ipcat-php": "^v1.0.0",
|
||||
"adaures/podcast-persons-taxonomy": "^v1.0.1",
|
||||
"aws/aws-sdk-php": "^3.322.3",
|
||||
"aws/aws-sdk-php": "^3.325.2",
|
||||
"chrisjean/php-ico": "^1.0.4",
|
||||
"cocur/slugify": "^v4.6.0",
|
||||
"codeigniter4/framework": "v4.5.5",
|
||||
@ -27,19 +27,19 @@
|
||||
"phpseclib/phpseclib": "~2.0.47",
|
||||
"vlucas/phpdotenv": "v5.6.1",
|
||||
"whichbrowser/parser": "^v2.1.8",
|
||||
"yassinedoghri/codeigniter-icons": "dev-develop",
|
||||
"yassinedoghri/php-icons": "^v1.2.0",
|
||||
"yassinedoghri/podcast-feed": "dev-main"
|
||||
},
|
||||
"require-dev": {
|
||||
"captainhook/captainhook": "^5.23.3",
|
||||
"captainhook/captainhook": "^5.23.6",
|
||||
"codeigniter/phpstan-codeigniter": "v1.4.3",
|
||||
"mikey179/vfsstream": "^v1.6.12",
|
||||
"phpstan/extension-installer": "^1.4.3",
|
||||
"phpstan/phpstan": "^1.12.4",
|
||||
"phpunit/phpunit": "^10.5.35",
|
||||
"rector/rector": "^1.2.5",
|
||||
"phpstan/phpstan": "^1.12.7",
|
||||
"phpunit/phpunit": "^10.5.38",
|
||||
"rector/rector": "^1.2.9",
|
||||
"symplify/coding-standard": "^12.2.3",
|
||||
"symplify/easy-coding-standard": "^12.3.5"
|
||||
"symplify/easy-coding-standard": "^12.3.6"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
455
composer.lock
generated
455
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user