Fixed: Issue #2: Was loading items twice (once as this.items, once as this.spells)
compendium-browser.js
- Add numToPreload (default 100, in Settings)
- loadItems(), loadNPCs() load "preload" number of spells, feats, items, NPCs each
- initialize(): Was setting this.spells and then setting this.items in getData()
- Move load back to "ready" hook, but limit number loaded
- Added CMPBrowser constants
- Fixed minor eslint problems
- getData(): Cleaned up data initialization
- Defer spell/item and NPC loading until you use the Compendium Browser
compendium-browser.js
- Switch to not pre-loading the indexes, and instead do that at browsing time, to reduce server load and memory usage
- getData(): Check spellsLoaded, npcsLoaded
- loadItems(): Deprecated spellsLoading
- addSpellFilters(), addFeatFilters(), addItemFilters(), addNpcFilters(): Added just for easier reading
- Refactor some of the eslint warnings
module.json
- Version bump to 0.4.0
fixed alidgnment issues with multiSelect filters
fixed misplaced translation files
put the spell-class association list into its own file for easy translation/editing
added japanese translation. Thanks Brother Sharp for that one