152 Commits (a88f98ddfbba4138241f8374a8c2f7accf8995ff)

Author SHA1 Message Date
Mike Fix a88f98ddfb
inline this.state.fontFamily 3 years ago
Michael Fix 6fd6d99a80
remove safari edge cases (#1273) 3 years ago
Amit Keinan ecd8e631b7
Add export to imgur (#1158)
* add button and functionality

* Create a share menu and for twitter and imgur

* follow 'tweet' patterns

* remove unused carbonRef prop

* remove unused exportImgur

* share menu

* remove Share SVG

* combine tweet and imgur button components

* delete unused tweet and imgur button components

* remove options.filename

* onClickImgur

* change to async await to fix loading state

* NEXT_PUBLIC_IMGUR_CLIENT_ID

* return promise to fix loading state (remove async/await)

Co-authored-by: Mike Fix <mrfix84@gmail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
4 years ago
Mike Fix ba149c2b65
simplify isSafari isFirefox 4 years ago
Michael Fix cd7c6eb5c5
Clean up getCarbonImage (#1126)
* clean up getCarbonImage

* remove createObjectURL change

* bug fixes

* refactor getCarbonImage to use blobs/dataURLs only

* add console.error for copy to clipboard failures

* use blob.type for ClipboardItem

* add TODO
4 years ago
Michael Fix 361d170f7e
remove transparent row (#1084) 4 years ago
Michael Fix 1e14c1b9bf
Local dom-to-image (#1083)
* create local copy of dom-to-image

* use local copy of dom-to-image

* comment out hacks

* remove superfluous argument passed
4 years ago
Mike Fix f934296b93
clean up getCarbonImage a bit 4 years ago
Quinn Blenkinsop 57657eadd0
Preserve syntax highlighting when exporting png that contains %XX (#1069) 4 years ago
Michael Fix 7adb50753e
use snippet name as filename (#1051) 4 years ago
Michael Fix e5ffd999f5
Maintenance: remove constructors (#1040)
* use class functions instead of fn bind

* use class functions in ImagePicker
5 years ago
Michael Fix e765b54baa
read container width and height at copy time (#1041) 5 years ago
aluc 41722923d5
add 'width' option for Carbon container (#949)
* 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>
5 years ago
Mike Fix 4f05d0987a
clean up Editor class fns 5 years ago
Michael Fix 419070e895
Snippets name input (#992)
* snippets name input

* set 'name' property

* code

* update snippet name in /snippets

* fix imports

* snippet name -> add a name
5 years ago
Michael Fix ae9b4445f1
run prettier with new config (#983)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
5 years ago
Michael Fix 3acbd9ef9c
New copy action menu (#970)
* 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>
5 years ago
Michael Fix 622c8a7722
remove old unsplash photocredit if it is an exact match (#947) 5 years ago
Technoknol ea8aa77223 PR for Enable copy image to clipboard export #921 (#940)
* Enable copy image to clipboard export (#921)

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

* (#921) Check if ClipboardItem is function.

* update clipboard menu

* clean up getCarbonImage logic

* tweak

Co-authored-by: Michael Fix <mrfix84@gmail.com>
5 years ago
Mike Fix f43eda1214
improve usability of selection styling 5 years ago
Caleb Taylor 24323a9c95 Responsive carbon (#925)
* 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>
5 years ago
Caleb Taylor 660f148a19 Fixed first prefix always selected(hightlighted / cursor "not allowed") (#922)
* 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>
5 years ago
Mike Fix 423e578acd render styling palette to toolbar 5 years ago
Mike Fix fc02b0ec11
fix this.exportImage 5 years ago
Mike Fix acf91b088a
export -> exportImage 5 years ago
Michael Fix 10cc6fdb93
Improve mobile UI (#875)
* 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
5 years ago
Mike Fix 1f1dbade1d add color palette generation frontend (beta) 5 years ago
Michael Fix 5e55402c32 Move login button (#867)
* move login button

* reuse loginGitHub

* remove old comment
5 years ago
Michael Fix 3abed8be72 Old TODOs / PWA work (#866)
* old TODOs

* fix up old next-offline TODO

* undo changes

* add apple touch icon
5 years ago
Mike Fix 365d900445 eliminate CodeMirror cursors on save 5 years ago
Michael Fix e0ed4bebdc Merge in 4.0.0 (#850)
* merge in 4.0

* dev mode with firebase impl

* useReducer for toasts state
5 years ago
Michael Fix ecaf48b30c
Bundle size (#844)
* just load SketchPicker

* remove colornames package

* load other highlight.js modes lazily

* add bundle analyzer hook

* only load modes once per session

* fix up modes loaded

* fix up
5 years ago
Michael Fix 552a9c99be
Store Unsplash background image not dataturl (#836)
* store background image, not background selection in presets

* move localStorage into save utils

* curry omit util fn

* clean up manual image upload by URL

* refactor image changes

* separate uploadImage from selectImage

* upgrade visual regression testing tests

* add TODOs
5 years ago
Mike Fix ff26f0f624 move @font-face into function component 5 years ago
Michael Fix 12001bd64a fix encoding again (#823) 5 years ago
Michael Fix ddc611a6f9 Refactor preset state (#822)
* refactor preset state

* remove unnecessary constant
5 years ago
Michael Fix ae35f83d5f
only include tranparent row on Twitter upload (#797) 6 years ago
Michael Fix a58a860332 fix firefox open export (#786) 6 years ago
Michael Fix 94b30c3c36
A11y improvements (#755)
* improve screen reading for menu values

* clean up Drop down component

* typo
6 years ago
Mike Fix 29072fce92 fix issue from encoding breaking html highlighting after save
Closes #749
6 years ago
Mike Fix f5f53f17d6 fix bug that occurs when escape is hit on dropdowns 6 years ago
Mike Fix 011f25dc4f bug fix for creating custom themes 6 years ago
raboid 796e8f8b33 add applyPreset back 6 years ago
raboid e0a650b021 close settings dialog on font upload 6 years ago
Mike Fix 3826344a7b fix accidental deletion 6 years ago
Mike Fix 3540124819 bug fix for /embed/<gist> 6 years ago
Mike Fix ffbf512a38 clean up theme config derivation 6 years ago
Mike Fix 1994c820ea fix light theme in Carbon by introducing getTheme 6 years ago
Mike Fix dff5013edd move editor container into its own component 6 years ago
Mike Fix 47c30c1b7f fix up custom theme name input 6 years ago