Compare commits
No commits in common. "master" and "v0.2" have entirely different histories.
6 changed files with 8 additions and 45 deletions
18
CHANGELOG.md
18
CHANGELOG.md
|
@ -9,21 +9,3 @@ Proofreading 0.2 - 2025.01.08
|
||||||
* Require Dotclear 2.33
|
* Require Dotclear 2.33
|
||||||
* Require PHP 8.1
|
* Require PHP 8.1
|
||||||
* Use better status id
|
* 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)
|
|
|
@ -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.5',
|
'0.2',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.33']],
|
'requires' => [['core', '2.33']],
|
||||||
'permissions' => 'My',
|
'permissions' => 'My',
|
||||||
|
|
|
@ -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.5</version>
|
<version>0.2</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.5/plugin-Proofreading.zip</file>
|
<file>https://github.com/JcDenis/Proofreading/releases/download/v0.2/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>
|
||||||
|
|
|
@ -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 |
|
@ -21,7 +21,7 @@ use Dotclear\Module\MyPlugin;
|
||||||
*/
|
*/
|
||||||
class My extends MyPlugin
|
class My extends MyPlugin
|
||||||
{
|
{
|
||||||
public const POST_READY = -111;
|
public const POST_READY = -100;
|
||||||
public const POST_PROOFREAD = -112;
|
public const POST_PROOFREAD = -110;
|
||||||
public const POST_DRAFT = -113;
|
public const POST_DRAFT = -120;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@ 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;
|
||||||
|
@ -29,19 +28,16 @@ class Prepend extends Process
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add post status
|
|
||||||
return
|
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_PROOFREAD , My::id() . 'proofread', 'To proofread', 'To proofread (>1)', My::fileURL('img/proofread.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() . 'ready', 'Fulfilled', 'Fulfilled (>1)', My::fileURL('img/ready.svg'))),
|
(new Status(My::POST_READY , My::id() . 'ready', 'Fulfilled', 'Fulfilled (>1)', My::fileURL('img/ready.svg'))),
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue