Skip to content

Commit

Permalink
fix(copyref): Copy Swarm Reference issue (#59)
Browse files Browse the repository at this point in the history
* Resolved conflicts

* fix(copyref): Copy Swarm Reference issue

This is a fix for the Copy Swarm Reference feature. Due to the requirement
for a NPM module @nextcloud/files, the JS feature has been moved to src/
and added to the Webpack build list.

As such, `npm run build` is required to build the relevant JS files and
preview this fix.

---------

Co-authored-by: JoaoSRaposo <joaosraposo@gmail.com>
  • Loading branch information
Thesola10 and JoaoSRaposo authored Aug 30, 2024
1 parent 32197b6 commit 9f24a79
Show file tree
Hide file tree
Showing 7 changed files with 1,161 additions and 83 deletions.
3 changes: 0 additions & 3 deletions js/nextcloud-swarm-plugin-main.js

This file was deleted.

1 change: 0 additions & 1 deletion js/nextcloud-swarm-plugin-main.js.map

This file was deleted.

4 changes: 4 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

namespace OCA\Files_External_Ethswarm\AppInfo;

use OCA\Files\Event\LoadAdditionalScriptsEvent;
use OCA\Files_External_Ethswarm\Backend\BeeSwarm;
use OCA\Files_External_Ethswarm\Auth\License;
use OCA\Files_External\Lib\Config\IBackendProvider;
Expand Down Expand Up @@ -74,6 +75,9 @@ public function boot(IBootContext $context): void {
Util::addScript(SELF::APP_ID, 'fileactions');
Util::addScript(SELF::APP_ID, 'menuobserver');
});
$dispatcher->addListener(LoadAdditionalScriptsEvent::class, function () {
Util::addScript(SELF::APP_ID, 'nextcloud-swarm-plugin-fileactions');
});

$this->getAuthMechanisms();

Expand Down
Loading

0 comments on commit 9f24a79

Please sign in to comment.