From 6996917ff2e38479eea5ba81990dad83d854ac4e Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Mon, 27 May 2019 10:38:05 +0200 Subject: [PATCH] run/task: show live timer --- src/components/rundetail.vue | 4 +- src/components/{run.vue => runsummary.vue} | 45 ++----- src/components/{collapse.vue => step.vue} | 65 +++++----- src/components/task.vue | 142 +++++++-------------- src/components/tasksummary.vue | 120 +++++++++++++++++ src/router.js | 16 +-- 6 files changed, 222 insertions(+), 170 deletions(-) rename src/components/{run.vue => runsummary.vue} (66%) rename src/components/{collapse.vue => step.vue} (62%) create mode 100644 src/components/tasksummary.vue diff --git a/src/components/rundetail.vue b/src/components/rundetail.vue index cb66783..acf33fb 100644 --- a/src/components/rundetail.vue +++ b/src/components/rundetail.vue @@ -135,7 +135,7 @@ import { userLocalRunLink, projectRunLink } from "@/util/link.js"; import { runStatus, runResultClass } from "@/util/run.js"; export default { - name: "RunDetail", + name: "rundetail", directives: { clickOutside: vClickOutside.directive }, @@ -155,7 +155,7 @@ export default { }, methods: { runStatus: runStatus, - runResultClass: runResultClass, + runResultClass: runResultClass, resetErrors() { this.stopRunError = null; this.cancelRunError = null; diff --git a/src/components/run.vue b/src/components/runsummary.vue similarity index 66% rename from src/components/run.vue rename to src/components/runsummary.vue index 8ea2505..2ffd960 100644 --- a/src/components/run.vue +++ b/src/components/runsummary.vue @@ -7,41 +7,19 @@ >
{{ fetchRunError }}
- +
Tasks
    -
  • -
    - - {{task.name}} - -
    - Waiting approval -
    -
    - depends on:   - {{dep}} -
    - -
    +
  • +
@@ -63,11 +41,12 @@ import { fetchRun } from "@/util/data.js"; import { userLocalRunTaskLink, projectRunTaskLink } from "@/util/link.js"; -import RunDetail from "@/components/rundetail.vue"; +import rundetail from "@/components/rundetail.vue"; +import task from "@/components/task.vue"; export default { - name: "run", - components: { RunDetail }, + name: "runsummary", + components: { rundetail, task }, props: { ownertype: String, ownername: String, diff --git a/src/components/collapse.vue b/src/components/step.vue similarity index 62% rename from src/components/collapse.vue rename to src/components/step.vue index 00f72e4..f1075c7 100644 --- a/src/components/collapse.vue +++ b/src/components/step.vue @@ -1,7 +1,7 @@