Commit Graph

130 Commits

Author SHA1 Message Date
toasted-nutbread
6dd6af05e1
Update background global object usage (#556)
* Omit global window object for scripts used on the background page

* Validate document exists before using

* Remove dom.js from background.html
2020-05-24 14:01:21 -04:00
toasted-nutbread
021ccb5ac3
Move util database modification functions (#499)
* 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
2020-05-06 19:28:26 -04:00
toasted-nutbread
5b96559df8
Error logging refactoring (#454)
* 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
2020-04-26 16:55:25 -04:00
toasted-nutbread
fd6ea0e404 Add API for getting media data 2020-04-18 21:32:35 -04:00
toasted-nutbread
8106f4744b Add support for importing and storing media files 2020-04-18 21:31:09 -04:00
toasted-nutbread
d164fc6f62 Remove unused globals 2020-04-10 18:45:23 -04:00
4e5029f7ec Update license author field to broader to explicitly reflect that
Yomichan is an ongoing community project. It really does take a village,
and everyone who contributes code owns a part of it :)
2020-04-10 11:10:21 -07:00
toasted-nutbread
9dfe531dfd Use logError instead of console.log 2020-04-05 18:27:53 -04:00
toasted-nutbread
9052ab8ebd Move dictionary import functionality into a new class 2020-03-30 20:51:20 -04:00
toasted-nutbread
8095d9138c Add isPrepared 2020-03-30 20:28:44 -04:00
toasted-nutbread
1a8bbf32d5 Make dictionaryExists public 2020-03-30 20:28:41 -04:00
toasted-nutbread
a6fedae9c7 Update bulkAdd implementation 2020-03-30 20:19:39 -04:00
toasted-nutbread
64fc0349a1 Update global declarations 2020-03-10 22:40:35 -04:00
toasted-nutbread
c0d91bffc4 Add no-shadow 2020-02-22 14:53:02 -05:00
toasted-nutbread
cc2e21cd86 Use Map for dictEnabledSet 2020-02-22 14:43:05 -05:00
toasted-nutbread
1f62dfa572 Use Set 2020-02-22 14:37:10 -05:00
toasted-nutbread
77a3dadd0b Make schema errors have more information 2020-02-22 13:25:28 -05:00
toasted-nutbread
d76ab91f83 Update validate function name in close 2020-02-22 12:45:50 -05:00
toasted-nutbread
086fefc921 Validate data before importing 2020-02-22 12:09:34 -05:00
toasted-nutbread
d620f40448 Remove old dictionary import functions 2020-02-22 12:09:34 -05:00
toasted-nutbread
177bca4865 Create new dictionary import function 2020-02-22 12:09:33 -05:00
toasted-nutbread
212e5428e8 Mark private functions in database.js 2020-02-22 12:09:33 -05:00
toasted-nutbread
a8b1e40a1e Close to prevent hangs 2020-02-19 19:59:24 -05:00
toasted-nutbread
4629fb3639 Change no-undef from off to error 2020-02-11 22:22:16 -05:00
toasted-nutbread
00bbcff8a2 Fix findTermMetaBulk and findKanjiMetaBulk not returning expression/character 2020-01-24 22:22:40 -05:00
toasted-nutbread
0d7ccf25b8 Update license info URL 2020-01-01 12:00:31 -05:00
toasted-nutbread
899ef167d1 Update copyright 2020-01-01 12:00:00 -05:00
toasted-nutbread
2dad7f888b Update how errors are reported when importing a dictionary 2019-12-08 16:01:29 -05:00
toasted-nutbread
b862035fbc Show info about whether a dictionary supports wildcard searches 2019-12-07 14:34:35 -05:00
toasted-nutbread
1a0a345ae7 Make reverse reading/expressions optional during database import 2019-12-07 14:34:35 -05:00
toasted-nutbread
1659340898 Add support for prefix wildcards 2019-12-07 14:34:35 -05:00
toasted-nutbread
5a1046bc90 Update arrow-parens to always 2019-11-26 22:06:27 -05:00
toasted-nutbread
0aed27b66d Replace hasOwnProperty with simplified hasOwn function 2019-11-26 22:06:27 -05:00
toasted-nutbread
7333873244 Add support for wildcards 2019-11-10 14:02:43 -05:00
toasted-nutbread
aa92855b37 Fixes for Edge 2019-11-10 13:01:39 -05:00
toasted-nutbread
e48bfb8f1a Use native indexedDB pointer 2019-11-10 13:01:39 -05:00
toasted-nutbread
183ec6b381 Use native IndexedDB to delete the database 2019-11-10 13:01:39 -05:00
toasted-nutbread
3a1e3392ed Use native IndexedDB to create database and object stores 2019-11-10 13:01:39 -05:00
toasted-nutbread
6c023789d9 Use native IndexedDB for bulkAdd operations 2019-11-10 13:01:39 -05:00
toasted-nutbread
750439ebf0 Use native IndexedDB for database additions 2019-11-10 13:01:39 -05:00
toasted-nutbread
3e864c44c3 Fixes for Edge 2019-11-09 20:52:16 -05:00
toasted-nutbread
cad0648cbe Remove unused function 2019-11-07 20:30:55 -05:00
toasted-nutbread
e091c7ebe2 Add support for deleting individual dictionaries 2019-11-07 20:30:55 -05:00
toasted-nutbread
79069d5908 Add functions for getting dictionary information 2019-11-07 20:30:55 -05:00
toasted-nutbread
96e4bf1735 Use native IndexedDB APIs for findTagForTitle 2019-10-19 13:41:18 -04:00
toasted-nutbread
610c2b9cca Move tagCache out of Database and into Translator 2019-10-19 13:32:05 -04:00
toasted-nutbread
6f5fa6771b Remove unused database functions 2019-10-19 12:44:23 -04:00
toasted-nutbread
d212d0aba1 Add additional database bulk methods 2019-10-19 10:19:12 -04:00
toasted-nutbread
9364a7cb4e Create function for creating kanji data and meta 2019-10-18 23:16:33 -04:00
toasted-nutbread
6743b785c9 Remove temp createResult 2019-10-18 23:09:00 -04:00