refactor(plugins): set settings properties as fields objects

This commit is contained in:
Yassine Doghri 2024-06-08 20:37:11 +00:00
parent 8f8c61eaae
commit cc6495dc7c
39 changed files with 153 additions and 216 deletions

View File

@ -35,8 +35,8 @@
{ {
"fileMatch": [ "fileMatch": [
"plugins/**/manifest.json", "plugins/**/manifest.json",
"tests/modules/Plugins/Mocks/manifests/*.json", "tests/modules/Plugins/mocks/manifests/*.json",
"tests/modules/Plugins/Mocks/plugins/**/manifest.json" "tests/modules/Plugins/mocks/plugins/**/manifest.json"
], ],
"url": "/workspaces/castopod/modules/Plugins/Manifest/manifest.schema.json" "url": "/workspaces/castopod/modules/Plugins/Manifest/manifest.schema.json"
} }

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1338,8 +1337,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1338,8 +1337,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -7,8 +7,8 @@ process:
- [**`castopod/castopod`**](https://hub.docker.com/r/castopod/castopod): an all - [**`castopod/castopod`**](https://hub.docker.com/r/castopod/castopod): an all
in one castopod image using nginx unit in one castopod image using nginx unit
- [**`castopod/app`**](https://hub.docker.com/r/castopod/app): el - [**`castopod/app`**](https://hub.docker.com/r/castopod/app): el paquet
paquet incloent Castopod i totes les dependències incloent Castopod i totes les dependències
- [**`castopod/web-server`**](https://hub.docker.com/r/castopod/web-server): una - [**`castopod/web-server`**](https://hub.docker.com/r/castopod/web-server): una
configuració de Nginx per a Castopod configuració de Nginx per a Castopod

View File

@ -167,8 +167,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1340,8 +1339,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -167,8 +167,7 @@ Veliko hvala ovim divnim ljudima
([ključ emotikona](https://allcontributors.org/docs/en/emoji-key)): ([ključ emotikona](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1340,8 +1339,7 @@ Veliko hvala ovim divnim ljudima
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -166,8 +166,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1339,8 +1338,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -166,8 +166,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1339,8 +1338,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -173,8 +173,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1346,8 +1345,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1338,8 +1337,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1338,8 +1337,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -172,8 +172,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1345,8 +1344,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}
@ -1401,16 +1399,21 @@ backers. If you'd like to help, please consider
Copyright © 2020-present, [Ad Aures](https://adaures.com/). Copyright © 2020-present, [Ad Aures](https://adaures.com/).
[release]: https://code.castopod.org/adaures/castopod/-/releases [release]: https://code.castopod.org/adaures/castopod/-/releases
[release-badge]: https://img.shields.io/gitlab/v/release/2?color=brightgreen&gitlab_url=https%3A%2F%2Fcode.castopod.org%2F&include_prereleases&label=release [release-badge]:
https://img.shields.io/gitlab/v/release/2?color=brightgreen&gitlab_url=https%3A%2F%2Fcode.castopod.org%2F&include_prereleases&label=release
[license]: https://code.castopod.org/adaures/castopod/-/blob/beta/LICENSE.md [license]: https://code.castopod.org/adaures/castopod/-/blob/beta/LICENSE.md
[license-badge]: https://img.shields.io/github/license/ad-aures/castopod?color=blue [license-badge]:
https://img.shields.io/github/license/ad-aures/castopod?color=blue
[contributions]: https://code.castopod.org/adaures/castopod/-/issues [contributions]: https://code.castopod.org/adaures/castopod/-/issues
[contributions-badge]: https://img.shields.io/badge/contributions-welcome-brightgreen.svg [contributions-badge]:
https://img.shields.io/badge/contributions-welcome-brightgreen.svg
[semantic-release]: https://github.com/semantic-release/semantic-release [semantic-release]: https://github.com/semantic-release/semantic-release
[semantic-release-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg [semantic-release-badge]:
https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[discord]: https://castopod.org/discord [discord]: https://castopod.org/discord
[discord-badge]: https://img.shields.io/badge/chat-on%20discord-7389D8 [discord-badge]: https://img.shields.io/badge/chat-on%20discord-7389D8
[stars]: https://github.com/ad-aures/castopod/stargazers [stars]: https://github.com/ad-aures/castopod/stargazers
[stars-badge]: https://img.shields.io/github/stars/ad-aures/castopod?style=social [stars-badge]:
https://img.shields.io/github/stars/ad-aures/castopod?style=social
[crowdin]: https://translate.castopod.org/project/castopod [crowdin]: https://translate.castopod.org/project/castopod
[crowdin-badge]: https://badges.crowdin.net/castopod/localized.svg [crowdin-badge]: https://badges.crowdin.net/castopod/localized.svg

View File

@ -172,8 +172,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1345,8 +1344,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}
@ -1401,16 +1399,21 @@ backers. If you'd like to help, please consider
Copyright © 2020-present, [Ad Aures](https://adaures.com/). Copyright © 2020-present, [Ad Aures](https://adaures.com/).
[release]: https://code.castopod.org/adaures/castopod/-/releases [release]: https://code.castopod.org/adaures/castopod/-/releases
[release-badge]: https://img.shields.io/gitlab/v/release/2?color=brightgreen&gitlab_url=https%3A%2F%2Fcode.castopod.org%2F&include_prereleases&label=release [release-badge]:
https://img.shields.io/gitlab/v/release/2?color=brightgreen&gitlab_url=https%3A%2F%2Fcode.castopod.org%2F&include_prereleases&label=release
[license]: https://code.castopod.org/adaures/castopod/-/blob/beta/LICENSE.md [license]: https://code.castopod.org/adaures/castopod/-/blob/beta/LICENSE.md
[license-badge]: https://img.shields.io/github/license/ad-aures/castopod?color=blue [license-badge]:
https://img.shields.io/github/license/ad-aures/castopod?color=blue
[contributions]: https://code.castopod.org/adaures/castopod/-/issues [contributions]: https://code.castopod.org/adaures/castopod/-/issues
[contributions-badge]: https://img.shields.io/badge/contributions-welcome-brightgreen.svg [contributions-badge]:
https://img.shields.io/badge/contributions-welcome-brightgreen.svg
[semantic-release]: https://github.com/semantic-release/semantic-release [semantic-release]: https://github.com/semantic-release/semantic-release
[semantic-release-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg [semantic-release-badge]:
https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[discord]: https://castopod.org/discord [discord]: https://castopod.org/discord
[discord-badge]: https://img.shields.io/badge/chat-on%20discord-7389D8 [discord-badge]: https://img.shields.io/badge/chat-on%20discord-7389D8
[stars]: https://github.com/ad-aures/castopod/stargazers [stars]: https://github.com/ad-aures/castopod/stargazers
[stars-badge]: https://img.shields.io/github/stars/ad-aures/castopod?style=social [stars-badge]:
https://img.shields.io/github/stars/ad-aures/castopod?style=social
[crowdin]: https://translate.castopod.org/project/castopod [crowdin]: https://translate.castopod.org/project/castopod
[crowdin-badge]: https://badges.crowdin.net/castopod/localized.svg [crowdin-badge]: https://badges.crowdin.net/castopod/localized.svg

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1338,8 +1337,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1338,8 +1337,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -166,8 +166,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1339,8 +1338,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1338,8 +1337,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -170,8 +170,7 @@ Mange takk til dei flotte folka på
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1367,8 +1366,7 @@ Mange takk til dei flotte folka på
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -169,8 +169,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1342,8 +1341,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -167,8 +167,7 @@ Veliko hvala ovim divnim ljudima
([ključ emotikona](https://allcontributors.org/docs/en/emoji-key)): ([ključ emotikona](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1340,8 +1339,7 @@ Veliko hvala ovim divnim ljudima
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -166,8 +166,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1339,8 +1338,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1306,8 +1305,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -142,8 +142,7 @@ Castopod 已经通过了一项行为准则,并希望所有的参与者都能
感谢这些了不起的人([表情符号键](https://allcontributors.org/docs/en/emoji-key)): 感谢这些了不起的人([表情符号键](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1315,8 +1314,7 @@ Castopod 已经通过了一项行为准则,并希望所有的参与者都能
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -165,8 +165,7 @@ Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)): ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
{/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */} {/* ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section */}
{/* prettier-ignore-start */} {/* prettier-ignore-start */} {/* markdownlint-disable */}
{/* markdownlint-disable */}
<table> <table>
<tbody> <tbody>
@ -1338,8 +1337,7 @@ Thanks goes to these wonderful people
</tbody> </tbody>
</table> </table>
{/* markdownlint-restore */} {/* markdownlint-restore */} {/* prettier-ignore-end */}
{/* prettier-ignore-end */}
{/* ALL-CONTRIBUTORS-LIST:END */} {/* ALL-CONTRIBUTORS-LIST:END */}

View File

@ -5,8 +5,8 @@ declare(strict_types=1);
namespace Modules\Plugins\Manifest; namespace Modules\Plugins\Manifest;
/** /**
* @property 'text'|'email'|'url'|'markdown'|'number'|'switch' $type
* @property string $key * @property string $key
* @property 'text'|'email'|'url'|'markdown'|'number'|'switch' $type
* @property string $label * @property string $label
* @property string $hint * @property string $hint
* @property string $helper * @property string $helper

View File

@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
namespace Modules\Plugins\Manifest;
use Override;
class Fields extends ManifestObject
{
#[Override]
public function loadData(array $data): void
{
dd($data);
}
}

View File

@ -4,6 +4,8 @@ declare(strict_types=1);
namespace Modules\Plugins\Manifest; namespace Modules\Plugins\Manifest;
use Override;
/** /**
* @property Field[] $general * @property Field[] $general
* @property Field[] $podcast * @property Field[] $podcast
@ -40,4 +42,21 @@ class Settings extends ManifestObject
* @var Field[] * @var Field[]
*/ */
protected array $episode = []; protected array $episode = [];
#[Override]
public function loadData(array $data): void
{
$newData = [];
foreach ($data as $key => $fields) {
$newFields = [];
foreach ($fields as $fieldKey => $field) {
$field['key'] = $fieldKey;
$newFields[] = $field;
}
$newData[$key] = $newFields;
}
parent::loadData($newData);
}
} }

View File

@ -101,28 +101,13 @@
"type": "object", "type": "object",
"properties": { "properties": {
"general": { "general": {
"type": "array", "$ref": "#/$defs/fields"
"items": {
"$ref": "#/$defs/field"
},
"minItems": 1,
"uniqueItems": true
}, },
"podcast": { "podcast": {
"type": "array", "$ref": "#/$defs/fields"
"items": {
"$ref": "#/$defs/field"
},
"minItems": 1,
"uniqueItems": true
}, },
"episode": { "episode": {
"type": "array", "$ref": "#/$defs/fields"
"items": {
"$ref": "#/$defs/field"
},
"minItems": 1,
"uniqueItems": true
} }
} }
}, },
@ -170,24 +155,12 @@
} }
} }
}, },
"section": { "fields": {
"type": "object", "type": "object",
"properties": { "patternProperties": {
"title": { "^[A-Za-z]+[\\w\\-\\:\\.]*$": { "$ref": "#/$defs/field" }
"type": "string" },
}, "additionalProperties": false
"description": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"$ref": "#/$defs/field"
},
"minItems": 1,
"uniqueItems": true
}
}
}, },
"field": { "field": {
"type": "object", "type": "object",
@ -209,10 +182,6 @@
], ],
"default": "text" "default": "text"
}, },
"key": {
"type": "string",
"pattern": "^[A-Za-z]+[\\w\\-\\:\\.]*$"
},
"label": { "label": {
"type": "string" "type": "string"
}, },
@ -234,7 +203,7 @@
"uniqueItems": true "uniqueItems": true
} }
}, },
"required": ["key", "label"], "required": ["label"],
"additionalProperties": false, "additionalProperties": false,
"allOf": [ "allOf": [
{ "$ref": "#/$defs/field-multiple-implies-options-is-required" } { "$ref": "#/$defs/field-multiple-implies-options-is-required" }

View File

@ -14,10 +14,9 @@
"keywords": ["seo", "analytics"], "keywords": ["seo", "analytics"],
"hooks": ["rssAfterChannel"], "hooks": ["rssAfterChannel"],
"settings": { "settings": {
"general": [ "general": {
{ "name": {
"type": "radio-group", "type": "radio-group",
"key": "name",
"label": "Name", "label": "Name",
"options": [ "options": [
{ "label": "Foo", "value": "foo", "hint": "This is a hint." }, { "label": "Foo", "value": "foo", "hint": "This is a hint." },
@ -25,35 +24,29 @@
{ "label": "Baz", "value": "baz" } { "label": "Baz", "value": "baz" }
] ]
}, },
{ "email": {
"type": "email", "type": "email",
"key": "email",
"label": "Email" "label": "Email"
}, },
{ "url": {
"type": "url", "type": "url",
"key": "url",
"label": "Your website URL" "label": "Your website URL"
}, },
{ "toggler": {
"type": "toggler", "type": "toggler",
"key": "toggler",
"label": "Toggle this?" "label": "Toggle this?"
}, },
{ "number": {
"type": "number", "type": "number",
"key": "number",
"label": "Number" "label": "Number"
}, },
{ "datetime": {
"type": "datetime", "type": "datetime",
"key": "datetime",
"label": "Enter a date", "label": "Enter a date",
"optional": true "optional": true
}, },
{ "select": {
"type": "select", "type": "select",
"key": "select",
"label": "Select something", "label": "Select something",
"options": [ "options": [
{ {
@ -70,9 +63,8 @@
} }
] ]
}, },
{ "select-multiple": {
"type": "select-multiple", "type": "select-multiple",
"key": "select-multiple",
"label": "Select multiple things", "label": "Select multiple things",
"options": [ "options": [
{ {
@ -89,9 +81,8 @@
} }
] ]
}, },
{ "radio-group": {
"type": "radio-group", "type": "radio-group",
"key": "radio-group",
"label": "Radio Group", "label": "Radio Group",
"helper": "This is a helper.", "helper": "This is a helper.",
"options": [ "options": [
@ -109,35 +100,31 @@
} }
] ]
}, },
{ "textarea": {
"type": "textarea", "type": "textarea",
"key": "texting",
"label": "Your text", "label": "Your text",
"hint": "This is a hint." "hint": "This is a hint."
}, },
{ "markdown": {
"type": "markdown", "type": "markdown",
"key": "hello", "label": "Markdown",
"label": "Name Podcast",
"hint": "This is a hint.", "hint": "This is a hint.",
"optional": true "optional": true
} }
], },
"podcast": [ "podcast": {
{ "name": {
"type": "text", "type": "text",
"key": "name",
"label": "Name Podcast", "label": "Name Podcast",
"hint": "This is a hint." "hint": "This is a hint."
} }
], },
"episode": [ "episode": {
{ "name": {
"type": "text", "type": "text",
"key": "name",
"label": "Name Episode", "label": "Name Episode",
"helper": "This is a helper." "helper": "This is a helper."
} }
] }
} }
} }