2022-02-07 12:03:14 +03:00
|
|
|
//
|
|
|
|
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
|
|
|
// Copyright © 2021, 2022 Hardcore Engineering Inc.
|
|
|
|
//
|
|
|
|
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License. You may
|
|
|
|
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
//
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
|
2022-09-21 11:08:25 +03:00
|
|
|
import { Resources } from '@hcengineering/platform'
|
2023-04-05 10:12:06 +03:00
|
|
|
import Inbox from './components/Inbox.svelte'
|
2022-02-22 12:09:13 +03:00
|
|
|
import NotificationSettings from './components/NotificationSettings.svelte'
|
2022-02-25 12:04:57 +03:00
|
|
|
import NotificationPresenter from './components/NotificationPresenter.svelte'
|
2023-04-06 17:25:58 +03:00
|
|
|
import { NotificationClientImpl, hasntNotifications, hide, markAsUnread, unsubscribe } from './utils'
|
2022-02-07 12:03:14 +03:00
|
|
|
|
|
|
|
export * from './utils'
|
2022-02-11 12:18:55 +03:00
|
|
|
|
2022-06-30 14:24:19 +03:00
|
|
|
export { default as BrowserNotificatator } from './components/BrowserNotificatator.svelte'
|
|
|
|
|
2022-02-11 12:18:55 +03:00
|
|
|
export default async (): Promise<Resources> => ({
|
|
|
|
component: {
|
2023-04-05 10:12:06 +03:00
|
|
|
Inbox,
|
2022-02-25 12:04:57 +03:00
|
|
|
NotificationPresenter,
|
2023-03-29 12:18:59 +03:00
|
|
|
NotificationSettings
|
2022-02-28 06:42:06 +03:00
|
|
|
},
|
|
|
|
function: {
|
2023-04-06 17:25:58 +03:00
|
|
|
GetNotificationClient: NotificationClientImpl.getClient,
|
|
|
|
HasntNotifications: hasntNotifications
|
|
|
|
},
|
|
|
|
actionImpl: {
|
|
|
|
Unsubscribe: unsubscribe,
|
|
|
|
Hide: hide,
|
|
|
|
MarkAsUnread: markAsUnread
|
2022-02-11 12:18:55 +03:00
|
|
|
}
|
|
|
|
})
|