Commit Graph

124 Commits

Author SHA1 Message Date
toasted-nutbread
897d85d1ac
Util refactor and fix (#638)
* Remove unused functions

* Fix clone function not being visible on the window object
2020-07-03 11:57:15 -04:00
toasted-nutbread
cdf191336a
Clone function (#624)
* Add clone function

* Replace utilIsolate with clone

* Replace JsonSchema.isolate with clone function

* Include core.js for tests which use json-schema.js

* Update visisted set
2020-06-28 12:38:34 -04:00
toasted-nutbread
13f57cccba
Settings backup refactor (#551)
* Update backup.js to be a class

* Move utilReadFileArrayBuffer
2020-05-24 13:56:46 -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
6498556ec7 Update isPrepared to be consistent with DisplaySearch's isPrepared 2020-04-18 21:11:15 -04:00
toasted-nutbread
cdd817a0e1 Move and rename utilStringHashCode
options.js is the only place it's used.
2020-04-11 15:25:21 -04:00
toasted-nutbread
51e17b35e3 Convert some util* functions into api* functions 2020-04-11 15:25:19 -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
02f7763f00 Add importDictionary function to Backend 2020-03-30 20:45:36 -04:00
siikamiika
e0edb30efd fix Backend prepare issues in settings 2020-03-02 11:18:09 +02:00
toasted-nutbread
56567903a5 Fix unnamed functions 2020-02-22 14:52:09 -05:00
toasted-nutbread
f143632f28 Simplify only assignment 2020-02-22 14:43:06 -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
f17b55239e Implement settings import 2019-12-29 12:33:28 -05:00
toasted-nutbread
3033fea31e Treat null templates as the default value 2019-12-29 12:33:03 -05:00
toasted-nutbread
35216332bf Replace window.yomichan_backend with window.yomichanBackend 2019-12-20 23:21:29 -05:00
toasted-nutbread
0bbba8fcc7 Isolate values returned across window contexts 2019-12-14 11:12:39 -05:00
toasted-nutbread
ddaf44ba7b Isolate functions passed across window contexts 2019-12-14 11:12:39 -05:00
toasted-nutbread
87ece13647 Isolate arguments passed across window contexts 2019-12-14 11:12:39 -05:00
toasted-nutbread
300282e3b4 Read file in the current window context before passing to backend 2019-12-14 11:12:39 -05:00
toasted-nutbread
2dad7f888b Update how errors are reported when importing a dictionary 2019-12-08 16:01:29 -05:00
toasted-nutbread
0156869a3d Optimize utilIsolate 2019-12-08 16:01:29 -05:00
toasted-nutbread
1a0a345ae7 Make reverse reading/expressions optional during database import 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
099847729c utilIsObject => isObject, move to core.js 2019-11-26 17:33:09 -05:00
toasted-nutbread
7f9a73135d Remove utilAsync 2019-11-26 17:18:17 -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
2ab871e7ee Update how dictionaries are displayed on the settings page 2019-11-07 20:30:55 -05:00
toasted-nutbread
610c2b9cca Move tagCache out of Database and into Translator 2019-10-19 13:32:05 -04:00
toasted-nutbread
6358b655ae Isolate options objects created via settings.js
Prevents dead objects created by different windows.
2019-09-14 16:21:41 -04:00
toasted-nutbread
c4e6d7e3d1 Add utility method for checking if a value is a standard object 2019-09-10 20:09:33 -04:00
toasted-nutbread
a39a1fa9e4 Add support for Edge browser 2019-08-26 21:58:03 -04:00
toasted-nutbread
d96d4b0658 Passively handle database errors 2019-05-04 13:02:56 -04:00
c62cc01642 simplify database interface 2017-10-29 10:42:39 -07:00
siikamiika
6f43fffb4e util.js: remove unnecessary conditional 2017-10-24 23:12:55 +03:00
siikamiika
78442fff1a settings: main dictionary selection as dropdown 2017-10-24 16:23:13 +03:00
siikamiika
9d4b75de20 fix error in utilStringHashCode 2017-10-19 00:47:08 +03:00
siikamiika
7e556e8d32 field template fixup for modified templates only 2017-10-18 23:40:56 +03:00
siikamiika
69ad4a7c9b merged mode: implement missing stuff, refactoring
- use correct tags
- indicate popular and rare terms
- indicate definitions restricted to specific terms
- frequencies (Innocent Corpus)
2017-10-03 07:20:02 +03:00
04f9a0f543 cleanup 2017-09-13 17:30:45 -07:00
84d2204d96 firefox fixes 2017-08-15 21:51:48 -07:00
bdf231082f lots of fixes to backend 2017-08-14 21:43:09 -07:00
7e635d6382 more cleanup 2017-08-05 19:23:17 -07:00
ac2e079c98 cleanup 2017-07-19 21:41:30 -07:00
fe137e94c9 cleanup 2017-07-19 21:28:09 -07:00
62db3d74b8 factor out handlebars from util 2017-07-19 09:24:38 -07:00
26e1cc517f refactor 2017-07-18 23:07:46 -07:00
39f1f30dc9 refactor bg/js/util.js 2017-07-16 13:14:28 -07:00