Commit Graph

1685 Commits

Author SHA1 Message Date
toasted-nutbread
8b89e99eff Remove contenteditable="true" from textarea 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
362e317a5d Change FrontendApiSender.callbacks to be a map 2019-12-21 14:30:13 -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
b2cc694d95 Replace window.yomichan_display with DisplayFloat.instance 2019-12-20 23:20:42 -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
2519f99f54 Update how orphan state is observed 2019-12-20 13:44:33 -05:00
toasted-nutbread
2a95f1420f Move optionsUpdate message handler into Yomichan class 2019-12-20 13:36:54 -05:00
toasted-nutbread
e14bd75a4f Change how getUrl message is handled 2019-12-20 13:15:26 -05:00
toasted-nutbread
cab2a39981 Simplify options passed to docRangeFromPoint 2019-12-17 20:56:32 -05:00
toasted-nutbread
4b5138b96e Override pointer-events with important 2019-12-17 20:54:57 -05:00
toasted-nutbread
ff1f256ffa Only return unique elements from docElementsFromPoint
This fixes #294
2019-12-17 20:53:12 -05:00
toasted-nutbread
9557d8048b Fix undefined reference 2019-12-16 19:54:41 -05:00
toasted-nutbread
68a0293867 Make PopupProxy functions async enabled status match Popup 2019-12-16 19:54:41 -05:00
toasted-nutbread
d6c64643b1 Don't return promises for frontend message handlers 2019-12-16 19:54:41 -05:00
toasted-nutbread
0fb2357ec7 isVisibleAsync => isVisible 2019-12-16 19:54:41 -05:00
toasted-nutbread
29734ea6e9 isVisible => isVisibleSync 2019-12-16 19:54:41 -05:00
toasted-nutbread
72ab6f1f45 Remove unused child getter 2019-12-16 19:54:41 -05:00
toasted-nutbread
801df8000f Mark private members 2019-12-16 19:54:41 -05:00
toasted-nutbread
7c68490d2e Add setParent to popup 2019-12-16 19:54:41 -05:00
toasted-nutbread
30e13354b3 Add Popup.isProxy 2019-12-16 19:54:41 -05:00
toasted-nutbread
289a1849c4 Add _createPopupInternal to return both popup and new ID 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
c4719cb7f4 Add getContainer to popup 2019-12-16 19:54:41 -05:00
toasted-nutbread
4ba93b0770 Add getContainerRect to popup 2019-12-16 19:54:41 -05:00
toasted-nutbread
37da5fef59 Move container definition 2019-12-16 19:54:41 -05:00
toasted-nutbread
c3ea952844 Mark private functions 2019-12-16 19:54:41 -05:00
toasted-nutbread
44bde5c676 Reorganize popup-only public functions 2019-12-16 19:54:41 -05:00
toasted-nutbread
4014bbab42 Reorganize popup public functions to match popup proxy 2019-12-16 19:54:41 -05:00
toasted-nutbread
8164ccfbfc Group poup static functions together 2019-12-16 19:54:41 -05:00
toasted-nutbread
fab0d70358 Move popup public properties 2019-12-16 19:54:41 -05:00
toasted-nutbread
2c3a145866 Mark private members 2019-12-16 19:54:41 -05:00
toasted-nutbread
8a127e07f3 Mark private message handlers 2019-12-16 19:54:41 -05:00
toasted-nutbread
525a3a50d1 Mark private functions 2019-12-16 19:54:41 -05:00
toasted-nutbread
2c8c6866ef jsonRectToDOMRect => convertJsonRectToDOMRect
Also make static
2019-12-16 19:54:41 -05:00
toasted-nutbread
3f8cc83c25 Group nested message handlers together 2019-12-16 19:54:41 -05:00
toasted-nutbread
88ac8f4ead Update PopupProxyHost.popups to use a Map 2019-12-16 19:54:41 -05:00
toasted-nutbread
8efbf9bd0d Flag members as private 2019-12-16 19:54:41 -05:00
toasted-nutbread
bf02eb2ea1 Mark PopupProxy internal functions as private 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
573f83b65a Update frontend API receiver handlers 2019-12-13 23:11:56 -05:00
toasted-nutbread
b7144ed879 Update display float key handlers 2019-12-13 23:11:56 -05:00
toasted-nutbread
a9c4ce724c Update display key 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
5588643988 Update float message handlers 2019-12-13 23:11:56 -05:00
toasted-nutbread
a2263e5729 Update display message handlers 2019-12-13 23:11:56 -05:00
toasted-nutbread
863e36e829 Update frontend 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
47feb95842 Add timer class for debugging 2019-12-10 19:40:40 -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