Skip to content

Commit

Permalink
feat(nextcloud)!: Support server 29 and spreed 19
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Apr 25, 2024
1 parent 98b6a96 commit 1f39624
Show file tree
Hide file tree
Showing 71 changed files with 69,211 additions and 56,368 deletions.
3 changes: 3 additions & 0 deletions .cspell/nextcloud.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apppassword
bigfilechunking
boardname
bools
bruteforce
bulkupload
clearsky
configapi
Expand Down Expand Up @@ -34,12 +35,14 @@ nextcloud
nextcloud's
organisation
partlycloudy
pollinterval
productname
rainshowers
replyable
requesttoken
resharing
rgdnvw
roomid
setsip
shareapi
sharebymail
Expand Down
2 changes: 1 addition & 1 deletion external/nextcloud-notifications
Submodule nextcloud-notifications updated 92 files
+4 −3 .github/dependabot.yml
+2 −2 .github/workflows/command-compile.yml
+2 −2 .github/workflows/lint-eslint.yml
+7 −3 .github/workflows/lint-php-cs.yml
+14 −2 .github/workflows/lint-php.yml
+1 −1 .github/workflows/lint-stylelint.yml
+2 −2 .github/workflows/node.yml
+48 −7 .github/workflows/performance.yml
+4 −4 .github/workflows/phpunit-mysql.yml
+7 −5 .github/workflows/phpunit-oci.yml
+8 −6 .github/workflows/phpunit-pgsql.yml
+8 −6 .github/workflows/phpunit-sqlite.yml
+7 −3 .github/workflows/psalm.yml
+1 −1 .github/workflows/update-nextcloud-ocp-approve-merge.yml
+4 −4 .github/workflows/update-nextcloud-ocp.yml
+2 −2 appinfo/info.xml
+0 −2 appinfo/routes.php
+5 −3 composer.json
+194 −199 composer.lock
+2 −2 js/notifications-admin-settings.js
+1 −1 js/notifications-admin-settings.js.map
+1 −0 ...ons-data_image_svg_xml_3csvg_20xmlns_27http_www_w3_org_2000_svg_27_20width_2724_27_20height_2724_-b2e651.js
+0 −1 ...ons-data_image_svg_xml_base64_PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJ-e25a52.js
+2 −2 js/notifications-main.js
+1 −1 js/notifications-main.js.map
+0 −3 ...ons-node_modules_moment_locale_sync_recursive_-src_NotificationsApp_vue-data_image_svg_xml_base64-ab95a3.js
+0 −1 ...node_modules_moment_locale_sync_recursive_-src_NotificationsApp_vue-data_image_svg_xml_base64-ab95a3.js.map
+0 −3 js/notifications-node_modules_nextcloud_dialogs_dist_chunks_index-c0bccfab_mjs.js
+0 −1 js/notifications-node_modules_nextcloud_dialogs_dist_chunks_index-c0bccfab_mjs.js.map
+3 −0 js/notifications-node_modules_nextcloud_dialogs_dist_chunks_index-clds-yO2_mjs.js
+0 −0 js/notifications-node_modules_nextcloud_dialogs_dist_chunks_index-clds-yO2_mjs.js.LICENSE.txt
+1 −0 js/notifications-node_modules_nextcloud_dialogs_dist_chunks_index-clds-yO2_mjs.js.map
+2 −2 js/notifications-settings.js
+1 −1 js/notifications-settings.js.map
+3 −0 js/notifications-src_NotificationsApp_vue.js
+0 −0 js/notifications-src_NotificationsApp_vue.js.LICENSE.txt
+1 −0 js/notifications-src_NotificationsApp_vue.js.map
+3 −0 ...ons-vendors-node_modules_nextcloud_auth_dist_index_js-node_modules_nextcloud_l10n_dist_index_mjs--c7a61b.js
+69 −0 ...node_modules_nextcloud_auth_dist_index_js-node_modules_nextcloud_l10n_dist_index_mjs--c7a61b.js.LICENSE.txt
+1 −0 ...vendors-node_modules_nextcloud_auth_dist_index_js-node_modules_nextcloud_l10n_dist_index_mjs--c7a61b.js.map
+0 −3 ...ons-vendors-node_modules_nextcloud_auth_dist_index_js-node_modules_nextcloud_vue_dist_Components_-304b96.js
+0 −1 ...vendors-node_modules_nextcloud_auth_dist_index_js-node_modules_nextcloud_vue_dist_Components_-304b96.js.map
+0 −3 js/notifications-vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-0bd54f66_mjs.js
+0 −1 js/notifications-vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-0bd54f66_mjs.js.map
+3 −0 js/notifications-vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-ClzJbciL_mjs.js
+57 −12 js/notifications-vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-ClzJbciL_mjs.js.LICENSE.txt
+1 −0 js/notifications-vendors-node_modules_nextcloud_dialogs_dist_chunks_FilePicker-ClzJbciL_mjs.js.map
+0 −3 ...ons-vendors-node_modules_nextcloud_moment_dist_index_js-node_modules_nextcloud_notify_push_dist_i-4dbea9.js
+0 −1 ...vendors-node_modules_nextcloud_moment_dist_index_js-node_modules_nextcloud_notify_push_dist_i-4dbea9.js.map
+3 −0 ...ons-vendors-node_modules_nextcloud_notify_push_dist_index_js-node_modules_howler_dist_howler_js-n-f0749c.js
+0 −0 ...node_modules_nextcloud_notify_push_dist_index_js-node_modules_howler_dist_howler_js-n-f0749c.js.LICENSE.txt
+1 −0 ...vendors-node_modules_nextcloud_notify_push_dist_index_js-node_modules_howler_dist_howler_js-n-f0749c.js.map
+3 −0 l10n/ast.js
+3 −0 l10n/ast.json
+3 −1 l10n/da.js
+3 −1 l10n/da.json
+19 −0 l10n/es_MX.js
+19 −0 l10n/es_MX.json
+3 −3 l10n/fa.js
+3 −3 l10n/fa.json
+1 −1 l10n/he.js
+1 −1 l10n/he.json
+1 −0 l10n/ko.js
+1 −0 l10n/ko.json
+3 −1 l10n/sk.js
+3 −1 l10n/sk.json
+1 −0 l10n/th.js
+1 −0 l10n/th.json
+3 −6 lib/AppInfo/Application.php
+2 −0 lib/Controller/APIController.php
+11 −7 lib/Controller/PushController.php
+3 −0 lib/Controller/SettingsController.php
+1 −9 lib/Handler.php
+49 −0 lib/Listener/AddMissingIndicesListener.php
+4 −3 lib/Listener/BeforeTemplateRenderedListener.php
+12 −5 lib/MailNotifications.php
+3 −2 lib/Migration/Version2010Date20210218082811.php
+1 −1 lib/Migration/Version2011Date20210930134607.php
+17 −7 lib/Push.php
+378 −0 openapi-administration.json
+1,556 −0 openapi-full.json
+466 −0 openapi-push.json
+12 −680 openapi.json
+823 −430 package-lock.json
+8 −8 package.json
+3 −3 psalm.xml
+1 −1 tests/Integration/base-query-count.txt
+229 −221 tests/Integration/composer.lock
+2 −2 tests/Integration/features/bootstrap/FeatureContext.php
+1 −1 tests/Unit/AppInfo/RoutesTest.php
+1 −13 tests/psalm-baseline.xml
+39 −22 vendor-bin/openapi-extractor/composer.lock
2 changes: 1 addition & 1 deletion external/nextcloud-server
Submodule nextcloud-server updated 3626 files
2 changes: 1 addition & 1 deletion external/nextcloud-spreed
Submodule nextcloud-spreed updated 735 files
22 changes: 20 additions & 2 deletions packages/neon/neon_talk/lib/src/widgets/rich_object/file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class TalkRichObjectFile extends StatelessWidget {
if (parameter.previewAvailable == spreed.RichObjectParameter_PreviewAvailable.yes) {
final maxHeight = MediaQuery.sizeOf(context).height / 2;

var width = parameter.width;
var height = parameter.height;
var width = _parseDimension(parameter.width);
var height = _parseDimension(parameter.height);
if (width != null && height != null) {
final devicePixelRatio = MediaQuery.of(context).devicePixelRatio;

Expand Down Expand Up @@ -95,4 +95,22 @@ class TalkRichObjectFile extends StatelessWidget {
child: child,
);
}

int? _parseDimension(({int? $int, String? string})? dimension) {
if (dimension == null) {
return null;
}

final $int = dimension.$int;
if ($int != null) {
return $int;
}

final string = dimension.string;
if (string != null) {
return int.parse(string);
}

throw ArgumentError(r'One of $int or string has to be not-null');
}
}
8 changes: 4 additions & 4 deletions packages/neon/neon_talk/test/main_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void main() {
});

