Some checks failed
CodeQL / Analyze (javascript) (push) Failing after 16s
CodeQL / Analyze (python) (push) Failing after 3s
i18n sync check / check:sync (push) Failing after 3s
React Doctor / react-doctor (push) Failing after 16s
Branch Build CE / Build-Push Admin Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge Admin Manifest (push) Has been cancelled
Branch Build CE / Build-Push Web Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge Web Manifest (push) Has been cancelled
Branch Build CE / Build-Push Space Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge Proxy Manifest (push) Has been cancelled
Branch Build CE / Merge Space Manifest (push) Has been cancelled
Branch Build CE / Prepare AIO Assets (push) Has been cancelled
Branch Build CE / Build Setup (push) Has been cancelled
Branch Build CE / Build-Push Live Collaboration Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge Live Collaboration Manifest (push) Has been cancelled
Branch Build CE / Build-Push API Server Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge API Server Manifest (push) Has been cancelled
Branch Build CE / Build-Push Proxy Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Build-Push AIO Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge AIO Manifest (push) Has been cancelled
Branch Build CE / Upload Build Assets (push) Has been cancelled
Branch Build CE / Build Release (push) Has been cancelled
70 lines
1.7 KiB
TypeScript
70 lines
1.7 KiB
TypeScript
/**
|
|
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
import { EIssueLayoutTypes } from "@plane/types";
|
|
|
|
export type TIssueLayout = "list" | "kanban" | "calendar" | "spreadsheet" | "gantt";
|
|
|
|
export type TIssueLayoutMap = Record<
|
|
EIssueLayoutTypes,
|
|
{
|
|
key: EIssueLayoutTypes;
|
|
i18n_title: string;
|
|
i18n_label: string;
|
|
}
|
|
>;
|
|
|
|
export const SITES_ISSUE_LAYOUTS: {
|
|
key: TIssueLayout;
|
|
titleTranslationKey: string;
|
|
icon: string;
|
|
}[] = [
|
|
{
|
|
key: "list",
|
|
icon: "List",
|
|
titleTranslationKey: "issue.layouts.list",
|
|
},
|
|
{
|
|
key: "kanban",
|
|
icon: "Kanban",
|
|
titleTranslationKey: "issue.layouts.kanban",
|
|
},
|
|
];
|
|
|
|
export const ISSUE_LAYOUT_MAP: TIssueLayoutMap = {
|
|
[EIssueLayoutTypes.LIST]: {
|
|
key: EIssueLayoutTypes.LIST,
|
|
i18n_title: "issue.layouts.title.list",
|
|
i18n_label: "issue.layouts.list",
|
|
},
|
|
[EIssueLayoutTypes.KANBAN]: {
|
|
key: EIssueLayoutTypes.KANBAN,
|
|
i18n_title: "issue.layouts.title.kanban",
|
|
i18n_label: "issue.layouts.kanban",
|
|
},
|
|
[EIssueLayoutTypes.CALENDAR]: {
|
|
key: EIssueLayoutTypes.CALENDAR,
|
|
i18n_title: "issue.layouts.title.calendar",
|
|
i18n_label: "issue.layouts.calendar",
|
|
},
|
|
[EIssueLayoutTypes.SPREADSHEET]: {
|
|
key: EIssueLayoutTypes.SPREADSHEET,
|
|
i18n_title: "issue.layouts.title.spreadsheet",
|
|
i18n_label: "issue.layouts.spreadsheet",
|
|
},
|
|
[EIssueLayoutTypes.GANTT]: {
|
|
key: EIssueLayoutTypes.GANTT,
|
|
i18n_title: "issue.layouts.title.gantt",
|
|
i18n_label: "issue.layouts.gantt",
|
|
},
|
|
};
|
|
|
|
export const ISSUE_LAYOUTS: {
|
|
key: EIssueLayoutTypes;
|
|
i18n_title: string;
|
|
i18n_label: string;
|
|
}[] = Object.values(ISSUE_LAYOUT_MAP);
|