Skip to content

Commit 8eeea26

Browse files
committed
feat: migrate to web components API
* Based on nextcloud/server#50783 * For #514 * Server companion: nextcloud/server#54788 * Library companion: nextcloud-libraries/nextcloud-sharing#95 We need to provide an API that does not rely on Vue. As Vue components **must not** be shared between different apps. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
1 parent aacc8ee commit 8eeea26

File tree

7 files changed

+195
-109
lines changed

7 files changed

+195
-109
lines changed

lib/Listener/BeforeTemplateRenderedListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function handle(Event $event): void {
4343
]);
4444

4545
Util::addStyle(Application::APP_ID, Application::APP_ID . '-public');
46-
Util::addScript(Application::APP_ID, Application::APP_ID . '-public');
46+
Util::addInitScript(Application::APP_ID, Application::APP_ID . '-public');
4747
}
4848
}

lib/Listener/LoadSidebarListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ public function handle(Event $event): void {
3636
);
3737

3838
Util::addStyle(Application::APP_ID, Application::APP_ID . '-main');
39-
Util::addScript(Application::APP_ID, Application::APP_ID . '-main');
39+
Util::addInitScript(Application::APP_ID, Application::APP_ID . '-main');
4040
}
4141
}

package-lock.json

Lines changed: 93 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939
"@nextcloud/l10n": "^3.3.0",
4040
"@nextcloud/logger": "^3.0.2",
4141
"@nextcloud/router": "^3.0.1",
42-
"@nextcloud/sharing": "^0.2.5",
43-
"@nextcloud/vue": "^8.27.0",
42+
"@nextcloud/sharing": "^0.3.0",
43+
"@nextcloud/vue": "^8.31.0",
44+
"@vue/web-component-wrapper": "^1.3.0",
4445
"vue": "^2.7.16",
4546
"vue-frag": "^1.4.3"
4647
},

src/actions/DownloadLimitAction.ts

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

0 commit comments

Comments
 (0)