168 Commits (bfd157e9dfada1d058e8cbbf95884af3cdace597)

Author SHA1 Message Date
baruchadi b91d81cb99 Fix exported image cut off - Safari 2 years ago
Mike Fix 5f752c28e8
undo some changes 2 years ago
Mike Fix 4f4a3837ce
bugfix width handler 2 years ago
Mike Fix 3f6b14de9b
refactor widthhandler a bit 2 years ago
Mike Fix c61da03d86
extract widthhandler as prop 2 years ago
Mike Fix bd8cb2a66e
confirm width state on mouse up 2 years ago
Mike Fix f0cb962933 implement titleBar query support 2 years ago
Mike Fix bab13b044a clear highlight state on theme selector change 3 years ago
Mike Fix 6df5e126bd
defensive toasts
Closes #1376
3 years ago
Mike Fix 2c90a8fb85
fix snippet toolbar logicgs 3 years ago
Mike Fix 859abfe369
fix snippet toolbar logic 3 years ago
Mike Fix 26d1f95acf implement save button 3 years ago
Mike Fix 95f0f23190
fix settings buttons on mobile 3 years ago
hatsu 3da8262e10
Responsive for mobile (#1331)
* style(Page.js): Add max-width to .page class

* style(Editor.js): Make buttons vertically aligned when on mobile

* style: Fix Button width for mobile

* style(Popout.js): Add z-index

* refactor(Editor.js): .buttons->.share-buttons
3 years ago
Mike Fix b78520c90d
Consolidate type and format into one param (#1286)
* Consolidate type and format into one param

Closes #1274

* bug fix Open button

* update filename bug
3 years ago
Mike Fix c3a7ad5d0f
inline isFirefox 3 years ago
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
4 years ago
Michael Fix e765b54baa
read container width and height at copy time (#1041) 4 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