Skip to content

Commit

Permalink
Use related resources panel from vue library
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Sep 9, 2022
1 parent a726827 commit fd0f2bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 276 deletions.
110 changes: 0 additions & 110 deletions src/components/RelatedResourceItem.vue

This file was deleted.

6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

import Vue from 'vue'
import {translate, translatePlural} from '@nextcloud/l10n'
import { translate, translatePlural } from '@nextcloud/l10n'

// eslint-disable-next-line
__webpack_nonce__ = btoa(OC.requestToken)
Expand All @@ -29,14 +30,13 @@ __webpack_public_path__ = OC.linkTo('related_resources', 'js/')

Vue.prototype.t = translate
Vue.prototype.n = translatePlural
Vue.config.devtools = true

window.addEventListener('DOMContentLoaded', () => {
if (!OCA?.Sharing?.ShareTabSections) {
return
}

import('./views/RelatedResources').then((Module) => {
import('@nextcloud/vue/dist/Components/NcRelatedResourcesPanel').then((Module) => {
OCA.Sharing.ShareTabSections.registerSection((el, fileInfo) => {
return Module.default
})
Expand Down
163 changes: 0 additions & 163 deletions src/views/RelatedResources.vue

This file was deleted.

0 comments on commit fd0f2bc

Please sign in to comment.