Skip to content

Commit d9830e5

Browse files
committed
chore: Delete now unused import pages/routes/controllers and utils
Although a lot of work has been put into multiple iterations of these, this import-specific stuff is now no longer needed (and partly broken). All of the deleted features (and even more) have been integrated into the regular entity routes and display pages.
1 parent b206930 commit d9830e5

29 files changed

+7
-1724
lines changed

src/client/components/pages/entities/author.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const {deletedEntityMessage, extractAttribute, getTypeAttribute, getEntityUrl,
4343
ENTITY_TYPE_ICONS, getSortNameOfDefaultAlias, transformISODateForDisplay} = entityHelper;
4444
const {Button, Col, Row} = bootstrap;
4545

46-
export function AuthorAttributes({author}) {
46+
function AuthorAttributes({author}) {
4747
if (author.deleted) {
4848
return deletedEntityMessage;
4949
}

src/client/components/pages/entities/edition-group.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import WikipediaExtract from './wikipedia-extract';
3939
const {deletedEntityMessage, getTypeAttribute, getEntityUrl, ENTITY_TYPE_ICONS, getSortNameOfDefaultAlias} = entityHelper;
4040
const {Col, Row} = bootstrap;
4141

42-
export function EditionGroupAttributes({editionGroup}) {
42+
function EditionGroupAttributes({editionGroup}) {
4343
if (editionGroup.deleted) {
4444
return deletedEntityMessage;
4545
}

src/client/components/pages/entities/edition.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const {
4040
} = entityHelper;
4141
const {Col, Row} = bootstrap;
4242

43-
export function EditionAttributes({edition}) {
43+
function EditionAttributes({edition}) {
4444
if (edition.deleted) {
4545
return deletedEntityMessage;
4646
}

src/client/components/pages/entities/publisher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const {deletedEntityMessage, extractAttribute, getTypeAttribute, getEntityUrl,
3535
ENTITY_TYPE_ICONS, getSortNameOfDefaultAlias, transformISODateForDisplay} = entityHelper;
3636
const {Col, Row} = bootstrap;
3737

38-
export function PublisherAttributes({publisher}) {
38+
function PublisherAttributes({publisher}) {
3939
if (publisher.deleted) {
4040
return deletedEntityMessage;
4141
}

src/client/components/pages/entities/series.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import WikipediaExtract from './wikipedia-extract';
3737
const {deletedEntityMessage, getEntityUrl, ENTITY_TYPE_ICONS, getSortNameOfDefaultAlias} = entityHelper;
3838
const {Col, Row} = bootstrap;
3939

40-
export function SeriesAttributes({series}) {
40+
function SeriesAttributes({series}) {
4141
if (series.deleted) {
4242
return deletedEntityMessage;
4343
}

src/client/components/pages/entities/work.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const {deletedEntityMessage, getRelationshipSourceByTypeId, getLanguageAttribute
4040
const {Col, Row} = bootstrap;
4141

4242

43-
export function WorkAttributes({work}) {
43+
function WorkAttributes({work}) {
4444
if (work.deleted) {
4545
return deletedEntityMessage;
4646
}

src/client/components/pages/import-entities/author.js

-79
This file was deleted.

src/client/components/pages/import-entities/edition-group.js

-79
This file was deleted.

src/client/components/pages/import-entities/edition.js

-80
This file was deleted.

src/client/components/pages/import-entities/index.js

-38
This file was deleted.

0 commit comments

Comments
 (0)