Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
document.addEventListener('DOMContentLoaded', function() {
let viaf = require('viaf-entity-lookup')
let dbpedia = require('dbpedia-entity-lookup');
let wikidata = require('wikidata-entity-lookup');
let getty = require('getty-entity-lookup');
let geonames = require('geonames-entity-lookup');
let CWRCWriterDialogs = require('cwrc-public-entity-dialogs');
CWRCWriterDialogs.showNoLinkButton(true);
CWRCWriterDialogs.showCreateNewButton(false);
CWRCWriterDialogs.showEditButton(false);
CWRCWriterDialogs.registerEntitySources({
person: (new Map()).set('viaf', viaf).set('wikidata', wikidata).set('getty', getty).set('dbpedia', dbpedia),
place: (new Map()).set('geonames', geonames).set('viaf', viaf).set('dbpedia', dbpedia).set('wikidata', wikidata),
organization: (new Map()).set('viaf', viaf).set('wikidata', wikidata).set('dbpedia', dbpedia),
title: (new Map()).set('viaf', viaf).set('wikidata', wikidata).set('dbpedia', dbpedia)
})
// window.CWRCWriterStorageDialogs = require('./storage-dialogs.js');
let CWRCWriterStorageDialogs = require('cwrc-git-dialogs')['default'];
let config = require('./config.js');
config.container = 'cwrcWriterContainer';
config.modules = {
west: [ 'structure', 'entities', 'nerve' ],
south: [ 'selection', 'validation' ],
east: [ 'imageViewer' ]
};