Compare commits
2 Commits
809fa78d35
...
b95d755d6e
Author | SHA1 | Date |
---|---|---|
|
b95d755d6e | |
|
bd84a1e9bc |
|
@ -48,7 +48,7 @@ module.exports = {
|
||||||
priority: 1,
|
priority: 1,
|
||||||
load: async (plugin, app) => {
|
load: async (plugin, app) => {
|
||||||
// Load up our DB.
|
// Load up our DB.
|
||||||
const db_dir = path.resolve(path.join(app.config.srd, 'db'))
|
const db_dir = path.resolve(app.config.aedifex)
|
||||||
|
|
||||||
await refresh(plugin, app, db_dir)
|
await refresh(plugin, app, db_dir)
|
||||||
|
|
||||||
|
|
|
@ -82,6 +82,26 @@
|
||||||
{{? it.results }}
|
{{? it.results }}
|
||||||
{{#def.entry:it.results[0] || ''}}
|
{{#def.entry:it.results[0] || ''}}
|
||||||
<h2>got results</h2>
|
<h2>got results</h2>
|
||||||
|
|
||||||
|
{{? it.collection === "gear" }}
|
||||||
|
gear
|
||||||
|
{{? it.type }}
|
||||||
|
got type
|
||||||
|
{{? it.type === "weapon"}}
|
||||||
|
<h1>Weapons</h1>
|
||||||
|
{{#def.weapons_table:it.results || ''}}
|
||||||
|
{{?? it.type === "armor"}}
|
||||||
|
<h1>Armor</h1>
|
||||||
|
TODO
|
||||||
|
{{?? it.type === "consumable"}}
|
||||||
|
<h1>Consumables</h1>
|
||||||
|
{{#def.consumables_table:it.results || ''}}
|
||||||
|
{{?}}
|
||||||
|
{{?}}
|
||||||
|
{{?? it.collection === "specimens" }}
|
||||||
|
specimens
|
||||||
|
{{?}}
|
||||||
|
|
||||||
{{?? !it.name }}
|
{{?? !it.name }}
|
||||||
{{? it.type === "weapon"}}
|
{{? it.type === "weapon"}}
|
||||||
<h1>Weapons</h1>
|
<h1>Weapons</h1>
|
||||||
|
|
Loading…
Reference in New Issue