toasted-nutbread
65c20382d3
Add clickable web browser settings links ( #1481 )
2021-03-02 22:46:26 -05:00
toasted-nutbread
3fe825cf30
Request persistent storage on Firefox ( #1480 )
2021-03-02 22:27:53 -05:00
toasted-nutbread
b0bc7dc08f
Add a toggle for the persistent storage option on the permissions page ( #1479 )
2021-03-02 22:08:34 -05:00
toasted-nutbread
4208595293
Persistent storage controller ( #1478 )
...
* Add PersistentStorageController
* Update DictionaryController
* Update DictionaryImportController
* Update when storage stats are updated
2021-03-02 20:27:51 -05:00
toasted-nutbread
571b865ae5
Fix enter key causing duplicate text when typing using an IME ( #1477 )
2021-03-02 18:18:31 -05:00
toasted-nutbread
0e705292cc
Remove zero-width space ( #1475 )
2021-03-01 22:45:03 -05:00
toasted-nutbread
0dab38f0a6
Refactor translator merged mode ( #1474 )
...
* Remove sourceDefinitions
* Add id
* Remove related definitions from unsequencedDefinitions
* Add separate _addRelatedDefinitions function
* Add secondary definitions
* Update how secondary definitions are added
* Update expression/reading source
* Move _mergeByGlossary body
* Refactor _createTermDetailsListFromTermInfoMap
* Move _addUniqueTermInfos body
* Rename function
* Organize
* Simplify duplicate check
* Rename relatedDefinitionIds to definitionIds
* Refactor secondary definition adding
* Early exit
* Add matching unsequencedDefinitions to secondaryDefinitions
* Clean
* Fix incorrect condition
* Move _addSecondaryDefinitions call
* Add comments
2021-03-01 22:17:23 -05:00
toasted-nutbread
b477da97d4
Translator refactor ( #1473 )
...
* Refactor _groupTerms and add doc comment
* Update where expression/reading is acquired from
* Add doc comment
* Add isPrimary field
* Update test data
* Add definition which has "isPrimary": false definitions
2021-03-01 19:01:30 -05:00
toasted-nutbread
90da87f378
Add support for resizing the popup window using touch events ( #1471 )
2021-02-28 17:13:11 -05:00
toasted-nutbread
c192b4a4c1
Wrap host selection copy in a try-catch ( #1470 )
2021-02-28 16:51:48 -05:00
toasted-nutbread
8f057c63fe
Improve text parser ( #1469 )
...
* Merge ungrouped characters
* Update iteration
* Fix incorrect code point handling
* Simplify text
* Specify language
* Update how parsed status is represented
2021-02-28 16:38:01 -05:00
toasted-nutbread
ec1a8380b5
Fix a poorly handled edge case of the scanning parser ( #1468 )
2021-02-28 15:44:57 -05:00
toasted-nutbread
1dfcd3e435
Fix missing details causing frequency tags to not be clickable ( #1467 )
2021-02-28 14:44:44 -05:00
toasted-nutbread
704db45e29
Remove the now-unused hotkey forwarding functionality ( #1466 )
2021-02-28 14:29:43 -05:00
toasted-nutbread
4806414f95
Text source element scanning improvements ( #1464 )
...
* Add api.textHasJapaneseCharacters
* Add support for empty query
* Add support for showing the query parser for TextSourceElement
with content that does not start with Japanese text
2021-02-28 14:18:18 -05:00
toasted-nutbread
6f76645f4c
Use a Set instead of an array ( #1463 )
2021-02-28 13:33:33 -05:00
toasted-nutbread
445f87ebdb
Get categorization of pitch accents ( #1462 )
2021-02-28 13:26:34 -05:00
toasted-nutbread
fce2c51709
Add support for scanning the selected value of <select> elements ( #1461 )
2021-02-28 13:26:23 -05:00
toasted-nutbread
0decabd768
Improve definition ordering ( #1456 )
...
* Update dictionary priority
* Replace dictionaryPriority with dictionaryOrder
* Update tests
2021-02-27 23:11:41 -05:00
toasted-nutbread
e4a4e5f85f
Improve term meta ordering ( #1455 )
...
* Update implementation of _buildTermMeta
* Remove old implementation
* Expose dictionaryPriority on frequencies and pitch accents
* Update how meta data is generated; add index
* Update order
* Update names
* Expose expressionIndex as part of pitch/frequency data
* Implement meta sorting
* Update test data
2021-02-27 22:27:00 -05:00
toasted-nutbread
c4b2e83cb4
Organize display styles ( #1452 )
...
* Improve grouping for inflection and expression styles
* kanji-link => expression-kanji-link
* Remove unnecessary entry-header2 and entry-header3
* Move tag list into header for consistency with term definitions
* Move styles
* Add clear
2021-02-27 16:54:15 -05:00
toasted-nutbread
8d3436fca3
Refactor display styles ( #1451 )
...
* term-expression => expression
* term-pitch-accent => pitch-accent
* term-reason => inflection, term-reasons => inflection-list
* term-details => expression-list-details
* term-glossary => glossary
* Update tag list classes
* term-definition => definition
2021-02-27 16:32:44 -05:00
toasted-nutbread
1a7c264165
Add standalone reading ( #1448 )
...
* Add option
* Update display
* Hide redundant readings
* Improve label and description
2021-02-27 14:04:52 -05:00
toasted-nutbread
9e7a76a1f1
Improve dictionary priority ( #1447 )
...
* Refactor _sortDefinitions
* Remove use of useDictionaryPriority
2021-02-26 23:55:32 -05:00
toasted-nutbread
0bf0620c35
Improve kana segmentation ( #1446 )
...
* Improve edge case furigana distribution for mixed hiragana/katakana
* Update/add tests
2021-02-26 23:23:16 -05:00
toasted-nutbread
b994414b14
Improve Anki card type selection ( #1445 )
...
* Update separator line styles
* Add tabs
* Add support for radio select
* Remove old select
* Move out of scroll region
* Fix missing line
2021-02-26 18:15:04 -05:00
toasted-nutbread
782b945905
Header lint ( #1444 )
...
* Add eslint-plugin-header
* Add rule for header format
* Add missing header
* Fix header issues
2021-02-25 20:21:05 -05:00
toasted-nutbread
b2f225a0d6
Fix wait for frontend not working properly ( #1443 )
2021-02-25 19:04:41 -05:00
toasted-nutbread
ec495bd7b2
Improve frequency display ( #1438 )
...
* Add frequencyDisplayMode option
* Update tests
* Add setting
* Update frequency display styles
* Improve wrapping
2021-02-25 17:48:39 -05:00
toasted-nutbread
6bda81b422
Improve note addability ( #1440 )
...
* Add valid field
* Add isNoteDataValid function
* Update _areDefinitionsAddableForcedValue to return proper valid values
* Refactor isAnkiConnected check
* Force canAdd to false if not valid
2021-02-24 22:23:40 -05:00
toasted-nutbread
ae92e0b378
AnkiUtil ( #1439 )
...
* Add AnkiUtil
* Update AnkiConnect to use AnkiUtil
* Use AnkiUtil in AnkiNoteBuilder
* Replace containsAnyMarker with AnkiUtil.stringContainsAnyFieldMarker
* Add AnkiUtil.getFieldMarkers
* Add fieldsObjectContainsMarker to AnkiUtil
* Remove unused global
* Remove unused parameter: enabled
* Add cloneFieldMarkerPattern
2021-02-24 21:54:58 -05:00
toasted-nutbread
28585e6ec6
Fix user select all handling ( #1436 )
...
* Update how style restoration is performed
* Refactor
* Add workaround for Firefox issue with user-select: all
* Add infinite loop prevention
2021-02-23 17:43:52 -05:00
toasted-nutbread
b778974938
Improve tag styles ( #1431 )
...
* Update tag styles
* Refactor _createTag
* Update padding
2021-02-21 13:57:28 -05:00
toasted-nutbread
b9e92a2528
Improve key press to focus the search query input ( #1424 )
2021-02-19 21:20:58 -05:00
toasted-nutbread
1e927dd66e
Fix translation regex replacements ( #1423 )
...
* Fix regex replacements having issues at the start of scanned text
* Fix test cases
* Add tests
2021-02-19 18:39:43 -05:00
toasted-nutbread
6a6d7ba84e
Fix wanakana.unbind throwing an error ( #1422 )
2021-02-19 18:39:36 -05:00
toasted-nutbread
19d0d5b512
Fix useSettingsV2 option (for real this time) ( #1421 )
2021-02-19 18:39:28 -05:00
toasted-nutbread
53d02ca3d3
Fix search tags in split and grouped display modes ( #1412 )
2021-02-16 21:19:52 -05:00
toasted-nutbread
6fc5eb2ae1
Fix copy hotkey not working ( #1411 )
2021-02-16 21:19:43 -05:00
toasted-nutbread
3a86601c88
Improve primary audio assignment when audio isn't available ( #1407 )
2021-02-15 21:46:55 -05:00
toasted-nutbread
55f5182ca9
Audio popup menu primary card audio selection ( #1406 )
...
* Add card icon to audio menu items
* Update cache data format
* Create _getCacheItem
* Add _playAudioFromSource function
* Implement default card audio info
* Specify exact audio to download when an override is assigned
* Abstract using _getMenuItemSourceInfo
* Update downloadability check
* Update the main audio menu buttons to also assign the default source
2021-02-15 21:34:10 -05:00
toasted-nutbread
f2a387237b
Update audio downloading to support specifying an exact array index ( #1405 )
2021-02-15 20:47:35 -05:00
toasted-nutbread
7027d537a9
Display audio menu refactor ( #1404 )
...
* Update display and generation of the audio menu
* Wrap menu items in a div to allow for horizontal layout groupings
2021-02-15 14:31:16 -05:00
toasted-nutbread
4be066ac8a
Use consistent number of newlines at the start of files ( #1402 )
2021-02-15 12:43:24 -05:00
toasted-nutbread
450912c109
Move js/settings ( #1397 )
...
* Move js/settings to js/pages/settings
* Fix script ordering
2021-02-14 23:10:01 -05:00
toasted-nutbread
48b59375eb
Cleanup yomichan api ( #1394 )
...
* Move invokeMessageHandler to core.js
* Move getMessageResponseResult to backghend.js
* Replace getTemporaryListenerResult
2021-02-14 18:18:02 -05:00
toasted-nutbread
9279ced686
Log refactoring ( #1393 )
...
* Create Logger class and log instance
* Replace yomichan.logWarning with log.warn
* Replace yomichan.logError with log.error
* Replace yomichan.log with log.log
* Update the Yomichan class to use the global log object
* Update lint rules
2021-02-14 17:52:01 -05:00
toasted-nutbread
286534e648
Move api to yomichan object ( #1392 )
...
* Move cross frame API from API to Yomichan
* Add API instance to Yomichan
* Move api global to yomichan.api
* Pass yomichan to API
* Remove IIFE
2021-02-14 15:53:35 -05:00
toasted-nutbread
efe8140f10
Api prepare refactor ( #1391 )
...
* Refactor API preparation
* Run yomichan.prepare manually in the entry point function
2021-02-14 15:19:31 -05:00
toasted-nutbread
94201ed44a
Rename window scroll ( #1390 )
...
* Rename WindowScroll to ScrollElement
* Rename window-scroll.js to scroll-element.js
* Update global order
2021-02-14 11:36:44 -05:00