* upgrade to Next 9.5
* move redirects to next.config.js
* move X-Frame-Options header on next.config.js
* make Billing an anonymous fn
* move additional headers to next.config.js
* add redirect tests
* add security headers test
* feat: add 'width' option for Carbon container
* feat: draggable width adjustment
* chore: auto disable widthAdjustment when edge starts dragging
* remove label width default; tweak settings style
* use only right width handler
* use react effects, add a11y role and props
* clean up code
* use clamp fn
* move max and min widths out of state
* give WidthHandler a display name
* tweak variable names
Co-authored-by: Mike Fix <mrfix84@gmail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add WIndows style window controls
* Add Windows style controls preview (needs work)
* Add Windows control style to settings menu
* tweaks
* add boxy windows theme
* refactor windows theme logic a bit
Co-authored-by: spikespaz <spikespaz@outlook.com>
* move copy actions to a new menu
* clean up copy menu
* clean up export menu
* move flex into reset styles
* use real ellipses
* fix copy menu id and classNames
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* From 768px to 920px, toolbar overflows container, shifted media query at max-width of 920px
* min-width of main content is larger than viewport, causing overflow
* main page has scrollbars even though all content visually is within viewport, removed/lessened margin on main and body
* On Firefox, the items inside toolbar second row would not match to container's height, thus would be smaller. 'flex: 1' applys flex growth, but sets the initial size of item to 0%. flex basis needs to be added as auto to fit the parent's main size property.
Co-authored-by: Michael Fix <mrfix84@gmail.com>
* The first preset is always selected(highlighted/cursor “not allowed”). In presets file, selected is based on the value of property preset from the default settings object. All preset objects do not have this property but have id instead, since default settings has property preset, all the presets inherit the same property preset, which is why the first preset was always highlighted. Fixed by replacing key name preset to id in default settings.
* removed id key from default settings
* preset is no longer a key in default settings
Co-authored-by: Michael Fix <mrfix84@gmail.com>
* Make the editorRef as a required parameter of useGutterClickHandler
For the external line number selection it is required that we access the CodeMirror editor anywhere in the hook
* Refactor the line highlight logic to handle "unknown" lines as non-selected
Only execute the highlight when there is a valid selection (there are some keys set in state.selected)
Additionally also execute the highlight logic when the line numbers are not visible (E.g. line.gutter is falsy)
* Pass in the selectedLines from the query string and implement the pre-selection logic
* Rename useGutterClickHandler to better explain its function
* Adding nemesv as contributor
* quick tweak
* tweak
* make toolbar fit window on mobile
* don't prefetch /about
* improve /about page
* fix layout for /account and /snippets
* fix img on /about mobile
* unneeded change