2021-08-07 14:49:14 +00:00
|
|
|
//
|
|
|
|
// Copyright © 2020 Anticrm Platform Contributors.
|
2022-02-10 09:04:18 +00:00
|
|
|
//
|
2021-08-07 14:49:14 +00:00
|
|
|
// 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
|
2022-02-10 09:04:18 +00:00
|
|
|
//
|
2021-08-07 14:49:14 +00:00
|
|
|
// 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.
|
2022-02-10 09:04:18 +00:00
|
|
|
//
|
2021-08-07 14:49:14 +00:00
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
|
2022-09-21 08:08:25 +00:00
|
|
|
import { addStringsLoader, loadMetadata } from '@hcengineering/platform'
|
|
|
|
import task, { taskId } from '@hcengineering/task'
|
2021-08-07 14:49:14 +00:00
|
|
|
|
2022-02-10 09:04:18 +00:00
|
|
|
const icons = require('../assets/icons.svg') as string // eslint-disable-line
|
2021-08-07 14:49:14 +00:00
|
|
|
loadMetadata(task.icon, {
|
|
|
|
Task: `${icons}#task`,
|
2021-12-15 09:04:43 +00:00
|
|
|
Kanban: `${icons}#kanban`,
|
2021-12-20 10:18:29 +00:00
|
|
|
TodoCheck: `${icons}#todo-check`,
|
2021-12-21 09:08:22 +00:00
|
|
|
TodoUnCheck: `${icons}#todo-uncheck`,
|
2022-01-11 09:09:52 +00:00
|
|
|
ManageStatuses: `${icons}#manage-statuses`,
|
2022-07-05 05:38:19 +00:00
|
|
|
TaskState: `${icons}#task-state`,
|
|
|
|
Dashboard: `${icons}#dashboard`
|
2021-08-07 14:49:14 +00:00
|
|
|
})
|
2021-11-30 15:39:08 +00:00
|
|
|
|
|
|
|
addStringsLoader(taskId, async (lang: string) => await import(`../lang/${lang}.json`))
|