nfp_sites/nfp_moe/app/admin/admin.js

20 lines
593 B
JavaScript
Raw Normal View History

2022-08-08 07:22:41 +00:00
const EditPage = require('./site_editpage')
2022-08-05 15:35:29 +00:00
const AllPages = require('./site_pages')
const AllArticles = require('./site_articles')
2022-08-12 23:33:50 +00:00
const EditArticle = require('./site_editarticle')
2022-08-05 15:35:29 +00:00
const AllStaff = require('./stafflist')
const EditStaff = require('./editstaff')
2022-08-08 16:58:20 +00:00
const Dialogue = require('./dialogue')
2022-08-05 15:35:29 +00:00
window.adminRoutes = {
pages: [AllPages, EditPage],
articles: [AllArticles, EditArticle],
staff: [AllStaff, EditStaff],
}
2022-08-08 16:58:20 +00:00
let dialogueMount = document.createElement('div')
dialogueMount.id = 'dialogue_mount'
document.body.appendChild(dialogueMount)
m.mount(dialogueMount, Dialogue)