This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dynamic blueprint created by | |
# https://github.com/bnomei/kirby-blueprints/blob/main/tests/site/plugins/test/models/DynamoPage.php | |
tabs: | |
content: | |
label: content | |
columns: | |
1cc126088d78eaf06256bd94b2696c26: | |
width: 1/2 | |
sticky: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Kirby\CLI\CLI; | |
use Kirby\Cms\Page; | |
return [ | |
'description' => 'Find duplicate Uuids', | |
'args' => [], | |
'command' => static function (CLI $cli): void { | |
// 1) find uuids and their pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query($userLogin: String!) { | |
user(login: $userLogin) { | |
repositories(affiliations: [OWNER], last: 100, privacy:PUBLIC) { | |
edges { | |
node { | |
url | |
issues(states: [OPEN], last: 100) { | |
edges { | |
node { | |
createdAt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// add this to 'pageMethods' in a plugin | |
'intellisense' => function () { | |
// $page->intellisense() | |
return implode(PHP_EOL, array_merge(['/**'], array_map(function($key) { | |
return " * @method \Kirby\Cms\Field {$key}()"; | |
}, array_keys($this->blueprint()->fields())), [' */'])); | |
}, |