mirror of
https://github.com/dilllxd/gitfolio.git
synced 2024-08-14 22:28:09 +00:00
Add support for Keybase
This commit is contained in:
parent
ee3ccb26ab
commit
1c7fbe09b6
10 changed files with 41 additions and 19 deletions
|
@ -1,18 +1,17 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
}
|
||||
}
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"singleQuote": false,
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.html", "*.ejs"],
|
||||
|
|
|
@ -13,6 +13,7 @@ before_script:
|
|||
- npm install -g
|
||||
script:
|
||||
- npm run test
|
||||
- npm run prettier
|
||||
after_success:
|
||||
- lhci autorun --upload.target=temporary-public-storage --staticDistDir=/home/travis/build/k4ustu3h/gitfolio/dist
|
||||
deploy:
|
||||
|
|
|
@ -31,6 +31,7 @@ program
|
|||
.option("-D, --dribbble [username]", "specify dribbble username")
|
||||
.option("-e, --email [username]", "specify email")
|
||||
.option("-i, --instagram [username]", "specify instagram username")
|
||||
.option("-k, --keybase [username]", "specify keybase username")
|
||||
.option("-r, --reddit [username]", "specify reddit username")
|
||||
.option("-T, --telegram [username]", "specify telegram username")
|
||||
.option("-w, --twitter [username]", "specify twitter username")
|
||||
|
|
1
build.js
1
build.js
|
@ -85,6 +85,7 @@ async function buildCommand(username, program) {
|
|||
dribbble: program.dribbble,
|
||||
email: program.email,
|
||||
instagram: program.instagram,
|
||||
keybase: program.keybase,
|
||||
reddit: program.reddit,
|
||||
telegram: program.telegram,
|
||||
twitter: program.twitter
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"cli": "OUT_DIR='./dist' node bin/gitfolio.js",
|
||||
"clean": "rm -rf ./dist/*",
|
||||
"prettier": "prettier --write \"./**/*.{js,jsx,json,html,css,md}\"",
|
||||
"test": "OUT_DIR='./dist' node bin/gitfolio.js build k4ustu3h --fork --theme dark --sort updated --twitter k4ustu3h_ --dribbble k4ustu3h --email k4ustu3h@gmail.com --codepen k4ustu3h --dev k4ustu3h --instagram k4ustu3h --telegram k4ustu3h --reddit kaustubhladiya"
|
||||
"test": "OUT_DIR='./dist' node bin/gitfolio.js build k4ustu3h --fork --theme dark --sort updated --twitter k4ustu3h_ --dribbble k4ustu3h --email k4ustu3h@gmail.com --codepen k4ustu3h --dev k4ustu3h --instagram k4ustu3h --telegram k4ustu3h --reddit kaustubhladiya --keybase k4ustu3h"
|
||||
},
|
||||
"author": {
|
||||
"name": "@imfunniee and community",
|
||||
|
|
10
populate.js
10
populate.js
|
@ -38,6 +38,7 @@ module.exports.updateHTML = (username, opts) => {
|
|||
dribbble,
|
||||
email,
|
||||
instagram,
|
||||
keybase,
|
||||
reddit,
|
||||
telegram,
|
||||
twitter
|
||||
|
@ -156,6 +157,15 @@ module.exports.updateHTML = (username, opts) => {
|
|||
<span style="display:${
|
||||
instagram == null ? "none !important" : "block"
|
||||
};"><a href="https://www.instagram.com/${instagram}" target="_blank" class="socials"><i class="mdi mdi-instagram"></i></a></span>
|
||||
<span style="display:${
|
||||
keybase == null ? "none !important" : "block"
|
||||
};"><a href="https://keybase.io/${keybase}" target="_blank" class="socials"><svg height="24" width="24" viewBox="0 0 448 512">
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M286.17 419a18 18 0 1 0 18 18 18 18 0 0 0-18-18zm111.92-147.6c-9.5-14.62-39.37-52.45-87.26-73.71q-9.1-4.06-18.38-7.27a78.43 78.43 0 0 0-47.88-104.13c-12.41-4.1-23.33-6-32.41-5.77-.6-2-1.89-11 9.4-35L198.66 32l-5.48 7.56c-8.69 12.06-16.92 23.55-24.34 34.89a51 51 0 0 0-8.29-1.25c-41.53-2.45-39-2.33-41.06-2.33-50.61 0-50.75 52.12-50.75 45.88l-2.36 36.68c-1.61 27 19.75 50.21 47.63 51.85l8.93.54a214 214 0 0 0-46.29 35.54C14 304.66 14 374 14 429.77v33.64l23.32-29.8a148.6 148.6 0 0 0 14.56 37.56c5.78 10.13 14.87 9.45 19.64 7.33 4.21-1.87 10-6.92 3.75-20.11a178.29 178.29 0 0 1-15.76-53.13l46.82-59.83-24.66 74.11c58.23-42.4 157.38-61.76 236.25-38.59 34.2 10.05 67.45.69 84.74-23.84.72-1 1.2-2.16 1.85-3.22a156.09 156.09 0 0 1 2.8 28.43c0 23.3-3.69 52.93-14.88 81.64-2.52 6.46 1.76 14.5 8.6 15.74 7.42 1.57 15.33-3.1 18.37-11.15C429 443 434 414 434 382.32c0-38.58-13-77.46-35.91-110.92zM142.37 128.58l-15.7-.93-1.39 21.79 13.13.78a93 93 0 0 0 .32 19.57l-22.38-1.34a12.28 12.28 0 0 1-11.76-12.79L107 119c1-12.17 13.87-11.27 13.26-11.32l29.11 1.73a144.35 144.35 0 0 0-7 19.17zm148.42 172.18a10.51 10.51 0 0 1-14.35-1.39l-9.68-11.49-34.42 27a8.09 8.09 0 0 1-11.13-1.08l-15.78-18.64a7.38 7.38 0 0 1 1.34-10.34l34.57-27.18-14.14-16.74-17.09 13.45a7.75 7.75 0 0 1-10.59-1s-3.72-4.42-3.8-4.53a7.38 7.38 0 0 1 1.37-10.34L214 225.19s-18.51-22-18.6-22.14a9.56 9.56 0 0 1 1.74-13.42 10.38 10.38 0 0 1 14.3 1.37l81.09 96.32a9.58 9.58 0 0 1-1.74 13.44zM187.44 419a18 18 0 1 0 18 18 18 18 0 0 0-18-18z"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</span>
|
||||
<span style="display:${
|
||||
reddit == null ? "none !important" : "block"
|
||||
};"><a href="https://www.reddit.com/u/${reddit}" target="_blank" class="socials"><i class="mdi mdi-reddit"></i></a></span>
|
||||
|
|
2
ui.js
2
ui.js
|
@ -58,6 +58,7 @@ function uiCommand() {
|
|||
const dribbble = req.body.dribbble ? req.body.dribbble : null;
|
||||
const email = req.body.email ? req.body.email : null;
|
||||
const instagram = req.body.instagram ? req.body.instagram : null;
|
||||
const keybase = req.body.keybase ? req.body.keybase : null;
|
||||
const reddit = req.body.reddit ? req.body.reddit : null;
|
||||
const telegram = req.body.telegram ? req.body.telegram : null;
|
||||
const twitter = req.body.twitter ? req.body.twitter : null;
|
||||
|
@ -75,6 +76,7 @@ function uiCommand() {
|
|||
dribbble,
|
||||
email,
|
||||
instagram,
|
||||
keybase,
|
||||
reddit,
|
||||
telegram,
|
||||
twitter
|
||||
|
|
|
@ -21,6 +21,7 @@ async function updateCommand() {
|
|||
dribbble: data[0].dribbble,
|
||||
email: data[0].email,
|
||||
instagram: data[0].instagram,
|
||||
keybase: data[0].keybase,
|
||||
reddit: data[0].reddit,
|
||||
telegram: data[0].telegram,
|
||||
twitter: data[0].twitter
|
||||
|
|
|
@ -146,6 +146,14 @@
|
|||
name="instagram"
|
||||
/>
|
||||
<br />
|
||||
<input
|
||||
type="text"
|
||||
class="input h-weight-bold"
|
||||
placeholder="keybase username"
|
||||
id="keybase"
|
||||
name="keybase"
|
||||
/>
|
||||
<br />
|
||||
<input
|
||||
type="text"
|
||||
class="input h-weight-bold"
|
||||
|
|
Loading…
Reference in a new issue