Skip to content

Commit

Permalink
Updated faker (faker -> @faker-js/faker)
Browse files Browse the repository at this point in the history
  • Loading branch information
Symyon committed Jan 12, 2023
1 parent a4437c2 commit 4e6a78c
Show file tree
Hide file tree
Showing 85 changed files with 85 additions and 85 deletions.
2 changes: 1 addition & 1 deletion app/layout/components/NavbarActivityFeed.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Link } from 'react-router-dom';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';
import PropTypes from 'prop-types';

Expand Down
2 changes: 1 addition & 1 deletion app/layout/components/NavbarMessages.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';
import PropTypes from 'prop-types';

Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/Clients/Clients.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/Clients/components/TrTableClients.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import PropTypes from 'prop-types';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/Clients/components/TrTableCompanies.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import PropTypes from 'prop-types';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/EmailDetails/EmailDetails.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import { Link } from 'react-router-dom';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/Files/components/TrTableFilesList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Badge,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import PropTypes from 'prop-types';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/Inbox/Inbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import { Link } from 'react-router-dom';
import _ from 'lodash';

Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/Inbox/components/TrTableInbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';

Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/ProfileDetails/ProfileDetails.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import { Link } from 'react-router-dom';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import { Link } from 'react-router-dom';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/Projects/components/TrTableProjectsList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';
import { Link } from 'react-router-dom';

Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/Tasks/components/TrTableTasksList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';

Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/TasksDetails/TasksDetails.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Apps/Users/components/TrTableUsersList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import PropTypes from 'prop-types';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Dashboards/Analytics/Analytics.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';
import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Dashboards/Projects/DraggableProjects.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import uid from 'uuid/v4';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
import _ from 'lodash';

Expand Down
2 changes: 1 addition & 1 deletion app/routes/Dashboards/Projects/ProjectsDashboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import { Link } from 'react-router-dom';
import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Dashboards/Reports/Reports.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import {
Container,
Row,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Dashboards/System/System.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import {
Container,
Row,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Forms/Editor/Editor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactQuill from 'react-quill';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Interface/Accordions/Accordions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Accordion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import uid from 'uuid/v4';
import _ from 'lodash';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import {
DragDropContext,
Droppable,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Draggable
} from 'react-beautiful-dnd';
import uid from 'uuid/v4';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import classNames from 'classnames';
import {
Card,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Interface/Images/Images.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Interface/ListGroups/ListGroups.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Interface/MediaObjects/MediaObjects.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Checkable,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Interface/Modals/Modals.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Interface/Notifications/Notifications.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { ToastContainer, toast } from 'react-toastify';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Interface/TooltipsPopovers/TooltipsPopovers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Layouts/DragAndDropLayout/DragAndDropLayout.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import v4 from 'uuid/v4';
import _ from 'lodash';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Container,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import paginationFactory from 'react-bootstrap-table2-paginator';
import filterFactory, { Comparator, dateFilter } from 'react-bootstrap-table2-filter'
import ToolkitProvider from 'react-bootstrap-table2-toolkit';
import _ from 'lodash';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import moment from 'moment';

import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import BootstrapTable from 'react-bootstrap-table-next';
import ToolkitProvider from 'react-bootstrap-table2-toolkit';
import moment from 'moment';
import _ from 'lodash';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Avatar,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/ExtendedTable/components/BasicTable.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import _ from 'lodash';
import BootstrapTable from 'react-bootstrap-table-next';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

const columns = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import _ from 'lodash';
import BootstrapTable from 'react-bootstrap-table-next';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

const columns = [
{
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/ExtendedTable/components/CellEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import _ from 'lodash';
import BootstrapTable from 'react-bootstrap-table-next';
import cellEditFactory, { Type } from 'react-bootstrap-table2-editor';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import { randomArray } from './../../../../utilities';

Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/ExtendedTable/components/ClearSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import _ from 'lodash';
import BootstrapTable from 'react-bootstrap-table-next';
import ToolkitProvider from 'react-bootstrap-table2-toolkit';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import { CustomSearch } from './CustomSearch';

Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/ExtendedTable/components/LargeTable.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import _ from 'lodash';
import BootstrapTable from 'react-bootstrap-table-next';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import classes from './LargeTable.scss';
import { Card, CardHeader } from './../../../../components';
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/ExtendedTable/components/SelectAll.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import _ from 'lodash';
import BootstrapTable from 'react-bootstrap-table-next';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

const columns = [
{
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/ExtendedTable/components/SortTable.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import _ from 'lodash';
import BootstrapTable from 'react-bootstrap-table-next';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

const sortCaret = (order) => {
if (!order)
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/Tables/components/TrTableBordered.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/Tables/components/TrTableBorderless.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/Tables/components/TrTableContextual.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/Tables/components/TrTableDefault.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';
import PropTypes from 'prop-types';

Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/Tables/components/TrTableHeads.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/Tables/components/TrTableHoverable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

const TrTableHoverable = () => (
<React.Fragment>
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/Tables/components/TrTableResponsive.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/Tables/components/TrTableSmall.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';

import {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Tables/Tables/components/TrTableStriped.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import _ from 'lodash';

/*eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion app/routes/Widgets/Widgets.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Link } from 'react-router-dom';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');

import {
Container,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/components/Analytics/TrTableTrafficChannels.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import _ from 'lodash';
import faker from 'faker/locale/en_US';
const faker = require('@faker-js/faker/locale/en_US');
import {
Media,
Avatar,
Expand Down
Loading

0 comments on commit 4e6a78c

Please sign in to comment.