Skip to content

Commit

Permalink
Update providers list and assets (#107)
Browse files Browse the repository at this point in the history
* 🔧 Pull providers assets from agid repo

* ⬆️ Update providers list and assets

* ✏️ Update pics for readme

* 🔧 Fix for vercel

* Update svgs.sh

Add z flag

* 🔧 Update package.json

* ⬆️ Bump size
  • Loading branch information
dej611 authored Oct 10, 2022
1 parent 940de60 commit 3638754
Show file tree
Hide file tree
Showing 18 changed files with 32,274 additions and 1,637 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build
dist
.rpt2_cache
coverage
temp

# misc
.DS_Store
Expand Down
33,871 changes: 32,247 additions & 1,624 deletions example/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@
},
{
"path": "./dist/index.modern.js",
"maxSize": "7.5 KB"
"maxSize": "7.6 KB"
}
]
}
}
}
Binary file modified scripts/spid-dropdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified scripts/spid-modal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion scripts/svgs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
mkdir /tmp/idp-svgs
curl -L "https://github.com/italia/spid-sp-access-button/archive/master.tar.gz" | tar -C /tmp/idp-svgs --strip-components=4 -zxf - spid-sp-access-button-master/src/production/img/spid-idp*.svg

npx svgo -f node_modules/spid-smart-button/dist/img/ -o src/shared/svgs
npx svgo -f node_modules/spid-smart-button/dist/img/idp-logos/ -o src/shared/svgs/idp-logos
npx svgo -f /tmp/idp-svgs -o src/shared/svgs/idp-logos

rm -r /tmp/idp-svgs
8 changes: 8 additions & 0 deletions src/shared/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import NamirialSVGUrl from '/./svgs/idp-logos/spid-idp-namirialid.svg';
import RegisterItSVGUrl from '/./svgs/idp-logos/spid-idp-spiditalia.svg';
import IntesaSVGUrl from '/./svgs/idp-logos/spid-idp-intesaid.svg';
import LepidaSVGUrl from '/./svgs/idp-logos/spid-idp-lepidaid.svg';
import TeamSystemSVGUrl from '/./svgs/idp-logos/spid-idp-teamsystemid.svg';

import type { RegisteredProviderRecord } from './types';

Expand Down Expand Up @@ -73,5 +74,12 @@ export const providers: Readonly<RegisteredProviderRecord>[] = [
logo: LepidaSVGUrl,
entityID: 'https://id.lepida.it/idp/shibboleth',
active: true
},
{
protocols: ['SAML'],
entityName: 'Team System ID',
logo: TeamSystemSVGUrl,
entityID: 'https://spid.teamsystem.com/idp',
active: true
}
];
2 changes: 1 addition & 1 deletion src/shared/svgs/idp-logos/spid-idp-arubaid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/shared/svgs/idp-logos/spid-idp-infocertid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/shared/svgs/idp-logos/spid-idp-intesaid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

1 comment on commit 3638754

@vercel
Copy link

@vercel vercel bot commented on 3638754 Oct 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

spid-react-button – ./

spid-react-button-dej611.vercel.app
spid-react-button.vercel.app
spid-react-button-git-main-dej611.vercel.app

Please sign in to comment.