mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Zotero Integration (#164)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import Settings from '@overleaf/settings'
|
||||
import ZoteroRouter from './app/src/ZoteroRouter.mjs'
|
||||
|
||||
let ZoteroModule = {}
|
||||
|
||||
if (Settings.enabledLinkedFileTypes?.includes('zotero')) {
|
||||
const { default: ZoteroLinkedFileAgent } = await import(
|
||||
'./app/src/ZoteroLinkedFileAgent.mjs'
|
||||
)
|
||||
|
||||
ZoteroModule = {
|
||||
router: ZoteroRouter,
|
||||
linkedFileAgents: {
|
||||
zotero: () => ZoteroLinkedFileAgent,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export default ZoteroModule
|
||||
Reference in New Issue
Block a user