202 Commits (1e5a173b8acf791a2092d33fded38cdc6a740fed)

Author SHA1 Message Date
Rodolfo Aguirre 4f52ecd161 Add SPARQL language support (#487) 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
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
Mike Fix 20f9b5aa82 decoding from local storage bug fix 6 years ago
Mike Fix 0441205217 decode language html correctly 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
Etienne Millon f80c835328 Split F# and OCaml entries (#475)
While they use the same mode, OCaml is easy to miss.
6 years ago
Michael Fix a9b25e05a3
Performance improvements (#458)
* Performance improvements

- Use font-display: swap
- Preload CSS links
- Compress all request payloads

* inline react spinner css

* remove @zeit/next-css, move custom themes to static

* update contributing docs

* spinner styles

* move spinner back to top level

* load codemirror synchronously
6 years ago
Michael Fix 0d2f2f4444
Code split and load prettier dynamically (#471)
* code split and load prettier dynamically;

* move prettier to dependencies
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
Michael Fix 86be3aae35
update spinner for react-codemirror2 (#470) 6 years ago
Yashu Mittal 22f2ea673e Space mono normal font (#462)
* Arranging in alphabetical order

* Add Space Mono (normal) font

* Added myself as contributor
6 years ago
Mike Fix 0df0f68756 don't load styles that we have locally
- Closes #460
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 b49662cd1d organize Lucario alphabetically 6 years ago
Mike Fix f8a3499156 safari bug fixes 6 years ago
Gabriel JUCHAULT d31f6ee3a6 feat(highlight): add TOML support (#434) 6 years ago
andri lim dc58da07af fixes #432, Nim's syntax highlighting is not weird anymore (#433) 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
Mike Fix 0525a9fcca Pull out formatTimestamp into function 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
Maxim Gerasimov e92e4567de Add Nord theme (#426)
* Add Nord theme

* Add descendant selector in nord.css
6 years ago
Winner Crespo 452370772f Adding VS Code's Night Owl theme (#379) 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
Tirth Patel 4dff52ed79 Added sTeX/LaTeX Language Support (#419)
* added latex language support

* sTeX/LaTeX name changed to LaTeX

* Placed Latex in alphabetical order
6 years ago
Mike Fix d0b02d53a5 Reuse escapeHtml 6 years ago
Michael Fix 2a52d101e7
Fix spinner position (#398) 6 years ago
Mike Fix 27470a90a3 Clean up custom modes 6 years ago
Brian Dennis d885b63b3a add alt text support for Twitter images (#372)
* add alt text support for Twitter images

* move constant declarations up

* Use UNSAFE_cWRP

* remove duplicate TODO (whoops)
6 years ago
Mike Fix d98319d5d9 Alphabetize languages 7 years ago
Ankit Tiwari d59d4a99d7 Add Octave language support (#369)
* Add Octave language support

* Update constants.js

* Clean up
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
Vernon de Goede f8579bac73 Add support for Verminal theme 💅 (#341)
* Add verminal theme.

* Only decrease opacity if vibrancy is supported.

* Use Framer Syntax.

* Reset constants.

* Don't prefill example env variables.
7 years ago
Eric Adamski fd63008f12 Add Supoprt for IBM Plex Mono (#324)
* Add support for IBM Plex Mono (Italic) font

* Add myself as a contributor

* Alphabetize Fonts
7 years ago
briandennis f49b7649fb reorganize custom themes/modes 7 years ago
Ben Jervis f15d7a83e2 Adds Atom's One Dark theme (#319)
* Adds Atom's One Dark theme

* Moves one-dark.css into static

* Moves the file from a stylesheet link to an import

* Removes the link from constants
7 years ago
Camron Flanders 98403b2ad2 Add Monoid Font (#314)
* Add Fantasque Sans Mono as font-face

* Add Fantasque Sans mono to constants

* Set to regular weight, not bold

* forgot to add myself as contrib

* add Monoid font
7 years ago
Camron Flanders eef096bc49 Add Fantasque Sans Mono font (#313)
* Add Fantasque Sans Mono as font-face

* Add Fantasque Sans mono to constants

* Set to regular weight, not bold
7 years ago
Michael Fix 9dd8d3a9c4
Fix issue 294 (#305) 7 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
Raphael Amorim 7f40e9b469 [WIP] add lucario as theme option and update contributors (#292)
* add lucario as theme option and update contributors

* undo miss change

* update codemirror to latest
7 years ago
Mike Fix 034c35ca92 Back to 2x default 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
briandennis 57dddd0b19 add /image api endpoint, use it to get carbon image if on safari 7 years ago
Mike Fix 7fce4060f0 Default to 1x 7 years ago
Mike Fix 1b5ed6a60c Fix CMD+A backspace issue
- Closes #272
7 years ago
Jake Dexheimer f79d01ad9b Add RandomImage component 7 years ago
Jake Dexheimer 9499248e1c
Add watermark feature (#274)
* Add watermark feature

* Change watermark to carbon logo

* Fix double borders
7 years ago
Mike Fix 3168ddb0ad Add title bar to default settings 7 years ago
Michael Fix 70928b765e Iosevka font (#268)
- Closes #233
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
Jake Dexheimer 3c0b3dd387 Fix dropdown hover/width, window themes bg 7 years ago
briandennis 46091f6dc5 URI component encode carbon text 7 years ago
Nihad Abbasov e3d2646885 Add Tomorrow Night - Bright theme (#222)
* Add Tomorrow Night - Bright theme

https://github.com/chriskempson/tomorrow-theme

* Update contributors
7 years ago
Iván Munguía b2f6e1c963 Add syntax highlighting for Apache 7 years ago
briandennis 5af953cd2e remove empty state values so as not to override defaults 7 years ago
briandennis d62145f727 modify default settings constant, use new constant when setting initial settings 7 years ago
Dillon Mulroy 7a2b778204 Initial Proof of concept 7 years ago
Mike Fix 959703c51a Fix localStorage 7 years ago
Michael Fix 3d4ba85732
Sanitize color inputs (#196)
* Sanitize color inputs

* Remove unneeded dep

* Move to constants

* Case insensative
7 years ago
Brad Dougherty 71e535e9e2 Fix boolean params (#195)
* Parse boolean query params properly

* Update routing.js
7 years ago
Mike Fix abb0948324 Fix escape error 7 years ago
Mike Fix bb4eb1ed9a XSS localStorage 7 years ago
Iván Munguía a3697f48b9 Add syntax highlighting for the diff language (#191) 7 years ago
Jake Dexheimer 71abf28466 Use x-php mime-type 7 years ago
Hugo a69a3f2e44 Add Oceanic Next theme (#167)
* Add Oceanic Next theme

* Update Codemirror to 5.34.0
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
Brian Dennis 77af47b59e add PowerShell langauge (#174)
* add PowerShell langauge

* remove npm lockfile

* update lockfile
7 years ago
Mike Fix 8e2c725267 Fix build 7 years ago
Kunall Banerjee 73eb4ac2cd add support for shell syntax (#172)
Closes #168
7 years ago
Michael Fix ed9993170f
GraphQL Type (#164) 7 years ago
Jake Dexheimer 38cc0f91af Font support (#149)
* Add font family/font size support

* Load fonts with css

* Change settings item order
7 years ago
Mike Fix 9ce3558a44 Fix typescript vs js naming descrepancy
- Closes #139
7 years ago
Brad Davies 9435c7564f Renamed to 'MySQL' 7 years ago
Brad Davies 1a1a384db3 Fix MySQL syntax highlighting.
The MySQL syntax highlighting does not currently work unless you explicitly define the correct MIME type associated with it (`text/x-mysql`).
7 years ago
slorber 4cfbb8f3d1 fix cursor jumping at the end after every editor update 7 years ago
Andrew Dassonville 921d6b40b2 Fix crash when using Plain Text (#129) 7 years ago
Kunall Banerjee 830828d6c5 remove erroneous constant (#127)
This resulted in an unrecognized theme that further caused a bug in the UI.
7 years ago
Mike Fix 8dec652c2a Fix URL bugs 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
Jake Dexheimer 9379528ccc Remove line numbers background style 7 years ago
Jake Dexheimer f13b394ebd Fix default theme 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
Mat Gadd ba6e8c4e6f Use parentheses around the theme to match others, and use the same order as ones above 7 years ago
Mat Gadd 03259f473c Add extra constants for Solarized flavours 7 years ago