-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: kirby 3.6 alpha * chore: updated setup * feat: new panel moderation view * fix: removed dublicate from blueprint * chore: editor configs * improvement: moderation view * chore: new comment listing * improvement: backward compatibility to k3.5
- Loading branch information
1 parent
b5db28b
commit 9703324
Showing
436 changed files
with
2,703 additions
and
8,590 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[*.{css,scss,less,js,json,ts,sass,html,hbs,mustache,phtml,html.twig,md,yml}] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
indent_size = 4 | ||
trim_trailing_whitespace = false | ||
|
||
[site/templates/**.php] | ||
indent_size = 2 | ||
|
||
[site/snippets/**.php] | ||
indent_size = 2 | ||
|
||
[package.json,.{babelrc,editorconfig,eslintrc,lintstagedrc,stylelintrc}] | ||
indent_style = space | ||
indent_size = 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"endOfLine": "lf", | ||
"semi": false, | ||
"tabWidth": 4, | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"eslintIntegration": false, | ||
"tslintIntegration": true, | ||
"printWidth": 120, | ||
"tslint.packageManager": "yarn", | ||
"npm.packageManager": "yarn", | ||
"prettier.tslintIntegration": true | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace mauricerenck\Komments; | ||
|
||
return [ | ||
'komments' => function ($kirby) { | ||
return [ | ||
'label' => 'Komments', | ||
'icon' => 'chat', | ||
'menu' => true, | ||
'link' => 'komments', | ||
'views' => [ | ||
[ | ||
'pattern' => 'komments', | ||
'action' => function () { | ||
return [ | ||
'component' => 'k-komments-view', | ||
'title' => 'Komments', | ||
'props' => [ | ||
'queuedKomments' => function () { | ||
$kommentUtils = new KommentBaseUtils(); | ||
return $kommentUtils->getPendingKomments(); | ||
}, | ||
'version' => function () { | ||
$kommentUtils = new KommentBaseUtils(); | ||
return $kommentUtils->getPluginVersion(); | ||
} | ||
], | ||
]; | ||
} | ||
] | ||
] | ||
]; | ||
} | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace mauricerenck\Komments; | ||
|
||
return [ | ||
'kommentType' => [ | ||
'props' => [ | ||
] | ||
], | ||
'kommentsPending' => [ | ||
'props' => [ | ||
'queuedComments' => function () { | ||
$kommentUtils = new KommentBaseUtils(); | ||
$pendingComments = $kommentUtils->getPendingKomments(); | ||
return count($pendingComments); | ||
}, | ||
] | ||
], | ||
'komments' => [ | ||
'props' => [ | ||
'queuedComments' => function () { | ||
$kommentUtils = new KommentBaseUtils(); | ||
return $kommentUtils->getPendingKomments(); | ||
}, | ||
'version' => function () { | ||
$kommentUtils = new KommentBaseUtils(); | ||
return $kommentUtils->getPluginVersion(); | ||
} | ||
] | ||
] | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
{ | ||
"name": "mauricerenck/komments", | ||
"version": "0.10.5", | ||
"description": "A comment and webmention plugin for Kirby 3", | ||
"type": "kirby-plugin", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Maurice Renck", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"mauricerenck\\Komments\\": "utils/" | ||
"name": "mauricerenck/komments", | ||
"version": "1.0.0", | ||
"description": "A comment and webmention plugin for Kirby 3", | ||
"type": "kirby-plugin", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Maurice Renck", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"mauricerenck\\Komments\\": "utils/" | ||
}, | ||
"classmap": [ | ||
"utils" | ||
] | ||
}, | ||
"classmap": [ | ||
"utils" | ||
] | ||
}, | ||
"require-dev": { | ||
"getkirby/cms": "^3.5" | ||
}, | ||
"require": { | ||
"getkirby/composer-installer": "^1.1", | ||
"indieweb/mention-client": "^1.2" | ||
}, | ||
"config": { | ||
"optimize-autoloader": true | ||
}, | ||
"scripts": { | ||
"test": "vendor/bin/phpunit --testdox tests", | ||
"build-test-package": "git archive HEAD -o komments.zip --worktree-attributes", | ||
"build-composer": "composer install --no-dev --optimize-autoloader" | ||
} | ||
"require-dev": { | ||
"getkirby/cms": "^3.6" | ||
}, | ||
"require": { | ||
"getkirby/composer-installer": "^1.1", | ||
"indieweb/mention-client": "^1.2", | ||
"php": ">=7.3.0 <8.1.0" | ||
}, | ||
"config": { | ||
"optimize-autoloader": true | ||
}, | ||
"scripts": { | ||
"test": "vendor/bin/phpunit --testdox tests", | ||
"build-test-package": "git archive HEAD -o komments.zip --worktree-attributes", | ||
"build-composer": "composer install --no-dev --optimize-autoloader" | ||
}, | ||
"minimum-stability": "dev" | ||
} |
Oops, something went wrong.