personal changes

This commit is contained in:
serkan 2018-12-25 04:16:47 +03:00
parent 4ea54e6efa
commit da5668e649
3 changed files with 18 additions and 11 deletions

View File

@ -1,14 +1,14 @@
command: `./github-activity.widget/run.sh`, command: `./GithubActivity/run.sh`,
refreshFrequency: 3600000, refreshFrequency: 3600000,
style: "\ style: "\
#github-activity {\ #github-activity {\
position: absolute;\ position: absolute;\
left: 50%;\ left: 50%;\
top: 50%;\ bottom: 20px;\
transform: translateX(-50%) translateY(-50%);\ transform: translateX(-50%);\
}", }",
render: () => { render: () => {
return "<style>#github-activity-widget-index-js { width: 100%; height: 100%; }</style>"; return "<style>#GithubActivity-index-js { width: 100%; height: 100%; }</style>";
}, },
update: (output, domEl) => { update: (output, domEl) => {
domEl.innerHTML += output; domEl.innerHTML += output;

4
run.sh
View File

@ -2,8 +2,8 @@
if [ -f /usr/local/bin/node ]; then if [ -f /usr/local/bin/node ]; then
# If node is installed via Homebrew, use it # If node is installed via Homebrew, use it
/usr/local/bin/node ./github-activity.widget/src/generate.js /usr/local/bin/node ./GithubActivity/src/generate.js
else else
# Fallback to normal # Fallback to normal
node ./github-activity.widget/src/generate.js node ./GithubActivity/src/generate.js
fi fi

View File

@ -1,12 +1,12 @@
// For documentation on these options, see the README at https://github.com/shadowfacts/uebersicht-github-activity/ // For documentation on these options, see the README at https://github.com/shadowfacts/uebersicht-github-activity/
const options = { const options = {
user: "shadowfacts", user: "serkakres",
size: 44, size: 26,
incrAmount: 6, incrAmount: 4,
margin: 2, margin: 2,
vary: ["size", "color"], vary: ["size", "color"],
shape: "circle", shape: "circle",
theme: "red", theme: "blue",
colors: { colors: {
overrides: { overrides: {
none: [null, null], none: [null, null],
@ -29,6 +29,13 @@ const options = {
three: ["#44a340", "#8cc665"], three: ["#44a340", "#8cc665"],
max: ["#1e6823", "#44a340"] max: ["#1e6823", "#44a340"]
}, },
greenish: {
none: ["#", "#"],
one: ["#d6e685", "#"],
two: ["#8cc665", "#"],
three: ["#44a340", "#"],
max: ["#1e6823", "#"]
},
white: { white: {
none: ["#000", "#000"], none: ["#000", "#000"],
one: ["#444", "#222"], one: ["#444", "#222"],
@ -37,7 +44,7 @@ const options = {
max: ["#eee", "#aaa"] max: ["#eee", "#aaa"]
}, },
blue: { blue: {
none: ["#111", "#111"], none: ["#", "#"],
one: ["#0723b2", "#041469"], one: ["#0723b2", "#041469"],
two: ["#0244b2", "#0723b2"], two: ["#0244b2", "#0723b2"],
three: ["#006ec9", "#0244b2"], three: ["#006ec9", "#0244b2"],