Show environ in every BuildProc (#526)

* Show environ in every BuildProc

* show environ next to build proc

Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
Nulo 2021-11-23 00:51:19 -03:00 committed by GitHub
parent ee67e9adb4
commit 34ff30010e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 4 deletions

View file

@ -7,7 +7,29 @@
<div class="flex flex-col w-3/12 text-gray-200 dark:text-gray-400">
<div v-for="proc in build.procs" :key="proc.id">
<div class="p-4 pb-1">{{ proc.name }}</div>
<div class="p-4 pb-1 flex flex-wrap items-center justify-between">
<span>{{ proc.name }}</span>
<div v-if="proc.environ" class="text-xs">
<div v-for="(value, key) in proc.environ" :key="key">
<span
class="
pl-2
pr-1
py-0.5
bg-gray-800
dark:bg-gray-600
border-2 border-gray-800
dark:border-gray-600
rounded-l-full
"
>{{ key }}</span
>
<span class="pl-1 pr-2 py-0.5 border-2 border-gray-800 dark:border-gray-600 rounded-r-full">{{
value
}}</span>
</div>
</div>
</div>
<div
v-for="job in proc.children"
:key="job.pid"

View file

@ -104,9 +104,10 @@ export type BuildProc = {
name: string;
state: BuildStatus;
exit_code: number;
start_time: number;
end_time: number;
machine: string;
environ?: Record<string, string>;
start_time?: number;
end_time?: number;
machine?: string;
children?: BuildProc[];
};