yomichan/ext/bg
toasted-nutbread ef333b6d72
Dictionary data structure improvements (#877)
* Simplify object structure of deinflections

* Modify existing array when removing duplicates

* Update _sortDefinitions to not return a value

* Use explicit argument value

* Use a Collator for string comparisons

* Simplify order comparison

* Improve tag creation and sanitization

* Switch .map to a for loop, skip null meta

* Add _createKanjiStat

* Move _sortDefinitions definition

* Fix kanji stat sorting

* Remove return value from _sortTags

* Add _sortKanji

* Add fast exits for sorting

* Add _sortDefinitionsByIndex

* Combine sort function

* Improve creation of kanji definition data

* Use "databaseDefinitions" instead of "definitions" to disambiguate

* Simplify

* Simplify further

* Simplify max length calculation

* More destructuring

* Use databaseDefinitions variable name

* Move _mergeBySequence body into _getSequencedDefinitions

* Use databaseDefinitions field name

* Move maxLength calculation

* Use shared _createTermDefinitionFromDatabaseDefinition

* Simplify map

* Move definition sorts for better consistency and less redundancy

* Move _createExpression function

* Update setup of sequenced definitions

* Simplify for loop
2020-10-02 17:59:14 -04:00
..
css Dictionary controller refactor (#831) 2020-09-15 19:35:44 -04:00
data Move searchTerms/searchKanji to front of object definitions (#873) 2020-09-27 11:53:07 -04:00
img file reorg 2017-03-04 12:27:05 -08:00
js Dictionary data structure improvements (#877) 2020-10-02 17:59:14 -04:00
lang Change -teoru endings to be godan verbs 2019-10-16 19:11:45 -04:00
background.html Media utility refactor (#859) 2020-09-26 13:42:31 -04:00
context.html Remove unused dependencies on context.html (#718) 2020-08-09 13:20:48 -04:00
guide.html Context popup update (#594) 2020-06-21 15:57:18 -04:00
legal.html Update legal.html to include full licenses (#563) 2020-05-24 22:10:50 -04:00
query-parser-templates.html remove newline from template 2020-02-10 21:19:18 +02:00
search.html Audio system refactor (#858) 2020-09-26 13:41:26 -04:00
settings-popup-preview.html DOM + DocumentUtil merge (#727) 2020-08-09 21:07:11 -04:00
settings.html Add scan on touch move and prevent touch scroll options (#871) 2020-09-27 11:46:37 -04:00
template-renderer.html Handlebars sandbox (#612) 2020-09-18 21:16:39 -04:00