Commit Graph

672 Commits (d67b8dc832904728b33a81bb30aec8ff7444ac36)

Author SHA1 Message Date
Michael Fix 6125d3f0ac
Next 9.5 ()
* 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
Michael Fix 7adb50753e
use snippet name as filename ()
Mike Fix e432dadd8b
add EmailSubscribe component
Mike Fix 85569b67d2
fix tag highlighting for 'Night Owl' HTML mode
Closes 
Mike Fix 51aadbe945
update Carbon title
- Closes 
Michael Fix 0f8c55e9e2
Improve reset state ()
* add reset settings shortcut

* reset location too

* add integration test
Michael Fix e5ffd999f5
Maintenance: remove constructors ()
* use class functions instead of fn bind

* use class functions in ImagePicker
Michael Fix e765b54baa
read container width and height at copy time ()
Mike Fix a9b4c9597b
replace instance of withRouter with useRouter
Mike Fix b2912786a4
tweak
Michael Fix 280e359316
New spinner ()
* new spinner

* snipper component

* remove react-spinner

* undo unnecessary changes
Binyamin Aron Green 50b3c3bfd8
Window title extends over boxy controls ()
* Window title extends over boxy controls
Fixes 

* use static max width

Co-authored-by: Mike Fix <mrfix84@gmail.com>
Mike Fix 6e1b115c95
move mouse up listener to the window
Closes 
Peng Jie eaf70a9221
refactor(color-picker): drag the pointer smoothly ()
* refactor(color-picker): drag the pointer smoothly

* keep Color picker as Functional componentgd

Co-authored-by: Mike Fix <mrfix84@gmail.com>
aluc 41722923d5
add 'width' option for Carbon container ()
* 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>
Mike Fix c3f7781c62
remove 'new' from offsets
Mike Fix 2dd6614e38
BlackLivesMatter
Mike Fix 10fa1ce2ab
improve Window controls Settings
Mike Fix 7eca999f4e
disable transparent row in Twitter
Mike Fix 9da7fb2f4e
add explanatory comment
()
Mike Fix 58891ffcb1
improve error underline style ()
Mike Fix 4f05d0987a
clean up Editor class fns
Michael Fix fb917d01a9
Fix a11y dark embed ()
* fix a11y-dark embed bug

Closes 

* extract global highlights into a component
Michael Fix b4db340511
implement underline text as error ()
Mike Fix fcd5cee30b
sanitize export config values
Mike Fix a0b1e57d0c
tweak boxy theme
Michael Fix 7c778ed8a6
Boxy window theme ()
* 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>
Michael Fix a507b07dc3
Test Next public env vars ()
* test next public env vars

* make next.config.js smaller
Michael Fix 44f658bb69
Upgrade highlight.js ()
* upgrade highlight.js

* add latex highlighter
Michael Fix 419070e895
Snippets name input ()
* snippets name input

* set 'name' property

* code

* update snippet name in /snippets

* fix imports

* snippet name -> add a name
Mike Fix 5b630b2867
show Copied! message for images
Michael Fix bc649fa0aa
allow setting variable 2 and 3 in config ()
Mike Fix c8ede18608
disable announcement
Michael Fix ae9b4445f1
run prettier with new config ()
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Michael Fix 6ee68e46d2
Add quick export button next to the export menu ()
* quick export menu

* tweaks

* move #export-menu to button
Mike Fix 42994f1c0d
make export menu wider
Mike Fix e8df2da86f
fix codemirror 'nocursor' bug
Mike Fix 1acbdf0529
fix copy text from embed bug
Closes 
Michael Fix 3acbd9ef9c
New copy action menu ()
* 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>
Tymoteusz Makowski be2170a059
Added JetBrains Mono font. ()
Mike Fix 68d0f0c36b
fix selection style logic
Closes 
Mike Fix 942254b3a9
fix red color on small text
Mike Fix ba9a35e7ea
update announcement
Mike Fix 5d517593bb
remove sponsor link
Mike Fix e5b2348daf
new banner
Mike Fix b1b9038fbb
add offsets footer link
Michael Fix b4915060c5 fix text selection state ()
Michael Fix 622c8a7722
remove old unsplash photocredit if it is an exact match ()
Mike Fix 9beaaab7f7
fix cursor on mobile
Closes 
Technoknol ea8aa77223 PR for Enable copy image to clipboard export ()
* Enable copy image to clipboard export ()

