Skip to content

Commit

Permalink
Sharp support (#44)
Browse files Browse the repository at this point in the history
* NPM updates to resolve dependabot security alerts

* update default icons to use familyStyle

* add support for fass prefix and querying the API for familyStyleByLicense

* reorganize URL constants

* update gitignore for dev configs

* update master readme and screenshot for Sharp Solid

* update more tests for family-aware GraphQL schema

* update contributors

* update common-types package dep

Co-authored-by: Mike Wilkerson <11575183+mlwilkerson@users.noreply.github.com>
  • Loading branch information
kelseythejackson and mlwilkerson committed Aug 31, 2022
1 parent e22f7ff commit 080c1c7
Show file tree
Hide file tree
Showing 19 changed files with 22,599 additions and 2,034 deletions.
Binary file modified images/screenshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17,400 changes: 16,311 additions & 1,089 deletions packages/fa-icon-chooser-react/example/package-lock.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion packages/fa-icon-chooser-react/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@
"@testing-library/user-event": "^12.8.3",
"react": "^17",
"react-dom": "^17",
"react-scripts": "^5.0.0",
"react-scripts": "^5.0.1",
"web-vitals": "^1.1.2"
},
"devDependencies": {
"terser": ">=5.14.2",
"minimist": ">=1.2.6",
"async": ">=2.6.4",
"node-forge": ">=1.3.0",
"follow-redirects": ">=1.14.8"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
Expand Down
1 change: 1 addition & 0 deletions packages/fa-icon-chooser/dev/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
local*.json*
*.local.json
9 changes: 7 additions & 2 deletions packages/fa-icon-chooser/dev/runtime.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// This dev-only module isn't processed by the bundler like the others,
// so we can't use a node env var to set this. Just hardcode it in one
// place at the top.
const API_URL='https://api.fontawesome.com'

const FaIconChooserDevExports = (function () {
let showingIconChooser = false
let localConfig = undefined
Expand Down Expand Up @@ -33,7 +38,7 @@ const FaIconChooserDevExports = (function () {
console.log('handleQuery: no access token found -- sending an unauthorized request')
}

return fetch( 'https://api.fontawesome.com', {
return fetch( API_URL, {
method: 'POST',
headers,
body: JSON.stringify({ query })
Expand Down Expand Up @@ -172,7 +177,7 @@ const FaIconChooserDevExports = (function () {

if(freshToken) return Promise.resolve(freshToken)

return fetch('https://api.fontawesome.com/token', {
return fetch(`${API_URL}/token`, {
method: 'POST',
headers: {
authorization: `Bearer ${ localConfig.apiToken }`
Expand Down
Loading

0 comments on commit 080c1c7

Please sign in to comment.