fix: update php-icons to set default icons for platforms icons

This commit is contained in:
Yassine Doghri 2024-04-26 17:26:55 +00:00
parent 9b534b21cf
commit 381107a438
18 changed files with 156 additions and 132 deletions

View File

@ -156,20 +156,20 @@ if (! function_exists('publication_button')) {
$label = lang('Episode.publish');
$route = route_to('episode-publish', $podcastId, $episodeId);
$variant = 'primary';
$iconLeft = 'upload-cloud-fill';
$iconLeft = 'upload-cloud-fill'; // @icon('upload-cloud-fill')
break;
case 'with_podcast':
case 'scheduled':
$label = lang('Episode.publish_edit');
$route = route_to('episode-publish_edit', $podcastId, $episodeId);
$variant = 'warning';
$iconLeft = 'upload-cloud-fill';
$iconLeft = 'upload-cloud-fill'; // @icon('upload-cloud-fill')
break;
case 'published':
$label = lang('Episode.unpublish');
$route = route_to('episode-unpublish', $podcastId, $episodeId);
$variant = 'danger';
$iconLeft = 'cloud-off-fill';
$iconLeft = 'cloud-off-fill'; // @icon('cloud-off-fill')
break;
default:
$label = '';

View File

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
/**
* @icon('funding:buymeacoffee')
* @icon('funding:fosspay')
* @icon('funding:donorbox')
* @icon('funding:gofundme')
* @icon('funding:helloasso')
* @icon('funding:indiegogo')
* @icon('funding:kickstarter')
* @icon('funding:kisskissbankbank')
* @icon('funding:kofi')
* @icon('funding:liberapay')
* @icon('funding:patreon')
* @icon('funding:paypal')
* @icon('funding:tipeee')
* @icon('funding:ulule')
*/

View File

@ -1,4 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M16.455 10.658c0 1.09-.705 2.244-2.098 3.443a13.447 13.447 0 0 1-2.381 1.62 14.102 14.102 0 0 1-2.381-1.629c-1.4-1.2-2.106-2.353-2.106-3.443 0-1.346.887-2.298 2.106-2.298.558 0 .888.054 1.263.238.22.1.412.237.577.403l.541.55.532-.55a2.07 2.07 0 0 1 .586-.421c.366-.166.678-.22 1.254-.22 1.209.018 2.107.988 2.107 2.307Z" clip-rule="evenodd"/>
<path d="M22 3.915v16.17A1.911 1.911 0 0 1 20.085 22H3.915A1.911 1.911 0 0 1 2 20.085V3.915C2 2.855 2.854 2 3.915 2h8.066c.267 0 .503.107.68.282a.986.986 0 0 1 .281.68v2.807a.962.962 0 0 1-1.922 0V3.923H4.83a.919.919 0 0 0-.916.916v14.346c0 .51.413.915.916.915h14.346a.914.914 0 0 0 .916-.915V4.839a.942.942 0 0 0-.275-.649s-.214-.206-.48-.252c-.032-.008-.07-.008-.07-.008-.03 0-.061-.007-.09-.007h-2.504a.967.967 0 0 1-.96-.962c0-.526.434-.961.96-.961h3.41A1.907 1.907 0 0 1 22 3.915Z"/>
</svg>
<svg viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path d="M16.455 10.658c0 1.09-.705 2.244-2.098 3.443a13.447 13.447 0 0 1-2.381 1.62 14.102 14.102 0 0 1-2.381-1.629c-1.4-1.2-2.106-2.353-2.106-3.443 0-1.346.887-2.298 2.106-2.298.558 0 .888.054 1.263.238.22.1.412.237.577.403l.541.55.532-.55a2.07 2.07 0 0 1 .586-.421c.366-.166.678-.22 1.254-.22 1.209.018 2.107.988 2.107 2.307Z" clip-rule="evenodd"/><path d="M22 3.915v16.17A1.911 1.911 0 0 1 20.085 22H3.915A1.911 1.911 0 0 1 2 20.085V3.915C2 2.855 2.854 2 3.915 2h8.066c.267 0 .503.107.68.282a.986.986 0 0 1 .281.68v2.807a.962.962 0 0 1-1.922 0V3.923H4.83a.919.919 0 0 0-.916.916v14.346c0 .51.413.915.916.915h14.346a.914.914 0 0 0 .916-.915V4.839a.942.942 0 0 0-.275-.649s-.214-.206-.48-.252c-.032-.008-.07-.008-.07-.008-.03 0-.061-.007-.09-.007h-2.504a.967.967 0 0 1-.96-.962c0-.526.434-.961.96-.961h3.41A1.907 1.907 0 0 1 22 3.915Z"/></svg>

Before

Width:  |  Height:  |  Size: 913 B

After

Width:  |  Height:  |  Size: 915 B

View File

@ -0,0 +1,58 @@
<?php
declare(strict_types=1);
/**
* @icon('podcasting:amazon')
* @icon('podcasting:antennapod')
* @icon('podcasting:anytime')
* @icon('podcasting:apple')
* @icon('podcasting:blubrry')
* @icon('podcasting:breez')
* @icon('podcasting:castamatic')
* @icon('podcasting:castbox')
* @icon('podcasting:castcoverage')
* @icon('podcasting:castopod')
* @icon('podcasting:castro')
* @icon('podcasting:curiocaster')
* @icon('podcasting:deezer')
* @icon('podcasting:episodes-fm')
* @icon('podcasting:escapepod')
* @icon('podcasting:fountain')
* @icon('podcasting:fyyd')
* @icon('podcasting:gpodder')
* @icon('podcasting:hypercatcher')
* @icon('podcasting:ivoox')
* @icon('podcasting:ivyfm')
* @icon('podcasting:jumplink')
* @icon('podcasting:kasts')
* @icon('podcasting:listennotes')
* @icon('podcasting:overcast')
* @icon('podcasting:playapod')
* @icon('podcasting:playerfm')
* @icon('podcasting:plink')
* @icon('podcasting:pocketcasts')
* @icon('podcasting:podbean')
* @icon('podcasting:podcastaddict')
* @icon('podcasting:podcastchapters')
* @icon('podcasting:podcastguru')
* @icon('podcasting:podcastindex')
* @icon('podcasting:podchaser')
* @icon('podcasting:podcloud')
* @icon('podcasting:podfriend')
* @icon('podcasting:podinstall')
* @icon('podcasting:podlink')
* @icon('podcasting:podlp')
* @icon('podcasting:podnews')
* @icon('podcasting:podstation')
* @icon('podcasting:podtail')
* @icon('podcasting:podverse')
* @icon('podcasting:radiopublic')
* @icon('podcasting:sphinxchat')
* @icon('podcasting:spotify')
* @icon('podcasting:spreaker')
* @icon('podcasting:truefans')
* @icon('podcasting:tsacdop')
* @icon('podcasting:tunein')
* @icon('podcasting:youtube-music')
*/

View File

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path d="m0 0h24v24h-24z" fill="none"/><path d="m6.291 1.2265c0.1724 0.29294 0.0746 0.67011-0.2184 0.84243-1.026 0.60355-1.9514 1.2448-2.6918 2.0422-0.23126 0.24905-0.62064 0.26347-0.86969 0.03221s-0.26347-0.62064-0.03221-0.86969c0.85961-0.92574 1.9034-1.6383 2.9697-2.2655 0.293-0.17232 0.6701-0.07453 0.8424 0.21841zm2.6343 2.3859c0.3297-0.08243 0.5302-0.41654 0.4477-0.74626-0.0824-0.32972-0.4165-0.53019-0.7462-0.44776-2.9085 0.72713-5.2109 2.839-6.3269 5.5306-0.13018 0.3139 0.0188 0.6739 0.33275 0.8041s0.67399-0.0188 0.80416-0.3327c0.97629-2.3546 2.9816-4.1812 5.4885-4.808zm1.943 2.2338c-3.0588 0-5.5384 2.4796-5.5384 5.5384 0 2.8508 2.1539 5.1986 4.9231 5.5047v1.237c-3.4502-0.3109-6.1539-3.2105-6.1539-6.7417 0-3.7385 3.0307-6.7692 6.7692-6.7692 3.7386 0 6.7693 3.0307 6.7693 6.7692 0 3.0986-2.0819 5.7109-4.9231 6.5145v4.5625c0 0.3399-0.2755 0.6154-0.6154 0.6154-0.3387 0-0.6134-0.2736-0.6154-0.6118v-8.0652c1.4045-0.2851 2.4616-1.5268 2.4616-3.0154 0-1.6993-1.3776-3.0769-3.077-3.0769-1.6993 0-3.0769 1.3776-3.0769 3.0769 0 1.4886 1.0571 2.7303 2.4616 3.0154v1.2487c-2.0876-0.2986-3.6924-2.0939-3.6924-4.2641 0-2.379 1.9287-4.3076 4.3077-4.3076 2.3791 0 4.3077 1.9286 4.3077 4.3076 0 1.7184-1.0062 3.2018-2.4615 3.8932v1.3302c2.1511-0.7604 3.6923-2.8119 3.6923-5.2234 0-3.0588-2.4797-5.5384-5.5385-5.5384zm-8.2357 8.17c0.31395-0.1301 0.67399 0.0188 0.80416 0.3328 0.97629 2.3546 2.9816 4.1812 5.4885 4.8079 0.3297 0.0824 0.5302 0.4166 0.4477 0.7463-0.0824 0.3297-0.4165 0.5302-0.7462 0.4477-2.9085-0.7271-5.2109-2.8389-6.3269-5.5305-0.13018-0.3139 0.0188-0.674 0.33275-0.8042zm16.869-5.8755c-0.1262-0.3155-0.4843-0.469-0.7999-0.3428-0.3155 0.1262-0.469 0.4843-0.3428 0.7999 0.337 0.8425 0.5098 1.8101 0.5098 2.7868 0 0.9768-0.1728 1.9443-0.5098 2.7869-0.1262 0.3155 0.0273 0.6737 0.3428 0.7999 0.3156 0.1262 0.6737-0.0273 0.7999-0.3428 0.4015-1.0036 0.5979-2.1284 0.5979-3.244 0-1.1155-0.1964-2.2403-0.5979-3.2439zm-16.12 10.456c-0.23126-0.2491-0.62064-0.2635-0.86969-0.0322-0.24905 0.2312-0.26347 0.6206-0.03221 0.8697 0.85029 0.9157 1.8912 1.6952 2.9938 2.2789 0.3004 0.1591 0.6728 0.0445 0.8318-0.2559s0.0444-0.6728-0.2559-0.8318c-0.9897-0.5239-1.9181-1.2213-2.6678-2.0287zm18.427-9.2996c0.3373-0.0421 0.6448 0.1971 0.687 0.5343 0.0663 0.5305 0.0663 1.0551 0.0663 1.5366v0.0448c0 0.4748 1e-4 1.0318-0.1415 1.5981-0.0824 0.3297-0.4165 0.5302-0.7462 0.4477-0.3298-0.0824-0.5302-0.4165-0.4478-0.7462 0.1018-0.4071 0.1047-0.824 0.1047-1.3277 0-0.4985-8e-4 -0.9526-0.0568-1.4006-0.0421-0.3372 0.1971-0.6448 0.5343-0.687zm-9.0929 2.0875c0 1.0196-0.8266 1.8462-1.8462 1.8462-1.0196 0-1.8461-0.8266-1.8461-1.8462s0.8265-1.8461 1.8461-1.8461c1.0196 0 1.8462 0.8265 1.8462 1.8461z" /></svg>
<svg fill="currentColor" viewBox="0 0 24 24" width="1em" height="1em"><path fill="none" d="m0 0h24v24h-24z"/><path d="m6.291 1.2265c0.1724 0.29294 0.0746 0.67011-0.2184 0.84243-1.026 0.60355-1.9514 1.2448-2.6918 2.0422-0.23126 0.24905-0.62064 0.26347-0.86969 0.03221s-0.26347-0.62064-0.03221-0.86969c0.85961-0.92574 1.9034-1.6383 2.9697-2.2655 0.293-0.17232 0.6701-0.07453 0.8424 0.21841zm2.6343 2.3859c0.3297-0.08243 0.5302-0.41654 0.4477-0.74626-0.0824-0.32972-0.4165-0.53019-0.7462-0.44776-2.9085 0.72713-5.2109 2.839-6.3269 5.5306-0.13018 0.3139 0.0188 0.6739 0.33275 0.8041s0.67399-0.0188 0.80416-0.3327c0.97629-2.3546 2.9816-4.1812 5.4885-4.808zm1.943 2.2338c-3.0588 0-5.5384 2.4796-5.5384 5.5384 0 2.8508 2.1539 5.1986 4.9231 5.5047v1.237c-3.4502-0.3109-6.1539-3.2105-6.1539-6.7417 0-3.7385 3.0307-6.7692 6.7692-6.7692 3.7386 0 6.7693 3.0307 6.7693 6.7692 0 3.0986-2.0819 5.7109-4.9231 6.5145v4.5625c0 0.3399-0.2755 0.6154-0.6154 0.6154-0.3387 0-0.6134-0.2736-0.6154-0.6118v-8.0652c1.4045-0.2851 2.4616-1.5268 2.4616-3.0154 0-1.6993-1.3776-3.0769-3.077-3.0769-1.6993 0-3.0769 1.3776-3.0769 3.0769 0 1.4886 1.0571 2.7303 2.4616 3.0154v1.2487c-2.0876-0.2986-3.6924-2.0939-3.6924-4.2641 0-2.379 1.9287-4.3076 4.3077-4.3076 2.3791 0 4.3077 1.9286 4.3077 4.3076 0 1.7184-1.0062 3.2018-2.4615 3.8932v1.3302c2.1511-0.7604 3.6923-2.8119 3.6923-5.2234 0-3.0588-2.4797-5.5384-5.5385-5.5384zm-8.2357 8.17c0.31395-0.1301 0.67399 0.0188 0.80416 0.3328 0.97629 2.3546 2.9816 4.1812 5.4885 4.8079 0.3297 0.0824 0.5302 0.4166 0.4477 0.7463-0.0824 0.3297-0.4165 0.5302-0.7462 0.4477-2.9085-0.7271-5.2109-2.8389-6.3269-5.5305-0.13018-0.3139 0.0188-0.674 0.33275-0.8042zm16.869-5.8755c-0.1262-0.3155-0.4843-0.469-0.7999-0.3428-0.3155 0.1262-0.469 0.4843-0.3428 0.7999 0.337 0.8425 0.5098 1.8101 0.5098 2.7868 0 0.9768-0.1728 1.9443-0.5098 2.7869-0.1262 0.3155 0.0273 0.6737 0.3428 0.7999 0.3156 0.1262 0.6737-0.0273 0.7999-0.3428 0.4015-1.0036 0.5979-2.1284 0.5979-3.244 0-1.1155-0.1964-2.2403-0.5979-3.2439zm-16.12 10.456c-0.23126-0.2491-0.62064-0.2635-0.86969-0.0322-0.24905 0.2312-0.26347 0.6206-0.03221 0.8697 0.85029 0.9157 1.8912 1.6952 2.9938 2.2789 0.3004 0.1591 0.6728 0.0445 0.8318-0.2559s0.0444-0.6728-0.2559-0.8318c-0.9897-0.5239-1.9181-1.2213-2.6678-2.0287zm18.427-9.2996c0.3373-0.0421 0.6448 0.1971 0.687 0.5343 0.0663 0.5305 0.0663 1.0551 0.0663 1.5366v0.0448c0 0.4748 1e-4 1.0318-0.1415 1.5981-0.0824 0.3297-0.4165 0.5302-0.7462 0.4477-0.3298-0.0824-0.5302-0.4165-0.4478-0.7462 0.1018-0.4071 0.1047-0.824 0.1047-1.3277 0-0.4985-8e-4 -0.9526-0.0568-1.4006-0.0421-0.3372 0.1971-0.6448 0.5343-0.687zm-9.0929 2.0875c0 1.0196-0.8266 1.8462-1.8462 1.8462-1.0196 0-1.8461-0.8266-1.8461-1.8462s0.8265-1.8461 1.8461-1.8461c1.0196 0 1.8462 0.8265 1.8462 1.8461z"/></svg>

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path d="M8.503 2.111q1.56-.873 3.49-.873 1.931 0 3.491.867a6.32 6.32 0 0 1 2.447 2.393q.885 1.527.885 3.404 0 1.88-.885 3.406a6.32 6.32 0 0 1-2.447 2.393q-1.56.866-3.49.866-1.931 0-3.491-.872a6.338 6.338 0 0 1-2.44-2.393q-.88-1.523-.88-3.399 0-1.876.88-3.399a6.338 6.338 0 0 1 2.44-2.393m6.335 2.87Q13.7 3.842 11.994 3.842T9.16 4.98Q8.028 6.118 8.028 7.903q0 1.785 1.13 2.922 1.132 1.138 2.836 1.138 1.705 0 2.844-1.138 1.138-1.137 1.137-2.922 0-1.785-1.137-2.923M6.333 23.032H3.326a8.367 8.367 0 0 1 2.356-4.52 8.487 8.487 0 0 1 1.797-1.338 8.672 8.672 0 0 1 2.136-.846 10.185 10.185 0 0 1 4.752-.002 8.733 8.733 0 0 1 2.138.84 8.303 8.303 0 0 1 1.799 1.333 8.395 8.395 0 0 1 2.37 4.533h-3.009a5.535 5.535 0 0 0-.55-1.308 5.48 5.48 0 0 0-2.11-2.064c-.893-.496-1.906-.747-3.01-.747s-2.119.253-3.012.753a5.489 5.489 0 0 0-2.104 2.063 5.535 5.535 0 0 0-.546 1.302"/></svg>
<svg fill="currentColor" viewBox="0 0 24 24" width="1em" height="1em"><path d="M8.503 2.111q1.56-.873 3.49-.873 1.931 0 3.491.867a6.32 6.32 0 0 1 2.447 2.393q.885 1.527.885 3.404 0 1.88-.885 3.406a6.32 6.32 0 0 1-2.447 2.393q-1.56.866-3.49.866-1.931 0-3.491-.872a6.338 6.338 0 0 1-2.44-2.393q-.88-1.523-.88-3.399 0-1.876.88-3.399a6.338 6.338 0 0 1 2.44-2.393m6.335 2.87Q13.7 3.842 11.994 3.842T9.16 4.98Q8.028 6.118 8.028 7.903q0 1.785 1.13 2.922 1.132 1.138 2.836 1.138 1.705 0 2.844-1.138 1.138-1.137 1.137-2.922 0-1.785-1.137-2.923M6.333 23.032H3.326a8.367 8.367 0 0 1 2.356-4.52 8.487 8.487 0 0 1 1.797-1.338 8.672 8.672 0 0 1 2.136-.846 10.185 10.185 0 0 1 4.752-.002 8.733 8.733 0 0 1 2.138.84 8.303 8.303 0 0 1 1.799 1.333 8.395 8.395 0 0 1 2.37 4.533h-3.009a5.535 5.535 0 0 0-.55-1.308 5.48 5.48 0 0 0-2.11-2.064c-.893-.496-1.906-.747-3.01-.747s-2.119.253-3.012.753a5.489 5.489 0 0 0-2.104 2.063 5.535 5.535 0 0 0-.546 1.302"/></svg>

Before

Width:  |  Height:  |  Size: 951 B

After

Width:  |  Height:  |  Size: 941 B

View File

@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
/**
* @icon('social:bluesky')
* @icon('social:discord')
* @icon('social:facebook')
* @icon('social:funkwhale')
* @icon('social:instagram')
* @icon('social:linkedin')
* @icon('social:mastodon')
* @icon('social:matrix')
* @icon('social:misskey')
* @icon('social:mobilizon')
* @icon('social:peertube')
* @icon('social:pixelfed')
* @icon('social:pleroma')
* @icon('social:plume')
* @icon('social:slack')
* @icon('social:telegram')
* @icon('social:threads')
* @icon('social:tiktok')
* @icon('social:twitch')
* @icon('social:writefreely')
* @icon('social:x')
* @icon('social:youtube')
*/

View File

@ -1,3 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
<path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19c-.14.75-.42 1-.68 1.03c-.58.05-1.02-.38-1.58-.75c-.88-.58-1.38-.94-2.23-1.5c-.99-.65-.35-1.01.22-1.59c.15-.15 2.71-2.48 2.76-2.69a.2.2 0 0 0-.05-.18c-.06-.05-.14-.03-.21-.02c-.09.02-1.49.95-4.22 2.79c-.4.27-.76.41-1.08.4c-.36-.01-1.04-.2-1.55-.37c-.63-.2-1.12-.31-1.08-.66c.02-.18.27-.36.74-.55c2.92-1.27 4.86-2.11 5.83-2.51c2.78-1.16 3.35-1.36 3.73-1.36c.08 0 .27.02.39.12c.1.08.13.19.14.27c-.01.06.01.24 0 .38" />
</svg>
<svg viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19c-.14.75-.42 1-.68 1.03c-.58.05-1.02-.38-1.58-.75c-.88-.58-1.38-.94-2.23-1.5c-.99-.65-.35-1.01.22-1.59c.15-.15 2.71-2.48 2.76-2.69a.2.2 0 0 0-.05-.18c-.06-.05-.14-.03-.21-.02c-.09.02-1.49.95-4.22 2.79c-.4.27-.76.41-1.08.4c-.36-.01-1.04-.2-1.55-.37c-.63-.2-1.12-.31-1.08-.66c.02-.18.27-.36.74-.55c2.92-1.27 4.86-2.11 5.83-2.51c2.78-1.16 3.35-1.36 3.73-1.36c.08 0 .27.02.39.12c.1.08.13.19.14.27c-.01.06.01.24 0 .38"/></svg>

Before

Width:  |  Height:  |  Size: 641 B

After

Width:  |  Height:  |  Size: 622 B

View File

@ -63,13 +63,15 @@
"style": "vendor/bin/ecs check --ansi",
"style:fix": "vendor/bin/ecs check --fix --ansi",
"generate:auth-docs": "php spark auth:generate-docs",
"php-icons": "vendor/bin/php-icons scan",
"post-install-cmd": [
"@php vendor/opawg/user-agents-v2-php/src/UserAgentsGenerate.php > vendor/opawg/user-agents-v2-php/src/UserAgents.php",
"@php vendor/opawg/user-agents-v2-php/src/UserAgentsRSSGenerate.php > vendor/opawg/user-agents-v2-php/src/UserAgentsRSS.php",
"@php vendor/adaures/ipcat-php/src/IpDbGenerate.php > vendor/adaures/ipcat-php/src/IpDb.php",
"@php vendor/adaures/podcast-persons-taxonomy/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > modules/Admin/Language/en/PersonsTaxonomy.php",
"@php vendor/adaures/podcast-persons-taxonomy/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-fr.json > modules/Admin/Language/fr/PersonsTaxonomy.php",
"@php vendor/adaures/podcast-persons-taxonomy/src/ReversedTaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > vendor/adaures/podcast-persons-taxonomy/src/ReversedTaxonomy.php"
"@php vendor/adaures/podcast-persons-taxonomy/src/ReversedTaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > vendor/adaures/podcast-persons-taxonomy/src/ReversedTaxonomy.php",
"vendor/bin/php-icons init && vendor/bin/php-icons scan"
],
"post-update-cmd": [
"@composer dump-autoload",
@ -78,7 +80,8 @@
"@php vendor/adaures/ipcat-php/src/IpDbGenerate.php > vendor/adaures/ipcat-php/src/IpDb.php",
"@php vendor/adaures/podcast-persons-taxonomy/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > modules/Admin/Language/en/PersonsTaxonomy.php",
"@php vendor/adaures/podcast-persons-taxonomy/src/TaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-fr.json > modules/Admin/Language/fr/PersonsTaxonomy.php",
"@php vendor/adaures/podcast-persons-taxonomy/src/ReversedTaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > vendor/adaures/podcast-persons-taxonomy/src/ReversedTaxonomy.php"
"@php vendor/adaures/podcast-persons-taxonomy/src/ReversedTaxonomyGenerate.php https://raw.githubusercontent.com/Podcastindex-org/podcast-namespace/main/taxonomy-en.json > vendor/adaures/podcast-persons-taxonomy/src/ReversedTaxonomy.php",
"vendor/bin/php-icons init && vendor/bin/php-icons scan"
]
},
"support": {

14
composer.lock generated
View File

@ -3341,23 +3341,23 @@
"source": {
"type": "git",
"url": "https://github.com/yassinedoghri/php-icons.git",
"reference": "d3713f7a902997912a309de2d594fb61abb9d351"
"reference": "976acbd9564f5ba13b11f4086c59b007a9374a4e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yassinedoghri/php-icons/zipball/d3713f7a902997912a309de2d594fb61abb9d351",
"reference": "d3713f7a902997912a309de2d594fb61abb9d351",
"url": "https://api.github.com/repos/yassinedoghri/php-icons/zipball/976acbd9564f5ba13b11f4086c59b007a9374a4e",
"reference": "976acbd9564f5ba13b11f4086c59b007a9374a4e",
"shasum": ""
},
"require": {
"adhocore/cli": "^v1.0",
"adhocore/cli": "^v1.7.1",
"composer-runtime-api": "^2.2",
"nikic/php-parser": "^v4.0",
"php": ">=8.1"
},
"require-dev": {
"kint-php/kint": "^5.1.0",
"phpstan/phpstan": "^1.10.66",
"kint-php/kint": "^5.1.1",
"phpstan/phpstan": "^1.10.67",
"rector/rector": "^1.0.4",
"symplify/coding-standard": "^12.1.4",
"symplify/easy-coding-standard": "^12.1.14"
@ -3385,7 +3385,7 @@
"issues": "https://github.com/yassinedoghri/php-icons/issues",
"source": "https://github.com/yassinedoghri/php-icons/tree/develop"
},
"time": "2024-04-09T22:04:14+00:00"
"time": "2024-04-26T15:47:20+00:00"
},
{
"name": "yassinedoghri/podcast-feed",

View File

@ -11,5 +11,10 @@ return PHPIconsConfig::configure()
'podcasting' => __DIR__ . '/app/Resources/icons/podcasting',
'social' => __DIR__ . '/app/Resources/icons/social',
])
->withDefaultIconPerSet([
'funding' => 'funding:default',
'podcasting' => 'podcasting:default',
'social' => 'social:default',
])
->withDefaultPrefix('ri')
->withPlaceholder('<27>');

