Skip to content

Commit 35ff268

Browse files
committed
moved UI Example to separate repo
Signed-off-by: Alexander Piskun <[email protected]>
1 parent 798280d commit 35ff268

33 files changed

+4
-17381
lines changed

.run/UiExample (27).run.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.run/UiExample (28).run.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.run/UiExample (last).run.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/NextcloudApp.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ After launching your application, execute the following command in the Nextcloud
9898
.. code-block:: shell
9999
100100
php occ app_api:app:register YOUR_APP_ID manual_install --json-info \
101-
"{\"appid\":\"YOUR_APP_ID\",\"name\":\"YOUR_APP_DISPLAY_NAME\",\"daemon_config_name\":\"manual_install\",\"version\":\"YOU_APP_VERSION\",\"secret\":\"YOUR_APP_SECRET\",\"scopes\":[\"ALL\"],\"port\":SELECTED_PORT,\"system_app\":0}" \
101+
"{\"id\":\"YOUR_APP_ID\",\"name\":\"YOUR_APP_DISPLAY_NAME\",\"daemon_config_name\":\"manual_install\",\"version\":\"YOU_APP_VERSION\",\"secret\":\"YOUR_APP_SECRET\",\"scopes\":[\"ALL\"],\"port\":SELECTED_PORT,\"system\":0}" \
102102
--force-scopes --wait-finish
103103
104104
You can see how **nc_py_api** registers in ``scripts/dev_register.sh``.
@@ -107,9 +107,9 @@ It's advisable to write these steps as commands in a Makefile for quick use.
107107

108108
Examples for such Makefiles can be found in this repository:
109109
`Skeleton <https://github.com/cloud-py-api/nc_py_api/blob/main/examples/as_app/skeleton/Makefile>`_ ,
110-
`TalkBot <https://github.com/cloud-py-api/nc_py_api/blob/main/examples/as_app/talk_bot/Makefile>`_ ,
111110
`ToGif <https://github.com/cloud-py-api/nc_py_api/blob/main/examples/as_app/to_gif/Makefile>`_ ,
112-
`UiExample <https://github.com/cloud-py-api/nc_py_api/blob/main/examples/as_app/ui_example/Makefile>`_
111+
`TalkBot <https://github.com/cloud-py-api/talk_bot_ai_example/blob/main/Makefile>`_ ,
112+
`UiExample <https://github.com/cloud-py-api/ui_example/blob/main/Makefile>`_
113113

114114
During the execution of `php occ app_api:app:register`, the **enabled_handler** will be called
115115

docs/NextcloudUiApp.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Writing Nextcloud App with UI
77
One of the most interesting features is the ability to register a page in the Nextcloud Top Menu.
88

99
Full source of UI example can be found here:
10-
`UiExample <https://github.com/cloud-py-api/nc_py_api/blob/main/examples/as_app/ui_example/lib/main.py>`_
10+
`UiExample <https://github.com/cloud-py-api/ui_example/blob/main/lib/main.py>`_
1111

1212
Here we will simply describe in detail what happens in the example.
1313

@@ -44,7 +44,6 @@ Backend
4444
4545
@APP.post("/verify_initial_value")
4646
async def verify_initial_value(
47-
_nc: typing.Annotated[NextcloudApp, Depends(nc_app)],
4847
input1: Button1Format,
4948
):
5049
print("Old value: ", input1.initial_value)
@@ -64,7 +63,6 @@ Backend
6463
6564
@APP.post("/nextcloud_file")
6665
async def nextcloud_file(
67-
_nc: typing.Annotated[NextcloudApp, Depends(nc_app)],
6866
args: dict,
6967
):
7068
print(args["file_info"])

examples/as_app/ui_example/.eslintrc.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/as_app/ui_example/.gitattributes

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/as_app/ui_example/.gitignore

Lines changed: 0 additions & 26 deletions
This file was deleted.

examples/as_app/ui_example/.l10nignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/as_app/ui_example/.nextcloudignore

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)