Skip to content

Commit

Permalink
fix(deps): Update @nextcloud/event-bus to version 3.3.1
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed May 31, 2024
1 parent c66f6e7 commit 6de50fe
Show file tree
Hide file tree
Showing 10 changed files with 147 additions and 78 deletions.
2 changes: 1 addition & 1 deletion apps/files/src/actions/deleteAction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import { action } from './deleteAction'
import { expect } from '@jest/globals'
import { File, Folder, Permission, View, FileAction } from '@nextcloud/files'
import * as eventBus from '@nextcloud/event-bus'
import eventBus from '@nextcloud/event-bus'
import axios from '@nextcloud/axios'

import logger from '../logger'
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/actions/favoriteAction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import { action } from './favoriteAction'
import { expect } from '@jest/globals'
import { File, Permission, View, FileAction } from '@nextcloud/files'
import * as eventBus from '@nextcloud/event-bus'
import eventBus from '@nextcloud/event-bus'
import * as favoriteAction from './favoriteAction'
import axios from '@nextcloud/axios'
import logger from '../logger'
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/actions/renameAction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import { action } from './renameAction'
import { expect } from '@jest/globals'
import { File, Permission, View, FileAction } from '@nextcloud/files'
import * as eventBus from '@nextcloud/event-bus'
import eventBus from '@nextcloud/event-bus'

const view = {
id: 'files',
Expand Down
11 changes: 11 additions & 0 deletions apps/files/src/eventbus.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { Node } from '@nextcloud/files'

declare module '@nextcloud/event-bus' {
export interface NextcloudEvents {
// mapping of 'event name' => 'event type'
'files:favorites:removed': Node
'files:favorites:added': Node
}
}

export {}
3 changes: 2 additions & 1 deletion apps/files/src/views/favorites.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-named-as-default-member */
/**
* @copyright Copyright (c) 2023 John Molakvoæ <skjnldsv@protonmail.com>
*
Expand All @@ -22,7 +23,7 @@
import { basename } from 'path'
import { expect } from '@jest/globals'
import { Folder, Navigation, getNavigation } from '@nextcloud/files'
import * as eventBus from '@nextcloud/event-bus'
import eventBus from '@nextcloud/event-bus'
import * as initialState from '@nextcloud/initial-state'

import { action } from '../actions/favoriteAction'
Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/actions/acceptShareAction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import { action } from './acceptShareAction'
import { expect } from '@jest/globals'
import { File, Permission, View, FileAction } from '@nextcloud/files'
import * as eventBus from '@nextcloud/event-bus'
import eventBus from '@nextcloud/event-bus'
import axios from '@nextcloud/axios'
import '../main'

Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/actions/rejectShareAction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import { action } from './rejectShareAction'
import { expect } from '@jest/globals'
import { File, Folder, Permission, View, FileAction } from '@nextcloud/files'
import * as eventBus from '@nextcloud/event-bus'
import eventBus from '@nextcloud/event-bus'
import axios from '@nextcloud/axios'
import '../main'

Expand Down
2 changes: 1 addition & 1 deletion apps/files_sharing/src/actions/restoreShareAction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import { action } from './restoreShareAction'
import { expect } from '@jest/globals'
import { File, Permission, View, FileAction } from '@nextcloud/files'
import * as eventBus from '@nextcloud/event-bus'
import eventBus from '@nextcloud/event-bus'
import axios from '@nextcloud/axios'
import '../main'

Expand Down
Loading

0 comments on commit 6de50fe

Please sign in to comment.