Skip to content

Commit

Permalink
Added: Dashboard view footer and base structure
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelGeo committed Dec 5, 2023
1 parent dcc67b2 commit 88732af
Show file tree
Hide file tree
Showing 21 changed files with 122 additions and 301 deletions.
20 changes: 12 additions & 8 deletions web-app/packages/app/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-MerginMaps-Commercial
'col-12',
'min-h-full',
'overflow-auto',
drawer && !isOverlay && 'xl:col-offset-2 xl:col-10',
drawer && !isOverlay && 'xl:col-offset-2 xl:col-10'
]"
>
<router-view name="header" v-slot="{ Component, route }">
Expand All @@ -50,11 +50,9 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-MerginMaps-Commercial
>
</v-card-text>
</v-card>
<router-view class="page" v-slot="{ Component, route }">
<router-view v-slot="{ Component, route }">
<transition name="fade">
<div :key="route.name">
<component :is="Component" />
</div>
<component :is="Component" />
</transition>
</router-view>
</main>
Expand All @@ -75,15 +73,22 @@ import {
useInstanceStore,
useLayoutStore,
useNotificationStore,
useUserStore
useUserStore,
AppContainer
} from '@mergin/lib'
import { mapActions, mapState } from 'pinia'
import { defineComponent } from 'vue'
import { useMeta } from 'vue-meta'

export default defineComponent({
name: 'app',
components: { UploadProgress, Notifications, DialogWindows, GlobalWarning },
components: {
UploadProgress,
Notifications,
DialogWindows,
GlobalWarning,
AppContainer
},
computed: {
...mapState(useInstanceStore, ['pingData']),
...mapState(useAppStore, ['serverError']),
Expand Down Expand Up @@ -161,7 +166,6 @@ export default defineComponent({
</script>

<style lang="scss">

.fade-leave-active {
position: absolute;
top: 0;
Expand Down
24 changes: 15 additions & 9 deletions web-app/packages/app/src/modules/dashboard/views/DashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-MerginMaps-Commercial
<dashboard-view-template :canCreateProject="canCreateProject">
<template #usageInfo>
<dashboard-usage-info-row />
<dashboard-full-storage-warning-row v-slot="{ usage }">
<full-storage-warning :usage="usage" />
</dashboard-full-storage-warning-row>
</template>
<template #content>
<dashboard-access-requests-row v-if="userStore.isGlobalWorkspaceAdmin">
<template v-slot:table="{ namespace }">
<project-access-request-table :namespace="namespace" />
</template>
</dashboard-access-requests-row>
<dashboard-projects-row>
<template #projects>
<app-section>
<template #title>Recent active projects</template>
<template #default>
<projects-table-data-loader
:show-namespace="false"
:showFooter="false"
Expand All @@ -27,33 +31,35 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-MerginMaps-Commercial
show-tags
/>
</template>
</dashboard-projects-row>
</app-section>
</template>
</dashboard-view-template>
</template>

<script lang="ts">
import {
DashboardViewTemplate,
DashboardProjectsRow,
DashboardAccessRequestsRow,
ProjectsTableDataLoader,
DashboardUsageInfoRow,
DashboardFullStorageWarningRow,
ProjectAccessRequestTable,
FullStorageWarning,
useProjectStore,
useUserStore
useUserStore,
AppSection
} from '@mergin/lib'
import { defineComponent, computed, ref, onMounted } from 'vue'

export default defineComponent({
name: 'DashboardView',
components: {
DashboardViewTemplate,
DashboardProjectsRow,
DashboardAccessRequestsRow,
ProjectsTableDataLoader,
DashboardFullStorageWarningRow,
DashboardUsageInfoRow,
ProjectAccessRequestTable
ProjectAccessRequestTable,
AppSection,
FullStorageWarning
},
setup() {
const initialOptions = ref({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-MerginMaps-Commercial
-->

<template>
<app-header-template :isPrimary="isPrimary" :renderNamespace="false" />
<app-header-template :renderNamespace="false" />
</template>

<script lang="ts">
Expand All @@ -14,12 +14,6 @@ import { defineComponent } from 'vue'

export default defineComponent({
name: 'AppHeader',
props: {
isPrimary: {
type: Boolean,
default: true
}
},
components: { AppHeaderTemplate }
})
</script>
Expand Down
1 change: 1 addition & 0 deletions web-app/packages/lib/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ module.exports = {
// Vue 3 opt https://v3-migration.vuejs.org/breaking-changes/key-attribute.html#with-template-v-for
'vue/no-v-for-template-key-on-child': 'error',
'vue/no-v-for-template-key': 'off',
'vue/no-multiple-template-root': 'off',
}
}
46 changes: 0 additions & 46 deletions web-app/packages/lib/src/assets/App_Store.svg

This file was deleted.

Binary file added web-app/packages/lib/src/assets/appstore.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web-app/packages/lib/src/assets/footer-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web-app/packages/lib/src/assets/googleplay.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 88732af

Please sign in to comment.