-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
807 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
apps/client/src/modules/boards/components/BoardsActionsPanel.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
apps/client/src/modules/common/components/controls/ViewTabs.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script setup lang="ts"> | ||
import { UiTabsList, UiTabsTrigger } from '@/shared/ui' | ||
</script> | ||
|
||
<template> | ||
<UiTabsList> | ||
<UiTabsTrigger value="table"> | ||
<span i-hugeicons-layout-table-02 /> | ||
</UiTabsTrigger> | ||
<UiTabsTrigger value="cards"> | ||
<span i-hugeicons-dashboard-square-01 /> | ||
</UiTabsTrigger> | ||
</UiTabsList> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
apps/client/src/modules/workflows/components/AllWorkflows.vue
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<script setup lang="ts" generic="T extends WorkflowCard"> | ||
import { computed } from 'vue' | ||
import dayjs from 'dayjs' | ||
import relativeTime from 'dayjs/plugin/relativeTime' | ||
import type { WorkflowCard } from '../types' | ||
import { UiBadge } from '@/shared/ui' | ||
defineProps<{ | ||
card: T | ||
}>() | ||
dayjs.extend(relativeTime) | ||
const timesAgo = computed(() => | ||
(workflow: T) => { | ||
return dayjs().to(dayjs(workflow.updatedAt)) | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div | ||
class="relative p-3 cursor-pointer w-full flex flex-col justify-between h-full border border-solid border-neutral-200 rounded-8px dark:border-neutral-700/60" | ||
@click="$router.push({ name: 'workflows-id', params: { id: card._id } })" | ||
> | ||
<div class="absolute inset-0 bg-dotted-pattern opacity-30 pointer-events-none" /> | ||
|
||
<div class="w-full flex items-start justify-between"> | ||
<div class="flex flex-col gap-0.5 w-full"> | ||
<p class="text-default hyphens-auto"> | ||
{{ card.name }} | ||
</p> | ||
<p class="text-small text-neutral-500 hyphens-auto overflow-hidden text-ellipsis line-clamp-1"> | ||
{{ card.description }} | ||
</p> | ||
</div> | ||
<UiBadge variant="soft" class="px-1 py-px mt-px" :class="card.state === 'production' ? 'badge-soft-green' : 'badge-soft'"> | ||
{{ $t(`workflows.status.${card.state}`) }} | ||
</UiBadge> | ||
</div> | ||
<span class="text-small mt-3 text-neutral-500 overflow-hidden text-ellipsis line-clamp-1 dark:text-neutral-400"> | ||
{{ timesAgo(card) }} | ||
</span> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.bg-dotted-pattern { | ||
background-image: radial-gradient(circle, #ccc 1px, transparent 1px); | ||
background-size: 12px 12px; | ||
background-color: inherit; | ||
} | ||
:global(html.dark) { | ||
.bg-dotted-pattern { | ||
background-image: radial-gradient(circle, #424242 1px, transparent 1px); | ||
} | ||
} | ||
</style> |
7 changes: 7 additions & 0 deletions
7
apps/client/src/modules/workflows/components/EmptyWorkflows.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script setup lang="ts"> | ||
import EmptyContainer from '@/modules/common/components/EmptyContainer.vue' | ||
</script> | ||
|
||
<template> | ||
<EmptyContainer icon="hugeicons:workflow-square-03" t-prefix="workflows" /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
apps/client/src/modules/workflows/components/WorkflowsCards.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script setup lang="ts"> | ||
import CardItem from './CardItem.vue' | ||
import type { WorkflowCard } from '../types' | ||
defineProps<{ | ||
cards: WorkflowCard[] | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div class="flex flex-col space-y-3 mt-1"> | ||
<div class="grid grid-cols-4 gap-4 items-stretch"> | ||
<CardItem | ||
v-for="card in cards" | ||
:key="card._id" | ||
:card="card" | ||
/> | ||
</div> | ||
</div> | ||
</template> |
Oops, something went wrong.