refactor: update codigniter-icons to v1.0.1

This commit is contained in:
Yassine Doghri 2024-10-21 11:11:23 +00:00
parent ea720e01ba
commit fa6967e65c
7 changed files with 63 additions and 61 deletions

View File

@ -27,7 +27,7 @@ class DashboardCard extends Component
#[Override] #[Override]
public function render(): string 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', 'class' => 'flex-shrink-0 bg-base rounded-full w-8 h-8 p-2 text-accent-base',
]); ]);

View File

@ -33,7 +33,7 @@ class MarkdownEditor extends FormComponent
$this->attributes, $this->attributes,
old($this->name, (string) $this->value) old($this->name, (string) $this->value)
); );
$markdownIcon = icon('markdown-fill', [ $markdownIcon = (string) icon('markdown-fill', [
'class' => 'mr-1 text-lg opacity-40', 'class' => 'mr-1 text-lg opacity-40',
]); ]);
@ -48,41 +48,41 @@ class MarkdownEditor extends FormComponent
[ [
'name' => 'header', 'name' => 'header',
'tag' => 'md-header', 'tag' => 'md-header',
'icon' => icon('heading'), 'icon' => (string) icon('heading'),
], ],
[ [
'name' => 'bold', 'name' => 'bold',
'tag' => 'md-bold', 'tag' => 'md-bold',
'icon' => icon('bold'), 'icon' => (string) icon('bold'),
], ],
[ [
'name' => 'italic', 'name' => 'italic',
'tag' => 'md-italic', 'tag' => 'md-italic',
'icon' => icon('italic'), 'icon' => (string) icon('italic'),
], ],
], ],
[ [
[ [
'name' => 'unordered-list', 'name' => 'unordered-list',
'tag' => 'md-unordered-list', 'tag' => 'md-unordered-list',
'icon' => icon('list-unordered'), 'icon' => (string) icon('list-unordered'),
], ],
[ [
'name' => 'ordered-list', 'name' => 'ordered-list',
'tag' => 'md-ordered-list ', 'tag' => 'md-ordered-list ',
'icon' => icon('list-ordered-2'), 'icon' => (string) icon('list-ordered-2'),
], ],
], ],
[ [
[ [
'name' => 'link', 'name' => 'link',
'tag' => 'md-link', 'tag' => 'md-link',
'icon' => icon('link'), 'icon' => (string) icon('link'),
], ],
[ [
'name' => 'image', 'name' => 'image',
'tag' => 'md-image', 'tag' => 'md-image',
'icon' => icon('image-add-fill'), 'icon' => (string) icon('image-add-fill'),
], ],
], ],
]; ];

View File

@ -28,7 +28,7 @@ class IconButton extends Button
default => 'text-lg', default => 'text-lg',
}; };
$this->slot = icon($this->glyph, [ $this->slot = (string) icon($this->glyph, [
'class' => $glyphSizeClass, 'class' => $glyphSizeClass,
]); ]);
} }

View File

