toasted-nutbread
d0adf2ca15
Add window settings ( #1160 )
...
* Add window icon
* Move some options to a new "Window" section
2020-12-22 18:18:30 -05:00
toasted-nutbread
a354becd51
Furigana distribution improvements ( #1157 )
...
* Improve furigana when reading kana is not an exact match
* Simplify group structure
* Return consistent type
* Add more tests
* Remove redundant isAmbiguous assignment
* Simplify group usage
* Add helper function
* Optimize returned arrays
* Use variable
* Remove s(p)lice calls
* Reduce number of convertKatakanaToHiragana calls
* Optimize text length access
* Optimize reading substring
* Move segmentize to a separate function
* Use var
* Use _createFuriganaSegment
* Optimize distributeFuriganaInflected
2020-12-22 11:02:19 -05:00
toasted-nutbread
18043babeb
Improve query parser scanning ( #1154 )
...
* Improve how the search page updates after settings have changed
* Always update the history on the first scan of the query parser
2020-12-21 19:19:59 -05:00
toasted-nutbread
9dd2a9c98e
Fix Display._definitionTextScanner not ignoring certain elements ( #1153 )
2020-12-21 19:18:39 -05:00
toasted-nutbread
3ef1b9ebb2
Settings v2 modal size toggle ( #1149 )
...
* Add collapse/expand icons
* Update header layout
* Allow size animation
* Add styles for modal header buttons
* Support action buttons
* Update modals to support size changing
2020-12-20 19:59:39 -05:00
toasted-nutbread
f5ae0f1f3d
Settings v2 icon improvements ( #1147 )
...
* Update navigation icons
* Improve outline layout, fixing badge indicators
* Change attribute value
* Update icon buttons
* Update settings page
2020-12-20 15:43:10 -05:00
toasted-nutbread
6d7eefa9df
Fix triangle indicator for kanji ( #1141 )
2020-12-19 20:16:45 -05:00
toasted-nutbread
443d6d1956
Popup action bar options ( #1140 )
...
* Add options for action bar visibility and location
* Add settings
* Update styles
* Expose properties
* Update styles
* Update tests
2020-12-19 20:07:55 -05:00
toasted-nutbread
8454431cdb
Improve the accent color for the dark theme ( #1139 )
2020-12-19 18:51:44 -05:00
toasted-nutbread
bef8612665
Focus the current entry earlier in the generation process ( #1137 )
2020-12-19 16:00:47 -05:00
toasted-nutbread
d42b95a9c0
Disable indicator transitions when not in use ( #1136 )
2020-12-19 15:57:20 -05:00
toasted-nutbread
1b1b24ab35
Entry indicator update ( #1134 )
...
* Move entry current indicator rules
* Simplify rules
* Add popupCurrentIndicatorMode option
* Add option to settings page
* Expose popupCurrentIndicatorMode
* Restore asterisk current indicator
* Implement dot
* Update action button vars
* Fix tests
* Add none option
* Add triangle option
2020-12-19 15:42:44 -05:00
toasted-nutbread
dcb75cce1e
Fix invalid CSS :not selector causing frequency tags to display twice ( #1135 )
2020-12-19 14:52:41 -05:00
toasted-nutbread
5021ed9f83
Fix incorrect naming of --entry-current-indicator variable ( #1133 )
2020-12-19 10:58:02 -05:00
toasted-nutbread
16cea2e2bb
Fixed terms being colored when not using merged mode ( #1132 )
2020-12-19 10:54:50 -05:00
toasted-nutbread
05d4049f16
DOMParser replacement ( #561 )
...
* Add script to build library files
* Add built parse5 library
* Add new SimpleDOMParser which uses parse5
* Update license info
* Update MV3 build to use the new SimpleDOMParser
* Update file exclusions
* Hide/clarify license info for MV2 builds
2020-12-18 17:06:30 -05:00
toasted-nutbread
51223abfa6
Set up initial manifest v3 support ( #605 )
2020-12-18 15:54:05 -05:00
toasted-nutbread
194359f4ec
Simplify _getUrl function ( #1121 )
2020-12-18 13:35:20 -05:00
toasted-nutbread
f28fe33cae
Change the resizer color when the window is being resized ( #1120 )
2020-12-18 12:06:39 -05:00
toasted-nutbread
bf34905012
Improve display tags ( #1117 )
...
* Update tag style
* Add styles/HTML for notifications
* Add DisplayNotification class
* Add support for tag notifications
* Simplify notification content
2020-12-18 09:43:54 -05:00
toasted-nutbread
48b8041800
Fix incorrect page type condition causing incorrect document title ( #1105 )
2020-12-13 10:33:47 -05:00
toasted-nutbread
5948229176
Add info page ( #1102 )
...
* Add api.getAnkiConnectVersion
* Enable basic functionality when certain features/elements aren't present
* Add info page
* Update information links
* Update info link on the settings v2 page
2020-12-12 14:57:24 -05:00
toasted-nutbread
125c296eed
Support frame resize on firefox ( #1088 )
...
* Add popup functions for getting/setting the frame size
* Add frontend functions for getting/setting popup frame size
* Expose display mode attribute on display HTML
* Disable resizer on iframe
* Add custom frame resizer handle
* Add support for custom frame resizer
2020-12-08 20:31:02 -05:00
toasted-nutbread
f89f9d777f
Use expression as reading if reading is blank ( #1083 )
2020-12-05 21:30:51 -05:00
toasted-nutbread
cd19be8954
Fix disambiguation text color ( #1082 )
2020-12-05 21:17:42 -05:00
toasted-nutbread
0fc8578dee
Fix pitch accent info gathering using new data format ( #1081 )
2020-12-05 21:16:24 -05:00
toasted-nutbread
95b225462a
Fix frequency tags ( #1080 )
...
* Rename term-frequency to tag-frequency
* Move tag styles
* Expand
* Use separate templates for terms vs kanji
2020-12-05 17:45:45 -05:00
toasted-nutbread
ff6ebdab88
Update compact layout ( #1077 )
2020-11-29 19:45:47 -05:00
toasted-nutbread
34451ebf71
JapaneseUtil normalization ( #1076 )
...
* Use JapaneseUtil as a class which is manually instantiated
* Use alias function for toKana
2020-11-29 13:09:02 -05:00
toasted-nutbread
008ffdb6bf
Frequencies marker ( #1074 )
...
* Update japanese.js tests
* Simplify fallback/early exit
* Add overloads to furigana and furiganaPlain handlebars helper functions
* Expose unique expression/reading arrays (and subsequently counts)
* Add {frequencies} marker
2020-11-28 14:30:50 -05:00
toasted-nutbread
94d63f4f87
Display style updates ( #1072 )
...
* Add variables for tag styles
* Add variable for compact list separator
* Improve compactness of pitch accents
* Improve kanji link styles
* Improve coloring for lists
* Move styles
* Update styles for lists
* Move conditional styles
* Simplify definitions
* Remove unused styles
* Cleanup
* Use strings for dataset properties
* Don't always collapse pitch accents
2020-11-27 15:22:06 -05:00
toasted-nutbread
8449322e1c
Fix kanji note creation ( #1069 )
...
* Fix kanji note creation
* Move try/catch for consistency
* Move audio normalization
2020-11-26 22:53:58 -05:00
toasted-nutbread
3f7c76dbc7
Yomichan popup styles refactor ( #1067 )
...
* Rename classes yomichan-float to yomichan-popup
* Use attributes instead of classes
* Refactor
* Update popup outer scaling
* Update outer theme usage
* Move client.css to popup-outer.css in /mixed
2020-11-26 14:13:53 -05:00
toasted-nutbread
92e9f69c80
Popup style updates ( #1066 )
...
* Replace compactGlossaries option with new glossaryLayoutMode option
* Update attributes
* Update attributes
* Update color definitions
* Fix default theme scrollbar
2020-11-25 23:22:05 -05:00
toasted-nutbread
c6c4631817
Display button improvements ( #1065 )
...
* Use hidden and disabled properties instead of custom classes
* Enable transitions on buttons
2020-11-25 12:39:09 -05:00
toasted-nutbread
f7d1d2deb5
Add plus-circle icons ( #1064 )
2020-11-25 11:56:57 -05:00
toasted-nutbread
8677fb5579
Display style updates ( #1062 )
...
* Change condition for scrollbar theme
* Fix expression colors
* Update colors
2020-11-24 19:56:42 -05:00
toasted-nutbread
02d9f7c736
Improve html templates ( #1061 )
...
* Add template pre-processing
* Remove whitespace
* Add labels
* Reuse tag template for search tags
* Add space
2020-11-24 19:06:29 -05:00
toasted-nutbread
0b00de3c0f
Frequency display improvements ( #1060 )
...
* Hide redundant frequencies
* Add dataset counters for unique expressions/readings
* Update frequency display to include disambiguations
2020-11-24 11:56:40 -05:00
toasted-nutbread
de299c64ae
Display updates ( #1057 )
...
* Fix history assignment on the search page
* Use clear instead of assigned
* Simplify definitions assignment
* Organize
* Fix query not being cleared
* Fix media loading
* Fix potential issue with options not being assigned
* Catch error when frameId is null, causing infinite loop
* Fix frontend construction parameters
2020-11-24 11:54:08 -05:00
toasted-nutbread
068b1eef71
Text scanner improvements ( #1056 )
...
* Only ignore nodes on non-web pages
* Fix issue where options might not be assigned on nested frontends
* Refactor default TextScanner options
* Add option to enable search only on click
* Simplify restore state assignment
* Update options context passing
* Fix empty title
* Use TextScanner to scan content inside of Display
* Rename ignoreNodes to excludeSelector(s)
* Fix options update incorrectly triggering a re-search
* Fix copy throwing an error on the search page
* Replace _onSearchQueryUpdated with _search
* Use include selector instead of exclude selector
2020-11-23 20:31:48 -05:00
toasted-nutbread
12e5cec99c
Display updates ( #1055 )
...
* Fix title assignment
* Add event listeners as entries are being added
* Focus entry when clicked
2020-11-23 17:43:17 -05:00
toasted-nutbread
01ff7436ee
Popup setup refactoring ( #1054 )
...
* Pass childrenSupported as a parameter to Frontend/Popup constructors
* Remove setChildrenSupported
* Use event listener instead of function override
* Update options order
* Expand options and use object for clarity
* Fix childrenSupported not being fully propagated
2020-11-23 15:23:47 -05:00
toasted-nutbread
2971f262f9
Merge float into display ( #1053 )
...
* Update audio play delay
* Move frame endpoint to Display
* Move _invokeOwner and close implementation
* Move browser info assignment
* Move window message handler setup
* Move copy implementation
* Move document title function
* Move extension unload handler
* Move close handler
* Move history event handlers
* Remove DisplayFloat
* Remove unused
* Organize
* Move event listeners into prepare
2020-11-22 15:29:51 -05:00
toasted-nutbread
7234cce4ae
Refactor nested popup/frontend setup ( #1052 )
2020-11-22 11:19:21 -05:00
toasted-nutbread
7b6a4c4e36
More display updates ( #1050 )
...
* Use grid for layout
* Add data-count attribute
* Fix scroll issues during focus
* Add index to entries
* Simplify audio playback
2020-11-21 21:17:39 -05:00
toasted-nutbread
af33fff6fb
Fix cloze not using the raw source ( #1049 )
2020-11-21 11:31:11 -05:00
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
b0a5650625
Update selection indicator ( #1044 )
...
* Add new current indicator
* Remove old indicator
2020-11-19 18:34:41 -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