2022-03-31 08:32:42 +00:00
|
|
|
//
|
|
|
|
// Copyright © 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 08:08:25 +00:00
|
|
|
import { loadMetadata, addStringsLoader } from '@hcengineering/platform'
|
|
|
|
import tracker, { trackerId } from '@hcengineering/tracker'
|
2022-03-31 08:32:42 +00:00
|
|
|
|
|
|
|
const icons = require('../assets/icons.svg') as string // eslint-disable-line
|
|
|
|
loadMetadata(tracker.icon, {
|
|
|
|
TrackerApplication: `${icons}#tracker`,
|
2023-03-17 06:17:53 +00:00
|
|
|
Component: `${icons}#component`,
|
2022-03-31 08:32:42 +00:00
|
|
|
Issue: `${icons}#issue`,
|
2023-03-17 06:17:53 +00:00
|
|
|
Project: `${icons}#project`,
|
2022-04-02 04:06:48 +00:00
|
|
|
Document: `${icons}#document`,
|
|
|
|
Inbox: `${icons}#inbox`,
|
|
|
|
MyIssues: `${icons}#myissues`,
|
|
|
|
Views: `${icons}#views`,
|
2023-04-05 07:14:32 +00:00
|
|
|
Issues: `${icons}#issues`,
|
2023-03-17 06:17:53 +00:00
|
|
|
Components: `${icons}#components`,
|
2022-04-02 04:06:48 +00:00
|
|
|
NewIssue: `${icons}#newissue`,
|
|
|
|
Magnifier: `${icons}#magnifier`,
|
|
|
|
Home: `${icons}#home`,
|
2022-11-17 04:31:42 +00:00
|
|
|
RedCircle: `${icons}#red-circle`,
|
2022-04-08 06:27:02 +00:00
|
|
|
Labels: `${icons}#priority-nopriority`, // TODO: add icon
|
|
|
|
DueDate: `${icons}#inbox`, // TODO: add icon
|
|
|
|
Parent: `${icons}#myissues`, // TODO: add icon
|
2023-05-16 11:56:29 +00:00
|
|
|
Milestone: `${icons}#milestone`,
|
2023-04-05 07:14:32 +00:00
|
|
|
IssueTemplates: `${icons}#issuetemplates`,
|
2023-02-03 05:47:25 +00:00
|
|
|
Scrum: `${icons}#scrum`,
|
|
|
|
Start: `${icons}#start`,
|
|
|
|
Stop: `${icons}#stop`,
|
2022-04-08 06:27:02 +00:00
|
|
|
|
2022-04-23 16:59:57 +00:00
|
|
|
CategoryBacklog: `${icons}#status-backlog`,
|
|
|
|
CategoryUnstarted: `${icons}#status-todo`,
|
|
|
|
CategoryStarted: `${icons}#status-inprogress`,
|
|
|
|
CategoryCompleted: `${icons}#status-done`,
|
|
|
|
CategoryCanceled: `${icons}#status-canceled`,
|
2022-04-02 04:06:48 +00:00
|
|
|
PriorityNoPriority: `${icons}#priority-nopriority`,
|
|
|
|
PriorityUrgent: `${icons}#priority-urgent`,
|
|
|
|
PriorityHigh: `${icons}#priority-high`,
|
|
|
|
PriorityMedium: `${icons}#priority-medium`,
|
2022-05-18 05:35:34 +00:00
|
|
|
PriorityLow: `${icons}#priority-low`,
|
|
|
|
|
2023-03-17 06:17:53 +00:00
|
|
|
ComponentsList: `${icons}#list`,
|
|
|
|
ComponentsTimeline: `${icons}#timeline`,
|
2022-05-18 15:57:11 +00:00
|
|
|
|
2023-03-17 06:17:53 +00:00
|
|
|
ComponentStatusBacklog: `${icons}#component-status-backlog`,
|
|
|
|
ComponentStatusPlanned: `${icons}#component-status-planned`,
|
|
|
|
ComponentStatusInProgress: `${icons}#component-status-in-progress`,
|
|
|
|
ComponentStatusPaused: `${icons}#component-status-paused`,
|
|
|
|
ComponentStatusCompleted: `${icons}#component-status-completed`,
|
|
|
|
ComponentStatusCanceled: `${icons}#component-status-canceled`,
|
2022-06-14 03:03:41 +00:00
|
|
|
|
2023-05-16 11:56:29 +00:00
|
|
|
MilestoneStatusPlanned: `${icons}#component-status-planned`,
|
|
|
|
MilestoneStatusInProgress: `${icons}#component-status-in-progress`,
|
|
|
|
MilestoneStatusPaused: `${icons}#component-status-paused`,
|
|
|
|
MilestoneStatusCompleted: `${icons}#component-status-completed`,
|
|
|
|
MilestoneStatusCanceled: `${icons}#component-status-canceled`,
|
2022-08-03 07:05:19 +00:00
|
|
|
|
2022-06-14 03:03:41 +00:00
|
|
|
CopyID: `${icons}#copyID`,
|
|
|
|
CopyURL: `${icons}#copyURL`,
|
2022-08-16 10:19:33 +00:00
|
|
|
CopyBranch: `${icons}#copyBranch`,
|
2022-10-11 06:39:26 +00:00
|
|
|
Duplicate: `${icons}#duplicate`,
|
2022-08-16 10:19:33 +00:00
|
|
|
TimeReport: `${icons}#timeReport`,
|
2023-01-24 13:43:06 +00:00
|
|
|
Estimation: `${icons}#timeReport`,
|
|
|
|
|
|
|
|
Timeline: `${icons}#timeline`
|
2022-03-31 08:32:42 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
addStringsLoader(trackerId, async (lang: string) => await import(`../lang/${lang}.json`))
|