chore: move constants file
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
|||||||
PermissionDialog,
|
PermissionDialog,
|
||||||
removeFromArray,
|
removeFromArray,
|
||||||
} from '@standardnotes/snjs';
|
} from '@standardnotes/snjs';
|
||||||
import { PANEL_NAME_NOTES, PANEL_NAME_NAVIGATION } from '@/views/constants';
|
import { PANEL_NAME_NOTES, PANEL_NAME_NAVIGATION } from '@/constants';
|
||||||
import { STRING_DEFAULT_FILE_ERROR } from '@/strings';
|
import { STRING_DEFAULT_FILE_ERROR } from '@/strings';
|
||||||
import { alertDialog } from '@/services/alertService';
|
import { alertDialog } from '@/services/alertService';
|
||||||
import { WebAppEvent, WebApplication } from '@/ui_models/application';
|
import { WebAppEvent, WebApplication } from '@/ui_models/application';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { WebApplication } from '@/ui_models/application';
|
import { WebApplication } from '@/ui_models/application';
|
||||||
import { AppState } from '@/ui_models/app_state';
|
import { AppState } from '@/ui_models/app_state';
|
||||||
import { MENU_MARGIN_FROM_APP_BORDER } from '@/views/constants';
|
import { MENU_MARGIN_FROM_APP_BORDER } from '@/constants';
|
||||||
import {
|
import {
|
||||||
Disclosure,
|
Disclosure,
|
||||||
DisclosureButton,
|
DisclosureButton,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { SmartTagsSection } from '@/components/Tags/SmartTagsSection';
|
import { SmartTagsSection } from '@/components/Tags/SmartTagsSection';
|
||||||
import { TagsSection } from '@/components/Tags/TagsSection';
|
import { TagsSection } from '@/components/Tags/TagsSection';
|
||||||
import { WebApplication } from '@/ui_models/application';
|
import { WebApplication } from '@/ui_models/application';
|
||||||
import { PANEL_NAME_NAVIGATION } from '@/views/constants';
|
import { PANEL_NAME_NAVIGATION } from '@/constants';
|
||||||
import { ApplicationEvent, PrefKey } from '@standardnotes/snjs';
|
import { ApplicationEvent, PrefKey } from '@standardnotes/snjs';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
import { FunctionComponent } from 'preact';
|
import { FunctionComponent } from 'preact';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { NotesListItem } from './NotesListItem';
|
|||||||
import {
|
import {
|
||||||
FOCUSABLE_BUT_NOT_TABBABLE,
|
FOCUSABLE_BUT_NOT_TABBABLE,
|
||||||
NOTES_LIST_SCROLL_THRESHOLD,
|
NOTES_LIST_SCROLL_THRESHOLD,
|
||||||
} from '@/views/constants';
|
} from '@/constants';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
application: WebApplication;
|
application: WebApplication;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { AppState } from '@/ui_models/app_state';
|
|||||||
import {
|
import {
|
||||||
MENU_MARGIN_FROM_APP_BORDER,
|
MENU_MARGIN_FROM_APP_BORDER,
|
||||||
MAX_MENU_SIZE_MULTIPLIER,
|
MAX_MENU_SIZE_MULTIPLIER,
|
||||||
} from '@/views/constants';
|
} from '@/constants';
|
||||||
import {
|
import {
|
||||||
Disclosure,
|
Disclosure,
|
||||||
DisclosureButton,
|
DisclosureButton,
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import {
|
|||||||
MENU_MARGIN_FROM_APP_BORDER,
|
MENU_MARGIN_FROM_APP_BORDER,
|
||||||
MAX_MENU_SIZE_MULTIPLIER,
|
MAX_MENU_SIZE_MULTIPLIER,
|
||||||
BYTES_IN_ONE_MEGABYTE,
|
BYTES_IN_ONE_MEGABYTE,
|
||||||
} from '@/views/constants';
|
} from '@/constants';
|
||||||
|
|
||||||
export type NotesOptionsProps = {
|
export type NotesOptionsProps = {
|
||||||
application: WebApplication;
|
application: WebApplication;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { KeyboardKey, KeyboardModifier } from '@/services/ioService';
|
import { KeyboardKey, KeyboardModifier } from '@/services/ioService';
|
||||||
import { WebApplication } from '@/ui_models/application';
|
import { WebApplication } from '@/ui_models/application';
|
||||||
import { AppState } from '@/ui_models/app_state';
|
import { AppState } from '@/ui_models/app_state';
|
||||||
import { PANEL_NAME_NOTES } from '@/views/constants';
|
import { PANEL_NAME_NOTES } from '@/constants';
|
||||||
import { PrefKey } from '@standardnotes/snjs';
|
import { PrefKey } from '@standardnotes/snjs';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
import { FunctionComponent } from 'preact';
|
import { FunctionComponent } from 'preact';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FOCUSABLE_BUT_NOT_TABBABLE } from '@/views/constants';
|
import { FOCUSABLE_BUT_NOT_TABBABLE } from '@/constants';
|
||||||
import { FunctionComponent } from 'preact';
|
import { FunctionComponent } from 'preact';
|
||||||
|
|
||||||
type HistoryListItemProps = {
|
type HistoryListItemProps = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { DAYS_IN_A_WEEK, DAYS_IN_A_YEAR } from '@/views/constants';
|
import { DAYS_IN_A_WEEK, DAYS_IN_A_YEAR } from '@/constants';
|
||||||
import {
|
import {
|
||||||
HistoryEntry,
|
HistoryEntry,
|
||||||
NoteHistoryEntry,
|
NoteHistoryEntry,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { JSXInternal } from 'preact/src/jsx';
|
|||||||
import { Icon } from '../Icon';
|
import { Icon } from '../Icon';
|
||||||
import { Switch, SwitchProps } from '../Switch';
|
import { Switch, SwitchProps } from '../Switch';
|
||||||
import { IconType } from '@standardnotes/snjs';
|
import { IconType } from '@standardnotes/snjs';
|
||||||
import { FOCUSABLE_BUT_NOT_TABBABLE } from '@/views/constants';
|
import { FOCUSABLE_BUT_NOT_TABBABLE } from '@/constants';
|
||||||
|
|
||||||
export enum MenuItemType {
|
export enum MenuItemType {
|
||||||
IconButton,
|
IconButton,
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import { KeyboardKey } from '@/services/ioService';
|
import { KeyboardKey } from '@/services/ioService';
|
||||||
import {
|
import { FOCUSABLE_BUT_NOT_TABBABLE, MILLISECONDS_IN_A_DAY } from '@/constants';
|
||||||
FOCUSABLE_BUT_NOT_TABBABLE,
|
|
||||||
MILLISECONDS_IN_A_DAY,
|
|
||||||
} from '@/views/constants';
|
|
||||||
import {
|
import {
|
||||||
StateUpdater,
|
StateUpdater,
|
||||||
useCallback,
|
useCallback,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { confirmDialog } from '@/services/alertService';
|
import { confirmDialog } from '@/services/alertService';
|
||||||
import { KeyboardModifier } from '@/services/ioService';
|
import { KeyboardModifier } from '@/services/ioService';
|
||||||
import { StringEmptyTrash, Strings, StringUtils } from '@/strings';
|
import { StringEmptyTrash, Strings, StringUtils } from '@/strings';
|
||||||
import { MENU_MARGIN_FROM_APP_BORDER } from '@/views/constants';
|
import { MENU_MARGIN_FROM_APP_BORDER } from '@/constants';
|
||||||
import {
|
import {
|
||||||
UuidString,
|
UuidString,
|
||||||
SNNote,
|
SNNote,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Platform, platformFromString } from '@standardnotes/snjs';
|
import { Platform, platformFromString } from '@standardnotes/snjs';
|
||||||
import { IsDesktopPlatform, IsWebPlatform } from '@/version';
|
import { IsDesktopPlatform, IsWebPlatform } from '@/version';
|
||||||
import { EMAIL_REGEX } from '@Views/constants';
|
import { EMAIL_REGEX } from '../constants';
|
||||||
export { isMobile } from './isMobile';
|
export { isMobile } from './isMobile';
|
||||||
|
|
||||||
declare const process: {
|
declare const process: {
|
||||||
|
|||||||
Reference in New Issue
Block a user