Commit Graph

151 Commits (26b63f0d1e02ae623ee87b98271f097f4842fe7b)

Author SHA1 Message Date
Mike Fix 9284f601e5 separate messages
Mike Fix fd37d6f0fa post message
Mike Fix f149e115d5 prefix postMessage id with carbon:
Mike Fix e45bbd8a25 postMessage to parent window
Mike Fix c246b5c45d remove unnecessary div
Mike Fix 0b366d18f7 refactor stylesheets abstraction
Mike Fix dbbbb2f33f fix Carbon <title>
Mike Fix 8e13d2d05c allow editing in embeds
Mike Fix 004ac6c902 hide cursor
Mike Fix c0ff116de8 embeds
expose CodeMirrorLink, load only necessary theme in embed

implement copy button in Carbon window controls

add copy to queryParam

use next/head and metatags in /embed

make editor have router prop

fix now.json rewrites

allow local stylesheets in embed
Michael Fix 09fa737ca1
move localStorage.clear() to prop of Editor ()
Mike Fix 6fc3d2b5e1 use react-addons-shallow-compare for comparing state
Tim Neutkens 2e945fc528 Don't use custom history API ()
* Add shallowEquals check for onUpdate

* Using Next.js Router instead of custom history API

Fixes https://github.com/zeit/next.js/issues/4994

* Remove urlObject code
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
Michael Fix d3462bb961
Make `api` a prop of Editor ()
Rachel M. Carmena a0b1c29727 Adding a note into About page for making images accessible at Twitter ()
* Adding a note into About page for making images accessible at Twitter

* Formatting the page

* update spacing
Michael Fix 0580e1c8e8
Separate API service, deploy frontend statically ()
* extract server into separate service

* fix basic tests with url.parse

* use Next withRouter

* remove old custom next rendering
Mike Fix d0b02d53a5 Reuse escapeHtml
Michael Fix 89931eab59
Add linting back ()
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 80cf355b44
Use gist language response ()
* Use gist language response

* Use gist language response - fix when no queryparams are given ()

* fix when no queryparams are given
e.g. http://carbon.now.sh/3208813b324d82a9ebd197e4b1c3bae8 would still not set the language property because the initialState is null

* move gist language to its own test

* Update test
Michael Fix ce5cc92aa3
Editor refactors ()
Michael Fix 5691236934
Refactor index.js ()
* Move Editor to components

* Separate index and editor a little

* Revert dynamic import of hljs b/c it's critical

* Move query param update to index.js

* Clean up editor further
Michael Fix 4ee19793dc
Fix Issue ()
- Closes 
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
Michael Fix 083a0e8441
Fix download length overflow issue ()
* Fix download length overflow issue

* Fix up API

* Clean up
Michael Fix a6324586eb Performance improvements ()
* Perf improvements. Limit rerender on keystrokes

* Spread settings props, make dropdowns and carbon pure

* Remove last TODO

* Pass state into value of titleBar input

* Clean up
briandennis 71879a78d3 encode nbsp in svg for safari
briandennis fe1df904ea pass encode state to api instead of url
briandennis f08fe25105 add /image api endpoint, use it to get carbon image if on safari
briandennis 57dddd0b19 add /image api endpoint, use it to get carbon image if on safari
Mike Fix 1b5ed6a60c Fix CMD+A backspace issue
- Closes 
Jake Dexheimer c90099f72a Merge remote-tracking branch 'origin/master' into HEAD
Jake Dexheimer e8bb4ac0e0 Add button dropdown
Jake Dexheimer 4c86468e50 Rename ResolutionSelect
Takahiko Inayama b7adab9bea Support variable export sizes ()
Mark Molnar b1ef2d1263 Feature: Window Title ()
* Added title bar

* Added state for title bar
Mark Molnar d044beb977 Feature: Squared Image ()
* Added squared images feature

* Moved 'Squared image' to advanced dropdown
briandennis 11aebe9add set language to auto on file drop
Mike Fix de81033262 Bump next.js, add _document
briandennis d62145f727 modify default settings constant, use new constant when setting initial settings
Dillon Mulroy 77464f6845 Remove console log
Dillon Mulroy 6fa28a0062 Add reset option in advanced options + all contributors addition.
Dillon Mulroy 7f026d79b9 Initial Proof of concept
Dillon Mulroy 7a2b778204 Initial Proof of concept
Mike Fix 4e15b66001 Add save as dropdown (needs reconfiguring + style)
Mike Fix 5abef2b4c3 Intial format request refactor
Michael Fix 3d4ba85732
Sanitize color inputs ()
* Sanitize color inputs

* Remove unneeded dep

* Move to constants

* Case insensative
martinfrancois 9e44a41762 added possibility of saving as an svg file