705 Commits (443a8e6fd20003333167a20b27867ebec33e56ac)

Author SHA1 Message Date
Mike Fix 10fa1ce2ab
improve Window controls Settings 5 years ago
Mike Fix 7eca999f4e
disable transparent row in Twitter 5 years ago
Mike Fix 9da7fb2f4e
add explanatory comment
(#1014)
5 years ago
Mike Fix 58891ffcb1
improve error underline style (#1014) 5 years ago
Mike Fix 4f05d0987a
clean up Editor class fns 5 years ago
Michael Fix fb917d01a9
Fix a11y dark embed (#1019)
* fix a11y-dark embed bug

Closes #1018

* extract global highlights into a component
5 years ago
Michael Fix b4db340511
implement underline text as error (#1015) 5 years ago
Mike Fix fcd5cee30b
sanitize export config values 5 years ago
Mike Fix a0b1e57d0c
tweak boxy theme 5 years ago
Michael Fix 7c778ed8a6
Boxy window theme (#1008)
* Add WIndows style window controls

* Add Windows style controls preview (needs work)

* Add Windows control style to settings menu

* tweaks

* add boxy windows theme

* refactor windows theme logic a bit

Co-authored-by: spikespaz <spikespaz@outlook.com>
5 years ago
Michael Fix a507b07dc3
Test Next public env vars (#1006)
* test next public env vars

* make next.config.js smaller
5 years ago
Michael Fix 44f658bb69
Upgrade highlight.js (#996)
* upgrade highlight.js

* add latex highlighter
5 years ago
Michael Fix 419070e895
Snippets name input (#992)
* snippets name input

* set 'name' property

* code

* update snippet name in /snippets

* fix imports

* snippet name -> add a name
5 years ago
Mike Fix 5b630b2867
show Copied! message for images 5 years ago
Michael Fix bc649fa0aa
allow setting variable 2 and 3 in config (#988) 5 years ago
Mike Fix c8ede18608
disable announcement 5 years ago
Michael Fix ae9b4445f1
run prettier with new config (#983)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
5 years ago
Michael Fix 6ee68e46d2
Add quick export button next to the export menu (#978)
* quick export menu

* tweaks

* move #export-menu to button
5 years ago
Mike Fix 42994f1c0d
make export menu wider 5 years ago
Mike Fix e8df2da86f
fix codemirror 'nocursor' bug 5 years ago
Mike Fix 1acbdf0529
fix copy text from embed bug
Closes #972
5 years ago
Michael Fix 3acbd9ef9c
New copy action menu (#970)
* move copy actions to a new menu

* clean up copy menu

* clean up export menu

* move flex into reset styles

* use real ellipses

* fix copy menu id and classNames

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
5 years ago
Tymoteusz Makowski be2170a059
Added JetBrains Mono font. (#962) 5 years ago
Mike Fix 68d0f0c36b
fix selection style logic
Closes #950
5 years ago
Mike Fix 942254b3a9
fix red color on small text 5 years ago
Mike Fix ba9a35e7ea
update announcement 5 years ago
Mike Fix 5d517593bb
remove sponsor link 5 years ago
Mike Fix e5b2348daf
new banner 5 years ago
Mike Fix b1b9038fbb
add offsets footer link 5 years ago
Michael Fix b4915060c5 fix text selection state (#948) 5 years ago
Michael Fix 622c8a7722
remove old unsplash photocredit if it is an exact match (#947) 5 years ago
Mike Fix 9beaaab7f7
fix cursor on mobile
Closes #941
5 years ago
Technoknol ea8aa77223 PR for Enable copy image to clipboard export #921 (#940)
* Enable copy image to clipboard export (#921)

* Add Contributor for Enable copy image to clipboard export (#921)

* (#921) Check if ClipboardItem is function.

* update clipboard menu

* clean up getCarbonImage logic

* tweak

Co-authored-by: Michael Fix <mrfix84@gmail.com>
5 years ago
Mike Fix f43eda1214
improve usability of selection styling 5 years ago
Caleb Taylor 24323a9c95 Responsive carbon (#925)
* From 768px to 920px, toolbar overflows container, shifted media query at max-width of 920px

* min-width of main content is larger than viewport, causing overflow

* main page has scrollbars even though all content visually is within viewport, removed/lessened margin on main and body

* On Firefox, the items inside toolbar second row would not match to container's height, thus would be smaller. 'flex: 1' applys flex growth, but sets the initial size of item to 0%. flex basis needs to be added as auto to fit the parent's main size property.

Co-authored-by: Michael Fix <mrfix84@gmail.com>
5 years ago
Mike Fix f53a9178f2
this always gets filtered 5 years ago
Caleb Taylor 660f148a19 Fixed first prefix always selected(hightlighted / cursor "not allowed") (#922)
* The first preset is always selected(highlighted/cursor “not allowed”). In presets file, selected is based on the value of property preset from the default settings object. All preset objects do not have this property but have id instead, since default settings has property preset, all the presets inherit the same property preset, which is why the first preset was always highlighted. Fixed by replacing key name preset to id in default settings.

* removed id key from default settings

* preset is no longer a key in default settings

Co-authored-by: Michael Fix <mrfix84@gmail.com>
5 years ago
Mike Fix 7419c3c8f9
update location routing regex 5 years ago
Mike Fix e6853a0fc2
replace trailing slash from embed
- Closes #914
5 years ago
Andrew Dassonville 31de1df62f Display login button on all pages (#909) 5 years ago
Mike Fix 40bf2160cd
move next head to /pages/account 5 years ago
Mike Fix d186958075
move stripe out of head 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
Mike Fix cc09b7f0a4
visually align Window settings 5 years ago
Michael Fix 9121359be6
restructure settings menu into Window, Editor, & Misc (#898) 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
Michael Fix 4c85fffbc7 use constant colors (#896) 5 years ago
Mike Fix 71bcb254e9
fix input onChange for Toggle 5 years ago
Mike Fix b54f92c3aa
turn off announcement 5 years ago
Mike Fix 0ac845d285
move favicon and manifest.json out of /public/static 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 38027983b0
new announcement 5 years ago
Michael Fix d9e34cbf04 add loading state to export button (#876) 5 years ago
Mike Fix fc02b0ec11
fix this.exportImage 5 years ago
Mike Fix acf91b088a
export -> exportImage 5 years ago
Michael Fix 10cc6fdb93
Improve mobile UI (#875)
* make toolbar fit window on mobile

* don't prefetch /about

* improve /about page

* fix layout for /account and /snippets

* fix img on /about mobile

* unneeded change
5 years ago
Mike Fix bd2c6aec2b tweak login button position 5 years ago
Mike Fix 8418a751d8 fix toast container position 5 years ago
Michael Fix 1090356c05 improve background select (#873) 5 years ago
Michael Fix 884e6c526c use checkbox input for toggle (#872) 5 years ago
Michael Fix 31b5b99598 Kbd elements in about (#871)
* WIP

* improve /about with keyboard shortcuts

* clean up about styles
5 years ago
Mike Fix e4da412d83 move to use meta and shift symbols to define keyboard listening 5 years ago
Mike Fix 43c00407f3 remove capitalize util 5 years ago
Michael Fix 68d8b3f2d7
remove use memo from settings (#869) 5 years ago
Mike Fix cc5c2ab94a add metakey / shortcut to open settings 5 years ago
Mike Fix 30b26bfc6a better header on mobile 5 years ago
Mike Fix 8b49b4de67 better outlining for preset list 5 years ago
Mike Fix f7f00a83cf span -> button in background image selector 5 years ago
Mike Fix 1f1dbade1d add color palette generation frontend (beta) 5 years ago
Mike Fix 799a92b5c5 better login button position 5 years ago
Mike Fix ea981b31fe turn off announcement 5 years ago
Mike Fix 0f26518d04 move login button dropdown to right 5 years ago
Michael Fix 5e55402c32 Move login button (#867)
* move login button

* reuse loginGitHub

* remove old comment
5 years ago
Michael Fix 3abed8be72 Old TODOs / PWA work (#866)
* old TODOs

* fix up old next-offline TODO

* undo changes

* add apple touch icon
5 years ago
Mike Fix 0ee3df5792 use window.pushState instead 5 years ago
Mike Fix 796994d3af fix trailing slash in embed url
- Closes #864
5 years ago
Mike Fix 5248b7551c remove automatically added meta tag 5 years ago
Mike Fix 1372a4066d create delete button from /snippets 5 years ago
Mike Fix 31747420d1 snippets and account pages 5 years ago
Mike Fix 0666d5b975 fix blob reference when SSRing 5 years ago
Mike Fix 420f1333c0 move blue/red colors into constants 5 years ago
Mike Fix 3ed6405811 remove selection capabilities from embed 5 years ago
Mike Fix f58b7e9ccd remove trailing slash from embed copy 5 years ago
Mike Fix f7998ef250 remove 'Fork' 5 years ago
Mike Fix 7408fec143 scroll jump on preset application is fixed 5 years ago
Mike Fix 9032c70dd8 fix up old Toolbar TODO 5 years ago
Mike Fix 365d900445 eliminate CodeMirror cursors on save 5 years ago
Mike Fix 50fad03fa1 prevent janky announcement hide 5 years ago
Mike Fix a44756b2ab don't show announcement when signed in 5 years ago
Mike Fix 068ad43937 fix linting 5 years ago
Mike Fix e2fb62c068 fix forking snippet with no code 5 years ago
Michael Fix e0ed4bebdc Merge in 4.0.0 (#850)
* merge in 4.0

* dev mode with firebase impl

* useReducer for toasts state
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
Michael Fix 552a9c99be
Store Unsplash background image not dataturl (#836)
* store background image, not background selection in presets

* move localStorage into save utils

* curry omit util fn

* clean up manual image upload by URL

* refactor image changes

* separate uploadImage from selectImage

* upgrade visual regression testing tests

* add TODOs
5 years ago
Mike Fix 8e1db7cb03 Merge branch 'opencollective' into master-release 5 years ago
Mike Fix 27cd3aefe7 fix editor selection state and improve click outside 5 years ago
Mike Fix 7b03e91e84 use useReducer for bold, italics, underline, and color 5 years ago
Mike Fix e180b9de8b improve highlight positioning 5 years ago
Mike Fix 7f8381c627 noop 5 years ago
Mike Fix 9dc13f702e clean up SelectionEditor code 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
Mike Fix 3e1577c13b sponsor url in footer 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
Mike Fix d9f1041740 upgrade Codemirror to 5.48.2 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 ff26f0f624 move @font-face into function component 5 years ago
Mike Fix 754965198d remove bad global styles from Settings 5 years ago
Michael Fix 12001bd64a fix encoding again (#823) 5 years ago
Michael Fix ddc611a6f9 Refactor preset state (#822)
* refactor preset state

* remove unnecessary constant
5 years ago
Adam Lusted b84474652c Added SynthWave '84 theme + Text Shadows (#810)
* - Added ability to set optional `text-shadows` on themes.
- Extended `THEMES` to include optional `shadows` setting.
- Added SynthWave '84 theme. See https://github.com/robb0wen/synthwave-vscode

* - Changed ID of `SynthWave-84` theme to `synthwave-84`
- Added synthwave-84 to LOCAL_STYLESHEETS
- Migrated SynthWave-84 theme to `static/themes/synthwave-84.css`
- reverted a few things from 3f9daaf9ecee4561f9fad1bbdb8f38fd58a631c6
  - Reverted global text-shadows
  - Reverted constants.js/themes model changes.

* Update Meta.js
5 years ago
Mike Fix 674cfd2cf3 fix twitter card meta tags 5 years ago
Tim Neutkens 7fdda47816 Add autoExport (#782)
* Add autoExport

* Upgrade Next.js

* Upgrade Next.js

* export service worker to /public

* fix service worker build - file exported to /public (unwanted)

* next next@canary

* try to fix SW

* try to fix SW

* add back _next routing for now

* try a mix of configs

* Fix service-worker serving

* Remove _next route

* Next 9

* move stuff back into /static

* fix service-worker

* don't use canary next builds

* static/banner.png -> static/brand/banner.png

* remove now-build script
5 years ago
Michael Fix 876fc24859
Minify local CSS files (#811)
* minify custom css files

* add .min to local CSS files
5 years ago
Mike Fix 43a7b5caf7 disable spellcheck on inputs 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 e1147dd887 improve font-select min height 5 years ago
Michael Fix ae35f83d5f
only include tranparent row on Twitter upload (#797) 6 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
Michael Fix a58a860332 fix firefox open export (#786) 6 years ago
Michael Fix 5acc71e2da
add keyboard listener for exporting (#777) 6 years ago
Mike Fix 7d65448428 upgrade dependencies 6 years ago
Mike Fix 7cb4740d04 fix codemirror stylesheets
- Closes #775
6 years ago
Michael Fix 22a0f9f2c1 Import/export config (#771)
* import export config

* allow rendering button as link

* pass all props to button component

* fix invalid JSON path

* prevent dragging download URL

* address concerns
6 years ago
Nato Boram b757687802 Add VSCode's theme (#769)
* add vscode theme

* pin Next.js version

* remove highlight only css fetches
6 years ago
Mike Fix cac72d79ff make export component use hooks 6 years ago