Skip to content

Commit

Permalink
chore(ui): remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Ismail Reida <ismail.reida@ovhcloud.com>
  • Loading branch information
ismailrei committed Aug 19, 2020
1 parent 9c1762e commit 4026395
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions director/static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,6 @@ const COLORS = {
};

const REPO_LINK = "https://github.com/ovh/celery-director"
function getNode(task) {
return {
id: task.id,
label: task.key,
shape: 'box',
borderWidth: 1,
color: {
border: COLORS[task.status]['border'],
background: COLORS[task.status]['background'],
highlight: {
background: COLORS[task.status]['background'],
border: COLORS[task.status]['hlborder'],
}
},
font: {
face: 'arial',
align: 'center',
color: '#fff',
strokeWidth: 0,
strokeColor: '#ffffff',
}
};
}

const router = new VueRouter({
mode: HISTORY_MODE ? 'history' : 'hash',
Expand Down Expand Up @@ -127,7 +104,6 @@ const store = new Vuex.Store({
html += "<span class=details>" + tasks[i].status + "</span>";
html += "</div>";

var color = COLORS[tasks[i].status]["background"];
g.setNode(tasks[i].id, {
labelType: "html",
label: html,
Expand Down

0 comments on commit 4026395

Please sign in to comment.