Commit Graph

1208 Commits

Author SHA1 Message Date
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
siikamiika
2a19d8c59f remove one more /fg/js/util.js 2019-12-09 19:43:35 +02: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
toasted-nutbread
7401408c39 Update input number attributes 2019-12-07 14:01:55 -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
siikamiika
248b0f15eb remove references to /fg/js/util.js
It doesn't exist
2019-12-04 23:20:03 +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
toasted-nutbread
67990f4cb9 Move anki settings into new script 2019-12-01 16:19:15 -05:00
toasted-nutbread
3a517f0574 Move audio settings into new script 2019-12-01 16:19:15 -05:00
toasted-nutbread
ae94f84ffd Move settings scripts 2019-12-01 16:19:12 -05:00
toasted-nutbread
a7e4901f72 Move PageExitPrevention to its own file 2019-12-01 15:19:21 -05:00
siikamiika
5929018fac move Display context to a new class 2019-12-01 05:38:23 +02:00
siikamiika
be23ad7213 remove dead code 2019-11-30 04:59:36 +02:00
siikamiika
ff9510356e rewrite history as a doubly linked list 2019-11-30 04:49:37 +02:00
siikamiika
e3d96eb67d fix yomichan menu on Firefox Android 2019-11-29 02:58:17 +02:00
siikamiika
71a117c267 clear Display history on search page lookup 2019-11-28 23:52:15 +02:00
siikamiika
1f2734863f Display history navigation buttons fixed position 2019-11-28 18:06:24 +02:00
siikamiika
2e04f752a5 fix clicking on query parser 2019-11-28 16:08:19 +02:00
siikamiika
beea89a421 store popped context history in Display 2019-11-28 15:20:18 +02:00
toasted-nutbread
5a1046bc90 Update arrow-parens to always 2019-11-26 22:06:27 -05:00
toasted-nutbread
63a775ebca Add missing semicolon 2019-11-26 22:06:27 -05:00
toasted-nutbread
df9e697fca Remove trailing commas 2019-11-26 22:06:27 -05:00
toasted-nutbread
acb70f126c Update unused arguments 2019-11-26 22:06:27 -05:00
toasted-nutbread
ef833d2bea Use const rather than let where possible 2019-11-26 22:06:27 -05:00
toasted-nutbread
527595f79b Remove unnecessary escapes from regex literals 2019-11-26 22:06:27 -05:00
toasted-nutbread
1daed12290 Comment empty blocks 2019-11-26 22:06:27 -05:00
toasted-nutbread
943350a1f6 Use single quotes 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
4110a848f5 Move additional utility functions to DOM 2019-11-26 18:59:52 -05:00
toasted-nutbread
96aad50340 Create DOM utility file 2019-11-26 18:59:52 -05:00
toasted-nutbread
099847729c utilIsObject => isObject, move to core.js 2019-11-26 17:33:09 -05:00
toasted-nutbread
7e94fca7c7 Rename extension.js to core.js to better reflect its use 2019-11-26 17:29:52 -05:00
toasted-nutbread
d71bd056e8 Use consistent event handler notation 2019-11-26 17:18:17 -05:00
toasted-nutbread
7f9a73135d Remove utilAsync 2019-11-26 17:18:17 -05:00
toasted-nutbread
0ebf676305 Update WanaKana to v4.0.2
Resolves #290
2019-11-26 12:46:41 -05:00
toasted-nutbread
cfa16ce675 Include sentence in context on search page 2019-11-26 11:34:06 -05:00
siikamiika
3423ed7d67
Merge pull request #279 from siikamiika/query-parser-1
Search page query parser
2019-11-26 18:31:35 +02:00
toasted-nutbread
91c54e1853 Remove JQuery from the context popup window 2019-11-24 11:46:29 -05:00
toasted-nutbread
10b33dbd20 Optimize toggle on the context popup window
Remove bootstrap-toggle dependency
2019-11-24 11:42:27 -05:00
toasted-nutbread
cf18e3b42e Replace string.substr and string.slice with string.substring
Improves semantic clarity, and it's recommended to not use substr.
2019-11-24 11:02:52 -05:00
toasted-nutbread
eef05f6a64 Add accept type for dictionary import 2019-11-24 10:47:07 -05:00
siikamiika
89c6ef54b0 always return a promise from Mecab.invoke 2019-11-24 02:34:16 +02:00
siikamiika
43fad608fb remove popup from background page
Not supported on all browsers
2019-11-23 19:25:11 +02:00
siikamiika
7bf2c8048d add mecab version check 2019-11-23 19:18:29 +02:00
siikamiika
2577d4054e fix scanning parser 2019-11-23 18:08:22 +02:00
siikamiika
cc8221c6ea add reading modes 2019-11-23 17:50:46 +02:00
siikamiika
f625321650 refactor selected parser refreshing 2019-11-23 17:50:46 +02:00
siikamiika
933fd77957 remove async 2019-11-23 17:50:46 +02:00
siikamiika
707b039927 store local copy of selected parser
Options don't update early enough even after awaiting
2019-11-23 17:50:46 +02:00
siikamiika
f6f19dc9de typo 2019-11-23 17:50:46 +02:00
siikamiika
9dff658640 add parser selection 2019-11-23 17:50:46 +02:00
siikamiika
b02a30a2fd explicit checks in while and if 2019-11-23 17:50:46 +02:00
siikamiika
1f2eee449e mecab refactoring and bugfix 2019-11-23 17:50:46 +02:00
siikamiika
f97877a209 promise improvements 2019-11-23 17:50:46 +02:00
siikamiika
b336ab3a9a use const 2019-11-23 17:49:25 +02:00
siikamiika
8d9a635d5c remove dead code 2019-11-23 17:48:03 +02:00
siikamiika
c1d24208d3 start mecab only after enabling the setting 2019-11-23 17:45:44 +02:00
siikamiika
955e131f96 add parser selection options 2019-11-23 17:45:44 +02:00
siikamiika
1bf48d24ef change mecab path
https://github.com/siikamiika/yomichan-mecab-installer
2019-11-23 17:45:44 +02:00
siikamiika
515345ba0a remove code duplication 2019-11-23 17:45:44 +02:00
siikamiika
b0c924d4bd fix mecab variable 2019-11-23 17:45:44 +02:00
siikamiika
bc66f254ea click & text selection improvements on search page 2019-11-23 17:45:44 +02:00
siikamiika
c78ca36f3d switch to mousemove events in query parser 2019-11-23 17:45:44 +02:00
siikamiika
8825c481b5 respect text selection option in query parser 2019-11-23 17:45:44 +02:00
siikamiika
5a3e8c819c optimize mouseover scanning in query parser 2019-11-23 17:45:44 +02:00
siikamiika
41020289ab add mecab support 2019-11-23 17:45:44 +02:00
siikamiika
3881457e4e use handlebars templates for query parser 2019-11-23 17:45:44 +02:00
siikamiika
e6a1b78164 use correct source text 2019-11-23 17:44:31 +02:00
siikamiika
627e16d44b improve text preview 2019-11-23 17:43:30 +02:00
siikamiika
d19f447b80 fix stem length checking
Starting from the end and stopping at first match doesn't guarantee
correctness. Starting from the beginning does.
2019-11-23 17:40:52 +02:00
siikamiika
c35a05cd62 add kana to text 2019-11-23 17:40:52 +02:00
toasted-nutbread
b4c6fa2d37 Improve usability of domain profile condition 2019-11-23 10:28:37 -05:00
siikamiika
f63e8e4be0 add simple query parser 2019-11-23 16:56:10 +02:00
toasted-nutbread
baf0325f62 Fix missing details 2019-11-18 21:55:06 -05:00
Alex Yatskov
b1659522b3
Merge pull request #274 from toasted-nutbread/lookup-wildcards
Lookup wildcards
2019-11-13 18:51:50 -08:00
siikamiika
7d9d45ae10 close popups on search page when query changes 2019-11-13 21:19:01 +02:00
siikamiika
29c38b06b2 only paste Japanese text from clipboard 2019-11-13 13:51:47 +02:00
toasted-nutbread
db4a303365 Fix dictionary settings not using the current profile 2019-11-12 20:13:25 -05:00
toasted-nutbread
72e7a42c8d Fix settings not being saved correctly 2019-11-12 20:01:55 -05:00
toasted-nutbread
7333873244 Add support for wildcards 2019-11-10 14:02:43 -05:00
toasted-nutbread
3a225c3f91 Add details field to apiTermsFind 2019-11-10 14:02:43 -05:00
toasted-nutbread
7093d8f06e Simplify how definition count is limited 2019-11-10 14:02:43 -05:00
toasted-nutbread
58c0997999 Give findKanji the same API as findTerms 2019-11-10 14:02:43 -05:00
toasted-nutbread
af1662acad Update how apiTermsFind works 2019-11-10 14:02:43 -05:00
toasted-nutbread
ae10bb7096 Simplify dictTermsSort 2019-11-10 14:02:43 -05:00
toasted-nutbread
fe82913991 Rename function 2019-11-10 14:02:43 -05:00
toasted-nutbread
a9ab774a3f Move function 2019-11-10 14:02:43 -05:00
toasted-nutbread
d6cdd693c8 Fix several warnings about name conflicts 2019-11-10 13:55:37 -05:00
toasted-nutbread
157e6f7c75 Optimize DisplaySearch.onKeyDown 2019-11-10 13:40:48 -05:00
toasted-nutbread
120f97be26 Refactor apiOptionsSet 2019-11-10 13:36:35 -05:00
toasted-nutbread
aa92855b37 Fixes for Edge 2019-11-10 13:01:39 -05:00