Commit Graph

136 Commits (fd5c0cffd18b0a89cce4fec395db6fb1c60dc8ca)

Author SHA1 Message Date
raboid 4dea566193 rework logic
Michael Fix afa63c3653
remove mutation observer ()
Michael Fix ebc488d51c
fix horizontal scroll bar for safari ()
Konstantin Gorodinskiy eefc49b737 Fix language mime type lookup ()
* 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()
Mike Fix 3187b6777a make titleBar uncontrolled
Mike Fix d16df95bda use editor mount for loading instead of carbon's
Mike Fix 7fd9ecf829 Update where spinner occurs
Mike Fix 608392b517 use forward ref in carbon
Mike Fix b7bc227522 clean up <Carbon/> - remove resize-observer
Sean a89c320757 move and fix theme specific css ()
Michael Fix 80122adea6
Use dynamic import components ()
* use dynamic import components

 - react-color components
 - Watermark

* Dynamically import modes

* revert next.config.js

* update language filter
Jake Dexheimer 4571b03eb4 clean up menu controls position, about page
Miloš Sutanovac 09397baf7b Adds CLI hooks (IDs) to certain elements ()
* Adds CLI hooks (ids) to certain elements

* Update Carbon.js

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

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

* remove unneeded class function

* inline handleLanguageChange
Michael Fix 6c9a09e522
Clean up () (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
Michael Fix c22a8e2a0d
Remove gDSFP in Carbon ()
* remove gDSFP in Carbon

* add comment
Michael Fix a9b25e05a3
Performance improvements ()
* 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
Mike Fix 4f7938d931 Run prettier
Michael Fix 86be3aae35
update spinner for react-codemirror2 ()
Jake Dexheimer b7c8466711 fix mobile overflow issue ()
Jake Archibald c4e224df29 Adding line-height setting & granular font size. ()
* Adding line-height option. Fixes .

* Allowing more granular font size
Michael Fix 2a52d101e7
Fix spinner position ()
Michael Fix a81107d723 Remove UNSAFE lifecycle methods ()
* Remove UNSAFE lifecycle methods

* Fix gDSFP issue

* Extract onBeforeChange

* Remove this from getDerivedStateFromProps
Brian Dennis d885b63b3a add alt text support for Twitter images ()
* add alt text support for Twitter images

* move constant declarations up

* Use UNSAFE_cWRP

* remove duplicate TODO (whoops)
Michael Fix 3bbb98a3a2
Revert "Refactor state components ()" ()
This reverts commit 0a59db56c8.
Michael Fix 0a59db56c8
Refactor state components ()
* 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
Mike Fix e02d5e1ddf Add TODOs when upgrading to React@16.3
Michael Fix 5691236934
Refactor index.js ()
* 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
Ian Wang 6bf64a6ae0 delay loading highlightjs & codemirror theme ()
Mike Fix 1f9076c679 Implement Shift-tab to dedent
- Closes 
Michael Fix 5a4cdd7d7f
Lint and fix issues, don't add linting yet though ()
* Lint and fix issue, don't add linting yet though

* Clean up

* Remove /about href
Michael Fix a6324586eb Performance improvements ()
* 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
Jake Dexheimer c6be4f0295 prettier
Jake Dexheimer 9499248e1c
Add watermark feature ()
* Add watermark feature

* Change watermark to carbon logo

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

* Added state for title bar
Dillon Mulroy 91cf4b7734 import default settings from constants
Jake Dexheimer cbc6824b83 Background image settings ()
* Implement drag-n-drop image for backgrounds

- Closes 

* 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
Michael Fix 508afdfbb4
Implement drag-n-drop image for backgrounds ()
- Closes 
Michael Fix a394079b2a
Make default font one without ligatures ()
Mike Fix 28577aaf64 Font fixes
Jake Dexheimer 38cc0f91af Font support ()
* Add font family/font size support

* Load fonts with css

* Change settings item order
Rafael Câmara a4cfaab3a7 Adding drop shadow offset-y and blur-radius menu option ()
* Adding drop shadow offset-y and blur-radius menu option

* Fixing @jakedex concerns

* Fixing drop-shadow blur-radius label to fit the pattern
Jake Dexheimer 5ecb19c6b6 Fix export alpha padding issue
Michael Fix 70e9e40811
Add max-width to container ()
- Closes 
Michael Fix 94e4767808
Debounce language changes ()
- Closes 
slorber 4cfbb8f3d1 fix cursor jumping at the end after every editor update
briandennis 2eee0078e7 fix background rendering
Michael Fix bdc9211d25 Fix state bugs, fix drag-n-drop bugs, fix url encoding bugs ()
* react-codemirror to react-codemirror2@3

* Fix encoding queryParam issues

* Fix gist support
Jake Dexheimer b4e5459432 Update dependencies ()
* Upgrade react, react-dom, react-color, next

* Use dynamic styles in Carbon.js

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

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

* Fix tag name
Mike Fix 598ca88b98 React-codemirror -> react-codemirror2
- Closes 
Jake Dexheimer 7bfa2ef621 Add support for more clike languages
Andrew f3b80b1783 Use mode instead of module
Jake Dexheimer 27bad782b4 Fix solarized theme, remove redundant light:true
Andrew 3cbcb49c27 Remove semicolons
Andrew Dassonville 7e69ca2897 Add prettier
Jake Dexheimer c523af5dff Increase font size
Jake Dexheimer c099c763be Fix windows scrollbar issue
Jake Dexheimer d6b4db144a Default theme
Jake Dexheimer bb9efd6e38 Fix double select, buttons align
Jake Dexheimer 7b00c6e37a Minor window controls changes
Jake Dexheimer c4b09d58a9 Fix solarized theme
Mike Fix 3ca3e254b2 Fix language inconsistancies
- Depend on toHash
- Move auto out of languages export
briandennis d8f2735437 fix render bug
briandennis 535da42962 add auto detection for languages
briandennis dd9ba60d70 set languge when changed from toolbar
Jake Dexheimer bf374f1728 Clean up styles
- Move globals out of Meta component
- Create style components for Reset and TypeSystem