Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create repository issue fixed #80

Merged
merged 3 commits into from
Oct 14, 2024
Merged
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
3 changes: 2 additions & 1 deletion applicationFE/src/views/repository/RepositoryList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ const formMode = ref('new')
* @Desc repository 생성버튼 클릭시 동작하는 함수 (formMode set)
*/
const onClickNewBtn = () => {
formMode.value = 'new'
selectRepositoryName.value = "";
formMode.value = 'new';
}
Expand Down
20 changes: 5 additions & 15 deletions applicationFE/src/views/repository/components/repositoryForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ watch(repositoryName, async () => {
onMounted(async () => {
await setInit();
const modalElement = document.getElementById('repositoryForm');
modalElement?.addEventListener('hidden.bs.modal', handleModalClose);
})
const repositoryFormData = ref({} as Repository)
Expand Down Expand Up @@ -195,13 +193,16 @@ const onClickSubmit = async () => {
if (props.mode === 'new') {
await _registRepository().then(() => {
emit('get-repository-list')
setInit()
})
}
else
else {
await _updateRepository().then(() => {
emit('get-repository-list')
setInit()
})
setInit()
}
}
/**
Expand All @@ -228,17 +229,6 @@ const _updateRepository = async () => {
toast.error('등록 할 수 없습니다.')
}
const handleModalClose = () => {
repositoryFormData.value.name = ''
repositoryFormData.value.format = 'raw'
repositoryFormData.value.type = 'hosted'
repositoryFormData.value.url = ''
repositoryFormData.value.online = true
httpPort.value = 0
httpsPort.value = 0
writePolicy.value = "allow"
}
</script>

<!-- <style scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<div :id="'accordion_' + catalog.catalogIdx" class="accordion-collapse collapse" :style= "[catalog.isShow ? {display: 'block'} : {display:'none'}]">
<div class="accordion-body pt-0">
<br />
{{ catalog.catalogDescription }}
<div style="white-space: pre-wrap;" v-html="formattedText(catalog.catalogDescription)"></div>
<div>
<br />
<div class="btn-list" style="width:70%;" v-for="wf in catalog.refData.workflow" :key="wf.catalogRefIdx">
Expand Down Expand Up @@ -300,6 +300,7 @@
}
const setDockerHubSearch = async () => {
dockerHubSearchList.value = [];
try {
const response = await axios.get(baseUrl + '/search/dockerhub/' + searchKeyword.value);
Expand All @@ -314,6 +315,7 @@
}
const setArtifactHubSearch = async () => {
artifactHubSearch.value = [];
try {
const response = await axios.get(baseUrl + '/search/artifacthub/' + searchKeyword.value);
for(let i=0; i<3; i++) {
Expand Down Expand Up @@ -382,6 +384,10 @@
const onClickDeploy = (value: string) => {
modalTite.value = value
}
const formattedText = (text:string) => {
return text.replace(/\\n|\n/g, '<br/>');
}
</script>
Expand Down