Compare commits

..

No commits in common. "master" and "v0.1" have entirely different histories.
master ... v0.1

8 changed files with 10 additions and 53 deletions

View file

@ -3,27 +3,3 @@ Proofreading 0.1 - 2025.01.08
* Require Dotclear 2.33
* Require PHP 8.1
* 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',
'Add proofreading statuses for your posts',
'Jean-Christian Denis and Contributors',
'0.5',
'0.1',
[
'requires' => [['core', '2.33']],
'permissions' => 'My',

View file

@ -2,10 +2,10 @@
<modules xmlns:da="http://dotaddict.org/da/">
<module id="Proofreading">
<name>Proofreading</name>
<version>0.5</version>
<version>0.1</version>
<author>Jean-Christian Paul Denis and contributors</author>
<desc>Add proofreading statuses for your posts.</desc>
<file>https://github.com/JcDenis/Proofreading/releases/download/v0.5/plugin-Proofreading.zip</file>
<file>https://github.com/JcDenis/Proofreading/releases/download/v0.1/plugin-Proofreading.zip</file>
<da:dcmin>2.33</da:dcmin>
<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>

View file

Before

Width:  |  Height:  |  Size: 411 B

After

Width:  |  Height:  |  Size: 411 B

View file

@ -1,15 +0,0 @@
<?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>

Before

Width:  |  Height:  |  Size: 1.2 KiB

View file

Before

Width:  |  Height:  |  Size: 411 B

After

Width:  |  Height:  |  Size: 411 B

View file

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

View file

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