From 9d17e26671966406b0cecac9ea07425522be1627 Mon Sep 17 00:00:00 2001 From: Anbraten Date: Sun, 9 Jan 2022 02:21:30 +0100 Subject: [PATCH] Update build layout (#678) * show yml config of build in UI * fix after merge * improve build configs * fix approve & decline build * improve build layout * undo un-related changes * fix type * move icon back to right side Co-authored-by: 6543 <6543@obermui.de> --- .../components/build-feed/BuildFeedItem.vue | 8 +- web/src/components/layout/Panel.vue | 14 +- .../build/{BuildLogs.vue => BuildLog.vue} | 2 +- .../components/repo/build/BuildProcList.vue | 112 ++++++++ web/src/components/repo/build/BuildProcs.vue | 89 ------ web/src/components/tabs/Tab.vue | 2 +- web/src/components/tabs/Tabs.vue | 2 +- web/src/compositions/useBuild.ts | 6 +- web/src/lib/api/index.ts | 2 +- web/src/router.ts | 13 +- web/src/store/builds.ts | 2 +- web/src/views/repo/RepoBuild.vue | 261 ------------------ web/src/views/repo/RepoWrapper.vue | 2 +- web/src/views/repo/build/Build.vue | 125 +++++++++ web/src/views/repo/build/BuildWrapper.vue | 219 +++++++++++++++ 15 files changed, 487 insertions(+), 372 deletions(-) rename web/src/components/repo/build/{BuildLogs.vue => BuildLog.vue} (99%) create mode 100644 web/src/components/repo/build/BuildProcList.vue delete mode 100644 web/src/components/repo/build/BuildProcs.vue delete mode 100644 web/src/views/repo/RepoBuild.vue create mode 100644 web/src/views/repo/build/Build.vue create mode 100644 web/src/views/repo/build/BuildWrapper.vue diff --git a/web/src/components/build-feed/BuildFeedItem.vue b/web/src/components/build-feed/BuildFeedItem.vue index 972dba391..3eda8d35a 100644 --- a/web/src/components/build-feed/BuildFeedItem.vue +++ b/web/src/components/build-feed/BuildFeedItem.vue @@ -5,14 +5,14 @@ {{ build.owner }} / {{ build.name }} {{ message }}
-
- - {{ duration }} -
{{ since }}
+
+ + {{ duration }} +
diff --git a/web/src/components/layout/Panel.vue b/web/src/components/layout/Panel.vue index 9cc1ac9f7..61e36a644 100644 --- a/web/src/components/layout/Panel.vue +++ b/web/src/components/layout/Panel.vue @@ -1,6 +1,9 @@ @@ -10,8 +13,11 @@ import { defineComponent } from 'vue'; export default defineComponent({ name: 'Panel', - setup() { - return {}; + props: { + title: { + type: String, + default: '', + }, }, }); diff --git a/web/src/components/repo/build/BuildLogs.vue b/web/src/components/repo/build/BuildLog.vue similarity index 99% rename from web/src/components/repo/build/BuildLogs.vue rename to web/src/components/repo/build/BuildLog.vue index 5005bf097..580e40967 100644 --- a/web/src/components/repo/build/BuildLogs.vue +++ b/web/src/components/repo/build/BuildLog.vue @@ -28,7 +28,7 @@ import { Build, Repo } from '~/lib/api/types'; import { findProc } from '~/utils/helpers'; export default defineComponent({ - name: 'BuildLogs', + name: 'BuildLog', components: {}, diff --git a/web/src/components/repo/build/BuildProcList.vue b/web/src/components/repo/build/BuildProcList.vue new file mode 100644 index 000000000..10eafd8cf --- /dev/null +++ b/web/src/components/repo/build/BuildProcList.vue @@ -0,0 +1,112 @@ + + + diff --git a/web/src/components/repo/build/BuildProcs.vue b/web/src/components/repo/build/BuildProcs.vue deleted file mode 100644 index cd1fb22da..000000000 --- a/web/src/components/repo/build/BuildProcs.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - diff --git a/web/src/components/tabs/Tab.vue b/web/src/components/tabs/Tab.vue index 128b9cf87..28a2a4aa5 100644 --- a/web/src/components/tabs/Tab.vue +++ b/web/src/components/tabs/Tab.vue @@ -1,5 +1,5 @@ diff --git a/web/src/components/tabs/Tabs.vue b/web/src/components/tabs/Tabs.vue index 1f63e9727..caeaa2f36 100644 --- a/web/src/components/tabs/Tabs.vue +++ b/web/src/components/tabs/Tabs.vue @@ -1,6 +1,6 @@