mirror of
https://github.com/hcengineering/platform.git
synced 2025-02-22 12:22:24 +00:00
103 lines
3.6 KiB
TypeScript
103 lines
3.6 KiB
TypeScript
//
|
|
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
|
// Copyright © 2021 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.
|
|
//
|
|
|
|
import type { Doc, Ref, Space } from '@anticrm/core'
|
|
import type { IntlString, Resource } from '@anticrm/platform'
|
|
import { mergeIds } from '@anticrm/platform'
|
|
import { KanbanTemplate, taskId } from '@anticrm/task'
|
|
import task from '@anticrm/task-resources/src/plugin'
|
|
import type { AnyComponent } from '@anticrm/ui'
|
|
import { Application } from '@anticrm/workbench'
|
|
import type { Action } from '@anticrm/view'
|
|
import { ObjectSearchCategory, ObjectSearchFactory } from '@anticrm/model-presentation'
|
|
|
|
export default mergeIds(taskId, task, {
|
|
app: {
|
|
Tasks: '' as Ref<Application>
|
|
},
|
|
action: {
|
|
CreateTask: '' as Ref<Action>,
|
|
EditStatuses: '' as Ref<Action>,
|
|
TodoItemMarkDone: '' as Ref<Action>,
|
|
TodoItemMarkUnDone: '' as Ref<Action>,
|
|
ArchiveSpace: '' as Ref<Action>,
|
|
UnarchiveSpace: '' as Ref<Action>
|
|
},
|
|
actionImpl: {
|
|
CreateTask: '' as Resource<(object: Doc) => Promise<void>>,
|
|
EditStatuses: '' as Resource<(object: Doc) => Promise<void>>,
|
|
TodoItemMarkDone: '' as Resource<(object: Doc) => Promise<void>>,
|
|
TodoItemMarkUnDone: '' as Resource<(object: Doc) => Promise<void>>,
|
|
ArchiveSpace: '' as Resource<(object: Doc) => Promise<void>>,
|
|
UnarchiveSpace: '' as Resource<(object: Doc) => Promise<void>>
|
|
},
|
|
component: {
|
|
ProjectView: '' as AnyComponent,
|
|
CreateProject: '' as AnyComponent,
|
|
CreateTask: '' as AnyComponent,
|
|
EditIssue: '' as AnyComponent,
|
|
TaskPresenter: '' as AnyComponent,
|
|
KanbanCard: '' as AnyComponent,
|
|
TemplatesIcon: '' as AnyComponent,
|
|
StatePresenter: '' as AnyComponent,
|
|
DoneStatePresenter: '' as AnyComponent,
|
|
StateEditor: '' as AnyComponent,
|
|
KanbanView: '' as AnyComponent,
|
|
Todos: '' as AnyComponent,
|
|
TodoItemPresenter: '' as AnyComponent,
|
|
StatusTableView: '' as AnyComponent,
|
|
TaskHeader: '' as AnyComponent
|
|
},
|
|
string: {
|
|
TaskState: '' as IntlString,
|
|
TaskStateTitle: '' as IntlString,
|
|
TaskStateDone: '' as IntlString,
|
|
TaskNumber: '' as IntlString,
|
|
Todo: '' as IntlString,
|
|
TaskDone: '' as IntlString,
|
|
TaskDueTo: '' as IntlString,
|
|
Task: '' as IntlString,
|
|
TaskParent: '' as IntlString,
|
|
IssueName: '' as IntlString,
|
|
TaskComments: '' as IntlString,
|
|
TaskAttachments: '' as IntlString,
|
|
TaskLabels: '' as IntlString,
|
|
StateTemplateTitle: '' as IntlString,
|
|
StateTemplateColor: '' as IntlString,
|
|
KanbanTemplateTitle: '' as IntlString,
|
|
Rank: '' as IntlString,
|
|
EditStates: '' as IntlString,
|
|
Archive: '' as IntlString,
|
|
Unarchive: '' as IntlString,
|
|
MarkAsDone: '' as IntlString,
|
|
MarkAsUndone: '' as IntlString,
|
|
Kanban: '' as IntlString,
|
|
ApplicationLabelTask: '' as IntlString,
|
|
Projects: '' as IntlString,
|
|
SearchTask: '' as IntlString
|
|
},
|
|
space: {
|
|
TasksPublic: '' as Ref<Space>
|
|
},
|
|
template: {
|
|
DefaultProject: '' as Ref<KanbanTemplate>
|
|
},
|
|
completion: {
|
|
IssueQuery: '' as Resource<ObjectSearchFactory>,
|
|
IssueCategory: '' as Ref<ObjectSearchCategory>
|
|
}
|
|
})
|