Compare commits

...

14 commits
v0.1 ... master

Author SHA1 Message Date
JcDenis
9a3ae92f84 Update dcstore.xml 2025-01-11 12:18:29 +00:00
621c94b456
release 0.5 2025-01-11 13:17:41 +01:00
c254545abf
move subscriber stuff to another plugin 2025-01-11 13:17:20 +01:00
JcDenis
e3715cbf2a Update dcstore.xml 2025-01-11 09:45:23 +00:00
bfa4de7b59
release 0.4 2025-01-11 10:44:37 +01:00
793f7e3ae3
change levels 2025-01-11 10:42:18 +01:00
2ce94d046b
code doc 2025-01-11 10:41:36 +01:00
96ca889265
fix typo 2025-01-11 09:18:17 +01:00
JcDenis
bbd2dc67a9 Update dcstore.xml 2025-01-10 16:22:59 +00:00
a02903a617
release 0.3 2025-01-10 17:22:09 +01:00
33b3035e11
add exemple of public post status permission 2025-01-10 17:20:32 +01:00
JcDenis
68f754792f Update dcstore.xml 2025-01-08 17:23:52 +00:00
a0625e24d3
release 0.2 2025-01-08 18:23:09 +01:00
dbde71003b
better naming 2025-01-08 18:22:46 +01:00
8 changed files with 53 additions and 10 deletions

View file

@ -3,3 +3,27 @@ Proofreading 0.1 - 2025.01.08
* Require Dotclear 2.33 * Require Dotclear 2.33
* Require PHP 8.1 * Require PHP 8.1
* Add 3 status to posts * Add 3 status to posts
Proofreading 0.2 - 2025.01.08
===========================================================
* Require Dotclear 2.33
* Require PHP 8.1
* Use better status id
Proofreading 0.3 - 2025.01.09
===========================================================
* Require Dotclear 2.33
* Require PHP 8.1
* Add 1 post status and 1 user permission
Proofreading 0.4 - 2025.01.11
===========================================================
* Require Dotclear 2.33
* Require PHP 8.1
* Change status levels
Proofreading 0.5 - 2025.01.11
===========================================================
* Require Dotclear 2.33
* Require PHP 8.1
* Remove subscriber stuff (now to plugin RestrictedReading)

View file

