- wip
This commit is contained in:
parent
d4cc6691e6
commit
0e741ea1b0
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
:class="{ 'flex-col': isVertical(), 'flex-row': isHorizontal() }"
|
class="min-w-full p-4 text-xs text-gray-500 flex flex-row gap-x-1"
|
||||||
class="min-w-full p-4 text-xs text-gray-500 flex gap-x-1"
|
|
||||||
>
|
>
|
||||||
<p class="flex flex-col sm:flex-row gap-x-1">
|
<p class="flex flex-col sm:flex-row gap-x-1">
|
||||||
<span class="font-bold whitespace-nowrap">Wersja:</span>
|
<span class="font-bold whitespace-nowrap">Wersja:</span>
|
||||||
@ -14,22 +13,17 @@
|
|||||||
</p>
|
</p>
|
||||||
<p
|
<p
|
||||||
v-if="deployInformation.release_created_at"
|
v-if="deployInformation.release_created_at"
|
||||||
class="flex flex-col sm:flex-row gap-x-1"
|
class="flex flex-col sm:flex-row gap-x-1 border-l-2 border-gray-300 pl-1"
|
||||||
:class="{ 'border-l-2 border-gray-300 pl-1': isHorizontal() }"
|
|
||||||
>
|
>
|
||||||
<span class="font-bold whitespace-nowrap">Ostatnio zbudowano:</span>
|
<span class="font-bold whitespace-nowrap">Ostatnio zbudowano:</span>
|
||||||
<span>{{ getDate() }}</span>
|
<span>{{ getDate() }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p
|
<p
|
||||||
v-if="deployInformation.github_url"
|
v-if="deployInformation.github_url"
|
||||||
:class="{ 'border-l-2 border-gray-300 pl-1': isHorizontal(), 'flex flex-col sm:flex-row gap-x-1': isVertical() }"
|
class="flex flex-col sm:flex-row gap-x-1 border-l-2 border-gray-300 pl-1"
|
||||||
>
|
>
|
||||||
<span
|
<span class="hidden sm:block font-bold whitespace-nowrap">Repozytorium:</span>
|
||||||
v-if="isVertical()"
|
<span class="block sm:hidden font-bold whitespace-nowrap">Repo:</span>
|
||||||
class="font-bold whitespace-nowrap"
|
|
||||||
>
|
|
||||||
Repozytorium:
|
|
||||||
</span>
|
|
||||||
<a
|
<a
|
||||||
v-if="deployInformation.github_url"
|
v-if="deployInformation.github_url"
|
||||||
class="text-gray-800 whitespace-nowrap underline hover:no-underline hover:text-blumilk-600"
|
class="text-gray-800 whitespace-nowrap underline hover:no-underline hover:text-blumilk-600"
|
||||||
@ -46,20 +40,8 @@ import { DateTime } from 'luxon'
|
|||||||
|
|
||||||
let props = defineProps({
|
let props = defineProps({
|
||||||
deployInformation: Object,
|
deployInformation: Object,
|
||||||
layout: {
|
|
||||||
type: String,
|
|
||||||
default: 'horizontal',
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
function isVertical() {
|
|
||||||
return props.layout === 'vertical'
|
|
||||||
}
|
|
||||||
|
|
||||||
function isHorizontal() {
|
|
||||||
return props.layout === 'horizontal'
|
|
||||||
}
|
|
||||||
|
|
||||||
function getDate() {
|
function getDate() {
|
||||||
return DateTime.fromISO(props.deployInformation.release_created_at)
|
return DateTime.fromISO(props.deployInformation.release_created_at)
|
||||||
.toLocaleString({
|
.toLocaleString({
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<div class="lg:px-4">
|
<div class="lg:px-4">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
<div class="h-8 md:h-4"></div>
|
<div class="h-8 sm:h-4"></div>
|
||||||
</main>
|
</main>
|
||||||
<DeployInfo
|
<DeployInfo
|
||||||
:deploy-information="deployInformation"
|
:deploy-information="deployInformation"
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
<slot />
|
<slot />
|
||||||
<DeployInfo
|
<DeployInfo
|
||||||
:deploy-information="deployInformation"
|
:deploy-information="deployInformation"
|
||||||
layout="vertical"
|
class="absolute left-0 bottom-0 justify-end"
|
||||||
class="absolute right-0 bottom-0"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user