Skip to content

Commit

Permalink
chore(merge-tool): Cleanup before merging PR
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkeyDo committed May 25, 2020
1 parent 83bda6b commit a010506
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 22 deletions.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "node",
"request": "launch",
"name": "Launch Program",
"env": {"SSR":true, "DEBUG": true},
"env": {"SSR":true},
"program": "${workspaceFolder}/lib/server/app.js",
"args": ["--config", "./config/config.local.json"],
"sourceMaps": true,
Expand Down
3 changes: 1 addition & 2 deletions src/client/components/forms/deletion.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ class EntityDeletionForm extends React.Component {
revision note below to explain why and confirm the deletion.
</p>
<p className="text-muted">
We are currently working on the merging tool. If this {entity.type} is a duplicate,
please edit it to add &quot;duplicate&quot; as a disambiguation to mark it to be merged.
If this {entity.type} is a duplicate, click <a href={`/merge/add/${entity.bbid}`}>this link</a> to select it to be merged instead.
</p>

<CustomInput
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 Ben Ockmore
* Copyright (C) 2019 Nicolas Pelletier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/client/entity-editor/alias-editor/alias-row-merge.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 Ben Ockmore
* Copyright (C) 2019 Nicolas Pelletier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable complexity */
/*
* Copyright (C) 2016 Ben Ockmore
* Copyright (C) 2019 Nicolas Pelletier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017 Ben Ockmore
* Copyright (C) 2019 Nicolas Pelletier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion src/client/entity-editor/entity-merge.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016 Ben Ockmore
* Copyright (C) 2019 Nicolas Pelletier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
6 changes: 1 addition & 5 deletions src/client/entity-editor/name-section/name-section-merge.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* eslint-disable no-inline-comments */
/* eslint-disable no-console */
/*
* Copyright (C) 2016 Ben Ockmore
* Copyright (C) 2019 Nicolas Pelletier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -61,8 +59,6 @@ import {entityTypeProperty} from '../../helpers/react-validators';
* @returns {ReactElement} React element containing the rendered NameSectionMerge.
*/

// const valueFromId = (opts, id, path = 'value') => opts.find(opt => _.get(opt, path) === id);

function NameSectionMerge({
disambiguationDefaultValue,
mergingEntities,
Expand Down
4 changes: 2 additions & 2 deletions src/server/helpers/entityRouteUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type PassportRequest = $Request & {user: any, session: any};

/**
* Callback to get the initial state
* @callback initialState
* @callback initialStateCallback
* @param {object} entity - entity
*/

Expand Down Expand Up @@ -104,7 +104,7 @@ export function generateEntityProps(

/**
* Callback to get the initial state
* @callback initialState
* @callback initialStateCallback
* @param {object} entity - entity
*/

Expand Down
2 changes: 1 addition & 1 deletion src/server/routes/entity/author.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function _setAuthorTitle(res) {
res.locals.title = utils.createEntityPageTitle(
res.locals.entity,
'Author',
utils.template`${'name'}`
utils.template`Author “${'name'}`
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/server/routes/entity/edition-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function _setEditionGroupTitle(res) {
res.locals.title = utils.createEntityPageTitle(
res.locals.entity,
'EditionGroup',
utils.template`${'name'}`
utils.template`Edition Group “${'name'}`
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/server/routes/entity/edition.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function _setEditionTitle(res) {
res.locals.title = utils.createEntityPageTitle(
res.locals.entity,
'Edition',
utils.template`${'name'}`
utils.template`Edition “${'name'}`
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/server/routes/entity/publisher.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function _setPublisherTitle(res) {
res.locals.title = utils.createEntityPageTitle(
res.locals.entity,
'Publisher',
utils.template`${'name'}`
utils.template`Publisher “${'name'}`
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/server/routes/entity/work.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function _setWorkTitle(res) {
res.locals.title = utils.createEntityPageTitle(
res.locals.entity,
'Work',
utils.template`${'name'}`
utils.template`Work “${'name'}`
);
}

Expand Down
3 changes: 1 addition & 2 deletions src/server/routes/merge.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (C) 2015-2016 Ben Ockmore
* 2016 Sean Burke
* Copyright (C) 2019 Nicolas Pelletier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit a010506

Please sign in to comment.