Merge pull request #306 from csarnataro/add-skype-and-telegram-to-social-links

Add social links to Skype and Telegram
This commit is contained in:
Ariful Alam
2023-02-18 22:06:37 +06:00
committed by GitHub
8 changed files with 43 additions and 4 deletions

View File

@@ -222,6 +222,8 @@ const config = {
dev: '', dev: '',
stackoverflow: '', // format: userid/username stackoverflow: '', // format: userid/username
website: '', website: '',
skype: '',
telegram: '',
phone: '', phone: '',
email: '', email: '',
}, },
@@ -446,7 +448,7 @@ Your avatar and bio will be fetched from GitHub automatically.
### Social Links ### Social Links
You can link your social media services you're using, including LinkedIn, Twitter, Mastodon, 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, Mastodon, Facebook, Instagram, Dribbble, Behance, Medium, dev, Stack Overflow, Skype, Telegram, personal website, phone and email.
```js ```js
// gitprofile.config.js // gitprofile.config.js
@@ -463,6 +465,8 @@ const config = {
medium: '', medium: '',
dev: '', dev: '',
stackoverflow: '', stackoverflow: '',
skype: '',
telegram: '',
website: '', website: '',
phone: '', phone: '',
email: '', email: '',

View File

@@ -21,6 +21,8 @@ const config = {
medium: 'arifszn', medium: 'arifszn',
dev: 'arifszn', dev: 'arifszn',
stackoverflow: '', // format: userid/username stackoverflow: '', // format: userid/username
skype: '',
telegram: '',
website: 'https://arifszn.com', website: 'https://arifszn.com',
phone: '', phone: '',
email: 'arifulalamszn@gmail.com', email: 'arifulalamszn@gmail.com',

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@arifszn/gitprofile", "name": "@arifszn/gitprofile",
"version": "2.3.0", "version": "2.4.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@arifszn/gitprofile", "name": "@arifszn/gitprofile",
"version": "2.3.0", "version": "2.4.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"react": "^18.2.0", "react": "^18.2.0",

View File

@@ -1,7 +1,7 @@
{ {
"name": "@arifszn/gitprofile", "name": "@arifszn/gitprofile",
"description": "Create an automatic portfolio based on GitHub profile", "description": "Create an automatic portfolio based on GitHub profile",
"version": "2.3.0", "version": "2.4.0",
"license": "MIT", "license": "MIT",
"author": "arifszn", "author": "arifszn",
"repository": { "repository": {

View File

@@ -255,6 +255,8 @@ GitProfile.propTypes = {
dev: PropTypes.string, dev: PropTypes.string,
stackoverflow: PropTypes.string, stackoverflow: PropTypes.string,
website: PropTypes.string, website: PropTypes.string,
skype: PropTypes.string,
telegram: PropTypes.string,
phone: PropTypes.string, phone: PropTypes.string,
email: PropTypes.string, email: PropTypes.string,
}), }),

View File

@@ -15,8 +15,10 @@ import {
FaDev, FaDev,
FaFacebook, FaFacebook,
FaGlobe, FaGlobe,
FaSkype,
FaMastodon, FaMastodon,
FaStackOverflow, FaStackOverflow,
FaTelegram,
} from 'react-icons/fa'; } from 'react-icons/fa';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { skeleton } from '../../helpers/utils'; import { skeleton } from '../../helpers/utils';
@@ -210,6 +212,23 @@ const Details = ({ profile, loading, social, github }) => {
link={social.website} link={social.website}
/> />
)} )}
{social?.skype && (
<ListItem
icon={<FaSkype className="mr-2" />}
title="Skype"
value={social.skype}
link={`skype:${social.skype}?chat`}
/>
)}
{social?.telegram && (
<ListItem
icon={<FaTelegram className="mr-2" />}
title="Telegram"
value={social.telegram}
link={`https://t.me/${social.telegram}`}
/>
)}
{social?.phone && ( {social?.phone && (
<ListItem <ListItem
icon={<RiPhoneFill className="mr-2" />} icon={<RiPhoneFill className="mr-2" />}

View File

@@ -158,6 +158,8 @@ export const sanitizeConfig = (config) => {
website: config?.social?.website, website: config?.social?.website,
phone: config?.social?.phone, phone: config?.social?.phone,
email: config?.social?.email, email: config?.social?.email,
skype: config?.social?.skype,
telegram: config?.social?.telegram,
}, },
resume: { resume: {
fileUrl: config?.resume?.fileUrl || '', fileUrl: config?.resume?.fileUrl || '',

10
types/index.d.ts vendored
View File

@@ -94,6 +94,16 @@ export interface Social {
*/ */
website?: string; website?: string;
/**
* Skype username
*/
skype?: string;
/**
* Telegram username
*/
telegram?: string;
/** /**
* Phone * Phone
*/ */