diff --git a/src/util.js b/src/util.js index ebb4f0fa..fb90ffc8 100644 --- a/src/util.js +++ b/src/util.js @@ -201,7 +201,7 @@ export const objectIcon = { repository: 'account_balance', note: 'sticky_note_2', media: 'photo', - tag: 'label' + tag: 'label', } export const objectTypeToEndpoint = { @@ -214,7 +214,7 @@ export const objectTypeToEndpoint = { repository: 'repositories', note: 'notes', media: 'media', - tag: 'tags' + tag: 'tags', } export function objectDescription(type, obj, strings) { @@ -419,7 +419,7 @@ export function dateSpanLocal(date1, date2, lang) { uk: 'між 1111 та 2222', zh_CN: ' 介于 1111 与 2222 之间', zh_HK: ' 介于 1111 与 2222 之间', - zh_TW: ' 介于 1111 与 2222 之间' + zh_TW: ' 介于 1111 与 2222 之间', } let str = localStrings[lang] if (!str) { @@ -452,23 +452,23 @@ export const personFilter = { PeoplePrivate: 'People marked private', PeoplePublic: 'People not marked private', MissingParent: 'People missing parents', - Disconnected: 'Disconnected people' + Disconnected: 'Disconnected people', } export const filterCounts = { citations: { HasGallery: 'Citations with media', - HasNote: 'Citations having notes' + HasNote: 'Citations having notes', }, events: { HasGallery: 'Events with media', HasNote: 'Events having notes', - HasSourceCount: 'Events with sources' + HasSourceCount: 'Events with sources', }, families: { HasGallery: 'Families with media', HasNote: 'Families having notes', - HasSourceCount: 'Families with sources' + HasSourceCount: 'Families with sources', }, media: {HasSourceCount: 'Media with sources'}, notes: {}, @@ -477,19 +477,19 @@ export const filterCounts = { HasNote: 'People having notes', HasSourceCount: 'People with sources', HasAddress: 'People with addresses', - HasAssociation: 'People with associations' + HasAssociation: 'People with associations', }, places: { HasGallery: 'Places with media', HasNote: 'Places having notes', - HasSourceCount: 'Place with sources' + HasSourceCount: 'Place with sources', }, repositories: {}, sources: { HasGallery: 'Sources with media', HasNote: 'Sources having notes', - HasRepository: 'Sources with Repository references' - } + HasRepository: 'Sources with Repository references', + }, } export const filterMime = { @@ -497,7 +497,7 @@ export const filterMime = { 'audio/': 'Audio', 'video/': 'Video', 'text/': 'Text', - 'application/pdf': 'PDF' + 'application/pdf': 'PDF', } export const reportCategoryIcon = { @@ -506,7 +506,7 @@ export const reportCategoryIcon = { // 2: '', // code // 3: '', // web // 4: '', // book - 5: 'account_tree' // graphviz + 5: 'account_tree', // graphviz // 6: '', // tree } @@ -713,3 +713,5 @@ export function isDateBetweenYears(date, yearMin, yearMax) { } return yearMin <= year2 && year1 <= yearMax } + +//