-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor * small refactor of radio options * improve session data logic * refactor * add react functionality * refactor * refactor dropzone * prettier adds 6mb to build size * update version and readme
- Loading branch information
Showing
26 changed files
with
229 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"name": "svg-gobbler", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"author": "rossmoody <[email protected]>", | ||
"description": "SVG Gobbler is a simple browser extension that highlights any available SVG content in your current window and lets you download it.", | ||
"description": "Download and optimize icons, logos, and vector SVGs.", | ||
"license": "apache-2.0", | ||
"scripts": { | ||
"start": "rm -rf ./extension/dist && webpack --mode 'development' --watch --devtool 'cheap-module-source-map'", | ||
"build": "rm -rf ./extension/dist && webpack --mode 'production' && yarn package && yarn zip", | ||
"build": "rm -rf ./extension/dist && webpack --mode 'production' && yarn package", | ||
"lint": "npx eslint . --ext .tsx,.ts --fix", | ||
"zip": "zip -vr firefox.zip ./ -x 'node_modules/*' 'web-ext-artifacts/*'", | ||
"package": "web-ext build --source-dir ./extension --overwrite-dest", | ||
"firefox": "web-ext run --source-dir ./extension" | ||
"firefox": "web-ext run --source-dir ./extension", | ||
"pretty": "prettier --write ./src" | ||
}, | ||
"prettier": "prettier-config-rossmoody", | ||
"eslintConfig": { | ||
|
@@ -32,6 +32,7 @@ | |
"@feedback-fish/react": "^1.2.1", | ||
"@types/chrome": "^0.0.145", | ||
"@types/file-saver": "^2.0.2", | ||
"@types/prettier": "^2.3.2", | ||
"@types/react": "^17.0.11", | ||
"@types/react-dom": "^17.0.8", | ||
"@types/react-syntax-highlighter": "^13.5.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export async function reactify(svgString: string) { | ||
const res = await fetch( | ||
'https://www.svggobbler.com/.netlify/functions/svgr', | ||
{ | ||
headers: { | ||
'content-type': 'application/json', | ||
}, | ||
method: 'post', | ||
body: svgString, | ||
} | ||
) | ||
|
||
const json = await res.json() | ||
return json | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import { Radio } from '@chakra-ui/react' | ||
|
||
interface RadioOption { | ||
label: string | ||
value: string | ||
} | ||
|
||
export const RadioOption = ({ label, value }: RadioOption) => ( | ||
<Radio _hover={{ cursor: 'pointer' }} value={value} id={label}> | ||
{label} | ||
</Radio> | ||
) |
2 changes: 1 addition & 1 deletion
2
...uild/components/drawer/process-strings.ts → ...ld/components/drawer/svgo/svgo-configs.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/build/components/drawer/options-data.ts → ...ld/components/drawer/svgo/svgo-plugins.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Option } from '../../types' | ||
import { Option } from '../../../types' | ||
|
||
const optionsData: Option[] = [ | ||
{ | ||
|
Oops, something went wrong.