213 Commits (19cfabc09e893056efc290201ec54f05bf16cc78)

Author SHA1 Message Date
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
Michael Fix 4ec70a2bf6
Repository changes from org change (#840)
* dawnlabs -> carbon-app

* update READMEs

* remove logo from translated readmes

* change project link

* update license

* remove case study link from translated READMEs
5 years ago
Mike Fix 53405a4c99 clean up language list 5 years ago
RohitMidha23 039523d0ac Added: XQuery (#779) 5 years ago
Michael Fix a49647e128
Solidity language (#788)
* WIP: solidity, doesn't work though

* codemirror-solidity 0.1.4
5 years ago
Michael Fix 942f21e7db
Refactor mode loading into Carbon (#825)
* refactor mode loading into Carbon

* made alreadyLoaded Set a static property
5 years ago
Mike Fix d60e556b5b prevent URL length limit errors
Closes #829
5 years ago
Mike Fix 6e46b1c23b remove lib/modes 5 years ago
Michael Fix ddc611a6f9 Refactor preset state (#822)
* refactor preset state

* remove unnecessary constant
5 years ago
Adam Lusted b84474652c Added SynthWave '84 theme + Text Shadows (#810)
* - Added ability to set optional `text-shadows` on themes.
- Extended `THEMES` to include optional `shadows` setting.
- Added SynthWave '84 theme. See https://github.com/robb0wen/synthwave-vscode

* - Changed ID of `SynthWave-84` theme to `synthwave-84`
- Added synthwave-84 to LOCAL_STYLESHEETS
- Migrated SynthWave-84 theme to `static/themes/synthwave-84.css`
- reverted a few things from 3f9daaf9ecee4561f9fad1bbdb8f38fd58a631c6
  - Reverted global text-shadows
  - Reverted constants.js/themes model changes.

* Update Meta.js
5 years ago
Tim Neutkens 7fdda47816 Add autoExport (#782)
* Add autoExport

* Upgrade Next.js

* Upgrade Next.js

* export service worker to /public

* fix service worker build - file exported to /public (unwanted)

* next next@canary

* try to fix SW

* try to fix SW

* add back _next routing for now

* try a mix of configs

* Fix service-worker serving

* Remove _next route

* Next 9

* move stuff back into /static

* fix service-worker

* don't use canary next builds

* static/banner.png -> static/brand/banner.png

* remove now-build script
5 years ago
Michael Fix 22a0f9f2c1 Import/export config (#771)
* import export config

* allow rendering button as link

* pass all props to button component

* fix invalid JSON path

* prevent dragging download URL

* address concerns
6 years ago
Mike Fix 02be1f6efe babylon -> babel 6 years ago
Nato Boram b757687802 Add VSCode's theme (#769)
* add vscode theme

* pin Next.js version

* remove highlight only css fetches
6 years ago
Mike Fix 4e1b6259e6 add shortname for jsx 6 years ago
greenkeeper[bot] 31569fa164 Update escape-goat to the latest version 🚀 (#735)
* fix(package): update escape-goat to version 2.0.0

* chore(package): update lockfile yarn.lock

* fix naming for escape-goat

* use colornames packages
6 years ago
Michael Fix fc715faf0d Update constants.js 6 years ago
Ahmad Awais ⚡️ f5ab1f0f1a 👌 IMPROVE: Operator vs Keyword colors 6 years ago
Ahmad Awais ⚡️ 5ac1971d9f 🐛 FIX: White color 6 years ago
Ahmad Awais ⚡️ 40ad13cc60 📦 NEW: Shades of Purple Theme 6 years ago
Mike Fix 1994c820ea fix light theme in Carbon by introducing getTheme 6 years ago
Michael Fix c56919cab3 Simplify routing code (#729)
* simplify routing code

* fix en/decode mapping logic
6 years ago
raboid 4dea566193 rework logic 6 years ago
raboid e02bbc4832 address comments 6 years ago
raboid 2ae529e404 support theme highlights in query string 6 years ago
Mike Fix 9621e4b64a allow console.error in eslint 6 years ago
Sean d4d0ef9949 update gist handling (#715)
* update gist handling

* address comments

* clean up a bit

* getRouteState(router)

* move try/catch into getGist

* updateQueryString -> updateRouteState

* clean up more

* add cypress tests

* delete comments

* remove wait
6 years ago
Mike Fix fa9fa15ea5 add gherkin 6 years ago
Michael Fix b5ae198312
Fix Medium embedding workflow (#707)
* fix url encoding to support direct pastes to medium

* move check for object keys length to getQueryStringState

* remove url parse from GistContainer

* use useMemo instead of memo

* remove decode()

* add copy URL button to export menu
6 years ago
Michael Fix 9077260a3e
Read config from gist (optional) (#692)
* read config from gist

* Update api.js
6 years ago
Michael Fix 223bccd6b1
read all api calls from context (#691) 6 years ago
Jalen Davenport b05108220b Added Twig language support (#686) 6 years ago
Mike Fix f653d73ccd make config simpler 6 years ago
Mike Fix 3115b3cc28 fix debounce for tweet and image api calls 6 years ago
Matthew Nielsen 9b885c6fd9 Added language support for RISC-V (#655)
* added language support for RISC-V

* added optional instruction set extensions for RISC-V
6 years ago
Mike Fix 008ba67eac remove old TODOs 6 years ago
Mike Fix 8100090b17 revert dynamic Codemirror mode import
- Closes #653
6 years ago
Michael Fix 80122adea6
Use dynamic import components (#642)
* use dynamic import components

 - react-color components
 - Watermark

* Dynamically import modes

* revert next.config.js

* update language filter
6 years ago
Sean a1e05af5c0 Custom themes (#632)
* 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
6 years ago
Mike Fix f45d133d3c remove verifyPayloadSize from util 6 years ago
Mike Fix dbde17a65f reduce imports and exports 6 years ago
raboid 3aec3ebc28 Conditionally disable PNG export for Safari 6 years ago
Mike Fix 642749a701 use escape-goat 6 years ago
raboid e5b3d39d4e Update ExportMenu to use Popout, Button, Input 6 years ago
raboid 583e4ece73 Update BackgroundSelect to use Popout & ColorPicker 6 years ago
Mike Fix 59b77c7b2f add mime to Go
Closes #608
6 years ago
Joshua Robusto 3009533bf4 Add TSX language (#605) 6 years ago
Mike Fix b5a1052b40 remove unused utils, move specific utils into component files 6 years ago
Mike Fix 33c2929897 must use CARBON_STATE for settings in local storage 6 years ago
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