Skip to content

Commit

Permalink
Merge pull request #42174 from nextcloud/chore/comments-cleanup-dead-…
Browse files Browse the repository at this point in the history
…code

chore(comments): Drop dead code from comments app
  • Loading branch information
susnux authored Dec 13, 2023
2 parents 6077f26 + 529dcc3 commit 11e27ac
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 246 deletions.
3 changes: 0 additions & 3 deletions apps/comments/.bowerrc

This file was deleted.

3 changes: 0 additions & 3 deletions apps/comments/.l10nignore

This file was deleted.

4 changes: 1 addition & 3 deletions apps/comments/lib/Listener/LoadAdditionalScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ public function handle(Event $event): void {
return;
}

// TODO: make sure to only include the sidebar script when
// we properly split it between files list and sidebar
Util::addScript(Application::APP_ID, 'comments');
// Adding init script for file list inline actions
Util::addInitScript(Application::APP_ID, 'init');
}
}
5 changes: 1 addition & 4 deletions apps/comments/lib/Listener/LoadSidebarScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ public function handle(Event $event): void {
$this->commentsManager->load();

$this->initialState->provideInitialState('activityEnabled', $this->appManager->isEnabledForUser('activity'));

// TODO: make sure to only include the sidebar script when
// we properly split it between files list and sidebar
Util::addScript(Application::APP_ID, 'comments');
// Add comments sidebar tab script
Util::addScript(Application::APP_ID, 'comments-tab', 'files');
}
}
73 changes: 0 additions & 73 deletions apps/comments/src/activitytabviewplugin.js

This file was deleted.

32 changes: 0 additions & 32 deletions apps/comments/src/app.js

This file was deleted.

28 changes: 0 additions & 28 deletions apps/comments/src/comments.js

This file was deleted.

17 changes: 0 additions & 17 deletions apps/comments/src/templates.js

This file was deleted.

3 changes: 0 additions & 3 deletions apps/comments/src/templates/filesplugin.handlebars

This file was deleted.

30 changes: 0 additions & 30 deletions apps/comments/src/utils/numberUtil.js

This file was deleted.

3 changes: 0 additions & 3 deletions dist/comments-comments.js

This file was deleted.

45 changes: 0 additions & 45 deletions dist/comments-comments.js.LICENSE.txt

This file was deleted.

Loading

0 comments on commit 11e27ac

Please sign in to comment.