Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
P
Pardus Kataliz - 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ç
kataliz
Pardus Kataliz - pardusacikhack
Commits
360ab6a0
Kaydet (Commit)
360ab6a0
authored
May 05, 2021
tarafından
Emincan Özcan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
wip
üst
debfa655
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
24 deletions
+44
-24
PardusAppSeeder.php
backend/database/seeders/PardusAppSeeder.php
+1
-1
package.json
client/package.json
+1
-1
Installation.vue
client/src/views/Installation.vue
+42
-22
No files found.
backend/database/seeders/PardusAppSeeder.php
Dosyayı görüntüle @
360ab6a0
...
@@ -67,7 +67,7 @@ class PardusAppSeeder extends Seeder
...
@@ -67,7 +67,7 @@ class PardusAppSeeder extends Seeder
PardusApp
::
create
([
PardusApp
::
create
([
'name'
=>
'Evince'
,
'name'
=>
'Evince'
,
'image_url'
=>
"https://upload.wikimedia.org/wikipedia/commons/9/9b/GNOME_Document_Viewer_icon_2019.svg"
,
'image_url'
=>
"https://upload.wikimedia.org/wikipedia/commons/9/9b/GNOME_Document_Viewer_icon_2019.svg"
,
'scripts'
=>
[
"sudo apt-get install evince -
y"
,]
'scripts'
=>
[
"sudo apt-get install evince -y"
,]
]);
]);
PardusApp
::
create
([
PardusApp
::
create
([
...
...
client/package.json
Dosyayı görüntüle @
360ab6a0
{
{
"name"
:
"pardus-kataliz"
,
"name"
:
"pardus-kataliz"
,
"version"
:
"0.3.
3
"
,
"version"
:
"0.3.
4
"
,
"author"
:
"Emincan Ozcan <emincan@emincanozcan.com>"
,
"author"
:
"Emincan Ozcan <emincan@emincanozcan.com>"
,
"homepage"
:
"https://github.com/emincanozcan/kataliz"
,
"homepage"
:
"https://github.com/emincanozcan/kataliz"
,
"private"
:
true
,
"private"
:
true
,
...
...
client/src/views/Installation.vue
Dosyayı görüntüle @
360ab6a0
...
@@ -2,24 +2,40 @@
...
@@ -2,24 +2,40 @@
<div
<div
class=
"w-full min-h-screen h-full px-8 py-8 text-gray-100 flex justify-center items-center flex-col bg-gray-800"
class=
"w-full min-h-screen h-full px-8 py-8 text-gray-100 flex justify-center items-center flex-col bg-gray-800"
>
>
<h2
class=
"text-2xl font-bold text-pardus-yellow mb-4"
>
<IconPardusLogo
class=
"w-48 h-48 animate-pulse mb-4"
/>
<h2
class=
"text-2xl font-bold text-pardus-yellow mb-16"
>
Kurulumlar Gerçekleştiriliyor.
Kurulumlar Gerçekleştiriliyor.
</h2>
</h2>
<IconPardusLogo
class=
"w-48 h-48 animate-pulse mb-16"
/>
<div
class=
"space-y-4 mb-16"
>
<div
class=
"space-y-4 mb-16"
>
<div
<div
class=
"rounded-lg bg-gray-900 shadow-lg px-6 flex items-center py-4 font-medium space-x-8"
class=
"rounded-lg bg-gray-900 shadow-lg px-6 flex items-center py-4 font-medium space-x-8"
v-for=
"(item, key) in installationState"
v-for=
"(item, key) in installationState"
:key=
"key"
:key=
"key"
>
>
<div
class=
"inline-block w-64 border-r border-gray-300"
>
<div
class=
"
text-white
inline-block w-64 border-r border-gray-300"
>
{{
item
.
name
}}
{{
item
.
name
}}
</div>
</div>
<div
class=
"inline-block"
>
{{
item
.
status
}}
</div>
<div
class=
"inline-block font-medium"
>
<span
class=
"text-green-600"
v-if=
"item.status === 'end'"
>
Kurulum Tamamlandı
</span>
<span
class=
"text-red-600"
v-else-if=
"item.status === 'error'"
>
Kurulumda Bir Hata Oluştu
</span>
<span
class=
"text-white"
v-else-if=
"item.status === 'in-progress'"
>
Yükleniyor..
</span>
<span
class=
"text-pardus-yellow"
v-else-if=
"item.status === 'waiting'"
>
Diğer kurulumlar bekleniyor
</span>
</div>
</div>
</div>
</div>
</div>
<div
v-if=
"isEnd"
class=
"text-center"
>
<div
v-if=
"isEnd"
class=
"text-center"
>
<div
class=
"font-medium text-
lg
"
>
Kurulumlar tamamlandı!
</div>
<div
class=
"font-medium text-
2xl
"
>
Kurulumlar tamamlandı!
</div>
<button
<button
class=
"mx-auto mt-4 inline-block px-8 py-3 bg-pardus-yellow text-black rounded-lg shadow-lg"
class=
"mx-auto mt-4 inline-block px-8 py-3 bg-pardus-yellow text-black rounded-lg shadow-lg"
@
click=
"$emit('close')"
@
click=
"$emit('close')"
...
@@ -35,7 +51,7 @@
...
@@ -35,7 +51,7 @@
<
script
>
<
script
>
import
store
from
"../global-state/store"
;
import
store
from
"../global-state/store"
;
import
{
re
active
,
re
f
}
from
"vue"
;
import
{
ref
}
from
"vue"
;
import
IconPardusLogo
from
"../icons/icon-pardus-logo.svg"
;
import
IconPardusLogo
from
"../icons/icon-pardus-logo.svg"
;
export
default
{
export
default
{
...
@@ -43,31 +59,35 @@ export default {
...
@@ -43,31 +59,35 @@ export default {
components
:
{
IconPardusLogo
},
components
:
{
IconPardusLogo
},
setup
()
{
setup
()
{
const
isEnd
=
ref
(
false
);
const
isEnd
=
ref
(
false
);
const
installationState
=
reactive
({});
const
installationState
=
ref
([]);
installationState
[
"pre-installation"
]
=
{
installationState
.
value
.
push
({
key
:
"pre-installation"
,
name
:
"Ön Kurulumlar"
,
name
:
"Ön Kurulumlar"
,
status
:
"Hazırlanıyor..."
,
status
:
"waiting"
,
};
});
store
.
bucket
.
value
.
forEach
((
appId
)
=>
{
store
.
bucket
.
value
.
forEach
((
appId
)
=>
{
const
app
=
store
.
pardusApps
.
value
.
find
((
app
)
=>
app
.
id
===
appId
);
const
app
=
store
.
pardusApps
.
value
.
find
((
app
)
=>
app
.
id
===
appId
);
installationState
[
app
.
id
]
=
{
installationState
.
value
.
push
({
key
:
app
.
id
,
name
:
app
.
name
,
name
:
app
.
name
,
status
:
"
Diğer kurulumlar bekleniyor.
"
,
status
:
"
waiting
"
,
};
}
)
;
});
});
window
.
ipcRenderer
.
on
(
"installation-update"
,
(
event
,
data
)
=>
{
window
.
ipcRenderer
.
on
(
"installation-update"
,
(
event
,
data
)
=>
{
console
.
log
({
data
});
const
index
=
installationState
.
value
.
findIndex
(
if
(
data
.
status
===
"end"
)
{
(
i
)
=>
i
.
key
.
toString
()
===
data
.
id
installationState
[
data
.
id
].
status
=
"Kurulum tamamlandı."
;
);
}
else
if
(
data
.
status
===
"in-progress"
)
{
installationState
.
value
[
index
].
status
=
data
.
status
;
installationState
[
data
.
id
].
status
=
"Kuruluyor."
;
}
else
if
(
data
.
status
===
"error"
)
{
installationState
[
data
.
id
].
status
=
"Hata: Kurulum tamamlanamadı."
;
}
});
});
window
.
ipcRenderer
.
on
(
"installation-end"
,
()
=>
(
isEnd
.
value
=
true
));
window
.
ipcRenderer
.
on
(
"installation-end"
,
()
=>
{
installationState
.
value
.
forEach
(
(
item
)
=>
item
.
status
===
"end"
&&
store
.
removeFromBucket
(
item
.
key
)
);
isEnd
.
value
=
true
;
});
return
{
installationState
,
isEnd
};
return
{
installationState
,
isEnd
};
},
},
...
...
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