AboutApp module
About this module FormApp
Kind: inner class of about
Extends: FormApplication
- ~AboutApp ⇐
FormApplication- instance
- static
Supplies data to the template
Kind: instance method of AboutApp
Fetches a list of Patrons to display on the About page
Kind: instance method of AboutApp
Call app default options
Kind: static property of AboutApp
- [Dedupe This!](#module_Dedupe This!)
- [~DedupeThis](#module_Dedupe This!..DedupeThis)
- [new DedupeThis()](#new_module_Dedupe This!..DedupeThis_new)
- [.getFolder(nameOrId)](#module_Dedupe This!..DedupeThis+getFolder)
- [.getEntities()](#module_Dedupe This!..DedupeThis+getEntities)
- [.dedupe(folder, criteria)](#module_Dedupe This!..DedupeThis+dedupe)
- [.getDuplicateFolder(entityType)](#module_Dedupe This!..DedupeThis+getDuplicateFolder)
- [.createDuplicatesFolder(entityType)](#module_Dedupe This!..DedupeThis+createDuplicatesFolder)
- [.moveEntities(entities, folder)](#module_Dedupe This!..DedupeThis+moveEntities)
- [~DedupeThis](#module_Dedupe This!..DedupeThis)
Main worker class
Kind: inner class of [Dedupe This!](#module_Dedupe This!)
- [~DedupeThis](#module_Dedupe This!..DedupeThis)
- [new DedupeThis()](#new_module_Dedupe This!..DedupeThis_new)
- [.getFolder(nameOrId)](#module_Dedupe This!..DedupeThis+getFolder)
- [.getEntities()](#module_Dedupe This!..DedupeThis+getEntities)
- [.dedupe(folder, criteria)](#module_Dedupe This!..DedupeThis+dedupe)
- [.getDuplicateFolder(entityType)](#module_Dedupe This!..DedupeThis+getDuplicateFolder)
- [.createDuplicatesFolder(entityType)](#module_Dedupe This!..DedupeThis+createDuplicatesFolder)
- [.moveEntities(entities, folder)](#module_Dedupe This!..DedupeThis+moveEntities)
Instantiate a dedupe worker
Get folder helper
Kind: instance method of [DedupeThis](#module_Dedupe This!..DedupeThis)
| Param | Type |
|---|---|
| nameOrId | String |
Get entities helper
Kind: instance method of [DedupeThis](#module_Dedupe This!..DedupeThis)
Perform a dedupe against the provided folder using the supplied criteria.
Returns both the unique and duplicate entities
Kind: instance method of [DedupeThis](#module_Dedupe This!..DedupeThis)
Todo
- make this more functional
| Param |
|---|
| folder |
| criteria |
Determines if there is an existing Duplicates folder for the given entityType
Kind: instance method of [DedupeThis](#module_Dedupe This!..DedupeThis)
| Param |
|---|
| entityType |
Creates a Duplicates folder for the given Entity Type. Localized.
Kind: instance method of [DedupeThis](#module_Dedupe This!..DedupeThis)
| Param |
|---|
| entityType |
Moves the given entities to the provided folder
Kind: instance method of [DedupeThis](#module_Dedupe This!..DedupeThis)
| Param |
|---|
| entities |
| folder |
FormApp Class
Kind: inner class of form
Instantiate form and worker
| Param |
|---|
| ...args |
Get data for app render
Kind: instance method of DedupeThisForm
Todo
- #1 find a better way to get entity properties
Override the header buttons method
Kind: instance method of DedupeThisForm
Activate app event listeners
Kind: instance method of DedupeThisForm
| Param |
|---|
| html |
Handle change entity type
Kind: instance method of DedupeThisForm
| Param |
|---|
| event |
Handle change folder
Kind: instance method of DedupeThisForm
| Param |
|---|
| event |
Handle click
Kind: instance method of DedupeThisForm
| Param |
|---|
| event |
Builds a Criteria object from the app's form
Kind: instance method of DedupeThisForm
Returns: Object - criteria
| Param |
|---|
| formData |
Search for entities using the current formapp's values
Kind: instance method of DedupeThisForm
Performs the dedupe action
Kind: instance method of DedupeThisForm
Shows a warning dialog before deduping
Kind: instance method of DedupeThisForm
Get defaultOptions for application render
Kind: static property of DedupeThisForm
Adds the Dedupe This! button to the sidebar
Kind: static method of DedupeThisForm
| Param |
|---|
| html |
Initialise Hooks for module use
Kind: static method of hooks
Register module settings
Builds a FD returned from _getFormData into a formData array Borrowed from foundry.js
Kind: static method of util
| Param | Type |
|---|---|
| FD | * |
Retrieves a key using the given value
Kind: static method of util
| Param | Type | Description |
|---|---|---|
| object | Object |
- the object that contains the key/value |
| value | * |