51 Commits (4f1d566a6b0a5556fbb1a78bd35870884bf8a3b0)

Author SHA1 Message Date
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
6 years ago
Michael Fix 09fa737ca1
move localStorage.clear() to prop of Editor (#484) 6 years ago
Mike Fix 6fc3d2b5e1 use react-addons-shallow-compare for comparing state 6 years ago
Tim Neutkens 2e945fc528 Don't use custom history API (#485)
* 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
6 years ago
Michael Fix 6c9a09e522
Clean up (#481) (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
6 years ago
Michael Fix d3462bb961
Make `api` a prop of Editor (#480) 6 years ago
Michael Fix 0580e1c8e8
Separate API service, deploy frontend statically (#474)
* extract server into separate service

* fix basic tests with url.parse

* use Next withRouter

* remove old custom next rendering
6 years ago
Mike Fix d0b02d53a5 Reuse escapeHtml 7 years ago
Michael Fix 89931eab59
Add linting back (#349) 7 years ago
Michael Fix 3bbb98a3a2
Revert "Refactor state components (#338)" (#348)
This reverts commit 0a59db56c8.
7 years ago
Michael Fix 0a59db56c8
Refactor state components (#338)
* 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
7 years ago
Michael Fix 80cf355b44
Use gist language response (#343)
* Use gist language response

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

* 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
7 years ago
Michael Fix ce5cc92aa3
Editor refactors (#336) 7 years ago
Michael Fix 5691236934
Refactor index.js (#310)
* 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
7 years ago
Michael Fix 5a4cdd7d7f
Lint and fix issues, don't add linting yet though (#293)
* Lint and fix issue, don't add linting yet though

* Clean up

* Remove /about href
7 years ago
Andrew 3cbcb49c27 Remove semicolons 7 years ago
Andrew Dassonville 7e69ca2897 Add prettier 7 years ago
Jake Dexheimer 7687ccd05d Refactor into Page component 7 years ago
Jake Dexheimer 9b1187a9ae Better theme defaults 7 years ago
Jake Dexheimer 1bba205853 Wire-up window theme functionality 7 years ago
Jake Dexheimer 85b193e1f1 Make pretty 👻 7 years ago
Mike Fix cb3a9093b3 Move Header and Footer into separate files 7 years ago
Mike Fix 7dac7ae15c Add dnd container (doesn't render?). Make top level settings single source of truth 7 years ago
Jake Dexheimer 8272d81753 Merge branch 'master' into toolbar 8 years ago
Jake Dexheimer 8886fed9ba Minor style changes 8 years ago
Jake Dexheimer 1df36b5603 Wire up windowControls, dropShadow toggles 8 years ago
Jake Dexheimer 6343dc5a15 Start hooking up Settings state 8 years ago
Jake Dexheimer 2729531ad6 Start global color palette 8 years ago
Jake Dexheimer 95ae960536 Fix Brian's borks 🙃 8 years ago
briandennis 818e2d45d3 switch imgur link to path that has twitter card 8 years ago
Jake Dexheimer 459ede6765 Merge branch 'master' into toolbar 8 years ago
Jake Dexheimer 0c872f69fc CSS display fixes 8 years ago
Jake Dexheimer 6befb747db Merge branch 'master' into toolbar 8 years ago
Mike Fix 6e57d06d13 Use png 8 years ago
Mike Fix 676fb594a4 Dont make gist request if at / 8 years ago
Mike Fix c61f2184a9 Rename components 8 years ago
briandennis eb75ecd320 add dynamic styles, fix window control 8 years ago
Mike Fix 9001198ad5 Pass config into codeimage; 8 years ago
Mike Fix d7bf3be820 pass config object 8 years ago
Jake Dexheimer 5a4a1ea33c Add logo, index page styles 8 years ago
Mike Fix 1a911ce776 Merge branch 'toolbar' 8 years ago
Jake Dexheimer c501fa72ee Toolbar styles 8 years ago
briandennis b863eb0427 get editor working 8 years ago
Mike Fix dcc6317a7e Closes 8 years ago
Mike Fix 01e8b46966 Hook up imgur 8 years ago
Mike Fix bb17e1ddbd Pass background theme color from index 8 years ago
Mike Fix ce6b20fc4e Add save image to toolbar callback 8 years ago
Jake Dexheimer d6da4c7e70 Home -> Index, styles 8 years ago
Mike Fix 1399994eb6 Add drag and drop support 8 years ago
Mike Fix b16b0d6d78 Add Gist support 8 years ago