243 Commits (acb57e634f7b06c8416f91ad79a3dd992d1ffe8b)

Author SHA1 Message Date
Michael Fix 042a20b60e
allow passing filename query param to get snippet (#1007) 4 years ago
Michael Fix a507b07dc3
Test Next public env vars (#1006)
* test next public env vars

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

* add latex highlighter
5 years ago
Michael Fix 9d9280d0ee
rename nimrod to nim (#997) 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
Michael Fix 4d621030e5
update theme variable color definitions (#990) 5 years ago
Michael Fix bc649fa0aa
allow setting variable 2 and 3 in config (#988) 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 17c0ac67b9
Upgrade dependencies (#981)
* upgrade deps

* bump dev deps

* upgrade react-codemirror2

* rename parser-bablyon to parser-babel

* update prettier options
5 years ago
Tymoteusz Makowski be2170a059
Added JetBrains Mono font. (#962) 5 years ago
Mike Fix a0c7fac3f8
update util 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
Michael Fix d5d5167571
Hook up new cypress project (#919)
* hook up new cypress project

* add --

* fix flakey test

* try removing duplicate CYPRESS_CI flag

* try this

* and this

* revert

* attempt fix URI encoding issue
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
Eric Bailey 28362d2173 Add a11y-dark theme (#887)
* Add a11y-dark theme

* rename A11y Dark
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 7189878573 remove old unused margin{Vertical,Horizontal} 5 years ago
Mike Fix 43c00407f3 remove capitalize util 5 years ago
Mike Fix 1c3ef894e3 move /snippets list auth header code into lib 5 years ago
Mike Fix 1f1dbade1d add color palette generation frontend (beta) 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 31747420d1 snippets and account pages 5 years ago
Mike Fix 420f1333c0 move blue/red colors into constants 5 years ago
Mike Fix 0d26638d1d remove routing TODO 5 years ago
Mike Fix 520e19ab44 reduce payload sent for storage 5 years ago
Mike Fix e2fb62c068 fix forking snippet with no code 5 years ago
Mike Fix 15710e8ab6 debounce carbon duplication 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
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 53405a4c99 clean up language list 5 years ago
RohitMidha23 039523d0ac Added: XQuery (#779) 5 years ago
Michael Fix a49647e128
Solidity language (#788)
* WIP: solidity, doesn't work though

* codemirror-solidity 0.1.4
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
Mike Fix d60e556b5b prevent URL length limit errors
Closes #829
5 years ago
Mike Fix 6e46b1c23b remove lib/modes 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
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 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
5 years ago
Mike Fix 02be1f6efe babylon -> babel 5 years ago
Nato Boram b757687802 Add VSCode's theme (#769)
* add vscode theme

* pin Next.js version

* remove highlight only css fetches
5 years ago
Mike Fix 4e1b6259e6 add shortname for jsx 6 years ago
greenkeeper[bot] 31569fa164 Update escape-goat to the latest version 🚀 (#735)
* fix(package): update escape-goat to version 2.0.0

* chore(package): update lockfile yarn.lock

* fix naming for escape-goat

* use colornames packages
6 years ago
Michael Fix fc715faf0d Update constants.js 6 years ago
Ahmad Awais ⚡️ f5ab1f0f1a 👌 IMPROVE: Operator vs Keyword colors 6 years ago
Ahmad Awais ⚡️ 5ac1971d9f 🐛 FIX: White color 6 years ago
Ahmad Awais ⚡️ 40ad13cc60 📦 NEW: Shades of Purple Theme 6 years ago