dcde599709
Migrated book search to vue-based system. Updated old tag seached. Made chapter page layout widths same as book page. Closes #344
18 lines
No EOL
383 B
JavaScript
18 lines
No EOL
383 B
JavaScript
const Vue = require("vue");
|
|
|
|
function exists(id) {
|
|
return document.getElementById(id) !== null;
|
|
}
|
|
|
|
let vueMapping = {
|
|
'search-system': require('./search'),
|
|
'entity-dashboard': require('./entity-search'),
|
|
};
|
|
|
|
Object.keys(vueMapping).forEach(id => {
|
|
if (exists(id)) {
|
|
let config = vueMapping[id];
|
|
config.el = '#' + id;
|
|
new Vue(config);
|
|
}
|
|
}); |