summaryrefslogtreecommitdiff
path: root/ext/mixed
Commit message (Collapse)AuthorAge
* Fix "tags" template (#539)siikamiika2020-05-22
| | | | | | | * fix tag templates for merge and group modes * update version upgrade * adjust upgrade replacement order
* Dynamic loader load style (#521)toasted-nutbread2020-05-19
| | | | | | | | | * Remove unnecessary load of /fg/css/client.css * Replace dynamicLoader.loadStyles with dynamicLoader.loadStyle * Replace Popup._injectStylesheet with dynamicLoader.loadStyle * Remove unused global
* Use CSS variables for themes (#528)toasted-nutbread2020-05-10
| | | | | | | | | | | | | | | | | | | * Update formatting * Merge default tag color with category-less tags * Use CSS variables for colors * Add dark theme colors * Move color variables into display.css * Remove old stylesheets * Update headings * Bump minimum Firefox version to support CSS var() * Revert popular kanji text color
* Fix not awaiting the AudioSystem.arrayBufferDigest promise (#524)toasted-nutbread2020-05-09
|
* Modifier key platform names (#519)siikamiika2020-05-09
| | | | | | | | | | | | | | | | | | | | | * wip * add environment class * use Environment class * use Environment for scanning modifier options * remove Environment in favor of API * await promise * use modifier symbols on macOS * fix key separator issues * if else to switch * simplify variable names
* Text scanner refactor (#517)toasted-nutbread2020-05-08
| | | | | | | | | | | | | | | * Fix return type * Pass search function as a constructor argument * Pass constructor as a details object For consistency with other complex constructors and improved semantics. * Convert _ignorePoints to a single optional function * Organize functions * Rename ignorePoints to ignorePoint
* Text scanner refactor (#515)toasted-nutbread2020-05-07
| | | | | | | | | | | * Mark functions as private * Mark fields as private * Add getter/setters for publicly used fields * Replace public static functions with private non-static functions * Update comment
* Japanese util refactor (#510)toasted-nutbread2020-05-06
| | | | | | | | | | | * Convert mixed japanese.js to utility class * Copy functions from bg/js/japanese.js into mixed/js/japanese.js * Remove bg/js/japanese.js * Make wanakana dependency optional * Update tests
* Add apiModifySettings (#501)toasted-nutbread2020-05-06
| | | | | | | | | | | | | | | | | * Update getProfile/getProfileFromContext to store this.options in a variable * Add useSchema parameter to options getter functions * Add apiModifySettings * Use apiModifySettings instead of apiOptionsSet * Remove apiOptionsSet * Fix incorrect deleteCount check * Require explicit scope for options * Throw on invalid scope
* Move util database modification functions (#499)toasted-nutbread2020-05-06
| | | | | | | | | | | | | | | | | | | * Update onProgress callback to handle multiple arguments * Add apiImportDictionaryArchive * Add apiDeleteDictionary * Make onProgress the last argument for consistency * Remove deprecated util functions * Fix issue with missing progress args * Remove function calls which modify the database from Translator * Update tests * Fix errors not being serialized correctly in _createActionListenerPort
* Popup init update (#497)toasted-nutbread2020-05-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add API function to send a message to a specific frameId in a tab * Update _windowMessageHandlers to support additional info per handler * Remove message token * Add new authorization check * Set up new initialization handler * Update initialization * Remove message token * Replace 'prepare' with 'configure' * Create new prepare function * Change configure guard * Log errors in onMessage * Improve popup initialize function * Clear secret/token in _resetFrame * Remove backend message token * Clear src and srcdoc attributes before loading * Don't treat about:blank unloads as load events
* support meta as scanning modifier (#502)siikamiika2020-05-05
|
* Extract textSource text inside TextScanner (#500)siikamiika2020-05-05
| | | | | * extract text inside TextScanner * clone textSource before text extraction
* Modifier key profile condition (#487)siikamiika2020-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | * update Frontend options on modifier change * add modifier key profile condition * use select element for modifier condition value * support "is" and "is not" modifier key conditions * use plural * remove dead null check it's never null in that function * pass element on rather than assigning to this * rename event * remove Firefox OS key to Meta detection * hide Meta from dropdown on Firefox * move input type
* Fix incorrect static call (#498)toasted-nutbread2020-05-02
|
* Validate document nodes before use (#493)toasted-nutbread2020-05-02
| | | | | | | | | | | | | * Validate document.body before use in loadScripts This also fixes an issue where reject wasn't being passed to loadScriptSentinel. * Validate document nodes before use in _getSiteColor * Validate document.body before use in _getViewport * Validate document.body before use in setContentScale * Validate document.body before use in docImposterCreate
* Object property accessor API update (#485)toasted-nutbread2020-05-02
| | | | | | | | | | | | | | | | | | | | | | | * Simplify function names * Add delete and swap functions * Remove custom setter Not currently part of the expected use cases. * Add documentation * Update tests * Add delete test functions * Update tests to use fresh objects * Add swap test functions * Add empty tests * Disable delete on arrays
* Api invoke with progress (#483)toasted-nutbread2020-05-02
| | | | | | | * Create an internal API function to open a port * Create system for running actions over a special port * Don't assign in expression
* Anki audio download (#477)toasted-nutbread2020-05-02
| | | | | | | * Update how audio is added to Anki cards * Upgrade Anki templates * Update comments
* Remove Frontend inheritance (#486)toasted-nutbread2020-05-02
| | | | | | | | | | | | | | | * Make Frontend use composition instead of inheritance for TextScanner * Use push instead of concat * Update setOptions and setEnabled APIs * Update how onWindowMessage event listener is added/removed * Rename options to _options * Use bind instead of arrow function * Fix selection being cleared due to settings changes
* Frontend refactor (part 1) (#484)toasted-nutbread2020-04-27
| | | | | | | | | | | | | | | | | | | * Remove _getVisualViewportScale * Use super's mouse event listener definitions * Remove redundant override * Remove getTouchEventListeners override * Rename Display.onSearchClear to onEscape * Change onSearchClear to clearSelection and use an event * Update how text is marked for selection and deselection * Replace onError with yomichan.logError * Update setEnabled to refresh all event listeners
* Add Yomichan icon SVG (#478)toasted-nutbread2020-04-26
| | | | | | | * Create Yomichan icon SVG and 32x32 PNG * Update icons * Add 32x32 icon definition to HTML pages
* Error logging refactoring (#454)toasted-nutbread2020-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create new logging methods on yomichan object * Use new yomichan.logError instead of global logError * Remove old logError * Handle unhandledrejection events * Add addEventListener stub * Update log function * Update error conversion to support more types * Add log event * Add API log function * Log errors to the backend * Make error/warning logs update the badge * Clear log error indicator on extension button click * Log correct URL on the background page * Fix incorrect error conversion * Remove unhandledrejection handling Firefox doesn't support it properly. * Remove unused argument type from log function * Improve function name * Change console.warn to yomichan.logWarning * Move log forwarding initialization into main scripts
* Update Popup and DisplayFloat optionsContext from Frontend (#464)siikamiika2020-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | * set optionsContext from Frontend * update Popup+Display options on Frontend change * remove popup setOptions * only update DisplayFloat options from Frontend * fix optionsContext usage * fix preview frame arguments * keep Frontend URL up to date * cache url * fix preview frame * trigger modifyingProfileChange in correct places * remove async from function not using await * refactor optionsContext in Frontend
* Merge pull request #472 from toasted-nutbread/fix-pitch-accent-high-calculationtoasted-nutbread2020-04-23
|\ | | | | Fix high pitch calculation
| * Fix high pitch calculationtoasted-nutbread2020-04-22
| |
* | Remove sentinel script node after loadtoasted-nutbread2020-04-22
| |
* | Create dynamic script/CSS loader utilitytoasted-nutbread2020-04-21
|/
* Change some more variables using 'source' instead of 'content'toasted-nutbread2020-04-19
|
* Use 'content' instead of 'source' to contain media file datatoasted-nutbread2020-04-19
|
* Show small image preview on [Image] link hover/focustoasted-nutbread2020-04-18
|
* Fix space being inside the <a> and thus being underlinedtoasted-nutbread2020-04-18
|
* Add support for displaying imagestoasted-nutbread2020-04-18
|
* Add API for getting media datatoasted-nutbread2020-04-18
|
* Merge pull request #442 from toasted-nutbread/audio-system-refactoringtoasted-nutbread2020-04-18
|\ | | | | Audio system refactoring
| * Fix overlapping audio.play calls due to awaittoasted-nutbread2020-04-18
| |
| * Await and handle errors from audio.play()toasted-nutbread2020-04-18
| |
| * Update styletoasted-nutbread2020-04-18
| |
| * Fix button title text not updating correctly in merge modetoasted-nutbread2020-04-18
| |
| * Return index of the source instead of the source valuetoasted-nutbread2020-04-18
| |
| * Only return the cached value if it uses a valid sourcetoasted-nutbread2020-04-18
| |
| * Disable cache on the backend and fix a bug with the cache keytoasted-nutbread2020-04-18
| |
| * Remove de/structuring from public APItoasted-nutbread2020-04-18
| |
| * Update the parameters passed to various audio-related functionstoasted-nutbread2020-04-18
| |
* | use getFullscreenElement to check fullscreensiikamiika2020-04-18
|/
* Merge pull request #447 from toasted-nutbread/util-conversionstoasted-nutbread2020-04-18
|\ | | | | Util conversions
| * Convert some util* functions into api* functionstoasted-nutbread2020-04-11
| |
| * Add isExtensionUrl utility function to yomichan objecttoasted-nutbread2020-04-11
| |
* | Merge pull request #456 from siikamiika/parse-text-refactorsiikamiika2020-04-17
|\ \ | | | | | | Parse text refactor
| * | move QueryParser.parseText to Backendsiikamiika2020-04-13
| | |