Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
O
Oyun Parkı-pardusacikhack
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Nyx
Oyun Parkı-pardusacikhack
Commits
f61780cf
Kaydet (Commit)
f61780cf
authored
May 07, 2021
tarafından
Eda Altuntaş
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Dosyanın yükleneceği Park seçimi için gerekli arayüz yapıldı
üst
379644b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
108 additions
and
0 deletions
+108
-0
App.vue
src/App.vue
+3
-0
UploadModal.vue
src/components/UploadModal.vue
+105
-0
No files found.
src/App.vue
Dosyayı görüntüle @
f61780cf
<
template
>
<
template
>
<div
id=
"app"
>
<div
id=
"app"
>
<UploadModal
/>
<el-container
class=
"body"
>
<el-container
class=
"body"
>
<el-container>
<el-container>
<el-main><Containers
/></el-main>
<el-main><Containers
/></el-main>
...
@@ -10,9 +11,11 @@
...
@@ -10,9 +11,11 @@
<
script
>
<
script
>
import
Containers
from
"./views/Containers.vue"
;
import
Containers
from
"./views/Containers.vue"
;
import
UploadModal
from
"./components/UploadModal.vue"
;
export
default
{
export
default
{
name
:
"App"
,
name
:
"App"
,
components
:
{
components
:
{
UploadModal
,
Containers
Containers
}
}
};
};
...
...
src/components/UploadModal.vue
0 → 100644
Dosyayı görüntüle @
f61780cf
<
template
>
<el-dialog
v-bind:title=
"$t('containers.upload_modal.title')"
v-bind:visible
.
sync=
"open"
>
<el-form
v-bind:model=
"form"
v-if=
"containers.length"
label-position=
"left"
label-width=
"200px"
>
<el-form-item
v-bind:label=
"$t('containers.upload_modal.label.file')"
>
{{
this
.
file
}}
</el-form-item>
<el-form-item
v-bind:label=
"$t('containers.upload_modal.label.container')"
>
<el-select
v-model=
"form.container"
style=
"width:100%"
>
<el-option
v-bind:label=
"container.Names[0]"
v-for=
"(container, index) in containers"
v-bind:value=
"index"
v-bind:key=
"container.Id"
/>
</el-select>
</el-form-item>
</el-form>
<el-alert
title=
"Oyun parkın yok"
type=
"success"
effect=
"dark"
v-else
/>
{{
this
.
file
}}
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
v-on:click=
"open = false"
v-text=
"$t('containers.upload_modal.buttons.cancel')"
/>
<el-button
type=
"primary"
v-on:click=
"
() =>
{
open = false;
send();
}
"
v-text="$t('containers.upload_modal.buttons.send')"
/>
</span>
</el-dialog>
</
template
>
<
script
>
export
default
{
name
:
"UploadModal"
,
data
()
{
return
{
containers
:
[],
form
:
{
container
:
null
},
open
:
false
,
file
:
null
};
},
created
()
{
let
vm
=
this
;
window
.
addEventListener
(
"modal"
,
function
(
e
)
{
vm
.
getContainers
();
if
(
vm
.
containers
.
length
===
0
)
{
vm
.
$message
({
message
:
vm
.
$t
(
"containers.upload_modal.no_container_message"
),
type
:
"error"
});
}
else
{
vm
.
open
=
e
.
detail
.
modal
;
vm
.
file
=
e
.
detail
.
file
;
}
},
false
);
},
methods
:
{
getContainers
:
function
()
{
this
.
$loading
();
this
.
$http
.
get
(
`/containers`
)
.
then
(({
data
})
=>
{
this
.
containers
=
data
;
})
.
finally
(()
=>
{
this
.
$loading
().
close
();
});
},
send
:
function
()
{
const
container
=
this
.
containers
[
this
.
form
.
container
];
window
.
ipcRenderer
.
send
(
"modal_upload"
,
{
Id
:
container
.
Id
,
Source
:
container
.
Labels
[
"desktop.docker.io/binds/0/Source"
],
Target
:
container
.
Labels
[
"desktop.docker.io/binds/0/Target"
],
Username
:
container
.
Labels
[
"Username"
],
File
:
this
.
file
});
}
}
};
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment