From e0a258e8af33c9434d2942efa8e5bd3974d736e0 Mon Sep 17 00:00:00 2001 From: and Date: Thu, 29 Aug 2024 15:01:11 +0200 Subject: [PATCH] Removing unused imports --- src/calendar-app/calendar/gui/CalendarRow.ts | 3 +-- src/calendar-app/calendar/gui/EditCalendarDialog.ts | 10 ++-------- .../calendar/view/CalendarAgendaItemView.ts | 1 - .../calendar/view/CalendarDayEventsView.ts | 1 - .../calendar/view/ContinuingCalendarEventBubble.ts | 2 +- src/mail-app/translations/de_sie.ts | 4 ++-- 6 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/calendar-app/calendar/gui/CalendarRow.ts b/src/calendar-app/calendar/gui/CalendarRow.ts index 4356c6ed3123..422e2fd7d0f4 100644 --- a/src/calendar-app/calendar/gui/CalendarRow.ts +++ b/src/calendar-app/calendar/gui/CalendarRow.ts @@ -4,14 +4,13 @@ import m, { Children, VnodeDOM } from "mithril" import { SelectableRowContainer, SelectableRowContainerAttrs, SelectableRowSelectedSetter } from "../../../common/gui/SelectableRowContainer.js" import { VirtualRow } from "../../../common/gui/base/ListUtils.js" -import { getTimeZone, isBirthdayEvent } from "../../../common/calendar/date/CalendarUtils.js" +import { getTimeZone } from "../../../common/calendar/date/CalendarUtils.js" import { ViewHolder } from "../../../common/gui/base/List.js" import { styles } from "../../../common/gui/styles.js" import { DefaultAnimationTime } from "../../../common/gui/animation/Animations.js" import { formatEventDuration, getDisplayEventTitle, getEventColor, getGroupColors } from "./CalendarGuiUtils.js" import { GroupColors } from "../view/CalendarView.js" -import { CLIENT_ONLY_CALENDAR_BIRTHDAYS_BASE_ID } from "../../../common/api/common/TutanotaConstants.js" export class CalendarRow implements VirtualRow { top: number diff --git a/src/calendar-app/calendar/gui/EditCalendarDialog.ts b/src/calendar-app/calendar/gui/EditCalendarDialog.ts index fc391d1e861d..c0baf6d695ac 100644 --- a/src/calendar-app/calendar/gui/EditCalendarDialog.ts +++ b/src/calendar-app/calendar/gui/EditCalendarDialog.ts @@ -5,14 +5,8 @@ import Stream from "mithril/stream" import { TextField, TextFieldType } from "../../../common/gui/base/TextField.js" import { lang, type TranslationKey } from "../../../common/misc/LanguageViewModel.js" import type { TranslationKeyType } from "../../../common/misc/TranslationKey.js" -import { deepEqual, isNotNull, lazyStringValue } from "@tutao/tutanota-utils" -import { - AlarmInterval, - CalendarType, - isClientOnlyCalendarType, - isExternalCalendarType, - isNormalCalendarType, -} from "../../../common/calendar/date/CalendarUtils.js" +import { deepEqual, isNotNull } from "@tutao/tutanota-utils" +import { AlarmInterval, CalendarType, isExternalCalendarType, isNormalCalendarType } from "../../../common/calendar/date/CalendarUtils.js" import { RemindersEditor } from "./RemindersEditor.js" import { generateRandomColor } from "./CalendarGuiUtils.js" import { checkURLString, isIcal } from "../../../common/calendar/import/ImportExportUtils.js" diff --git a/src/calendar-app/calendar/view/CalendarAgendaItemView.ts b/src/calendar-app/calendar/view/CalendarAgendaItemView.ts index 3db0ecebe8de..f918415e68a1 100644 --- a/src/calendar-app/calendar/view/CalendarAgendaItemView.ts +++ b/src/calendar-app/calendar/view/CalendarAgendaItemView.ts @@ -6,7 +6,6 @@ import { styles } from "../../../common/gui/styles.js" import { DefaultAnimationTime } from "../../../common/gui/animation/Animations.js" import { px } from "../../../common/gui/size.js" import { TabIndex } from "../../../common/api/common/TutanotaConstants.js" -import { lang } from "../../../common/misc/LanguageViewModel.js" import { getDisplayEventTitle } from "../gui/CalendarGuiUtils.js" import { isBirthdayEvent } from "../../../common/calendar/date/CalendarUtils.js" diff --git a/src/calendar-app/calendar/view/CalendarDayEventsView.ts b/src/calendar-app/calendar/view/CalendarDayEventsView.ts index 305a10660cf2..bbd4649212fc 100644 --- a/src/calendar-app/calendar/view/CalendarDayEventsView.ts +++ b/src/calendar-app/calendar/view/CalendarDayEventsView.ts @@ -28,7 +28,6 @@ import type { GroupColors } from "./CalendarView" import { styles } from "../../../common/gui/styles" import { locator } from "../../../common/api/main/CommonLocator.js" import { CalendarTimeIndicator } from "./CalendarTimeIndicator.js" -import { lang } from "../../../common/misc/LanguageViewModel.js" import { listIdPart } from "../../../common/api/common/utils/EntityUtils.js" export type Attrs = { diff --git a/src/calendar-app/calendar/view/ContinuingCalendarEventBubble.ts b/src/calendar-app/calendar/view/ContinuingCalendarEventBubble.ts index 22d58ee452f2..0fe0a5ccfd6d 100644 --- a/src/calendar-app/calendar/view/ContinuingCalendarEventBubble.ts +++ b/src/calendar-app/calendar/view/ContinuingCalendarEventBubble.ts @@ -1,5 +1,5 @@ import m, { Children, Component, Vnode } from "mithril" -import { hasAlarmsForTheUser, isBirthdayEvent, isClientOnlyCalendar } from "../../../common/calendar/date/CalendarUtils" +import { hasAlarmsForTheUser, isClientOnlyCalendar } from "../../../common/calendar/date/CalendarUtils" import { CalendarEventBubble } from "./CalendarEventBubble" import type { CalendarEvent } from "../../../common/api/entities/tutanota/TypeRefs.js" import type { User } from "../../../common/api/entities/sys/TypeRefs.js" diff --git a/src/mail-app/translations/de_sie.ts b/src/mail-app/translations/de_sie.ts index bef55335fefc..792e99a3edc0 100644 --- a/src/mail-app/translations/de_sie.ts +++ b/src/mail-app/translations/de_sie.ts @@ -1800,8 +1800,8 @@ export default { "yourFolders_action": "Ihre ORDNER", "yourMessage_label": "Ihre Nachricht", "you_label": "Sie", + "makeAdminPendingUserGroupKeyRotationError_msg": "Der Benutzer kann zur Zeit keine Admin-Rechte erhalten. Der Benutzer muss sich von all seinen Geräten ausloggen und neu einloggen. Anschließend kann die Aktion ausgeführt werden.", "birthdayEvent_title": `{name} Geburtstag`, - "birthdayEventAge_title": "({age} Jahre alt)", - "makeAdminPendingUserGroupKeyRotationError_msg": "Der Benutzer kann zur Zeit keine Admin-Rechte erhalten. Der Benutzer muss sich von all seinen Geräten ausloggen und neu einloggen. Anschließend kann die Aktion ausgeführt werden." + "birthdayEventAge_title": "({age} Jahre alt)" } }