* Add Contributor for Enable copy image to clipboard export ()

* () Check if ClipboardItem is function.

* update clipboard menu

* clean up getCarbonImage logic

* tweak

Co-authored-by: Michael Fix <mrfix84@gmail.com>
Mike Fix f43eda1214
improve usability of selection styling
Caleb Taylor 24323a9c95 Responsive carbon ()
* 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>
Mike Fix f53a9178f2
this always gets filtered
Caleb Taylor 660f148a19 Fixed first prefix always selected(hightlighted / cursor "not allowed") ()
* 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>
Mike Fix 7419c3c8f9
update location routing regex
Mike Fix e6853a0fc2
replace trailing slash from embed
- Closes 
Andrew Dassonville 31de1df62f Display login button on all pages ()
Mike Fix 40bf2160cd
move next head to /pages/account
Mike Fix d186958075
move stripe out of head
Mike Fix 24b685ae72 hide style editor on escape instead of removing selection
Mike Fix 5414683f85 remove old commented out code
Mike Fix 423e578acd render styling palette to toolbar
Mike Fix 71e6d44ab3 disregard selection position
Mike Fix 7da5054207 move selection editor palette
Mike Fix 8c906db3c5
clean up Carbon
Mike Fix 625bbd4773
clean up selected lines reducer
Mike Fix cc09b7f0a4
visually align Window settings
Michael Fix 9121359be6
restructure settings menu into Window, Editor, & Misc ()
Michael Fix 87ded86e5d
add escape listener to selection editor ()
Mike Fix 743d4eb468
remove pollInterval from Codemirror
Bakti Aditya f3bdaf4001 Display whitespace ()
* Display whitespace

resolve 

* Update

* Update Settings.js

* hiddenCharacters

* tweak

* clean up a bit
Michael Fix 4c85fffbc7 use constant colors ()
Mike Fix 71bcb254e9
fix input onChange for Toggle
Mike Fix b54f92c3aa
turn off announcement
Mike Fix 0ac845d285
move favicon and manifest.json out of /public/static
Viktor Nemes 191113aa5f Load selected lines from query params ()
* 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
Mike Fix 38027983b0
new announcement
Michael Fix d9e34cbf04 add loading state to export button ()
Mike Fix fc02b0ec11
fix this.exportImage
Mike Fix acf91b088a
export -> exportImage
Michael Fix 10cc6fdb93
Improve mobile UI ()
* 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
Mike Fix bd2c6aec2b tweak login button position
Mike Fix 8418a751d8 fix toast container position
Michael Fix 1090356c05 improve background select ()
Michael Fix 884e6c526c use checkbox input for toggle ()
Michael Fix 31b5b99598 Kbd elements in about ()
* WIP

* improve /about with keyboard shortcuts

* clean up about styles
Mike Fix e4da412d83 move to use meta and shift symbols to define keyboard listening
Mike Fix 43c00407f3 remove capitalize util
Michael Fix 68d8b3f2d7
remove use memo from settings ()
Mike Fix cc5c2ab94a add metakey / shortcut to open settings
Mike Fix 30b26bfc6a better header on mobile
Mike Fix 8b49b4de67 better outlining for preset list
Mike Fix f7f00a83cf span -> button in background image selector
Mike Fix 1f1dbade1d add color palette generation frontend (beta)
Mike Fix 799a92b5c5 better login button position
Mike Fix ea981b31fe turn off announcement
Mike Fix 0f26518d04 move login button dropdown to right
Michael Fix 5e55402c32 Move login button ()
* move login button

* reuse loginGitHub

* remove old comment
Michael Fix 3abed8be72 Old TODOs / PWA work ()
* old TODOs

* fix up old next-offline TODO

* undo changes

* add apple touch icon
Mike Fix 0ee3df5792 use window.pushState instead