-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add a button for global-dashboard in GroupsList.vue * add GlobalDashboard.vue with boilerplate content * make vue-router work with global-dashboard settings * configure GlobalDashboard.vue to update the content based on the route path * add dummy posts and render them with card UI * use markdown pkg to render the post content * fix for some cypress tests * move the settings data to router.js * move the export back to misc.js * move the settings object to GlobalDashboard.vue file
- Loading branch information
Showing
13 changed files
with
305 additions
and
71 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
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 |
---|---|---|
|
@@ -77,8 +77,7 @@ | |
} | ||
} | ||
|
||
a { | ||
color: $primary_0; | ||
text-decoration: underline; | ||
.link { | ||
border-bottom-color: currentColor; | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
frontend/views/containers/global-dashboard/DirectMessages.vue
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,14 @@ | ||
<template lang='pug'> | ||
.c-news-and-updates-container | ||
i18n(tag='p') Direct Messages: Coming soon! | ||
</template> | ||
|
||
<script> | ||
export default ({ | ||
name: 'NewAndUpdates' | ||
}: Object) | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "@assets/style/_variables.scss"; | ||
</style> |
101 changes: 101 additions & 0 deletions
101
frontend/views/containers/global-dashboard/NewsAndUpdates.vue
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,101 @@ | ||
<template lang='pug'> | ||
.c-news-and-updates-container | ||
.c-post-block(v-for='post in dummyPosts' :key='post.id') | ||
.c-post-created-date {{ humanDate(post.createdAt, { month: 'long', year: 'numeric', day: 'numeric' }) }} | ||
|
||
.card.c-post-card | ||
.c-post-img-container | ||
avatar.c-post-img( | ||
src='/assets/images/group-income-icon-transparent-circle.png' | ||
alt='GI Logo' | ||
size='xs' | ||
) | ||
.c-post-content | ||
h3.is-title-4 {{ post.title }} | ||
p(v-safe-html:a='convertToMarkdown(post.content)') | ||
</template> | ||
|
||
<script> | ||
import { humanDate } from '@model/contracts/shared/time.js' | ||
import { convertToMarkdown } from '@view-utils/convert-to-markdown.js' | ||
import Avatar from '@components/Avatar.vue' | ||
const dummyPosts = [ | ||
{ | ||
id: 'dummy-post-1', | ||
createdAt: new Date('2023-06-08'), | ||
title: 'The Prototype is Ready', | ||
content: "It's been quite a journey, but we're finally here. A new kind of software is ready for testing. " + | ||
"If you have a group of friends/family that's interested in supporting one another using monetary and non-monetary means, " + | ||
"you're a perfect fit to try out the Group Income prototype, and we want to hear from you! Read more on our blog: " + | ||
'[https://groupincome.org/2023/06/the-prototype-is-ready/](https://groupincome.org/2023/06/the-prototype-is-ready/)' | ||
}, | ||
{ | ||
id: 'dummy-post-2', | ||
createdAt: new Date('2021-06-08'), | ||
title: 'Roadmap Updates', | ||
content: "Some say it's not the destination that matters so much, but the journey and friends you meet along the way. " + | ||
"I couldn't agree more. But also, destinations aren't to be underestimated either! Back in 2019, during the Before Times, " + | ||
'our team — a mixture of independent contractors and volunteers — got together. Read more on our blog: ' + | ||
'[https://groupincome.org/2021/06/bulgaria-hackathon-2019-roadmap-updates-hiring/](https://groupincome.org/2021/06/bulgaria-hackathon-2019-roadmap-updates-hiring/)' | ||
} | ||
] | ||
export default ({ | ||
name: 'NewAndUpdates', | ||
components: { | ||
Avatar | ||
}, | ||
data () { | ||
return { | ||
dummyPosts | ||
} | ||
}, | ||
methods: { | ||
humanDate, | ||
convertToMarkdown | ||
} | ||
}: Object) | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "@assets/style/_variables.scss"; | ||
.c-post-block { | ||
position: relative; | ||
width: 100%; | ||
margin-bottom: 2rem; | ||
} | ||
.c-post-created-date { | ||
padding-left: 1rem; | ||
font-weight: bold; | ||
margin-bottom: 0.5rem; | ||
} | ||
.c-post-card { | ||
display: flex; | ||
align-items: flex-start; | ||
gap: 0.75rem; | ||
padding: 1rem; | ||
.c-post-img-container { | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 2.75rem; | ||
height: 2.75rem; | ||
border-radius: 50%; | ||
background-color: $general_2; | ||
flex-shrink: 0; | ||
} | ||
.c-post-content { | ||
flex-grow: 1; | ||
h3 { | ||
margin-bottom: 0.25rem; | ||
} | ||
} | ||
} | ||
</style> |
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
Oops, something went wrong.