-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'cloudforet-io/develop' into feature-pro…
…ject-alert-manager Signed-off-by: NaYeong,Kim <[email protected]>
- Loading branch information
Showing
39 changed files
with
1,600 additions
and
298 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...s/dispatch_preview_deploy_with_vercel.yml → ...ch_deploy_to_specific_vercel_project.yaml
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
3 changes: 1 addition & 2 deletions
3
.github/workflows/check-pull-request.yml → ...ub/workflows/pull_request_base_check.yaml
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
2 changes: 1 addition & 1 deletion
2
...b/workflows/pull_request_code_warning.yml → .../workflows/pull_request_code_warning.yaml
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,4 +1,4 @@ | ||
name: "[PR] Code Warning" | ||
name: "[Pull Request] Code Warning" | ||
|
||
on: | ||
pull_request: | ||
|
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
2 changes: 1 addition & 1 deletion
2
.github/workflows/pull_request_review.yml → .github/workflows/pull_request_review.yaml
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,4 +1,4 @@ | ||
name: "[PR] Review" | ||
name: "[Pull Request] Review" | ||
|
||
on: | ||
pull_request: | ||
|
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
Submodule assets
updated
6 files
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,90 @@ | ||
<script setup lang="ts"> | ||
import { | ||
ref, onMounted, toRef, watch, | ||
} from 'vue'; | ||
import { debounce } from 'lodash'; | ||
import { PFieldTitle, PContextMenu, useContextMenuItems } from '@cloudforet/mirinae'; | ||
import type { MenuAttachHandler } from '@cloudforet/mirinae/types/hooks/use-context-menu-attach/use-context-menu-attach'; | ||
import type { DataSelectorItem } from '@/common/components/select/type'; | ||
const props = defineProps<{ | ||
label?: string; | ||
menu?: DataSelectorItem[]; | ||
handler?: MenuAttachHandler<DataSelectorItem>; | ||
}>(); | ||
const emit = defineEmits<{(e: 'update:selected', value: DataSelectorItem[]): void; | ||
}>(); | ||
const searchText = ref(''); | ||
const selected = ref<DataSelectorItem[]>([]); | ||
const { | ||
refinedMenu, | ||
loading, | ||
initiateMenu, | ||
showMoreMenu, | ||
reloadMenu, | ||
} = useContextMenuItems<DataSelectorItem>({ | ||
menu: toRef(props, 'menu'), | ||
handler: toRef(props, 'handler'), | ||
selected, | ||
useMenuFiltering: true, | ||
searchText, | ||
pageSize: 10, | ||
hideHeaderWithoutItems: true, | ||
}); | ||
const handleUpdateSearchText = debounce((text: string) => { | ||
searchText.value = text; | ||
reloadMenu(); | ||
}, 200); | ||
const handleUpdateSelected = (items: DataSelectorItem[]) => { | ||
selected.value = items; | ||
emit('update:selected', selected.value); | ||
}; | ||
onMounted(() => { | ||
selected.value = []; | ||
emit('update:selected', selected.value); | ||
initiateMenu(); | ||
}); | ||
watch([() => props.menu, () => props.handler], () => { | ||
selected.value = []; | ||
emit('update:selected', selected.value); | ||
initiateMenu(); | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div class="flex flex-col gap-2"> | ||
<p-field-title class="py-0 px-3" | ||
:label="props.label" | ||
required | ||
/> | ||
<p-context-menu :menu="refinedMenu" | ||
class="data-selector-context-menu" | ||
:loading="loading" | ||
:search-text="searchText" | ||
searchable | ||
:selected="selected" | ||
@click-show-more="showMoreMenu()" | ||
@update:search-text="handleUpdateSearchText" | ||
@update:selected="handleUpdateSelected" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style lang="postcss"> | ||
.data-selector-context-menu { | ||
border: none; | ||
min-height: 16rem; | ||
max-height: 360px; | ||
overflow-y: auto; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { MenuItem } from '@cloudforet/mirinae/types/controls/context-menu/type'; | ||
|
||
export interface DataSelectorItem extends MenuItem { | ||
name: string; | ||
label: string; | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.