You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sean f6f0adee6b Add preset feature (#595)
* 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
6 years ago
..
style Separate API service, deploy frontend statically (#474) 6 years ago
svg minor aesthetic tweaks 6 years ago
BackgroundSelect.js Add preset feature (#595) 6 years ago
Button.js minor aesthetic tweaks 6 years ago
Carbon.js Adds CLI hooks (IDs) to certain elements (#592) 6 years ago
Collapse.js Clean up (#481) (patch) 6 years ago
CopyButton.js embeds 6 years ago
Dropdown.js minor aesthetic tweaks 6 years ago
Editor.js Add preset feature (#595) 6 years ago
ExportMenu.js update export-menu-container 6 years ago
FontSelect.js New settings menu (#588) 6 years ago
Footer.js Lint and fix issues, don't add linting yet though (#293) 7 years ago
Header.js WIP: integration with prettier (#469) 6 years ago
ImagePicker.js show network error in in imagepicker 6 years ago
ListSetting.js New settings menu (#588) 6 years ago
Meta.js enable react in scope lint rule 6 years ago
Overlay.js enable react in scope lint rule 6 years ago
Page.js make page a React components 6 years ago
PhotoCredit.js Use Unsplash API (#301) 7 years ago
RandomImage.js implement background url support (#579) 6 years ago
Settings.js Add preset feature (#595) 6 years ago
Slider.js New settings menu (#588) 6 years ago
ThemeSelect.js New settings menu (#588) 6 years ago
Toggle.js minor aesthetic tweaks 6 years ago
Toolbar.js convert ids to classNames, use refs (#488) 6 years ago
WindowControls.js Add preset feature (#595) 6 years ago
WindowPointer.js minor aesthetic tweaks 6 years ago