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

reposytoroy modal issue fixed #55

Merged
merged 5 commits into from
Sep 26, 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
15 changes: 15 additions & 0 deletions applicationFE/src/api/softwareCatalog.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import request from "../common/request";
import type { SoftwareCatalog } from "@/views/type/type";

// software catalog list
export const getSoftwareCaltalogList = (title:string) => {
return request.get(`/catalog/software/?title=${title}`)
}

export const getSoftwareCaltalogDetail = (catalogIdx :number) => {
return request.get(`/catalog/software/${catalogIdx}`)
}

export const createCatalog = (param: object) => {
return request.post(`/catalog/software`, param)
}
9 changes: 9 additions & 0 deletions applicationFE/src/resources/css/demo.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions applicationFE/src/resources/css/tabler.min.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions applicationFE/src/resources/js/demo-theme.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*!
* Tabler v1.0.0-beta19 (https://tabler.io)
* @version 1.0.0-beta19
* @link https://tabler.io
* Copyright 2018-2023 The Tabler Authors
* Copyright 2018-2023 codecalm.net Paweł Kuna
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t="tablerTheme",a=new Proxy(new URLSearchParams(window.location.search),{get:function(e,t){return e.get(t)}});if(a.theme)localStorage.setItem(t,a.theme),e=a.theme;else{var n=localStorage.getItem(t);e=n||"light"}"dark"===e?document.body.setAttribute("data-bs-theme",e):document.body.removeAttribute("data-bs-theme")}));
5 changes: 5 additions & 0 deletions applicationFE/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ const router = createRouter({
name: 'repositoryDetail',
component: () => import('@/views/repository/RepositoryDetail.vue' as any)
},
{
path: `/web/sofrwareCatalog/list`,
name: 'softwareCatalogList',
component: () => import('@/views/softwareCatalog/SoftwareCatalogList.vue' as any)
},
]
})

Expand Down
15 changes: 15 additions & 0 deletions applicationFE/src/views/repository/components/repositoryForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ watch(repositoryName, async () => {

onMounted(async () => {
await setInit();
const modalElement = document.getElementById('repositoryForm');
modalElement?.addEventListener('hidden.bs.modal', handleModalClose);
})

const repositoryFormData = ref({} as Repository)
Expand All @@ -150,6 +152,8 @@ const setInit = async () => {
repositoryFormData.value.type = 'hosted'
repositoryFormData.value.url = ''
repositoryFormData.value.online = true
httpPort.value = 0
httpsPort.value = 0
writePolicy.value = "allow"
}
else {
Expand Down Expand Up @@ -224,6 +228,17 @@ 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
Loading