Skip to content

Commit

Permalink
Merge pull request #2229 from nextcloud/feat/nextcloud/cookbook
Browse files Browse the repository at this point in the history
feat(nextcloud): add cookbook support
  • Loading branch information
Leptopoda authored Jul 13, 2024
2 parents 8f54595 + 3c62530 commit 2daff02
Show file tree
Hide file tree
Showing 74 changed files with 9,630 additions and 12 deletions.
1 change: 1 addition & 0 deletions .cspell/misc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ postmarket
provokateurin
punycode
STRFTIME
rescan
subroutes
testexample
uncategorized
Expand Down
1 change: 1 addition & 0 deletions .cspell/nextcloud.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ partlycloudy
pollinterval
productname
rainshowers
reindex
replyable
requesttoken
reshares
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,13 @@ jobs:
- name: Install php
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2
with:
php-version: '8.1'
php-version: "8.1"
tools: composer

# Use https://github.com/kislyuk/yq
- name: Install yq
run: pip install yq

- name: Generate specs
run: |
./tool/generate-specs.sh
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
[submodule "external/nextcloud-drop_account"]
path = external/nextcloud-drop_account
url = https://framagit.org/framasoft/nextcloud/drop_account.git
[submodule "external/nextcloud-cookbook"]
path = external/nextcloud-cookbook
url = https://github.com/nextcloud/cookbook.git
3 changes: 2 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"packages/file_icons/lib/src/data.dart",
"packages/neon_lints/lib",
"packages/nextcloud/test/fixtures",
"packages/nextcloud_test/docker/static"
"packages/nextcloud_test/docker/static",
"/packages/nextcloud/test/files"
],
"dictionaries": [
"bash",
Expand Down
1 change: 1 addition & 0 deletions external/nextcloud-cookbook
Submodule nextcloud-cookbook added at 22f601
3 changes: 2 additions & 1 deletion packages/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ These OpenAPI specifications are [generated](https://github.com/nextcloud/openap
| Component | Supported versions (1) |
|------------------------------------------------------------------------------------|------------------------|
| [Server](https://github.com/nextcloud/server) (2) | 28 - 29 |
| [Cookbook app](https://github.com/nextcloud/cookbook) | 0.11.1 |
| [News app](https://github.com/nextcloud/news) | 25 |
| [NextPush app](https://codeberg.org/NextPush/uppush) | 1.4 |
| [Notes app](https://github.com/nextcloud/notes) | 4.8 - 4.10 |
| [Notifications app](https://github.com/nextcloud/notifications) | 28 - 29 |
| [Talk app](https://github.com/nextcloud/spreed) | 18 - 19 |
| [NextPush app](https://codeberg.org/NextPush/uppush) | 1.4 |
| [User account deletion app](https://framagit.org/framasoft/nextcloud/drop_account) | 2.4 - 2.5 |

1: Other versions might be supported too or at least mostly working, but we do not test against those.
Expand Down
14 changes: 14 additions & 0 deletions packages/nextcloud/lib/cookbook.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// coverage:ignore-file
import 'package:nextcloud/src/api/cookbook.openapi.dart';
import 'package:nextcloud/src/client.dart';

export 'src/api/cookbook.openapi.dart';
export 'src/helpers/cookbook.dart';

// ignore: public_member_api_docs
extension CookbookExtension on NextcloudClient {
static final _cookbook = Expando<$Client>();

/// Client for the cookbook APIs
$Client get cookbook => _cookbook[this] ??= $Client.fromClient(this);
}
3 changes: 3 additions & 0 deletions packages/nextcloud/lib/ids.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ final class AppIDs {
/// ID for the comments app.
static const comments = 'comments';

/// ID for the cookbook app.
static const cookbook = 'cookbook';

/// ID for the core app.
static const core = 'core';

Expand Down
Loading

0 comments on commit 2daff02

Please sign in to comment.