2021-08-06 08:31:17 +00:00
|
|
|
//
|
|
|
|
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
|
|
|
//
|
|
|
|
// 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 08:08:25 +00:00
|
|
|
import { Space } from '@hcengineering/core'
|
|
|
|
import { Resources } from '@hcengineering/platform'
|
2022-05-04 08:08:12 +00:00
|
|
|
import ApplicationPresenter from './components/ApplicationPresenter.svelte'
|
2022-02-03 09:03:53 +00:00
|
|
|
import Archive from './components/Archive.svelte'
|
2022-02-07 09:21:32 +00:00
|
|
|
import SpacePanel from './components/navigator/SpacePanel.svelte'
|
2022-04-21 15:47:04 +00:00
|
|
|
import SpaceBrowser from './components/SpaceBrowser.svelte'
|
2022-06-01 12:13:12 +00:00
|
|
|
import SpecialView from './components/SpecialView.svelte'
|
2022-05-04 08:08:12 +00:00
|
|
|
import WorkbenchApp from './components/WorkbenchApp.svelte'
|
|
|
|
import { doNavigate } from './utils'
|
2023-03-22 02:48:57 +00:00
|
|
|
import Workbench from './components/Workbench.svelte'
|
2022-02-03 09:03:53 +00:00
|
|
|
|
2023-02-27 03:03:03 +00:00
|
|
|
async function hasArchiveSpaces (spaces: Space[]): Promise<boolean> {
|
2022-04-21 15:47:04 +00:00
|
|
|
return spaces.find((sp) => sp.archived) !== undefined
|
2022-02-03 09:03:53 +00:00
|
|
|
}
|
2022-06-10 16:10:15 +00:00
|
|
|
export { default as SpaceBrowser } from './components/SpaceBrowser.svelte'
|
2022-11-17 04:31:42 +00:00
|
|
|
export { default as SpecialElement } from './components/navigator/SpecialElement.svelte'
|
2023-04-05 07:14:32 +00:00
|
|
|
export { default as TreeSeparator } from './components/navigator/TreeSeparator.svelte'
|
2022-11-29 15:53:58 +00:00
|
|
|
export { SpecialView }
|
2021-12-30 09:04:32 +00:00
|
|
|
export default async (): Promise<Resources> => ({
|
2021-08-06 08:31:17 +00:00
|
|
|
component: {
|
2021-12-14 09:24:14 +00:00
|
|
|
WorkbenchApp,
|
2022-02-03 09:03:53 +00:00
|
|
|
ApplicationPresenter,
|
2022-02-07 09:21:32 +00:00
|
|
|
Archive,
|
2022-04-21 15:47:04 +00:00
|
|
|
SpacePanel,
|
2022-06-01 12:13:12 +00:00
|
|
|
SpecialView,
|
2023-03-22 02:48:57 +00:00
|
|
|
SpaceBrowser,
|
|
|
|
Workbench
|
2022-02-03 09:03:53 +00:00
|
|
|
},
|
|
|
|
function: {
|
|
|
|
HasArchiveSpaces: hasArchiveSpaces
|
2022-05-04 08:08:12 +00:00
|
|
|
},
|
|
|
|
actionImpl: {
|
|
|
|
Navigate: doNavigate
|
2021-08-06 08:31:17 +00:00
|
|
|
}
|
|
|
|
})
|