aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages
Commit message (Collapse)AuthorAge
* Improve dictionary options (#1640)toasted-nutbread2021-04-30
| | | | | | | | | | | | | | | | | | | * Update dictionary options layout * Update extras * Improve display when no dictionaries are installed * Implement "All" toggle * Move modal * Update welcome page * Remove resizer button * Fix ordering * Fix extra closing tag
* Use childNodes instead of children (#1638)toasted-nutbread2021-04-28
|
* Add scanTextAtCaret option (#1632)toasted-nutbread2021-04-26
|
* Improve AnkiController to indicate when the model/deck is invalid (#1611)toasted-nutbread2021-04-12
|
* Initial safari compatibility (#1609)toasted-nutbread2021-04-10
| | | | | | | | | | | | | | | | | | | * Update environment info to return the 'safari' browser * Fix popup display on Safari * Update environment assignment * Add data-loading-stalled property when loading takes longer than expected * Add notification when loading has stalled * Allow getDictionaryInfo invocation on non-privileged contexts * Update _validatePrivilegedMessageSender * Don't listen to 'voiceschanged' event unless addEventListener is present Also expose an event
* Add PermissionsOriginController (#1603)toasted-nutbread2021-04-08
|
* Update dictionary entry terminology (#1592)toasted-nutbread2021-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update terminology * Update terminology in display.js * Update terminology in display-audio.js * Update terminology in text-scanner.js * Update terminology in backend.js * Update terminology in mecab.js * Update terminology in audio-downloader.js * Update terminology in translator-vm.js * Update terminology in dictionary-data-util.js * Update terminology in dictionary-database.js * Update terminology in japanese-util.js * Change/upgrade {expression} to {term} * Update terminology in test-japanese.js * Update terminology in test-database.js * Update terminology in anki-templates-controller.js * Update terminology in anki-note-builder.js * Update terminology in backend.js * Update terminology in text-scanner.js * Update terminology in display.js * Update terminology in display.js
* Remove code for old settings page (#1588)toasted-nutbread2021-04-03
|
* Update dictionary settings structure (#1587)toasted-nutbread2021-04-03
| | | | | | | * Update dictionary settings structure to use an array instead of an object * Update ensureDictionarySettings implementation * Remove some usage of ObjectPropertyAccessor
* Refactor template rendering (#1583)toasted-nutbread2021-04-02
| | | | | | | | | | | | | | | | | * Update _errorToJson to _serializeError * Remove async * Refactor render * Simplify _getModifiedData * Rename data => commonData * Rename templates => template for consistency * Improve errors check * Update tests
* Remove debug statements (#1582)toasted-nutbread2021-04-01
|
* Make secondary dictionary option controllers more consistent (#1577)toasted-nutbread2021-03-31
|
* Fix dictionary settings being missing after importing settings (#1576)toasted-nutbread2021-03-31
|
* Definition collapsing when overflowing (#1575)toasted-nutbread2021-03-31
| | | | | | | | | | | | | | | * Add double-down-chevron.svg * Add options * Update dictionary importers * Update settings * Add support for collapsible definitions * Improve case when there is a very small amount of overflow * Fix incorrect enabled state of newly imported dictionaries
* Toggle option hotkey (#1571)toasted-nutbread2021-03-28
| | | | | | | | | | | * Set up toggleOption hotkey action settings * Update styles * Disable spell check and autocomplete * Add OptionToggleHotkeyHandler * Improve auto-close behaviour
* Add playAudioFromSource hotkey (#1570)toasted-nutbread2021-03-28
|
* Add reset argument menu item (#1566)toasted-nutbread2021-03-27
|
* Hotkey arguments (#1565)toasted-nutbread2021-03-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Update display * Move scope definitions * Update scopes button after changing action * Don't show menu if empty * Improve scope updating * Update style * Simplify * Add argument to settings * Update convertToNumber implementation * Add support for arguments * Pass argument to action handler * Update hotkey action definitions * Remove x3 options
* Update hotkey settings design (#1564)toasted-nutbread2021-03-27
| | | | | | | | | | | | | | | | | * Update PopupMenu event prevention * Use vars for button padding * Add button-inner-label style * Add input-button button * Update display of scope selection * Add hidden argument text input field * Remove unnecessary calls * Display a strike through the enabled button when no scopes are selected
* Add part of speech info (#1561)toasted-nutbread2021-03-26
| | | | | | | | | | | | | | | | | | | * Add part of speech info to headwords * Expose parts of speech to Anki template rendering * Expose parts of speech * Update pitch accent categories * Update docs * Add part-of-speech * Update options and tests * Update markers * Update test data
* Remove old settings page (#1524)toasted-nutbread2021-03-14
| | | | | * Remove old settings page * Remove spinner.gif
* Fix permissions changes not being supported on some browsers (#1513)toasted-nutbread2021-03-10
|
* Add clickable web browser settings links (#1481)toasted-nutbread2021-03-02
|
* Add a toggle for the persistent storage option on the permissions page (#1479)toasted-nutbread2021-03-02
|
* Persistent storage controller (#1478)toasted-nutbread2021-03-02
| | | | | | | | | * Add PersistentStorageController * Update DictionaryController * Update DictionaryImportController * Update when storage stats are updated
* Improve Anki card type selection (#1445)toasted-nutbread2021-02-26
| | | | | | | | | | | | | * Update separator line styles * Add tabs * Add support for radio select * Remove old select * Move out of scroll region * Fix missing line
* Header lint (#1444)toasted-nutbread2021-02-25
| | | | | | | | | * Add eslint-plugin-header * Add rule for header format * Add missing header * Fix header issues
* AnkiUtil (#1439)toasted-nutbread2021-02-24
| | | | | | | | | | | | | | | | | | | * 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
* Move js/settings (#1397)toasted-nutbread2021-02-14
| | | | | * Move js/settings to js/pages/settings * Fix script ordering
* Log refactoring (#1393)toasted-nutbread2021-02-14
| | | | | | | | | | | | | * 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
* Move api to yomichan object (#1392)toasted-nutbread2021-02-14
| | | | | | | | | | | * 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
* Api prepare refactor (#1391)toasted-nutbread2021-02-14
| | | | | * Refactor API preparation * Run yomichan.prepare manually in the entry point function
* Move bg/js (#1387)toasted-nutbread2021-02-14
* Move bg/js/anki.js to js/comm/anki.js * Move bg/js/mecab.js to js/comm/mecab.js * Move bg/js/search-main.js to js/display/search-main.js * Move bg/js/template-patcher.js to js/templates/template-patcher.js * Move bg/js/template-renderer-frame-api.js to js/templates/template-renderer-frame-api.js * Move bg/js/template-renderer-frame-main.js to js/templates/template-renderer-frame-main.js * Move bg/js/template-renderer-proxy.js to js/templates/template-renderer-proxy.js * Move bg/js/template-renderer.js to js/templates/template-renderer.js * Move bg/js/media-utility.js to js/media/media-utility.js * Move bg/js/native-simple-dom-parser.js to js/dom/native-simple-dom-parser.js * Move bg/js/simple-dom-parser.js to js/dom/simple-dom-parser.js * Move bg/js/audio-downloader.js to js/media/audio-downloader.js * Move bg/js/deinflector.js to js/language/deinflector.js * Move bg/js/backend.js to js/background/backend.js * Move bg/js/translator.js to js/language/translator.js * Move bg/js/search-display-controller.js to js/display/search-display-controller.js * Move bg/js/request-builder.js to js/background/request-builder.js * Move bg/js/text-source-map.js to js/general/text-source-map.js * Move bg/js/clipboard-reader.js to js/comm/clipboard-reader.js * Move bg/js/clipboard-monitor.js to js/comm/clipboard-monitor.js * Move bg/js/query-parser.js to js/display/query-parser.js * Move bg/js/profile-conditions.js to js/background/profile-conditions.js * Move bg/js/dictionary-database.js to js/language/dictionary-database.js * Move bg/js/dictionary-importer.js to js/language/dictionary-importer.js * Move bg/js/anki-note-builder.js to js/data/anki-note-builder.js * Move bg/js/anki-note-data.js to js/data/anki-note-data.js * Move bg/js/database.js to js/data/database.js * Move bg/js/json-schema.js to js/data/json-schema.js * Move bg/js/options.js to js/data/options-util.js * Move bg/js/background-main.js to js/background/background-main.js * Move bg/js/permissions-util.js to js/data/permissions-util.js * Move bg/js/context-main.js to js/pages/action-popup-main.js * Move bg/js/generic-page-main.js to js/pages/generic-page-main.js * Move bg/js/info-main.js to js/pages/info-main.js * Move bg/js/permissions-main.js to js/pages/permissions-main.js * Move bg/js/welcome-main.js to js/pages/welcome-main.js