137 Commits (690a3637649c93f2274047579e07a8cd57ad6f92)

Author SHA1 Message Date
Mike Fix 9beaaab7f7
fix cursor on mobile
Closes #941
5 years ago
Mike Fix f53a9178f2
this always gets filtered 5 years ago
Mike Fix 24b685ae72 hide style editor on escape instead of removing selection 5 years ago
Mike Fix 5414683f85 remove old commented out code 5 years ago
Mike Fix 423e578acd render styling palette to toolbar 5 years ago
Mike Fix 71e6d44ab3 disregard selection position 5 years ago
Mike Fix 7da5054207 move selection editor palette 5 years ago
Mike Fix 8c906db3c5
clean up Carbon 5 years ago
Mike Fix 625bbd4773
clean up selected lines reducer 5 years ago
Michael Fix 87ded86e5d
add escape listener to selection editor (#900) 5 years ago
Mike Fix 743d4eb468
remove pollInterval from Codemirror 5 years ago
Bakti Aditya f3bdaf4001 Display whitespace (#879)
* Display whitespace

resolve #877

* Update

* Update Settings.js

* hiddenCharacters

* tweak

* clean up a bit
5 years ago
Viktor Nemes 191113aa5f Load selected lines from query params (#878)
* Make the editorRef as a required parameter of useGutterClickHandler

For the external line number selection it is required that we access the CodeMirror editor anywhere in the hook

* Refactor the line highlight logic to handle "unknown" lines as non-selected

Only execute the highlight when there is a valid selection (there are some keys set in state.selected)
Additionally also execute the highlight logic when the line numbers are not visible (E.g. line.gutter is falsy)

* Pass in the selectedLines from the query string and implement the pre-selection logic

* Rename useGutterClickHandler to better explain its function

* Adding nemesv as contributor

* quick tweak

* tweak
5 years ago
Mike Fix 3ed6405811 remove selection capabilities from embed 5 years ago
Andrew Dassonville 830442c64a Add support for first line number setting (#849)
* Add support for first line number setting

* Set min value to 0

* Add number types

* add label and width settings to Input

* use Input component instead of Text

* remove unused types

* first-row -> first-line-number-row

* more .row into global stylesheet
5 years ago
Michael Fix ecaf48b30c
Bundle size (#844)
* just load SketchPicker

* remove colornames package

* load other highlight.js modes lazily

* add bundle analyzer hook

* only load modes once per session

* fix up modes loaded

* fix up
5 years ago
Mike Fix 27cd3aefe7 fix editor selection state and improve click outside 5 years ago
Mike Fix e180b9de8b improve highlight positioning 5 years ago
Mike Fix 7f8381c627 noop 5 years ago
Mike Fix 3ad106cd20 refactor onSelectionChange to class scope 5 years ago
Mike Fix 37debfdbad refactor onMouseUp to class scope 5 years ago
Mike Fix fc988fefba modifierOpenAt -> selectionAt 5 years ago
Mike Fix 20b56e9957 refactor onSelection to class scope 5 years ago
Mike Fix c6ce1662b2 pos -> position 5 years ago
Mike Fix d42b0ec65b refactor SelectionEditor into own file 5 years ago
Mike Fix 869ca859e2 bold, italics, underline, color work 5 years ago
Mike Fix a91d2f2307 More WIP 5 years ago
Mike Fix cdaee55f0d WIP 5 years ago
Michael Fix 4ec70a2bf6
Repository changes from org change (#840)
* dawnlabs -> carbon-app

* update READMEs

* remove logo from translated readmes

* change project link

* update license

* remove case study link from translated READMEs
5 years ago
Mike Fix 8b5d766d1e improve searchLanguage 5 years ago
Mike Fix d43c5766cf use useCallback for useGutterClickHandler 5 years ago
Mike Fix 7510dcb5ea refactor onGutterClick to remove editorRef 5 years ago
Mike Fix 348ee2050d use useReducer for selected lines 5 years ago
Mike Fix 55e01231d9 move mode loading into useEffect 5 years ago
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