Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

95 changes: 35 additions & 60 deletions resources/js/BuddyLog.vue
Original file line number Diff line number Diff line change
@@ -1,73 +1,48 @@
<template>
<div>
<div class="flex items-center justify-between mb-3">
<h1>Buddy</h1>

<buddy-deploy :route="deployRoute" @onDeployed="onDeployed" />
</div>
<header class="mb-6">
<div class="flex items-center">
<h1 class="flex-1">Deploy with Buddy</h1>
<div class="btn-group mr-4">
<buddy-deploy :route="deployRoute" @onDeployed="onDeployed" />
</div>
</div>
</header>

<div v-if="!hasLoaded" class="flex justify-center">
<loading-graphic :inline="true" :size="22" />
</div>

<div v-if="hasLoaded" class="p-0">
<ol>
<li class="card mb-2 p-0" v-for="{ title, items } in logs" :key="title">
<div class="flex py-2 px-4 gap-2 border-b bg-grey-20 rounded-t">
<div class="block w-5 text-grey-70">
<svg-icon name="calendar" class="icon"></svg-icon>
<div v-else class="gap-2 flex flex-col">
<div class="card overflow-hidden p-0" v-for="{ title, items } in logs" :key="title">
<div class="flex justify-between items-center p-4">
<h2><span>{{ title }}</span></h2>
</div>
<ol>
<li class="flex items-center py-2 px-4 border-b" v-for="item in items" :key="item.id">
<div class="text-grey-80">
<b class="mr-2 text-grey-100">Run #{{ item.id }}</b>
{{ item.comment }}
</div>
<h2 class="text-base text-grey-80 font-medium">{{ title }}</h2>
</div>

<ol>
<li
class="flex items-center py-2 px-4 border-b"
v-for="item in items"
:key="item.id"
>
<div class="text-grey-80">
<b class="mr-2 text-grey-100">Run #{{ item.id }}</b>
{{ item.comment }}
</div>

<div class="ml-auto flex gap-2 text-grey-70 text-">
<time :datetime="item.date">{{ item.time }}</time>
<span
class="flex items-center justify-center w-6 h-6 rounded-full"
>
<span
class="flex items-center justify-center w-6 h-6 rounded-full text-white"
style="padding: 6px"
:class="{
'bg-green': item.status === 'SUCCESSFUL',
'bg-yellow-dark': item.status === 'INPROGRESS',
'bg-red': item.status === 'FAILED',
}"
>
<svg-icon
v-if="item.status === 'SUCCESSFUL'"
name="check"
class="icon"
></svg-icon>
<svg-icon
v-if="item.status === 'FAILED'"
name="close"
class="icon"
></svg-icon>
<loading-graphic
v-if="item.status === 'INPROGRESS'"
:inline="true"
:size="22"
text=""
/>
</span>
<div class="ml-auto flex gap-2 text-grey-70 text-">
<time :datetime="item.date">{{ item.time }}</time>
<span class="flex items-center justify-center w-6 h-6 rounded-full">
<span class="flex items-center justify-center w-6 h-6 rounded-full text-white" style="padding: 6px"
:class="{
'bg-green': item.status === 'SUCCESSFUL',
'bg-yellow-dark': item.status === 'INPROGRESS',
'bg-red': item.status === 'FAILED',
}">
<svg-icon v-if="item.status === 'SUCCESSFUL'" name="check" class="icon"></svg-icon>
<svg-icon v-if="item.status === 'FAILED'" name="close" class="icon"></svg-icon>
<loading-graphic v-if="item.status === 'INPROGRESS'" :inline="true" :size="22" text="" />
</span>
</div>
</li>
</ol>
</li>
</ol>
</span>
</div>
</li>
</ol>
</div>
</div>
</div>
</template>
Expand Down