153 Commits (c70de8f11603533acd17b581aa1502897e474c6f)

Author SHA1 Message Date
Michael Fix 942f21e7db
Refactor mode loading into Carbon (#825)
* refactor mode loading into Carbon

* made alreadyLoaded Set a static property
5 years ago
Michael Fix 795311f307
Refactor selected lines to read from React state (#833)
* holding opacities in state works

* refactor to use functional set state

* clean up onGutterClick code #1

* clean up onGutterClick code #2

* clean

* use regular effect

* return forward ref directly
5 years ago
Mike Fix 1ded53f6bb use css composition instead of props 5 years ago
Mike Fix c967318194 don't show alpha on embed 5 years ago
Mike Fix 3467e51bbb ensure smart indent is always true 6 years ago
Mike Fix fba004fa95 fix cursor with 'readonly'
Closes #791
6 years ago
Mike Fix 7a3930cae6 fix line number highlighting after mode changes
- Closes #764
6 years ago
Michael Fix 263249c2cd Highlight line numbers (#757)
* add line numbers container

* clean up code readability

* clean up carbon

* use onGutterClick instead

* extract onGutterClick

* tweaks
6 years ago
Mike Fix 156e61c3ba fix embed URL button 6 years ago
Mike Fix 011f25dc4f bug fix for creating custom themes 6 years ago
Mike Fix 31db484046 improve watermark contrast 6 years ago
Mike Fix f5fe38ea88 make font styling work 6 years ago
raboid 7560520bbb custom fonts 6 years ago
Mike Fix 3540124819 bug fix for /embed/<gist> 6 years ago
Mike Fix 1994c820ea fix light theme in Carbon by introducing getTheme 6 years ago
Mike Fix 0db4a89e72 simplify theme state logic 6 years ago
Mike Fix 48504ba1d0 use theme.light 6 years ago
raboid 4dea566193 rework logic 6 years ago
Michael Fix afa63c3653
remove mutation observer (#723) 6 years ago
Michael Fix ebc488d51c
fix horizontal scroll bar for safari (#717) 6 years ago
Konstantin Gorodinskiy eefc49b737 Fix language mime type lookup (#712)
* add editorconfig to keep files consistent automatically

* lookup language mime type in languages dictionary

* use language maps instead of language list

* Revert "add editorconfig to keep files consistent automatically"

This reverts commit 3cfdd4a5444791e763ffae59fde199406677f82f.

* move location of toLowerCase()
6 years ago
Mike Fix 3187b6777a make titleBar uncontrolled 6 years ago
Mike Fix d16df95bda use editor mount for loading instead of carbon's 6 years ago
Mike Fix 7fd9ecf829 Update where spinner occurs 6 years ago
Mike Fix 608392b517 use forward ref in carbon 6 years ago
Mike Fix b7bc227522 clean up <Carbon/> - remove resize-observer 6 years ago
Sean a89c320757 move and fix theme specific css (#649) 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
Jake Dexheimer 4571b03eb4 clean up menu controls position, about page 6 years ago
Miloš Sutanovac 09397baf7b Adds CLI hooks (IDs) to certain elements (#592)
* Adds CLI hooks (ids) to certain elements

* Update Carbon.js

* Update ExportMenu.js
6 years ago
Michael Fix f4f23541ea
Create dark watermark (#577)
- Closes #575
6 years ago
Michael Fix 20df18ebec
tune component updates and bump codemirror polling to hit 60 Hz (#493)
* tune componenet updates and bump codemirror polling to hit 60 Hz

* reuse omit
6 years ago
Mike Fix deb0638e18 add TODO for theme specific styles 6 years ago
Mike Fix f79da0f7f0 fix solarized line numbers styling
- Closes #495
6 years ago
Mike Fix 7c567412dc pull out getRef 6 years ago
Michael Fix bd695b7fd1
convert ids to classNames, use refs (#488) 6 years ago
Mike Fix 8e13d2d05c allow editing in embeds 6 years ago
Mike Fix 004ac6c902 hide cursor 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
Michael Fix fa983f6fbe
Make carbon a stateless component, move highlight.js calc into render (#479)
* make carbon a stateless component, move highlight.js calc into render

* remove unneeded class function

* inline handleLanguageChange
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 c22a8e2a0d
Remove gDSFP in Carbon (#477)
* remove gDSFP in Carbon

* add comment
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
Mike Fix 4f7938d931 Run prettier 6 years ago
Michael Fix 86be3aae35
update spinner for react-codemirror2 (#470) 6 years ago
Jake Dexheimer b7c8466711 fix mobile overflow issue (#468) 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
Michael Fix 2a52d101e7
Fix spinner position (#398) 7 years ago
Michael Fix a81107d723 Remove UNSAFE lifecycle methods (#377)
* Remove UNSAFE lifecycle methods

* Fix gDSFP issue

* Extract onBeforeChange

* Remove this from getDerivedStateFromProps
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
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
Mike Fix e02d5e1ddf Add TODOs when upgrading to React@16.3 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
Ian Wang 6bf64a6ae0 delay loading highlightjs & codemirror theme (#309) 7 years ago
Mike Fix 1f9076c679 Implement Shift-tab to dedent
- Closes #304
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
Jake Dexheimer 9499248e1c
Add watermark feature (#274)
* Add watermark feature

* Change watermark to carbon logo

* Fix double borders
7 years ago
Jake Dexheimer f28d80c250 Minor windowTitle positioning change 7 years ago
Mark Molnar b1ef2d1263 Feature: Window Title (#257)
* Added title bar

* Added state for title bar
7 years ago
Dillon Mulroy 91cf4b7734 import default settings from constants 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 508afdfbb4
Implement drag-n-drop image for backgrounds (#157)
- Closes #122
7 years ago
Michael Fix a394079b2a
Make default font one without ligatures (#155) 7 years ago
Mike Fix 28577aaf64 Font fixes 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
Rafael Câmara a4cfaab3a7 Adding drop shadow offset-y and blur-radius menu option (#143)
* Adding drop shadow offset-y and blur-radius menu option

* Fixing @jakedex concerns

* Fixing drop-shadow blur-radius label to fit the pattern
7 years ago
Jake Dexheimer 5ecb19c6b6 Fix export alpha padding issue 7 years ago
Michael Fix 70e9e40811
Add max-width to container (#144)
- Closes #135
7 years ago
Michael Fix 94e4767808
Debounce language changes (#141)
- Closes #140
7 years ago
slorber 4cfbb8f3d1 fix cursor jumping at the end after every editor update 7 years ago
briandennis 2eee0078e7 fix background rendering 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 b4e5459432 Update dependencies (#124)
* Upgrade react, react-dom, react-color, next

* Use dynamic styles in Carbon.js

* Fix react-color alpha issues
7 years ago
Jake Dexheimer 9379528ccc Remove line numbers background style 7 years ago
Mat Gadd 3abcefb807 Disable box-shadow for all solarized themes 7 years ago
Mat Gadd c7a71b7b12 Apply solarized hacks to the light theme only 7 years ago
Jake Dexheimer 96ac36baf5 Fix component state issues 7 years ago
Neto Guimarães e51628ce8d adding support to 'line numbers' settings (#116)
* adding support to 'line numbers' settings

* Update Settings.js
7 years ago
Jake Dexheimer 9d69d2392b Add alpha support, sketch color picker 7 years ago
Jake Dexheimer ee0feeb527 Twitter colorpicker -> Sketch colorpicker 7 years ago
Jake Dexheimer 526453796b Add transparent pixels to image 7 years ago
Patryk Jóźwiak ede83bf424 Add width adjustment. (#91) 7 years ago
Peng Jie 3985e35b52 Use spread operator (#95)
* Use spread operator replace Object.assign()

* Fix tag name
7 years ago
Mike Fix 598ca88b98 React-codemirror -> react-codemirror2
- Closes #64
7 years ago
Jake Dexheimer 7bfa2ef621 Add support for more clike languages 7 years ago
Andrew f3b80b1783 Use mode instead of module 7 years ago
Jake Dexheimer 27bad782b4 Fix solarized theme, remove redundant light:true 7 years ago
Andrew 3cbcb49c27 Remove semicolons 7 years ago
Andrew Dassonville 7e69ca2897 Add prettier 7 years ago
Jake Dexheimer c523af5dff Increase font size 7 years ago
Jake Dexheimer c099c763be Fix windows scrollbar issue 7 years ago
Jake Dexheimer d6b4db144a Default theme 7 years ago
Jake Dexheimer bb9efd6e38 Fix double select, buttons align 7 years ago
Jake Dexheimer 7b00c6e37a Minor window controls changes 7 years ago
Jake Dexheimer c4b09d58a9 Fix solarized theme 7 years ago
Mike Fix 3ca3e254b2 Fix language inconsistancies
- Depend on toHash
- Move auto out of languages export
7 years ago
briandennis d8f2735437 fix render bug 7 years ago