cloud-py-api / nc_py_api

Nextcloud Python Framework
https://cloud-py-api.github.io/nc_py_api/
Other
84 stars 4 forks source link

Declarative Settings UI API (Nextcloud 29) #222

Closed bigcat88 closed 6 months ago

bigcat88 commented 6 months ago

As API of Declarative Settings is very simple the nc.ui.settings.register_form method can accept SettingsForm data class or a raw dict that will be passed to AppAPI.

Ref: https://github.com/cloud-py-api/app_api/pull/149

image image
codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (c6e4aa9) 99.83% compared to head (a0dd58f) 99.83%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #222 +/- ## ======================================== Coverage 99.83% 99.83% ======================================== Files 41 42 +1 Lines 4853 4965 +112 ======================================== + Hits 4845 4957 +112 Misses 8 8 ``` | [Files](https://app.codecov.io/gh/cloud-py-api/nc_py_api/pull/222?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cloud-py-api) | Coverage Δ | | |---|---|---| | [nc\_py\_api/\_preferences\_ex.py](https://app.codecov.io/gh/cloud-py-api/nc_py_api/pull/222?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cloud-py-api#diff-bmNfcHlfYXBpL19wcmVmZXJlbmNlc19leC5weQ==) | `100.00% <ø> (ø)` | | | [nc\_py\_api/ex\_app/\_\_init\_\_.py](https://app.codecov.io/gh/cloud-py-api/nc_py_api/pull/222?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cloud-py-api#diff-bmNfcHlfYXBpL2V4X2FwcC9fX2luaXRfXy5weQ==) | `100.00% <100.00%> (ø)` | | | [nc\_py\_api/ex\_app/ui/settings.py](https://app.codecov.io/gh/cloud-py-api/nc_py_api/pull/222?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cloud-py-api#diff-bmNfcHlfYXBpL2V4X2FwcC91aS9zZXR0aW5ncy5weQ==) | `100.00% <100.00%> (ø)` | | | [nc\_py\_api/ex\_app/ui/ui.py](https://app.codecov.io/gh/cloud-py-api/nc_py_api/pull/222?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cloud-py-api#diff-bmNfcHlfYXBpL2V4X2FwcC91aS91aS5weQ==) | `100.00% <100.00%> (ø)` | |