mirror of
https://github.com/vvzvlad/vestasync.git
synced 2024-12-27 04:31:01 +03:00
rename
This commit is contained in:
parent
66f3b360d0
commit
04bbbdae4d
@ -1,12 +1,12 @@
|
|||||||
defineVirtualDevice("vestasync", {
|
defineVirtualDevice("vestasync", {
|
||||||
title: "Vestasync",
|
title: "Vestasync",
|
||||||
cells: {
|
cells: {
|
||||||
"Last push": {
|
last_push: {
|
||||||
type: "text",
|
type: "text",
|
||||||
value: "Update...",
|
value: "Update...",
|
||||||
title: "Last push"
|
title: "Last push"
|
||||||
},
|
},
|
||||||
"Current commit": {
|
last_commit: {
|
||||||
type: "text",
|
type: "text",
|
||||||
value: "Update...",
|
value: "Update...",
|
||||||
title: "Last commit hash"
|
title: "Last commit hash"
|
||||||
@ -56,7 +56,7 @@ function _update_vestasync() {
|
|||||||
} else {
|
} else {
|
||||||
human_readable_time = "just now";
|
human_readable_time = "just now";
|
||||||
}
|
}
|
||||||
dev.vestasync["Last push"] = human_readable_time;
|
dev.vestasync.last_push = human_readable_time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -65,7 +65,7 @@ function _update_vestasync() {
|
|||||||
exitCallback: function (exitCode, capturedOutput) {
|
exitCallback: function (exitCode, capturedOutput) {
|
||||||
if (exitCode === 0) {
|
if (exitCode === 0) {
|
||||||
var shortenedCommit = capturedOutput.trim().substring(0, 10);
|
var shortenedCommit = capturedOutput.trim().substring(0, 10);
|
||||||
dev.vestasync["Current commit"] = shortenedCommit;
|
dev.vestasync.last_commit = shortenedCommit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user