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
fe0807ec
Kaydet (Commit)
fe0807ec
authored
May 03, 2021
tarafından
Emincan Özcan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
api communication
üst
4eac0df5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
3 deletions
+46
-3
package.json
desktop-client/package.json
+1
-1
App.vue
desktop-client/src/App.vue
+9
-1
store.js
desktop-client/src/global-state/store.js
+28
-0
yarn.lock
desktop-client/yarn.lock
+8
-1
No files found.
desktop-client/package.json
Dosyayı görüntüle @
fe0807ec
...
...
@@ -13,6 +13,7 @@
},
"main"
:
"background.js"
,
"dependencies"
:
{
"axios"
:
"^0.21.1"
,
"core-js"
:
"^3.6.5"
,
"vue"
:
"^3.0.0"
,
"vue-router"
:
"^4.0.0-0"
...
...
@@ -36,6 +37,5 @@
"tailwindcss"
:
"npm:@tailwindcss/postcss7-compat"
,
"vue-cli-plugin-electron-builder"
:
"~2.0.0-rc.6"
,
"vue-svg-loader"
:
"^0.17.0-beta.2"
}
}
desktop-client/src/App.vue
Dosyayı görüntüle @
fe0807ec
<
template
>
<div
class=
"bg-gray-900 text-gray-100 min-h-screen flex"
>
<div
v-if=
"loading"
>
Loading
</div>
<div
v-else
class=
"bg-gray-900 text-gray-100 min-h-screen flex"
>
<Sidebar
class=
"sticky top-0 left-0 h-screen w-64 bg-gray-700 bg-opacity-25 flex-shrink-0"
/>
...
...
@@ -8,7 +9,14 @@
</
template
>
<
script
>
import
Sidebar
from
"./components/Sidebar"
;
import
store
from
"./global-state/store"
;
export
default
{
components
:
{
Sidebar
},
setup
()
{
store
.
fetchData
().
then
(()
=>
{
store
.
loading
.
value
=
false
;
});
return
{
loading
:
store
.
loading
};
},
};
</
script
>
desktop-client/src/global-state/store.js
0 → 100644
Dosyayı görüntüle @
fe0807ec
import
{
ref
}
from
"vue"
;
import
axios
from
"axios"
;
const
loading
=
ref
(
true
);
const
pardusApps
=
ref
([]);
const
nonPardusApps
=
ref
([]);
const
appPackages
=
ref
([]);
async
function
fetchData
()
{
try
{
const
response
=
await
axios
.
get
(
"http://localhost/api/get-all-data"
);
console
.
log
(
"apiresponse"
,
response
);
const
data
=
response
.
data
.
data
;
pardusApps
.
value
=
data
[
"pardus_apps"
];
nonPardusApps
.
value
=
data
[
"non_pardus_apps"
];
appPackages
.
value
=
data
[
"app_packages"
];
}
catch
(
e
)
{
console
.
error
(
"API DATA FETCH ERROR"
,
e
);
}
}
export
default
{
loading
,
pardusApps
,
nonPardusApps
,
appPackages
,
fetchData
,
};
desktop-client/yarn.lock
Dosyayı görüntüle @
fe0807ec
...
...
@@ -2157,6 +2157,13 @@ aws4@^1.8.0:
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59"
integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==
axios@^0.21.1:
version "0.21.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.1.tgz#22563481962f4d6bde9a76d516ef0e5d3c09b2b8"
integrity sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==
dependencies:
follow-redirects "^1.10.0"
babel-eslint@^10.1.0:
version "10.1.0"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232"
...
...
@@ -4727,7 +4734,7 @@ flush-write-stream@^1.0.0:
inherits "^2.0.3"
readable-stream "^2.3.6"
follow-redirects@^1.0.0:
follow-redirects@^1.0.0
, follow-redirects@^1.10.0
:
version "1.14.0"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.0.tgz#f5d260f95c5f8c105894491feee5dc8993b402fe"
integrity sha512-0vRwd7RKQBTt+mgu87mtYeofLFZpTas2S9zY+jIeuLJMNvudIgF52nr19q40HOwH5RrhWIPuj9puybzSJiRrVg==
...
...
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