No content at this moment.
9 | {/if} 10 |composer require {$addon->github->masterComposer->name}
15 | 15 | No release at this moment. 16 | Try to create first one. 17 |
18 |4 | Is this addon outdated? Did you find an issue? Please report it. 5 |
6 |{$addon->github->description|truncate:150|striptags|emojify|noescape}
3 | -------------------------------------------------------------------------------- /app/modules/Front/Base/Controls/AddonList/IAddonListFactory.php: -------------------------------------------------------------------------------- 1 | template->setParameters(['addon' => $addon, 'linkToGitHub' => $linkToGitHub, 'inverseTag' => $inverseTag]); 16 | if ($github = $addon->github) { 17 | /** @var GithubRelease|null $release */ 18 | $release = $github->releases->get()->orderBy(['crawledAt' => ICollection::DESC])->fetch(); 19 | $this->template->setParameters(['release' => $release]); 20 | } else { 21 | $this->template->setParameters(['release' => null]); 22 | } 23 | $this->template->render(); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /app/modules/Front/Base/Controls/AddonList/Name/ControlFactory.php: -------------------------------------------------------------------------------- 1 | nameControlFactory = $controlFactory; 13 | } 14 | 15 | public function getNameComponent(): Control 16 | { 17 | return $this['name']; 18 | } 19 | 20 | protected function createComponentName(): Control 21 | { 22 | return $this->nameControlFactory->create(); 23 | } 24 | 25 | protected function attachComponentName(Control $component): void 26 | { 27 | $this->addComponent($component, 'name'); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /app/modules/Front/Base/Controls/AddonList/Name/templates/default.latte: -------------------------------------------------------------------------------- 1 | {varType App\Model\Database\ORM\Addon\Addon $addon} 2 | {varType App\Model\Database\ORM\GithubRelease\GithubRelease|null $release} 3 | {varType bool $linkToGitHub} 4 | {varType bool $inverseTag} 5 |No package found.
13 | {/if} 14 | -------------------------------------------------------------------------------- /app/modules/Front/Base/Controls/AddonList/templates/list.latte: -------------------------------------------------------------------------------- 1 | {varType Nextras\Orm\Collection\ICollection|array $addons} 2 | {varType string|null $title} 3 | {if count($addons)} 4 |No package found.
29 | {/if} 30 | -------------------------------------------------------------------------------- /app/modules/Front/Base/Controls/AddonMeta/AddonMeta.php: -------------------------------------------------------------------------------- 1 | template->addon = $addon; 14 | $this->template->setFile(__DIR__ . '/templates/full.latte'); 15 | $this->template->render(); 16 | } 17 | 18 | public function renderShort(Addon $addon): void 19 | { 20 | $this->template->addon = $addon; 21 | $this->template->setFile(__DIR__ . '/templates/short.latte'); 22 | $this->template->render(); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /app/modules/Front/Base/Controls/AddonMeta/IAddonMetaFactory.php: -------------------------------------------------------------------------------- 1 | 'bg-red-100 border-red-400 text-red-700', 12 | 'info' => 'bg-teal-100 border-teal-400 text-teal-700', 13 | 'warning' => 'bg-orange-100 border-orange-400 text-orange-700', 14 | ]; 15 | 16 | public function render(): void 17 | { 18 | $this->template 19 | ->setParameters(['flashMessages' => $this->presenter->getFlashSession()->offsetGet('flash') ?? []]) 20 | ->render(__DIR__ . '/templates/default.latte'); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /app/modules/Front/Base/Controls/FlashMessages/ControlFactory.php: -------------------------------------------------------------------------------- 1 | flashMessagesControlFactory = $controlFactory; 13 | } 14 | 15 | public function getFlashMessagesComponent(): Control 16 | { 17 | return $this['flashMessages']; 18 | } 19 | 20 | protected function createComponentFlashMessages(): Control 21 | { 22 | return $this->flashMessagesControlFactory->create(); 23 | } 24 | 25 | protected function attachComponentFlashMessages(Control $component): void 26 | { 27 | $this->addComponent($component, 'flashMessages'); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /app/modules/Front/Base/Controls/FlashMessages/templates/default.latte: -------------------------------------------------------------------------------- 1 | {varType \stdClass[] $flashMessages} 2 |5 | The latest news, articles, and resources, sent to your inbox weekly. 6 |
7 | {form form, class => 'mt-4 sm:flex sm:max-w-md'} 8 | {input App\Modules\Front\Base\Controls\Layout\Footer\SubscribeForm\Factory::EMAIL, class => 'appearance-none w-full px-5 py-2 border border-gray-300 text-base leading-6 rounded text-gray-900 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 transition duration-150 ease-in-out'} 9 |8 | Addons, plugins and components for Nette Framework. 9 |
10 |12 | {$article->getDescription()|truncate:363} 13 |
14 |You do not have permission to view this page. Please try contact the web site administrator if you believe you should be able to view this page.
6 | 7 |8 | error 403 9 |
10 |6 | Oh no! We couldn't find the page you were looking for. 7 |
8 |The requested method is not allowed for the URL.
6 | 7 |8 | error 405 9 |
10 |The page you requested has been taken off the site. We apologize for the inconvenience.
6 | 7 |8 | error 410 9 |
10 |Your browser sent a request that this server could not understand or process.
6 |We're sorry! The server encountered an internal error and 18 | was unable to complete your request. Please try again later.
19 | 20 |error 500
21 |The site is temporarily down for maintenance. Please try again in a few minutes.
23 | 24 | getByType(Nette\Application\Application::class)->run(); 9 | -------------------------------------------------------------------------------- /www/robots.txt: -------------------------------------------------------------------------------- 1 | # Componette 2 | Sitemap: https://componette.org/sitemap.xml 3 | -------------------------------------------------------------------------------- /www/security.txt: -------------------------------------------------------------------------------- 1 | # Welcome cyber security guys! 2 | 3 | # Email 4 | Contact: https://f3l1x.io 5 | 6 | # Twitter 7 | Contact: https://twitter.com/xf3l1x 8 | --------------------------------------------------------------------------------