@ -9,7 +9,7 @@
"php": "^8.3", "php": "^8.3",
"adaures/ipcat-php": "^v1.0.0", "adaures/ipcat-php": "^v1.0.0",
"adaures/podcast-persons-taxonomy": "^v1.0.1", "adaures/podcast-persons-taxonomy": "^v1.0.1",
"aws/aws-sdk-php": "^3.324.3", "aws/aws-sdk-php": "^3.324.6",
"chrisjean/php-ico": "^1.0.4", "chrisjean/php-ico": "^1.0.4",
"cocur/slugify": "^v4.6.0", "cocur/slugify": "^v4.6.0",
"codeigniter4/framework": "v4.5.5", "codeigniter4/framework": "v4.5.5",
@ -27,7 +27,7 @@
"phpseclib/phpseclib": "~2.0.47", "phpseclib/phpseclib": "~2.0.47",
"vlucas/phpdotenv": "v5.6.1", "vlucas/phpdotenv": "v5.6.1",
"whichbrowser/parser": "^v2.1.8", "whichbrowser/parser": "^v2.1.8",
"yassinedoghri/codeigniter-icons": "^v1.0.0", "yassinedoghri/codeigniter-icons": "^v1.0.1",
"yassinedoghri/php-icons": "^v1.1.0", "yassinedoghri/php-icons": "^v1.1.0",
"yassinedoghri/podcast-feed": "dev-main" "yassinedoghri/podcast-feed": "dev-main"
}, },
@ -36,9 +36,9 @@
"codeigniter/phpstan-codeigniter": "v1.4.3", "codeigniter/phpstan-codeigniter": "v1.4.3",
"mikey179/vfsstream": "^v1.6.12", "mikey179/vfsstream": "^v1.6.12",
"phpstan/extension-installer": "^1.4.3", "phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^1.12.6", "phpstan/phpstan": "^1.12.7",
"phpunit/phpunit": "^10.5.36", "phpunit/phpunit": "^10.5.37",
"rector/rector": "^1.2.7", "rector/rector": "^1.2.8",
"symplify/coding-standard": "^12.2.3", "symplify/coding-standard": "^12.2.3",
"symplify/easy-coding-standard": "^12.3.6" "symplify/easy-coding-standard": "^12.3.6"
}, },

