Skip to content

Commit

Permalink
refactor: remove unused exports
Browse files Browse the repository at this point in the history
Refs #397
  • Loading branch information
thewilkybarkid committed Aug 18, 2021
1 parent bb7ccbd commit d307ee3
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 1,533 deletions.
4 changes: 2 additions & 2 deletions src/frontend/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import { ThemeProvider } from '@material-ui/core/styles';
import theme from './theme.js';
import App from './components/app.js';

export const hydrate = (app, element) => () => {
const hydrate = (app, element) => () => {
ReactDOM.hydrate(app, element);
};

export const start = ({ isProduction, document, module, hydrate }) => {
const start = ({ isProduction, document, module, hydrate }) => {
const element = document.getElementById('root');
const app = (
<HelmetProvider>
Expand Down
2 changes: 0 additions & 2 deletions src/frontend/components/role-badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@ RoleBadgeUI.propTypes = {
disabled: PropTypes.bool,
};

export { RoleBadgeUI };

function Tooltipify({ tooltip, user, children }) {
return tooltip ? (
<Tooltip
Expand Down
151 changes: 0 additions & 151 deletions src/frontend/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,155 +119,4 @@ export const QUESTIONS = [
},
];

export const INDEXED_PREPRINT_PROPS = [
'@id',
'@type',
'doi',
'arXivId',
'url',
'name',
'preprintServer',
'datePosted',
'encoding',
];

// See https://github.com/PREreview/rapid-prereview/issues/10
export const DISEASES = [
{
name: 'Coronavirus disease 2019',
alternateName: 'COVID-19',
priority: 'red',
featured: true,
},
{
name: 'Chikungunya',
priority: 'orange',
},
{
name: 'Cholera',
priority: 'yellow',
},
{
name: 'Crimean-Congo hemorrhagic fever',
alternateName: 'CCHF',
priority: 'red',
},
{
name: 'Dengue',
priority: 'yellow',
},
{
name: 'Ebola',
priority: 'red',
},
{
name: 'Hendra',
priority: 'red',
},
{
name: 'Human immunodeficiency virus',
alternateName: 'HIV',
priority: 'yellow',
},
{
name: 'Influenza',
priority: 'yellow',
},
{
name: 'Lassa',
priority: 'red',
},
{
name: 'Leishmaniasis',
priority: 'yellow',
},
{
name: 'Malaria',
priority: 'yellow',
},
{
name: 'Marburg',
priority: 'red',
},
{
name: 'Measles',
priority: 'yellow',
},
{
name: 'Middle East respiratory syndrome',
alternateName: 'MERS',
priority: 'red',
},
{
name: 'Nipah',
priority: 'red',
},

{
name: 'Plague',
priority: 'yellow',
},
{
name: 'Rift Valley fever',
alternateName: 'RVF',
priority: 'red',
},
{
name: 'Severe Acute Respiratory Syndrome',
alternateName: 'SARS',
priority: 'red',
},
{
name: 'Severe Fever with Thrombocytopenia Syndrome',
alternateName: 'SFTS',
priority: 'orange',
},
{
name: 'Smallpox',
priority: 'yellow',
},
{
name: 'Tuberculosis',
priority: 'yellow',
},
{
name: 'West Nile Virus',
priority: 'yellow',
},
{
name: 'Yellow fever',
priority: 'yellow',
},
{
name: 'Zika',
priority: 'red',
},
];

// messaging for the web extension
export const CHECK_SESSION_COOKIE = 'CHECK_SESSION_COOKIE';
export const SESSION_COOKIE_CHANGED = 'SESSION_COOKIE_CHANGED';
export const CHECK_PREPRINT = 'CHECK_PREPRINT';
export const SESSION_COOKIE = 'SESSION_COOKIE';
export const PREPRINT = 'PREPRINT';
export const ACTION_COUNTS = 'ACTION_COUNTS';
export const TOGGLE_SHELL_TAB = 'TOGGLE_SHELL_TAB';
export const HISTORY_STATE_UPDATED = 'HISTORY_STATE_UPDATED';

export const CONTACT_EMAIL_HREF = 'mailto:outbreaksci@prereview.org';
export const SENDER_EMAIL_HREF = 'mailto:notifications@prereview.org';

export const PRODUCTION_DOMAIN = 'https://outbreaksci.prereview.org'; // 'https://rapid-prereview.azurewebsites.net';

export const CSS_HEADER_HEIGHT = 72;
export const CSS_SCOPE_ID = 'rpos-ext'; // keep in sync with webpack-extension.config.js

export const ORG = 'PREreview';

export const ADMIN_ORCIDS = [
'0000-0002-3708-3546', // Sam
'0000-0002-6109-0367', // Daniela
'0000-0002-5090-7722', // Michael
'0000-0002-2223-4735', // Sebastien (temporary to test the admin features)
'0000-0002-7585-0507', //Erik
];
Loading

0 comments on commit d307ee3

Please sign in to comment.