toasted-nutbread
181ade93d6
Display scroll fixes ( #1046 )
...
* Update focus when internal focus is changed
* Update scroll layout
2020-11-20 22:42:49 -05:00
toasted-nutbread
1216926fbd
Hide profile button if only one profile exists ( #1045 )
2020-11-19 18:49:30 -05:00
toasted-nutbread
e5255a03e6
Context popup improvements ( #1039 )
...
* Refactor context-main.js
* Simplify tags
* Use flex layout
* Use image masks for icons, update styles
* Remove old classes
* Add profile button
* Add support for profile selection
* Add title
* Swap the options and search link order
* Fix title
2020-11-19 18:37:02 -05:00
toasted-nutbread
1588f6210c
Display and query parser layout ( #1043 )
...
* Update query parser text assignment
* Update how padding is used
* Hide query parser container by default
2020-11-18 20:15:30 -05:00
toasted-nutbread
e9075e24e1
Update progress indicator styles ( #1042 )
2020-11-18 20:06:02 -05:00
toasted-nutbread
a48ac37815
Use an overridable property to control progress indicator visibility ( #1041 )
2020-11-17 19:40:19 -05:00
toasted-nutbread
ea7b8621c3
Update layout to have better sizing properties ( #1040 )
2020-11-16 20:41:12 -05:00
toasted-nutbread
37ea7e2c9a
Add support for dark theme scrollbar colors ( #1038 )
2020-11-15 14:39:37 -05:00
toasted-nutbread
e4f28b31ce
Move "Enable native popups" option and make advanced ( #1037 )
2020-11-15 14:16:11 -05:00
toasted-nutbread
d66a5e3b87
Fix settings resetting not initializing dictionary settings properly ( #1036 )
2020-11-15 14:14:52 -05:00
toasted-nutbread
4b1c7b1e26
Display layout updates ( #1032 )
...
* Fix display scroll not always using the right position
* Update display layout and scroll method
* Fix border size
2020-11-14 18:12:06 -05:00
toasted-nutbread
af16643f35
Display styles update ( #1030 )
...
* Make section comments into single line comments
* Update :before/:after to be ::before/::after
* Organize and compact CSS
* Remove obsolete style
* Add padding var
* Use calc and var for layout units and common values
* Update search page styles
2020-11-14 15:23:20 -05:00
toasted-nutbread
50a1fbfb9f
Display updates ( #1029 )
...
* Simplify expression creation
* Add attribute indicating whether the reading is the same or not
* Update kanji debug info
* Remove some unnecessary null checks
* Simplify iterable check
* Update float and search HTML to be more consistent
2020-11-14 13:42:50 -05:00
toasted-nutbread
112f08a13e
Fix term details not using the expanded tags ( #1028 )
2020-11-14 12:09:14 -05:00
toasted-nutbread
20f3d09aa4
Clear cached definition when rendering a template ( #1022 )
2020-11-12 20:35:11 -05:00
toasted-nutbread
ec021964b7
Compact tags refactor ( #1021 )
...
* Update translator to flag redundant tags instead of remove
* Update how compact tags are shown in the popup
* Pass compactTags option to note builder
* Update options templates
* Add options upgrade
* Add options upgrade test
2020-11-12 20:34:11 -05:00
toasted-nutbread
eb8069a494
Options context updates ( #1017 )
...
* Update event order
* Update inputs
* Add type and cause to input info
* Update input info args
* Simplify arguments
* Update argument name
* Change order
2020-11-08 22:55:43 -05:00
toasted-nutbread
3a23f081d1
Frontend options override refactor ( #1016 )
...
* Update how options context overriding works
* Make function private
2020-11-08 22:49:40 -05:00
toasted-nutbread
8edb478d0a
Update keyboard/mouse modifiers to return an array rather than a set ( #1015 )
2020-11-08 22:19:54 -05:00
toasted-nutbread
681065e554
Remove unused functions from backend.js ( #1014 )
2020-11-08 17:06:44 -05:00
toasted-nutbread
16321a1f8c
Add duplicate check option ( #1012 )
...
* Add anki.checkForDuplicates option
* Use checkForDuplicates for button display
* Add property to card creation
2020-11-08 16:25:07 -05:00
toasted-nutbread
4e30409410
Add api.isAnkiConnected ( #1011 )
2020-11-08 15:53:06 -05:00
toasted-nutbread
0cbc6523e6
Remove unused default selected ( #1010 )
2020-11-08 14:24:39 -05:00
toasted-nutbread
6081e3bef0
Make query parser mode select in the base HTML ( #1009 )
2020-11-08 13:25:07 -05:00
toasted-nutbread
8dc961a61f
Merge QueryPaserGenerator into QueryParser ( #1008 )
2020-11-08 12:50:16 -05:00
toasted-nutbread
948605a1fe
Update query parser to properly display multi-line content ( #1007 )
2020-11-08 12:43:41 -05:00
toasted-nutbread
12e6e37785
Query parser generator refactor ( #1006 )
...
* Simplify select generation
* Refactor text generation
* Change optional argument
* Remove query-parser-templates.html
* Simplify prepare
* Simplify preview
2020-11-08 12:35:32 -05:00
toasted-nutbread
8cf10d685d
Search and display style updates ( #1005 )
...
* Use same selectors
* Use consistent stylesheet declaration
* Fix query parser not being cleared
* Set property upon load
* Don't focus for Enter key press
* Update search page styles
* Update indent and nodes
* Support dark style
* Add missing var
2020-11-08 12:34:23 -05:00
toasted-nutbread
db9ec4c449
Fix search tab opening having some errors ( #1004 )
2020-11-07 22:43:14 -05:00
toasted-nutbread
f4325b7db9
Fix byte count labels ( #998 )
...
* Add 'TB' label
* Prevent overflow
* Fix storage information on the old settings page
2020-11-07 09:58:46 -05:00
toasted-nutbread
9c6ff387a0
Popup preview update ( #994 )
...
* Add options.global.showPopupPreview option
* Add preview visibility control using a checkbox
* Add attribute on page load
* Disable animation until page is loaded
2020-11-06 22:14:00 -05:00
toasted-nutbread
b62c48822e
Use <strong> styling for list keys ( #991 )
2020-11-05 22:44:35 -05:00
toasted-nutbread
3216a9e263
Settings controller changes ( #990 )
...
* Make allowSecondarySearchesCheckbox optional
* Move getDictionaryInfo into SettingsController
2020-11-05 18:45:57 -05:00
toasted-nutbread
5b9d709d40
Conjugation marker ( #988 )
...
* Add {conjugation} marker
* Add info
* Add upgrade
* Update test
2020-11-04 20:39:23 -05:00
toasted-nutbread
255c8b724e
Pitch accents preview ( #987 )
...
* Add public preparePitchAccents function to DisplayGenerator
* Add pitch accents preview HTML, CSS, and JS
2020-11-03 22:30:20 -05:00
toasted-nutbread
a8ff38eec3
Fix display issues ( #984 )
...
* Remove unused function
* Update expresionMulti detection
* Simplify kanji early escape
* Simplify frequency/pitch data creation
* Update implementation of _buildTermMeta
* Update how pitch accents sources are collected
* Remove old _buildTermMeta
2020-11-01 21:24:35 -05:00
toasted-nutbread
215ef627f1
Duplicate scope options ( #955 )
...
* Add deck-root duplicate scope option
* Implement support for deck-root scope
2020-10-31 19:03:45 -04:00
toasted-nutbread
94620f4f22
Trigger event on property change ( #979 )
...
* Add _triggerScanInputsChanged function
* Trigger event when inputs are changed
2020-10-31 17:13:24 -04:00
toasted-nutbread
11c5dbac64
Add an 'other' option for when there is no matching main scanning input ( #978 )
2020-10-31 17:03:22 -04:00
toasted-nutbread
f78e243853
Update counts when an input entry is removed ( #977 )
2020-10-31 16:38:48 -04:00
toasted-nutbread
164c7b4375
Fix addition/removal of middle mouse button input not always working ( #976 )
2020-10-31 16:33:48 -04:00
toasted-nutbread
21cae0e38e
Scan inputs controller refactor ( #975 )
...
* Add public function to clear inputs
* Return the promise
* Pass input options directly
* Assign showAdvanced
* Add more menu options
2020-10-31 16:26:01 -04:00
toasted-nutbread
ab98caf842
Scanning inputs refactor ( #974 )
...
* Add support for count nodes
* Add support for menu button
2020-10-31 13:40:10 -04:00
toasted-nutbread
54768ca6e4
Update PopupPreviewController to support settings v2 ( #972 )
2020-10-30 22:21:56 -04:00
toasted-nutbread
f5d6573bec
Add supoprt for modal dimmer element ( #971 )
2020-10-30 22:20:50 -04:00
toasted-nutbread
327d7b1f26
Anki templates refactor ( #970 )
...
* Support menus with multiple sources
* Update anki templates controller
2020-10-30 17:41:52 -04:00
toasted-nutbread
cb76848df9
Fix profile creation not working on settings v1 ( #968 )
2020-10-28 20:47:20 -04:00
toasted-nutbread
890de095db
Fix modals not closing properly when the outside is clicked ( #967 )
2020-10-28 20:45:50 -04:00
toasted-nutbread
ba59327354
Dictionary controllers update ( #965 )
...
* Make purge notification optional
* Support multiple warning nodes
* Add support for optional count info
2020-10-27 21:20:26 -04:00
toasted-nutbread
9e57509e25
Json schema default value improvement ( #964 )
...
* Ensure value has property before using its value
* Add tests
2020-10-27 19:40:19 -04:00
toasted-nutbread
75734de7eb
Option schema default value info ( #963 )
...
* Add traversal info to getValidValueOrDefault
* Move private function
2020-10-27 19:27:27 -04:00
toasted-nutbread
dfdefc15d3
Options fixes ( #962 )
...
* Fix default options not having the correct versions
* Move schema validation
* Remove legacy version number
* Add tests for OptionsUtil.getDefault()
* Remove unused getValidValueOrDefault
2020-10-27 19:26:30 -04:00
toasted-nutbread
45627bd6e6
Fix class name ( #961 )
2020-10-27 19:24:17 -04:00
toasted-nutbread
502ca9c96e
Remove limits for popup horizontal/vertical offsets ( #960 )
2020-10-27 19:23:03 -04:00
toasted-nutbread
9048890bf6
Remove error type from error message ( #958 )
2020-10-26 21:54:18 -04:00
toasted-nutbread
28330d0e30
Anki controller refactor ( #957 )
...
* Add _setFieldMarker helper function
* Add support for persistent nodes
* Add support for menus
2020-10-25 22:51:28 -04:00
toasted-nutbread
92c083ee9f
Sort deck and model names in Anki card settings ( #956 )
2020-10-25 19:04:59 -04:00
toasted-nutbread
defd7402cf
Anki controller refactor ( #954 )
...
* Simplify data transform for anki.enable setting
* Refactor AnkiController
* Implement marker link clicking
* Request permissions for clipboard
2020-10-25 13:34:42 -04:00
toasted-nutbread
9e9bd0dcf6
Profile controller refactor ( #953 )
...
* Udpate selectors
* Optional remove button
* Add menu
* Refactor ProfileController
* Fix selector
2020-10-24 16:01:13 -04:00
toasted-nutbread
4188adae28
Rename index to profileIndex for clarity ( #952 )
2020-10-23 21:37:22 -04:00
toasted-nutbread
fcf63d71f5
Profile controller refactor ( #950 )
...
* Add additional fields for consistency
* Fix copy confirm not working correctly
* Update IDs
2020-10-20 22:15:11 -04:00
toasted-nutbread
9bda0a9eb4
Popup preview fixes ( #948 )
...
* Select just the text node and not its container
* Make background color transparent by default
2020-10-20 20:53:18 -04:00
toasted-nutbread
ecbac2c5ea
Popup preview improvements ( #947 )
...
* Move CSS
* Update indent
* Refactor HTML/CSS
* Add support for editing the source text
* Add WanaKana binding for input
* Rename file
2020-10-20 19:08:17 -04:00
toasted-nutbread
23230b8a7c
Backup controller refactor ( #946 )
...
* Update IDs
* Change how default fieldTemplates is assigned
* Ensure no missing fields
* Fix error display during import
2020-10-19 20:05:45 -04:00
toasted-nutbread
91b4feb934
Make dictionary spinner optional ( #945 )
2020-10-19 17:25:15 -04:00
toasted-nutbread
69e5ea6138
Popup menu updates ( #942 )
...
* Expose isClosed property
* Add popupMenu to detail
* Return true if closed, false otherwise
* Add closed event to PopupMenu
2020-10-18 19:48:44 -04:00
toasted-nutbread
9fa2ebddc8
Dictionary controller updates ( #941 )
...
* Rename action
* Store more state information
* Conditional checks for details toggle links
* Add support for hiding/showing details via menu
2020-10-18 19:35:09 -04:00
toasted-nutbread
ce17a47b5e
Change progress reporting to support settings v2 ( #940 )
2020-10-18 18:28:14 -04:00
toasted-nutbread
8bf42fa69e
Dictionary controller updates ( #939 )
...
* Check if element exists
* Add delete function
* Add support for deleting via popup menu
* Update how count visibility is updated
* Update dictionary deletion progress updates
* Update storage stats after dictionary deletion
2020-10-18 18:26:44 -04:00
toasted-nutbread
3e3c080a43
Status footer ( #938 )
...
* Add event for popup element close completion
* Add StatusFooter class
2020-10-18 18:22:36 -04:00
toasted-nutbread
a920445883
Fix focused element of popup menus ( #937 )
2020-10-18 18:21:10 -04:00
toasted-nutbread
988ea8f70a
Update audio controller for menus ( #936 )
...
* Make event non-async
* Only add event listener if the button exists
* Add support for menu for removal
2020-10-18 13:18:57 -04:00
toasted-nutbread
3ab63f4f55
Fix missing close cause ( #935 )
2020-10-18 13:00:49 -04:00
toasted-nutbread
82e203dd76
Popup menu updates ( #934 )
...
* Store a reference to the menu
* Allow close cancellation
* Add open event
2020-10-18 12:58:07 -04:00
toasted-nutbread
faf130f420
Add PopupMenu class ( #933 )
2020-10-18 12:49:51 -04:00
toasted-nutbread
054fe02808
Fix new Modal's base calss ( #932 )
2020-10-18 09:54:29 -04:00
toasted-nutbread
d35d1fd44a
Generalize modal, move to popup-elements.js ( #931 )
2020-10-18 09:39:55 -04:00
toasted-nutbread
6f1bdf0c66
Modal split ( #930 )
...
* Move jQuery-based modal into a separate class
* Remove jQuery conditions for default modal
2020-10-18 09:27:32 -04:00
toasted-nutbread
a4550627af
Add a refresh function to GenericSettingsController ( #929 )
2020-10-17 21:38:29 -04:00
toasted-nutbread
642c434829
SelectorObserver ( #927 )
...
* Create new SelectorObserver class
* Update DOMDataBinder to use SelectorObserver
* Update names to be more clear
* Remove attributeOldValue parameter, clarify attributes parameter
* Add documentation
2020-10-17 16:33:11 -04:00
toasted-nutbread
e5ef3fe9c2
Remove debug log ( #924 )
2020-10-15 18:10:29 -04:00
toasted-nutbread
e6a1bcc0f5
Ensure settings exist for all installed dictionaries ( #922 )
2020-10-14 19:38:50 -04:00
toasted-nutbread
51904761ce
Add simple scan input UI ( #921 )
...
* Add simple scan input UI
* Create helper function
* Add controller for old scanning input UI
* Add refresh functions
* Add abstraction function
* Fix incomplete middle mouse support detection
* Make scanning inputs update eachother
* Fix global declaration order
2020-10-14 19:37:46 -04:00
toasted-nutbread
429e3a5b74
Fix "modifier" field being required despite being deleted ( #920 )
2020-10-14 19:36:27 -04:00
toasted-nutbread
a72c3d7719
Fix template updates for multiple declarations ( #918 )
...
* Update pattern to be multi-match
* Remove unnecessary async
2020-10-14 19:35:13 -04:00
toasted-nutbread
3e9db71120
Add a default audio option ( #913 )
2020-10-11 22:20:07 -04:00
toasted-nutbread
5b5b45b88e
Dictionary controller refactor ( #912 )
...
* Support multiple main dictionary selects
* Update progress container
* Change class name
* Simplify dictionary info
* Update outdated node visibility
* Simplify node usage
* Simplify title
* Update classes
* Update IDs/classes
* Remove details container visibility assignment
* Use a template for dictionary details
* Fix progress bar visibility
* Fix incorrect property
* Rename dict-details to dictionary-details
* Remove unused classes
* Update class names for dictionary templates
* Rename templates
* More id renaming
* Remove unused id
* Rename more IDs
2020-10-11 17:31:58 -04:00
toasted-nutbread
9da08c7fe6
Generic settings improvements ( #909 )
...
* Add helper function _getElementRelativeToAncestor
* Move helper functions
* Add setVisibility transform
* Add support for data-transform attribute shorthand
* Add support for using the document element as the ancestor
2020-10-10 23:17:51 -04:00
toasted-nutbread
25c590e54b
Add modal controller class ( #908 )
...
* Add ModalController
* Use modalController instead of new Modal
2020-10-10 20:58:38 -04:00
toasted-nutbread
0244d07ea9
Storage controller refactor ( #907 )
...
* Use array for use/quota nodes
* Use classes instead of ids
2020-10-10 17:37:16 -04:00
toasted-nutbread
19e0346484
Further generalize storage controller by supporting lists of nodes ( #906 )
2020-10-10 17:31:09 -04:00
toasted-nutbread
199dd7d763
Storage controller refactor ( #905 )
...
* Use hidden instead of storage-hidden class
* Refactor storage events
* Make ID more generic
* Update how persistent storage is activated
* Add null checks
* Update HTML/ID
* Disallow disabling persistent storage
* Refactoring
* Update more IDs
* Disable multiple simultaneous stats updates
* Store node references
* Move undefined assignment
2020-10-10 16:54:52 -04:00
toasted-nutbread
3174f3c657
Update audio controller ( #904 )
...
* Remove redundant assignment of select value
* Update TTS preparation
* Don't hide options
* Improve voice sorting
* Update event handler
* Apply options to all selects targeting audio.textToSpeechVoice
* Update selector
* Use IDs
* Move test text to a hidden text input
2020-10-10 12:11:33 -04:00
toasted-nutbread
6799b87cc6
Make animation optional for Modal.setVisible ( #903 )
2020-10-10 10:47:02 -04:00
toasted-nutbread
591253d783
Add support for allowing modals to be display:none when not open ( #902 )
2020-10-10 10:12:53 -04:00
toasted-nutbread
1ae8fb4bfa
Modal updates 2 ( #901 )
...
* Fix incorrect visible value
* Focus element when visibility is set
* Add isVisible function
2020-10-08 22:44:55 -04:00
toasted-nutbread
bedcad6ab2
Update the Modal class to support non-jQuery modals ( #900 )
2020-10-08 22:31:58 -04:00
toasted-nutbread
41ead7a90a
Add additional transforms ( #899 )
2020-10-08 17:38:18 -04:00
toasted-nutbread
05e51a950e
Settings templates refactor ( #897 )
...
* Add template instantiation API to SettingsController
* Use SettingsController.instantiateTemplate
2020-10-07 21:23:42 -04:00
toasted-nutbread
cb1902eadd
Template handler update ( #896 )
...
* Rename TemplateHandler to HtmlTemplateCollection
* Rename _templateHandler to _templates
* Allow creation from both string and element
* Simplify setup of templates, don't throw errors on invalid ID
2020-10-07 20:47:44 -04:00