mirror of
https://github.com/dilllxd/gitfolio.git
synced 2024-08-14 22:28:09 +00:00
Re-add Telegram support
This commit is contained in:
parent
62b9ee4e5d
commit
4931a6a893
7 changed files with 17 additions and 2 deletions
|
@ -12,7 +12,7 @@ before_install:
|
||||||
before_script:
|
before_script:
|
||||||
- npm install -g
|
- npm install -g
|
||||||
script:
|
script:
|
||||||
- gitfolio build k4ustu3h --fork --theme dark --sort updated --twitter k4ustu3h_ --dribbble k4ustu3h --email k4ustu3h@gmail.com --codepen k4ustu3h --dev k4ustu3h --instagram k4ustu3h
|
- gitfolio build k4ustu3h --fork --theme dark --sort updated --twitter k4ustu3h_ --dribbble k4ustu3h --email k4ustu3h@gmail.com --codepen k4ustu3h --dev k4ustu3h --instagram k4ustu3h --telegram k4ustu3h
|
||||||
after_success:
|
after_success:
|
||||||
- lhci autorun --upload.target=temporary-public-storage --staticDistDir=/home/travis/build/k4ustu3h/gitfolio/dist
|
- lhci autorun --upload.target=temporary-public-storage --staticDistDir=/home/travis/build/k4ustu3h/gitfolio/dist
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
@ -31,7 +31,8 @@ program
|
||||||
.option("-D, --dribbble [username]", "specify dribbble username")
|
.option("-D, --dribbble [username]", "specify dribbble username")
|
||||||
.option("-e, --email [username]", "specify email")
|
.option("-e, --email [username]", "specify email")
|
||||||
.option("-i, --instagram [username]", "specify instagram username")
|
.option("-i, --instagram [username]", "specify instagram username")
|
||||||
.option("-T, --twitter [username]", "specify twitter username")
|
.option("-T, --telegram [username]", "specify telegram username")
|
||||||
|
.option("-w, --twitter [username]", "specify twitter username")
|
||||||
.action(buildCommand);
|
.action(buildCommand);
|
||||||
|
|
||||||
program
|
program
|
||||||
|
|
1
build.js
1
build.js
|
@ -82,6 +82,7 @@ async function buildCommand(username, program) {
|
||||||
dribbble: program.dribbble,
|
dribbble: program.dribbble,
|
||||||
email: program.email,
|
email: program.email,
|
||||||
instagram: program.instagram,
|
instagram: program.instagram,
|
||||||
|
telegram: program.telegram,
|
||||||
twitter: program.twitter
|
twitter: program.twitter
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ module.exports.updateHTML = (username, opts) => {
|
||||||
dribbble,
|
dribbble,
|
||||||
email,
|
email,
|
||||||
instagram,
|
instagram,
|
||||||
|
telegram,
|
||||||
twitter
|
twitter
|
||||||
} = opts;
|
} = opts;
|
||||||
//add data to assets/index.html
|
//add data to assets/index.html
|
||||||
|
@ -154,6 +155,9 @@ module.exports.updateHTML = (username, opts) => {
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
instagram == null ? "none !important" : "block"
|
instagram == null ? "none !important" : "block"
|
||||||
};"><a href="https://www.instagram.com/${instagram}" target="_blank" class="socials"><i class="mdi mdi-instagram"></i></a></span>
|
};"><a href="https://www.instagram.com/${instagram}" target="_blank" class="socials"><i class="mdi mdi-instagram"></i></a></span>
|
||||||
|
<span style="display:${
|
||||||
|
telegram == null ? "none !important" : "block"
|
||||||
|
};"><a href="https://t.me/${telegram}" target="_blank" class="socials"><i class="mdi mdi-telegram"></i></a></span>
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
twitter == null ? "none !important" : "block"
|
twitter == null ? "none !important" : "block"
|
||||||
};"><a href="https://www.twitter.com/${twitter}" target="_blank" class="socials"><i class="mdi mdi-twitter"></i></a></span>
|
};"><a href="https://www.twitter.com/${twitter}" target="_blank" class="socials"><i class="mdi mdi-twitter"></i></a></span>
|
||||||
|
|
2
ui.js
2
ui.js
|
@ -56,6 +56,7 @@ function uiCommand() {
|
||||||
let dribbble = req.body.dribbble ? req.body.dribbble : null;
|
let dribbble = req.body.dribbble ? req.body.dribbble : null;
|
||||||
let email = req.body.email ? req.body.email : null;
|
let email = req.body.email ? req.body.email : null;
|
||||||
let instagram = req.body.instagram ? req.body.instagram : null;
|
let instagram = req.body.instagram ? req.body.instagram : null;
|
||||||
|
let telegram = req.body.telegram ? req.body.telegram : null;
|
||||||
let twitter = req.body.twitter ? req.body.twitter : null;
|
let twitter = req.body.twitter ? req.body.twitter : null;
|
||||||
let background = req.body.background
|
let background = req.body.background
|
||||||
? req.body.background
|
? req.body.background
|
||||||
|
@ -71,6 +72,7 @@ function uiCommand() {
|
||||||
dribbble: dribbble,
|
dribbble: dribbble,
|
||||||
email: email,
|
email: email,
|
||||||
instagram: instagram,
|
instagram: instagram,
|
||||||
|
telegram: telegram,
|
||||||
twitter: twitter
|
twitter: twitter
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ async function updateCommand() {
|
||||||
dribbble: data[0].dribbble,
|
dribbble: data[0].dribbble,
|
||||||
email: data[0].email,
|
email: data[0].email,
|
||||||
instagram: data[0].instagram,
|
instagram: data[0].instagram,
|
||||||
|
telegram: data[0].telegram,
|
||||||
twitter: data[0].twitter
|
twitter: data[0].twitter
|
||||||
};
|
};
|
||||||
updateHTML(username, opts);
|
updateHTML(username, opts);
|
||||||
|
|
|
@ -145,6 +145,12 @@
|
||||||
id="instagram"
|
id="instagram"
|
||||||
name="instagram"
|
name="instagram"
|
||||||
/>
|
/>
|
||||||
|
<br />
|
||||||
|
<input type="text"
|
||||||
|
class="input h-weight-bold"
|
||||||
|
placeholder="telegram username"
|
||||||
|
id="telegram"
|
||||||
|
name="telegram" /><br />
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
class="input h-weight-bold"
|
class="input h-weight-bold"
|
||||||
|
|
Loading…
Reference in a new issue