-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #288 from ncosd/dev-1.14.0
Release 1.14.0
- Loading branch information
Showing
21 changed files
with
508 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"kind":"identitytoolkit#DownloadAccountResponse","users":[{"localId":"5WddDr1Teytl9YHQ0Lgf2yP86pft","createdAt":"1681846355208","lastLoginAt":"1681846355208","displayName":"v2","passwordHash":"fakeHash:salt=fakeSaltMaXkJGcoDb58rWtYnrD4:password=password","salt":"fakeSaltMaXkJGcoDb58rWtYnrD4","passwordUpdatedAt":1704985140624,"customAttributes":"{\"volunteer\":true}","providerUserInfo":[{"providerId":"password","email":"[email protected]","federatedId":"[email protected]","rawId":"[email protected]","displayName":"v2"}],"validSince":"1704985140","email":"[email protected]","emailVerified":false,"disabled":false},{"localId":"olN7alG8mHwRg6YYgVjlpR9scwq5","createdAt":"1614344510322","lastLoginAt":"1704985153659","displayName":"VolunteerUser","photoUrl":"","passwordHash":"fakeHash:salt=fakeSaltPdNFgJYXTp3KoHpHPeET:password=password","salt":"fakeSaltPdNFgJYXTp3KoHpHPeET","passwordUpdatedAt":1704985140624,"customAttributes":"{\"admin\": true,\"volunteer\":true}","providerUserInfo":[{"providerId":"password","email":"[email protected]","federatedId":"[email protected]","rawId":"[email protected]","displayName":"VolunteerUser","photoUrl":""}],"validSince":"1704985140","email":"[email protected]","emailVerified":false,"disabled":false,"lastRefreshAt":"2024-01-11T14:59:13.659Z"},{"localId":"woEHhjSLumylkHLkbJKYdV7bTlNF","createdAt":"1681846322321","lastLoginAt":"1684257041600","displayName":"v1","passwordHash":"fakeHash:salt=fakeSaltMmMYfmogc9thU5bAe1wL:password=password","salt":"fakeSaltMmMYfmogc9thU5bAe1wL","passwordUpdatedAt":1704985140625,"customAttributes":"{\"volunteer\":true}","providerUserInfo":[{"providerId":"password","email":"[email protected]","federatedId":"[email protected]","rawId":"[email protected]","displayName":"v1"}],"validSince":"1704985140","email":"[email protected]","emailVerified":false,"disabled":false}]} | ||
{"kind":"identitytoolkit#DownloadAccountResponse","users":[{"localId":"5WddDr1Teytl9YHQ0Lgf2yP86pft","createdAt":"1681846355208","lastLoginAt":"1681846355208","displayName":"v2","passwordHash":"fakeHash:salt=fakeSaltMaXkJGcoDb58rWtYnrD4:password=password","salt":"fakeSaltMaXkJGcoDb58rWtYnrD4","passwordUpdatedAt":1705853986882,"customAttributes":"{\"volunteer\":true}","providerUserInfo":[{"providerId":"password","email":"[email protected]","federatedId":"[email protected]","rawId":"[email protected]","displayName":"v2"}],"validSince":"1705853986","email":"[email protected]","emailVerified":false,"disabled":false},{"localId":"olN7alG8mHwRg6YYgVjlpR9scwq5","createdAt":"1614344510322","lastLoginAt":"1704985153659","displayName":"VolunteerUser","photoUrl":"","passwordHash":"fakeHash:salt=fakeSaltPdNFgJYXTp3KoHpHPeET:password=password","salt":"fakeSaltPdNFgJYXTp3KoHpHPeET","passwordUpdatedAt":1705853986882,"customAttributes":"{\"admin\": true,\"volunteer\":true}","providerUserInfo":[{"providerId":"password","email":"[email protected]","federatedId":"[email protected]","rawId":"[email protected]","displayName":"VolunteerUser","photoUrl":""}],"validSince":"1705853986","email":"[email protected]","emailVerified":false,"disabled":false},{"localId":"woEHhjSLumylkHLkbJKYdV7bTlNF","createdAt":"1681846322321","lastLoginAt":"1684257041600","displayName":"v1","passwordHash":"fakeHash:salt=fakeSaltMmMYfmogc9thU5bAe1wL:password=password","salt":"fakeSaltMmMYfmogc9thU5bAe1wL","passwordUpdatedAt":1705853986882,"customAttributes":"{\"volunteer\":true}","providerUserInfo":[{"providerId":"password","email":"[email protected]","federatedId":"[email protected]","rawId":"[email protected]","displayName":"v1"}],"validSince":"1705853986","email":"[email protected]","emailVerified":false,"disabled":false}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"version": "13.0.2", | ||
"version": "13.0.3", | ||
"firestore": { | ||
"version": "1.18.2", | ||
"path": "firestore_export", | ||
"metadata_file": "firestore_export/firestore_export.overall_export_metadata" | ||
}, | ||
"auth": { | ||
"version": "13.0.2", | ||
"version": "13.0.3", | ||
"path": "auth_export" | ||
} | ||
} |
Binary file modified
BIN
+0 Bytes
(100%)
...xtures/firestore_export/all_namespaces/all_kinds/all_namespaces_all_kinds.export_metadata
Binary file not shown.
Binary file modified
BIN
+275 Bytes
(100%)
web/admin/fixtures/firestore_export/all_namespaces/all_kinds/output-0
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
web/admin/fixtures/firestore_export/firestore_export.overall_export_metadata
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script setup> | ||
import { ref, onBeforeMount } from 'vue' | ||
const props = defineProps({ | ||
activeTab: String, | ||
uid: String | ||
}) | ||
</script> | ||
|
||
<template> | ||
<ul class="nav nav-tabs"> | ||
<li class="nav-item"> | ||
<router-link :class="['nav-link', { active: props.activeTab === 'Dashboard' }]" aria-current="page" :to="{ name: 'DeliveryDashboard' }">Dashboard</router-link> | ||
</li> | ||
<li class="nav-item"> | ||
<router-link :class="['nav-link', { active: props.activeTab === 'Deliveries' }]" :to="{ name: 'DeliveryList' }">Deliveries</router-link> | ||
</li> | ||
<li class="nav-item"> | ||
<router-link :class="['nav-link', { active: props.activeTab === 'Routes' }]" :to="{ name: 'DeliveryRoutesList' }">Routes</router-link> | ||
</li> | ||
<li class="nav-item"> | ||
<router-link :class="['nav-link', { active: props.activeTab === 'Destinations' }]" :to="{ name: 'DestinationsList' }">Destinations</router-link> | ||
</li> | ||
|
||
</ul> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
<script setup> | ||
import { ref, onBeforeMount } from 'vue' | ||
import { useAuthUserStore } from '@/stores/authUser' | ||
import DeliveryTabs from '@/components/delivery/DeliveryTabs.vue' | ||
import { collection, getCountFromServer, getFirestore, doc, addDoc, query, where, setDoc } from 'firebase/firestore' | ||
const user = useAuthUserStore() | ||
const db = getFirestore() | ||
const numTotalDestinations = ref('0') | ||
const numOnHold = ref('0') | ||
const numNoRoute = ref('0') | ||
const numDrivers = ref('0') | ||
const numApprovedDrivers = ref('0') | ||
const numActiveVolunteers = ref('0') | ||
onBeforeMount( async () => { | ||
const destCollection = collection(db, 'deliverydestination') | ||
const numTotalSnap = await getCountFromServer(query(destCollection)) | ||
numTotalDestinations.value = numTotalSnap.data().count | ||
const numHoldSnap = await getCountFromServer(query(destCollection, where('onHold', '==', true))) | ||
numOnHold.value = numHoldSnap.data().count | ||
// TODO: calculate numNoRoute | ||
numNoRoute.value = numTotalDestinations.value - numOnHold.value | ||
const numDriversSnap = await getCountFromServer(query(collection(db, 'volunteerprofilestate'), | ||
where('status', '==', 'active'), | ||
where('isDriver', '==', true))) | ||
numDrivers.value = numDriversSnap.data().count | ||
const numApprovedDriversSnap = await getCountFromServer(query(collection(db, 'volunteerprofilestate'), | ||
where('status', '==', 'active'), | ||
where('isDriver', '==', true), | ||
where('isApprovedDriver', '==', true), | ||
)) | ||
numApprovedDrivers.value = numApprovedDriversSnap.data().count | ||
const numActiveVolunteersSnap = await getCountFromServer(query(collection(db, 'volunteerprofilestate'), | ||
where('status', '==', 'active'))) | ||
numActiveVolunteers.value = numActiveVolunteersSnap.data().count | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div class="container"> | ||
<DeliveryTabs activeTab="Dashboard" ></DeliveryTabs> | ||
|
||
<div class="row my-3"> | ||
<div class="col-4"> | ||
<div class="card h-100"> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col"><h5 class="card-title">Total Destinations</h5></div> | ||
<div class="col-2"><i class="bi bi-geo-alt fs-3"></i></div> | ||
</div > | ||
<h1 class="text-center">{{ numTotalDestinations }}</h1> | ||
</div> | ||
</div > | ||
</div > | ||
|
||
<div class="col-4"> | ||
<div class="card h-100"> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col"><h5 class="card-title">Destinations on hold</h5></div> | ||
<div class="col-2"><i class="bi bi-hourglass-split fs-3"></i></div> | ||
</div > | ||
<h1 class="text-center">{{ numOnHold }}</h1> | ||
</div> | ||
</div > | ||
</div > | ||
|
||
<div class="col-4"> | ||
<div class="card h-100"> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col"><h5 class="card-title">Destinations Not on a Route</h5></div> | ||
<div class="col-3"> | ||
<i v-if="numNoRoute > 0" class="bi bi-exclamation-diamond text-danger fs-3"></i> | ||
<i v-else class="bi bi-check-circle fs-3"></i> | ||
</div> | ||
</div > | ||
<h1 class="text-center">{{ numNoRoute }}</h1> | ||
</div> | ||
</div > | ||
</div > | ||
</div> | ||
|
||
<div class="row my-3"> | ||
<div class="col-4"> | ||
<div class="card h-100"> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col"><h5 class="card-title">Drivers</h5></div> | ||
<div class="col-2"><i class="bi bi-car-front fs-3"></i></div> | ||
</div > | ||
<h1 class="text-center">{{ numDrivers }}</h1> | ||
</div> | ||
</div > | ||
</div > | ||
|
||
<div class="col-4"> | ||
<div class="card h-100"> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col"><h5 class="card-title">Approved Drivers</h5></div> | ||
<div class="col-2"><i class="bi bi-car-front text-success fs-3"></i></div> | ||
</div > | ||
<h1 class="text-center">{{ numApprovedDrivers }}</h1> | ||
</div> | ||
</div > | ||
</div > | ||
|
||
<div class="col-4"> | ||
<div class="card h-100"> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col"><h5 class="card-title">Volunteers</h5></div> | ||
<div class="col-2"><i class="bi bi-person fs-3"></i></div> | ||
</div > | ||
<h1 class="text-center">{{ numActiveVolunteers }}</h1> | ||
</div> | ||
</div > | ||
</div > | ||
|
||
</div> | ||
|
||
|
||
<h2>There are no deliveries scheduled today.</h2> | ||
|
||
|
||
|
||
|
||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script setup> | ||
import { ref } from 'vue' | ||
import DeliveryTabs from '@/components/delivery/DeliveryTabs.vue' | ||
</script> | ||
|
||
<template> | ||
<div class="container"> | ||
|
||
<DeliveryTabs activeTab="Deliveries" ></DeliveryTabs> | ||
|
||
|
||
|
||
</div> | ||
</template> |
Oops, something went wrong.