From e6439960191389a0831050520708210d609c6e7e Mon Sep 17 00:00:00 2001 From: Christian Sarnataro Date: Sat, 11 Feb 2023 00:10:29 +0100 Subject: [PATCH 1/6] Added social links to Skype and Telegram --- README.md | 6 +++++- gitprofile.config.js | 2 ++ package.json | 2 +- src/components/details/index.jsx | 19 +++++++++++++++++++ src/helpers/utils.jsx | 2 ++ 5 files changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2298efcec..d1635ea44 100644 --- a/README.md +++ b/README.md @@ -221,6 +221,8 @@ const config = { dev: '', stackoverflow: '', website: '', + skype: '', + telegram: '', phone: '', email: '', }, @@ -442,7 +444,7 @@ Your avatar and bio will be fetched from GitHub automatically. ### Social Links -You can link your social media services you're using, including LinkedIn, Twitter, Facebook, Instagram, Dribbble, Behance, Medium, dev, Stack Overflow, personal website, phone and email. +You can link your social media services you're using, including LinkedIn, Twitter, Facebook, Instagram, Dribbble, Behance, Medium, dev, Stack Overflow, Skype, Telegram, personal website, phone and email. ```js // gitprofile.config.js @@ -459,6 +461,8 @@ module.exports = { dev: '', stackoverflow: '', website: '', + skype: '', + telegram: '', phone: '', email: '', }, diff --git a/gitprofile.config.js b/gitprofile.config.js index 3a96094cf..00c9aa176 100644 --- a/gitprofile.config.js +++ b/gitprofile.config.js @@ -23,6 +23,8 @@ const config = { website: 'https://arifszn.com', phone: '', email: 'arifulalamszn@gmail.com', + skype: 'arifszn', + telegram: 'arifszn', }, resume: { fileUrl: diff --git a/package.json b/package.json index 4835769b9..a537d075b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@arifszn/gitprofile", "description": "Create an automatic portfolio based on GitHub profile", - "version": "2.2.1", + "version": "2.2.2", "license": "MIT", "author": "arifszn", "repository": { diff --git a/src/components/details/index.jsx b/src/components/details/index.jsx index d84144a9d..22564d43d 100644 --- a/src/components/details/index.jsx +++ b/src/components/details/index.jsx @@ -15,7 +15,9 @@ import { FaDev, FaFacebook, FaGlobe, + FaSkype, FaStackOverflow, + FaTelegram, } from 'react-icons/fa'; import PropTypes from 'prop-types'; import { skeleton } from '../../helpers/utils'; @@ -186,6 +188,23 @@ const Details = ({ profile, loading, social, github }) => { link={social.website} /> )} + {social?.skype && ( + } + title="Skype" + value={social.skype} + link={`skype:${social.skype}?chat`} + /> + )} + {social?.telegram && ( + } + title="Telegram" + value={social.telegram} + link={`https://t.me/${social.telegram}`} + /> + )} + {social?.phone && ( } diff --git a/src/helpers/utils.jsx b/src/helpers/utils.jsx index 7a3c22d26..4b06ad15a 100644 --- a/src/helpers/utils.jsx +++ b/src/helpers/utils.jsx @@ -157,6 +157,8 @@ export const sanitizeConfig = (config) => { website: config?.social?.website, phone: config?.social?.phone, email: config?.social?.email, + skype: config?.social?.skype, + telegram: config?.social?.telegram, }, resume: { fileUrl: config?.resume?.fileUrl || '', From e7a343c1c0f7d5c1a8b719e7c3563364a17d3e98 Mon Sep 17 00:00:00 2001 From: Christian Sarnataro Date: Sat, 11 Feb 2023 00:12:23 +0100 Subject: [PATCH 2/6] Bumped version to 2.3.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a537d075b..922c07071 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@arifszn/gitprofile", "description": "Create an automatic portfolio based on GitHub profile", - "version": "2.2.2", + "version": "2.3.1", "license": "MIT", "author": "arifszn", "repository": { From efaebb7892987ffff73de588b4d395af5f37c300 Mon Sep 17 00:00:00 2001 From: Christian Sarnataro Date: Wed, 15 Feb 2023 10:03:32 +0100 Subject: [PATCH 3/6] Added skype and telegram to GitProfile props * Added skype and telegram to GitProfile props via PropTypes. * Added skype and telegram to types.d.ts --- src/components/GitProfile.jsx | 2 ++ types/index.d.ts | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/GitProfile.jsx b/src/components/GitProfile.jsx index 8b7bdaa02..f0f29734e 100644 --- a/src/components/GitProfile.jsx +++ b/src/components/GitProfile.jsx @@ -255,6 +255,8 @@ GitProfile.propTypes = { dev: PropTypes.string, stackoverflow: PropTypes.string, website: PropTypes.string, + skype: PropTypes.string, + telegram: PropTypes.string, phone: PropTypes.string, email: PropTypes.string, }), diff --git a/types/index.d.ts b/types/index.d.ts index 4692db7fc..80e517986 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -94,6 +94,16 @@ export interface Social { */ website?: string; + /** + * Skype username + */ + skype?: string; + + /** + * Telegram username + */ + telegram?: string; + /** * Phone */ @@ -318,6 +328,6 @@ export interface GitProfileProps { config: Config; } -declare class GitProfile extends Component {} +declare class GitProfile extends Component { } export default GitProfile; From 17156c1dad57b98e7dae085d40d160c07a54f929 Mon Sep 17 00:00:00 2001 From: Christian Sarnataro Date: Wed, 15 Feb 2023 10:10:14 +0100 Subject: [PATCH 4/6] Minor fixes (prettier) --- types/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 80e517986..96a87d567 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -100,8 +100,8 @@ export interface Social { skype?: string; /** - * Telegram username - */ + * Telegram username + */ telegram?: string; /** @@ -328,6 +328,6 @@ export interface GitProfileProps { config: Config; } -declare class GitProfile extends Component { } +declare class GitProfile extends Component {} export default GitProfile; From f90076df3f69a6975a51bae5c7cb51960a244c6e Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sat, 18 Feb 2023 21:57:08 +0600 Subject: [PATCH 5/6] Remove skype and telegram info --- README.md | 2 +- gitprofile.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a69d905e..bd684c1a8 100644 --- a/README.md +++ b/README.md @@ -465,9 +465,9 @@ const config = { medium: '', dev: '', stackoverflow: '', - website: '', skype: '', telegram: '', + website: '', phone: '', email: '', }, diff --git a/gitprofile.config.js b/gitprofile.config.js index 6f4a056b6..345721df2 100644 --- a/gitprofile.config.js +++ b/gitprofile.config.js @@ -21,11 +21,11 @@ const config = { medium: 'arifszn', dev: 'arifszn', stackoverflow: '', // format: userid/username + skype: '', + telegram: '', website: 'https://arifszn.com', phone: '', email: 'arifulalamszn@gmail.com', - skype: 'arifszn', - telegram: 'arifszn', }, resume: { fileUrl: From ca63dc0b5d07686e7afe22e50aadd3866791ccf0 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sat, 18 Feb 2023 21:58:05 +0600 Subject: [PATCH 6/6] =?UTF-8?q?Bump=20version=20to=202.4.0=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3c433dd42..0b5869e78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@arifszn/gitprofile", - "version": "2.3.0", + "version": "2.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@arifszn/gitprofile", - "version": "2.3.0", + "version": "2.4.0", "license": "MIT", "dependencies": { "react": "^18.2.0", diff --git a/package.json b/package.json index 922c07071..4eef487b8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@arifszn/gitprofile", "description": "Create an automatic portfolio based on GitHub profile", - "version": "2.3.1", + "version": "2.4.0", "license": "MIT", "author": "arifszn", "repository": {