Skip to content

Commit

Permalink
📝 app as kirby
Browse files Browse the repository at this point in the history
📝 fixed typo
  • Loading branch information
bnomei committed Aug 23, 2021
1 parent f11d082 commit a022131
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-plopfile",
"type": "kirby-plugin",
"version": "1.0.3",
"version": "1.0.4",
"description": "Plopfile to generate and append to various files for Kirby3 CMS using Plop.js",
"license": "MIT",
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion src/controller.php.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

{{#if options.declareStrictTypes}}
declare(strict_types=1);

{{/if}}
{{#if options.typeHintCoreObjects}}
use Kirby\Cms\App;
use Kirby\Cms\App as Kirby;
use Kirby\Cms\Page;
use Kirby\Cms\Site;

Expand Down
2 changes: 1 addition & 1 deletion src/model.php.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
declare(strict_types=1);

{{/if}}
use Kirby\Cms\App;
use Kirby\Cms\App as Kirby;
use Kirby\Cms\Page;
use Kirby\Cms\Site;

Expand Down
3 changes: 3 additions & 0 deletions src/plugin.index.php.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

{{#if options.declareStrictTypes }}
declare(strict_types=1);

Expand All @@ -17,6 +18,8 @@ class_alias('{{{ repository }}}\\FooBar', 'FooBar');
// @PLOP_EXT_CLASS_ALIAS
{{/if}}

use Kirby\Cms\App as Kirby;

Kirby::plugin('{{{toLowerCase user }}}/{{{toLowerCase repository }}}', [
{{#if extensions.option }}
'options' => [
Expand Down
2 changes: 1 addition & 1 deletion src/utils/choices.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ module.exports.controller = function (checked = false) {

module.exports.field = function (checked = false) {
return {
name: "Fielda",
name: "Field",
value: "field",
checked: checked,
};
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php return array(
'root' => array(
'pretty_version' => '1.0.3',
'version' => '1.0.3.0',
'pretty_version' => '1.0.4',
'version' => '1.0.4.0',
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -11,8 +11,8 @@
),
'versions' => array(
'bnomei/kirby3-plopfile' => array(
'pretty_version' => '1.0.3',
'version' => '1.0.3.0',
'pretty_version' => '1.0.4',
'version' => '1.0.4.0',
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down

0 comments on commit a022131

Please sign in to comment.