Skip to content

Commit

Permalink
Merge pull request #55 from dmsej108/main
Browse files Browse the repository at this point in the history
reposytoroy modal issue fixed
  • Loading branch information
Strato-YangSungHun authored Sep 26, 2024
2 parents 3dbbb01 + cbfff73 commit fb90cb5
Show file tree
Hide file tree
Showing 10 changed files with 718 additions and 53 deletions.
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

0 comments on commit fb90cb5

Please sign in to comment.