36 Commits (d336d20d03aea966f528b14e035d6a00b1cbdfdb)

Author SHA1 Message Date
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
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
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 5badd2fbbb
remove timestamp (#583)
Clean up
6 years ago
Mike Fix 8e13d2d05c allow editing in embeds 6 years ago
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
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
Farzad YZ 1747534921 WIP: integration with prettier (#469)
* add basic format with basic parser

* remove format loading

* change formatCode to be sync

* prettier adjustments

* prettier our code

* move prettify into settings menu
6 years ago
Mike Fix 4a87519409 actually fix decoding errors bugs 6 years ago
Mike Fix 9acda4024f Revert "Issue #452: Fix 500 error with `%` in `code`. (#453)"
This reverts commit 46dcdef043.
6 years ago
GOTO Hayato 46dcdef043 Issue #452: Fix 500 error with `%` in `code`. (#453)
* Issue #452: Fix 500 error with `%` in `code`.

* Issue #452: Revert the unnecessary change in `serializeState()`.

* encodeURI -> encodeURIComponent
6 years ago
Mike Fix f8a3499156 safari bug fixes 6 years ago
Shihua Ma b1371508ed fix base64 bug (#412)
* fix base64 bug

The Base64 table has Char '+' [https://en.wikipedia.org/wiki/Base64](https://en.wikipedia.org/wiki/Base64), it will turn to blank characters in url request, It will cause some error when  deserializeState the state.

* Fix encodeURIComponent for serialize
6 years ago
erick d0d3589dc4 Add optional timestamp to saved file names (#430)
* Add timestamp to file name save

* Add .DS_Store to .gitignore

* Add setting to toggle timestamp on file save

* Tweak timestamp format
6 years ago
Jake Archibald c4e224df29 Adding line-height setting & granular font size. (#410)
* Adding line-height option. Fixes #406.

* Allowing more granular font size
6 years ago
Mike Fix 53b8965b79 Watermark in URL parameters" 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
Michael Fix a6324586eb Performance improvements (#287)
* 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
7 years ago
Jake Dexheimer c6be4f0295 prettier 7 years ago
briandennis fe1df904ea pass encode state to api instead of url 7 years ago
briandennis fa5f5f7036 add state query support 7 years ago
briandennis 89a80c3c2b add state query support 7 years ago
Jake Dexheimer 4c86468e50 Rename ResolutionSelect 7 years ago
Takahiko Inayama b7adab9bea Support variable export sizes (#264) 7 years ago
Adi Vaknin 56f11f404f Added missing settings to mapping in routing.js so they will update the url 7 years ago
briandennis 46091f6dc5 URI component encode carbon text 7 years ago
briandennis 5af953cd2e remove empty state values so as not to override defaults 7 years ago
Mike Fix 959703c51a Fix localStorage 7 years ago
Brad Dougherty 71e535e9e2 Fix boolean params (#195)
* Parse boolean query params properly

* Update routing.js
7 years ago
Jake Dexheimer cbc6824b83 Background image settings (#169)
* Implement drag-n-drop image for backgrounds

- Closes #122

* 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
7 years ago
Michael Fix bdc9211d25 Fix state bugs, fix drag-n-drop bugs, fix url encoding bugs (#126)
* react-codemirror to react-codemirror2@3

* Fix encoding queryParam issues

* Fix gist support
7 years ago
Michael Fix 63f43dcc40 Save and update query params based on editor state (#111)
* Save and update query params based on editor state

* Fix typo and asPath bug with new queryParams
7 years ago