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
Mike Fix
b13125dd1d
add export size and square image support to safari
6 years ago
Sean
070b7f8aaf
New settings menu ( #588 )
...
* New settings menu
* remove showPresets
* clean
* use React.memo for pure function components
6 years ago
Michael Fix
5badd2fbbb
remove timestamp ( #583 )
...
Clean up
6 years ago
Sean
68d90364b0
New export menu ( #582 )
...
* New export menu
* Fix lint errors
6 years ago
Michael Fix
f4f23541ea
Create dark watermark ( #577 )
...
- Closes #575
6 years ago
Sean
2af4aa55ca
Fix N-Triples language support ( #534 )
6 years ago
Rodolfo Aguirre
fc5e6e475a
Add N-Triples language support ( #519 )
...
* Add N-Triples & N-Quads into LANGUAGES
* Remove N-Quads since N-Triple can be used instead
6 years ago
Rodolfo Aguirre
ac22d23886
Add Turtle into LANGUAGES ( #520 )
6 years ago
zhao.zhang
2b6a91dfee
feat: add atom one-light theme ( #499 )
6 years ago
Mike Fix
1451ee2582
remove extra solarized link
6 years ago
Mike Fix
0b366d18f7
refactor stylesheets abstraction
6 years ago
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
7 years ago
Michael Fix
2a52d101e7
Fix spinner position ( #398 )
7 years ago
Mike Fix
27470a90a3
Clean up custom modes
7 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)
7 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