Migrate from @saleor alias to @dashboard (#2981)
This commit is contained in:
parent
39ce183583
commit
04247d3f95
1193 changed files with 6927 additions and 6768 deletions
|
@ -46,7 +46,7 @@ generates:
|
|||
typesPath: ./types.generated
|
||||
config:
|
||||
withHooks: true
|
||||
apolloReactHooksImportFrom: "@saleor/hooks/graphql"
|
||||
apolloReactHooksImportFrom: "@dashboard/hooks/graphql"
|
||||
plugins:
|
||||
- add:
|
||||
content: /* eslint-disable */
|
||||
|
|
25
package-lock.json
generated
25
package-lock.json
generated
|
@ -2890,6 +2890,7 @@
|
|||
"version": "0.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@floating-ui/react-dom-interactions/-/react-dom-interactions-0.5.0.tgz",
|
||||
"integrity": "sha512-rfON7mkHjCeogd0BSXPa8GBp1TMxEytJQqGVlCouSUonJ4POqdHsqcxRnCh0yAaGVaL/nB/J1vq28V4RdoLszg==",
|
||||
"deprecated": "Package renamed to @floating-ui/react",
|
||||
"dependencies": {
|
||||
"@floating-ui/react-dom": "^0.7.0",
|
||||
"aria-hidden": "^1.1.3",
|
||||
|
@ -12053,9 +12054,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/aria-hidden": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.1.tgz",
|
||||
"integrity": "sha512-PN344VAf9j1EAi+jyVHOJ8XidQdPVssGco39eNcsGdM4wcsILtxrKLkbuiMfLWYROK1FjRQasMWCBttrhjnr6A==",
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.2.tgz",
|
||||
"integrity": "sha512-6y/ogyDTk/7YAe91T3E2PR1ALVKyM2QbTio5HwM+N1Q6CMlCKhvClyIjkckBswa0f2xJhjsfzIGa1yVSe1UMVA==",
|
||||
"dependencies": {
|
||||
"tslib": "^2.0.0"
|
||||
},
|
||||
|
@ -12073,9 +12074,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/aria-hidden/node_modules/tslib": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",
|
||||
"integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ=="
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz",
|
||||
"integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA=="
|
||||
},
|
||||
"node_modules/aria-query": {
|
||||
"version": "5.1.1",
|
||||
|
@ -52608,17 +52609,17 @@
|
|||
"dev": true
|
||||
},
|
||||
"aria-hidden": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.1.tgz",
|
||||
"integrity": "sha512-PN344VAf9j1EAi+jyVHOJ8XidQdPVssGco39eNcsGdM4wcsILtxrKLkbuiMfLWYROK1FjRQasMWCBttrhjnr6A==",
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.2.tgz",
|
||||
"integrity": "sha512-6y/ogyDTk/7YAe91T3E2PR1ALVKyM2QbTio5HwM+N1Q6CMlCKhvClyIjkckBswa0f2xJhjsfzIGa1yVSe1UMVA==",
|
||||
"requires": {
|
||||
"tslib": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",
|
||||
"integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ=="
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz",
|
||||
"integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA=="
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -234,7 +234,7 @@
|
|||
"\\.(css)$": "identity-obj-proxy",
|
||||
"@assets(.*)$": "<rootDir>/assets/$1",
|
||||
"@locale(.*)$": "<rootDir>/locale/$1",
|
||||
"@saleor(?!.*macaw)(?!.*sdk)(.*)$": "<rootDir>/src/$1",
|
||||
"@dashboard(.*)$": "<rootDir>/src/$1",
|
||||
"@test/(.*)$": "<rootDir>/testUtils/$1",
|
||||
"^lodash-es(.*)$": "lodash/$1",
|
||||
"^@material-ui/core$": "<rootDir>/node_modules/@material-ui/core",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import ActionDialog from "@dashboard/components/ActionDialog";
|
||||
import { getStringOrPlaceholder } from "@dashboard/misc";
|
||||
import { DialogContentText } from "@material-ui/core";
|
||||
import ActionDialog from "@saleor/components/ActionDialog";
|
||||
import { ConfirmButtonTransitionState } from "@saleor/macaw-ui";
|
||||
import { getStringOrPlaceholder } from "@saleor/misc";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import ActionDialog from "@dashboard/components/ActionDialog";
|
||||
import { getStringOrPlaceholder } from "@dashboard/misc";
|
||||
import { DialogContentText } from "@material-ui/core";
|
||||
import ActionDialog from "@saleor/components/ActionDialog";
|
||||
import { ConfirmButtonTransitionState } from "@saleor/macaw-ui";
|
||||
import { getStringOrPlaceholder } from "@saleor/misc";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import ActionDialog from "@dashboard/components/ActionDialog";
|
||||
import { getStringOrPlaceholder } from "@dashboard/misc";
|
||||
import { DialogContentText } from "@material-ui/core";
|
||||
import ActionDialog from "@saleor/components/ActionDialog";
|
||||
import { ConfirmButtonTransitionState } from "@saleor/macaw-ui";
|
||||
import { getStringOrPlaceholder } from "@saleor/misc";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Decorator from "@saleor/storybook/Decorator";
|
||||
import Decorator from "@dashboard/storybook/Decorator";
|
||||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { appsListPath } from "@dashboard/apps/urls";
|
||||
import { Backlink } from "@dashboard/components/Backlink";
|
||||
import { Button } from "@dashboard/components/Button";
|
||||
import CardSpacer from "@dashboard/components/CardSpacer";
|
||||
import CardTitle from "@dashboard/components/CardTitle";
|
||||
import Container from "@dashboard/components/Container";
|
||||
import ExternalLink from "@dashboard/components/ExternalLink";
|
||||
import PageHeader from "@dashboard/components/PageHeader";
|
||||
import Skeleton from "@dashboard/components/Skeleton";
|
||||
import { AppQuery } from "@dashboard/graphql";
|
||||
import { buttonMessages, sectionNames } from "@dashboard/intl";
|
||||
import { ButtonBase, Card, CardContent, Typography } from "@material-ui/core";
|
||||
import { appsListPath } from "@saleor/apps/urls";
|
||||
import { Backlink } from "@saleor/components/Backlink";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import CardSpacer from "@saleor/components/CardSpacer";
|
||||
import CardTitle from "@saleor/components/CardTitle";
|
||||
import Container from "@saleor/components/Container";
|
||||
import ExternalLink from "@saleor/components/ExternalLink";
|
||||
import PageHeader from "@saleor/components/PageHeader";
|
||||
import Skeleton from "@saleor/components/Skeleton";
|
||||
import { AppQuery } from "@saleor/graphql";
|
||||
import { buttonMessages, sectionNames } from "@saleor/intl";
|
||||
import React from "react";
|
||||
import SVG from "react-inlinesvg";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -2,9 +2,9 @@ import {
|
|||
AppDetailsUrlQueryParams,
|
||||
getAppDeepPathFromDashboardUrl,
|
||||
resolveAppIframeUrl,
|
||||
} from "@saleor/apps/urls";
|
||||
import useLocale from "@saleor/hooks/useLocale";
|
||||
import useShop from "@saleor/hooks/useShop";
|
||||
} from "@dashboard/apps/urls";
|
||||
import useLocale from "@dashboard/hooks/useLocale";
|
||||
import useShop from "@dashboard/hooks/useShop";
|
||||
import { useTheme } from "@saleor/macaw-ui";
|
||||
import clsx from "clsx";
|
||||
import React, { useEffect } from "react";
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
import { appPath } from "@dashboard/apps/urls";
|
||||
import { getAppMountUri } from "@dashboard/config";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import {
|
||||
Actions,
|
||||
DispatchResponseEvent,
|
||||
|
@ -5,10 +9,6 @@ import {
|
|||
NotificationAction,
|
||||
RedirectAction,
|
||||
} from "@saleor/app-sdk/app-bridge";
|
||||
import { appPath } from "@saleor/apps/urls";
|
||||
import { getAppMountUri } from "@saleor/config";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
import { useLocation } from "react-router";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import ActionDialog from "@dashboard/components/ActionDialog";
|
||||
import { getStringOrPlaceholder } from "@dashboard/misc";
|
||||
import { DialogContentText } from "@material-ui/core";
|
||||
import ActionDialog from "@saleor/components/ActionDialog";
|
||||
import { ConfirmButtonTransitionState } from "@saleor/macaw-ui";
|
||||
import { getStringOrPlaceholder } from "@saleor/misc";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import errorImg from "@assets/images/app-install-error.svg";
|
||||
import { Button } from "@dashboard/components/Button";
|
||||
import Container from "@dashboard/components/Container";
|
||||
import { Grid, Typography } from "@material-ui/core";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import Container from "@saleor/components/Container";
|
||||
import React from "react";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Decorator from "@saleor/storybook/Decorator";
|
||||
import Decorator from "@dashboard/storybook/Decorator";
|
||||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import saleorDarkLogoSmall from "@assets/images/logo-dark-small.svg";
|
||||
import plusIcon from "@assets/images/plus-icon.svg";
|
||||
import { Button } from "@dashboard/components/Button";
|
||||
import CardSpacer from "@dashboard/components/CardSpacer";
|
||||
import CardTitle from "@dashboard/components/CardTitle";
|
||||
import Container from "@dashboard/components/Container";
|
||||
import Hr from "@dashboard/components/Hr";
|
||||
import Skeleton from "@dashboard/components/Skeleton";
|
||||
import { AppFetchMutation, AppInstallMutation } from "@dashboard/graphql";
|
||||
import { SubmitPromise } from "@dashboard/hooks/useForm";
|
||||
import { buttonMessages } from "@dashboard/intl";
|
||||
import { Card, CardContent, Grid, Typography } from "@material-ui/core";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import CardSpacer from "@saleor/components/CardSpacer";
|
||||
import CardTitle from "@saleor/components/CardTitle";
|
||||
import Container from "@saleor/components/Container";
|
||||
import Hr from "@saleor/components/Hr";
|
||||
import Skeleton from "@saleor/components/Skeleton";
|
||||
import { AppFetchMutation, AppInstallMutation } from "@saleor/graphql";
|
||||
import { SubmitPromise } from "@saleor/hooks/useForm";
|
||||
import { buttonMessages } from "@saleor/intl";
|
||||
import clsx from "clsx";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Decorator from "@saleor/storybook/Decorator";
|
||||
import Decorator from "@dashboard/storybook/Decorator";
|
||||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Container from "@saleor/components/Container";
|
||||
import { AppQuery } from "@saleor/graphql";
|
||||
import Container from "@dashboard/components/Container";
|
||||
import { AppQuery } from "@dashboard/graphql";
|
||||
import React from "react";
|
||||
|
||||
import { AppFrame } from "../AppFrame";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { AppPagePathSegment } from "@saleor/apps/hooks/useAppsPageNavigation";
|
||||
import { AppPagePathSegment } from "@dashboard/apps/hooks/useAppsPageNavigation";
|
||||
import { PageTab, PageTabs } from "@saleor/macaw-ui";
|
||||
import React, { ComponentProps } from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { AppPermissionFragment } from "@saleor/graphql";
|
||||
import { AppPermissionFragment } from "@dashboard/graphql";
|
||||
import {
|
||||
IconButton,
|
||||
makeStyles,
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
import { Button } from "@dashboard/components/Button";
|
||||
import CardTitle from "@dashboard/components/CardTitle";
|
||||
import { IconButton } from "@dashboard/components/IconButton";
|
||||
import { TableButtonWrapper } from "@dashboard/components/TableButtonWrapper/TableButtonWrapper";
|
||||
import TableRowLink from "@dashboard/components/TableRowLink";
|
||||
import { AppsInstallationsQuery, JobStatusEnum } from "@dashboard/graphql";
|
||||
import { renderCollection } from "@dashboard/misc";
|
||||
import {
|
||||
Card,
|
||||
CircularProgress as Progress,
|
||||
|
@ -5,12 +12,6 @@ import {
|
|||
TableCell,
|
||||
Typography,
|
||||
} from "@material-ui/core";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import CardTitle from "@saleor/components/CardTitle";
|
||||
import { IconButton } from "@saleor/components/IconButton";
|
||||
import { TableButtonWrapper } from "@saleor/components/TableButtonWrapper/TableButtonWrapper";
|
||||
import TableRowLink from "@saleor/components/TableRowLink";
|
||||
import { AppsInstallationsQuery, JobStatusEnum } from "@saleor/graphql";
|
||||
import {
|
||||
DeleteIcon,
|
||||
Indicator,
|
||||
|
@ -18,7 +19,6 @@ import {
|
|||
Tooltip,
|
||||
TooltipMountWrapper,
|
||||
} from "@saleor/macaw-ui";
|
||||
import { renderCollection } from "@saleor/misc";
|
||||
import clsx from "clsx";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -4,9 +4,9 @@ import {
|
|||
searchPageProps,
|
||||
sortPageProps,
|
||||
tabPageProps,
|
||||
} from "@saleor/fixtures";
|
||||
import Decorator from "@saleor/storybook/Decorator";
|
||||
import { PaginatorContextDecorator } from "@saleor/storybook/PaginatorContextDecorator";
|
||||
} from "@dashboard/fixtures";
|
||||
import Decorator from "@dashboard/storybook/Decorator";
|
||||
import { PaginatorContextDecorator } from "@dashboard/storybook/PaginatorContextDecorator";
|
||||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
import { AppPageTabs } from "@saleor/apps/components/AppPageTabs/AppPageTabs";
|
||||
import { useAppsPageNavigation } from "@saleor/apps/hooks/useAppsPageNavigation";
|
||||
import { useSaleorApps } from "@saleor/apps/hooks/useSaleorApps";
|
||||
import CardSpacer from "@saleor/components/CardSpacer";
|
||||
import Container from "@saleor/components/Container";
|
||||
import PageHeader from "@saleor/components/PageHeader";
|
||||
import { AppListItemFragment, AppsInstallationsQuery } from "@saleor/graphql";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import { sectionNames } from "@saleor/intl";
|
||||
import { AppPageTabs } from "@dashboard/apps/components/AppPageTabs/AppPageTabs";
|
||||
import { useAppsPageNavigation } from "@dashboard/apps/hooks/useAppsPageNavigation";
|
||||
import { useSaleorApps } from "@dashboard/apps/hooks/useSaleorApps";
|
||||
import CardSpacer from "@dashboard/components/CardSpacer";
|
||||
import Container from "@dashboard/components/Container";
|
||||
import PageHeader from "@dashboard/components/PageHeader";
|
||||
import {
|
||||
AppListItemFragment,
|
||||
AppsInstallationsQuery,
|
||||
} from "@dashboard/graphql";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import { sectionNames } from "@dashboard/intl";
|
||||
import { marketplaceUrlResolver } from "@dashboard/marketplace/marketplace-url-resolver";
|
||||
import { ListProps } from "@dashboard/types";
|
||||
import { Button, makeStyles } from "@saleor/macaw-ui";
|
||||
import { marketplaceUrlResolver } from "@saleor/marketplace/marketplace-url-resolver";
|
||||
import { ListProps } from "@saleor/types";
|
||||
import React, { useEffect, useMemo } from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Skeleton from "@dashboard/components/Skeleton";
|
||||
import TableRowLink from "@dashboard/components/TableRowLink";
|
||||
import { TableCell } from "@material-ui/core";
|
||||
import Skeleton from "@saleor/components/Skeleton";
|
||||
import TableRowLink from "@saleor/components/TableRowLink";
|
||||
import React from "react";
|
||||
|
||||
import { useStyles } from "../../styles";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import ResponsiveTable from "@dashboard/components/ResponsiveTable";
|
||||
import { Card, CardContent } from "@material-ui/core";
|
||||
import ResponsiveTable from "@saleor/components/ResponsiveTable";
|
||||
import React from "react";
|
||||
|
||||
import { useStyles } from "../../styles";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { appDeepUrl } from "@saleor/apps/urls";
|
||||
import { AppExtensionTargetEnum } from "@saleor/graphql";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import { appDeepUrl } from "@dashboard/apps/urls";
|
||||
import { AppExtensionTargetEnum } from "@dashboard/graphql";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import React from "react";
|
||||
|
||||
import { AppDialog } from "../AppDialog";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { AppDetailsUrlMountQueryParams } from "@saleor/apps/urls";
|
||||
import { AppExtensionTargetEnum } from "@saleor/graphql";
|
||||
import { AppDetailsUrlMountQueryParams } from "@dashboard/apps/urls";
|
||||
import { AppExtensionTargetEnum } from "@dashboard/graphql";
|
||||
import React from "react";
|
||||
|
||||
export interface AppData {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Button } from "@dashboard/components/Button";
|
||||
import { TextField } from "@material-ui/core";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import { makeStyles } from "@saleor/macaw-ui";
|
||||
import React, { useState } from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
import { AppManifestTableDisplay } from "@dashboard/apps/components/AppManifestTableDisplay/AppManifestTableDisplay";
|
||||
import { InstallWithManifestFormButton } from "@dashboard/apps/components/InstallWithManifestFormButton";
|
||||
import { appUrl, createAppInstallUrl } from "@dashboard/apps/urls";
|
||||
import { isAppInTunnel } from "@dashboard/apps/utils";
|
||||
import CardTitle from "@dashboard/components/CardTitle";
|
||||
import { IconButton } from "@dashboard/components/IconButton";
|
||||
import { TableButtonWrapper } from "@dashboard/components/TableButtonWrapper/TableButtonWrapper";
|
||||
import TableRowLink from "@dashboard/components/TableRowLink";
|
||||
import { AppListItemFragment } from "@dashboard/graphql";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import { renderCollection } from "@dashboard/misc";
|
||||
import { ListProps } from "@dashboard/types";
|
||||
import { Card, TableBody, TableCell, Typography } from "@material-ui/core";
|
||||
import { AppManifestTableDisplay } from "@saleor/apps/components/AppManifestTableDisplay/AppManifestTableDisplay";
|
||||
import { InstallWithManifestFormButton } from "@saleor/apps/components/InstallWithManifestFormButton";
|
||||
import { appUrl, createAppInstallUrl } from "@saleor/apps/urls";
|
||||
import { isAppInTunnel } from "@saleor/apps/utils";
|
||||
import CardTitle from "@saleor/components/CardTitle";
|
||||
import { IconButton } from "@saleor/components/IconButton";
|
||||
import { TableButtonWrapper } from "@saleor/components/TableButtonWrapper/TableButtonWrapper";
|
||||
import TableRowLink from "@saleor/components/TableRowLink";
|
||||
import { AppListItemFragment } from "@saleor/graphql";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import { ResponsiveTable, SettingsIcon } from "@saleor/macaw-ui";
|
||||
import { renderCollection } from "@saleor/misc";
|
||||
import { ListProps } from "@saleor/types";
|
||||
import React, { useCallback } from "react";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import {
|
|||
AppTypeEnum,
|
||||
JobStatusEnum,
|
||||
PermissionEnum,
|
||||
} from "@saleor/graphql";
|
||||
} from "@dashboard/graphql";
|
||||
|
||||
export const appsList: AppListItemFragment[] = [
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { appsSection } from "@saleor/apps/urls";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import { appsSection } from "@dashboard/apps/urls";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import { useCallback, useMemo } from "react";
|
||||
import useRouter from "use-react-router";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { appsSection } from "@saleor/apps/urls";
|
||||
import { appsSection } from "@dashboard/apps/urls";
|
||||
import { matchPath, useLocation } from "react-router";
|
||||
|
||||
const isAppPath = (pathname: string) =>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { marketplaceUrlResolver } from "@saleor/marketplace/marketplace-url-resolver";
|
||||
import { marketplaceUrlResolver } from "@dashboard/marketplace/marketplace-url-resolver";
|
||||
import { useCallback, useState } from "react";
|
||||
|
||||
export interface SaleorApp {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import WebhooksRoutes from "@saleor/custom-apps";
|
||||
import { sectionNames } from "@saleor/intl";
|
||||
import WebhooksRoutes from "@dashboard/custom-apps";
|
||||
import { sectionNames } from "@dashboard/intl";
|
||||
import { parse as parseQs } from "qs";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { resolveAppIframeUrl } from "@saleor/apps/urls";
|
||||
import * as config from "@saleor/config";
|
||||
import { resolveAppIframeUrl } from "@dashboard/apps/urls";
|
||||
import * as config from "@dashboard/config";
|
||||
|
||||
describe("resolveAppIframeUrl", () => {
|
||||
afterAll(() => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { getApiUrl } from "@saleor/config";
|
||||
import { stringifyQs } from "@saleor/utils/urls";
|
||||
import { getApiUrl } from "@dashboard/config";
|
||||
import { stringifyQs } from "@dashboard/utils/urls";
|
||||
import urlJoin from "url-join";
|
||||
|
||||
import { ActiveTab, Dialog, Pagination, SingleAction } from "../types";
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { useUserPermissions } from "@saleor/auth/hooks/useUserPermissions";
|
||||
import { useUserPermissions } from "@dashboard/auth/hooks/useUserPermissions";
|
||||
import {
|
||||
AppExtensionMountEnum,
|
||||
ExtensionListQuery,
|
||||
PermissionEnum,
|
||||
useExtensionListQuery,
|
||||
} from "@saleor/graphql";
|
||||
import { RelayToFlat } from "@saleor/types";
|
||||
import { mapEdgesToItems } from "@saleor/utils/maps";
|
||||
} from "@dashboard/graphql";
|
||||
import { RelayToFlat } from "@dashboard/types";
|
||||
import { mapEdgesToItems } from "@dashboard/utils/maps";
|
||||
|
||||
import { useExternalApp } from "./components/ExternalAppContext/";
|
||||
import { AppData } from "./components/ExternalAppContext/context";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { AppsInstallationsQuery } from "@saleor/graphql";
|
||||
import { AppsInstallationsQuery } from "@dashboard/graphql";
|
||||
|
||||
const tunnelKeywords = [".ngrok.io", ".saleor.live"];
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { appMessages } from "@saleor/apps/messages";
|
||||
import NotFoundPage from "@saleor/components/NotFoundPage";
|
||||
import { useAppQuery } from "@saleor/graphql";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
import { appMessages } from "@dashboard/apps/messages";
|
||||
import NotFoundPage from "@dashboard/components/NotFoundPage";
|
||||
import { useAppQuery } from "@dashboard/graphql";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
import { useLocation } from "react-router";
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
import { useApolloClient } from "@apollo/client";
|
||||
import AppDeleteDialog from "@saleor/apps/components/AppDeleteDialog";
|
||||
import { appMessages } from "@saleor/apps/messages";
|
||||
import { EXTENSION_LIST_QUERY } from "@saleor/apps/queries";
|
||||
import NotFoundPage from "@saleor/components/NotFoundPage";
|
||||
import AppDeleteDialog from "@dashboard/apps/components/AppDeleteDialog";
|
||||
import { appMessages } from "@dashboard/apps/messages";
|
||||
import { EXTENSION_LIST_QUERY } from "@dashboard/apps/queries";
|
||||
import NotFoundPage from "@dashboard/components/NotFoundPage";
|
||||
import {
|
||||
useAppActivateMutation,
|
||||
useAppDeactivateMutation,
|
||||
useAppDeleteMutation,
|
||||
useAppQuery,
|
||||
} from "@saleor/graphql";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
import getAppErrorMessage from "@saleor/utils/errors/app";
|
||||
import createDialogActionHandlers from "@saleor/utils/handlers/dialogActionHandlers";
|
||||
} from "@dashboard/graphql";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import getAppErrorMessage from "@dashboard/utils/errors/app";
|
||||
import createDialogActionHandlers from "@dashboard/utils/handlers/dialogActionHandlers";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { WindowTitle } from "@saleor/components/WindowTitle";
|
||||
import { useAppFetchMutation, useAppInstallMutation } from "@saleor/graphql";
|
||||
import useLocalStorage from "@saleor/hooks/useLocalStorage";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
import { extractMutationErrors } from "@saleor/misc";
|
||||
import getAppErrorMessage from "@saleor/utils/errors/app";
|
||||
import { WindowTitle } from "@dashboard/components/WindowTitle";
|
||||
import { useAppFetchMutation, useAppInstallMutation } from "@dashboard/graphql";
|
||||
import useLocalStorage from "@dashboard/hooks/useLocalStorage";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import { extractMutationErrors } from "@dashboard/misc";
|
||||
import getAppErrorMessage from "@dashboard/utils/errors/app";
|
||||
import React, { useEffect } from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
import { RouteComponentProps } from "react-router-dom";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { appMessages } from "@saleor/apps/messages";
|
||||
import NotFoundPage from "@saleor/components/NotFoundPage";
|
||||
import { useAppQuery } from "@saleor/graphql";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
import { appMessages } from "@dashboard/apps/messages";
|
||||
import NotFoundPage from "@dashboard/components/NotFoundPage";
|
||||
import { useAppQuery } from "@dashboard/graphql";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useApolloClient } from "@apollo/client";
|
||||
import { getAppInProgressName } from "@saleor/apps/utils";
|
||||
import { getAppInProgressName } from "@dashboard/apps/utils";
|
||||
import {
|
||||
AppSortField,
|
||||
AppTypeEnum,
|
||||
|
@ -9,19 +9,19 @@ import {
|
|||
useAppRetryInstallMutation,
|
||||
useAppsInstallationsQuery,
|
||||
useAppsListQuery,
|
||||
} from "@saleor/graphql";
|
||||
import useListSettings from "@saleor/hooks/useListSettings";
|
||||
import useLocalStorage from "@saleor/hooks/useLocalStorage";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
} from "@dashboard/graphql";
|
||||
import useListSettings from "@dashboard/hooks/useListSettings";
|
||||
import useLocalStorage from "@dashboard/hooks/useLocalStorage";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import usePaginator, {
|
||||
createPaginationState,
|
||||
PageInfo,
|
||||
PaginatorContext,
|
||||
} from "@saleor/hooks/usePaginator";
|
||||
import { ListViews } from "@saleor/types";
|
||||
import createDialogActionHandlers from "@saleor/utils/handlers/dialogActionHandlers";
|
||||
import { mapEdgesToItems } from "@saleor/utils/maps";
|
||||
} from "@dashboard/hooks/usePaginator";
|
||||
import { ListViews } from "@dashboard/types";
|
||||
import createDialogActionHandlers from "@dashboard/utils/handlers/dialogActionHandlers";
|
||||
import { mapEdgesToItems } from "@dashboard/utils/maps";
|
||||
import React, { useEffect, useRef } from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import ActionDialog from "@dashboard/components/ActionDialog";
|
||||
import { DialogContentText } from "@material-ui/core";
|
||||
import ActionDialog from "@saleor/components/ActionDialog";
|
||||
import { ConfirmButtonTransitionState } from "@saleor/macaw-ui";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import ActionDialog from "@dashboard/components/ActionDialog";
|
||||
import { DialogContentText } from "@material-ui/core";
|
||||
import ActionDialog from "@saleor/components/ActionDialog";
|
||||
import { ConfirmButtonTransitionState } from "@saleor/macaw-ui";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
import { Card, CardContent, TextField } from "@material-ui/core";
|
||||
import { NumericUnits } from "@saleor/attributes/components/AttributeDetails/NumericUnits";
|
||||
import CardTitle from "@saleor/components/CardTitle";
|
||||
import ControlledCheckbox from "@saleor/components/ControlledCheckbox";
|
||||
import FormSpacer from "@saleor/components/FormSpacer";
|
||||
import SingleSelectField from "@saleor/components/SingleSelectField";
|
||||
import { NumericUnits } from "@dashboard/attributes/components/AttributeDetails/NumericUnits";
|
||||
import CardTitle from "@dashboard/components/CardTitle";
|
||||
import ControlledCheckbox from "@dashboard/components/ControlledCheckbox";
|
||||
import FormSpacer from "@dashboard/components/FormSpacer";
|
||||
import SingleSelectField from "@dashboard/components/SingleSelectField";
|
||||
import {
|
||||
AttributeEntityTypeEnum,
|
||||
AttributeErrorFragment,
|
||||
AttributeInputTypeEnum,
|
||||
} from "@saleor/graphql";
|
||||
import { UseFormResult } from "@saleor/hooks/useForm";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
} from "@dashboard/graphql";
|
||||
import { UseFormResult } from "@dashboard/hooks/useForm";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import { getFormErrors } from "@dashboard/utils/errors";
|
||||
import getAttributeErrorMessage from "@dashboard/utils/errors/attribute";
|
||||
import { Card, CardContent, TextField } from "@material-ui/core";
|
||||
import { makeStyles } from "@saleor/macaw-ui";
|
||||
import { getFormErrors } from "@saleor/utils/errors";
|
||||
import getAttributeErrorMessage from "@saleor/utils/errors/attribute";
|
||||
import React from "react";
|
||||
import { defineMessages, useIntl } from "react-intl";
|
||||
import slugify from "slugify";
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { AttributePageFormData } from "@saleor/attributes/components/AttributePage";
|
||||
import ControlledCheckbox from "@saleor/components/ControlledCheckbox";
|
||||
import SingleSelectField from "@saleor/components/SingleSelectField";
|
||||
import { MeasurementUnitsEnum } from "@saleor/graphql";
|
||||
import { UseFormResult } from "@saleor/hooks/useForm";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { AttributePageFormData } from "@dashboard/attributes/components/AttributePage";
|
||||
import ControlledCheckbox from "@dashboard/components/ControlledCheckbox";
|
||||
import SingleSelectField from "@dashboard/components/SingleSelectField";
|
||||
import { MeasurementUnitsEnum } from "@dashboard/graphql";
|
||||
import { UseFormResult } from "@dashboard/hooks/useForm";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import { makeStyles } from "@saleor/macaw-ui";
|
||||
import React, { useEffect, useMemo, useState } from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Choice } from "@saleor/components/SingleSelectField";
|
||||
import { MeasurementUnitsEnum } from "@saleor/graphql";
|
||||
import { Choice } from "@dashboard/components/SingleSelectField";
|
||||
import { MeasurementUnitsEnum } from "@dashboard/graphql";
|
||||
import React from "react";
|
||||
import { IntlShape, MessageDescriptor } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
import { TableBody, TableCell, TableFooter } from "@material-ui/core";
|
||||
import {
|
||||
AttributeListUrlSortField,
|
||||
attributeUrl,
|
||||
} from "@saleor/attributes/urls";
|
||||
import Checkbox from "@saleor/components/Checkbox";
|
||||
import ResponsiveTable from "@saleor/components/ResponsiveTable";
|
||||
import Skeleton from "@saleor/components/Skeleton";
|
||||
import TableCellHeader from "@saleor/components/TableCellHeader";
|
||||
import TableHead from "@saleor/components/TableHead";
|
||||
import { TablePaginationWithContext } from "@saleor/components/TablePagination";
|
||||
import TableRowLink from "@saleor/components/TableRowLink";
|
||||
import { AttributeFragment } from "@saleor/graphql";
|
||||
import { translateBoolean } from "@saleor/intl";
|
||||
} from "@dashboard/attributes/urls";
|
||||
import Checkbox from "@dashboard/components/Checkbox";
|
||||
import ResponsiveTable from "@dashboard/components/ResponsiveTable";
|
||||
import Skeleton from "@dashboard/components/Skeleton";
|
||||
import TableCellHeader from "@dashboard/components/TableCellHeader";
|
||||
import TableHead from "@dashboard/components/TableHead";
|
||||
import { TablePaginationWithContext } from "@dashboard/components/TablePagination";
|
||||
import TableRowLink from "@dashboard/components/TableRowLink";
|
||||
import { AttributeFragment } from "@dashboard/graphql";
|
||||
import { translateBoolean } from "@dashboard/intl";
|
||||
import { maybe, renderCollection } from "@dashboard/misc";
|
||||
import { ListActions, ListProps, SortPage } from "@dashboard/types";
|
||||
import { getArrowDirection } from "@dashboard/utils/sort";
|
||||
import { TableBody, TableCell, TableFooter } from "@material-ui/core";
|
||||
import { makeStyles } from "@saleor/macaw-ui";
|
||||
import { maybe, renderCollection } from "@saleor/misc";
|
||||
import { ListActions, ListProps, SortPage } from "@saleor/types";
|
||||
import { getArrowDirection } from "@saleor/utils/sort";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { Card } from "@material-ui/core";
|
||||
import {
|
||||
attributeAddUrl,
|
||||
AttributeListUrlSortField,
|
||||
} from "@saleor/attributes/urls";
|
||||
import { Backlink } from "@saleor/components/Backlink";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import FilterBar from "@saleor/components/FilterBar";
|
||||
import { configurationMenuUrl } from "@saleor/configuration";
|
||||
import { AttributeFragment } from "@saleor/graphql";
|
||||
import { sectionNames } from "@saleor/intl";
|
||||
} from "@dashboard/attributes/urls";
|
||||
import { Backlink } from "@dashboard/components/Backlink";
|
||||
import { Button } from "@dashboard/components/Button";
|
||||
import FilterBar from "@dashboard/components/FilterBar";
|
||||
import { configurationMenuUrl } from "@dashboard/configuration";
|
||||
import { AttributeFragment } from "@dashboard/graphql";
|
||||
import { sectionNames } from "@dashboard/intl";
|
||||
import { Card } from "@material-ui/core";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { IFilter } from "@saleor/components/Filter";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { FilterOpts } from "@saleor/types";
|
||||
import { createBooleanField } from "@saleor/utils/filters/fields";
|
||||
import { IFilter } from "@dashboard/components/Filter";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import { FilterOpts } from "@dashboard/types";
|
||||
import { createBooleanField } from "@dashboard/utils/filters/fields";
|
||||
import { defineMessages, IntlShape } from "react-intl";
|
||||
|
||||
export enum AttributeFilterKeys {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import CardTitle from "@dashboard/components/CardTitle";
|
||||
import RadioGroupField from "@dashboard/components/RadioGroupField";
|
||||
import { AttributeTypeEnum } from "@dashboard/graphql";
|
||||
import { Card, CardContent, Typography } from "@material-ui/core";
|
||||
import CardTitle from "@saleor/components/CardTitle";
|
||||
import RadioGroupField from "@saleor/components/RadioGroupField";
|
||||
import { AttributeTypeEnum } from "@saleor/graphql";
|
||||
import { makeStyles } from "@saleor/macaw-ui";
|
||||
import React from "react";
|
||||
import { defineMessages, FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { attributeListUrl } from "@saleor/attributes/urls";
|
||||
import { ATTRIBUTE_TYPES_WITH_DEDICATED_VALUES } from "@saleor/attributes/utils/data";
|
||||
import { Backlink } from "@saleor/components/Backlink";
|
||||
import CardSpacer from "@saleor/components/CardSpacer";
|
||||
import Container from "@saleor/components/Container";
|
||||
import Form from "@saleor/components/Form";
|
||||
import Grid from "@saleor/components/Grid";
|
||||
import Metadata from "@saleor/components/Metadata/Metadata";
|
||||
import { MetadataFormData } from "@saleor/components/Metadata/types";
|
||||
import PageHeader from "@saleor/components/PageHeader";
|
||||
import Savebar from "@saleor/components/Savebar";
|
||||
import { ListSettingsUpdate } from "@saleor/components/TablePagination";
|
||||
import { attributeListUrl } from "@dashboard/attributes/urls";
|
||||
import { ATTRIBUTE_TYPES_WITH_DEDICATED_VALUES } from "@dashboard/attributes/utils/data";
|
||||
import { Backlink } from "@dashboard/components/Backlink";
|
||||
import CardSpacer from "@dashboard/components/CardSpacer";
|
||||
import Container from "@dashboard/components/Container";
|
||||
import Form from "@dashboard/components/Form";
|
||||
import Grid from "@dashboard/components/Grid";
|
||||
import Metadata from "@dashboard/components/Metadata/Metadata";
|
||||
import { MetadataFormData } from "@dashboard/components/Metadata/types";
|
||||
import PageHeader from "@dashboard/components/PageHeader";
|
||||
import Savebar from "@dashboard/components/Savebar";
|
||||
import { ListSettingsUpdate } from "@dashboard/components/TablePagination";
|
||||
import {
|
||||
AttributeDetailsFragment,
|
||||
AttributeDetailsQuery,
|
||||
|
@ -18,15 +18,15 @@ import {
|
|||
AttributeInputTypeEnum,
|
||||
AttributeTypeEnum,
|
||||
MeasurementUnitsEnum,
|
||||
} from "@saleor/graphql";
|
||||
import { SubmitPromise } from "@saleor/hooks/useForm";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import { sectionNames } from "@saleor/intl";
|
||||
} from "@dashboard/graphql";
|
||||
import { SubmitPromise } from "@dashboard/hooks/useForm";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import { sectionNames } from "@dashboard/intl";
|
||||
import { maybe } from "@dashboard/misc";
|
||||
import { ListSettings, ReorderAction } from "@dashboard/types";
|
||||
import { mapEdgesToItems, mapMetadataItemToInput } from "@dashboard/utils/maps";
|
||||
import useMetadataChangeTrigger from "@dashboard/utils/metadata/useMetadataChangeTrigger";
|
||||
import { ConfirmButtonTransitionState } from "@saleor/macaw-ui";
|
||||
import { maybe } from "@saleor/misc";
|
||||
import { ListSettings, ReorderAction } from "@saleor/types";
|
||||
import { mapEdgesToItems, mapMetadataItemToInput } from "@saleor/utils/maps";
|
||||
import useMetadataChangeTrigger from "@saleor/utils/metadata/useMetadataChangeTrigger";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
import slugify from "slugify";
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import { ATTRIBUTE_TYPES_WITH_CONFIGURABLE_FACED_NAVIGATION } from "@dashboard/attributes/utils/data";
|
||||
import CardTitle from "@dashboard/components/CardTitle";
|
||||
import ControlledCheckbox from "@dashboard/components/ControlledCheckbox";
|
||||
import ControlledSwitch from "@dashboard/components/ControlledSwitch";
|
||||
import FormSpacer from "@dashboard/components/FormSpacer";
|
||||
import { AttributeErrorFragment, AttributeTypeEnum } from "@dashboard/graphql";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import { getFormErrors } from "@dashboard/utils/errors";
|
||||
import getAttributeErrorMessage from "@dashboard/utils/errors/attribute";
|
||||
import { Card, CardContent, TextField, Typography } from "@material-ui/core";
|
||||
import { ATTRIBUTE_TYPES_WITH_CONFIGURABLE_FACED_NAVIGATION } from "@saleor/attributes/utils/data";
|
||||
import CardTitle from "@saleor/components/CardTitle";
|
||||
import ControlledCheckbox from "@saleor/components/ControlledCheckbox";
|
||||
import ControlledSwitch from "@saleor/components/ControlledSwitch";
|
||||
import FormSpacer from "@saleor/components/FormSpacer";
|
||||
import { AttributeErrorFragment, AttributeTypeEnum } from "@saleor/graphql";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { getFormErrors } from "@saleor/utils/errors";
|
||||
import getAttributeErrorMessage from "@saleor/utils/errors/attribute";
|
||||
import React from "react";
|
||||
import { defineMessages, FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import VerticalSpacer from "@saleor/apps/components/VerticalSpacer";
|
||||
import { inputTypeMessages } from "@saleor/attributes/components/AttributeDetails/messages";
|
||||
import { AttributeValueEditDialogFormData } from "@saleor/attributes/utils/data";
|
||||
import { ColorPicker } from "@saleor/components/ColorPicker";
|
||||
import FileUploadField from "@saleor/components/FileUploadField";
|
||||
import { RadioGroupField } from "@saleor/components/RadioGroupField";
|
||||
import { useFileUploadMutation } from "@saleor/graphql";
|
||||
import { UseFormResult } from "@saleor/hooks/useForm";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
import { errorMessages } from "@saleor/intl";
|
||||
import VerticalSpacer from "@dashboard/apps/components/VerticalSpacer";
|
||||
import { inputTypeMessages } from "@dashboard/attributes/components/AttributeDetails/messages";
|
||||
import { AttributeValueEditDialogFormData } from "@dashboard/attributes/utils/data";
|
||||
import { ColorPicker } from "@dashboard/components/ColorPicker";
|
||||
import FileUploadField from "@dashboard/components/FileUploadField";
|
||||
import { RadioGroupField } from "@dashboard/components/RadioGroupField";
|
||||
import { useFileUploadMutation } from "@dashboard/graphql";
|
||||
import { UseFormResult } from "@dashboard/hooks/useForm";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import { errorMessages } from "@dashboard/intl";
|
||||
import React, { useState } from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import ActionDialog from "@dashboard/components/ActionDialog";
|
||||
import { DialogContentText } from "@material-ui/core";
|
||||
import ActionDialog from "@saleor/components/ActionDialog";
|
||||
import { ConfirmButtonTransitionState } from "@saleor/macaw-ui";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
import { getAttributeValueErrorMessage } from "@dashboard/attributes/errors";
|
||||
import BackButton from "@dashboard/components/BackButton";
|
||||
import ConfirmButton from "@dashboard/components/ConfirmButton";
|
||||
import Form from "@dashboard/components/Form";
|
||||
import {
|
||||
AttributeErrorFragment,
|
||||
AttributeInputTypeEnum,
|
||||
} from "@dashboard/graphql";
|
||||
import useModalDialogErrors from "@dashboard/hooks/useModalDialogErrors";
|
||||
import { buttonMessages } from "@dashboard/intl";
|
||||
import { getFormErrors } from "@dashboard/utils/errors";
|
||||
import {
|
||||
Dialog,
|
||||
DialogActions,
|
||||
|
@ -5,18 +16,7 @@ import {
|
|||
DialogTitle,
|
||||
TextField,
|
||||
} from "@material-ui/core";
|
||||
import { getAttributeValueErrorMessage } from "@saleor/attributes/errors";
|
||||
import BackButton from "@saleor/components/BackButton";
|
||||
import ConfirmButton from "@saleor/components/ConfirmButton";
|
||||
import Form from "@saleor/components/Form";
|
||||
import {
|
||||
AttributeErrorFragment,
|
||||
AttributeInputTypeEnum,
|
||||
} from "@saleor/graphql";
|
||||
import useModalDialogErrors from "@saleor/hooks/useModalDialogErrors";
|
||||
import { buttonMessages } from "@saleor/intl";
|
||||
import { ConfirmButtonTransitionState } from "@saleor/macaw-ui";
|
||||
import { getFormErrors } from "@saleor/utils/errors";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,27 +1,27 @@
|
|||
import { Card, TableCell, TableFooter, TableHead } from "@material-ui/core";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import CardTitle from "@saleor/components/CardTitle";
|
||||
import ResponsiveTable from "@saleor/components/ResponsiveTable";
|
||||
import Skeleton from "@saleor/components/Skeleton";
|
||||
import { Button } from "@dashboard/components/Button";
|
||||
import CardTitle from "@dashboard/components/CardTitle";
|
||||
import ResponsiveTable from "@dashboard/components/ResponsiveTable";
|
||||
import Skeleton from "@dashboard/components/Skeleton";
|
||||
import {
|
||||
SortableTableBody,
|
||||
SortableTableRow,
|
||||
} from "@saleor/components/SortableTable";
|
||||
import TablePagination from "@saleor/components/TablePagination";
|
||||
import TableRowLink from "@saleor/components/TableRowLink";
|
||||
} from "@dashboard/components/SortableTable";
|
||||
import TablePagination from "@dashboard/components/TablePagination";
|
||||
import TableRowLink from "@dashboard/components/TableRowLink";
|
||||
import {
|
||||
AttributeInputTypeEnum,
|
||||
AttributeValueFragment,
|
||||
AttributeValueListFragment,
|
||||
} from "@saleor/graphql";
|
||||
import { DeleteIcon, IconButton, makeStyles } from "@saleor/macaw-ui";
|
||||
import { renderCollection, stopPropagation } from "@saleor/misc";
|
||||
} from "@dashboard/graphql";
|
||||
import { renderCollection, stopPropagation } from "@dashboard/misc";
|
||||
import {
|
||||
ListProps,
|
||||
PaginateListProps,
|
||||
RelayToFlat,
|
||||
ReorderAction,
|
||||
} from "@saleor/types";
|
||||
} from "@dashboard/types";
|
||||
import { Card, TableCell, TableFooter, TableHead } from "@material-ui/core";
|
||||
import { DeleteIcon, IconButton, makeStyles } from "@saleor/macaw-ui";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { AttributeErrorCode, AttributeErrorFragment } from "@saleor/graphql";
|
||||
import getAttributeErrorMessage from "@saleor/utils/errors/attribute";
|
||||
import { AttributeErrorCode, AttributeErrorFragment } from "@dashboard/graphql";
|
||||
import getAttributeErrorMessage from "@dashboard/utils/errors/attribute";
|
||||
import { defineMessages, IntlShape } from "react-intl";
|
||||
|
||||
const messages = defineMessages({
|
||||
|
|
|
@ -5,7 +5,7 @@ import {
|
|||
AttributeListQuery,
|
||||
AttributeTypeEnum,
|
||||
ProductDetailsQuery,
|
||||
} from "@saleor/graphql";
|
||||
} from "@dashboard/graphql";
|
||||
|
||||
export const attribute: AttributeDetailsQuery["attribute"] = {
|
||||
__typename: "Attribute" as "Attribute",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { sectionNames } from "@saleor/intl";
|
||||
import { asSortParams } from "@saleor/utils/sort";
|
||||
import { sectionNames } from "@dashboard/intl";
|
||||
import { asSortParams } from "@dashboard/utils/sort";
|
||||
import { parse as parseQs } from "qs";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { stringifyQs } from "@saleor/utils/urls";
|
||||
import { stringifyQs } from "@dashboard/utils/urls";
|
||||
import urlJoin from "url-join";
|
||||
|
||||
import {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { FetchResult } from "@apollo/client";
|
|||
import {
|
||||
AttributeInput,
|
||||
AttributeInputData,
|
||||
} from "@saleor/components/Attributes";
|
||||
} from "@dashboard/components/Attributes";
|
||||
import {
|
||||
AttributeEntityTypeEnum,
|
||||
AttributeErrorFragment,
|
||||
|
@ -20,19 +20,19 @@ import {
|
|||
SelectedVariantAttributeFragment,
|
||||
UploadErrorFragment,
|
||||
VariantAttributeFragment,
|
||||
} from "@saleor/graphql";
|
||||
import { FormsetData } from "@saleor/hooks/useFormset";
|
||||
import { RelayToFlat } from "@saleor/types";
|
||||
} from "@dashboard/graphql";
|
||||
import { FormsetData } from "@dashboard/hooks/useFormset";
|
||||
import { RelayToFlat } from "@dashboard/types";
|
||||
import {
|
||||
mapEdgesToItems,
|
||||
mapNodeToChoice,
|
||||
mapPagesToChoices,
|
||||
} from "@saleor/utils/maps";
|
||||
import { RichTextContextValues } from "@saleor/utils/richText/context";
|
||||
} from "@dashboard/utils/maps";
|
||||
import { RichTextContextValues } from "@dashboard/utils/richText/context";
|
||||
import {
|
||||
GetRichTextValues,
|
||||
RichTextGetters,
|
||||
} from "@saleor/utils/richText/useMultipleRichText";
|
||||
} from "@dashboard/utils/richText/useMultipleRichText";
|
||||
|
||||
import { AttributePageFormData } from "../components/AttributePage";
|
||||
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
import {
|
||||
createAttributeMultiChangeHandler,
|
||||
prepareAttributesInput,
|
||||
} from "@saleor/attributes/utils/handlers";
|
||||
} from "@dashboard/attributes/utils/handlers";
|
||||
import {
|
||||
AttributeInput,
|
||||
AttributeInputData,
|
||||
} from "@saleor/components/Attributes";
|
||||
} from "@dashboard/components/Attributes";
|
||||
import {
|
||||
AttributeInputTypeEnum,
|
||||
AttributeValueDetailsFragment,
|
||||
} from "@saleor/graphql";
|
||||
import { FormsetData } from "@saleor/hooks/useFormset";
|
||||
} from "@dashboard/graphql";
|
||||
import { FormsetData } from "@dashboard/hooks/useFormset";
|
||||
|
||||
const multipleValueAttributes: FormsetData<AttributeInputData, string[]> = [
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@ import { FetchResult } from "@apollo/client";
|
|||
import {
|
||||
AttributeInput,
|
||||
AttributeInputData,
|
||||
} from "@saleor/components/Attributes";
|
||||
} from "@dashboard/components/Attributes";
|
||||
import {
|
||||
AttributeEntityTypeEnum,
|
||||
AttributeInputTypeEnum,
|
||||
|
@ -14,14 +14,14 @@ import {
|
|||
PageSelectedAttributeFragment,
|
||||
ProductFragment,
|
||||
ProductVariantDetailsQuery,
|
||||
} from "@saleor/graphql";
|
||||
} from "@dashboard/graphql";
|
||||
import {
|
||||
FormsetAtomicData,
|
||||
FormsetChange,
|
||||
FormsetData,
|
||||
} from "@saleor/hooks/useFormset";
|
||||
import { FetchMoreProps, ReorderEvent } from "@saleor/types";
|
||||
import { move, toggle } from "@saleor/utils/lists";
|
||||
} from "@dashboard/hooks/useFormset";
|
||||
import { FetchMoreProps, ReorderEvent } from "@dashboard/types";
|
||||
import { move, toggle } from "@dashboard/utils/lists";
|
||||
import isEqual from "lodash/isEqual";
|
||||
|
||||
import { getFileValuesToUploadFromAttributes, isFileValueUnused } from "./data";
|
||||
|
|
|
@ -4,22 +4,24 @@ import {
|
|||
useAttributeCreateMutation,
|
||||
useUpdateMetadataMutation,
|
||||
useUpdatePrivateMetadataMutation,
|
||||
} from "@saleor/graphql";
|
||||
import useListSettings from "@saleor/hooks/useListSettings";
|
||||
import useLocalPageInfo, { getMaxPage } from "@saleor/hooks/useLocalPageInfo";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
import { getMutationErrors, getStringOrPlaceholder } from "@saleor/misc";
|
||||
import { ListViews, ReorderEvent } from "@saleor/types";
|
||||
import createDialogActionHandlers from "@saleor/utils/handlers/dialogActionHandlers";
|
||||
import createMetadataCreateHandler from "@saleor/utils/handlers/metadataCreateHandler";
|
||||
} from "@dashboard/graphql";
|
||||
import useListSettings from "@dashboard/hooks/useListSettings";
|
||||
import useLocalPageInfo, {
|
||||
getMaxPage,
|
||||
} from "@dashboard/hooks/useLocalPageInfo";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import { getMutationErrors, getStringOrPlaceholder } from "@dashboard/misc";
|
||||
import { ListViews, ReorderEvent } from "@dashboard/types";
|
||||
import createDialogActionHandlers from "@dashboard/utils/handlers/dialogActionHandlers";
|
||||
import createMetadataCreateHandler from "@dashboard/utils/handlers/metadataCreateHandler";
|
||||
import {
|
||||
add,
|
||||
isSelected,
|
||||
move,
|
||||
remove,
|
||||
updateAtIndex,
|
||||
} from "@saleor/utils/lists";
|
||||
} from "@dashboard/utils/lists";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
import slugify from "slugify";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { attributeValueFragmentToFormData } from "@saleor/attributes/utils/data";
|
||||
import { attributeValueFragmentToFormData } from "@dashboard/attributes/utils/data";
|
||||
import {
|
||||
useAttributeDeleteMutation,
|
||||
useAttributeDetailsQuery,
|
||||
|
@ -9,20 +9,20 @@ import {
|
|||
useAttributeValueUpdateMutation,
|
||||
useUpdateMetadataMutation,
|
||||
useUpdatePrivateMetadataMutation,
|
||||
} from "@saleor/graphql";
|
||||
import useListSettings from "@saleor/hooks/useListSettings";
|
||||
} from "@dashboard/graphql";
|
||||
import useListSettings from "@dashboard/hooks/useListSettings";
|
||||
import useLocalPaginator, {
|
||||
useLocalPaginationState,
|
||||
} from "@saleor/hooks/useLocalPaginator";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { extractMutationErrors, getStringOrPlaceholder } from "@saleor/misc";
|
||||
import { ListViews, ReorderEvent } from "@saleor/types";
|
||||
import getAttributeErrorMessage from "@saleor/utils/errors/attribute";
|
||||
import createDialogActionHandlers from "@saleor/utils/handlers/dialogActionHandlers";
|
||||
import createMetadataUpdateHandler from "@saleor/utils/handlers/metadataUpdateHandler";
|
||||
import { move } from "@saleor/utils/lists";
|
||||
} from "@dashboard/hooks/useLocalPaginator";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import { extractMutationErrors, getStringOrPlaceholder } from "@dashboard/misc";
|
||||
import { ListViews, ReorderEvent } from "@dashboard/types";
|
||||
import getAttributeErrorMessage from "@dashboard/utils/errors/attribute";
|
||||
import createDialogActionHandlers from "@dashboard/utils/handlers/dialogActionHandlers";
|
||||
import createMetadataUpdateHandler from "@dashboard/utils/handlers/metadataUpdateHandler";
|
||||
import { move } from "@dashboard/utils/lists";
|
||||
import omit from "lodash/omit";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
|
|
@ -6,27 +6,27 @@ import {
|
|||
getFilterTabs,
|
||||
getFilterVariables,
|
||||
saveFilterTab,
|
||||
} from "@saleor/attributes/views/AttributeList/filters";
|
||||
import DeleteFilterTabDialog from "@saleor/components/DeleteFilterTabDialog";
|
||||
} from "@dashboard/attributes/views/AttributeList/filters";
|
||||
import DeleteFilterTabDialog from "@dashboard/components/DeleteFilterTabDialog";
|
||||
import SaveFilterTabDialog, {
|
||||
SaveFilterTabDialogFormData,
|
||||
} from "@saleor/components/SaveFilterTabDialog";
|
||||
} from "@dashboard/components/SaveFilterTabDialog";
|
||||
import {
|
||||
useAttributeBulkDeleteMutation,
|
||||
useAttributeListQuery,
|
||||
} from "@saleor/graphql";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
} from "@dashboard/graphql";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import usePaginator, {
|
||||
createPaginationState,
|
||||
PaginatorContext,
|
||||
} from "@saleor/hooks/usePaginator";
|
||||
} from "@dashboard/hooks/usePaginator";
|
||||
import createDialogActionHandlers from "@dashboard/utils/handlers/dialogActionHandlers";
|
||||
import createFilterHandlers from "@dashboard/utils/handlers/filterHandlers";
|
||||
import createSortHandler from "@dashboard/utils/handlers/sortHandler";
|
||||
import { mapEdgesToItems } from "@dashboard/utils/maps";
|
||||
import { getSortParams } from "@dashboard/utils/sort";
|
||||
import { DeleteIcon, IconButton } from "@saleor/macaw-ui";
|
||||
import createDialogActionHandlers from "@saleor/utils/handlers/dialogActionHandlers";
|
||||
import createFilterHandlers from "@saleor/utils/handlers/filterHandlers";
|
||||
import createSortHandler from "@saleor/utils/handlers/sortHandler";
|
||||
import { mapEdgesToItems } from "@saleor/utils/maps";
|
||||
import { getSortParams } from "@saleor/utils/sort";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { createFilterStructure } from "@saleor/attributes/components/AttributeListPage";
|
||||
import { AttributeListUrlFilters } from "@saleor/attributes/urls";
|
||||
import { getFilterQueryParams } from "@saleor/utils/filters";
|
||||
import { stringifyQs } from "@saleor/utils/urls";
|
||||
import { createFilterStructure } from "@dashboard/attributes/components/AttributeListPage";
|
||||
import { AttributeListUrlFilters } from "@dashboard/attributes/urls";
|
||||
import { getFilterQueryParams } from "@dashboard/utils/filters";
|
||||
import { stringifyQs } from "@dashboard/utils/urls";
|
||||
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
|
||||
import { config } from "@test/intl";
|
||||
import { createIntl } from "react-intl";
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import {
|
||||
AttributeFilterKeys,
|
||||
AttributeListFilterOpts,
|
||||
} from "@saleor/attributes/components/AttributeListPage";
|
||||
import { FilterElement } from "@saleor/components/Filter";
|
||||
import { AttributeFilterInput } from "@saleor/graphql";
|
||||
import { maybe, parseBoolean } from "@saleor/misc";
|
||||
} from "@dashboard/attributes/components/AttributeListPage";
|
||||
import { FilterElement } from "@dashboard/components/Filter";
|
||||
import { AttributeFilterInput } from "@dashboard/graphql";
|
||||
import { maybe, parseBoolean } from "@dashboard/misc";
|
||||
|
||||
import {
|
||||
createFilterTabUtils,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { AttributeListUrlSortField } from "@saleor/attributes/urls";
|
||||
import { AttributeSortField } from "@saleor/graphql";
|
||||
import { createGetSortQueryVariables } from "@saleor/utils/sort";
|
||||
import { AttributeListUrlSortField } from "@dashboard/attributes/urls";
|
||||
import { AttributeSortField } from "@dashboard/graphql";
|
||||
import { createGetSortQueryVariables } from "@dashboard/utils/sort";
|
||||
|
||||
export function getSortQueryField(
|
||||
sort: AttributeListUrlSortField,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { getApiUrl } from "@saleor/config";
|
||||
import { getApiUrl } from "@dashboard/config";
|
||||
import { createSaleorClient, SaleorProvider } from "@saleor/sdk";
|
||||
import setupApi from "@test/api";
|
||||
import { act, renderHook } from "@testing-library/react-hooks";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useApolloClient } from "@apollo/client";
|
||||
import useNotifier from "@saleor/hooks/useNotifier";
|
||||
import useNotifier from "@dashboard/hooks/useNotifier";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import CardDecorator from "@saleor/storybook/CardDecorator";
|
||||
import Decorator from "@saleor/storybook/Decorator";
|
||||
import CardDecorator from "@dashboard/storybook/CardDecorator";
|
||||
import Decorator from "@dashboard/storybook/Decorator";
|
||||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
import { UserContextError } from "@dashboard/auth/types";
|
||||
import { passwordResetUrl } from "@dashboard/auth/urls";
|
||||
import { Button } from "@dashboard/components/Button";
|
||||
import { FormSpacer } from "@dashboard/components/FormSpacer";
|
||||
import { AvailableExternalAuthenticationsQuery } from "@dashboard/graphql";
|
||||
import { SubmitPromise } from "@dashboard/hooks/useForm";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import {
|
||||
CircularProgress,
|
||||
Divider,
|
||||
TextField,
|
||||
Typography,
|
||||
} from "@material-ui/core";
|
||||
import { UserContextError } from "@saleor/auth/types";
|
||||
import { passwordResetUrl } from "@saleor/auth/urls";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import { FormSpacer } from "@saleor/components/FormSpacer";
|
||||
import { AvailableExternalAuthenticationsQuery } from "@saleor/graphql";
|
||||
import { SubmitPromise } from "@saleor/hooks/useForm";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { EyeIcon, IconButton } from "@saleor/macaw-ui";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { DEMO_MODE } from "@saleor/config";
|
||||
import useForm, { FormChange, SubmitPromise } from "@saleor/hooks/useForm";
|
||||
import useHandleFormSubmit from "@saleor/hooks/useHandleFormSubmit";
|
||||
import { DEMO_MODE } from "@dashboard/config";
|
||||
import useForm, { FormChange, SubmitPromise } from "@dashboard/hooks/useForm";
|
||||
import useHandleFormSubmit from "@dashboard/hooks/useHandleFormSubmit";
|
||||
import React from "react";
|
||||
|
||||
export interface LoginFormData {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { UserContextError } from "@saleor/auth/types";
|
||||
import { UserContextError } from "@dashboard/auth/types";
|
||||
import { defineMessages, IntlShape } from "react-intl";
|
||||
|
||||
export const errorMessages = defineMessages({
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { AccountErrorCode } from "@saleor/graphql";
|
||||
import CardDecorator from "@saleor/storybook//CardDecorator";
|
||||
import Decorator from "@saleor/storybook//Decorator";
|
||||
import { AccountErrorCode } from "@dashboard/graphql";
|
||||
import CardDecorator from "@dashboard/storybook//CardDecorator";
|
||||
import Decorator from "@dashboard/storybook//Decorator";
|
||||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { Button } from "@dashboard/components/Button";
|
||||
import Form from "@dashboard/components/Form";
|
||||
import FormSpacer from "@dashboard/components/FormSpacer";
|
||||
import { SubmitPromise } from "@dashboard/hooks/useForm";
|
||||
import getAccountErrorMessage from "@dashboard/utils/errors/account";
|
||||
import { TextField, Typography } from "@material-ui/core";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import Form from "@saleor/components/Form";
|
||||
import FormSpacer from "@saleor/components/FormSpacer";
|
||||
import { SubmitPromise } from "@saleor/hooks/useForm";
|
||||
import { SetPasswordData } from "@saleor/sdk";
|
||||
import getAccountErrorMessage from "@saleor/utils/errors/account";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import CardDecorator from "@saleor/storybook/CardDecorator";
|
||||
import Decorator from "@saleor/storybook/Decorator";
|
||||
import { formError } from "@saleor/storybook/formError";
|
||||
import CardDecorator from "@dashboard/storybook/CardDecorator";
|
||||
import Decorator from "@dashboard/storybook/Decorator";
|
||||
import { formError } from "@dashboard/storybook/formError";
|
||||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { Button } from "@dashboard/components/Button";
|
||||
import Form from "@dashboard/components/Form";
|
||||
import FormSpacer from "@dashboard/components/FormSpacer";
|
||||
import { IconButton } from "@dashboard/components/IconButton";
|
||||
import { getAppMountUri } from "@dashboard/config";
|
||||
import { RequestPasswordResetMutation } from "@dashboard/graphql";
|
||||
import { SubmitPromise } from "@dashboard/hooks/useForm";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import { TextField, Typography } from "@material-ui/core";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import Form from "@saleor/components/Form";
|
||||
import FormSpacer from "@saleor/components/FormSpacer";
|
||||
import { IconButton } from "@saleor/components/IconButton";
|
||||
import { getAppMountUri } from "@saleor/config";
|
||||
import { RequestPasswordResetMutation } from "@saleor/graphql";
|
||||
import { SubmitPromise } from "@saleor/hooks/useForm";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { ArrowRightIcon } from "@saleor/macaw-ui";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import CardDecorator from "@saleor/storybook/CardDecorator";
|
||||
import Decorator from "@saleor/storybook/Decorator";
|
||||
import CardDecorator from "@dashboard/storybook/CardDecorator";
|
||||
import Decorator from "@dashboard/storybook/Decorator";
|
||||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Button } from "@dashboard/components/Button";
|
||||
import FormSpacer from "@dashboard/components/FormSpacer";
|
||||
import { Typography } from "@material-ui/core";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import FormSpacer from "@saleor/components/FormSpacer";
|
||||
import React from "react";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { PermissionEnum } from "@saleor/graphql";
|
||||
import { PermissionEnum } from "@dashboard/graphql";
|
||||
import React from "react";
|
||||
import { Route, RouteProps } from "react-router-dom";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { ApolloError } from "@apollo/client";
|
||||
import { findValueInEnum } from "@saleor/misc";
|
||||
import { findValueInEnum } from "@dashboard/misc";
|
||||
import { GraphQLError } from "graphql";
|
||||
|
||||
import { UserContextError } from "./types";
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
import { ApolloClient, ApolloError } from "@apollo/client";
|
||||
import { IMessageContext } from "@saleor/components/messages";
|
||||
import { DEMO_MODE } from "@saleor/config";
|
||||
import { useUserDetailsQuery } from "@saleor/graphql";
|
||||
import useLocalStorage from "@saleor/hooks/useLocalStorage";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { IMessageContext } from "@dashboard/components/messages";
|
||||
import { DEMO_MODE } from "@dashboard/config";
|
||||
import { useUserDetailsQuery } from "@dashboard/graphql";
|
||||
import useLocalStorage from "@dashboard/hooks/useLocalStorage";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import {
|
||||
isSupported as isCredentialsManagementAPISupported,
|
||||
login as loginWithCredentialsManagementAPI,
|
||||
saveCredentials,
|
||||
} from "@dashboard/utils/credentialsManagement";
|
||||
import { getAppMountUriForRedirect } from "@dashboard/utils/urls";
|
||||
import {
|
||||
GetExternalAccessTokenData,
|
||||
LoginData,
|
||||
useAuth,
|
||||
useAuthState,
|
||||
} from "@saleor/sdk";
|
||||
import {
|
||||
isSupported as isCredentialsManagementAPISupported,
|
||||
login as loginWithCredentialsManagementAPI,
|
||||
saveCredentials,
|
||||
} from "@saleor/utils/credentialsManagement";
|
||||
import { getAppMountUriForRedirect } from "@saleor/utils/urls";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { IntlShape } from "react-intl";
|
||||
import urlJoin from "url-join";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { PermissionEnum, UserFragment } from "@saleor/graphql";
|
||||
import { PermissionEnum, UserFragment } from "@dashboard/graphql";
|
||||
|
||||
export const hasPermission = (permission: PermissionEnum, user: UserFragment) =>
|
||||
user.userPermissions.map(perm => perm.code).includes(permission);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { UserFragment } from "@saleor/graphql";
|
||||
import { UserFragment } from "@dashboard/graphql";
|
||||
import {
|
||||
GetExternalAccessTokenData,
|
||||
GetExternalAuthUrlData,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { stringifyQs } from "@saleor/utils/urls";
|
||||
import { stringifyQs } from "@dashboard/utils/urls";
|
||||
|
||||
export const passwordResetPath = "/reset-password/";
|
||||
export const passwordResetUrl = passwordResetPath;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { ApolloError, ServerError } from "@apollo/client/core";
|
||||
import { IMessage, IMessageContext } from "@saleor/components/messages";
|
||||
import { UseNotifierResult } from "@saleor/hooks/useNotifier";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { getMutationErrors, parseLogMessage } from "@saleor/misc";
|
||||
import { IMessage, IMessageContext } from "@dashboard/components/messages";
|
||||
import { UseNotifierResult } from "@dashboard/hooks/useNotifier";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import { getMutationErrors, parseLogMessage } from "@dashboard/misc";
|
||||
import { IntlShape } from "react-intl";
|
||||
|
||||
import { isJwtError, isTokenExpired } from "./errors";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { useAvailableExternalAuthenticationsQuery } from "@saleor/graphql";
|
||||
import useLocalStorage from "@saleor/hooks/useLocalStorage";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import { getAppMountUriForRedirect } from "@saleor/utils/urls";
|
||||
import { useAvailableExternalAuthenticationsQuery } from "@dashboard/graphql";
|
||||
import useLocalStorage from "@dashboard/hooks/useLocalStorage";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import { getAppMountUriForRedirect } from "@dashboard/utils/urls";
|
||||
import React, { useEffect } from "react";
|
||||
import urlJoin from "url-join";
|
||||
import useRouter from "use-react-router";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import { SetPasswordData, useAuth } from "@saleor/sdk";
|
||||
import { parse as parseQs } from "qs";
|
||||
import React, { useState } from "react";
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { useRequestPasswordResetMutation } from "@saleor/graphql";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { extractMutationErrors } from "@saleor/misc";
|
||||
import { getAppMountUriForRedirect } from "@saleor/utils/urls";
|
||||
import { useRequestPasswordResetMutation } from "@dashboard/graphql";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import { extractMutationErrors } from "@dashboard/misc";
|
||||
import { getAppMountUriForRedirect } from "@dashboard/utils/urls";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
import urlJoin from "url-join";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { getAppMountUri } from "@saleor/config";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import { getAppMountUri } from "@dashboard/config";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import React from "react";
|
||||
|
||||
import ResetPasswordSuccessPage from "../components/ResetPasswordSuccessPage";
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { Button } from "@dashboard/components/Button";
|
||||
import CardTitle from "@dashboard/components/CardTitle";
|
||||
import Hr from "@dashboard/components/Hr";
|
||||
import ImageUpload from "@dashboard/components/ImageUpload";
|
||||
import MediaTile from "@dashboard/components/MediaTile";
|
||||
import Skeleton from "@dashboard/components/Skeleton";
|
||||
import { CategoryDetailsFragment } from "@dashboard/graphql";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import { Card, CardContent, TextField } from "@material-ui/core";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import CardTitle from "@saleor/components/CardTitle";
|
||||
import Hr from "@saleor/components/Hr";
|
||||
import ImageUpload from "@saleor/components/ImageUpload";
|
||||
import MediaTile from "@saleor/components/MediaTile";
|
||||
import Skeleton from "@saleor/components/Skeleton";
|
||||
import { CategoryDetailsFragment } from "@saleor/graphql";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { makeStyles } from "@saleor/macaw-ui";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { ProductErrorCode } from "@saleor/graphql";
|
||||
import Decorator from "@saleor/storybook/Decorator";
|
||||
import { ProductErrorCode } from "@dashboard/graphql";
|
||||
import Decorator from "@dashboard/storybook/Decorator";
|
||||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import { Backlink } from "@saleor/components/Backlink";
|
||||
import { CardSpacer } from "@saleor/components/CardSpacer";
|
||||
import Container from "@saleor/components/Container";
|
||||
import Metadata from "@saleor/components/Metadata";
|
||||
import PageHeader from "@saleor/components/PageHeader";
|
||||
import Savebar from "@saleor/components/Savebar";
|
||||
import SeoForm from "@saleor/components/SeoForm";
|
||||
import { ProductErrorFragment } from "@saleor/graphql";
|
||||
import useNavigator from "@saleor/hooks/useNavigator";
|
||||
import { sectionNames } from "@saleor/intl";
|
||||
import { Backlink } from "@dashboard/components/Backlink";
|
||||
import { CardSpacer } from "@dashboard/components/CardSpacer";
|
||||
import Container from "@dashboard/components/Container";
|
||||
import Metadata from "@dashboard/components/Metadata";
|
||||
import PageHeader from "@dashboard/components/PageHeader";
|
||||
import Savebar from "@dashboard/components/Savebar";
|
||||
import SeoForm from "@dashboard/components/SeoForm";
|
||||
import { ProductErrorFragment } from "@dashboard/graphql";
|
||||
import useNavigator from "@dashboard/hooks/useNavigator";
|
||||
import { sectionNames } from "@dashboard/intl";
|
||||
import { ConfirmButtonTransitionState } from "@saleor/macaw-ui";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
import { OutputData } from "@editorjs/editorjs";
|
||||
import { useExitFormDialog } from "@saleor/components/Form/useExitFormDialog";
|
||||
import { MetadataFormData } from "@saleor/components/Metadata";
|
||||
import { useExitFormDialog } from "@dashboard/components/Form/useExitFormDialog";
|
||||
import { MetadataFormData } from "@dashboard/components/Metadata";
|
||||
import useForm, {
|
||||
CommonUseFormResult,
|
||||
FormChange,
|
||||
} from "@saleor/hooks/useForm";
|
||||
import useHandleFormSubmit from "@saleor/hooks/useHandleFormSubmit";
|
||||
import useMetadataChangeTrigger from "@saleor/utils/metadata/useMetadataChangeTrigger";
|
||||
} from "@dashboard/hooks/useForm";
|
||||
import useHandleFormSubmit from "@dashboard/hooks/useHandleFormSubmit";
|
||||
import useMetadataChangeTrigger from "@dashboard/utils/metadata/useMetadataChangeTrigger";
|
||||
import {
|
||||
RichTextContext,
|
||||
RichTextContextValues,
|
||||
} from "@saleor/utils/richText/context";
|
||||
import useRichText from "@saleor/utils/richText/useRichText";
|
||||
} from "@dashboard/utils/richText/context";
|
||||
import useRichText from "@dashboard/utils/richText/useRichText";
|
||||
import { OutputData } from "@editorjs/editorjs";
|
||||
import React, { useEffect } from "react";
|
||||
|
||||
export interface CategoryCreateFormData extends MetadataFormData {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import BackButton from "@dashboard/components/BackButton";
|
||||
import { Button } from "@dashboard/components/Button";
|
||||
import { buttonMessages } from "@dashboard/intl";
|
||||
import {
|
||||
Dialog,
|
||||
DialogActions,
|
||||
|
@ -5,9 +8,6 @@ import {
|
|||
DialogContentText,
|
||||
DialogTitle,
|
||||
} from "@material-ui/core";
|
||||
import BackButton from "@saleor/components/BackButton";
|
||||
import { Button } from "@saleor/components/Button";
|
||||
import { buttonMessages } from "@saleor/intl";
|
||||
import { makeStyles } from "@saleor/macaw-ui";
|
||||
import React from "react";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import CardTitle from "@dashboard/components/CardTitle";
|
||||
import FormSpacer from "@dashboard/components/FormSpacer";
|
||||
import RichTextEditor from "@dashboard/components/RichTextEditor";
|
||||
import { RichTextEditorLoading } from "@dashboard/components/RichTextEditor/RichTextEditorLoading";
|
||||
import { ProductErrorFragment } from "@dashboard/graphql";
|
||||
import { commonMessages } from "@dashboard/intl";
|
||||
import { getFormErrors, getProductErrorMessage } from "@dashboard/utils/errors";
|
||||
import { useRichTextContext } from "@dashboard/utils/richText/context";
|
||||
import { OutputData } from "@editorjs/editorjs";
|
||||
import { Card, CardContent, TextField } from "@material-ui/core";
|
||||
import CardTitle from "@saleor/components/CardTitle";
|
||||
import FormSpacer from "@saleor/components/FormSpacer";
|
||||
import RichTextEditor from "@saleor/components/RichTextEditor";
|
||||
import { RichTextEditorLoading } from "@saleor/components/RichTextEditor/RichTextEditorLoading";
|
||||
import { ProductErrorFragment } from "@saleor/graphql";
|
||||
import { commonMessages } from "@saleor/intl";
|
||||
import { getFormErrors, getProductErrorMessage } from "@saleor/utils/errors";
|
||||
import { useRichTextContext } from "@saleor/utils/richText/context";
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
import {
|
||||
CategoryListUrlSortField,
|
||||
categoryUrl,
|
||||
} from "@dashboard/categories/urls";
|
||||
import Checkbox from "@dashboard/components/Checkbox";
|
||||
import ResponsiveTable from "@dashboard/components/ResponsiveTable";
|
||||
import Skeleton from "@dashboard/components/Skeleton";
|
||||
import TableCellHeader from "@dashboard/components/TableCellHeader";
|
||||
import TableHead from "@dashboard/components/TableHead";
|
||||
import { TablePaginationWithContext } from "@dashboard/components/TablePagination";
|
||||
import TableRowLink from "@dashboard/components/TableRowLink";
|
||||
import { CategoryFragment } from "@dashboard/graphql";
|
||||
import { maybe, renderCollection } from "@dashboard/misc";
|
||||
import { ListActions, ListProps, SortPage } from "@dashboard/types";
|
||||
import { getArrowDirection } from "@dashboard/utils/sort";
|
||||
import { TableBody, TableCell, TableFooter } from "@material-ui/core";
|
||||
import { CategoryListUrlSortField, categoryUrl } from "@saleor/categories/urls";
|
||||
import Checkbox from "@saleor/components/Checkbox";
|
||||
import ResponsiveTable from "@saleor/components/ResponsiveTable";
|
||||
import Skeleton from "@saleor/components/Skeleton";
|
||||
import TableCellHeader from "@saleor/components/TableCellHeader";
|
||||
import TableHead from "@saleor/components/TableHead";
|
||||
import { TablePaginationWithContext } from "@saleor/components/TablePagination";
|
||||
import TableRowLink from "@saleor/components/TableRowLink";
|
||||
import { CategoryFragment } from "@saleor/graphql";
|
||||
import { makeStyles } from "@saleor/macaw-ui";
|
||||
import { maybe, renderCollection } from "@saleor/misc";
|
||||
import { ListActions, ListProps, SortPage } from "@saleor/types";
|
||||
import { getArrowDirection } from "@saleor/utils/sort";
|
||||
import React from "react";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { categories } from "@saleor/categories/fixtures";
|
||||
import { CategoryListUrlSortField } from "@saleor/categories/urls";
|
||||
import { categories } from "@dashboard/categories/fixtures";
|
||||
import { CategoryListUrlSortField } from "@dashboard/categories/urls";
|
||||
import {
|
||||
listActionsProps,
|
||||
pageListProps,
|
||||
searchPageProps,
|
||||
sortPageProps,
|
||||
tabPageProps,
|
||||
} from "@saleor/fixtures";
|
||||
import Decorator from "@saleor/storybook/Decorator";
|
||||
import { PaginatorContextDecorator } from "@saleor/storybook/PaginatorContextDecorator";
|
||||
} from "@dashboard/fixtures";
|
||||
import Decorator from "@dashboard/storybook/Decorator";
|
||||
import { PaginatorContextDecorator } from "@dashboard/storybook/PaginatorContextDecorator";
|
||||
import { storiesOf } from "@storybook/react";
|
||||
import React from "react";
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue