toasted-nutbread
da1e1e5c5b
Sentence parsing options ( #1214 )
...
* Rename options.anki.sentenceExt to options.sentenceParsing.scanExtent
* Create sentence parsing icon
* Create new sentence parsing section
2021-01-09 21:25:04 -05:00
toasted-nutbread
d698911bc9
Refactor sentence scanning ( #1213 )
...
* Update tests
* Update extractSentence implementation
* Remove old extractSentence implementation
* Optimize maps/sets
2021-01-09 19:02:51 -05:00
toasted-nutbread
11e9eb2295
Add links to settings v2 headings ( #1212 )
2021-01-09 16:39:30 -05:00
toasted-nutbread
67d21d4988
Use ruby tag for frequency disambiguation ( #1211 )
2021-01-09 16:07:47 -05:00
toasted-nutbread
5b58a9aeef
Update term tags display and fix a layout issue ( #1208 )
...
* Fix layout issue with term expression display
* Update display of term tags
* Update tag notification to include disambiguation information
2021-01-09 16:02:03 -05:00
toasted-nutbread
06d23f59d8
Improve frequency display ( #1209 )
...
* Disable old frequencies
* Update layout
* Implement new frequency display
* Update count info
2021-01-09 10:41:17 -05:00
toasted-nutbread
b20622b2c8
Core refactor ( #1207 )
...
* Copy set intersection functions
* Remove unused functions
* Simplify url check
* Remove parseUrl
* Simplify stringReverse
* Remove hasOwn due to infrequent use
* Rename errorToJson/jsonToError to de/serializeError
For clarity on intended use.
* Fix time argument on timeout
* Add missing return value
* Throw an error for unexpected argument values
* Add documentation comments
2021-01-07 21:36:20 -05:00
toasted-nutbread
7d706df66b
Update DictionaryDataUtil to be able to be used in a sandbox frame ( #1206 )
2021-01-07 20:24:22 -05:00
toasted-nutbread
3760b22a25
Fix AnkiCardController using stale data ( #1204 )
2021-01-06 18:16:51 -05:00
toasted-nutbread
8c92c1cbc2
Refactor anki note generation ( #1202 )
...
* Create _injectAnkiNoteMedia function
* Remove unused code path
* Simplify modeOptions
2021-01-03 19:40:12 -05:00
toasted-nutbread
63971776a5
CSS lint ( #1201 )
...
* Use single quotes instead of double
* Install stylelint
* Set up config
* Update package/tests
* Fix lint issues
* Update CSS rules
2021-01-03 15:30:38 -05:00
toasted-nutbread
d50d7a4a3a
Update permissions pages with info about MV3 permissions ( #1200 )
2021-01-03 15:29:29 -05:00
toasted-nutbread
8e304b83c6
Translator regex replacements ( #1199 )
...
* Add support for regex replacements during the translation process
* Allow assignment of textReplacements
* Rename
* Set up test data
* Write expected data
* Set up options
* Prevent infinite loop if regex matches empty string
* Implement setting controller
* Add support for testing pattern replacements
2021-01-03 12:12:55 -05:00
toasted-nutbread
eda8534e19
Group templates near their relevant modal definitions ( #1198 )
2021-01-02 20:30:11 -05:00
toasted-nutbread
41f6de3e3a
Simplify collapseEmphaticOptions options ( #1196 )
2021-01-01 23:16:44 -05:00
toasted-nutbread
a02891e52c
Update copyright year ( #1194 )
...
* Update copyright year
* Remove redundant Author info
2021-01-01 14:50:41 -05:00
toasted-nutbread
41e8f056cc
Update version
2020-12-31 17:42:37 -05:00
toasted-nutbread
f808e6acde
Improve contrast of dark theme tag text color ( #1192 )
2020-12-31 17:26:10 -05:00
toasted-nutbread
369e4e40f4
Fix kanji selection area being on top of tags ( #1191 )
2020-12-31 15:07:45 -05:00
toasted-nutbread
155b2b27f6
Fix some issues with the display layout ( #1190 )
2020-12-31 14:58:48 -05:00
toasted-nutbread
889240311b
Improve tag scanning behaviour ( #1189 )
...
* Update include/exclude selectors for Display._definitionTextScanner
* Fix missing condition
2020-12-31 14:21:50 -05:00
toasted-nutbread
1b4ba1fb00
Simplify glossary layout setting ( #1188 )
...
* Add conditionalConvert transform
* Convert glossaryLayoutMode option to a toggle
2020-12-31 13:38:51 -05:00
toasted-nutbread
1ac4e979e4
Improve settings transforms ( #1187 )
2020-12-31 13:10:23 -05:00
toasted-nutbread
6c46afedf7
Fix incorrect body height on pitch accents preview page ( #1186 )
2020-12-31 11:16:50 -05:00
toasted-nutbread
32f233acfd
Fix display notification close button style ( #1185 )
2020-12-30 23:00:52 -05:00
toasted-nutbread
4650f0b542
Translator frequency data improvements ( #1184 )
...
* Specify if a frequency has a specific reading
* Make frequency data creation more standardized
* Update test data
2020-12-30 15:12:08 -05:00
toasted-nutbread
0f3b9ec7fc
Fix overlay panel animations for different action bar locations ( #1183 )
2020-12-30 13:49:48 -05:00
toasted-nutbread
9f2da58bfd
Simplify CSS rule ( #1182 )
2020-12-30 13:35:25 -05:00
toasted-nutbread
a8454568b1
Improve wrapping layout for small resolutions ( #1181 )
2020-12-30 13:32:41 -05:00
toasted-nutbread
973dfc581a
Improve location of Anki error message ( #1180 )
2020-12-30 12:39:33 -05:00
toasted-nutbread
4d76356c2b
Add section heading comments ( #1179 )
2020-12-30 11:42:10 -05:00
toasted-nutbread
ad90bad057
Display profile panel ( #1178 )
...
* Expose Display.displayGenerator
* Update search when assigning options context
* Don't clear selection unless the popup changes
* Merge search styles
* Create panel for changing the profile
2020-12-29 23:38:44 -05:00
toasted-nutbread
ae36cccc36
Fix button styles for action bar buttons ( #1177 )
...
* Fix button styles for action bar buttons
* Fix button colors
2020-12-29 22:22:56 -05:00
toasted-nutbread
38709e2191
Fix various issues with some styles ( #1176 )
2020-12-29 21:52:04 -05:00
toasted-nutbread
773d67e75a
Split material css ( #1175 )
...
* Separate material styles into a separate file
* Improve action button styles
* Rename --font-size-default to --font-size
* Remove px units
* Remove some material vars
* Fix some variable names
* Define variables
* Remove --shadow-vertical
* Revert name change
* Move var
* Rename var
* Update vars
* Remove redundant vars
* Update search styles
* Update styles
* Update colors
* Update variable names
* Include material.css on float.html page
2020-12-29 21:33:57 -05:00
toasted-nutbread
a23c94fb02
Fix modals not being hidden by default on the welcome page ( #1174 )
2020-12-29 14:29:24 -05:00
toasted-nutbread
2cd429fdfd
Rename PopupElement to PanelElement; split classes into separate files ( #1173 )
2020-12-29 00:06:51 -05:00
toasted-nutbread
5c970fc404
Remove top link code ( #1172 )
2020-12-28 23:06:53 -05:00
toasted-nutbread
524c0b2b20
Improve element hiding ( #1171 )
...
* Use multi-line definition for transition
* Update how PopupElement visibility is controlled
2020-12-28 23:00:03 -05:00
toasted-nutbread
cb8015faed
Improve crispness of icons used on settings v2 page ( #1170 )
2020-12-28 22:57:17 -05:00
toasted-nutbread
49be22210d
Remove "Top" link from settings v2 page ( #1169 )
2020-12-28 22:55:42 -05:00
toasted-nutbread
7536f1df25
Change global.useSettingsV2 default value to true ( #1168 )
2020-12-28 22:54:12 -05:00
toasted-nutbread
b6038c87b6
Improve document focus control ( #1167 )
...
* Improve styles for #content-scroll-focus
* Create new class to manage and control document focus
* Use new focus class
* Add a check to prevent redundant .blur calls
2020-12-28 17:41:59 -05:00
toasted-nutbread
c03340c4aa
Change popupCurrentIndicatorMode default to triangle ( #1161 )
2020-12-22 18:22:14 -05:00
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
bb902c76e8
Move scanning options higher up ( #1159 )
2020-12-22 17:14:47 -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
b083e9f08f
Fix missing data-setting target for scanning.enablePopupSearch ( #1156 )
2020-12-21 19:22:05 -05:00
toasted-nutbread
8203f11e89
Improve settings item button styles ( #1155 )
...
* Improve styles for settings-item-button
* Add hover/active styles to settings-item-button
* Use consistent phrasing for setting buttons and include ellipsis
2020-12-21 19:21:03 -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
abc017545c
Update the popup preview to always be visible on the settings v2 page ( #1151 )
2020-12-20 22:16:38 -05:00
toasted-nutbread
abfe066d7e
Fix description of scanning.autoHideResults setting ( #1150 )
2020-12-20 22:09:16 -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
8747a29f9f
Settings v2 headings improvements ( #1148 )
...
* Improve spacing on h2
* Add icons to headings
* Clarify font-size
2020-12-20 16:03:07 -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
4f6309842f
Dictionary display updates ( #1146 )
...
* Display dictionary-list as flex
* Move styles
* Move enabled toggle
* Update details
* Disable sorting based on priority
* Update styles
* Update title color when disabled
* Update display style of secondary search dictionaries
2020-12-20 13:59:30 -05:00
toasted-nutbread
7dd06e1a64
Indicate if first Anki card field is invalid ( #1145 )
...
* Add AnkiNoteBuilder.containsAnyMarker
* Flag first field as invalid when there is no marker
2020-12-20 12:20:29 -05:00
toasted-nutbread
113e3b68b8
Improve styles for invalid inputs ( #1143 )
2020-12-20 11:27:05 -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
af9b4d2b93
Update termTags for termGrouped mode to include all definition tags ( #1138 )
...
* Update termTags for termGrouped mode to include all definition tags
* Update tests
2020-12-19 16:47:32 -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
2fa9b91515
Add support for using declarativeNetRequest ( #1127 )
2020-12-18 17:18:00 -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
9beb659b17
Manifest version CSS rules ( #1126 )
...
* Add CSS rules for hiding content based on manifest version
* Organize other rules
2020-12-18 17:00:34 -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
5d8ac70395
Display an indication when Anki field order/existence doesn't match ( #1119 )
2020-12-18 12:05:33 -05:00
toasted-nutbread
c728448a4d
Maximum clipboard search length ( #1118 )
...
* Add maximumClipboardSearchLength an option
* Add setting
* Add limits
* Update tests
2020-12-18 11:24:43 -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
c3e772fadc
Include permissions info in backup files ( #1116 )
2020-12-16 22:26:19 -05:00
toasted-nutbread
26dd0270d9
Create function to create a new DOM parser ( #1114 )
2020-12-14 23:05:04 -05:00
toasted-nutbread
7926821c48
Rename SimpleDOMParser to NativeSimpleDOMParser ( #1113 )
2020-12-14 22:56:38 -05:00
toasted-nutbread
e29c752793
Simplify URL normalization ( #1112 )
2020-12-14 22:39:03 -05:00
toasted-nutbread
96e68be0fa
Refactor tab creation to improve errors ( #1110 )
2020-12-13 16:09:11 -05:00
toasted-nutbread
05e213674c
Update content-security-policy to be more explicit ( #1109 )
2020-12-13 13:56:45 -05:00
toasted-nutbread
dabe5fa899
Update info ( #1108 )
...
* Show language
* Show extension manifest name + version
2020-12-13 12:46:36 -05:00
toasted-nutbread
14b9e0621b
Updated welcome page ( #1107 )
...
* Make storage controller optional
* Make more elements optional
* Update styles
* Create new welcome page
* Update URL for welcome guide
* Remove old guide
* Fix unused global
2020-12-13 12:32:43 -05:00
toasted-nutbread
5d2edda753
Fix storage stats update error during dictionary deletion ( #1106 )
2020-12-13 11:29:32 -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
92cfd31c0f
Fix global declarations check ( #1101 )
...
* Fix getSubstringCount not properly checking word boundaries
* Remove unused global declarations
2020-12-12 14:47:17 -05:00
toasted-nutbread
cb0699ecd4
Add initialization script for generic internal pages ( #1099 )
2020-12-12 12:38:21 -05:00
toasted-nutbread
e9027457ab
Add permissions page and documentation ( #1098 )
2020-12-12 12:35:56 -05:00
toasted-nutbread
ddb71af6bd
Add zuru deinflections ( #1091 )
...
* Update deinflector rule types
* Add deinflection rules for zuru verbs
* Add tests
2020-12-12 10:17:25 -05:00
toasted-nutbread
8192fdd63c
Update style of legal.html to match settings v2 ( #1092 )
2020-12-10 17:53:26 -05:00
toasted-nutbread
df9436bc3e
Add classic suru deinflections ( #1089 )
...
* Add classic suru deinflections
* Add tests
2020-12-08 22:39:06 -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
2be81cbb77
Update/test deinflector ( #1087 )
...
* Update formatting
* Add missing rule for progressive/perfect
* Add adnomial -ki rule
* Update rules for irregular verbs
* Organize rules by rulesOut
For the most part, the order is:
adj-i => v1 => v5 => vs => vk => other
* Add tests
2020-12-08 20:29:42 -05:00
toasted-nutbread
2910685a96
Database test updates ( #1086 )
...
* Remove unused
* Create DatabaseVM
* Update sequences in test dictionary
* Update documentation
* Add second valid testing dictionary
* Set up translator tests
* Write expected data
2020-12-08 20:27:36 -05:00
toasted-nutbread
0dc170e70b
Update version
2020-12-06 21:19:13 -05:00
toasted-nutbread
35fbc76df4
Settings v2 testing setup ( #1084 )
...
* Add option for using settings v2
* Add options/info about settings v2
* Use settings v2 URL when applicable
* Update tests
2020-12-06 21:17:05 -05:00