-
Notifications
You must be signed in to change notification settings - Fork 0
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
31 changed files
with
1,204 additions
and
1,076 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,31 @@ | ||
<script setup lang="ts"> | ||
import { watch,ref } from 'vue'; | ||
defineEmits(['refresh','on-delete']); | ||
const props=withDefaults(defineProps<{model: object[], useAction?:boolean, useRefresh?: boolean, showNamespace?:boolean}>(),{ | ||
const props=withDefaults(defineProps<{model: object[], useAction?:boolean, useRefresh?: boolean, showNamespace?:boolean, showKind?:boolean}>(),{ | ||
useAction: false, | ||
useRefresh: true, | ||
showNamespace: false, | ||
showKind: true, | ||
}); | ||
console.log('EventList',props.model) | ||
</script> | ||
<template> | ||
<q-timeline dense> | ||
<q-timeline-entry v-for="(item, key) in model" v-bind:key="key" | ||
:title="item['reason']" | ||
:subtitle="item['metadata']['creationTimestamp']" | ||
:color="item['type']=='Warning'?'warning':'secondary'" | ||
:icon="item['type']=='Warning'?'warning_amber':undefined" | ||
:body="item['message']" | ||
/> | ||
|
||
<q-timeline-entry | ||
title="Event Title" | ||
subtitle="February 21, 1986" | ||
icon="delete" | ||
> | ||
<div> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
</div> | ||
</q-timeline-entry> | ||
|
||
<q-timeline-entry | ||
title="Event Title" | ||
subtitle="February 22, 1986" | ||
color="orange" | ||
icon="done_all" | ||
> | ||
<div> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
</div> | ||
</q-timeline-entry> | ||
<TransitionGroup enterActiveClass="animate__animated animate__backInRight" leaveActiveClass="animate__animated animate__backOutDown"> | ||
<q-timeline-entry v-for="(item,num) in props.model" v-bind:key="`${item['metadata']['uid']}-${item['involvedObject']['uid']}`" | ||
:title="`${item['involvedObject']['name']} ${item['reason']}`" | ||
:subtitle="`${(new Date(item['metadata']['creationTimestamp'])).toLocaleTimeString()} ${showKind?item['involvedObject']['kind']:''} ${showNamespace?item['involvedObject']['namespace']:''} ${item['involvedObject']['name']}`" | ||
:color="item['type']=='Warning'?'warning':'secondary'" | ||
:icon="item['type']=='Warning'?'warning_amber':undefined" | ||
:body="item['message']" | ||
/> | ||
</TransitionGroup> | ||
</q-timeline> | ||
</template> | ||
<style scoped> | ||
ul { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
</style> |
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
Oops, something went wrong.