Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

3.5 KB
Raw Blame
/*
This file is part of the Notesnook project (https://notesnook.com/)

Copyright (C) 2023 Streetwriters (Private) Limited

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

import React, { ReactElement } from "react";
import { View } from "react-native";
import { AttachmentDialog } from "../../components/attachments";
import { ChangePassword } from "../../components/auth/change-password";
import { DefaultAppStyles } from "../../utils/styles";
import { AttachmentGroupProgress } from "./attachment-group-progress";
import { ChangeEmail } from "./change-email";
import DebugLogs from "./debug";
import { ConfigureToolbar } from "./editor/configure-toolbar";
import { Licenses } from "./licenses";
import {
  ApplockTimerPicker,
  BackupReminderPicker,
  BackupWithAttachmentsReminderPicker,
  DateFormatPicker,
  DayFormatPicker,
  WeekFormatPicker,
  FontPicker,
  LanguagePicker,
  HomePicker,
  ImageCompressionPicker,
  SidebarTabPicker,
  TimeFormatPicker,
  TrashIntervalPicker,
  VaultLockTimerPicker
} from "./picker/pickers";
import { RestoreBackup } from "./restore-backup";
import { ServersConfiguration } from "./server-config";
import SoundPicker from "./sound-picker";
import ThemeSelector from "./theme-selector";
import { TitleFormat } from "./title-format";
import { NotesnookCircle } from "./notesnook-circle";
import {
  ManageInboxKeys,
  InboxKeysList,
  SetupInboxKeys
} from "./manage-inbox-keys";
import { FailedInboxItems } from "./failed-inbox-items";

export const components: { [name: string]: ReactElement } = {
  homeselector: <HomePicker />,
  autobackups: <BackupReminderPicker />,
  configuretoolbar: <ConfigureToolbar />,
  "debug-logs": <DebugLogs />,
  "sound-picker": <SoundPicker />,
  licenses: <Licenses />,
  "trash-interval-selector": <TrashIntervalPicker />,
  "language-selector": <LanguagePicker />,
  "font-selector": <FontPicker />,
  "title-format": <TitleFormat />,
  "date-format-selector": <DateFormatPicker />,
  "time-format-selector": <TimeFormatPicker />,
  "day-format-selector": <DayFormatPicker />,
  "week-format-selector": <WeekFormatPicker />,
  "image-compression-picker": <ImageCompressionPicker />,
  "theme-selector": <ThemeSelector />,
  "applock-timer": <ApplockTimerPicker />,
  "vault-lock-timer": <VaultLockTimerPicker />,
  autobackupsattachments: <BackupWithAttachmentsReminderPicker />,
  backuprestore: <RestoreBackup />,
  "server-config": <ServersConfiguration />,
  "attachments-manager": <AttachmentDialog note={undefined} isSheet={false} />,
  "offline-mode-progress": (
    <View style={{ paddingHorizontal: DefaultAppStyles.GAP }}>
      <AttachmentGroupProgress groupId="offline-mode" />
    </View>
  ),
  "sidebar-tab-selector": <SidebarTabPicker />,
  "change-password": <ChangePassword />,
  "change-email": <ChangeEmail />,
  "notesnook-circle": <NotesnookCircle />,
  "manage-inbox-keys": <ManageInboxKeys />,
  "inbox-keys": <InboxKeysList />,
  "failed-inbox-items": <FailedInboxItems />,
  "setup-inbox-keys": <SetupInboxKeys />
};