Mike Fix
decf263b79
revert adding redaxios
...
Closes #1178
4 years ago
Luca
52ae305f64
Switches Axios to Redaxios ( #1170 )
...
* Replace Axios with Redaxios
* contributer and yarn
* forgot to remove old axios from yarn.lock
4 years ago
Amit Keinan
ecd8e631b7
Add export to imgur ( #1158 )
...
* add button and functionality
* Create a share menu and for twitter and imgur
* follow 'tweet' patterns
* remove unused carbonRef prop
* remove unused exportImgur
* share menu
* remove Share SVG
* combine tweet and imgur button components
* delete unused tweet and imgur button components
* remove options.filename
* onClickImgur
* change to async await to fix loading state
* NEXT_PUBLIC_IMGUR_CLIENT_ID
* return promise to fix loading state (remove async/await)
Co-authored-by: Mike Fix <mrfix84@gmail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
4 years ago
Mike Fix
62955fd472
window.open _blank for twitter
...
closes #1163
4 years ago
Michael Fix
042a20b60e
allow passing filename query param to get snippet ( #1007 )
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
ae9b4445f1
run prettier with new config ( #983 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
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
Mike Fix
31747420d1
snippets and account pages
5 years ago
Mike Fix
420f1333c0
move blue/red colors into constants
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
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
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
6 years ago
Mike Fix
9621e4b64a
allow console.error in eslint
6 years ago
Sean
d4d0ef9949
update gist handling ( #715 )
...
* update gist handling
* address comments
* clean up a bit
* getRouteState(router)
* move try/catch into getGist
* updateQueryString -> updateRouteState
* clean up more
* add cypress tests
* delete comments
* remove wait
6 years ago
Michael Fix
9077260a3e
Read config from gist (optional) ( #692 )
...
* read config from gist
* Update api.js
6 years ago
Michael Fix
223bccd6b1
read all api calls from context ( #691 )
6 years ago
Mike Fix
f653d73ccd
make config simpler
6 years ago
Mike Fix
3115b3cc28
fix debounce for tweet and image api calls
6 years ago
Mike Fix
b13125dd1d
add export size and square image support to safari
6 years ago
Michael Fix
0580e1c8e8
Separate API service, deploy frontend statically ( #474 )
...
* extract server into separate service
* fix basic tests with url.parse
* use Next withRouter
* remove old custom next rendering
6 years ago
Michael Fix
2a52d101e7
Fix spinner position ( #398 )
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
80cf355b44
Use gist language response ( #343 )
...
* Use gist language response
* Use gist language response - fix when no queryparams are given (#344 )
* fix when no queryparams are given
e.g. http://carbon.now.sh/3208813b324d82a9ebd197e4b1c3bae8 would still not set the language property because the initialState is null
* move gist language to its own test
* Update test
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
briandennis
fe1df904ea
pass encode state to api instead of url
7 years ago
briandennis
57dddd0b19
add /image api endpoint, use it to get carbon image if on safari
7 years ago
Mike Fix
8dec652c2a
Fix URL bugs
7 years ago
Andrew
3cbcb49c27
Remove semicolons
7 years ago
Andrew Dassonville
7e69ca2897
Add prettier
7 years ago
briandennis
f71506ffbd
move debounce to api
7 years ago
Brian Dennis
db73c56eca
Add notification of Twitter rate limiting ( #13 )
...
* add rate limiting detection to handler
* alert user on rate limit error
* Update api.js
* Add morphmorph dep
7 years ago
Mike Fix
646d8919c5
Clean up old code
7 years ago
Mike Fix
1cf0757324
Slight updates
7 years ago
briandennis
3a60e4622f
add tweet api function
7 years ago
Mike Fix
01e8b46966
Hook up imgur
8 years ago
Mike Fix
b16b0d6d78
Add Gist support
8 years ago
briandennis
820cd3b13a
move api to lib
8 years ago