88
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "156f3cbd51fbb10025391c7786b9201c", "content-hash": "f0131cc2c876c7a8da809f3dad8cc993",
"packages": [ "packages": [
{ {
"name": "adaures/ipcat-php", "name": "adaures/ipcat-php",
@ -188,16 +188,16 @@
}, },
{ {
"name": "aws/aws-sdk-php", "name": "aws/aws-sdk-php",
"version": "3.324.3", "version": "3.324.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/aws/aws-sdk-php.git", "url": "https://github.com/aws/aws-sdk-php.git",
"reference": "018a692622175ad65ebefa3f6645e4e6208a11fe" "reference": "7412a44da62fd607efbaac4084e69d6621f29de1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/018a692622175ad65ebefa3f6645e4e6208a11fe", "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/7412a44da62fd607efbaac4084e69d6621f29de1",
"reference": "018a692622175ad65ebefa3f6645e4e6208a11fe", "reference": "7412a44da62fd607efbaac4084e69d6621f29de1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -274,9 +274,9 @@
"support": { "support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues", "issues": "https://github.com/aws/aws-sdk-php/issues",
"source": "https://github.com/aws/aws-sdk-php/tree/3.324.3" "source": "https://github.com/aws/aws-sdk-php/tree/3.324.6"
}, },
"time": "2024-10-15T18:29:08+00:00" "time": "2024-10-18T18:06:33+00:00"
}, },
{ {
"name": "brick/math", "name": "brick/math",
@ -1086,16 +1086,16 @@
}, },
{ {
"name": "guzzlehttp/promises", "name": "guzzlehttp/promises",
"version": "2.0.3", "version": "2.0.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/guzzle/promises.git", "url": "https://github.com/guzzle/promises.git",
"reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8" "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/guzzle/promises/zipball/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", "url": "https://api.github.com/repos/guzzle/promises/zipball/f9c436286ab2892c7db7be8c8da4ef61ccf7b455",
"reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1145,7 +1145,7 @@
"keywords": ["promise"], "keywords": ["promise"],
"support": { "support": {
"issues": "https://github.com/guzzle/promises/issues", "issues": "https://github.com/guzzle/promises/issues",
"source": "https://github.com/guzzle/promises/tree/2.0.3" "source": "https://github.com/guzzle/promises/tree/2.0.4"
}, },
"funding": [ "funding": [
{ {
@ -1161,7 +1161,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-07-18T10:29:17+00:00" "time": "2024-10-17T10:06:22+00:00"
}, },
{ {
"name": "guzzlehttp/psr7", "name": "guzzlehttp/psr7",
@ -3244,16 +3244,16 @@
}, },
{ {
"name": "yassinedoghri/codeigniter-icons", "name": "yassinedoghri/codeigniter-icons",
"version": "v1.0.0", "version": "v1.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/yassinedoghri/codeigniter-icons.git", "url": "https://github.com/yassinedoghri/codeigniter-icons.git",
"reference": "41e703612578fa44dfa8bd937380d71ab2af56ac" "reference": "3dcb134c862438f087cd515cea4ce1e84a34c5bc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/yassinedoghri/codeigniter-icons/zipball/41e703612578fa44dfa8bd937380d71ab2af56ac", "url": "https://api.github.com/repos/yassinedoghri/codeigniter-icons/zipball/3dcb134c862438f087cd515cea4ce1e84a34c5bc",
"reference": "41e703612578fa44dfa8bd937380d71ab2af56ac", "reference": "3dcb134c862438f087cd515cea4ce1e84a34c5bc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3297,9 +3297,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/yassinedoghri/codeigniter-icons/issues", "issues": "https://github.com/yassinedoghri/codeigniter-icons/issues",
"source": "https://github.com/yassinedoghri/codeigniter-icons/tree/v1.0.0" "source": "https://github.com/yassinedoghri/codeigniter-icons/tree/v1.0.1"
}, },
"time": "2024-09-29T17:11:34+00:00" "time": "2024-10-20T16:07:46+00:00"
}, },
{ {
"name": "yassinedoghri/php-icons", "name": "yassinedoghri/php-icons",
@ -4377,16 +4377,16 @@
}, },
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "1.12.6", "version": "1.12.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "dc4d2f145a88ea7141ae698effd64d9df46527ae" "reference": "dc2b9976bd8b0f84ec9b0e50cc35378551de7af0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/dc4d2f145a88ea7141ae698effd64d9df46527ae", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dc2b9976bd8b0f84ec9b0e50cc35378551de7af0",
"reference": "dc4d2f145a88ea7141ae698effd64d9df46527ae", "reference": "dc2b9976bd8b0f84ec9b0e50cc35378551de7af0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4421,7 +4421,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-10-06T15:03:59+00:00" "time": "2024-10-18T11:12:07+00:00"
}, },
{ {
"name": "phpunit/php-code-coverage", "name": "phpunit/php-code-coverage",
@ -4713,16 +4713,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "10.5.36", "version": "10.5.37",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "aa0a8ce701ea7ee314b0dfaa8970dc94f3f8c870" "reference": "c7cffa0efa2b70c22366523e6d804c9419eb2400"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/aa0a8ce701ea7ee314b0dfaa8970dc94f3f8c870", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c7cffa0efa2b70c22366523e6d804c9419eb2400",
"reference": "aa0a8ce701ea7ee314b0dfaa8970dc94f3f8c870", "reference": "c7cffa0efa2b70c22366523e6d804c9419eb2400",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4743,7 +4743,7 @@
"phpunit/php-timer": "^6.0.0", "phpunit/php-timer": "^6.0.0",
"sebastian/cli-parser": "^2.0.1", "sebastian/cli-parser": "^2.0.1",
"sebastian/code-unit": "^2.0.0", "sebastian/code-unit": "^2.0.0",
"sebastian/comparator": "^5.0.2", "sebastian/comparator": "^5.0.3",
"sebastian/diff": "^5.1.1", "sebastian/diff": "^5.1.1",
"sebastian/environment": "^6.1.0", "sebastian/environment": "^6.1.0",
"sebastian/exporter": "^5.1.2", "sebastian/exporter": "^5.1.2",
@ -4782,7 +4782,7 @@
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues", "issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy", "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.36" "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.37"
}, },
"funding": [ "funding": [
{ {
@ -4798,7 +4798,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-10-08T15:36:51+00:00" "time": "2024-10-19T13:03:41+00:00"
}, },
{ {
"name": "psr/container", "name": "psr/container",
@ -5341,16 +5341,16 @@
}, },
{ {
"name": "rector/rector", "name": "rector/rector",
"version": "1.2.7", "version": "1.2.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/rectorphp/rector.git", "url": "https://github.com/rectorphp/rector.git",
"reference": "5b33bdd871895276e2c18e5410a4a57df9233ee0" "reference": "05755bf43617449c08ee8e50fb840c85ad3b1240"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/5b33bdd871895276e2c18e5410a4a57df9233ee0", "url": "https://api.github.com/repos/rectorphp/rector/zipball/05755bf43617449c08ee8e50fb840c85ad3b1240",
"reference": "5b33bdd871895276e2c18e5410a4a57df9233ee0", "reference": "05755bf43617449c08ee8e50fb840c85ad3b1240",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5377,7 +5377,7 @@
"keywords": ["automation", "dev", "migration", "refactoring"], "keywords": ["automation", "dev", "migration", "refactoring"],
"support": { "support": {
"issues": "https://github.com/rectorphp/rector/issues", "issues": "https://github.com/rectorphp/rector/issues",
"source": "https://github.com/rectorphp/rector/tree/1.2.7" "source": "https://github.com/rectorphp/rector/tree/1.2.8"
}, },
"funding": [ "funding": [
{ {
@ -5385,7 +5385,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-10-12T11:12:46+00:00" "time": "2024-10-18T11:54:27+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
@ -5545,16 +5545,16 @@
}, },
{ {
"name": "sebastian/comparator", "name": "sebastian/comparator",
"version": "5.0.2", "version": "5.0.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git", "url": "https://github.com/sebastianbergmann/comparator.git",
"reference": "2d3e04c3b4c1e84a5e7382221ad8883c8fbc4f53" "reference": "a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2d3e04c3b4c1e84a5e7382221ad8883c8fbc4f53", "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e",
"reference": "2d3e04c3b4c1e84a5e7382221ad8883c8fbc4f53", "reference": "a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5565,7 +5565,7 @@
"sebastian/exporter": "^5.0" "sebastian/exporter": "^5.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^10.4" "phpunit/phpunit": "^10.5"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
@ -5602,7 +5602,7 @@
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/comparator/issues", "issues": "https://github.com/sebastianbergmann/comparator/issues",
"security": "https://github.com/sebastianbergmann/comparator/security/policy", "security": "https://github.com/sebastianbergmann/comparator/security/policy",
"source": "https://github.com/sebastianbergmann/comparator/tree/5.0.2" "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.3"
}, },
"funding": [ "funding": [
{ {
@ -5610,7 +5610,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-08-12T06:03:08+00:00" "time": "2024-10-18T14:56:07+00:00"
}, },
{ {
"name": "sebastian/complexity", "name": "sebastian/complexity",

View File

@ -4,7 +4,8 @@
<?php if (isset($captions)) : ?> <?php if (isset($captions)) : ?>
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-2">
<x-Button uri="<?= $transcript->file_url ?>" size="small" iconLeft="download" class="self-start" variant="secondary" target="_blank" download="" rel="noopener noreferrer"><?= lang('Episode.download_transcript', [ <?php // @icon('download-fill')?>
<x-Button uri="<?= $transcript->file_url ?>" size="small" iconLeft="download-fill" class="self-start" variant="secondary" target="_blank" download="" rel="noopener noreferrer"><?= lang('Episode.download_transcript', [
'extension' => '.' . $transcript->file_extension, 'extension' => '.' . $transcript->file_extension,
]) ?></x-Button> ]) ?></x-Button>
<?php <?php

View File

@ -4,7 +4,8 @@
<?php if (isset($captions)) : ?> <?php if (isset($captions)) : ?>
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-2">
<x-Button uri="<?= $transcript->file_url ?>" size="small" iconLeft="download" class="self-start" variant="secondary" target="_blank" download="" rel="noopener noreferrer"><?= lang('Episode.download_transcript', [ <?php // @icon('download-fill')?>
<x-Button uri="<?= $transcript->file_url ?>" size="small" iconLeft="download-fill" class="self-start" variant="secondary" target="_blank" download="" rel="noopener noreferrer"><?= lang('Episode.download_transcript', [
'extension' => '.' . $transcript->file_extension, 'extension' => '.' . $transcript->file_extension,
]) ?></x-Button> ]) ?></x-Button>
<?php <?php