mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 00:46:30 +00:00
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:
parent
ee67e9adb4
commit
34ff30010e
2 changed files with 27 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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[];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue