mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
Structure of the community prepared
This commit is contained in:
parent
41e532b26d
commit
63ee06f347
@ -113,7 +113,11 @@ a:hover,
|
|||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rounded-right {
|
// .rounded-right-17 {
|
||||||
|
// border-top-right-radius: 17px !important;
|
||||||
|
// border-bottom-right-radius: 17px !important;
|
||||||
|
// }
|
||||||
|
.input-group .rounded-right {
|
||||||
border-top-right-radius: 17px !important;
|
border-top-right-radius: 17px !important;
|
||||||
border-bottom-right-radius: 17px !important;
|
border-bottom-right-radius: 17px !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,18 @@
|
|||||||
|
<template>
|
||||||
|
<div class="open-creations-amount">
|
||||||
|
<b-table striped hover :items="items"></b-table>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'OpenCreationsAmount',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
items: [
|
||||||
|
{ monat: 'Oktober', status: 'Max. erreicht', eingereicht: '50 h', stundenOffen: '0 h' },
|
||||||
|
{ monat: 'November', status: 'einreichen', eingereicht: '20 h', stundenOffen: '30 h' },
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -1,5 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="wallet-amount">GDT Amount components</div>
|
<div class="wallet-amount">
|
||||||
|
<div>GDT Amount components</div>
|
||||||
|
<div>0.00 GDT</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@ -1,14 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="my-community">
|
|
||||||
<div class="d-flex">
|
|
||||||
<b-button block variant="gradido" class="rounded-right" to="#edit">Schreiben</b-button>
|
|
||||||
<b-button block variant="gradido" class="rounded-0" to="#my">Meine Beiträge</b-button>
|
|
||||||
<b-button block variant="gradido" class="rounded-left" to="#all">Community</b-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: 'MyCommunity',
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
<template>
|
||||||
|
<div class="nav-community">
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
<b-button variant="gradido" class="rounded-right" to="#edit">Schreiben</b-button>
|
||||||
|
<b-button variant="gradido" class="rounded-0" to="#my">Meine Beiträge</b-button>
|
||||||
|
<b-button variant="gradido" class="rounded-left" to="#all">Community</b-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'NavCommunity',
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -61,7 +61,7 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
</b-container>
|
</b-container>
|
||||||
<b-container v-if="path === '/community'"><my-community /></b-container>
|
<b-container v-if="path === '/community'"><nav-community /></b-container>
|
||||||
<b-container v-if="path === '/settings'">settings content header</b-container>
|
<b-container v-if="path === '/settings'">settings content header</b-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -71,14 +71,14 @@
|
|||||||
import GddAmount from '@/components/Template/ContentHeader/GddAmount.vue'
|
import GddAmount from '@/components/Template/ContentHeader/GddAmount.vue'
|
||||||
import GdtAmount from '@/components/Template/ContentHeader/GdtAmount.vue'
|
import GdtAmount from '@/components/Template/ContentHeader/GdtAmount.vue'
|
||||||
import CommunityMember from '@/components/Template/ContentHeader/CommunityMember.vue'
|
import CommunityMember from '@/components/Template/ContentHeader/CommunityMember.vue'
|
||||||
import MyCommunity from '@/components/Template/ContentHeader/MyCommunity.vue'
|
import NavCommunity from '@/components/Template/ContentHeader/NavCommunity.vue'
|
||||||
export default {
|
export default {
|
||||||
name: 'ContentHeader',
|
name: 'ContentHeader',
|
||||||
components: {
|
components: {
|
||||||
GddAmount,
|
GddAmount,
|
||||||
GdtAmount,
|
GdtAmount,
|
||||||
CommunityMember,
|
CommunityMember,
|
||||||
MyCommunity,
|
NavCommunity,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
balance: { type: Number, required: true },
|
balance: { type: Number, required: true },
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="community-page">
|
<div class="community-page">
|
||||||
|
<open-creations-amount v-if="hashLink === '#edit'" />
|
||||||
<div>
|
<div>
|
||||||
<b-tabs no-nav-style v-model="tabIndex" content-class="mt-3" align="center">
|
<b-tabs no-nav-style v-model="tabIndex" content-class="mt-3" align="center">
|
||||||
<b-tab>
|
<b-tab>
|
||||||
@ -43,6 +44,7 @@
|
|||||||
import ContributionForm from '@/components/Contributions/ContributionForm.vue'
|
import ContributionForm from '@/components/Contributions/ContributionForm.vue'
|
||||||
import ContributionList from '@/components/Contributions/ContributionList.vue'
|
import ContributionList from '@/components/Contributions/ContributionList.vue'
|
||||||
import ContributionListInfo from '@/components/Contributions/ContributionListInfo.vue'
|
import ContributionListInfo from '@/components/Contributions/ContributionListInfo.vue'
|
||||||
|
import OpenCreationsAmount from '@/components/Contributions/OpenCreationsAmount.vue'
|
||||||
import { createContribution, updateContribution, deleteContribution } from '@/graphql/mutations'
|
import { createContribution, updateContribution, deleteContribution } from '@/graphql/mutations'
|
||||||
import { listContributions, listAllContributions, verifyLogin } from '@/graphql/queries'
|
import { listContributions, listAllContributions, verifyLogin } from '@/graphql/queries'
|
||||||
|
|
||||||
@ -52,9 +54,11 @@ export default {
|
|||||||
ContributionListInfo,
|
ContributionListInfo,
|
||||||
ContributionForm,
|
ContributionForm,
|
||||||
ContributionList,
|
ContributionList,
|
||||||
|
OpenCreationsAmount,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
hashLink: '',
|
||||||
tabLinkHashes: ['#edit', '#my', '#all'],
|
tabLinkHashes: ['#edit', '#my', '#all'],
|
||||||
tabIndex: 0,
|
tabIndex: 0,
|
||||||
items: [],
|
items: [],
|
||||||
@ -73,19 +77,16 @@ export default {
|
|||||||
updateAmount: '',
|
updateAmount: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
hashLink() {
|
|
||||||
return this.$root.hash
|
|
||||||
},
|
|
||||||
},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.tabIndex = this.tabLinkHashes.findIndex((hashLink) => hashLink === this.$route.hash)
|
this.tabIndex = this.tabLinkHashes.findIndex((hashLink) => hashLink === this.$route.hash)
|
||||||
|
this.hashLink = this.$route.hash
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route(to, from) {
|
$route(to, from) {
|
||||||
this.tabIndex = this.tabLinkHashes.findIndex((hashLink) => hashLink === to.hash)
|
this.tabIndex = this.tabLinkHashes.findIndex((hashLink) => hashLink === to.hash)
|
||||||
|
this.hashLink = to.hash
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user