View File

@ -36,11 +36,13 @@ $embedHeight = config(Embed::class)->height;
<div class="flex items-center mt-8 gap-x-2">
<Forms.Textarea readonly="true" class="w-full max-w-xl" name="iframe" rows="2" value="<?= esc("<iframe width=\"100%\" height=\"{$embedHeight}\" frameborder=\"0\" scrolling=\"no\" style=\"width: 100%; height: {$embedHeight}px; overflow: hidden;\" src=\"{$episode->embed_url}\"></iframe>") ?>" />
<?php // @icon('file-copy-fill')?>
<IconButton glyph="file-copy-fill" data-type="clipboard-copy" data-clipboard-target="iframe"><?= lang('Episode.embed.clipboard_iframe') ?></IconButton>
</div>
<div class="flex items-center mt-4 gap-x-2">
<Forms.Input readonly="true" class="w-full max-w-xl" name="url" value="<?= esc($episode->embed_url) ?>" />
<?php // @icon('file-copy-fill')?>
<IconButton glyph="file-copy-fill" data-type="clipboard-copy" data-clipboard-target="url"><?= lang('Episode.embed.clipboard_url') ?></IconButton>
</div>

View File

@ -35,12 +35,12 @@ use CodeIgniter\I18n\Time;
];
$pillIconMap = [
'queued' => 'timer-fill',
'pending' => 'pause-fill',
'running' => 'loader-fill',
'canceled' => 'forbid-fill',
'failed' => 'close-fill',
'passed' => 'check-fill',
'queued' => 'timer-fill', // @icon('timer-fill')
'pending' => 'pause-fill', // @icon('pause-fill')
'running' => 'loader-fill', // @icon('loader-fill')
'canceled' => 'forbid-fill', // @icon('forbid-fill')
'failed' => 'close-fill', // @icon('close-fill')
'passed' => 'check-fill', // @icon('check-fill')
];
$pillIconClassMap = [
@ -97,6 +97,7 @@ use CodeIgniter\I18n\Time;
if ($videoClip->media) {
helper('misc');
$filename = 'clip-' . slugify($videoClip->title) . "-{$videoClip->start_time}-{$videoClip->end_time}";
// @icon('import-fill')
$downloadButton = '<IconButton glyph="import-fill" uri="' . $videoClip->media->file_url . '" download="' . $filename . '">' . lang('VideoClip.download_clip') . '</IconButton>';
}

View File

@ -21,12 +21,12 @@ use Modules\PodcastImport\Entities\TaskStatus;
];
$pillIconMap = [
'queued' => 'timer-fill',
'pending' => 'pause-fill',
'running' => 'loader-fill',
'canceled' => 'forbid-fill',
'failed' => 'close-fill',
'passed' => 'check-fill',
'queued' => 'timer-fill', // @icon('timer-fill')
'pending' => 'pause-fill', // @icon('pause-fill')
'running' => 'loader-fill', // @icon('loader-fill')
'canceled' => 'forbid-fill', // @icon('forbid-fill')
'failed' => 'close-fill', // @icon('close-fill')
'passed' => 'check-fill', // @icon('check-fill')
];
$pillIconClassMap = [

View File

@ -6,7 +6,9 @@
$platform->type,
$platform->slug,
),
icon('delete-bin', 'mx-auto'),
icon('delete-bin-fill', [
'class' => 'mx-auto',
]),
[
'class' => 'absolute right-0 top-0 -mt-4 -mr-4 p-2 border-red-700 border-2 bg-red-100 rounded-full text-red-700 hover:text-red-900',
'data-tooltip' => 'bottom',
@ -18,9 +20,10 @@
: '' ?>
<div class="flex items-center gap-x-2">
<?= icon(
esc($platform->slug),
'text-skin-muted text-4xl',
$platform->type
sprintf('%s:%s', $platform->type, $platform->slug),
[
'class' => 'text-skin-muted text-4xl',
],
) ?>
<h2 class="text-xl font-semibold"><?= $platform->label ?></h2>
</div>

View File

@ -1,92 +1,3 @@
<?php
/**
* @icon('podcasting:amazon')
* @icon('podcasting:antennapod')
* @icon('podcasting:apple')
* @icon('podcasting:blubrry')
* @icon('podcasting:castbox')
* @icon('podcasting:castopod')
* @icon('podcasting:castro')
* @icon('podcasting:deezer')
* @icon('podcasting:fyyd')
* @icon('podcasting:ivoox')
* @icon('podcasting:listennotes')
* @icon('podcasting:overcast')
* @icon('podcasting:playerfm')
* @icon('podcasting:pocketcasts')
* @icon('podcasting:podbean')
* @icon('podcasting:podcastaddict')
* @icon('podcasting:podcastindex')
* @icon('podcasting:podchaser')
* @icon('podcasting:podcloud')
* @icon('podcasting:podinstall')
* @icon('podcasting:podlink')
* @icon('podcasting:podtail')
* @icon('podcasting:podfriend')
* @icon('podcasting:podverse')
* @icon('podcasting:radiopublic')
* @icon('podcasting:spotify')
* @icon('podcasting:spreaker')
* @icon('podcasting:tunein')
* @icon('podcasting:anytime')
* @icon('podcasting:breez')
* @icon('podcasting:castamatic')
* @icon('podcasting:castcoverage')
* @icon('podcasting:curiocaster')
* @icon('podcasting:escapepod')
* @icon('podcasting:fountain')
* @icon('podcasting:gpodder')
* @icon('podcasting:hypercatcher')
* @icon('podcasting:ivyfm')
* @icon('podcasting:jumplink')
* @icon('podcasting:kasts')
* @icon('podcasting:playapod')
* @icon('podcasting:plink')
* @icon('podcasting:podcastchapters')
* @icon('podcasting:podcastguru')
* @icon('podcasting:podlp')
* @icon('podcasting:podnews')
* @icon('podcasting:podstation')
* @icon('podcasting:sphinxchat')
* @icon('podcasting:tsacdop')
* @icon('podcasting:youtube-music')
* @icon('funding:buymeacoffee')
* @icon('funding:paypal')
* @icon('funding:fosspay')
* @icon('funding:gofundme')
* @icon('funding:helloasso')
* @icon('funding:indiegogo')
* @icon('funding:kickstarter')
* @icon('funding:kisskissbankbank')
* @icon('funding:kofi')
* @icon('funding:liberapay')
* @icon('funding:patreon')
* @icon('funding:tipeee')
* @icon('funding:ulule')
* @icon('social:bluesky')
* @icon('social:discord')
* @icon('social:facebook')
* @icon('social:funkwhale')
* @icon('social:instagram')
* @icon('social:linkedin')
* @icon('social:mastodon')
* @icon('social:matrix')
* @icon('social:misskey')
* @icon('social:mobilizon')
* @icon('social:peertube')
* @icon('social:pixelfed')
* @icon('social:pleroma')
* @icon('social:plume')
* @icon('social:slack')
* @icon('social:threads')
* @icon('social:tiktok')
* @icon('social:twitch')
* @icon('social:writefreely')
* @icon('social:youtube')
* @icon('social:x')
*/
?>
<?= $this->extend('_layout') ?>
<?= $this->section('title') ?>

View File

@ -40,11 +40,7 @@
<?php if ($podcastingPlatform->is_visible): ?>
<?= anchor(
esc($podcastingPlatform->link_url),
icon(
esc($podcastingPlatform->slug),
'',
$podcastingPlatform->type
),
icon(sprintf('%s:%s', $podcastingPlatform->type, $podcastingPlatform->slug)),
[
'class' => 'text-2xl text-skin-muted hover:text-skin-base w-8 h-8 items-center inline-flex justify-center',
'target' => '_blank',

View File

@ -5,7 +5,9 @@
<a href="<?= route_to('podcast-activity', esc($podcast->handle)) ?>"
class="inline-flex items-center px-4 py-2 text-sm focus:ring-accent"><?= icon(
'arrow-left-line',
'mr-2 text-lg',
[
'class' => 'mr-2 text-lg',
],
) .
lang('Post.back_to_actor_posts', [
'actor' => esc($post->actor->display_name),