@ -17,7 +17,7 @@ $this->registerModule(
'Proofreading', 'Proofreading',
'Add proofreading statuses for your posts', 'Add proofreading statuses for your posts',
'Jean-Christian Denis and Contributors', 'Jean-Christian Denis and Contributors',
'0.1', '0.5',
[ [
'requires' => [['core', '2.33']], 'requires' => [['core', '2.33']],
'permissions' => 'My', 'permissions' => 'My',

View file

@ -2,10 +2,10 @@
<modules xmlns:da="http://dotaddict.org/da/"> <modules xmlns:da="http://dotaddict.org/da/">
<module id="Proofreading"> <module id="Proofreading">
<name>Proofreading</name> <name>Proofreading</name>
<version>0.1</version> <version>0.5</version>
<author>Jean-Christian Paul Denis and contributors</author> <author>Jean-Christian Paul Denis and contributors</author>
<desc>Add proofreading statuses for your posts.</desc> <desc>Add proofreading statuses for your posts.</desc>
<file>https://github.com/JcDenis/Proofreading/releases/download/v0.1/plugin-Proofreading.zip</file> <file>https://github.com/JcDenis/Proofreading/releases/download/v0.5/plugin-Proofreading.zip</file>
<da:dcmin>2.33</da:dcmin> <da:dcmin>2.33</da:dcmin>
<da:details>https://git.dotclear.watch/JcDenis/Proofreading/src/branch/master/README.md</da:details> <da:details>https://git.dotclear.watch/JcDenis/Proofreading/src/branch/master/README.md</da:details>
<da:support>https://git.dotclear.watch/JcDenis/Proofreading/issues</da:support> <da:support>https://git.dotclear.watch/JcDenis/Proofreading/issues</da:support>

View file

Before

Width:  |  Height:  |  Size: 411 B

After

Width:  |  Height:  |  Size: 411 B

View file

Before

Width:  |  Height:  |  Size: 411 B

After

Width:  |  Height:  |  Size: 411 B

15
img/subscriber.svg Normal file
View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<svg height="64px" width="64px" version="1.1" fill="none" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 235.517 235.517" xml:space="preserve">
<g>
<path fill="#b2b5ba" d="M118.1,235.517c7.898,0,14.31-6.032,14.31-13.483c0-7.441,0-13.473,0-13.473
c39.069-3.579,64.932-24.215,64.932-57.785v-0.549c0-34.119-22.012-49.8-65.758-59.977V58.334c6.298,1.539,12.82,3.72,19.194,6.549
c10.258,4.547,22.724,1.697,28.952-8.485c6.233-10.176,2.866-24.47-8.681-29.654c-11.498-5.156-24.117-8.708-38.095-10.236V8.251
c0-4.552-6.402-8.251-14.305-8.251c-7.903,0-14.31,3.514-14.31,7.832c0,4.335,0,7.843,0,7.843
c-42.104,3.03-65.764,25.591-65.764,58.057v0.555c0,34.114,22.561,49.256,66.862,59.427v33.021
c-10.628-1.713-21.033-5.243-31.623-10.65c-11.281-5.755-25.101-3.72-31.938,6.385c-6.842,10.1-4.079,24.449,7.294,30.029
c16.709,8.208,35.593,13.57,54.614,15.518v13.755C103.79,229.36,110.197,235.517,118.1,235.517z M131.301,138.12
c14.316,4.123,18.438,8.257,18.438,15.681v0.555c0,7.979-5.776,12.651-18.438,14.033V138.12z M86.999,70.153v-0.549
c0-7.152,5.232-12.657,18.71-13.755v29.719C90.856,81.439,86.999,77.305,86.999,70.153z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -21,7 +21,7 @@ use Dotclear\Module\MyPlugin;
*/ */
class My extends MyPlugin class My extends MyPlugin
{ {
public const POST_READY = -100; public const POST_READY = -111;
public const POST_REVIEW = -110; public const POST_PROOFREAD = -112;
public const POST_DRAFT = -120; public const POST_DRAFT = -113;
} }

View file

@ -3,6 +3,7 @@ declare(strict_types=1);
namespace Dotclear\Plugin\Proofreading; namespace Dotclear\Plugin\Proofreading;
use ArrayObject;
use Dotclear\App; use Dotclear\App;
use Dotclear\Core\PostType; use Dotclear\Core\PostType;
use Dotclear\Core\Process; use Dotclear\Core\Process;
@ -28,16 +29,19 @@ class Prepend extends Process
return false; return false;
} }
return // Add post status
return
// Add "Draft" post status, used on backend only.
App::status()->post()->set( App::status()->post()->set(
(new Status(My::POST_DRAFT , My::id() . 'draft', 'Draft', 'Draft (>1)', My::fileURL('img/draft.svg'))), (new Status(My::POST_DRAFT , My::id() . 'draft', 'Draft', 'Draft (>1)', My::fileURL('img/draft.svg'))),
) )
// Add "To proofread" post status, used on backend only.
&& App::status()->post()->set( && App::status()->post()->set(
(new Status(My::POST_REVIEW , My::id() . 'toproofread', 'To proofread', 'To proofread (>1)', My::fileURL('img/toproofread.svg'))), (new Status(My::POST_PROOFREAD , My::id() . 'proofread', 'To proofread', 'To proofread (>1)', My::fileURL('img/proofread.svg'))),
) )
// Add "Fulfilled" post status, used on backend only.
&& App::status()->post()->set( && App::status()->post()->set(
(new Status(My::POST_READY , My::id() . 'fulfiled', 'Fulfilled', 'Fulfilled (>1)', My::fileURL('img/fulfilled.svg'))), (new Status(My::POST_READY , My::id() . 'ready', 'Fulfilled', 'Fulfilled (>1)', My::fileURL('img/ready.svg'))),
); );
} }
} }