Commit Graph

27 Commits (fdba6790c5418061aeb5caa8f16430c72dc12638)

Author SHA1 Message Date
Sean a1e05af5c0 Custom themes ()
* Custom themes

* Fix theme selection

* fixes and add more theme highlights

* Fix remove bug

* change create button hoverBackground

* change id format

* fixes

* remove default highlights, style tweaks

* move consturctor to componentDidMount, create constants

* simplify color picker style api'

* replace notAllowed with disabled

* remove itemWrapperProps from Dropdown

* create itemWrapper class prop

* remove onClose from Dropdown

* fix ColorPicker and font sizes

* increase specificity of selector
Mike Fix f45d133d3c remove verifyPayloadSize from util
Mike Fix dbde17a65f reduce imports and exports
raboid 3aec3ebc28 Conditionally disable PNG export for Safari
Mike Fix 642749a701 use escape-goat
raboid 583e4ece73 Update BackgroundSelect to use Popout & ColorPicker
Mike Fix b5a1052b40 remove unused utils, move specific utils into component files
Mike Fix 33c2929897 must use CARBON_STATE for settings in local storage
Sean f6f0adee6b Add preset feature ()
* Add preset feature without create

* fix lint errors

* Add presets to Editor state

* add remove, update -> apply, omit presets

* replace name with index, add undo functionality

* fix reduce function

* Tweaks:

- Make remove filter setState atomic
- Remove broken sCU in BackgroundSelect
- Touch up style of arrow functions a little
- Remove titleBar from default settings
- Don't expose SETTINGS_KEYS
- Use hasOwnProperty instead of includes()

* refactor preset state into Settings

* move format code into editor and make it work again

* omit custom in applyPreset

* move presets array state into Settings

* keep custom sCU in BackgroundSelect

* pull out inline objects

* revert pages/index

* increase Presets font-size, remove margin-top

* Add ability to create presets

* also enable passing exportSize as prop

* move selectedPreset back into Settings (my bad Sean)

* replace splice with filter, getSavedX -> getX

* Revert "move selectedPreset back into Settings (my bad Sean)"

This reverts commit ae5da4700ea36ad7c31e697e83a2724be4b448f4.

* make sure background updates remove selected preset

* selectedPreset -> preset

* use onChange instead of selectPreset

* use preset id's instead of indexes

* bug fixes

* use disabled instead of pointer-events

* make .settings-presets-applied flex 💪

* make .settings-presets-arrow flex 💪

* move getPresets outside of `setState`

* move inline styles to style tag

* refactor using omitBy and isFunction

* remove lodash.isfunction

* fix applyPreset to disclude preset field

* move omit to getSettingsFromProps

* replace lodash.omit with omitBy solution

* .includes -> .indexOf

* add default preset and presetApplied state

* fix lint error

* remove presetApplied

* add more default presets

* fix default preset functionality

* tweaks

* preserve preset list scrollLeft b/w updates with a hack

* Use ref for preset content

* remove forwardRef
Michael Fix 6c9a09e522
Clean up () (patch)
* clean up things

* introduce toggle fn

* remove constructor from Collapse (ignore)

* prettier (ignore)

* make Collapse a PureComponent (ignore)

* give ExportSizeSelect a display name (ignore)

* give ThemeSelect a display name (ignore)

* Toggle: displayName, PureComponent, remove constructor (ignore)

* Meta and Slider display names (ignore)

* remove ThemeSelect constructor (ignore)

* fix lint-staged, prettier
Mike Fix 20f9b5aa82 decoding from local storage bug fix
Mike Fix 0441205217 decode language html correctly
Michael Fix 0d2f2f4444
Code split and load prettier dynamically ()
* code split and load prettier dynamically;

* move prettier to dependencies
Farzad YZ 1747534921 WIP: integration with prettier ()
* add basic format with basic parser

* remove format loading

* change formatCode to be sync

* prettier adjustments

* prettier our code

* move prettify into settings menu
Mike Fix d0b02d53a5 Reuse escapeHtml
Michael Fix 2a52d101e7
Fix spinner position ()
Michael Fix 3bbb98a3a2
Revert "Refactor state components ()" ()
This reverts commit 0a59db56c8.
Michael Fix 0a59db56c8
Refactor state components ()
* WIP: Unstated works

* WIP: extract into its own file

* Container instance

* Remove unused variables

* Move toolbar children into Toolbar

* Extract our Coder interface

* Remove top level subscription

* Bug fix

* WIP

* Remove old dependencies

* Add import eslint plugin

* Rename components

- add createRef TODO [ ]

* Bug fixes

* Rename Coder -> CodeWindow

* Address comments

- Rename to variable
- Rename onDrop from Editor containers perspective

* More variable renaming
Michael Fix 5a4cdd7d7f
Lint and fix issues, don't add linting yet though ()
* Lint and fix issue, don't add linting yet though

* Clean up

* Remove /about href
Jake Dexheimer f79d01ad9b Add RandomImage component
Mike Fix abb0948324 Fix escape error
Mike Fix bb4eb1ed9a XSS localStorage
Jake Dexheimer cbc6824b83 Background image settings ()
* Implement drag-n-drop image for backgrounds

- Closes 

* In progress

* Add background-size, background-position settings

* Add ReactCrop

* Remove old bg sizing sliders

* Add resize observer

* Fix typo

* Disable select on sliders

* onAspectRatioChange hook

* Rename to backgroundColor

* Fix state issues

* Add backgroundMode toggle

* Rename ColorPicker

* Add upload-image margin

* Minor font-size change

* Fix build
Jake Dexheimer ee0feeb527 Twitter colorpicker -> Sketch colorpicker
Michael Fix 0c365218d6 Load and store state from localStorage ()
* Load and store state from localStorage

* remove idea of localStorage from get and set state fns
Mike Fix 26ea4615f7 Fix Selecting a language and then going back to auto
- Closes 
Jake Dexheimer d6b4db144a Default theme