testWidgets('Without message preview', (tester) async {
when(() => room.lastMessage).thenReturn((builtListNever: null, chatMessage: null));
when(() => room.lastMessage).thenReturn((baseMessage: null, builtListNever: null, chatMessage: null));
when(() => room.unreadMessages).thenReturn(0);

await tester.pumpWidget(
Expand All @@ -94,7 +94,7 @@ void main() {
when(() => chatMessage.message).thenReturn('test');
when(() => chatMessage.messageParameters).thenReturn(BuiltMap());

when(() => room.lastMessage).thenReturn((builtListNever: null, chatMessage: chatMessage));
when(() => room.lastMessage).thenReturn((baseMessage: null, builtListNever: null, chatMessage: chatMessage));
when(() => room.unreadMessages).thenReturn(1);

await tester.pumpWidget(
Expand Down Expand Up @@ -125,7 +125,7 @@ void main() {
when(() => chatMessage.messageParameters).thenReturn(BuiltMap());
when(() => chatMessage.id).thenReturn(0);

when(() => room.lastMessage).thenReturn((builtListNever: null, chatMessage: chatMessage));
when(() => room.lastMessage).thenReturn((baseMessage: null, builtListNever: null, chatMessage: chatMessage));
when(() => room.unreadMessages).thenReturn(0);
when(() => room.lastCommonReadMessage).thenReturn(0);

Expand All @@ -151,7 +151,7 @@ void main() {
});

testWidgets('Create room', (tester) async {
when(() => room.lastMessage).thenReturn((builtListNever: null, chatMessage: null));
when(() => room.lastMessage).thenReturn((baseMessage: null, builtListNever: null, chatMessage: null));
when(() => room.unreadMessages).thenReturn(0);

await tester.pumpWidget(
Expand Down
3 changes: 3 additions & 0 deletions packages/neon_framework/test/dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ void main() {
..capabilities = (
// We need to provide at least one capability because anyOf expects at least one schema to match
commentsCapabilities: core.CommentsCapabilities((b) => b..files.update((b) => b..comments = true)),
coreCapabilities: null,
corePublicCapabilities: null,
davCapabilities: null,
dropAccountCapabilities: capabilities,
filesCapabilities: null,
Expand All @@ -397,6 +399,7 @@ void main() {
notificationsCapabilities: null,
provisioningApiCapabilities: null,
sharebymailCapabilities: null,
spreedCapabilities: null,
spreedPublicCapabilities: null,
systemtagsCapabilities: null,
themingPublicCapabilities: null,
Expand Down
3 changes: 3 additions & 0 deletions packages/neon_framework/test/weather_status_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data buildCapabilities({requi
)
..capabilities = (
commentsCapabilities: null,
coreCapabilities: null,
corePublicCapabilities: null,
davCapabilities: null,
dropAccountCapabilities: null,
filesCapabilities: null,
Expand All @@ -117,6 +119,7 @@ core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data buildCapabilities({requi
notificationsCapabilities: null,
provisioningApiCapabilities: null,
sharebymailCapabilities: null,
spreedCapabilities: null,
spreedPublicCapabilities: null,
systemtagsCapabilities: null,
themingPublicCapabilities: null,
Expand Down
6 changes: 3 additions & 3 deletions packages/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ These OpenAPI specifications are [generated](https://github.com/nextcloud/openap

| Component | Supported versions (1) |
|------------------------------------------------------------------------------------|------------------------|
| [Server](https://github.com/nextcloud/server) (2) | 27 - 28 |
| [Server](https://github.com/nextcloud/server) (2) | 27 - 29 |
| [News app](https://github.com/nextcloud/news) | 22 - 25 |
| [Notes app](https://github.com/nextcloud/notes) | 4.7 - 4.10 |
| [Notifications app](https://github.com/nextcloud/notifications) | 27 - 28 |
| [Talk app](https://github.com/nextcloud/spreed) | 17 - 18 |
| [Notifications app](https://github.com/nextcloud/notifications) | 27 - 29 |
| [Talk app](https://github.com/nextcloud/spreed) | 17 - 19 |
| [NextPush app](https://codeberg.org/NextPush/uppush) | 1.4 |
| [User account deletion app](https://framagit.org/framasoft/nextcloud/drop_account) | 2.3 - 2.5 |

Expand Down
Loading

0 comments on commit 1f39624

Please sign in to comment.