Commit Graph

1048 Commits

Author SHA1 Message Date
toasted-nutbread
dbbcfa5739 Only use Display.setContent 2020-01-16 22:39:26 -05:00
toasted-nutbread
6c58cbcf51 Remove kanji.html and terms.html 2020-01-16 22:39:26 -05:00
toasted-nutbread
a50e2fb0f1 Fix furigana segmentation 2020-01-16 22:39:26 -05:00
siikamiika
8292be92d8 use TextScanner in QueryParser 2020-01-16 23:22:38 +02:00
toasted-nutbread
fe5e05f8aa Fix incorrect result ordering 2020-01-12 21:31:04 -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
bbace4c93b Fix schema defaults not applying to arrays 2019-12-29 18:57:29 -05:00
toasted-nutbread
e2a4a46e60 Implement settings reset 2019-12-29 12:33:28 -05:00
toasted-nutbread
f17b55239e Implement settings import 2019-12-29 12:33:28 -05:00
toasted-nutbread
5045a9a3a0 Implement settings export 2019-12-29 12:33:28 -05:00
toasted-nutbread
d2da4f7e62 Add apiOptionsSchemaGet 2019-12-29 12:33:15 -05:00
toasted-nutbread
50e0fbbb66 Use schema to validate options 2019-12-29 12:33:15 -05:00
toasted-nutbread
b770944b12 Create proxy system for json schema validation 2019-12-29 12:33:15 -05:00
toasted-nutbread
ca2aca19c5 Upgrade default fieldTemplates to null 2019-12-29 12:33:03 -05:00
toasted-nutbread
d2ae7364bb Update anki-templates.js to control the value of fieldTemplates
Also assigns a value of null when using the default value
2019-12-29 12:33:03 -05:00
toasted-nutbread
3033fea31e Treat null templates as the default value 2019-12-29 12:33:03 -05:00
toasted-nutbread
024f969bfd Update comment on getClipboardText 2019-12-22 20:35:26 -05:00
toasted-nutbread
dec7f6cabb Add comment describing what token is used for 2019-12-22 20:35:26 -05:00
toasted-nutbread
11b94d5a82 Make apiClipboardGet use plaintext
Also clear the value before returning
2019-12-22 20:35:26 -05:00
toasted-nutbread
bf93d9f5f9 Improve performance of DisplaySearch's clipboard monitor 2019-12-22 20:35:26 -05:00
toasted-nutbread
a2175f2c29 Move PopupProxyHost initialization 2019-12-21 13:27:32 -05:00
toasted-nutbread
7ae0584077 Update initialization 2019-12-21 13:19:31 -05:00
toasted-nutbread
35216332bf Replace window.yomichan_backend with window.yomichanBackend 2019-12-20 23:21:29 -05:00
toasted-nutbread
f8365b8092 Replace window.yomichan_search with DisplaySearch.instance 2019-12-20 23:20:56 -05:00
toasted-nutbread
8c236cca44 Remove unused yomichan_frontend 2019-12-20 23:20:22 -05:00
toasted-nutbread
7b9731e616 Fix apiOptionsGet being used on the background page 2019-12-20 22:54:28 -05:00
toasted-nutbread
ec8b805e8f Fix missing API functions being used on the background page 2019-12-20 22:46:20 -05:00
toasted-nutbread
d7bf128333 Update handlebars cache 2019-12-20 21:51:34 -05:00
toasted-nutbread
2a95f1420f Move optionsUpdate message handler into Yomichan class 2019-12-20 13:36:54 -05:00
toasted-nutbread
29734ea6e9 isVisible => isVisibleSync 2019-12-16 19:54:41 -05:00
toasted-nutbread
41fadfd0a9 Add setChildrenSupported to popup 2019-12-16 19:54:41 -05:00
toasted-nutbread
7140a19100 Remove unused property assignment 2019-12-16 19:54:41 -05:00
toasted-nutbread
db7e179626 Clear files after getting the value 2019-12-15 15:51:30 -05:00
toasted-nutbread
8c9416d70d Move conditions-ui into settings folder 2019-12-14 12:08:07 -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
e417a3fda3 Fix incorrect function 2019-12-13 23:11:56 -05:00
toasted-nutbread
69556533e1 Fix command handling 2019-12-13 23:11:56 -05:00
toasted-nutbread
b1f72905cf Add functions for modifying mutable options 2019-12-13 23:11:56 -05:00
toasted-nutbread
17277a6450 Remove getOptionsArray 2019-12-13 23:11:56 -05:00
toasted-nutbread
ce51fe7eca Use a single api.js 2019-12-13 23:11:56 -05:00
toasted-nutbread
11b300ab76 Move apiClipboardGet implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
2fef2bf5a8 Move apiGetEnvironmentInfo implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
f786713466 Move apiInjectStylesheet implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
01a3432627 Move apiFrameInformationGet implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
daff44a010 Move apiForward implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
d8b21606ba Move apiScreenshotGet implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
1202ad261e Move apiAudioGetUrl implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
f63220b6c5 Move apiCommandExec implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
f07207c9bf Move apiTemplateRender implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
5a74350552 Move apiNoteView implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
233ed4d0fb Move apiDefinitionsAddable implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
c9cd29889d Move apiDefinitionAdd implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
7091c8c5c0 Move apiTextParseMecab implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
ddad034aa6 Move apiTextParse implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
73ce2fe3d3 Move apiTermsFind implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
5cceba15e2 Move apiKanjiFind implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
8dff73679e Move apiOptionsSave implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
6a1cfbaad6 Move apiOptionsSet implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
d6fe5c3e46 Move apiOptionsGetFull implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
4922d3433d Move apiOptionsGet implementation into Backend 2019-12-13 23:11:56 -05:00
toasted-nutbread
832405c74a Mark functions as private 2019-12-13 23:11:56 -05:00
toasted-nutbread
7addf5a2dd Add API calls for optionsGetFull and optionsSave 2019-12-13 23:11:56 -05:00
toasted-nutbread
4177b63726 Remove redundant getUrl handlers 2019-12-13 23:11:56 -05:00
toasted-nutbread
7837e9f0e3 Update popup preview frame message handlers 2019-12-13 23:11:56 -05:00
toasted-nutbread
e2c5c16da6 Update backend message handlers 2019-12-13 23:11:56 -05:00
toasted-nutbread
f287d68624 Add showContentCompleted for improved semantic clarity 2019-12-11 21:31:21 -05:00
toasted-nutbread
99867ebdd8 Fix text source issue 2019-12-11 21:27:42 -05:00
toasted-nutbread
7446c99f98 Fix Text-to-speech voice dropdown being reset 2019-12-11 21:15:51 -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
dbd9a54149 Use string.split instead of Array.from 2019-12-08 16:01:29 -05:00
toasted-nutbread
bb334acab6 Use substring instead of slice 2019-12-08 16:01:29 -05:00
toasted-nutbread
8ca44d722c Prevent scripts from being injected multiple times 2019-12-08 16:01:29 -05:00
siikamiika
3c749f8705 hide inactive history buttons instead of fading 2019-12-08 22:59:36 +02:00
siikamiika
b8fddd96c8 fix popup preview
resolves #302
2019-12-08 11:10:19 +02: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
siikamiika
df06251cb0
Merge pull request #299 from siikamiika/frontend-extract-text-scanner
Extract text scanner from Frontend
2019-12-07 15:20:28 +02:00
siikamiika
d1950bc5f1 use substring over slice for strings 2019-12-06 14:58:42 +02:00
siikamiika
a5a6351cce revert search page title on empty query 2019-12-06 14:56:36 +02:00
toasted-nutbread
b418760a52 Simplify audio settings UI 2019-12-05 22:36:59 -05:00
siikamiika
14c5857dfe set title text on search page 2019-12-06 00:40:41 +02:00
siikamiika
1bdef2e7c3 fix query parser 2019-12-05 22:19:40 +02:00
siikamiika
02a34bb4bc initial text scanner extract 2019-12-05 03:58:35 +02:00
toasted-nutbread
774db569eb Simplify ankiGetFieldMarkersHtml 2019-12-02 22:19:55 -05:00
toasted-nutbread
5339381c30 Update how anki data is updated 2019-12-02 22:17:45 -05:00
toasted-nutbread
f89806e05d Simplify how anki errors are shown 2019-12-01 22:26:23 -05:00
toasted-nutbread
093fa3a437 Group public/private functions together 2019-12-01 22:21:10 -05:00
toasted-nutbread
4f7fa8474d Mark functions as private 2019-12-01 22:19:45 -05:00
toasted-nutbread
b4cdbf0263 Update how anki settings are updated 2019-12-01 22:16:58 -05:00
toasted-nutbread
3e1b080cd3 Simplify how anki templates are reset 2019-12-01 21:08:46 -05:00
toasted-nutbread
767a480a84 Organize main settings script 2019-12-01 17:02:01 -05:00
toasted-nutbread
a4de2d425a Move popup preview settings into new script 2019-12-01 17:02:01 -05:00
toasted-nutbread
65e9d47743 Move storage settings into new script 2019-12-01 17:02:01 -05:00
toasted-nutbread
69ba665a4f Move anki template settings into new script 2019-12-01 17:02:01 -05:00