refactor: sort imports in desktop-client alphabetically
This commit is contained in:
parent
8e41d8d2dd
commit
887df1e388
25 changed files with 48 additions and 49 deletions
|
@ -6,8 +6,8 @@ import {
|
||||||
init as initConnection,
|
init as initConnection,
|
||||||
send
|
send
|
||||||
} from 'loot-core/src/platform/client/fetch';
|
} from 'loot-core/src/platform/client/fetch';
|
||||||
import installPolyfills from '../polyfills';
|
|
||||||
import { styles, hasHiddenScrollbars } from 'loot-design/src/style';
|
import { styles, hasHiddenScrollbars } from 'loot-design/src/style';
|
||||||
|
import installPolyfills from '../polyfills';
|
||||||
import FatalError from './FatalError';
|
import FatalError from './FatalError';
|
||||||
import ManagementApp from './manager/ManagementApp';
|
import ManagementApp from './manager/ManagementApp';
|
||||||
import FinancesApp from './FinancesApp';
|
import FinancesApp from './FinancesApp';
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View, Block } from 'loot-design/src/components/common';
|
import { View, Block } from 'loot-design/src/components/common';
|
||||||
import { css } from 'glamor';
|
import { css } from 'glamor';
|
||||||
import Background from './Background';
|
|
||||||
import AnimatedLoading from 'loot-design/src/svg/v1/AnimatedLoading';
|
import AnimatedLoading from 'loot-design/src/svg/v1/AnimatedLoading';
|
||||||
import { colors } from 'loot-design/src/style';
|
import { colors } from 'loot-design/src/style';
|
||||||
|
import Background from './Background';
|
||||||
|
|
||||||
function AppBackground({ initializing, loadingText }) {
|
function AppBackground({ initializing, loadingText }) {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -10,15 +10,15 @@ import { SpreadsheetProvider } from 'loot-core/src/client/SpreadsheetProvider';
|
||||||
import checkForUpgradeNotifications from 'loot-core/src/client/upgrade-notifications';
|
import checkForUpgradeNotifications from 'loot-core/src/client/upgrade-notifications';
|
||||||
import { colors } from 'loot-design/src/style';
|
import { colors } from 'loot-design/src/style';
|
||||||
import { View } from 'loot-design/src/components/common';
|
import { View } from 'loot-design/src/components/common';
|
||||||
import BankSyncStatus from './BankSyncStatus';
|
|
||||||
import { BudgetMonthCountProvider } from 'loot-design/src/components/budget/BudgetMonthCountContext';
|
import { BudgetMonthCountProvider } from 'loot-design/src/components/budget/BudgetMonthCountContext';
|
||||||
import * as undo from 'loot-core/src/platform/client/undo';
|
import * as undo from 'loot-core/src/platform/client/undo';
|
||||||
import { PageTypeProvider } from './Page';
|
|
||||||
import { getLocationState } from '../util/location-state';
|
|
||||||
import { ActiveLocationProvider } from './ActiveLocation';
|
|
||||||
import { makeLocationState } from '../util/location-state';
|
|
||||||
import { PayeesProvider } from 'loot-core/src/client/data-hooks/payees';
|
import { PayeesProvider } from 'loot-core/src/client/data-hooks/payees';
|
||||||
import { AccountsProvider } from 'loot-core/src/client/data-hooks/accounts';
|
import { AccountsProvider } from 'loot-core/src/client/data-hooks/accounts';
|
||||||
|
import { getLocationState } from '../util/location-state';
|
||||||
|
import { makeLocationState } from '../util/location-state';
|
||||||
|
import { PageTypeProvider } from './Page';
|
||||||
|
import { ActiveLocationProvider } from './ActiveLocation';
|
||||||
|
import BankSyncStatus from './BankSyncStatus';
|
||||||
|
|
||||||
import Titlebar, { TitlebarProvider } from './Titlebar';
|
import Titlebar, { TitlebarProvider } from './Titlebar';
|
||||||
import FloatableSidebar, { SidebarProvider } from './FloatableSidebar';
|
import FloatableSidebar, { SidebarProvider } from './FloatableSidebar';
|
||||||
|
|
|
@ -7,23 +7,23 @@ import Component from '@reactions/component';
|
||||||
import * as actions from 'loot-core/src/client/actions';
|
import * as actions from 'loot-core/src/client/actions';
|
||||||
import { send, listen, unlisten } from 'loot-core/src/platform/client/fetch';
|
import { send, listen, unlisten } from 'loot-core/src/platform/client/fetch';
|
||||||
|
|
||||||
import CreateAccount from './modals/CreateAccount';
|
|
||||||
import CreateLocalAccount from 'loot-design/src/components/modals/CreateLocalAccount';
|
import CreateLocalAccount from 'loot-design/src/components/modals/CreateLocalAccount';
|
||||||
import CloseAccount from 'loot-design/src/components/modals/CloseAccount';
|
import CloseAccount from 'loot-design/src/components/modals/CloseAccount';
|
||||||
import SelectLinkedAccounts from 'loot-design/src/components/modals/SelectLinkedAccounts';
|
import SelectLinkedAccounts from 'loot-design/src/components/modals/SelectLinkedAccounts';
|
||||||
import ConfigureLinkedAccounts from 'loot-design/src/components/modals/ConfigureLinkedAccounts';
|
import ConfigureLinkedAccounts from 'loot-design/src/components/modals/ConfigureLinkedAccounts';
|
||||||
import LoadBackup from 'loot-design/src/components/modals/LoadBackup';
|
import LoadBackup from 'loot-design/src/components/modals/LoadBackup';
|
||||||
|
import PlaidExternalMsg from 'loot-design/src/components/modals/PlaidExternalMsg';
|
||||||
|
import ImportTransactions from 'loot-design/src/components/modals/ImportTransactions';
|
||||||
|
import EditField from 'loot-design/src/components/modals/EditField';
|
||||||
|
import CreateAccount from './modals/CreateAccount';
|
||||||
import ManagePayeesWithData from './payees/ManagePayeesWithData';
|
import ManagePayeesWithData from './payees/ManagePayeesWithData';
|
||||||
import ManageRules from './modals/ManageRules';
|
import ManageRules from './modals/ManageRules';
|
||||||
import EditRule from './modals/EditRule';
|
import EditRule from './modals/EditRule';
|
||||||
import MergeUnusedPayees from './modals/MergeUnusedPayees';
|
import MergeUnusedPayees from './modals/MergeUnusedPayees';
|
||||||
import PlaidExternalMsg from 'loot-design/src/components/modals/PlaidExternalMsg';
|
|
||||||
import ConfirmCategoryDelete from './modals/ConfirmCategoryDelete';
|
import ConfirmCategoryDelete from './modals/ConfirmCategoryDelete';
|
||||||
import WelcomeScreen from './modals/WelcomeScreen';
|
import WelcomeScreen from './modals/WelcomeScreen';
|
||||||
import ImportTransactions from 'loot-design/src/components/modals/ImportTransactions';
|
|
||||||
import CreateEncryptionKey from './modals/CreateEncryptionKey';
|
import CreateEncryptionKey from './modals/CreateEncryptionKey';
|
||||||
import FixEncryptionKey from './modals/FixEncryptionKey';
|
import FixEncryptionKey from './modals/FixEncryptionKey';
|
||||||
import EditField from 'loot-design/src/components/modals/EditField';
|
|
||||||
|
|
||||||
function Modals({
|
function Modals({
|
||||||
history,
|
history,
|
||||||
|
|
|
@ -16,11 +16,11 @@ import {
|
||||||
P
|
P
|
||||||
} from 'loot-design/src/components/common';
|
} from 'loot-design/src/components/common';
|
||||||
import SheetValue from 'loot-design/src/components/spreadsheet/SheetValue';
|
import SheetValue from 'loot-design/src/components/spreadsheet/SheetValue';
|
||||||
import { MonthCountSelector } from './budget/MonthCountSelector';
|
|
||||||
import ArrowButtonRight1 from 'loot-design/src/svg/v2/ArrowButtonRight1';
|
import ArrowButtonRight1 from 'loot-design/src/svg/v2/ArrowButtonRight1';
|
||||||
import NavigationMenu from 'loot-design/src/svg/v2/NavigationMenu';
|
import NavigationMenu from 'loot-design/src/svg/v2/NavigationMenu';
|
||||||
import ArrowLeft from 'loot-design/src/svg/v1/ArrowLeft';
|
import ArrowLeft from 'loot-design/src/svg/v1/ArrowLeft';
|
||||||
import AlertTriangle from 'loot-design/src/svg/v2/AlertTriangle';
|
import AlertTriangle from 'loot-design/src/svg/v2/AlertTriangle';
|
||||||
|
import { MonthCountSelector } from './budget/MonthCountSelector';
|
||||||
import AccountSyncCheck from './accounts/AccountSyncCheck';
|
import AccountSyncCheck from './accounts/AccountSyncCheck';
|
||||||
import LoggedInUser from './LoggedInUser';
|
import LoggedInUser from './LoggedInUser';
|
||||||
import AnimatedRefresh from './AnimatedRefresh';
|
import AnimatedRefresh from './AnimatedRefresh';
|
||||||
|
|
|
@ -25,7 +25,6 @@ import DotsHorizontalTriple from 'loot-design/src/svg/v1/DotsHorizontalTriple';
|
||||||
import Pencil1 from 'loot-design/src/svg/v2/Pencil1';
|
import Pencil1 from 'loot-design/src/svg/v2/Pencil1';
|
||||||
import SearchAlternate from 'loot-design/src/svg/v2/SearchAlternate';
|
import SearchAlternate from 'loot-design/src/svg/v2/SearchAlternate';
|
||||||
import DownloadThickBottom from 'loot-design/src/svg/v2/DownloadThickBottom';
|
import DownloadThickBottom from 'loot-design/src/svg/v2/DownloadThickBottom';
|
||||||
import AnimatedRefresh from '../AnimatedRefresh';
|
|
||||||
import Add from 'loot-design/src/svg/v1/Add';
|
import Add from 'loot-design/src/svg/v1/Add';
|
||||||
import format from 'loot-design/src/components/spreadsheet/format';
|
import format from 'loot-design/src/components/spreadsheet/format';
|
||||||
import useSheetValue from 'loot-design/src/components/spreadsheet/useSheetValue';
|
import useSheetValue from 'loot-design/src/components/spreadsheet/useSheetValue';
|
||||||
|
@ -43,25 +42,26 @@ import {
|
||||||
updateTransaction,
|
updateTransaction,
|
||||||
ungroupTransactions
|
ungroupTransactions
|
||||||
} from 'loot-core/src/shared/transactions';
|
} from 'loot-core/src/shared/transactions';
|
||||||
import {
|
|
||||||
SplitsExpandedProvider,
|
|
||||||
useSplitsExpanded,
|
|
||||||
isPreviewId
|
|
||||||
} from './TransactionsTable';
|
|
||||||
import { styles, colors } from 'loot-design/src/style';
|
import { styles, colors } from 'loot-design/src/style';
|
||||||
import TransactionList from './TransactionList';
|
|
||||||
import { authorizeBank } from '../../plaid';
|
|
||||||
import {
|
import {
|
||||||
SelectedProviderWithItems,
|
SelectedProviderWithItems,
|
||||||
useSelectedItems
|
useSelectedItems
|
||||||
} from 'loot-design/src/components/useSelected';
|
} from 'loot-design/src/components/useSelected';
|
||||||
import { KeyHandlers } from 'loot-design/src/components/KeyHandlers';
|
import { KeyHandlers } from 'loot-design/src/components/KeyHandlers';
|
||||||
import { FilterButton, AppliedFilters } from './Filters';
|
|
||||||
import {
|
import {
|
||||||
SchedulesProvider,
|
SchedulesProvider,
|
||||||
useCachedSchedules
|
useCachedSchedules
|
||||||
} from 'loot-core/src/client/data-hooks/schedules';
|
} from 'loot-core/src/client/data-hooks/schedules';
|
||||||
|
import { authorizeBank } from '../../plaid';
|
||||||
|
import AnimatedRefresh from '../AnimatedRefresh';
|
||||||
import { useActiveLocation } from '../ActiveLocation';
|
import { useActiveLocation } from '../ActiveLocation';
|
||||||
|
import { FilterButton, AppliedFilters } from './Filters';
|
||||||
|
import TransactionList from './TransactionList';
|
||||||
|
import {
|
||||||
|
SplitsExpandedProvider,
|
||||||
|
useSplitsExpanded,
|
||||||
|
isPreviewId
|
||||||
|
} from './TransactionsTable';
|
||||||
|
|
||||||
function EmptyMessage({ onAdd }) {
|
function EmptyMessage({ onAdd }) {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -30,9 +30,9 @@ import {
|
||||||
} from 'loot-core/src/shared/rules';
|
} from 'loot-core/src/shared/rules';
|
||||||
import DeleteIcon from 'loot-design/src/svg/Delete';
|
import DeleteIcon from 'loot-design/src/svg/Delete';
|
||||||
import SettingsSliderAlternate from 'loot-design/src/svg/v2/SettingsSliderAlternate';
|
import SettingsSliderAlternate from 'loot-design/src/svg/v2/SettingsSliderAlternate';
|
||||||
|
import { colors } from 'loot-design/src/style';
|
||||||
import GenericInput from '../util/GenericInput';
|
import GenericInput from '../util/GenericInput';
|
||||||
import { Value } from '../modals/ManageRules';
|
import { Value } from '../modals/ManageRules';
|
||||||
import { colors } from 'loot-design/src/style';
|
|
||||||
|
|
||||||
let filterFields = [
|
let filterFields = [
|
||||||
'date',
|
'date',
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import React, { useRef, useEffect, useCallback, useLayoutEffect } from 'react';
|
import React, { useRef, useEffect, useCallback, useLayoutEffect } from 'react';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
import { TransactionTable } from './TransactionsTable';
|
|
||||||
import {
|
import {
|
||||||
splitTransaction,
|
splitTransaction,
|
||||||
updateTransaction,
|
updateTransaction,
|
||||||
|
@ -10,6 +9,7 @@ import {
|
||||||
} from 'loot-core/src/shared/transactions';
|
} from 'loot-core/src/shared/transactions';
|
||||||
import { send } from 'loot-core/src/platform/client/fetch';
|
import { send } from 'loot-core/src/platform/client/fetch';
|
||||||
import { getChangedValues, applyChanges } from 'loot-core/src/shared/util';
|
import { getChangedValues, applyChanges } from 'loot-core/src/shared/util';
|
||||||
|
import { TransactionTable } from './TransactionsTable';
|
||||||
const uuid = require('loot-core/src/platform/uuid');
|
const uuid = require('loot-core/src/platform/uuid');
|
||||||
|
|
||||||
// When data changes, there are two ways to update the UI:
|
// When data changes, there are two ways to update the UI:
|
||||||
|
|
|
@ -61,9 +61,9 @@ import {
|
||||||
useSelectedItems
|
useSelectedItems
|
||||||
} from 'loot-design/src/components/useSelected';
|
} from 'loot-design/src/components/useSelected';
|
||||||
import { useMergedRefs } from 'loot-design/src/components/useMergedRefs';
|
import { useMergedRefs } from 'loot-design/src/components/useMergedRefs';
|
||||||
import { getStatusProps } from '../schedules/StatusBadge';
|
|
||||||
import { useCachedSchedules } from 'loot-core/src/client/data-hooks/schedules';
|
import { useCachedSchedules } from 'loot-core/src/client/data-hooks/schedules';
|
||||||
import { getScheduledAmount } from 'loot-core/src/shared/schedules';
|
import { getScheduledAmount } from 'loot-core/src/shared/schedules';
|
||||||
|
import { getStatusProps } from '../schedules/StatusBadge';
|
||||||
|
|
||||||
let TABLE_BACKGROUND_COLOR = colors.n11;
|
let TABLE_BACKGROUND_COLOR = colors.n11;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ import * as actions from 'loot-core/src/client/actions';
|
||||||
import { send, listen } from 'loot-core/src/platform/client/fetch';
|
import { send, listen } from 'loot-core/src/platform/client/fetch';
|
||||||
import * as monthUtils from 'loot-core/src/shared/months';
|
import * as monthUtils from 'loot-core/src/shared/months';
|
||||||
import { getValidMonthBounds } from 'loot-design/src/components/budget/MonthsContext';
|
import { getValidMonthBounds } from 'loot-design/src/components/budget/MonthsContext';
|
||||||
import { TitlebarContext } from '../Titlebar';
|
|
||||||
|
|
||||||
import * as rollover from 'loot-design/src/components/budget/rollover/rollover-components';
|
import * as rollover from 'loot-design/src/components/budget/rollover/rollover-components';
|
||||||
import { RolloverContext } from 'loot-design/src/components/budget/rollover/RolloverContext';
|
import { RolloverContext } from 'loot-design/src/components/budget/rollover/RolloverContext';
|
||||||
|
@ -26,6 +25,7 @@ import {
|
||||||
updateGroup,
|
updateGroup,
|
||||||
deleteGroup
|
deleteGroup
|
||||||
} from 'loot-core/src/shared/categories.js';
|
} from 'loot-core/src/shared/categories.js';
|
||||||
|
import { TitlebarContext } from '../Titlebar';
|
||||||
|
|
||||||
let _initialBudgetMonth = null;
|
let _initialBudgetMonth = null;
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,10 @@ import { Switch, Redirect, Router, Route } from 'react-router-dom';
|
||||||
import * as actions from 'loot-core/src/client/actions';
|
import * as actions from 'loot-core/src/client/actions';
|
||||||
import { View, Text } from 'loot-design/src/components/common';
|
import { View, Text } from 'loot-design/src/components/common';
|
||||||
import { colors } from 'loot-design/src/style';
|
import { colors } from 'loot-design/src/style';
|
||||||
import ServerURL from './ServerURL';
|
|
||||||
import LoggedInUser from '../LoggedInUser';
|
import LoggedInUser from '../LoggedInUser';
|
||||||
import Notifications from '../Notifications';
|
import Notifications from '../Notifications';
|
||||||
|
import useServerVersion from '../../hooks/useServerVersion';
|
||||||
|
import ServerURL from './ServerURL';
|
||||||
|
|
||||||
import Modals from './Modals';
|
import Modals from './Modals';
|
||||||
import Login from './subscribe/Login';
|
import Login from './subscribe/Login';
|
||||||
|
@ -15,7 +16,6 @@ import Bootstrap from './subscribe/Bootstrap';
|
||||||
import Error from './subscribe/Error';
|
import Error from './subscribe/Error';
|
||||||
import ChangePassword from './subscribe/ChangePassword';
|
import ChangePassword from './subscribe/ChangePassword';
|
||||||
import ConfigServer from './ConfigServer';
|
import ConfigServer from './ConfigServer';
|
||||||
import useServerVersion from '../../hooks/useServerVersion';
|
|
||||||
|
|
||||||
function Version() {
|
function Version() {
|
||||||
const version = useServerVersion();
|
const version = useServerVersion();
|
||||||
|
|
|
@ -14,7 +14,6 @@ import {
|
||||||
CustomSelect,
|
CustomSelect,
|
||||||
Tooltip
|
Tooltip
|
||||||
} from 'loot-design/src/components/common';
|
} from 'loot-design/src/components/common';
|
||||||
import GenericInput from '../util/GenericInput';
|
|
||||||
import { send } from 'loot-core/src/platform/client/fetch';
|
import { send } from 'loot-core/src/platform/client/fetch';
|
||||||
import { colors } from 'loot-design/src/style';
|
import { colors } from 'loot-design/src/style';
|
||||||
import SubtractIcon from 'loot-design/src/svg/Subtract';
|
import SubtractIcon from 'loot-design/src/svg/Subtract';
|
||||||
|
@ -33,9 +32,6 @@ import {
|
||||||
import useSelected, {
|
import useSelected, {
|
||||||
SelectedProvider
|
SelectedProvider
|
||||||
} from 'loot-design/src/components/useSelected';
|
} from 'loot-design/src/components/useSelected';
|
||||||
import SimpleTransactionsTable from '../accounts/SimpleTransactionsTable';
|
|
||||||
import { StatusBadge } from '../schedules/StatusBadge';
|
|
||||||
import DisplayId from '../util/DisplayId';
|
|
||||||
import { useSchedules } from 'loot-core/src/client/data-hooks/schedules';
|
import { useSchedules } from 'loot-core/src/client/data-hooks/schedules';
|
||||||
import {
|
import {
|
||||||
integerToCurrency,
|
integerToCurrency,
|
||||||
|
@ -43,6 +39,10 @@ import {
|
||||||
amountToInteger
|
amountToInteger
|
||||||
} from 'loot-core/src/shared/util';
|
} from 'loot-core/src/shared/util';
|
||||||
import * as monthUtils from 'loot-core/src/shared/months';
|
import * as monthUtils from 'loot-core/src/shared/months';
|
||||||
|
import SimpleTransactionsTable from '../accounts/SimpleTransactionsTable';
|
||||||
|
import { StatusBadge } from '../schedules/StatusBadge';
|
||||||
|
import DisplayId from '../util/DisplayId';
|
||||||
|
import GenericInput from '../util/GenericInput';
|
||||||
import { BetweenAmountInput } from '../util/AmountInput';
|
import { BetweenAmountInput } from '../util/AmountInput';
|
||||||
|
|
||||||
function updateValue(array, value, update) {
|
function updateValue(array, value, update) {
|
||||||
|
|
|
@ -11,13 +11,13 @@ import { styles } from 'loot-design/src/style';
|
||||||
import { send } from 'loot-core/src/platform/client/fetch';
|
import { send } from 'loot-core/src/platform/client/fetch';
|
||||||
import * as monthUtils from 'loot-core/src/shared/months';
|
import * as monthUtils from 'loot-core/src/shared/months';
|
||||||
import { integerToCurrency } from 'loot-core/src/shared/util';
|
import { integerToCurrency } from 'loot-core/src/shared/util';
|
||||||
|
import { colors } from 'loot-design/src/style';
|
||||||
import Header from './Header';
|
import Header from './Header';
|
||||||
import Change from './Change';
|
import Change from './Change';
|
||||||
import CashFlowGraph from './graphs/CashFlowGraph';
|
import CashFlowGraph from './graphs/CashFlowGraph';
|
||||||
import { cashFlowByDate } from './graphs/cash-flow-spreadsheet';
|
import { cashFlowByDate } from './graphs/cash-flow-spreadsheet';
|
||||||
import useReport from './useReport';
|
import useReport from './useReport';
|
||||||
import { useArgsMemo } from './util';
|
import { useArgsMemo } from './util';
|
||||||
import { colors } from 'loot-design/src/style';
|
|
||||||
|
|
||||||
function CashFlow() {
|
function CashFlow() {
|
||||||
const [earliestMonth, setEarliestMonth] = useState(null);
|
const [earliestMonth, setEarliestMonth] = useState(null);
|
||||||
|
|
|
@ -8,10 +8,10 @@ import {
|
||||||
VictoryGroup
|
VictoryGroup
|
||||||
} from 'victory';
|
} from 'victory';
|
||||||
import * as d from 'date-fns';
|
import * as d from 'date-fns';
|
||||||
|
import { colors } from 'loot-design/src/style';
|
||||||
import Container from '../Container';
|
import Container from '../Container';
|
||||||
import Tooltip from '../Tooltip';
|
import Tooltip from '../Tooltip';
|
||||||
import theme from '../chart-theme';
|
import theme from '../chart-theme';
|
||||||
import { colors } from 'loot-design/src/style';
|
|
||||||
|
|
||||||
function CashFlowGraph({ style, start, end, graphData, isConcise, compact }) {
|
function CashFlowGraph({ style, start, end, graphData, isConcise, compact }) {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -25,8 +25,8 @@ import useSelected, {
|
||||||
SelectedProvider
|
SelectedProvider
|
||||||
} from 'loot-design/src/components/useSelected';
|
} from 'loot-design/src/components/useSelected';
|
||||||
import { Page } from '../Page';
|
import { Page } from '../Page';
|
||||||
import { ScheduleAmountCell } from './SchedulesTable';
|
|
||||||
import DisplayId from '../util/DisplayId';
|
import DisplayId from '../util/DisplayId';
|
||||||
|
import { ScheduleAmountCell } from './SchedulesTable';
|
||||||
|
|
||||||
let ROW_HEIGHT = 43;
|
let ROW_HEIGHT = 43;
|
||||||
|
|
||||||
|
|
|
@ -18,17 +18,16 @@ import AccountAutocomplete from 'loot-design/src/components/AccountAutocomplete'
|
||||||
import { Stack, View, Text, Button } from 'loot-design/src/components/common';
|
import { Stack, View, Text, Button } from 'loot-design/src/components/common';
|
||||||
import DateSelect from 'loot-design/src/components/DateSelect';
|
import DateSelect from 'loot-design/src/components/DateSelect';
|
||||||
import { SelectedItemsButton } from 'loot-design/src/components/table';
|
import { SelectedItemsButton } from 'loot-design/src/components/table';
|
||||||
import SimpleTransactionsTable from '../accounts/SimpleTransactionsTable';
|
|
||||||
import { usePageType } from '../Page';
|
|
||||||
import { Page } from '../Page';
|
|
||||||
import useSelected, {
|
import useSelected, {
|
||||||
SelectedProvider
|
SelectedProvider
|
||||||
} from 'loot-design/src/components/useSelected';
|
} from 'loot-design/src/components/useSelected';
|
||||||
|
import RecurringSchedulePicker from 'loot-design/src/components/RecurringSchedulePicker';
|
||||||
|
import SimpleTransactionsTable from '../accounts/SimpleTransactionsTable';
|
||||||
|
import { usePageType } from '../Page';
|
||||||
|
import { Page } from '../Page';
|
||||||
import { OpSelect } from '../modals/EditRule';
|
import { OpSelect } from '../modals/EditRule';
|
||||||
import { AmountInput, BetweenAmountInput } from '../util/AmountInput';
|
import { AmountInput, BetweenAmountInput } from '../util/AmountInput';
|
||||||
|
|
||||||
import RecurringSchedulePicker from 'loot-design/src/components/RecurringSchedulePicker';
|
|
||||||
|
|
||||||
function mergeFields(defaults, initial) {
|
function mergeFields(defaults, initial) {
|
||||||
let res = { ...defaults };
|
let res = { ...defaults };
|
||||||
if (initial) {
|
if (initial) {
|
||||||
|
|
|
@ -2,9 +2,9 @@ import React from 'react';
|
||||||
import { useLocation, useHistory } from 'react-router-dom';
|
import { useLocation, useHistory } from 'react-router-dom';
|
||||||
import { send } from 'loot-core/src/platform/client/fetch';
|
import { send } from 'loot-core/src/platform/client/fetch';
|
||||||
import { Text, P, Button, Stack } from 'loot-design/src/components/common';
|
import { Text, P, Button, Stack } from 'loot-design/src/components/common';
|
||||||
|
import { colors } from 'loot-design/src/style';
|
||||||
import { Page } from '../Page';
|
import { Page } from '../Page';
|
||||||
import DisplayId from '../util/DisplayId';
|
import DisplayId from '../util/DisplayId';
|
||||||
import { colors } from 'loot-design/src/style';
|
|
||||||
|
|
||||||
export default function PostsOfflineNotification() {
|
export default function PostsOfflineNotification() {
|
||||||
let location = useLocation();
|
let location = useLocation();
|
||||||
|
|
|
@ -2,8 +2,8 @@ import React from 'react';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import { View, Button } from 'loot-design/src/components/common';
|
import { View, Button } from 'loot-design/src/components/common';
|
||||||
import { send } from 'loot-core/src/platform/client/fetch';
|
import { send } from 'loot-core/src/platform/client/fetch';
|
||||||
import { Page } from '../Page';
|
|
||||||
import { useSchedules } from 'loot-core/src/client/data-hooks/schedules';
|
import { useSchedules } from 'loot-core/src/client/data-hooks/schedules';
|
||||||
|
import { Page } from '../Page';
|
||||||
import { SchedulesTable, ROW_HEIGHT } from './SchedulesTable';
|
import { SchedulesTable, ROW_HEIGHT } from './SchedulesTable';
|
||||||
|
|
||||||
export default function Schedules() {
|
export default function Schedules() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Tooltip, Pointer, P } from 'loot-design/src/components/common';
|
import { Tooltip, Pointer, P } from 'loot-design/src/components/common';
|
||||||
import Navigation from './Navigation';
|
|
||||||
import { colors } from 'loot-design/src/style';
|
import { colors } from 'loot-design/src/style';
|
||||||
|
import Navigation from './Navigation';
|
||||||
import { Title } from './common';
|
import { Title } from './common';
|
||||||
|
|
||||||
function BudgetInitial({ targetRect, navigationProps }) {
|
function BudgetInitial({ targetRect, navigationProps }) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Tooltip, Pointer, P } from 'loot-design/src/components/common';
|
import { Tooltip, Pointer, P } from 'loot-design/src/components/common';
|
||||||
import Navigation from './Navigation';
|
|
||||||
import { colors } from 'loot-design/src/style';
|
import { colors } from 'loot-design/src/style';
|
||||||
|
import Navigation from './Navigation';
|
||||||
import { Title } from './common';
|
import { Title } from './common';
|
||||||
|
|
||||||
function BudgetSummary({ targetRect, navigationProps }) {
|
function BudgetSummary({ targetRect, navigationProps }) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Tooltip, Pointer, P } from 'loot-design/src/components/common';
|
import { Tooltip, Pointer, P } from 'loot-design/src/components/common';
|
||||||
import Navigation from './Navigation';
|
|
||||||
import { colors } from 'loot-design/src/style';
|
import { colors } from 'loot-design/src/style';
|
||||||
|
import Navigation from './Navigation';
|
||||||
import { Title } from './common';
|
import { Title } from './common';
|
||||||
|
|
||||||
function BudgetSummary({ fromYNAB, targetRect, navigationProps }) {
|
function BudgetSummary({ fromYNAB, targetRect, navigationProps }) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Tooltip, Pointer, P } from 'loot-design/src/components/common';
|
import { Tooltip, Pointer, P } from 'loot-design/src/components/common';
|
||||||
import Navigation from './Navigation';
|
|
||||||
import { colors } from 'loot-design/src/style';
|
import { colors } from 'loot-design/src/style';
|
||||||
|
import Navigation from './Navigation';
|
||||||
import { Title } from './common';
|
import { Title } from './common';
|
||||||
|
|
||||||
function TransactionAdd({ targetRect, navigationProps }) {
|
function TransactionAdd({ targetRect, navigationProps }) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { P } from 'loot-design/src/components/common';
|
import { P } from 'loot-design/src/components/common';
|
||||||
import Navigation from './Navigation';
|
|
||||||
import * as monthUtils from 'loot-core/src/shared/months';
|
import * as monthUtils from 'loot-core/src/shared/months';
|
||||||
|
import Navigation from './Navigation';
|
||||||
import { Standalone, Title } from './common';
|
import { Standalone, Title } from './common';
|
||||||
|
|
||||||
function TransactionEnter({ fromYNAB, navigationProps }) {
|
function TransactionEnter({ fromYNAB, navigationProps }) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { View, AnchorLink } from 'loot-design/src/components/common';
|
import { View, AnchorLink } from 'loot-design/src/components/common';
|
||||||
import AnimateIn from './AnimateIn';
|
|
||||||
import { colors } from 'loot-design/src/style';
|
import { colors } from 'loot-design/src/style';
|
||||||
|
import AnimateIn from './AnimateIn';
|
||||||
|
|
||||||
export function Title({ children }) {
|
export function Title({ children }) {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -7,7 +7,6 @@ import '@reach/listbox/styles.css';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import App from './components/App';
|
|
||||||
import {
|
import {
|
||||||
createStore,
|
createStore,
|
||||||
combineReducers,
|
combineReducers,
|
||||||
|
@ -21,8 +20,9 @@ import { send } from 'loot-core/src/platform/client/fetch';
|
||||||
import q, { runQuery } from 'loot-core/src/client/query-helpers';
|
import q, { runQuery } from 'loot-core/src/client/query-helpers';
|
||||||
import * as actions from 'loot-core/src/client/actions';
|
import * as actions from 'loot-core/src/client/actions';
|
||||||
import thunk from 'redux-thunk';
|
import thunk from 'redux-thunk';
|
||||||
import { handleGlobalEvents } from './global-events';
|
|
||||||
import { initialState as initialAppState } from 'loot-core/src/client/reducers/app';
|
import { initialState as initialAppState } from 'loot-core/src/client/reducers/app';
|
||||||
|
import { handleGlobalEvents } from './global-events';
|
||||||
|
import App from './components/App';
|
||||||
|
|
||||||
// See https://github.com/WICG/focus-visible. Only makes the blue
|
// See https://github.com/WICG/focus-visible. Only makes the blue
|
||||||
// focus outline appear from keyboard events.
|
// focus outline appear from keyboard events.
|
||||||
|
|
Loading…
Reference in a new issue